update.
[chise/xemacs-chise.git-] / src / ChangeLog
1 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
4         (Qjis_x0208): Likewise.
5         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
6         XCHARSET_FINAL(charset).
7         (charset_code_point): Modify condition for final-byte based
8         builtin-chars.
9         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
10         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
11         in UTF-2000; specify `=jis-x0208' as the mother of
12         `japanese-jisx0208-1978', `japanese-jisx0208' and
13         `japanese-jisx0208-1990' in UTF-2000.
14
15 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
16
17         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
18
19 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
20
21         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
22         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
23         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
24         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
25         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
26         CONVERSION_96x96x96x96 are introduced.
27         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
28         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
29         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
30
31         * char-ucs.h (CONVERSION_94): New macro.
32         (CONVERSION_96): New macro.
33         (CONVERSION_94x94): New macro.
34         (CONVERSION_96x96): New macro.
35         (CONVERSION_94x94x94): New macro.
36         (CONVERSION_96x96x96): New macro.
37         (CONVERSION_94x94x94x60): New macro.
38         (CONVERSION_94x94x94x94): New macro.
39         (CONVERSION_96x96x96x96): New macro.
40
41 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
42
43         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
44
45         * fns.c (Qideographic_structure): New variable.
46         (Qkeyword_char): New variable.
47         (ids_format_unit): New function.
48         (Fideographic_structure_to_ids): New function.
49         (syms_of_fns): Add new symbols `ideographic-structure' and
50         `:char'; add new builtin function `ideographic-structure-to-ids'.
51
52         * data.c (Fchar_ref_p): New function.
53         (syms_of_data): Add new builtin function `char-ref-p'.
54
55         * chartab.h: Add an EXFUN for `Ffind_char'.
56
57 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
58
59         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
60         and `COMPOSE_ADD_CHAR'.
61         (decode_coding_iso2022): Use `decode_flush_er_chars'.
62
63 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
64
65         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
66         instead of `DECODE_ADD_UCS_CHAR'.
67         (COMPOSE_ADD_CHAR): Likewise.
68
69 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
70
71         * text-coding.c (decode_flush_er_chars): New inline function.
72         (decode_add_er_char): New function.
73         (decode_coding_utf8): Use `decode_flush_er_chars' and
74         `decode_add_er_char'.
75
76 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
77
78         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
79         done before `decode_output_utf8_partial_char'.
80
81         * mule-charset.c (complex_vars_of_mule_charset): Specify
82         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
83         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
84
85 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
86
87         * mule-charset.c (decode_defined_char): New function; search
88         mother.
89         (decode_builtin_char): Don't search mother if
90         XCHARSET_MAX_CODE(charset) == 0.
91         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
92         == 0 even if code >= XCHARSET_MAX_CODE(charset).
93         (Fdecode_char): Use `decode_defined_char' instead of
94         `DECODE_DEFINED_CHAR'.
95         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
96         mother of `Vcharset_ucs_jis'.
97
98         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
99         instead of `DECODE_DEFINED_CHAR'.
100
101         * char-ucs.h (decode_defined_char): Renamed from
102         `DECODE_DEFINED_CHAR'; changed to normal function.
103         (DECODE_CHAR): Use `decode_defined_char' instead of
104         `DECODE_DEFINED_CHAR'.
105
106         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
107
108 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
109
110         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
111
112         * text-coding.c (Vcoded_charset_entity_reference_alist): New
113         variable.
114         (Quse_entity_reference): New variable.
115         (Qd): New variable.
116         (Qx): New variable.
117         (QX): New variable.
118         (coding_system_description): Add description for
119         `ccs_priority_list'.
120         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
121         (allocate_coding_system): Initialize `ccs_priority_list' in
122         UTF-2000.
123         (Fmake_coding_system): Add description about
124         'use-entity-reference; setup
125         CODING_SYSTEM_USE_ENTITY_REFERENCE(codesys).
126         (Fcoding_system_property): Accept `disable-composition' and
127         `use-entity-reference' in UTF-2000.
128         (struct decoding_stream): Add new member `er_counter' and `er_buf'
129         in UTF-2000.
130         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
131         (decode_coding_utf8): Decode entity-reference if
132         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
133         (char_encode_utf8): Encode non-Unicode characters as
134         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
135         (str->codesys).
136         (syms_of_file_coding): Add new symbols `use-entity-reference',
137         `d', `x', `X'.
138         (vars_of_file_coding): Add new variable
139         `coded-charset-entity-reference-alist'.
140         (complex_vars_of_file_coding): Declare `disable-composition' and
141         `use-entity-reference' to be coding-system-properties in UTF-2000.
142
143         * file-coding.h (struct Lisp_Coding_System): Add new member
144         `use_entity_reference' and `ccs_priority_list'.
145         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
146         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
147         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
148
149 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
150
151         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
152
153 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
154
155         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
156         `XCHARSET_GRAPHIC(ccs)'.
157
158 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
159
160         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
161         for decoding-table.
162
163 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
164
165         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
166         instead of `XCHARSET_CHARS'.
167
168 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
169
170         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
171         (XCHARSET_BYTE_SIZE): Likewise.
172
173         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
174         mule-charset.c].
175         (XCHARSET_BYTE_SIZE): Likewise.
176
177 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
178
179         * char-ucs.h (decoding_table_check_elements): Delete prototype.
180         (get_ccs_octet_table): New inline function.
181         (put_ccs_octet_table): Likewise.
182         (decoding_table_put_char): Use `get_ccs_octet_table' and
183         `put_ccs_octet_table'.
184         (decoding_table_remove_char): Use `decoding_table_put_char'.
185         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
186
187         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
188         into encoding_table.
189         (make_charset): Use Qunbound instead Qnil as initial value of
190         decoding_table.
191
192 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
193
194         * mule-charset.c (put_char_ccs_code_point): Modify for
195         `decoding_table_remove_char' and `decoding_table_put_char'.
196         (remove_char_ccs): Modify for `decoding_table_remove_char'.
197
198         * char-ucs.h (decoding_table_remove_char): Change arguments to
199         hide decoding_table vector.
200         (decoding_table_put_char): Likewise.
201
202 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
203
204         * mule-charset.c (decoding_table_remove_char): Moved to
205         char-ucs.h.
206         (decoding_table_put_char): Likewise.
207
208         * char-ucs.h (decoding_table_check_elements): New prototype [moved
209         from mule-charset.c].
210         (decoding_table_remove_char): New inline function [moved from
211         mule-charset.c].
212         (decoding_table_put_char): Likewise.
213
214 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
215
216         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
217         instead of `DECODE_CHAR' for mother; don't use special code for
218         chinese-big5 to use code space of chinese-big5-1 and
219         chinese-big5-2.
220         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
221         `MAX_CHAR_BIG5_CDP' for chinese-big5.
222
223         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
224         (MAX_CHAR_BIG5_CDP): Revival.
225
226 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
227
228         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
229         the XLFD registry-encoding name of `chinese-big5'.
230
231 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
232
233         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
234         (Qchinese_big5_cdp): Deleted.
235         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
236         (complex_vars_of_mule_charset): Delete coded-charset
237         `chinese-big5-cdp'.
238
239         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
240         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
241         `CHARSET_ID_OFFSET - n' for private CCS.
242         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
243         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
244         of `MIN_LEADING_BYTE'.
245         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
246         `(CHARSET_ID_OFFSET - 97)'.
247         (MIN_CHAR_BIG5_CDP): Deleted.
248         (MAX_CHAR_BIG5_CDP): Deleted.
249
250 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
251
252         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
253         extension.
254
255 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
256
257         * mule-charset.c (decode_builtin_char): Support mother charsets.
258
259 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
260
261         * mule-charset.c (Q94x94x60): New variable.
262         (charset_code_point): Support conversion `94x94x60'.
263         (Fmake_charset): Likewise.
264         (syms_of_mule_charset): Add new symbol `94x94x60'.
265
266         * char-ucs.h (CONVERSION_94x94x60): New macro.
267
268 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
269
270         * mule-charset.c (charset_code_point): Unify code about
271         `code-offset'.
272
273 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
274
275         * mule-charset.c (charset_code_point): Merge code about builtin
276         characters into code about mother charsets; don't use
277         `range_charset_code_point'.
278         (range_charset_code_point): Deleted.
279
280 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
281
282         * mule-charset.c (Qcode_offset): New variable.
283         (Fmake_charset): Use `XUINT' to get value of `min-code' and
284         `max-code'; accept new property `code-offset'.
285         (syms_of_mule_charset): Add new symbol `code-offset'.
286
287 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
288
289         * mule-charset.c (range_charset_code_point): Fixed.
290
291 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
292
293         * mule-charset.c (decode_builtin_char): Change semantics of
294         code-offset of coded-charset.
295         (charset_code_point): Likewise.
296         (range_charset_code_point): Likewise.
297         (complex_vars_of_mule_charset): Modify for the change.
298
299 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
300
301         * mule-charset.c (Fencode_char): Reverse arguments.
302
303         * mule-charset.c (charset_code_point): Fixed.
304
305 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
306
307         * mule-charset.c (Vcharset_mojikyo): Deleted.
308         (Vcharset_mojikyo_2022_1): Deleted.
309         (Vcharset_mojikyo_pj_{1..21}): Deleted.
310         (Qmin_code): New variable in UTF-2000.
311         (Qmax_code): Likewise.
312         (Qmother): Likewise.
313         (Qconversion): Likewise.
314         (Q94x60): Likewise.
315         (Qmojikyo): Deleted.
316         (Qmojikyo_2022_1): Deleted.
317         (Qmojikyo_pj_{1..22}): Deleted.
318         (mark_charset): Mark `cs->mother'.
319         (charset_description): Add description for `mother'.
320         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
321         new arguments `mother' and `conversion'; use
322         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
323         (charset_code_point): Moved from char-ucs.h; support `mother'
324         charset feature.
325         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
326         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
327         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
328         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
329         allow 2 as the value of `graphic' in UTF-2000; add new properties
330         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
331         require `final' in UTF-2000; modify for `make_charset'.
332         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
333         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
334         (Fcharset_property): Support `mother', `min-code' and `max-code'.
335         (Fencode_char): New function.
336         (syms_of_mule_charset): Add new builtin function `encode-char' in
337         UTF-2000; add new symbols `min-code', `max-code', `mother',
338         `conversion' and `94x60'; delete symbols `mojikyo',
339         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
340         (complex_vars_of_mule_charset): Modify for `make_charset' change;
341         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
342         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
343
344         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
345         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
346
347         * char-ucs.h (Vcharset_mojikyo): Deleted.
348         (Vcharset_mojikyo_2022_1): Deleted.
349         (LEADING_BYTE_MOJIKYO): Deleted.
350         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
351         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
352         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
353         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
354         add new member `mother'; add new member `conversion'.
355         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
356         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
357         (CHARSET_MOTHER): New macro.
358         (CHARSET_CONVERSION): New macro.
359         (CONVERSION_IDENTICAL): New macro.
360         (CONVERSION_94x60): New macro.
361         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
362         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
363         (XCHARSET_MOTHER): New macro.
364         (XCHARSET_CONVERSION): New macro.
365         (MIN_CHAR_MOJIKYO): Deleted.
366         (MAX_CHAR_MOJIKYO): Deleted.
367         (DECODE_MOJIKYO_2022): Deleted.
368         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
369         (charset_code_point): Changed to non-inline function.
370         (encode_char_1): Use `charset_code_point'.
371         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
372
373 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
374
375         * lread.c (read_compiled_function): Fix prototype.
376         (read_vector): Likewise.
377
378 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
379
380         * lrecord.h (struct lrecord_header): Delete `older'.
381         (set_lheader_implementation): Delete code for `older'.
382         (set_lheader_older_implementation): Deleted.
383         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
384         (OLDER_RECORD_P): Deleted.
385         (OLDER_RECORD_HEADER_P): Deleted.
386         (alloc_older_lcrecord): Deleted.
387         (alloc_older_lcrecord_type): Deleted.
388
389         * alloc.c (all_older_lcrecords): Deleted.
390         (alloc_older_lcrecord): Deleted.
391         (disksave_object_finalization_1): Delete code for older objects.
392         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
393         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
394
395 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
396
397         * mule-charset.c (decoding_table_put_char): Use `make_vector'
398         instead of `make_older_vector'.
399         (put_char_ccs_code_point): Likewise.
400         (mark_charset): Mark `cs->decoding_table'.
401         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
402
403         * lisp.h (make_older_vector): Deleted.
404         (make_vector_newer): Deleted.
405
406         * config.h.in (HAVE_GGC): Deleted.
407
408         * alloc.c (make_older_vector): Deleted.
409         (make_vector_newer_1): Deleted.
410         (make_vector_newer): Deleted.
411
412 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
413
414         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
415         (Qideograph_daikanwa_2): New variable.
416         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
417         (complex_vars_of_mule_charset): Add new coded-charset
418         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
419         `LEADING_BYTE_DAIKANWA'.
420
421         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
422         (LEADING_BYTE_DAIKANWA_1): New macro.
423         (LEADING_BYTE_DAIKANWA_2): New macro.
424         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
425
426 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
427
428         * mule-charset.c (complex_vars_of_mule_charset): Change
429         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
430         the second revised version.
431
432 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
433
434         * mule-charset.c (Vcharset_ucs_smp): New variable.
435         (Vcharset_ucs_sip): New variable.
436         (Qucs_smp): New variable.
437         (Qucs_sip): New variable.
438         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
439         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
440         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
441         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
442         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
443         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
444
445         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
446         (LEADING_BYTE_UCS_SIP): New macro.
447         (MIN_CHAR_SMP): New macro.
448         (MAX_CHAR_SMP): New macro.
449         (MIN_CHAR_SIP): New macro.
450         (MAX_CHAR_SIP): New macro.
451
452 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
453
454         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
455         utf-2000.
456
457 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
458
459         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
460         value; don't store value into `encoding_table' of `Lisp_Charset'.
461         (mark_charset): `encoding_table' was deleted.
462         (charset_description): Likewise.
463         (make_charset): Likewise.
464         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
465         `put_char_ccs_code_point'.
466
467         * chartab.h (Fput_char_attribute): New EXFUN.
468
469         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
470         is unified with normal symbol space.
471         (Fget_char_attribute): Likewise.
472         (Fput_char_attribute): Likewise; behavior of
473         `put_char_ccs_code_point' is changed.
474
475         * char-ucs.h: Include "elhash.h".
476         (Vchar_attribute_hash_table): New external variable.
477         (struct Lisp_Charset): Delete `encoding_table'.
478         (CHARSET_ENCODING_TABLE): New implementation; refer
479         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
480         `Lisp_Charset'.
481
482 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
483
484         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
485         (cs) == 0.
486
487 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
488
489         * text-coding.c (char_encode_big5): Prefer charset-g1 than
490         `chinese-big5'.
491
492 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
493
494         * chartab.c (uint8_byte_table_description): New constant.
495         (uint8-byte-table): Use `uint8_byte_table_description'.
496         (uint16_byte_table_description): New constant.
497         (uint16-byte-table): Use `uint16_byte_table_description'.
498
499 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
500
501         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
502         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
503
504 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
505
506         * mule-charset.c (Vcharset_ucs_ks): New variable.
507         (Qucs_ks): New variable.
508         (syms_of_mule_charset): Add new symbol `ucs-ks'.
509         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
510
511         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
512
513 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
514
515         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
516         (Fdecode_char): Likewise.
517
518         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
519         chartab.h.
520         (Fdefine_char): Modify for Fdecode_char.
521         (Ffind_char): Likewise.
522
523         * mule-charset.c (Fdecode_char): Add new optional argument
524         `defined-only'.
525         (Fdecode_builtin_char): Modify for `Fdecode_char'.
526
527 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
528
529         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
530         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
531         (allocate_coding_system): Initialize initial-charsets of
532         CODESYS_BIG5 in XEmacs UTF-2000.
533         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
534         CODESYS_BIG5 in XEmacs UTF-2000.
535         (decode_coding_big5): Use initial-charset-g0 and -g1 of
536         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
537
538         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
539         variables.
540         (Qideograph_hanziku_{1 .. 12}): Likewise.
541         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
542         .. 12}'.
543         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
544         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
545         `ideograph-hanziku-{1 .. 12}'.
546
547         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
548         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
549         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
550         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
551         (DECODE_DEFINED_CHAR): New inline function.
552         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
553
554 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
555
556         * mule-charset.c (Vcharset_china3_jef): Renamed from
557         `Vcharset_japanese_jef_china3'.
558         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
559         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
560         `{MIN|MAX}_CHAR_JEF_CHINA3'..
561         (syms_of_mule_charset): Rename `china3-jef' from
562         `japanese-jef-china3'.
563         (complex_vars_of_mule_charset): Likewise; rename
564         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
565
566         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
567         `LEADING_BYTE_JEF_CHINA3'.
568         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
569         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
570
571 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
572
573         * mule-charset.c (encode_builtin_char_1): Comment out special code
574         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
575
576         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
577         (MAX_CHAR_MOJIKYO_0): Comment out.
578         (MIN_CHAR_CBETA): Changed to 0x00E20000.
579         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
580         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
581         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
582
583 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
584
585         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
586         (Qideograph_cbeta): New variable.
587         (encode_builtin_char_1): Comment out special code for
588         coded-charset `mojikyo' and `japanese-jef-china3'.
589         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
590         (complex_vars_of_mule_charset): Add new coded-charset
591         `ideograph-cbeta'.
592
593         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
594         (MIN_CHAR_CBETA): New macro.
595         (MAX_CHAR_CBETA): New macro.
596
597 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
598
599         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
600         (LEADING_BYTE_JEF_CHINA3): New macro.
601         (MIN_CHAR_JEF_CHINA3): New macro.
602         (MAX_CHAR_JEF_CHINA3): Likewise.
603         (DECODE_CHAR): Fixed.
604
605 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
606
607         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
608         (Qjapanese_jef_china3): New variable.
609         (encode_builtin_char_1): Support `japanese-jef-china3'.
610         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
611         (complex_vars_of_mule_charset): Add new coded-charset
612         `japanese-jef-china3'.
613
614 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
615
616         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
617         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
618         94^4, 96^3, 96^4, 128^n and 256^n set.
619         (put_char_table): Use `XCHARSET_CELL_RANGE'.
620         (map_char_table): Likewise.
621
622 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
623
624         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
625         UTF-2000.
626
627 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
628
629         * chartab.h (get_char_id_table): New inline function.
630
631         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
632         function.
633
634 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
635
636         * chartab.h (decode_char_table_range): New prototype in XEmacs
637         UTF-2000.
638         (put_char_id_table): New inline function in XEmacs UTF-2000.
639
640         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
641         function.
642         (decode_char_table_range): Delete static declaration in XEmacs
643         UTF-2000.
644
645 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
646
647         * chartab.c (put_char_id_table): Use `put_char_table'.
648
649 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
650
651         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
652         (map_over_uint16_byte_table): Likewise.
653         (map_over_byte_table): Likewise.
654         (map_char_table): Modify for `map_over_uint8_byte_table',
655         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
656         UTF-2000.
657
658 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
659
660         * chartab.c (struct map_char_table_for_charset_arg): New
661         structure.
662         (map_char_table_for_charset_fun): New function.
663         (map_char_table): Use `map_char_table' for encoding_table of
664         `range->charset'.
665
666 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
667
668         * chartab.c (map_char_table): Check a character is found in
669         range->charset instead of non default value is defined in
670         char-table when range is CHARTAB_RANGE_ROW.
671
672 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
673
674         * chartab.c (map_char_id_table): Deleted.
675         (Fmap_char_attribute): Use `map_char_table' instead of
676         `map_char_id_table'.
677
678 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
679
680         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
681         UTF-2000.
682         (update_syntax_table): Deleted in XEmacs UTF-2000.
683
684         * syntax.c (find_defun_start): Use `syntax_table' instead of
685         `mirror_syntax_table' in XEmacs UTF-2000.
686         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
687         UTF-2000.
688         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
689         XEmacs UTF-2000.
690         (Fmatching_paren): Likewise.
691         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
692         in XEmacs UTF-2000.
693         (find_start_of_comment): Likewise.
694         (find_end_of_comment): Likewise.
695         (Fforward_comment): Likewise.
696         (scan_lists): Likewise.
697         (char_quoted): Likewise.
698         (Fbackward_prefix_chars): Likewise.
699         (scan_sexps_forward): Likewise.
700         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
701         (update_syntax_table): Likewise.
702
703         * search.c (skip_chars): Use `syntax_table' instead of
704         `mirror_syntax_table' in XEmacs UTF-2000.
705         (wordify): Likewise.
706         (Freplace_match): Likewise.
707
708         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
709         `mirror_syntax_table' in XEmacs UTF-2000.
710         (WORDCHAR_P_UNSAFE): Likewise.
711         (re_match_2_internal): Likewise.
712
713         * font-lock.c (find_context): Use `buf->syntax_table' instead of
714         `buf->mirror_syntax_table' in XEmacs UTF-2000.
715
716         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
717         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
718
719         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
720         XEmacs UTF-2000.
721
722         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
723         UTF-2000.
724         (print_char_table): Print `default_value' in XEmacs UTF-2000.
725         (char_table_description): Delete `mirror_table' in XEmacs
726         UTF-2000.
727         (fill_char_table): Don't call `update_syntax_table' in XEmacs
728         UTF-2000.
729         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
730         (Fcopy_char_table): Likewise.
731         (put_char_table): Don't call `update_syntax_table' in XEmacs
732         UTF-2000.
733
734         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
735         `buf->mirror_syntax_table' in XEmacs UTF-2000.
736         (casify_region_internal): Likewise.
737
738         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
739
740         * buffer.c (common_init_complex_vars_of_buffer): Don't use
741         `mirror_syntax_table' in XEmacs UTF-2000.
742
743         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
744         `buf->mirror_syntax_table' in XEmacs UTF-2000.
745         (Fexpand_abbrev): Likewise.
746
747 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
748
749         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
750
751 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
752
753         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
754         (map_over_uint16_byte_table): Likewise.
755         (map_over_byte_table): Likewise.
756         (get_char_id_table): Refer `cit->default_value'.
757         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
758         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
759         of character-id ranges.
760         (mark_char_table): Mark `ct->default_value'.
761         (char_table_description): Add `default_value'.
762         (fill_char_table): Use `default_value'.
763         (decode_char_table_range): Decode `nil' as
764         `CHARTAB_RANGE_DEFAULT'.
765         (get_char_id_table): Refer `cit->default_value'.
766         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
767         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
768         temporary hack; check value of char-table is bound or not.
769         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
770
771         * chartab.h (struct Lisp_Char_Table): Add new member
772         `default_value' in XEmacs UTF-2000.
773         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
774         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
775         UTF-2000.
776
777 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
778
779         * chartab.h (Lisp_Char_ID_Table): Deleted.
780
781         * chartab.c (char_table_description): Fix typo.
782         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
783         `Lisp_Char_ID_Table'.
784
785 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
786
787         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
788         `CHAR_ID_TABLE_P'.
789
790         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
791         `CHAR_ID_TABLE_P'.
792
793         * chartab.h (XCHAR_ID_TABLE): Deleted.
794         (XSETCHAR_ID_TABLE): Deleted.
795         (CHAR_ID_TABLE_P): Deleted.
796
797         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
798         `CHAR_ID_TABLE_P'.
799         (Fget_composite_char): Likewise.
800         (put_char_table): Likewise.
801         (add_char_attribute_alist_mapper): Fixed.
802         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
803         `CHAR_ID_TABLE_P'.
804         (Fget_char_attribute): Likewise.
805         (Fget_char_attribute): Likewise.
806         (Fmap_char_attribute): Likewise.
807
808         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
809         `CHAR_ID_TABLE_P'.
810         (encode_char_1): Likewise.
811
812 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
813
814         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
815         `XCHAR_ID_TABLE'.
816
817         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
818         instead of `XCHAR_ID_TABLE'.
819         (remove_char_ccs): Likewise.
820
821         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
822         `XCHAR_ID_TABLE'.
823         (Fget_composite_char): Likewise.
824         (Fchar_variants): Likewise.
825         (put_char_table): Likewise.
826         (add_char_attribute_alist_mapper): Likewise.
827         (Fchar_attribute_alist): Likewise.
828         (Fget_char_attribute): Likewise.
829         (Fput_char_attribute): Likewise.
830         (Fmap_char_attribute): Likewise.
831         (Fmap_char_attribute): Likewise.
832
833         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
834         `XCHAR_ID_TABLE'.
835         (encode_char_1): Likewise.
836
837 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
838
839         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
840         `Lisp_Char_ID_Table'.
841         (mark_char_id_table): Deleted.
842         (print_char_id_table): Likewise.
843         (char_id_table_equal): Likewise.
844         (char_id_table_hash): Likewise.
845         (char_id_table_description): Likewise.
846         (char_id_table): Likewise.
847         (make_char_id_table): Use `Fmake_char_table' and
848         `fill_char_table'.
849         (get_char_id_table): Use `Lisp_Char_Table' instead of
850         `Lisp_Char_ID_Table'.
851         (put_char_id_table): Likewise.
852         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
853         `XCHAR_ID_TABLE'.
854         (Fremove_char_attribute): Likewise.
855         (syms_of_chartab): Don't define type `char-id-table'.
856
857         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
858         (char_id_table): Likewise.
859         (GC_CHAR_ID_TABLE_P): Likewise.
860         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
861         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
862         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
863         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
864         (get_char_id_table): Use `Lisp_Char_Table' instead of
865         `Lisp_Char_ID_Table'.
866         (put_char_id_table_0): Likewise.
867         (put_char_id_table): Likewise.
868
869 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
870
871         * chartab.h: Lisp_Byte_Table related codes are moved from
872         chartab.h.
873
874         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
875
876 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
877
878         * chartab.h: Don't include "chartab.h".
879         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
880         (Lisp_Char_ID_Table): Likewise.
881         (char_id_table): Likewise.
882         (XCHAR_ID_TABLE): Likewise.
883         (XSETCHAR_ID_TABLE): Likewise.
884         (CHAR_ID_TABLE_P): Likewise.
885         (GC_CHAR_ID_TABLE_P): Likewise.
886         (get_char_id_table): Likewise.
887
888         * char-ucs.h: Include "chartab.h".
889         (struct Lisp_Char_ID_Table): Moved to chartab.h.
890         (Lisp_Char_ID_Table): Likewise.
891         (char_id_table): Likewise.
892         (XCHAR_ID_TABLE): Likewise.
893         (XSETCHAR_ID_TABLE): Likewise.
894         (CHAR_ID_TABLE_P): Likewise.
895         (GC_CHAR_ID_TABLE_P): Likewise.
896         (get_char_id_table): Likewise.
897
898 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
899
900         * chartab.c (copy_uint8_byte_table): New function.
901         (copy_uint16_byte_table): New function.
902         (copy_byte_table): New function.
903         (map_over_uint8_byte_table): Modify to avoid huge numbers of
904         characters to call.
905         (map_over_uint16_byte_table): Likewise.
906         (map_over_byte_table): Likewise.
907         (get_byte_table): Move prototype to chartab.h.
908         (put_byte_table): Likewise.
909         (put_char_id_table_0): Moved to chartab.h.
910         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
911         (char_table_entry_equal): Likewise.
912         (char_table_entry_hash): Likewise.
913         (char_table_entry_description): Likewise.
914         (char_table_entry): Likewise.
915         (make_char_table_entry): Likewise.
916         (copy_char_table_entry): Likewise.
917         (get_non_ascii_char_table_value): Likewise.
918         (map_over_charset_ascii): Likewise.
919         (map_over_charset_control_1): Likewise.
920         (map_over_charset_row): Likewise.
921         (map_over_other_charset): Likewise.
922         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
923         (print_char_table): Likewise.
924         (char_table_equal): Likewise.
925         (char_table_hash): Likewise.
926         (char_table_description): Likewise.
927         (fill_char_table): Likewise.
928         (Fcopy_char_table): Likewise.
929         (get_char_table): Likewise.
930         (Fget_range_char_table): Likewise.
931         (put_char_table): Likewise.
932         (map_char_table): Likewise.
933         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
934         UTF-2000.
935
936 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
937
938         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
939         `Vauto_fill_chars' in XEmacs UTF-2000.
940
941         * chartab.h (get_byte_table): New prototype [moved from
942         chartab.c].
943         (put_byte_table): Likewise [moved from chartab.c].
944         (put_char_id_table_0): New inline function [moved from chartab.c].
945         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
946         (Lisp_Char_Table_Entry): Likewise.
947         (char_table_entry): Likewise.
948         (XCHAR_TABLE_ENTRY): Likewise.
949         (XSETCHAR_TABLE_ENTRY): Likewise.
950         (CHAR_TABLE_ENTRYP): Likewise.
951         (CHECK_CHAR_TABLE_ENTRY): Likewise.
952         (NUM_ASCII_CHARS): Likewise.
953         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
954         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
955
956 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
957
958         * chartab.c (get_char_id_table): Change interface.
959         (put_char_id_table_0): New function.
960         (put_char_id_table): Change interface; new implementation.
961         (Fget_composite_char): Modify for interface change of
962         `get_char_id_table'.
963         (Fchar_variants): Likewise.
964         (add_char_attribute_alist_mapper): Likewise.
965         (Fchar_attribute_alist): Likewise.
966         (Fget_char_attribute): Likewise.
967         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
968         as same as character as the first argument like `put-char-table';
969         modify for interface change of `put_char_id_table'.
970         (Fremove_char_attribute): Modify for interface change of
971         `put_char_id_table'.
972
973 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
974
975         * text-coding.c: Sync up with XEmacs 21.2.41.
976         (COMPOSE_ADD_CHAR): Modify for interface change of
977         `get_char_id_table'.
978
979         * mule-charset.c (put_char_ccs_code_point): Modify for interface
980         change of `put_char_id_table'.
981         (remove_char_ccs): Likewise.
982
983         * chartab.h (put_char_id_table): Change interface.
984
985         * char-ucs.h (get_char_id_table): Change interface.
986         (charset_code_point): Modify for interface change of
987         `get_char_id_table'.
988         (encode_char_1): Likewise.
989
990 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
991
992         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
993         argument `ccs'.
994         (map_over_uint16_byte_table): Likewise.
995         (map_over_byte_table): Likewise.
996         (map_char_id_table): Add new argument `range' like
997         `map_char_table'.
998         (Fmap_char_attribute): Add new argument `range' like
999         `Fmap_char_table'.
1000
1001 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1002
1003         * chartab.c (map_over_uint8_byte_table): Change interface of
1004         mapping function to use struct chartab_range instead of Emchar.
1005         (map_over_uint16_byte_table): Likewise.
1006         (map_over_byte_table): Likewise.
1007         (map_char_id_table): Likewise.
1008         (struct slow_map_char_id_table_arg): Deleted.
1009         (slow_map_char_id_table_fun): Deleted.
1010         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
1011         function `slow_map_char_table_fun' instead of struct
1012         `slow_map_char_id_table_arg' and function
1013         `slow_map_char_id_table_fun'.
1014
1015 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1016
1017         * mule-charset.c: Move char-it-table related codes to chartab.c.
1018         (Vutf_2000_version): Moved to chartab.c.
1019         (Fdefine_char): Likewise.
1020         (Ffind_char): Likewise.
1021         (syms_of_mule_charset): Move types `uint8-byte-table',
1022         `uint16-byte-table', `byte-table' and `char-id-table' to
1023         chartab.c; move functions `char_attribute_list,
1024         `find_char_attribute_table, `char_attribute_alist,
1025         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
1026         `map_char_attribute, `define_char, `find_char, `char_variants and
1027         `get_composite_char to chartab.c; move symbols `=>ucs',
1028         `->decomposition', `compat', `isolated', `initial', `medial',
1029         `final', `vertical', `noBreak', `fraction', `super', `sub',
1030         `circle', `square', `wide', `narrow', `small' and `font' to
1031         chartab.c.
1032         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
1033         setting codes for `Vcharacter_composition_table' and
1034         `Vcharacter_variant_table' to chartab.c.
1035         (complex_vars_of_mule_charset): Move setting code for
1036         `Vchar_attribute_hash_table' to chartab.c.
1037
1038         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
1039         (make_char_id_table): New prototype.
1040         (put_char_id_table): Likewise.
1041         (Fget_char_attribute): Likewise.
1042
1043         * chartab.c: Move char-id-table related code from mule-charset.c.
1044         (Vutf_2000_version): Moved from mule-charset.c.
1045
1046         * char-ucs.h (Qucs): New external variable.
1047         (put_char_ccs_code_point): New prototype.
1048         (remove_char_ccs): Likewise.
1049
1050 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1051
1052         * mule-charset.c (Vcharset_ucs_jis): New variable.
1053         (Qucs_jis): Likewise.
1054         (syms_of_mule_charset): Add new symbol `ucs-jis'.
1055         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
1056
1057         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
1058
1059 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1060
1061         * mule-charset.c (map_over_uint8_byte_table): New function.
1062         (map_over_uint16_byte_table): Likewise.
1063         (map_over_byte_table): Likewise.
1064         (map_char_id_table): Likewise.
1065         (slow_map_char_id_table_fun): Likewise.
1066         (Fmap_char_attribute): Likewise.
1067         (syms_of_mule_charset): Add new function `map-char-attribute'.
1068
1069 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1070
1071         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
1072         (syms_of_mule_charset): Add new function `find-char'.
1073
1074 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1075
1076         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
1077         XEmacs UTF-2000.
1078         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
1079         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
1080         XEmacs UTF-2000.
1081         (complex_vars_of_mule_charset): Add new coded-charset
1082         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
1083         `ideograph-gt-pj-*'.
1084
1085         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
1086
1087 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1088
1089         * mule-charset.c (encode_builtin_char_1): Purge codes about
1090         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
1091         {MIN|MAX}_CHAR_HEBREW.
1092         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
1093         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
1094
1095         * char-ucs.h (MIN_CHAR_GREEK): Purged.
1096         (MAX_CHAR_GREEK): Purged.
1097         (MIN_CHAR_CYRILLIC): Purged.
1098         (MAX_CHAR_CYRILLIC): Purged.
1099         (MIN_CHAR_HEBREW): Commented out.
1100         (MAX_CHAR_HEBREW): Likewise.
1101
1102 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1103
1104         * mule-charset.c (Qto_ucs): New variable.
1105         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
1106         (Fdefine_char): Likewise.
1107         (syms_of_mule_charset): Add new symbol `=>ucs'.
1108
1109 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1110
1111         * mule-charset.c (Fdecode_char): Fixed.
1112
1113 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1114
1115         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
1116         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
1117         "tcvn5712-1".
1118
1119 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1120
1121         * mule-charset.c (Vcharset_ucs_big5): New variable.
1122         (Qucs_big5): Likewise.
1123         (syms_of_mule_charset): Add new symbol `ucs-big5'.
1124         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
1125
1126         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
1127
1128 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1129
1130         * mule-charset.c (decode_builtin_char): Check Big5 code range
1131         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
1132
1133 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1134
1135         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
1136         (Qchinese_gb12345): Likewise.
1137         (Fdecode_builtin_char): Fixed.
1138         (syms_of_mule_charset): Add `chinese-gb12345'.
1139         (complex_vars_of_mule_charset): Add coded-charset
1140         `chinese-gb12345'.
1141
1142         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
1143         (LEADING_BYTE_CHINESE_GB12345): New macro.
1144
1145 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1146
1147         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
1148         and `latin-viscii-upper' for `latin-viscii'.
1149
1150 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1151
1152         * mule-charset.c (Fdecode_builtin_char): Comment out
1153         regularization code for ISO-IR GR representation.
1154
1155 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1156
1157         * mule-charset.c (decode_builtin_char): New function; renamed from
1158         `make_builtin_char'; return -1 instead of signal.
1159         (Fdecode_builtin_char): Use `decode_builtin_char'.
1160
1161         * char-ucs.h (decode_builtin_char): New prototype; renamed from
1162         `make_builtin_char'.
1163         (DECODE_CHAR): Use `decode_builtin_char' instead of
1164         `make_builtin_char'; use mapping table of `chinese-big5' for
1165         `chinese-big5-{1,2}'.
1166
1167 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1168
1169         * text-coding.c (char_encode_big5): New function.
1170         (char_finish_big5): Likewise.
1171         (reset_encoding_stream): Use `char_encode_big5' and
1172         `char_finish_big5' for CODESYS_BIG5.
1173         (mule_encode): Don't use `encode_coding_big5'.
1174         (encode_coding_big5): Deleted.
1175
1176 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1177
1178         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
1179         0x81- in XEmacs UTF-2000.
1180         (detect_coding_big5): Likewise.
1181
1182 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1183
1184         * mule-charset.c (Fdefine_char): Don't use a CCS property to
1185         generate character-id if the CCS property does not have
1186         corresponding predefined character.
1187         (make_builtin_char): Return -1 if corresponding predefined
1188         character is not found.
1189         (Fdecode_char): Return nil if corresponding character is not
1190         found.
1191         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
1192         don't map to builtin ucs space.
1193
1194 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1195
1196         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
1197         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
1198
1199 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1200
1201         * mule-charset.c (Vcharset_ideograph_gt): New variable.
1202         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
1203         (Qideograph_gt): Likewise.
1204         (Qideograph_gt_pj_{1..11}): Likewise.
1205         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
1206         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
1207         `ideograph-gt-pj-11'.
1208         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
1209         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
1210         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
1211
1212         * char-ucs.h (LEADING_BYTE_GT): New macro.
1213         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
1214         (MIN_CHAR_GT): Likewise.
1215         (MAX_CHAR_GT): Likewise.
1216
1217 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1218
1219         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
1220         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
1221
1222         * doprnt.c (unsigned_int_converters): Add `c'.
1223         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
1224
1225         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
1226         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
1227         `MIN_CHAR_MOJIKYO'.
1228         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
1229         (MAX_CHAR_MOJIKYO_0): New macro.
1230         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
1231
1232 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1233
1234         * mule-charset.c (Fdefine_char): Delete cemented out code.
1235         (encode_builtin_char_1): Modify for new allocation of builtin
1236         Mojikyo characters.
1237
1238         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
1239
1240 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1241
1242         * mule-charset.c (Vcharset_ucs_cns): New variable.
1243         (Qucs_cns): New variable.
1244         (syms_of_mule_charset): Add new symbol `ucs-cns'.
1245         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
1246
1247 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1248
1249         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
1250
1251 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1252
1253         * search.c (search_buffer): Make `charset_base_code' as
1254         character-id >> 6 to eliminate the corresponding last byte in
1255         UTF-8 representation [I'm not sure it is right thing].
1256         (boyer_moore): Likewise.
1257
1258 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1259
1260         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
1261         representation in MULE.
1262
1263 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1264
1265         * text-coding.c (Fmake_coding_system): Use
1266         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
1267         `EXTERNAL_PROPERTY_LIST_LOOP'.
1268
1269 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1270
1271         * text-coding.c (decode_output_utf8_partial_char): New function.
1272         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
1273
1274 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1275
1276         * text-coding.c (decode_coding_utf8): Output original byte
1277         sequence if it is broken; change order of conditions.
1278
1279         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
1280         of conditions.
1281
1282         * mb-multibyte.h (BYTE_ASCII_P):
1283         Use bit ops for char-signedness safety.
1284         (BYTE_C0_P): Use bit ops for char-signedness safety.
1285         (BYTE_C1_P): Use bit ops for char-signedness safety.
1286
1287         * character.h: (XCHAR_OR_CHAR_INT):
1288         Always use inline function.
1289         Remove redundant type checking assert() - XINT will abort quite
1290         nicely.
1291
1292 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1293
1294         * text-coding.c: (Fencode_shift_jis_char):
1295         (Fencode_big5_char):
1296         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
1297         Replace 0 with '\0' when working with bytes.
1298         Replace initial "(" with "\(" in docstrings.
1299
1300         (Fmake_coding_system):
1301         When type is ccl and value is vector, register it with a proper
1302         symbol.  And checks whether the given ccl program is valid.
1303         (mule_decode): When calling ccl_driver, if src indicates
1304         NULL pointer, set an empty string instead.
1305         (mule_encode): Likewise.
1306
1307         (detect_eol_type):
1308         (detect_coding_sjis):
1309         (decode_coding_sjis):
1310         (detect_coding_big5):
1311         (decode_coding_big5):
1312         (detect_coding_ucs4):
1313         (decode_coding_ucs4):
1314         (detect_coding_utf8):
1315         (decode_coding_utf8):
1316         (detect_coding_iso2022):
1317         (decode_coding_iso2022):
1318         (decode_coding_no_conversion):
1319         (mule_decode):
1320         Make all detecting and decoding functions take an Extbyte * arg.
1321         (text_encode_generic):
1322         (encode_coding_big5):
1323         (encode_coding_no_conversion):
1324         (mule_encode):
1325         Make all encoding functions take a Bufbyte * arg.
1326         Use size_t instead of unsigned int for memory sizes.
1327         Only cast to unsigned char whenever dereferencing Extbyte *.
1328
1329         (struct lrecord_description fcd_description_1): Use countof.
1330         (complex_vars_of_file_coding):
1331         Use countof instead of sizeof.
1332         Use CHECK_NATNUM instead of CHECK_INT.
1333
1334 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1335
1336         * mule-charset.c (Fget_char_attribute): Add new optional argument
1337         `default-value'.
1338         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
1339         (remove_char_ccs): Likewise.
1340
1341 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1342
1343         * text-coding.c (char_encode_shift_jis): New implementation in
1344         UTF-2000.
1345         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
1346         ...)'.
1347
1348         * mule-charset.c (Vcharset_chinese_big5): New variable in
1349         UTF-2000.
1350         (Qchinese_big5): New variable in UTF-2000.
1351         (BIG5_SAME_ROW): New macro in UTF-2000.
1352         (make_builtin_char): Use builtin characters of
1353         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
1354         characters of `Vcharset_chinese_big5'.
1355         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
1356         (complex_vars_of_mule_charset): Add new coded-charset
1357         `chinese-big5' in UTF-2000.
1358
1359         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
1360         (Vcharset_chinese_big5): New external variable declaration.
1361         (Vcharset_japanese_jisx0208_1990): Likewise.
1362
1363 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1364
1365         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
1366         function.
1367         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
1368
1369 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1370
1371         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
1372         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
1373         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
1374         `mojikyo-pj-*'.
1375
1376 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1377
1378         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
1379
1380 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1381
1382         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1383         to 0.17.
1384
1385 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1386
1387         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
1388         for `CHARSET_BY_ATTRIBUTES'.
1389         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1390         `CHARSET_BY_ATTRIBUTES'.
1391
1392         * text-coding.c (struct decoding_stream): Rename member `CH' to
1393         `CPOS'.
1394         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
1395         (decode_coding_sjis): Likewise.
1396         (decode_coding_big5): Likewise.
1397         (decode_coding_ucs4): Likewise.
1398         (decode_coding_utf8): Likewise.
1399         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1400         `CHARSET_BY_ATTRIBUTES'.
1401         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
1402         `str->counter'; decode 3, 4 bytes sets.
1403         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
1404         sets.
1405         (decode_coding_no_conversion): Use `str->cpos' instead of
1406         `str->ch'.
1407
1408         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
1409         (Qmojikyo_2022_1): New variable.
1410         (make_charset): Don't use `CHARSET_TYPE_*'.
1411         (range_charset_code_point): Support coded-charset
1412         `mojikyo-2022-1'.
1413         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
1414         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
1415         `CHARSET_BY_ATTRIBUTES'.
1416         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
1417         `CHARSET_BY_ATTRIBUTES'.
1418         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
1419         (complex_vars_of_mule_charset): Add new coded-charset
1420         `mojikyo-2022-1'.
1421
1422         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
1423         interface; changed to inline function.
1424
1425         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
1426         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
1427         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
1428         (CHARSET_TYPE_94): Deleted.
1429         (CHARSET_TYPE_94X94): Deleted.
1430         (CHARSET_TYPE_96): Deleted.
1431         (CHARSET_TYPE_96X96): Deleted.
1432         (CHARSET_TYPE_128): Deleted.
1433         (CHARSET_TYPE_128X128): Deleted.
1434         (CHARSET_TYPE_256): Deleted.
1435         (CHARSET_TYPE_256X256): Deleted.
1436         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
1437         to inline function.
1438         (DECODE_MOJIKYO_2022): New inline function.
1439         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
1440         `Vcharset_mojikyo_2022_1'.
1441
1442 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1443
1444         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
1445         instead of `EQ'.
1446         (put_byte_table): Likewise.
1447         (char_id_table_equal): Use `get_byte_table' [new implementation].
1448
1449 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1450
1451         * mule-charset.c: Include <limits.h> in UTF-2000.
1452         (BT_UINT8_MIN): New macro in UTF-2000.
1453         (BT_UINT8_MAX): New macro in UTF-2000.
1454         (BT_UINT8_t): New macro in UTF-2000.
1455         (BT_UINT8_nil): New macro in UTF-2000.
1456         (BT_UINT8_unbound): New macro in UTF-2000.
1457         (INT_UINT8_P): New inline function in UTF-2000.
1458         (UINT8_VALUE_P): New inline function in UTF-2000.
1459         (UINT8_ENCODE): New inline function in UTF-2000.
1460         (UINT8_DECODE): New inline function in UTF-2000.
1461         (mark_uint8_byte_table): New function in UTF-2000.
1462         (print_uint8_byte_table): New function in UTF-2000.
1463         (uint8_byte_table_equal): New function in UTF-2000.
1464         (uint8_byte_table_hash): New function in UTF-2000.
1465         (make_uint8_byte_table): New function in UTF-2000.
1466         (uint8_byte_table_same_value_p): New function in UTF-2000.
1467         (BT_UINT16_MIN): New macro in UTF-2000.
1468         (BT_UINT16_MAX): New macro in UTF-2000.
1469         (BT_UINT16_t): New macro in UTF-2000.
1470         (BT_UINT16_nil): New macro in UTF-2000.
1471         (BT_UINT16_unbound): New macro in UTF-2000.
1472         (INT_UINT16_P): New inline function in UTF-2000.
1473         (UINT16_VALUE_P): New inline function in UTF-2000.
1474         (UINT16_ENCODE): New inline function in UTF-2000.
1475         (UINT16_DECODE): New inline function in UTF-2000.
1476         (UINT8_TO_UINT16): New inline function in UTF-2000.
1477         (mark_uint16_byte_table): New function in UTF-2000.
1478         (print_uint16_byte_table): New function in UTF-2000.
1479         (uint16_byte_table_equal): New function in UTF-2000.
1480         (uint16_byte_table_hash): New function in UTF-2000.
1481         (make_uint16_byte_table): New function in UTF-2000.
1482         (uint16_byte_table_same_value_p): New function in UTF-2000.
1483         (print_byte_table): New function in UTF-2000.
1484         (byte-table): Use `print_byte_table' as printer.
1485         (make_byte_table): Delete second argument `older'.
1486         (byte_table_same_value_p): New function in UTF-2000.
1487         (copy_byte_table): Deleted.
1488         (get_byte_table): New function in UTF-2000.
1489         (put_byte_table): New function in UTF-2000.
1490         (print_char_id_table): New function in UTF-2000.
1491         (char-id-table): Use `print_char_id_table' as printer.
1492         (make_char_id_table): Delete second argument `older'.
1493         (get_char_id_table): Use `get_byte_table [new implementation].
1494         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
1495         implementation].
1496         (Ffind_char_attribute_table): New function in UTF-2000.
1497         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
1498         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
1499         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
1500         (syms_of_mule_charset): Add new function
1501         `find-char-attribute-table' in UTF-2000.
1502
1503         * lrecord.h (enum lrecord_type): Add
1504         `lrecord_type_uint16_byte_table' and
1505         `lrecord_type_uint8_byte_table'.
1506
1507         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
1508         (Lisp_Uint8_Byte_Table): New type.
1509         (XUINT8_BYTE_TABLE): New macro.
1510         (XSETUINT8_BYTE_TABLE): New macro.
1511         (UINT8_BYTE_TABLE_P): New macro.
1512         (GC_UINT8_BYTE_TABLE_P): New macro.
1513         (struct Lisp_Uint16_Byte_Table): New structure.
1514         (Lisp_Uint16_Byte_Table): New type.
1515         (XUINT16_BYTE_TABLE): New macro.
1516         (XSETUINT16_BYTE_TABLE): New macro.
1517         (UINT16_BYTE_TABLE_P): New macro.
1518         (GC_UINT16_BYTE_TABLE_P): New macro.
1519
1520 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1521
1522         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
1523         (Vcharacter_ideographic_strokes_table): Deleted.
1524         (Vcharacter_total_strokes_table): Deleted.
1525         (Vcharacter_morohashi_daikanwa_table): Deleted.
1526         (Vcharacter_decomposition_table): Deleted.
1527         (Qname): Deleted because it is duplicated.
1528         (Qideographic_radical): Deleted.
1529         (Qideographic_strokes): Deleted.
1530         (Qtotal_strokes): Deleted.
1531         (Qmorohashi_daikanwa): Deleted.
1532         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
1533         `ideographic-radical', `ideographic-strokes', `total-strokes',
1534         `morohashi-daikanwa' and `->decomposition'.
1535         (Fget_char_attribute): Likewise.
1536         (Fput_char_attribute): Likewise; use `make-vector' instead of
1537         `make_older_vector' for `->decomposition' value.
1538         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
1539         `ideograph-daikanwa'.
1540         (syms_of_mule_charset): Delete builtin symbols `name',
1541         `ideographic-radical', `ideographic-strokes', `total-strokes' and
1542         `morohashi-daikanwa'.
1543         (vars_of_mule_charset): Don't setup
1544         `Vcharacter_ideographic_radical_table',
1545         `Vcharacter_ideographic_strokes_table',
1546         `Vcharacter_total_strokes_table',
1547         `Vcharacter_morohashi_daikanwa_table' and
1548         `Vcharacter_decomposition_table'.
1549
1550 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1551
1552         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
1553         `make_older_vector', `make_vector_newer_1' and
1554         `make_vector_newer'.
1555
1556         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
1557         `make_older_vector' and `make_vector_newer'.
1558
1559         * config.h.in (HAVE_GGC): New macro.
1560
1561 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1562
1563         * mule-charset.c (struct char_attribute_list_closure): New
1564         structure in UTF-2000.
1565         (add_char_attribute_to_list_mapper): New function in UTF-2000.
1566         (Fchar_attribute_list): Likewise.
1567         (Fset_charset_mapping_table): Use `make_vector_newer'.
1568         (Fdecode_builtin_char): New function in UTF-2000.
1569         (syms_of_mule_charset): Add new function `char-attribute-list' and
1570         `decode-builtin-char' in UTF-2000.
1571
1572         * lisp.h (make_vector_newer): New prototype.
1573
1574         * alloc.c (make_vector_newer_1): New function.
1575         (make_vector_newer): New function.
1576
1577 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1578
1579         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
1580         50100)'.
1581
1582 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1583
1584         * mule-charset.c (Vchar_attribute_hash_table): New variable.
1585         (Vcharacter_attribute_table): Deleted.
1586         (Vcharacter_name_table): Deleted.
1587         (put_char_attribute): Deleted.
1588         (remove_char_attribute): Deleted.
1589         (struct char_attribute_alist_closure): New structure.
1590         (add_char_attribute_alist_mapper): New function.
1591         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
1592         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
1593         (Fget_char_attribute): Likewise.
1594         (Fput_char_attribute): Likewise.
1595         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
1596         of `remove_char_attribute'.
1597         (Fdefine_char): Return character.
1598         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
1599         and `Vcharacter_name_table'.
1600         (complex_vars_of_mule_charset): Likewise
1601         `Vchar_attribute_hash_table'.
1602
1603 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1604
1605         * character.h (CHARC_CHARSET): New macro.
1606         (CHARC_CHARSET_ID): New macro.
1607         (CHARC_CODE_POINT): New macro.
1608         (CHARC_COLUMNS): New macro.
1609         (CHARC_TO_CHAR): New inline function.
1610         (CHARC_EQ): New inline function.
1611         (CHARC_ASCII_EQ): New inline function.
1612         (CHARC_IS_SPACE): New inline function.
1613         (ASCII_TO_CHARC): New inline function.
1614
1615         * char-ucs.h (encode_char_2): Deleted.
1616         (ENCODE_CHAR): Use `encode_char_1' again.
1617         (breakup_char_1): Likewise.
1618         (CHAR_TO_CHARC): New inline function.
1619
1620         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
1621
1622 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1623
1624         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
1625         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
1626         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
1627         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
1628         (create_string_text_block): Use `CHARC_ASCII_EQ' and
1629         `CHARC_IS_SPACE'.
1630         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
1631
1632         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
1633         `CHARC_CODE_POINT'.
1634         (x_output_display_block): Use `CHARC_CHARSET' and
1635         `CHARC_ASCII_EQ'.
1636
1637         * redisplay-tty.c (tty_output_display_block): Use
1638         `CHARC_ASCII_EQ'.
1639         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
1640
1641         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
1642
1643         * insdel.c (find_charsets_in_charc_string): Use
1644         `CHARC_CHARSET_ID'.
1645         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
1646         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
1647         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
1648         (convert_charc_string_into_malloced_string): Likewise.
1649
1650 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1651
1652         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
1653         instead of <Emchar_dynarr *> for buf; use
1654         `convert_bufbyte_string_into_charc_dynarr' instead of
1655         `convert_bufbyte_string_into_emchar_dynarr'; use
1656         `find_charsets_in_charc_string' instead of
1657         `find_charsets_in_emchar_string'.
1658
1659         * redisplay.h:
1660         - Include "character.h".
1661         (struct rune): New member `cglyph'; delete member `chr'.
1662
1663         * redisplay.c (redisplay_text_width_charc_string): New function;
1664         delete `redisplay_text_width_emchar_string'.
1665         (rtw_charc_dynarr): New variable; renamed from
1666         `rtw_emchar_dynarr'.
1667         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
1668         `rtw_emchar_dynarr'; use
1669         `convert_bufbyte_string_into_charc_dynarr' instead of
1670         `convert_bufbyte_string_into_emchar_dynarr'; use
1671         `redisplay_text_width_charc_string' instead of
1672         `redisplay_text_width_emchar_string'.
1673         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
1674         instead of `rtw_emchar_dynarr'; use
1675         `convert_bufbyte_string_into_charc_dynarr' instead of
1676         `convert_bufbyte_string_into_emchar_dynarr'.
1677         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
1678         `redisplay_text_width_charc_string' instead of
1679         `redisplay_text_width_emchar_string'.
1680         (create_text_block): Modify for <struct rune> change.
1681         (generate_formatted_string_db): Likewise.
1682         (create_string_text_block): Likewise.
1683         (pixel_to_glyph_translation): Likewise.
1684
1685         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
1686         instead of <const Emchar *>.
1687         (x_text_width): Likewise.
1688         (x_output_display_block): Use <Charc_dynarr *> instead
1689         <Emchar_dynarr *>; modify for <structure rune> change.
1690         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
1691         *>.
1692
1693         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
1694         <const Emchar *>; use `charc_string_displayed_columns' instead of
1695         `emchar_string_displayed_columns'.
1696         (tty_output_display_block): Use <Charc_dynarr *> instead of
1697         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
1698         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
1699         (tty_output_charc_dynarr_dynarr): New variable; renamed from
1700         `tty_output_emchar_dynarr_dynarr'.
1701         (tty_output_charc_dynarr): New function; delete
1702         `tty_output_charc_dynarr'.
1703
1704         * redisplay-output.c (compare_runes): Modify for `struct rune'.
1705         (redisplay_output_layout): Use <Charc_dynarr *> instead of
1706         <Emchar_dynarr *> for buf; use
1707         `convert_bufbyte_string_into_charc_dynarr' instead of
1708         `convert_bufbyte_string_into_emchar_dynarr'.
1709
1710         * frame.c (title_string_charc_dynarr): New variable; renamed from
1711         `title_string_emchar_dynarr'.
1712         (generate_title_string): Use `title_string_charc_dynarr' instead
1713         of `title_string_emchar_dynarr'; use
1714         `convert_charc_string_into_malloced_string' instead of
1715         `convert_emchar_string_into_malloced_string'.
1716         (init_frame): Use `title_string_charc_dynarr' instead of
1717         `title_string_emchar_dynarr'.
1718
1719         * console.h:
1720         - Include "character.h".
1721         (struct console_methods): Use <const Charc *> instead of <const
1722         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
1723         <Emchar_dynarr *> in output_string_method.
1724
1725         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
1726         <Emchar_dynarr *>.
1727
1728         * console-stream.c (stream_text_width): Use <const Charc *>
1729         instead of <const Emchar *>.
1730
1731         * character.h (Charc_dynarr): New type.
1732
1733         * char-ucs.h (structure Charc): New structure; define new type
1734         `Charc'.
1735
1736         * char-lb.h (DECODE_CHAR): New inline function.
1737         (encode_char_1): New inline function.
1738         (ENCODE_CHAR): New macro.
1739         (structure Charc): New structure; define new type `Charc'.
1740
1741         * char-1byte.h (Vcharset_control_1): New macro.
1742         (Vcharset_latin_iso8859_1): New macro.
1743         (DECODE_CHAR): New inline function.
1744         (encode_char_1): New inline function.
1745         (ENCODE_CHAR): New macro.
1746         (structure Charc): New structure; define new type `Charc'.
1747
1748         * insdel.c (find_charsets_in_charc_string): New function; delete
1749         `find_charsets_in_emchar_string'.
1750         (charc_string_displayed_columns): New function; delete
1751         `emchar_string_displayed_columns'.
1752         (convert_bufbyte_string_into_charc_dynarr): New function; delete
1753         `convert_bufbyte_string_into_emchar_dynarr'.
1754         (convert_charc_string_into_bufbyte_dynarr): New function; delete
1755         `convert_charc_string_into_bufbyte_dynarr'.
1756         (convert_charc_string_into_malloced_string): New function; delete
1757         `convert_charc_string_into_malloced_string'.
1758
1759         * buffer.h (find_charsets_in_charc_string): New prototype; delete
1760         `find_charsets_in_emchar_string'.
1761         (charc_string_displayed_columns): New prototype; delete
1762         `emchar_string_displayed_columns'.
1763         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
1764         `convert_charc_string_into_bufbyte_dynarr'.
1765         (convert_charc_string_into_malloced_string): New prototype; delete
1766         `convert_charc_string_into_malloced_string'.
1767
1768 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1769
1770         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
1771
1772 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1773
1774         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
1775
1776         * char-ucs.h: Use <short> for <Charset_ID>.
1777
1778         * mule-charset.h, char-1byte.h: Use <unsigned char> for
1779         <Charset_ID>.
1780
1781 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1782
1783         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1784         to 0.16.
1785
1786 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1787
1788         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
1789         variable.
1790         (Qmorohashi_daikanwa): New variable.
1791         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
1792         for `morohashi-daikanwa' attribute.
1793         (Fget_char_attribute): Likewise.
1794         (Fput_char_attribute): Likewise.
1795         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
1796         has the same value of `ideograph-daikanwa'.
1797         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
1798         (vars_of_mule_charset): Setup
1799         `Vcharacter_morohashi_daikanwa_table'.
1800
1801 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1802
1803         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
1804         attributes.
1805         (add_charset_to_list_mapper): Add `key' instead of
1806         `XCHARSET_NAME (value)' to return aliases.
1807
1808 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1809
1810         * mule-charset.c (Vcharacter_ideographic_radical_table): New
1811         variable.
1812         (Vcharacter_ideographic_strokes_table): New variable.
1813         (Qideographic_radical): New variable.
1814         (Qideographic_strokes): New variable.
1815         (Fchar_attribute_alist): Use
1816         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
1817         attribute; use `Vcharacter_ideographic_strokes_table' for
1818         `ideographic-strokes' attribute.
1819         (Fget_char_attribute): Likewise.
1820         (Fput_char_attribute): Likewise.
1821         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
1822         `ideographic-strokes'.
1823         (vars_of_mule_charset): Setup
1824         `Vcharacter_ideographic_radical_table' and
1825         `Vcharacter_ideographic_strokes_table'.
1826
1827 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1828
1829         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
1830         (Qtotal_strokes): New variable.
1831         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
1832         `total-strokes' attribute.
1833         (Fget_char_attribute): Likewise.
1834         (Fput_char_attribute): Likewise.
1835         (syms_of_mule_charset): Add new symbol `total-strokes'.
1836         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
1837
1838 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1839
1840         * mule-charset.c (Vcharacter_decomposition_table): New variable.
1841         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
1842         are found.
1843         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
1844         `->decomposition' attribute.
1845         (Fput_char_attribute): Likewise.
1846         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
1847
1848 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1849
1850         * mule-charset.c (decoding_table_check_elements): New function.
1851         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
1852
1853 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1854
1855         * mule-charset.c (Fset_charset_mapping_table): Use
1856         `put_char_ccs_code_point'.
1857
1858 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1859
1860         * mule-charset.c (decoding_table_put_char): New inline function.
1861         (put_char_ccs_code_point): Use `decoding_table_put_char'.
1862
1863 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1864
1865         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
1866         (XCHARSET_BYTE_SIZE): New macro.
1867         (decoding_table_remove_char): New inline function.
1868         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
1869         `decoding_table_remove_char'.
1870         (remove_char_ccs): Use `decoding_table_remove_char'.
1871         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
1872
1873 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1874
1875         * mule-charset.c (Vcharacter_name_table): New variable.
1876         (Qname): New variable.
1877         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
1878         attribute.
1879         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
1880         `Vcharacter_name_table' for `name' attribute.
1881         (Fremove_char_attribute): Use function `remove_char_ccs'.
1882         (put_char_ccs_code_point): New function.
1883         (remove_char_ccs): New function.
1884         (syms_of_mule_charset): Add new symbol `name'.
1885         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
1886
1887 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1888
1889         * mule-charset.c (make_byte_table): Add new argument `older'.
1890         (make_char_id_table): Likewise.
1891         (copy_char_id_table): Comment out because it is not used.
1892         (put_char_id_table): Modify for `make_byte_table'.
1893         (Fput_char_attribute): Make encoding_table as older object;
1894         inherit older bit of `Vcharacter_composition_table'.
1895         (mark_charset): Don't mark `cs->encoding_table'.
1896         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
1897         normal object; make `Vcharacter_composition_table' as an older
1898         object; delete staticpro for `Vcharacter_composition_table'; make
1899         `Vcharacter_variant_table' as a normal object.
1900
1901         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
1902         (mark_object): Don't check older object in UTF-2000.
1903
1904         * lrecord.h (struct lrecord_header): Add new member `older' in
1905         UTF-2000.
1906         (set_lheader_implementation): Setup `SLI_header->older' in
1907         UTF-2000.
1908         (set_lheader_older_implementation): New macro in UTF-2000.
1909         (OLDER_RECORD_P): New macro in UTF-2000.
1910         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
1911         (alloc_older_lcrecord): New prototype in UTF-2000.
1912         (alloc_older_lcrecord_type): New macro in UTF-2000.
1913
1914 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1915
1916         * mule-charset.c (byte_table_description): Use
1917         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
1918         (char_id_table_description): Delete bogus `, 1'.
1919         (Fget_char_attribute): Refer encoding_table of each coded-charset
1920         to get value of coded-charset attribute of a character.
1921         (Fput_char_attribute): Use `make_older_vector' instead of
1922         `make_vector'; use encoding_table of each coded-charset to store
1923         value of coded-charset attribute of a character.
1924         (Fremove_char_attribute): Use encoding_table of each coded-charset
1925         to store value of coded-charset attribute of a character.
1926         (mark_charset): Mark `cs->encoding_table'; don't mark
1927         `cs->decoding_table'.
1928         (charset_description): Add description of new member
1929         `encoding_table'.
1930         (make_charset): Initialize `encoding_table'.
1931
1932         * char-ucs.h (struct Lisp_Charset): Add new member
1933         `encoding_table'.
1934         (CHARSET_ENCODING_TABLE): New macro.
1935         (XCHARSET_ENCODING_TABLE): New macro.
1936         (charset_code_point): New implementation.
1937         (encode_char_1): Likewise.
1938
1939         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
1940         (disksave_object_finalization_1): Call finalizers of
1941         `all_older_lcrecords' in UTF-2000.
1942         (make_older_vector): New function in UTF-2000.
1943         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
1944         UTF-2000.
1945
1946         * lisp.h (make_older_vector): New prototype in UTF-2000.
1947
1948 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1949
1950         * lrecord.h (enum lrecord_type): Rename
1951         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
1952
1953         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
1954         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
1955         `get_char_code_table'.
1956
1957         * mule-charset.c (mark_char_id_table): Renamed from
1958         `mark_char_code_table'.
1959         (char_id_table_equal): Renamed from `char_code_table_equal'.
1960         (char_id_table_hash): Renamed from `char_code_table_hash'.
1961         (make_char_id_table): Renamed from `make_char_code_table'.
1962         (copy_char_id_table): Renamed from `copy_char_code_table'.
1963         (get_char_id_table): Renamed from `get_char_code_table'.
1964         (put_char_id_table): Renamed from `put_char_code_table'.
1965         (to_char_id): Renamed from `to_char_code'.
1966
1967         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
1968         `Lisp_Char_Code_Table'.
1969         (char_id_table): Renamed from `char_code_table'.
1970         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
1971         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
1972         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
1973         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
1974         (get_char_id_table): Renamed from `get_char_code_table'.
1975
1976 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1977
1978         * lrecord.h (enum lrecord_type): Rename
1979         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
1980
1981         * mule-charset.c (mark_byte_table): Renamed from
1982         `mark_char_byte_table'.
1983         (byte_table_equal): Renamed from `char_byte_table_equal'.
1984         (byte_table_hash): Renamed from `byte_table_hash'.
1985         (make_byte_table): Renamed from `make_byte_table'.
1986         (copy_byte_table): Renamed from `copy_char_byte_table'.
1987
1988         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
1989         `Lisp_Char_Byte_Table'.
1990         (byte_table): Renamed from `char_byte_table'.
1991         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
1992         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
1993         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
1994         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
1995
1996 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1997
1998         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
1999         (dfc_convert_to_internal_format): Likewise.
2000         
2001         * text-coding.c (Fcoding_system_canonical_name_p): New function.
2002         * text-coding.c (Fcoding_system_alias_p): New function.
2003         * text-coding.c (Fcoding_system_aliasee): New function.
2004         * text-coding.c (append_suffix_to_symbol): New function.
2005         * text-coding.c (dangling_coding_system_alias_p): New function.
2006         * text-coding.c (Ffind_coding_system):
2007         * text-coding.c (Fcopy_coding_system):
2008         * text-coding.c (encode_coding_no_conversion):
2009         * text-coding.c (syms_of_file_coding):
2010         * text-coding.c (vars_of_file_coding):
2011         Rewrite coding system alias code.
2012         Allow nested aliases, like symbolic links.
2013         Allow redefinition of coding system aliases.
2014         Prevent existence of dangling coding system aliases.
2015         Eliminate convert_to_external_format.
2016         Eliminate convert_to_internal_format.
2017         
2018         * text-coding.c: Change enum eol_type to eol_type_t.
2019
2020 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2021
2022         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
2023         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2024
2025         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
2026         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2027
2028 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2029
2030         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
2031         `ideograph-daikanwa'.
2032
2033         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
2034         (Vcharset_ucs_bmp): Likewise.
2035         (Vcharset_mojikyo): Add new extern variable definition.
2036         (Vcharset_latin_iso8859_2): Deleted because it is not used.
2037         (Vcharset_latin_iso8859_3): Likewise.
2038         (Vcharset_latin_iso8859_4): Likewise.
2039         (Vcharset_latin_iso8859_9): Likewise.
2040         (Vcharset_latin_viscii_lower): Likewise.
2041         (Vcharset_latin_viscii_upper): Likewise.
2042         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
2043         `mojikyo' code-point is used to decode.
2044         (encode_char_2): New function [to convert `mojikyo' code-point to
2045         Mojikyo font encoding].
2046         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
2047         (breakup_char_1): Likewise.
2048         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
2049
2050 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2051
2052         * text-coding.c (Fmake_coding_system): Add document about
2053         `disable-composition' property.
2054
2055 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2056
2057         * text-coding.c (Qdisable_composition): New variable; delete
2058         `Qcomposite'.
2059         (Fmake_coding_system): Add new property `disable-composite';
2060         delete property `composite'.
2061         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
2062         instead of `!CODING_SYSTEM_COMPOSITE'.
2063         (syms_of_file_coding): Add new symbol `disable-composition';
2064         delete symbol `composite'.
2065
2066         * file-coding.h (struct Lisp_Coding_System): Add
2067         `disable_composition'; delete `enable_composition'.
2068         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2069         `CODING_SYSTEM_COMPOSITE'.
2070         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2071         `XCODING_SYSTEM_COMPOSITE'.
2072
2073 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2074
2075         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2076         to 0.15.
2077
2078 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2079
2080         * text-coding.c (Qcomposite): New variable.
2081         (Fmake_coding_system): Add new property `composite'.
2082         (struct decoding_stream): Add `combined_char_count',
2083         `combined_chars' and `combining_table' in UTF-2000.
2084         (COMPOSE_FLUSH_CHARS): New macro.
2085         (COMPOSE_ADD_CHAR): New macro.
2086         (reset_decoding_stream): Reset `str->combined_char_count' and
2087         `str->combining_table' in UTF-2000.
2088         (decode_coding_iso2022): Modify for character-decomposition.
2089         (syms_of_file_coding): Add new symbol `composite'.
2090
2091 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2092
2093         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
2094         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
2095         of `Vcharacter_composition_table' if `->decomposition' property
2096         has only 1 element.
2097         (Qlatin_tcvn5712): New variable.
2098         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
2099         (complex_vars_of_mule_charset): Add new coded-charset
2100         `latin-tcvn5712'.
2101
2102         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
2103
2104 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2105
2106         * file-coding.h (struct Lisp_Coding_System): Add
2107         `enable_composition'.
2108         (CODING_SYSTEM_COMPOSITE): New macro.
2109         (XCODING_SYSTEM_COMPOSITE): New macro.
2110
2111 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
2112
2113         * mule-canna.c (c2mu): Fix problem with UTF-2000.
2114
2115 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
2116
2117         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
2118         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
2119
2120 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
2121
2122         * mule-charset.c (Vcharset_mojikyo): New variable.
2123         (Fdefine_char): Don't use coded-charset which does not have
2124         non-builtin character range to allocate character-id.
2125         (Qmojikyo): New variable.
2126         (syms_of_mule_charset): Add new symbol `mojikyo'.
2127         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
2128
2129         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
2130         (LEADING_BYTE_MOJIKYO): New macro.
2131         (MIN_CHAR_MOJIKYO): New macro.
2132         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
2133         (MAX_CHAR_MOJIKYO): New macro.
2134
2135 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
2136
2137         * mule-charset.c (remove_char_attribute): Fixed.
2138
2139 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
2140
2141         * mule-charset.c (remove_char_attribute): New function.
2142         (Fremove_char_attribute): New function.
2143         (encode_builtin_char_1): Comment out builtin-support for
2144         greek-iso8859-7 and cyrillic-iso8859-5.
2145         (Fdecode_char): Check `code' is an integer.
2146         (syms_of_mule_charset): Add `remove-char-attribute'.
2147         (MIN_CHAR_GREEK): Deleted.
2148         (MAX_CHAR_GREEK): Likewise.
2149         (MIN_CHAR_CYRILLIC): Likewise.
2150         (MAX_CHAR_CYRILLIC): Likewise.
2151         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
2152         MAX_CHAR_GREEK for `greek-iso8859-7'.
2153
2154         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
2155         (MAX_CHAR_GREEK): Likewise.
2156         (MIN_CHAR_CYRILLIC): Likewise.
2157         (MAX_CHAR_CYRILLIC): Likewise.
2158
2159 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
2160
2161         * mule-charset.c (Fdefine_char): Fix problem when new code-point
2162         format is used without `ucs' property.
2163         (Fdecode_char): Fix problem with GR representation.
2164         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
2165         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
2166
2167 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2168
2169         * mule-charset.c (make_builtin_char): New function.
2170         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
2171         (Fset_charset_mapping_table): Modify for new representation of
2172         code-point.
2173         (Fdecode_char): New function.
2174         (syms_of_mule_charset): Add new builtin function `decode-char' in
2175         UTF-2000.
2176
2177         * char-ucs.h (make_builtin_char): New prototype.
2178         (DECODE_CHAR): New inline function.
2179         (MAKE_CHAR): Use `DECODE_CHAR'.
2180
2181 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
2182
2183         * text-coding.c (parse_charset_conversion_specs): Use
2184         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
2185         `XCHARSET_TYPE'.
2186         (iso2022_designate): Likewise.
2187
2188         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
2189         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
2190
2191         * mule-charset.c (Vcharset_ucs): New variable.
2192         (print_charset): Change design; use `CHARSET_CHARS' and
2193         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
2194         (make_charset): Change signature to specify `chars' and
2195         `dimension' instead of `type'.
2196         (range_charset_code_point): Modify for 256^n-set.
2197         (encode_builtin_char_1): Encode as `ucs' in default.
2198         (Fmake_charset): Modify for `make_charset'.
2199         (Fmake_reverse_direction_charset): Likewise.
2200         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
2201         UTF-2000.
2202         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
2203         for `make_charset'.
2204
2205         * char-ucs.h (Vcharset_ucs): New variable.
2206         (LEADING_BYTE_UCS): New macro.
2207         (struct Lisp_Charset): Delete `type'; change type of `dimension'
2208         and `chars' to `unsigned short' from `unsigned int'.
2209         (CHARSET_TYPE): Deleted.
2210         (XCHARSET_TYPE): Deleted.
2211
2212 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
2213
2214         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
2215
2216         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
2217         (ENCODE_CHAR): New macro.
2218
2219 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2220
2221         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2222         to 0.14 (Kawachi-Katakami).
2223
2224 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2225
2226         * text-coding.c (char_encode_shift_jis): Modify for
2227         `charset_code_point'.
2228         (char_encode_iso2022): Likewise.
2229
2230         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
2231         (integer) instead of list of <Lisp_Object>s (integers) as the
2232         format of code-point of a coded-charset.
2233         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2234         (encode_builtin_char_1): New function; delete
2235         `split_builtin_char'.
2236         (charset_code_point): Return <int> instead of <Lisp_Object>.
2237         (Fsplit_char): Don't use `SPLIT_CHAR'.
2238
2239         * char-ucs.h (encode_builtin_char_1): New prototype; delete
2240         prototype for `split_builtin_char'.
2241         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2242         (charset_code_point): Likewise.
2243         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
2244         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
2245
2246 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
2247
2248         * mule-charset.c (complex_vars_of_mule_charset): Don't define
2249         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
2250
2251 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2252
2253         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
2254
2255         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
2256         (MAX_CHAR_OBS_94x94): Deleted.
2257
2258 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2259
2260         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
2261
2262         * char-ucs.h (MAX_CHAR_BMP): New macro.
2263
2264 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2265
2266         * text-coding.c: Sync with r21-2-24.
2267
2268 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
2269
2270         * file-coding.c: Modify for UTF-2000.
2271
2272 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2273
2274         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2275         to 0.13 (Takaida).
2276
2277 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
2278
2279         * mule-charset.c (split_builtin_char): Delete builtin support for
2280         `katakana-jisx0201'.
2281         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
2282         BMP area in builtin representation.
2283
2284         * char-ucs.h (MAKE_CHAR): Delete builtin support for
2285         `Vcharset_katakana_jisx0201'.
2286
2287 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
2288
2289         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
2290         (Qisolated): New variable.
2291         (Qinitial): New variable.
2292         (Qmedial): New variable.
2293         (Qfinal): New variable.
2294         (Qvertical): New variable.
2295         (Qsmall): New variable.
2296         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
2297         `Qvertical' and `Qsmall'.
2298         (Qmojikyo_pj_[1 .. 21]): New variable.
2299         (syms_of_mule_charset): Add new symbols `isolated', `initial',
2300         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
2301         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
2302         .. 21]'.
2303
2304 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
2305
2306         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
2307         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
2308         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
2309
2310 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2311
2312         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
2313         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
2314         BMP.
2315         (Qjapanese_jisx0208_1990): New variable.
2316         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
2317         (complex_vars_of_mule_charset): Add new coded-charset
2318         `japanese-jisx0208-1990'.
2319
2320         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
2321         (MIN_CHAR_JIS_X0208_1990): New macro.
2322         (MAX_CHAR_JIS_X0208_1990): New macro.
2323
2324 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2325
2326         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
2327         coded-charset is not found.
2328
2329 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2330
2331         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
2332         (Fdefine_char): Use `Fmake_char'.
2333
2334 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2335
2336         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
2337         (Vcharset_hiragana_jisx0208): Deleted.
2338         (Vcharset_katakana_jisx0208): Deleted.
2339         (Qideograph_daikanwa): New variable.
2340         (Qhiragana_jisx0208): Deleted.
2341         (Qkatakana_jisx0208): Deleted.
2342         (split_builtin_char): Split `ideograph-daikanwa'.
2343         (Fsplit_char): New implementation for UTF-2000.
2344         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
2345         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
2346         (complex_vars_of_mule_charset): Add new coded-charset
2347         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
2348         `katakana-jisx0208'.
2349
2350         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
2351         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
2352         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
2353         (MIN_CHAR_DAIKANWA): New macro.
2354         (MAX_CHAR_DAIKANWA): New macro.
2355
2356 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2357
2358         * data.c (Fstring_to_number): Don't recognize floating point if
2359         base is not 10.
2360
2361 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2362
2363         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
2364
2365 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2366
2367         * mule-charset.c (Qsquare): New variable.
2368         (to_char_code): Add `Qsquare'.
2369         (syms_of_mule_charset): Add new symbol `square'.
2370
2371 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2372
2373         * mule-charset.c (Qcircle): New variable.
2374         (to_char_code): Add `Qcircle'.
2375         (syms_of_mule_charset): Add new symbol `circle'.
2376
2377 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2378
2379         * mule-charset.c (Qfont): New variable.
2380         (to_char_code): Add `Qfont'.
2381         (syms_of_mule_charset): Add new symbol `font'.
2382
2383 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2384
2385         * mule-charset.c (Qsub): New variable.
2386         (to_char_code): Add `Qsub'.
2387         (syms_of_mule_charset): Add new symbol `sub'.
2388
2389 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2390
2391         * mule-charset.c (Fput_char_attribute): Convert each element of
2392         VALUE to GL position if ATTRIBUTE is a GR-set,
2393
2394 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2395
2396         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
2397         coded-charset is a GR-set.
2398
2399 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2400
2401         * mule-charset.c (Fput_char_attribute): Check each element of
2402         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
2403
2404 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2405
2406         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
2407         UTF-2000.
2408         (Qethiopic_ucs): New variable in UTF-2000.
2409         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
2410         (complex_vars_of_mule_charset): Add new coded-charset
2411         `ethiopic-ucs' in UTF-2000.
2412
2413         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
2414         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2415         9)'.
2416         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2417         10)'.
2418         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
2419
2420 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
2421
2422         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
2423         `ascii'.
2424
2425 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2426
2427         * mule-charset.c (Vcharacter_variant_table): New variable.
2428         (Q_ucs): New variable.
2429         (Fchar_variants): New function.
2430         (Fput_char_attribute): Register `->ucs' value to
2431         `Vcharacter_variant_table'.
2432         (syms_of_mule_charset): Add new function `char-variants' and new
2433         symbol `->ucs'.
2434         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
2435
2436 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2437
2438         * mule-charset.c (get_char_code_table): Allow negative character
2439         code.
2440         (put_char_code_table): Likewise.
2441         (Vcharacter_composition_table): New variable.
2442         (Q_decomposition): New variable.
2443         (Qwide): New variable.
2444         (Qnarrow): New variable.
2445         (Qcompat): New variable.
2446         (QnoBreak): New variable.
2447         (Qsuper): New variable.
2448         (Qfraction): New variable.
2449         (to_char_code): New function.
2450         (Fget_composite_char): New function.
2451         (Fput_char_attribute): Register `->decomposition' value to
2452         `Vcharacter_composition_table'.
2453         (syms_of_mule_charset): Add new function `get-composite-char', new
2454         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
2455         `super' and `fraction'.
2456         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
2457
2458 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2459
2460         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
2461         character; copy the return value.
2462
2463 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2464
2465         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
2466
2467         * mule-charset.c (range_charset_code_point): Must use make_int.
2468         (split_builtin_char): New function.
2469
2470 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2471
2472         * mule-charset.c (char_byte_table): Change name from
2473         "char-code-table" to "char-byte-table".
2474         (mark_char_code_table): New function.
2475         (char_code_table_equal): New function.
2476         (char_code_table_hash): New function.
2477         (char_code_table_description): New constant.
2478         (char_code_table): New type.
2479         (make_char_code_table): New function.
2480         (copy_char_code_table): New function.
2481         (get_char_code_table): Modify for `char_code_table' type.
2482         (put_char_code_table): Likewise.
2483         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
2484         (Kashiwara).
2485
2486         * char-ucs.h (char_code_table): New type.
2487         (XCHAR_CODE_TABLE): New macro.
2488         (XSETCHAR_CODE_TABLE): New macro.
2489         (CHAR_CODE_TABLE_P): New macro.
2490         (GC_CHAR_CODE_TABLE_P): New macro.
2491         (struct Lisp_Char_Code_Table): New structure.
2492
2493 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2494
2495         * mule-charset.c (Fmake_charset): Setup byte_offset for
2496         {94|96}^n-set.
2497
2498 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2499
2500         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
2501         character.
2502
2503 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2504
2505         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
2506         is found.
2507
2508 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2509
2510         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
2511         charset, it is regarded as a charset.
2512         (put_char_attribute): New function in UTF-2000.
2513         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
2514         charset, mapping-table of the charset is modified.
2515         (Fdefine_char): New function in UTF-2000.
2516         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
2517         `Fput_char_attribute'.
2518         (syms_of_mule_charset): Add new function `define-char' and new
2519         symbol `ucs' in UTF-2000.
2520         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
2521
2522 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2523
2524         * mule-charset.c (Fcharset_name): Define `byte_offset' in
2525         non-UTF-2000 configuration.
2526
2527 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2528
2529         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
2530         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
2531
2532         * mule-charset.c (mark_charset): `cs->encoding_table' has been
2533         deleted.
2534         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
2535         (Fset_charset_mapping_table): Likewise.
2536
2537         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
2538         (CHARSET_ENCODING_TABLE): Delete.
2539         (XCHARSET_ENCODING_TABLE): Delete.
2540         (charset_code_point): New interface.
2541
2542 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2543
2544         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
2545         instead of `charset_get_byte1' and `charset_get_byte2'.
2546
2547         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
2548         (charset_get_byte2): Deleted.
2549
2550 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2551
2552         * char-ucs.h (SPLIT_CHAR): New inline function.
2553         (breakup_char_1): Use `SPLIT_CHAR'.
2554
2555         * mule-charset.c (range_charset_code_point): New function.
2556         (charset_code_point): New function.
2557
2558         * char-ucs.h (range_charset_code_point): New interface.
2559         (breakup_char_1): Use `range_charset_code_point'.
2560
2561 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2562
2563         * mule-charset.c (Fmake_charset): Delete unused local variable
2564         `code_offset'.
2565
2566         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
2567         (breakup_char_1): Find a charset and code-point in
2568         `Vcharacter_attribute_table'.
2569
2570 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2571
2572         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2573         to 0.10 (Yao).
2574
2575 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
2576
2577         * mule-charset.c (Vcharacter_attribute_table): New variable.
2578         (Fchar_attribute_alist): New function.
2579         (Fget_char_attribute): New function.
2580         (Fput_char_attribute): New function.
2581         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
2582         too.
2583         (syms_of_mule_charset): Add new function `char-attribute-alist',
2584         `get-char-attribute' and `put-char-attribute'.
2585         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
2586
2587 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
2588
2589         * mule-charset.c (Fmake_charset): Just use
2590         `get_unallocated_leading_byte'.
2591
2592         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
2593         sets; don't use final-byte based number for private sets.
2594
2595 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2596
2597         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
2598         integer.
2599
2600 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2601
2602         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2603         to 0.9.
2604
2605 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2606
2607         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
2608         of `CHAR_LEADING_BYTE' in UTF-2000.
2609
2610         * insdel.c (find_charsets_in_bufbyte_string): Use
2611         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2612         (find_charsets_in_emchar_string): Likewise.
2613
2614         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
2615         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2616
2617         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
2618         (CHAR_CHARSET_ID): New macro.
2619
2620 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2621
2622         * chartab.c (get_char_table): Don't use type `Charset_ID' for
2623         charset-id - MIN_LEADING_BYTE.
2624         (put_char_table): Likewise.
2625
2626 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2627
2628         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
2629         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
2630         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
2631         (CHARSET_ID_OFFSET): New macro.
2632         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
2633         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
2634         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
2635         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2636         4).
2637         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2638         5).
2639         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
2640         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
2641         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
2642         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
2643         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
2644
2645 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2646
2647         * mule-charset.c (next_allocated_leading_byte): New variable in
2648         UTF-2000.
2649         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
2650         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
2651         (get_unallocated_leading_byte): Simply use
2652         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
2653         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
2654         UTF-2000.
2655
2656         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
2657         (MAX_LEADING_BYTE_PRIVATE): New macro.
2658         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
2659         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
2660
2661 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2662
2663         * mule-charset.c (Fmake_charset): Allocate final-byte based
2664         charset-id for 94-set, 96-set and 94x94-set.
2665
2666 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2667
2668         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
2669         ambiguous `else'.
2670         (Fmake_charset): Likewise.
2671         (complex_vars_of_mule_charset): Modify the font registry of
2672         `ucs-bmp' not to match `Ethiopic-Unicode'.
2673
2674 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2675
2676         * mule-charset.c (complex_vars_of_mule_charset): Add font
2677         registory of `ucs-bmp'.
2678
2679 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2680
2681         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
2682         coded-charsets in `default-coded-charset-priority-list' when
2683         breaking up a character.
2684
2685         * mule-charset.c (Vcharset_latin_viscii): New variable.
2686         (Qlatin_viscii): New variable.
2687         (make_charset): Don't use `decoding_table'.
2688         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
2689         byte_offset.
2690         (Fset_charset_mapping_table): New implementation.
2691         (syms_of_mule_charset): Add new symbol `latin-viscii'.
2692         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
2693         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
2694         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
2695         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
2696         charset `latin_viscii'.
2697
2698         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
2699         (CHARSET_TYPE_94X94): Change to 1 from 2.
2700         (CHARSET_TYPE_96): Change to 2 from 1.
2701         (CHARSET_TYPE_128): New macro.
2702         (CHARSET_TYPE_128X128): Change to 5 from 4.
2703         (CHARSET_TYPE_256): New macro.
2704         (CHARSET_TYPE_256X256): Change to 7 from 5.
2705         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
2706
2707 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2708
2709         * text-coding.c (char_encode_shift_jis): Refer
2710         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
2711         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
2712
2713         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
2714         (char_byte_table_equal): New function in UTF-2000.
2715         (char_byte_table_hash): New function in UTF-2000.
2716         (char_byte_table_description): New constant in UTF-2000.
2717         (char_byte_table): New type in UTF-2000.
2718         (make_char_byte_table): New function in UTF-2000.
2719         (copy_char_byte_table): New function in UTF-2000.
2720         (make_char_code_table): New macro in UTF-2000.
2721         (get_char_code_table): New function in UTF-2000.
2722         (put_char_code_table): New function in UTF-2000.
2723         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2724         (charset_description): Add setting in UTF-2000.
2725         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
2726         `CHARSET_TO_BYTE1_TABLE(cs)'.
2727         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
2728         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
2729         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
2730         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
2731         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
2732         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
2733         `CHARSET_TO_BYTE2_TABLE(cs)'.
2734
2735         * char-ucs.h (char_byte_table): New type.
2736         (XCHAR_BYTE_TABLE): New macro.
2737         (XSETCHAR_BYTE_TABLE): New macro.
2738         (CHAR_BYTE_TABLE_P): New macro.
2739         (GC_CHAR_BYTE_TABLE_P): New macro.
2740         (struct Lisp_Char_Byte_Table): New structure.
2741         (get_char_code_table): New interface.
2742         (Emchar_to_byte_table): Deleted.
2743         (get_byte_from_character_table): Deleted.
2744         (struct Lisp_Charset): Add `encoding_table'; delete
2745         `to_byte1_table' and `to_byte2_table'.
2746         (CHARSET_ENCODING_TABLE): New macro.
2747         (CHARSET_TO_BYTE1_TABLE): Deleted.
2748         (CHARSET_TO_BYTE2_TABLE): Deleted.
2749         (XCHARSET_ENCODING_TABLE): New macro.
2750         (XCHARSET_TO_BYTE1_TABLE): Deleted.
2751         (XCHARSET_TO_BYTE2_TABLE): Deleted.
2752
2753 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2754
2755         * mule-charset.c (syms_of_mule_charset): Delete charset alias
2756         `vietnamese-viscii-*'.
2757
2758 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2759
2760         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
2761         (Qvietnamese_viscii_upper): New variable.
2762         (Fdefine_charset_alias): New function.
2763         (syms_of_mule_charset): Add new function `define-charset-alias'.
2764         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
2765         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
2766         `latin-viscii-*'.
2767
2768 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
2769
2770         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
2771         (MAX_CHAR_OBS_94x94): New macro.
2772         (breakup_char_1): Support obsolete XEmacs-UCS private code space
2773         for 94x94 sets.
2774
2775         * mule-charset.c (put_byte_from_character_table): Change unit size
2776         from 128 to 256.
2777         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
2778         not defined.
2779         (Fmake_reverse_direction_charset): Modify dummy argument of
2780         `make_charset' for non-UTF-2000 environment.
2781
2782 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2783
2784         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
2785
2786         * mule-charset.c (destroy_byte_from_character_table): New macro.
2787         (latin_jisx0201_to_ucs): Deleted.
2788         (latin_iso8859_2_to_ucs): Deleted.
2789         (latin_iso8859_3_to_ucs): Deleted.
2790         (latin_iso8859_4_to_ucs): Deleted.
2791         (latin_iso8859_9_to_ucs): Deleted.
2792         (latin_viscii_lower_to_ucs): Deleted.
2793         (latin_viscii_upper_to_ucs): Deleted.
2794         (mark_charset): Mark `cs->decoding_table'.
2795         (Fcharset_mapping_table): Fix DOC-string.
2796         (Fset_charset_mapping_table): New function.
2797         (syms_of_mule_charset): Add nwe function
2798         `set-charset-mapping-table'.
2799         (complex_vars_of_mule_charset): Don't setup and use
2800         `latin_*_to_ucs'.
2801
2802 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2803
2804         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
2805         charset.
2806
2807 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2808
2809         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
2810         (Vcharset_katakana_jisx0208): New variable.
2811         (Qhiragana_jisx0208): New variable.
2812         (Qkatakana_jisx0208): New variable.
2813         (make_charset): Add new argument `byte_offset'.
2814         (charset_get_byte1): Modify for new coded-charset definition; use
2815         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
2816         `XCHARSET_BYTE_OFFSET'.
2817         (Fmake_charset): Modify for `make_charset'.
2818         (Fmake_reverse_direction_charset): Likewise.
2819         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
2820         `katakana-jisx0208'.
2821         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
2822         `.'  in font registry of charset `katakana-jisx0201',
2823         `latin-jisx0201', `vietnamese-viscii-lower' and
2824         `vietnamese-viscii-upper'; modify DOC-string of charset
2825         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
2826         registry of charset `japanese-jisx0208' not to use font for JIS
2827         X0208:1990; add new charset `hiragana-jisx0208' and
2828         `katakana-jisx0208'.
2829
2830         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
2831         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
2832         (struct Lisp_Charset): Add `byte_offset'.
2833         (CHARSET_BYTE_OFFSET): New macro.
2834         (XCHARSET_UCS_MIN): New macro.
2835         (XCHARSET_UCS_MAX): New macro.
2836         (XCHARSET_CODE_OFFSET): New macro.
2837         (XCHARSET_BYTE_OFFSET): New macro.
2838         (MIN_CHAR_HIRAGANA): New macro.
2839         (MAX_CHAR_HIRAGANA): New macro.
2840         (MIN_CHAR_KATAKANA): New macro.
2841         (MAX_CHAR_KATAKANA): New macro.
2842         (MAKE_CHAR): Modify for new coded-charset definition; use
2843         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
2844         `XCHARSET_BYTE_OFFSET'.
2845
2846 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2847
2848         * mule-charset.c (CHAR96): Deleted.
2849         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
2850         <Lisp_Object>.
2851         (latin_iso8859_2_to_ucs): Likewise.
2852         (latin_iso8859_3_to_ucs): Likewise.
2853         (latin_iso8859_4_to_ucs): Likewise.
2854         (latin_iso8859_9_to_ucs): Likewise.
2855         (latin_viscii_lower_to_ucs): Likewise.
2856         (latin_viscii_upper_to_ucs): Likewise.
2857         (latin_tcvn5712_to_ucs): Commented out.
2858         (make_charset): Change type of argument `decoding_table' from
2859         <Emchar*> to <Lisp_Object> [vector of characters].
2860         (Fmake_charset): Modify for `make_charset'.
2861         (Fmake_reverse_direction_charset): Likewise.
2862         (Fcharset_mapping_table): New function in UTF-2000.
2863         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
2864         UTF-2000.
2865         (complex_vars_of_mule_charset): Modify for type change of
2866         `*_to_ucs'; modify for `make_charset'.
2867
2868         * char-ucs.h (struct Lisp_Charset): Change type of
2869         `decoding_table' from <Emchar*> to <Lisp_Object>.
2870         (MAKE_CHAR): Modify for new specification of `decoding_table'.
2871
2872 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
2873
2874         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
2875         error with non-UTF-2000-Mule.
2876
2877 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
2878
2879         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
2880         in lisp again].
2881         (Vcharset_chinese_cns11643_4): Likewise.
2882         (Vcharset_chinese_cns11643_5): Likewise.
2883         (Vcharset_chinese_cns11643_6): Likewise.
2884         (Vcharset_chinese_cns11643_7): Likewise.
2885         (Qchinese_cns11643_3): Likewise.
2886         (Qchinese_cns11643_4): Likewise.
2887         (Qchinese_cns11643_5): Likewise.
2888         (Qchinese_cns11643_6): Likewise.
2889         (Qchinese_cns11643_7): Likewise.
2890         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
2891         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
2892         and `chinese-cns11643-7' to lisp/mule/chinese.el.
2893         (complex_vars_of_mule_charset): Likewise.
2894
2895 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2896
2897         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
2898         96-set.
2899         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
2900         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
2901
2902 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
2903
2904         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
2905         0xFF60.
2906         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
2907         (breakup_char_1): Likewise.
2908
2909         * text-coding.c (char_encode_iso2022): Keep designated charsets if
2910         one of them includes the specified character.
2911
2912 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
2913
2914         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
2915
2916 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
2917
2918         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
2919
2920 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
2921
2922         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
2923         definition for non-UTF-2000 Mule.
2924         (latin_iso8859_3_to_ucs): Likewise.
2925         (latin_iso8859_4_to_ucs): Likewise.
2926         (latin_iso8859_9_to_ucs): Likewise.
2927         (latin_jisx0201_to_ucs): Likewise.
2928         (MIN_CHAR_THAI): Likewise.
2929         (MAX_CHAR_THAI): Likewise.
2930         (MIN_CHAR_GREEK): Likewise.
2931         (MAX_CHAR_GREEK): Likewise.
2932         (MIN_CHAR_HEBREW): Likewise.
2933         (MAX_CHAR_HEBREW): Likewise.
2934         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
2935         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
2936         (MIN_CHAR_CYRILLIC): Likewise.
2937         (MAX_CHAR_CYRILLIC): Likewise.
2938
2939 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
2940
2941         * char-ucs.h (breakup_char_1): Use
2942         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
2943         thai-tis620 and katakana-jisx0201 area.
2944
2945 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2946
2947         * char-ucs.h (breakup_char_1): Use
2948         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
2949         area.
2950
2951         * text-coding.c (reset_encoding_stream): Fixed.
2952         (char_encode_ucs4): Delete `& 255'.
2953
2954         * char-ucs.h (breakup_char_1): Use
2955         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
2956
2957 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2958
2959         * file-coding.c (Fmake_coding_system): Don't set up
2960         `codesys->fixed.size'.
2961         (encode_coding_no_conversion): Don't refer
2962         `str->codesys->fixed.size'.
2963
2964 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2965
2966         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
2967         (latin_a_char_to_byte1): Deleted.
2968         (latin_a_char_to_byte2): Deleted.
2969
2970 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2971
2972         * mule-charset.c (make_charset): Add new argument `ucs_min',
2973         `ucs_max' and `code_offset'.
2974         (charset_get_byte1): New implementation [delete specific charset
2975         depended implementations].
2976         (Fmake_charset): Modify for `make_charset'.
2977         (Fmake_reverse_direction_charset): Likewise.
2978         (complex_vars_of_mule_charset): Likewise.
2979
2980         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
2981         `code_offset'.
2982         (CHARSET_UCS_MIN): New macro.
2983         (CHARSET_UCS_MAX): New macro.
2984         (CHARSET_CODE_OFFSET): New macro.
2985         (MAKE_CHAR): Delete charset depended definitions [except
2986         katakana-jisx0201].
2987
2988 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
2989
2990         * char-ucs.h (breakup_char_1): Use
2991         `Vdefault_coded_charset_priority_list' for C0-Controls,
2992         Basic-Latin, C1-Controls and Latin-1-Supplement area.
2993
2994 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2995
2996         * char-ucs.h (charset_get_byte1): New function.
2997         (XCHARSET_GET_BYTE1): Deleted.
2998         (charset_get_byte2): New function.
2999         (XCHARSET_GET_BYTE2): Deleted.
3000         (Vdefault_coded_charset_priority_list): New external variable.
3001         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
3002         `Vdefault_preferred_coded_charset_list'.
3003
3004         * mule-charset.c (charset_get_byte1): New function.
3005         (charset_get_byte2): New function.
3006         (Vdefault_coded_charset_priority_list): New variable.
3007         (vars_of_mule_charset): Add new variable
3008         `default-coded-charset-priority-list'.
3009
3010 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3011
3012         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
3013         (XCHARSET_GET_BYTE2): New inline function.
3014         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
3015         `XCHARSET_GET_BYTE2'.
3016
3017 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3018
3019         * mule-charset.c (make_charset): Initialize
3020         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
3021         NULL if table is not defined.
3022
3023 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3024
3025         * text-coding.c (char_encode_shift_jis): Use
3026         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
3027         `ucs_to_latin_jisx0201'.
3028
3029         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
3030         (ucs_to_latin_iso8859_2): Deleted.
3031         (ucs_to_latin_iso8859_3): Deleted.
3032         (ucs_to_latin_iso8859_4): Deleted.
3033         (ucs_to_latin_iso8859_9): Deleted.
3034         (ucs_to_latin_viscii_lower): Deleted.
3035         (ucs_to_latin_viscii_upper): Deleted.
3036         (ucs_to_latin_tcvn5712): Deleted.
3037         (make_charset): Add new argument `decoding_table'; set up
3038         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
3039         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
3040         `decoding_table' is defined in UTF-2000.
3041         (Fmake_charset): Modify for `make_charset'.
3042         (Fmake_reverse_direction_charset): Likewise.
3043         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
3044         and `GENERATE_96_SET'.
3045
3046         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
3047         (ucs_to_latin_jisx0201): Deleted.
3048         (latin_iso8859_2_to_ucs): Deleted.
3049         (ucs_to_latin_iso8859_2): Deleted.
3050         (latin_iso8859_3_to_ucs): Deleted.
3051         (ucs_to_latin_iso8859_3): Deleted.
3052         (latin_iso8859_4_to_ucs): Deleted.
3053         (ucs_to_latin_iso8859_4): Deleted.
3054         (latin_iso8859_9_to_ucs): Deleted.
3055         (ucs_to_latin_iso8859_9): Deleted.
3056         (latin_viscii_lower_to_ucs): Deleted.
3057         (ucs_to_latin_viscii_lower): Deleted.
3058         (latin_viscii_upper_to_ucs): Deleted.
3059         (ucs_to_latin_viscii_upper): Deleted.
3060         (struct Lisp_Charset): Renamed `encoding_table' to
3061         `to_byte1_table'; add `to_byte2_table'.
3062         (CHARSET_DECODING_TABLE): New macro.
3063         (CHARSET_TO_BYTE1_TABLE): New macro.
3064         (CHARSET_TO_BYTE2_TABLE): New macro.
3065         (XCHARSET_DECODING_TABLE): New macro.
3066         (XCHARSET_TO_BYTE1_TABLE): New macro.
3067         (XCHARSET_TO_BYTE2_TABLE): New macro.
3068         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
3069         tables.
3070         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
3071         don't use `ucs_to_*' tables.
3072
3073 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3074
3075         * text-coding.c (Fmake_coding_system): Don't set up
3076         `codesys->fixed.size'.
3077         (encode_coding_no_conversion): Use `if' instead of `switch'.
3078
3079         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
3080
3081 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3082
3083         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
3084         (Fmake_charset): Modify for `make_charset'.
3085         (Fmake_reverse_direction_charset): Likewise.
3086         (complex_vars_of_mule_charset): Likewise.
3087
3088 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3089
3090         * text-coding.c (char_encode_shift_jis): Use table
3091         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
3092
3093 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3094
3095         * text-coding.c (text_encode_generic): Use `if' instead of
3096         `switch'.
3097         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
3098         decode JIS-Latin.
3099
3100 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3101
3102         * text-coding.c (encode_coding_sjis): Deleted.
3103         (char_encode_shift_jis): New function.
3104         (char_finish_shift_jis): New function.
3105         (reset_encoding_stream): Set up `encode_char' and `finish' for
3106         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
3107         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
3108         (char_encode_utf8): Treat `eol_type'.
3109
3110 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3111
3112         * file-coding.c (decode_coding_iso2022): Use
3113         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
3114
3115 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3116
3117         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3118         to 0.7 (Hirano).
3119
3120 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3121
3122         * char-lb.h (CHAR_COLUMNS): New macro.
3123
3124 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3125
3126         * text-coding.c (char_encode_ucs4): New function.
3127         (char_finish_ucs4): New function.
3128         (encode_coding_ucs4): Deleted.
3129         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
3130         (text_encode_generic): Delete local variable `charset' and `half'.
3131         (ucs_to_mule_table): Deleted.
3132         (mule_to_ucs_table): Deleted.
3133         (Fset_ucs_char): Deleted.
3134         (ucs_to_char): Deleted.
3135         (Fucs_char): Deleted.
3136         (Fset_char_ucs): Deleted.
3137         (Fchar_ucs): Deleted.
3138         (decode_ucs4): Deleted.
3139         (mule_char_to_ucs4): Deleted.
3140         (encode_ucs4): Deleted.
3141         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
3142         (decode_coding_utf8): Likewise.
3143         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
3144         (char_encode_iso2022): Fixed.
3145         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
3146         `Fset_char_ucs' and `Fchar_ucs'.
3147         (complex_vars_of_file_coding): Don't initialize
3148         `ucs_to_mule_table'.
3149
3150         * objects-tty.c (tty_initialize_font_instance): Don't use
3151         `XCHARSET_COLUMNS'.
3152
3153         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
3154         UTF-2000.
3155
3156         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
3157         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3158
3159         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
3160         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3161         (emchar_string_displayed_columns): Likewise.
3162
3163         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
3164         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3165         (string_column_at_point): Likewise.
3166         (Fmove_to_column): Likewise.
3167
3168         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
3169         `encoding_table' and `decoding_table'.
3170         (CHARSET_REP_BYTES): Deleted.
3171         (XCHARSET_REP_BYTES): Deleted.
3172         (XCHARSET_COLUMNS): Deleted.
3173         (CHAR_COLUMNS): New macro.
3174         (lookup_composite_char): Deleted unconditionally.
3175         (composite_char_string): Likewise.
3176
3177 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3178
3179         * char-ucs.h (Emchar_to_byte_table): New type.
3180         (get_byte_from_character_table): New function interface.
3181         (Vcharset_latin_jisx0201): New variable.
3182         (latin_jisx0201_to_ucs): New variable.
3183         (ucs_to_latin_jisx0201): New variable.
3184         (Vcharset_latin_iso8859_2): New variable.
3185         (latin_iso8859_2_to_ucs): New variable.
3186         (ucs_to_latin_iso8859_2): New variable.
3187         (Vcharset_latin_iso8859_3): New variable.
3188         (latin_iso8859_3_to_ucs): New variable.
3189         (ucs_to_latin_iso8859_3): New variable.
3190         (Vcharset_latin_iso8859_4): New variable.
3191         (latin_iso8859_4_to_ucs): New variable.
3192         (ucs_to_latin_iso8859_4): New variable.
3193         (Vcharset_latin_iso8859_9): New variable.
3194         (latin_iso8859_9_to_ucs): New variable.
3195         (ucs_to_latin_iso8859_9): New variable.
3196         (Vcharset_latin_viscii_lower): New variable.
3197         (latin_viscii_lower_to_ucs): New variable.
3198         (ucs_to_latin_viscii_lower): New variable.
3199         (Vcharset_latin_viscii_upper): New variable.
3200         (latin_viscii_upper_to_ucs): New variable.
3201         (ucs_to_latin_viscii_upper): New variable.
3202         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
3203         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
3204         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
3205         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
3206         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
3207         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
3208         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
3209         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
3210         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
3211         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
3212
3213         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
3214         (Vcharset_latin_viscii_upper): New variable.
3215         (make_byte_from_character_table): New function.
3216         (put_byte_from_character_table): New function.
3217         (get_byte_from_character_table): New function.
3218         (CHAR96): New macro.
3219         (ucs_to_latin_jisx0201): New variable.
3220         (latin_jisx0201_to_ucs): New variable.
3221         (ucs_to_latin_iso8859_2): New variable.
3222         (latin_iso8859_2_to_ucs): New variable.
3223         (ucs_to_latin_iso8859_3): New variable.
3224         (latin_iso8859_3_to_ucs): New variable.
3225         (ucs_to_latin_iso8859_4): New variable.
3226         (latin_iso8859_4_to_ucs): New variable.
3227         (ucs_to_latin_iso8859_9): New variable.
3228         (latin_iso8859_9_to_ucs): New variable.
3229         (ucs_to_latin_viscii_lower): New variable.
3230         (latin_viscii_lower_to_ucs): New variable.
3231         (ucs_to_latin_viscii_upper): New variable.
3232         (latin_viscii_upper_to_ucs): New variable.
3233         (ucs_to_latin_tcvn5712): New variable.
3234         (latin_tcvn5712_to_ucs): New variable.
3235         (Qlatin_viscii_lower): New variable.
3236         (Qlatin_viscii_upper): New variable.
3237         (syms_of_mule_charset): Set up new symbol
3238         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
3239         (complex_vars_of_mule_charset): Set up new charset
3240         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
3241         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
3242         `ucs_to_<CHARSET>' tables.
3243
3244 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3245
3246         * text-coding.c: New file.
3247
3248 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3249
3250         * mule-charset.c (Fmake_char): Fix problem of 256-set.
3251
3252         * char-ucs.h (Vcharset_ucs_bmp): New variable.
3253         (MAKE_CHAR): Modify for `ucs-bmp'.
3254         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
3255         non-MULE characters of BMP.
3256
3257 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
3258
3259         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3260         to 0.6.
3261
3262 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3263
3264         * lstream.h:
3265         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
3266         - Include character.h for `CHAR_ASCII_P'.
3267
3268         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
3269
3270         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
3271         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
3272
3273         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
3274         (BYTE_C0_P): Likewise.
3275         (BYTE_C1_P): Likewise.
3276         (Lstream_get_emchar_1): Likewise.
3277         (Lstream_fput_emchar): Likewise.
3278         (Lstream_funget_emchar): Likewise.
3279         (copy_internal_to_external): Likewise.
3280         (copy_external_to_internal): Likewise.
3281
3282         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
3283         (BYTE_C0_P): Likewise.
3284         (BYTE_C1_P): Likewise.
3285         (Lstream_get_emchar_1): Likewise.
3286         (Lstream_fput_emchar): Likewise.
3287         (Lstream_funget_emchar): Likewise.
3288         (copy_internal_to_external): Likewise.
3289         (copy_external_to_internal): Likewise.
3290
3291         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
3292         (REP_BYTES_BY_FIRST_BYTE): Likewise.
3293
3294         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
3295         (BYTE_ASCII_P): Moved to mb-1byte.h.
3296
3297 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3298
3299         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
3300
3301         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
3302         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
3303         (VALID_CHARPTR_P): Moved to mb-*byte.h.
3304         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3305         (VALIDATE_CHARPTR_FORWARD): Likewise.
3306         (simple_charptr_emchar): Moved to mb-multibyte.h.
3307         (simple_set_charptr_emchar): Likewise.
3308         (simple_charptr_copy_char): Likewise.
3309         (non_ascii_charptr_emchar): Likewise.
3310         (non_ascii_set_charptr_emchar): Likewise.
3311         (non_ascii_charptr_copy_char): Likewise.
3312         (charptr_emchar): Moved to mb-*byte.h.
3313         (set_charptr_emchar): Likewise.
3314         (charptr_copy_char): Likewise.
3315
3316         * mb-1byte.h, mb-multibyte.h: New files.
3317
3318 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3319
3320         * mb-utf-8.h (MULTIBYTE): New macro.
3321         (MAX_EMCHAR_LEN): Moved from buffer.h.
3322         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
3323
3324         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
3325
3326         * mb-lb.h, multibyte.h: New files.
3327
3328         * char-1byte.h (Charset_ID): Moved from buffer.h.
3329         (MIN_LEADING_BYTE): Likewise.
3330         (LEADING_BYTE_ASCII): Likewise.
3331         (NUM_LEADING_BYTES): Likewise.
3332         (CHARSETP): Likewise.
3333         (CHARSET_BY_LEADING_BYTE): Likewise.
3334         (XCHARSET_LEADING_BYTE): Likewise.
3335         (XCHARSET_GRAPHIC): Likewise.
3336         (XCHARSET_COLUMNS): Likewise.
3337         (XCHARSET_DIMENSION): Likewise.
3338         (CHAR_CHARSET): Likewise.
3339         (CHAR_LEADING_BYTE): Likewise.
3340         (BREAKUP_CHAR): Likewise.
3341         (Vcharset_ascii): Likewise.
3342
3343         * buffer.h: Include multibyte.h unconditionally.
3344         (VALID_CHARPTR_P): Moved to multibyte.h.
3345         (ASSERT_VALID_CHARPTR): Likewise.
3346         (REAL_INC_CHARPTR): Likewise.
3347         (REAL_INC_CHARBYTIND): Likewise.
3348         (REAL_DEC_CHARPTR): Likewise.
3349         (INC_CHARPTR): Likewise.
3350         (INC_CHARBYTIND): Likewise.
3351         (DEC_CHARPTR): Likewise.
3352         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3353         (VALIDATE_CHARPTR_FORWARD): Likewise.
3354         (charptr_n_addr): Likewise.
3355         (MAX_EMCHAR_LEN): Moved to mb-*.h.
3356         (simple_charptr_emchar): Moved to multibyte.h.
3357         (simple_set_charptr_emchar): Likewise.
3358         (simple_charptr_copy_char): Likewise.
3359         (non_ascii_charptr_emchar): Likewise.
3360         (non_ascii_set_charptr_emchar): Likewise.
3361         (non_ascii_charptr_copy_char): Likewise.
3362         (charptr_emchar): Likewise.
3363         (set_charptr_emchar): Likewise.
3364         (charptr_copy_char): Likewise.
3365         (charptr_emchar_n): Likewise.
3366         (Charset_ID): Moved to char-1byte.h.
3367         (Vcharset_ascii): Likewise.
3368         (CHAR_CHARSET): Likewise.
3369         (CHAR_LEADING_BYTE): Likewise.
3370         (LEADING_BYTE_ASCII): Likewise.
3371         (NUM_LEADING_BYTES): Likewise.
3372         (MIN_LEADING_BYTE): Likewise.
3373         (CHARSETP): Likewise.
3374         (CHARSET_BY_LEADING_BYTE): Likewise.
3375         (XCHARSET_LEADING_BYTE): Likewise.
3376         (XCHARSET_GRAPHIC): Likewise.
3377         (XCHARSET_COLUMNS): Likewise.
3378         (XCHARSET_DIMENSION): Likewise.
3379         (BREAKUP_CHAR): Likewise.
3380
3381 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3382
3383         * character.h: Add document about interface for characters.
3384
3385         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
3386         (MAKE_CHAR): Delete comment about
3387         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
3388         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
3389         (BREAKUP_CHAR): Modify name of arguments.
3390         (CHAR_CHARSET): Modify name of argument.
3391
3392         * buffer.h: Delete document about Emchar accessors.
3393
3394 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3395
3396         * character.h (CHAR_INTP): Moved from buffer.h
3397         (CHAR_OR_CHAR_INTP): Likewise.
3398         (XCHAR_OR_CHAR_INT): Likewise.
3399         (CHECK_CHAR_COERCE_INT): Likewise.
3400
3401         * buffer.h (CHAR_INTP): Moved to character.h
3402         (CHAR_OR_CHAR_INTP): Likewise.
3403         (XCHAR_OR_CHAR_INT): Likewise.
3404         (CHECK_CHAR_COERCE_INT): Likewise.
3405
3406 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3407
3408         * character.h:
3409         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
3410         - Include char-1byte.h, char-lb.h or char-ucs.h.
3411
3412         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
3413
3414         * buffer.h: Include character unconditionally.
3415         (valid_char_p): Moved to char-*.h.
3416         (non_ascii_valid_char_p): Moved to char-lb.h.
3417
3418         * char-1byte.h, char-lb.h, char-ucs.h: New files.
3419
3420 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3421
3422         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
3423         in UTF-2000 because it is not ported yet and not to use
3424         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
3425         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
3426         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
3427
3428         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
3429         (CHAR_ASCII_P): Moved from character.h.
3430
3431         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
3432         (CHAR_ASCII_P): Likewise.
3433         (CHAR_FIELD1_MASK): Deleted.
3434         (CHAR_FIELD2_MASK): Deleted.
3435         (CHAR_FIELD3_MASK): Deleted.
3436         (MAX_CHAR_BASIC_LATIN): New macro.
3437         (CHAR_FIELD1): Deleted.
3438         (CHAR_FIELD2_INTERNAL): Deleted.
3439         (CHAR_FIELD3_INTERNAL): Deleted.
3440         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
3441         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
3442         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
3443         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
3444         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
3445         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
3446         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
3447         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
3448         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
3449         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
3450         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
3451         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
3452         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
3453         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
3454         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
3455         (MIN_CHAR_COMPOSITION): Deleted.
3456         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
3457         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
3458
3459 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
3460
3461         * buffer.h: Include mb-utf-8.h in UTF-2000.
3462
3463         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
3464
3465         * mb-utf-8.h: New file.
3466
3467 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
3468
3469         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
3470         instead of `int'.
3471
3472         * mule-charset.h, buffer.h (Charset_ID): New type.
3473
3474 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
3475
3476         * mule-canna.c (c2mu): Use `MAKE_CHAR',
3477         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
3478         instead of `MULE_CHAR_PRIVATE_OFFSET',
3479         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
3480         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
3481         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
3482
3483         * character.h (Vcharset_japanese_jisx0212): New variable
3484         definition.
3485
3486 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
3487
3488         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
3489         (charset_by_attributes): Delete array about direction.
3490         (latin_a_char_to_charset): New variable in UTF-2000.
3491         (latin_a_char_to_byte1): New variable in UTF-2000.
3492         (latin_a_char_to_byte2): New variable in UTF-2000.
3493         (Qucs_bmp): New variable.
3494         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
3495         `Bufbyte'.
3496         (next_allocated_2_byte_leading_byte): Likewise.
3497         (non_ascii_set_charptr_emchar): Likewise.
3498         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
3499         `CHARSET_TYPE_256X256' in UTF-2000; modify for
3500         `charset_by_attributes'.
3501         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
3502         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
3503         and `CHARSET_BY_LEADING_BYTE'.
3504         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
3505         `utf-2000-version' to `vars_of_mule_charset'.
3506         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
3507         define `leading-code-private-11' in UTF-2000; move setting of
3508         `utf-2000-version' from `syms_of_mule_charset'.
3509         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
3510         UTF-2000.
3511
3512         * character.h (Charset_ID): New type.
3513         (LEADING_BYTE_UCS_BMP): New macro.
3514         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
3515         (CHARSET_ID_OFFSET_94): New macro.
3516         (MIN_CHARSET_ID_PRIVATE_94): New macro.
3517         (MAX_CHARSET_ID_PRIVATE_94): New macro.
3518         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
3519         final-byte.
3520         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
3521         (LEADING_BYTE_LATIN_JISX0201): Likewise.
3522         (CHARSET_ID_OFFSET_96): New macro.
3523         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
3524         CHARSET_ID_OFFSET_96 and final-byte.
3525         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
3526         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
3527         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
3528         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
3529         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
3530         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
3531         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
3532         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
3533         (LEADING_BYTE_THAI_TIS620): Likewise.
3534         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
3535         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
3536         (CHARSET_ID_OFFSET_94x94): New macro.
3537         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
3538         CHARSET_ID_OFFSET_94x94 and final-byte.
3539         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
3540         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
3541         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
3542         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
3543         (LEADING_BYTE_CHINESE_GB2312): Likewise.
3544         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
3545         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
3546         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
3547         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
3548         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
3549         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
3550         (CHARSET_TYPE_128X128): New macro.
3551         (CHARSET_TYPE_256X256): New macro.
3552         (XCHARSET_PRIVATE_P): Delete unconditionally.
3553         (charset_by_attributes): Delete array about direction.
3554         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
3555         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
3556         (MIN_CHAR_94): New macro.
3557         (MAX_CHAR_94): New macro.
3558         (MIN_CHAR_96): New macro.
3559         (MAX_CHAR_96): New macro.
3560         (MIN_CHAR_94x94): New macro.
3561         (MAX_CHAR_94x94): New macro.
3562         (MIN_CHAR_96x96): New macro.
3563         (MAX_CHAR_96x96): New macro.
3564         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
3565         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3566         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
3567         - 32)'.
3568         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
3569         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
3570         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
3571         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
3572         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
3573         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
3574         `XCHARSET_LEADING_BYTE' to make code-point.
3575         (latin_a_char_to_charset): New variable.
3576         (latin_a_char_to_byte1): New variable.
3577         (latin_a_char_to_byte2): New variable.
3578         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
3579         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
3580         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
3581
3582         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
3583         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
3584         (find_charsets_in_emchar_string): Likewise.
3585         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
3586
3587         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
3588         `int'.
3589         (decode_coding_iso2022): Likewise.
3590
3591         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
3592         of `unsigned char'.
3593
3594         * redisplay.c (redisplay_text_width_emchar_string): Use
3595         `Charset_ID' instead of `unsigned char'.
3596         (redisplay_frame_text_width_string): Likewise.
3597
3598         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
3599         `unsigned char'.
3600
3601         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
3602         instead of `unsigned char'.
3603         (face_cachel_charset_font_metric_info): Likewise.
3604
3605         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
3606         (get_non_ascii_char_table_value): Likewise.
3607         (get_char_table): Likewise.
3608         (put_char_table): Likewise.
3609         (map_over_other_charset): Likewise.
3610         (map_char_table): Likewise.
3611
3612         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
3613         instead of `unsigned char'.
3614
3615 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
3616
3617         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
3618         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
3619
3620         * mule-charset.c (leading_code_private_11): Don't define in
3621         UTF-2000.
3622
3623         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
3624         in UTF-2000 because it is not ported yet and not to use
3625         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
3626
3627 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
3628
3629         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
3630
3631 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3632
3633         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
3634         in UTF-2000.
3635
3636         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
3637         of unsigned char to store leading-byte.
3638
3639         * chartab.c (get_non_ascii_char_table_value): Don't use
3640         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
3641
3642         * file-coding.c (encode_coding_big5): Delete bogus implementation
3643         in UTF2000.
3644
3645         * character.h (LEADING_BYTE_*): Delete definition for
3646         non-UTF-2000.
3647         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
3648         (LEADING_BYTE_PREFIX_P): Deleted.
3649         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
3650         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
3651         (BUFBYTE_LEADING_BYTE_P): Deleted.
3652         (CHARSET_PRIVATE_P): Deleted unconditionally.
3653         (rep_bytes_by_first_byte): Deleted unconditionally.
3654         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
3655         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
3656         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3657         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
3658         (CHAR_FIELD2): Deleted.
3659         (CHAR_FIELD3): Deleted.
3660         (MAKE_CHAR): Delete definition for non-UTF-2000.
3661         (BREAKUP_CHAR_1_UNSAFE): Deleted.
3662         (breakup_char_1): New implementation.
3663         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
3664         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
3665
3666 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3667
3668         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
3669         condition.
3670
3671 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3672
3673         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
3674         (CHARSET_PRIVATE_P): Likewise.
3675         (XCHARSET_PRIVATE_P): Likewise.
3676         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
3677
3678         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
3679         UTF2000.
3680         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
3681
3682 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3683
3684         * character.h (LEADING_BYTE_*): Changed in UTF2000.
3685         (NUM_LEADING_BYTES): Changed from 128 to 256.
3686         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3687         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
3688         UTF2000.
3689         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3690
3691         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
3692         UTF2000.
3693         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
3694         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
3695         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
3696         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
3697         (Qchinese_cns11643_3): New variable in UTF2000.
3698         (Qchinese_cns11643_4): New variable in UTF2000.
3699         (Qchinese_cns11643_5): New variable in UTF2000.
3700         (Qchinese_cns11643_6): New variable in UTF2000.
3701         (Qchinese_cns11643_7): New variable in UTF2000.
3702         (syms_of_mule_charset): Define `chinese-cns11643-3',
3703         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3704         and `chinese-cns11643-7' in UTF2000.
3705         (vars_of_mule_charset): Initialize
3706         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
3707         + 1 in UTF2000.
3708         (complex_vars_of_mule_charset): Setup charset
3709         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
3710         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
3711
3712 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3713
3714         * mule-charset.c: Move setting for `leading-code-private-11' from
3715         `syms_of_mule_charset' to `vars_of_mule_charset'.
3716
3717 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3718
3719         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
3720         and `NUM_LEADING_BYTES' in assert.
3721
3722 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3723
3724         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
3725         instead of 128.
3726         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
3727         `NUM_LEADING_BYTES' instead of 128.
3728
3729 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3730
3731         * mule-charset.h (charset_by_leading_byte): Use
3732         `NUM_LEADING_BYTES' instead of 128.
3733         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
3734
3735         * mule-charset.c (charset_by_leading_byte): Use
3736         `NUM_LEADING_BYTES' instead of 128.
3737         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
3738
3739         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
3740         128.
3741
3742 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
3743
3744         * mule-charset.c (syms_of_mule_charset): Update to
3745         0.4 (Shin-Imamiya).
3746
3747 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
3748
3749         * file-coding.c (encode_coding_sjis): New implementation for
3750         UTF2000.  (decode_coding_sjis): Ditto.
3751
3752 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3753
3754         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
3755         Don't define in UTF2000.
3756
3757         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
3758         defined.
3759
3760         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3761         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
3762         MULE.
3763
3764 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3765
3766         * config.h.in (CHAR_IS_UCS4): New macro.
3767
3768         * mule-charset.c (rep_bytes_by_first_byte): Modify for
3769         conventional MULE representation.
3770         (syms_of_mule_charset): Update to 0.3 (Imamiya).
3771
3772         * mule-charset.h: Reverted to original.
3773
3774         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3775         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
3776         "mule-charset.h" if CHAR_IS_UCS4 is defined.
3777
3778         * character.h: New file.
3779
3780         * file-coding.c (Fmake_coding_system): Set 1 to
3781         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
3782         defined.
3783         (encode_coding_no_conversion): New implementation for UTF2000.
3784
3785         * file-coding.h (struct Lisp_Coding_System): Add new member
3786         `fixed.size'.
3787
3788 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
3789
3790         * file-coding.c (decode_coding_iso2022): Code-point arguments of
3791         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
3792         (encode_coding_iso2022): New implementation for UTF2000.
3793
3794 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3795
3796         * mule-canna.c (c2mu): New implementation for UTF2000.
3797         (m2c): Likewise.
3798
3799 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3800
3801         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
3802
3803 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3804
3805         * file-coding.c (reset_encoding_stream): Set 0 to
3806         `str->iso2022.current_char_boundary' in UTF2000.
3807         (encode_utf8): Don't define in UTF2000.
3808         (encode_coding_utf8): New implementation for UTF-8 representation
3809         of UTF2000.
3810         (complex_vars_of_file_coding): Define coding-system `utf-8'.
3811
3812 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3813
3814         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
3815
3816         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
3817         UTF2000.
3818         (REP_BYTES_BY_FIRST_BYTE): Likewise.
3819
3820         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
3821
3822         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
3823         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
3824         as UTF-8 in UTF2000.
3825         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
3826         (non_ascii_valid_char_p): Don't define in UTF2000.
3827         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
3828         (Lstream_get_emchar_1): Likewise.
3829         (utf-2000-version): New variable in UTF2000.
3830
3831         * lread.c (read_escape): Add new reader `u'.
3832
3833         * insdel.c (three_to_one_table): Don't define in UTF2000.
3834         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
3835         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
3836         UTF2000.
3837         (bytind_to_bufpos_func): Likewise.
3838         (buffer_mule_signal_inserted_region): Likewise.
3839         (vars_of_insdel): Don't initialize `three_to_one_table'.
3840         (init_buffer_text): Use `buf->text->mule_size' instead of
3841         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
3842         UTF2000.
3843
3844         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
3845         UTF-8 representation in UTF2000.
3846         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
3847         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
3848         (decode_coding_iso2022): Don't define local variable `lb' in
3849         UTF2000; don't use LEADING_BYTE in UTF2000; use
3850         `DECODE_ADD_UCS_CHAR' in UTF2000.
3851         (convert_to_external_format): Decode as UTF-8 in UTF2000.
3852
3853         * config.h.in (UTF2000): New macro.
3854
3855         * buffer.h (struct buffer_text): Add new member `mule_size' and
3856         don't add `mule_shifter' and `mule_three_p' in UTF2000.
3857         (valid_char_p): Return always 1 in UTF2000.
3858         (MAX_EMCHAR_LEN): 6 in UTF2000.
3859         (three_to_one_table): Don't define in UTF2000.
3860         (real_bufpos_to_bytind): Modify for UTF-8 representation in
3861         UTF2000.
3862         (real_bytind_to_bufpos): Likewise.
3863
3864         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
3865
3866 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3867
3868         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
3869         representation change.
3870         (Vutf_2000_version): New variable.
3871         (leading_code_private_11): New variable.
3872         (syms_of_mule_charset): Add new variables `utf-2000-version' and
3873         `leading-code-private-11'.
3874
3875         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
3876         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
3877         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
3878         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
3879         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
3880         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
3881         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
3882         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
3883         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
3884         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
3885         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
3886         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
3887         (MIN_CHAR_GREEK): New macro.
3888         (MAX_CHAR_GREEK): New macro.
3889         (MIN_CHAR_CYRILLIC): New macro.
3890         (MAX_CHAR_CYRILLIC): New macro.
3891         (MIN_CHAR_HEBREW): New macro.
3892         (MAX_CHAR_HEBREW): New macro.
3893         (MIN_CHAR_THAI): New macro.
3894         (MAX_CHAR_THAI): New macro.
3895         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
3896         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
3897         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
3898         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
3899         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
3900         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
3901         (CHAR_FIELD2): New inline function.
3902         (CHAR_FIELD3): New inline function.
3903         (MULE_CHAR_PRIVATE_OFFSET): New macro.
3904         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
3905         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
3906         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
3907         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
3908         (MIN_CHAR_COMPOSITION): Likewise.
3909         (CHAR_LEADING_BYTE): Modified for character representation change.
3910         (MAKE_CHAR): Likewise.
3911
3912         * lisp.h (Vcharset_latin_iso8859_1): New variable.
3913         (Vcharset_greek_iso8859_7): Likewise.
3914         (Vcharset_cyrillic_iso8859_5): Likewise.
3915         (Vcharset_hebrew_iso8859_8): Likewise.
3916         (Vcharset_thai_tis620): Likewise.
3917         (Vcharset_katakana_jisx0201): Likewise.
3918
3919 2001-02-08  Martin Buchholz <martin@xemacs.org>
3920
3921         * XEmacs 21.2.44 "Thalia" is released.
3922
3923 2001-02-06  Martin Buchholz  <martin@xemacs.org>
3924
3925         Fixes crashes in kill-emacs on some systems.
3926         * process-unix.c (unix_kill_child_process):
3927         It's OK for kill() to fail with ESRCH.
3928
3929 2001-02-07  Martin Buchholz  <martin@xemacs.org>
3930
3931         Contortions to make .gdbinit tricks work on most systems.
3932         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
3933         * alloc.c (dbg_valmask): Make non-const.
3934         * alloc.c (dbg_typemask): Make non-const.
3935         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
3936         * alloc.c (dbg_valbits): Make non-const.
3937         * alloc.c (dbg_gctypebits): Make non-const.
3938         * .gdbinit (decode_object): Make it work with AIX cc.
3939
3940 2001-02-06  Martin Buchholz  <martin@xemacs.org>
3941
3942         * elhash.c (make_general_lisp_hash_table):
3943         Use simpler and more efficient calloc to clear entries.
3944
3945 2001-02-07  Martin Buchholz  <martin@xemacs.org>
3946
3947         * window.c (window_scroll): Work around an AIX C compiler bug.
3948         Fixes 'scroll-up' does nothing problem with xlC.
3949
3950 2001-02-05  Martin Buchholz  <martin@xemacs.org>
3951
3952         * .gdbinit: Remove obsolete comment.
3953
3954 2001-01-31  Mike Alexander  <mta@arbortext.com>
3955
3956         * select.c (Fown_selection_internal): Set owned_p for device
3957         method correctly.
3958
3959 2001-02-01  Martin Buchholz  <martin@xemacs.org>
3960
3961         Port to g++ 2.97.
3962         "not" cannot be used as a macro name as it is an operator in C++
3963         * config.h.in: Stop #defining `not'.
3964         * chartab.c (check_category_char): not ==> not_p
3965         * chartab.h: Likewise.
3966         * regex.c (re_match_2_internal): Likewise.
3967
3968 2001-02-02  Martin Buchholz  <martin@xemacs.org>
3969
3970         * lisp-disunion.h: Fix up comments.
3971
3972 2001-01-31  Martin Buchholz  <martin@xemacs.org>
3973
3974         * keymap.c (define_key_check_and_coerce_keysym):
3975         (syms_of_keymap):
3976         Support mouse-6 and mouse-7 bindings in the obvious way.
3977
3978 2001-02-01  Martin Buchholz  <martin@xemacs.org>
3979
3980         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
3981
3982 2001-01-30  Martin Buchholz  <martin@xemacs.org>
3983
3984         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
3985         Previous patch missed DEFVAR_INT_MAGIC.
3986         Make sure future DEFVAR_foo use correct types.
3987         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
3988         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
3989         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
3990         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
3991         * (DEFVAR_INT): Likewise.
3992         * redisplay.c (vertical_clip): Should be of type Fixnum.
3993         * redisplay.c (horizontal_clip): Likewise.
3994         * lisp.h (dump_add_opaque_int): New.
3995         (dump_add_opaque_fixnum): New.
3996
3997 2001-01-29  Andy Piper  <andy@xemacs.org>
3998
3999         * glyphs-widget.c (check_valid_int_or_function): allow symbols
4000         since they can be eval'ed
4001
4002 2001-01-29  Martin Buchholz  <martin@xemacs.org>
4003
4004         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
4005         Oops, XEmacs redefines `class'.  Use `typename' instead.
4006
4007 2001-01-28  Martin Buchholz  <martin@xemacs.org>
4008
4009         * dumper.c: Fix C++ compile errors.
4010
4011 2001-01-29  Martin Buchholz  <martin@xemacs.org>
4012
4013         * tparam.c: Use correct prototypes.
4014
4015 2001-01-28  Martin Buchholz  <martin@xemacs.org>
4016
4017         * sysproc.h: #include util.h for NetBSD's openpty.
4018
4019 2001-01-27  Martin Buchholz  <martin@xemacs.org>
4020
4021         More 64-bit correctness.
4022         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
4023         Use a typedef `fixnum' for the type used for DEFVAR_INT.
4024         Fix up comments.
4025         This finally finishes the 64-bit SGI port.
4026         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
4027         * symbols.c: Fix up comments and type casts.
4028         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
4029         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
4030         * symeval.h (Fixnum): New type.
4031         * symeval.h (symbol_value_type): Fix up comment.
4032
4033         * commands.h:
4034         * nt.c:
4035         * emacs.c:
4036         * data.c:
4037         * redisplay.c:
4038         * abbrev.c:
4039         * dired-msw.c:
4040         * event-Xt.c:
4041         * eldap.c:
4042         * window.c:
4043         * sound.c:
4044         * event-stream.c:
4045         * eval.c:
4046         * buffer.c:
4047         * mule-canna.c: A million DEFVAR_INTs here...
4048         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
4049         * extents.c:
4050         * cmdloop.c:
4051         * lisp.h:
4052         * select-x.c:
4053         * console-x.h:
4054         * event-msw.c:
4055         * mule-wnnfns.c:
4056         * hpplay.c:
4057         * ralloc.c:
4058         * alloc.c:
4059         * keymap.c:
4060         * profile.c:
4061         s/int/Fixnum/g in DEFVAR_INT declarations.
4062
4063 2001-01-26  Martin Buchholz  <martin@xemacs.org>
4064
4065         Port pdump to SGI alignment-sensitive environment.
4066         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
4067         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
4068         properly aligned.
4069         Define and use aligned reading and writing macros.
4070         Use buffered stdio instead of posix i/o for faster dumping.
4071         Eliminate kludgy 256 byte space for header.
4072         Read and write from dump file using structs for alignment safety.
4073         * dumper.c (pdump_align_stream): New.
4074         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
4075         * dumper.c (PDUMP_READ_ALIGNED): New.
4076         * dumper.c (PDUMP_WRITE_ALIGNED): New.
4077         * dumper.c (pdump_static_Lisp_Object): New struct.
4078         * dumper.c (pdump_static_pointer): New struct.
4079         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
4080         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
4081         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
4082         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
4083
4084         * dumper.c (pdump_backtrace):
4085         * dumper.c (pdump_get_indirect_count):
4086         * dumper.c (pdump_register_object):
4087         * dumper.c (pdump_register_struct):
4088         * dumper.c (pdump_reloc_one):
4089         * dumper.c (pdump_scan_by_alignment):
4090         * dumper.c (pdump_dump_from_root_struct_ptrs):
4091         * dumper.c (pdump_dump_opaques):
4092         * dumper.c (pdump_dump_rtables):
4093         * dumper.c (pdump_dump_from_root_objects):
4094         * dumper.c (pdump):
4095         * dumper.c (pdump_load_finish):
4096         Use aligned reading and writing.
4097
4098         * dumper.c (pdump_free): Make static.
4099         * dumper.c (pdump_hFile): Likewise.
4100         * dumper.c (pdump_hMap): Likewise.
4101
4102 2001-01-26  Martin Buchholz <martin@xemacs.org>
4103
4104         * XEmacs 21.2.43 "Terspichore" is released.
4105
4106 2001-01-25  Martin Buchholz  <martin@xemacs.org>
4107
4108         Type fiddling for window_config.saved_windows_count
4109         * window.c (struct window_config): 
4110         Make saved_windows_count member unsigned.
4111         * window.c (sizeof_window_config_for_n_windows): 
4112         Make parameter unsigned.
4113         * window.c (mark_window_config):
4114         * window.c (window_config_equal):
4115         * window.c (free_window_configuration):
4116         * window.c (Fset_window_configuration):
4117         * window.c (count_windows):
4118         * window.c (Fcurrent_window_configuration):
4119         * window.c (reinit_vars_of_window):
4120         Update all callers and users.
4121
4122 2001-01-25  Martin Buchholz  <martin@xemacs.org>
4123
4124         Alignment correctness for flexible arrays.
4125         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
4126         Make alignment-correct. Add interesting comments.
4127         * alloc.c (size_vector):
4128         * alloc.c (make_vector_internal):
4129         * alloc.c (make_bit_vector_internal):
4130         * alloc.c (sweep_bit_vectors_1):
4131         * fns.c (size_bit_vector):
4132         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
4133         * window.c (sizeof_window_config_for_n_windows): 
4134         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
4135
4136 2001-01-24  Martin Buchholz  <martin@xemacs.org>
4137
4138         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
4139
4140 2001-01-23  Andy Piper  <andy@xemacs.org>
4141
4142         * select.c (Fown_selection_internal): pass owned_p
4143
4144         * select-msw.c (mswindows_own_selection): New Signature.
4145
4146         * console.h (struct console_methods): add owned_p to
4147         _own_selection.
4148
4149         * select-x.c (x_own_selection): pass owned_p
4150         (hack_motif_clipboard_selection): use owned_p
4151         (vars_of_select_x): new variable -
4152         x_selection_strict_motif_ownership.
4153
4154 2001-01-23  Martin Buchholz  <martin@xemacs.org>
4155
4156         * specifier.h (specifier_data_offset): Remove pointless parens.
4157         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
4158
4159 2001-01-24  Martin Buchholz  <martin@xemacs.org>
4160
4161         Make Lisp_Object sizeof methods be alignment-correct.
4162         pdump must restore objects to the same alignment as the C compiler
4163         assumes.  It really matters on SGIs.
4164         * lstream.c (aligned_sizeof_lstream): New.
4165         (sizeof_lstream): Use aligned_sizeof_lstream.
4166         (Lstream_new): Likewise.
4167         * opaque.c (aligned_sizeof_opaque): New.
4168         (sizeof_opaque): Use aligned_sizeof_opaque.
4169         (make_opaque): Likewise.
4170         * specifier.c (aligned_sizeof_specifier): New.
4171         (sizeof_specifier): Use aligned_sizeof_specifier.
4172         (make_specifier_internal): Likewise.
4173
4174 2001-01-23  Martin Buchholz  <martin@xemacs.org>
4175
4176         * lstream.h (struct lstream): Use max_align_t for trailing data.
4177         * specifier.h (struct Lisp_Specifier): Likewise.
4178
4179 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4180
4181         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
4182         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
4183         (CCL_SUSPEND): Likewise.
4184         (CCL_INVALID_CMD): Likewise.
4185         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
4186         (ccl_driver): Likewise.
4187         (CCL_WRITE_CHAR): Macro hygiene.
4188         (CCL_WRITE_STRING): Macro hygiene.
4189
4190 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4191
4192         Port "portable" dumper to SunOS 4 and HP-UX.
4193         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
4194         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
4195         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
4196
4197 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4198
4199         * lisp.h (ALIGNOF): A better definition for C++.
4200
4201 2001-01-20  Martin Buchholz  <martin@xemacs.org>
4202
4203         Macro hygiene.
4204         Fix printf warnings: int format, long int arg.
4205         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
4206         (PUSH_FAILURE_POINT): Use correct printf formats.
4207         (POP_FAILURE_POINT): Use correct printf formats.  
4208         Use do {...} while (0)
4209
4210 2001-01-20  Martin Buchholz <martin@xemacs.org>
4211
4212         * XEmacs 21.2.42 "Poseidon" is released.
4213
4214 2001-01-20  Martin Buchholz  <martin@xemacs.org>
4215
4216         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
4217
4218 2001-01-19  Martin Buchholz  <martin@xemacs.org>
4219
4220         De-kludgify FIXED_TYPE free list frobbing.
4221         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
4222         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
4223         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
4224         * alloc.c (Lisp_Free): New pseudo lisp object definition.
4225         * alloc.c (LRECORD_FREE_P): New.
4226         * alloc.c (MARK_LRECORD_AS_FREE): New.
4227         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
4228         * alloc.c (STRUCT_FREE_P): Deleted.
4229         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
4230         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
4231         * alloc.c (STRING_CHARS_FREE_P): New.
4232         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
4233         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
4234         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
4235         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
4236         * alloc.c (resize_string): Use new definitions.
4237         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
4238         * alloc.c (verify_string_chars_integrity): Use new definitions.
4239         * alloc.c (compact_string_chars): Use new definitions.
4240         * alloc.c: Update monster comments.
4241         * lrecord.h (lrecord_type): Add some new lrecord types for
4242         alloc.c's use.
4243
4244 2001-01-18  Martin Buchholz  <martin@xemacs.org>
4245
4246         Improve alignment hackery.
4247         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
4248         (max_align_t): Moved from opaque.h - general purpose.
4249         (ALIGN_PTR): Use size_t, not long.
4250         * opaque.h (max_align_t): Move to lisp.h.
4251
4252 2001-01-18  Norbert Koch  <nk@LF.net>
4253
4254         * gui.h: Fix and add prototypes to fix build problems.
4255
4256 2001-01-18  Martin Buchholz  <martin@xemacs.org>
4257
4258         temacs is going away, so `dump-temacs' is now a bad name.
4259         * .dbxrc (dump-temacs): Rename to `dmp'.
4260         * .gdbinit (dump-temacs): Rename to `dmp'.
4261
4262 2001-01-17  Andy Piper  <andy@xemacs.org>
4263
4264         * glyphs.c (print_image_instance): comment to make martin happy.
4265
4266         * glyphs-x.c (x_redisplay_widget): update faces after a frame
4267         change.
4268
4269         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
4270         activation.
4271         (mswindows_tab_control_redisplay): warning suppression.
4272
4273         * glyphs-widget.c (widget_update): re-write to cope with updated
4274         items.
4275         (widget_instantiate): use new gui_item functions.
4276         (tab_control_update): deleted.
4277         (progress_gauge_update): deleted.
4278         (image_instantiator_progress_guage): take out update reference.
4279         (image_instantiator_tree_view): ditto.
4280         (image_instantiator_tab_control): ditto.
4281
4282         * gui.c (widget_gui_parse_item_keywords): new function. Do things
4283         Right the new way.
4284         (gui_item_add_keyval_pair): re-write to cope with descriptors and
4285         return whether anything was changed.
4286         (update_gui_item_keywords): as it sounds.
4287
4288         * gui.h: declare widget_gui_parse_item_keywords.
4289
4290         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
4291         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
4292
4293 2001-01-17  Martin Buchholz <martin@xemacs.org>
4294
4295         * XEmacs 21.2.41 "Polyhymnia" is released.
4296
4297 2001-01-16  Didier Verna  <didier@xemacs.org>
4298
4299         * glyphs.c (image_instantiate): don't use fallbacks when
4300         instantiating a face's background pixmap by inheritance.
4301
4302 2001-01-14  Mike Sperber <mike@xemacs.org>
4303
4304         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
4305         Conditionalize accordingly.
4306
4307 2001-01-16  Martin Buchholz  <martin@xemacs.org>
4308
4309         * dumper.c (pdump_file_get): Fix a compiler warning.
4310
4311 2001-01-15  Martin Buchholz  <martin@xemacs.org>
4312
4313         Make Purify happy when pdumping.
4314         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
4315         iniitalizing all bits of new lisp object memory.
4316         * symbols.c (Fmake_local_variable): Likewise.
4317         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
4318         * symbols.c (Fdefvaralias): Likewise.
4319         * mule-charset.c (vars_of_mule_charset): Likewise.
4320
4321 2001-01-15  Martin Buchholz  <martin@xemacs.org>
4322         Add the `-nd' flag when running pre-dump operations under the debugger.
4323         * .dbxrc (run-temacs): Add `-nd'.
4324         * .dbxrc (update-elc): Likewise.
4325         * .dbxrc (dump-temacs): Likewise.
4326         * .gdbinit (run-temacs): Likewise.
4327         * .gdbinit (check-temacs): Likewise.
4328         * .gdbinit (update-elc): Likewise.
4329         * .gdbinit (dump-temacs): Likewise.
4330
4331 2001-01-14  Martin Buchholz  <martin@xemacs.org>
4332
4333         Allow building 64-bit executables on AIX with GNU malloc, e.g.
4334         export OBJECT_MODE=64
4335         configure --pdump --use-union-type=no
4336         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
4337         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
4338
4339         * miscplay.c (sndcnv8U_2mono):
4340         Avoid two uses of `++' in the same expression.
4341         Suppresses a GCC warning.
4342
4343 2001-01-13  Martin Buchholz  <martin@xemacs.org>
4344
4345         Make sure future compilers don't miscompile alloc.c.
4346         * alloc.c:
4347         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
4348         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
4349
4350 2001-01-12  Martin Buchholz  <martin@xemacs.org>
4351
4352         * dumper.c: A little post-pdump-rename comment fixup.
4353
4354 2001-01-09  Jerry James  <james@eecs.ku.edu>
4355
4356         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
4357
4358 2001-01-13  Martin Buchholz  <martin@xemacs.org>
4359
4360         * *.[ch]: Globally rename symbols using the following `pdump-rename'
4361         script:
4362         #!/bin/sh
4363         replace_symbol () {
4364           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
4365         }
4366
4367         replace_symbol pdump_wire_lists pdump_weak_object_chains
4368         replace_symbol pdump_wire_list dump_add_weak_object_chain
4369
4370         replace_symbol pdump_wires pdump_root_objects
4371         replace_symbol pdump_wire dump_add_root_object
4372
4373         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
4374         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
4375
4376         replace_symbol dumpstructinfos pdump_root_struct_ptrs
4377         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
4378         replace_symbol dumpstructinfo pdump_root_struct_ptr
4379         replace_symbol dumpstruct dump_add_root_struct_ptr
4380
4381         replace_symbol dumpopaque dump_add_opaque
4382         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
4383         replace_symbol dumpopaqueinfos pdump_opaques
4384         replace_symbol dumpopaqueinfo pdump_opaque
4385
4386         replace_symbol nb_structdump nb_root_struct_ptrs
4387         replace_symbol nb_opaquedump nb_opaques
4388
4389         replace_symbol align_table pdump_align_table
4390         replace_symbol dump_header pdump_header
4391
4392         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
4393         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
4394
4395
4396 2001-01-12  Martin Buchholz  <martin@xemacs.org>
4397
4398         * s/aix4.h: Keep the C for AIX compiler from overaggressively
4399         optimizing bytecount_to_charcount().
4400
4401 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
4402
4403         * config.h.in:
4404         (HAVE_DLFCN_H): Removed.
4405         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
4406
4407 2001-01-06  Martin Buchholz  <martin@xemacs.org>
4408
4409         Portable dumper maintainability improvements.
4410         * alloc.c (staticpro):
4411         * alloc.c (staticpro_nodump):
4412         * alloc.c (garbage_collect_1):
4413         * alloc.c (reinit_alloc_once_early):
4414         * alloc.c (init_alloc_once_early):
4415         * alloc.c: Move dumper functions to alloc.c.
4416         * dumper.c (pdump_backtrace):
4417         * dumper.c (pdump_dump_structs):
4418         * dumper.c (pdump_dump_opaques):
4419         * dumper.c (pdump_dump_rtables):
4420         * dumper.c (pdump_dump_wired):
4421         * dumper.c (pdump):
4422         * dumper.c (pdump_load_check):
4423         * dumper.c (pdump_load_finish):
4424         * dumper.c (pdump_file_unmap):
4425         * dumper.c (pdump_file_get):
4426         * dumper.c (pdump_resource_free):
4427         * dumper.c (pdump_resource_get):
4428         * dumper.c (pdump_file_free):
4429         * dumper.c (pdump_file_try):
4430         * dumper.c (pdump_load):
4431         Remove fixed size limits on staticpro(), staticpro_nodump(),
4432         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
4433         Remove custom code for dumping lrecord_implementations_table - use
4434         dumpopaque instead.
4435         Remove (most of the) custom code for dumping staticpros - dump it
4436         like any other dynarr.
4437
4438         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
4439         * dumper.c: Moved functions from alloc.c.
4440         * alloc.c (dumpstruct): Moved to dumper.c.
4441         * alloc.c (dumpopaque): Likewise.
4442         * alloc.c (pdump_wire): Likewise.
4443         * alloc.c (pdump_wire_list): Likewise.
4444
4445         * lisp.h (Dynarr_sizeof): New.
4446         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
4447         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
4448         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
4449
4450         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
4451         * lisp.h (dumpopaque): ditto.
4452         * lisp.h (pdump_wire): ditto.
4453         * lisp.h (pdump_wire_list): ditto.
4454
4455 2001-01-09  Martin Buchholz  <martin@xemacs.org>
4456
4457         * make-src-depend (PrintPatternDeps):
4458         Use `sort' to make output independent of perl version.
4459
4460 2001-01-08  Martin Buchholz  <martin@xemacs.org>
4461
4462         Port to Netbsd 1.5.
4463         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
4464         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
4465
4466 2001-01-03  Didier Verna  <didier@xemacs.org>
4467
4468         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
4469         that `focus_frame' is alive before thinking of calling
4470         `redisplay_redraw_cursor' on it.
4471
4472 2001-01-08  Martin Buchholz <martin@xemacs.org>
4473
4474         * XEmacs 21.2.40 is released.
4475
4476 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
4477
4478         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
4479
4480 2001-01-06  Martin Buchholz  <martin@xemacs.org>
4481
4482         * alloc.c (dbg_valmask): Make const.
4483         * alloc.c (dbg_typemask): Make const.
4484         * alloc.c (dbg_USE_UNION_TYPE): Make const.
4485         * alloc.c (dbg_valbits): Make const.
4486         * alloc.c (dbg_gctypebits): Make const.
4487
4488 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
4489
4490         * redisplay-x.c (x_bevel_area):
4491         redisplay.h (struct rune):
4492         Typo fixes in comments.
4493
4494 2001-01-05  Andy Piper  <andy@xemacs.org>
4495
4496         * glyphs-x.c (x_redisplay_widget): use size changed for offset
4497         adjustment.
4498
4499         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
4500
4501 2001-01-05  Martin Buchholz  <martin@xemacs.org>
4502
4503         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
4504
4505         * mule-ccl.c (stack_idx_of_map_multiple):
4506         Non const global data must not be initialized!
4507         Found by MIYASHITA Hisashi.
4508
4509 2001-01-02  Andy Piper  <andy@xemacs.org>
4510
4511         * frame.c (change_frame_size): make sure frame size is always
4512         marked as changed.
4513
4514         * glyphs.c (image_instance_layout): minor code reuse.
4515
4516         * window.c (Fcurrent_window_configuration): revert previous
4517         change.
4518
4519 2001-01-02  Martin Buchholz  <martin@xemacs.org>
4520
4521         * glyphs.h:
4522         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
4523
4524 2000-12-31  Andy Piper  <andy@xemacs.org>
4525
4526         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
4527         when widget gets unmapped.
4528
4529         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
4530         function. Make sure widgets losing focus don't just drop it.
4531         (handle_focus_event_1): record the widget with focus.
4532
4533 2000-12-31  Andy Piper  <andy@xemacs.org>
4534
4535         * window.c (allocate_window): use
4536         make_image_instance_cache_hash_table.
4537         (make_dummy_parent): ditto.
4538         (Fset_window_configuration): ditto.
4539
4540         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
4541
4542         * glyphs.c (process_image_string_instantiator): use
4543         INSTANTIATOR_TYPE.
4544         (get_image_instantiator_governing_domain): ditto.
4545         (normalize_image_instantiator): ditto.
4546         (instantiate_image_instantiator): ditto.
4547         (make_image_instance_1): ditto.
4548         (image_instantiate): ditto. Key on glyph *and* instantiator type.
4549         (instantiator_eq_equal): new function for use with instance hash
4550         tables.
4551         (instantiator_eq_hash): ditto.
4552         (make_image_instance_cache_hash_table): create a suitable hash
4553         table for storing image instances.
4554
4555         * elhash.h (hash_table_weakness): new internal weakness type
4556         HASH_TABLE_KEY_CAR_VALUE_WEAK.
4557         declare new functions.
4558
4559         * elhash.c (finish_marking_weak_hash_tables): introduce yet
4560         another weakness type for glyphs.
4561         (make_standard_lisp_hash_table): new function split out from
4562         make_general_lisp_hash_table.
4563         (make_lisp_hash_table): call make_standard_lisp_hash_table.
4564         (hash_table_instantiate): ditto.
4565         (Fmake_hash_table): ditto.
4566
4567 2000-12-31  Martin Buchholz <martin@xemacs.org>
4568
4569         * XEmacs 21.2.39 is released.
4570
4571 2000-12-29  Andy Piper  <andy@xemacs.org>
4572
4573         * menubar.c (menubar_visible_p_changed): signal the frame changed.
4574
4575         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
4576         the frame has changed so that we pick up geometry changes such as
4577         menubar visibility.
4578
4579 2000-12-28  Andy Piper  <andy@xemacs.org>
4580
4581         * lastfile.c (my_ebss): make a char array so we can pad the
4582         bss. Fixes cygwin unexec.
4583
4584         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
4585
4586 2000-12-26  Andy Piper  <andy@xemacs.org>
4587
4588         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
4589         comments and try and be more precise about a non-/SIGIO world.
4590         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
4591         SIGIO.
4592
4593         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
4594         we don't normalize to zero width or height.
4595
4596 2000-12-24  Andy Piper  <andy@xemacs.org>
4597
4598         * Makefile.in.in (ldflags): add -mwindows when appropriate.
4599
4600 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
4601
4602         * s/sco5.h: SCO 5 has pty support.
4603
4604 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
4605
4606         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
4607         input-method-xlib.c contains whole contents of input-method-xfs.c,
4608         so we can use input-method-xlib.c's code for USE_XFONTSET
4609         using #ifdefs.
4610         * input-method-xfs.c: removed.
4611
4612 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
4613
4614         * file-coding.h (enum coding_category_type): reorder enumerators to
4615         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
4616         (now one greater than largest real coding_category_type enumerator).
4617         * file-coding.c (coding_category_symbol, coding_category_by_priority,
4618         coding_category_system, fcd_descriptihon_1, decode_coding_category,
4619         Fcoding_category_list, Fset_coding_priority_list,
4620         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
4621         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
4622
4623 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
4624
4625         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
4626         * redisplay-output.c (redisplay_output_window): Clear top of window
4627         when face is changed.
4628         * redisplay-x.c (x_redraw_exposed_window): Call
4629         redisplay_clear_top_of_window.
4630         * redisplay.h: Publish redisplay_clear_top_of_window.
4631
4632 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
4633
4634         * buffer.c (Fkill_buffer): Map over all devices.
4635         * window.c (window_loop): Remove UNSHOW_BUFFER code.
4636         (list_windows): New function.
4637         (list_all_windows): Ditto.
4638         (Freplace_buffer_in_windows): Use them.
4639
4640 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4641
4642         * database.c (berkdb_subtype): Recognize new subtype `queue'.
4643         (Fopen_database): Use `db_create' instead of `db_open'.
4644         (syms_of_database): Initialize Qqueue.
4645
4646 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
4647
4648         * buffer.c (common_init_complex_vars_of_buffer): Initialize
4649         buffer_local_face_property.
4650         * buffer.h (struct buffer): New member buffer_local_face_property.
4651         * window.c (Fset_window_buffer):  Mark window's face as changed
4652         when buffer has buffer local face.
4653         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
4654         * objects.c (color_after_change): Set buffer_local_face_property
4655         when locale of face specifier is buffer.
4656         * objects.c (font_after_change): Ditto.
4657         * objects.c (face_boolean_after_change): Ditto.
4658         * glyphs.c (image_after_change): Ditto.
4659
4660 2000-12-09  Dan Holmsand  <dan@eyebee.com>
4661
4662         * nt.c (mswindows_fstat): Report file permissions, volume serial
4663         number, etc. Code adapted from FSF Emacs 20.7.
4664
4665 2000-12-09  Dan Holmsand  <dan@eyebee.com>
4666
4667         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
4668         of stat when we don't have symbolic links, to make sure
4669         mswindows_stat is called on mswindows.
4670
4671 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
4672
4673         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
4674
4675 2000-12-12  Martin Buchholz  <martin@xemacs.org>
4676
4677         * doprnt.c (emacs_doprnt_1): More printing fixes.
4678         Make printing of numbers compatible with libc and FSF Emacs.
4679         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
4680         Use the system printf to do most of the hard work of formatting,
4681         instead of doprnt_1().
4682         Calculate memory to allocate for format string.
4683         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
4684         (doprnt_1): Cleaner code and documentation.
4685
4686 2000-12-01  Jerry James  <james@eecs.ukans.edu>
4687
4688         * Makefile.in.in: Use the loop variable to install headers.
4689
4690 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4691
4692         * window.c (Fsplit_window): Don't invalidate face cache.
4693
4694 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4695
4696         * minibuf.c (Fall_completions): Undo the previous change
4697         which removed checking elements start with space.
4698
4699 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
4700
4701         * mule-canna.c: Didier suppression.
4702
4703 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
4704
4705         * mule-canna.c: rename static unsigned char buf[] to key_buffer
4706         (warning suppression).  Add English comment translations.
4707
4708 2000-12-05  Martin Buchholz  <martin@xemacs.org>
4709
4710         * unexelfsgi.c (unexec): Better test for mmap failure.
4711
4712 2000-12-05  Martin Buchholz <martin@xemacs.org>
4713
4714         * XEmacs 21.2.38 is released.
4715
4716 2000-12-05  Martin Buchholz  <martin@xemacs.org>
4717
4718         * redisplay.c (bar-cursor): Make a user variable.
4719
4720         * symsinit.h: Add init_postgresql_from_environment.
4721
4722 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4723
4724         * regex.c: Convert to clean C.
4725
4726 2000-12-05  Dan Holmsand  <dan@eyebee.com>
4727
4728         * realpath.c:
4729         Don't #include sysfile.h. Revert to duplicating PATH_MAX
4730         initialization.
4731         (sys_readlink): renamed to system_readlink to avoid conflict with
4732         the other sys_readlink.
4733
4734 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
4735
4736         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
4737
4738 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
4739
4740         * postgresql.c (init_postgresql_from_environment): new function.
4741         (vars_of_postgresql): Move code initializing Lisp variables out and
4742         into init_postgresql_from_environment.
4743         emacs.c (main_1): Call init_postgresql_from_environment if and only
4744         if running a dumped XEmacs.
4745
4746 2000-08-31  Dan Holmsand  <dan@eyebee.com>
4747
4748         * buffer.c: Make find-file-compare-truenames default to true on
4749         windows.
4750
4751         * realpath.c (win32_abs_start):
4752         (cygwin_readlink):
4753         (win32_readlink): New functions.
4754         (xrealpath): Return really real filenames on windows.
4755
4756         * fileio.c (Ffile_truename): Make file-truename work on windows.
4757
4758 2000-11-29  Didier Verna  <didier@xemacs.org>
4759
4760         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
4761         * faces.c (update_face_cachel_data): use it.
4762         * faces.c (add_face_cachel): use it. Complete background pixmap
4763         frobbing in face cache if `update_face_cachel_data' has not done so.
4764
4765 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
4766
4767         * search.c (string_match_1): Don't set last_thing_searched
4768         when search failed.
4769
4770 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
4771
4772         * buffer.c: Include casetab.h
4773         (common_init_complex_vars_of_buffer): Use new case-table object.
4774         * buffer.h: Include casetab.h
4775         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
4776         (DOWNCASE_TABLE_OF): Ditto.
4777         * bufslots.h: Remove char-tables and add case-table.
4778         * casetab.c: Include casetab.h
4779         (CASE_TABLE_P): Removed.
4780         (mark_case_table): New function.
4781         (allocate_case_table): New function.
4782         (Fcase_table_p): Use new case-table.
4783         (case_table_char): New function.
4784         (Fget_case_table): Ditto.
4785         (Fput_case_table): Ditto.
4786         (Fput_case_table_pair): Ditto.
4787         (Fcopy_case_table): Ditto.
4788         (Fcurrent_case_table): Return case-table.
4789         (Fstandard_case_table): Return case-table.
4790         (Fset_case_table): Fix doc-string.
4791         (set_case_table): Use case-table
4792         (syms_of_casetab): DEFSUBR new functions.
4793         (complex_vars_of_casetab): Set up standard case-table.
4794         * casetab.h: New file.
4795         * editfns.c: Include casetab.h
4796         (Fcompare_buffer_substrings): Use case-table.
4797         * inline.c: Include casetab.h
4798         * lisp.h: Remove bogus extern.
4799         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
4800         * search.c: Include casetab.h
4801         (TRANSLATE_ASCII): Removed.
4802         (TRANSLATE): Unconditionally translate character.
4803         (looking_at_1): Use case-table.
4804         (string_match_1): Ditto.
4805         (fast_string_match): Ditto.
4806         (search_command): Ditto.
4807         (search_buffer): Separate boyer_moore.  Check whether
4808         boyer_moore is possible.
4809         (simple_search): New function.
4810         (boyer_moore): Separated from search_buffer. Translate char.
4811
4812 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
4813
4814         * regex.c (RE_TR_ASCII): Removed.
4815         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
4816         (PATFETCH): Call PATFETCH_RAW.
4817         (PATFETCH_RAW): Fetch Emchar.
4818         (PATUNFETCH): Decrement charptr.
4819         (GET_BUFFER_SPACE): Rename b to buf_end.
4820         (BUF_PUSH): Ditto.
4821         (BUF_PUSH_2): Ditto.
4822         (BUF_PUSH_3): Ditto.
4823         (EXTEND_BUFFER): Ditto.
4824         (SET_LIST_BIT): Ditto.
4825         (regex_compile): Ditto.  Translate non ASCII char.
4826         (compile_range): Ditto.
4827         (re_search_2): Ditto.
4828         (re_match_2_internal): Compare Emchar.
4829         (bcmp_translate): Ditto.
4830
4831 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
4832
4833         * lisp.h (basic char/int typedefs):  comment improvement.
4834
4835 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
4836
4837         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
4838         unstomp inhibit_site_lisp.  Improve comments.
4839
4840 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
4841
4842         * mule-charset.c (Fcharset_property):  improve type checking, comments.
4843
4844 2000-11-28  Andy Piper  <andy@xemacs.org>
4845
4846         * redisplay-output.c (redisplay_output_subwindow): make sure we do
4847         clipped display for windows in the gutter also.
4848         (redisplay_display_boxes_in_window_p): change semantics of return
4849         codes to be more intuitive.
4850
4851         * gutter.h: declare display_boxes_in_gutter_p.
4852
4853         * gutter.c (display_boxes_in_gutter_p): new function for
4854         redisplay.
4855
4856 2000-11-22  Andy Piper  <andy@xemacs.org>
4857
4858         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
4859         autodetect domain.
4860
4861 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
4862
4863         * callproc.c (Fold_call_process_internal):
4864         * gpm.c (Freceive_gpm_event):
4865         (tty_get_foreign_selection): Might be just warning supression.
4866         * fileio.c (Fwrite_region_internal):
4867         (Fset_visited_file_modtime):
4868         * keymap.c (event_matches_key_specifier_p):
4869         Initialize GCPROed variable.
4870
4871         * menubar-x.c (command_builder_find_menu_accelerator):
4872         Initialize before use.
4873
4874 2000-11-23  Andy Piper  <andy@xemacs.org>
4875
4876         * unexcw.c (unexec): make the resulting executable executable.
4877
4878 2000-11-21  Martin Buchholz  <martin@xemacs.org>
4879
4880         * doc.c (get_doc_string):
4881         Use size_t, not int, for result of XSTRING_LENGTH.
4882
4883         * cmds.c (Fdelete_char):
4884         * cmds.c (Fpoint_at_eol):
4885         * cmds.c (Fself_insert_command):
4886         Use EMACS_INT, not int, for result of XINT.
4887         Someday, someone will want to insert more than 2**31 identical characters.
4888
4889         * cmds.c (Fdelete_char):
4890         * cmds.c (Fdelete_backward_char):
4891         * syntax.c (Fforward_word):
4892         * syntax.c (Fforward_comment):
4893         Make COUNT argument optional, for consistency with forward-char et al.
4894
4895 2000-11-22  Martin Buchholz  <martin@xemacs.org>
4896
4897         * lisp.h:
4898         * print.c (long_to_string):
4899         Return a useful value: the pointer at end of data written.
4900
4901         * doprnt.c:
4902         Use `static const char * const' for constant strings.
4903         (union printf_arg): Delete `i', `ui' members.
4904         (get_doprnt_args):
4905         (emacs_doprnt_1):
4906         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
4907         Do all printf-ing via the `l' specifier.
4908         Use EMACS_INT instead of int.
4909         Optimize.
4910
4911 2000-11-20  Didier Verna  <didier@xemacs.org>
4912
4913         * faces.c (update_face_cachel_data): don't frob the background
4914         pixmap when the window is being created. The face is needed but
4915         does not exist yet.
4916
4917 2000-11-20  Andy Piper  <andy@xemacs.org>
4918
4919         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
4920         messing with a debug environment.
4921
4922 2000-11-20  Martin Buchholz  <martin@xemacs.org>
4923
4924         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
4925
4926 2000-11-20  Martin Buchholz  <martin@xemacs.org>
4927
4928         * casetab.c (Fcase_table_p): Fix compile error and crash.
4929
4930 2000-11-18  Philip Aston  <philipa@mail.com>
4931
4932         * s/cygwin32.h: Cygwin has SVR4-like pty support.
4933
4934 2000-11-18  Martin Buchholz  <martin@xemacs.org>
4935
4936         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
4937         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
4938
4939 2000-11-17  Martin Buchholz  <martin@xemacs.org>
4940
4941         * config.h.in: Define HAVE_ELF_H if elf.h exists.
4942         * unexelf.c: Use HAVE_ELF_H.
4943         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
4944         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
4945         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
4946         Greg Harrington <greg_harrington@hotmail.com> provided a machine
4947         for testing.
4948         So this is an unexelfsgi.c from a different line of development.
4949
4950 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
4951
4952         * regex.c (RE_TR_ASCII): New function.
4953         (RE_TRANSLATE): Call it.
4954
4955 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
4956
4957         * buffer.h (TRT_TABLE_OF): Remove assert.
4958         (IN_TRT_TABLE_DOMAIN): Removed.
4959
4960 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
4961
4962         * free-hook.c (log_gcpro):
4963         (show_gcprohist): Add support for GCPRO5.
4964
4965 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
4966
4967         * emacs.c (main_1): Improve -sd error message when --pdump=no.
4968
4969 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
4970
4971         * symeval.h: Declare flush_all_buffer_local_cache.
4972
4973         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
4974         (flush_buffer_local_cache): Added.
4975         (flush_all_buffer_local_cache): Added.
4976
4977         * lrecord.h: Remove unused XD_LO_RESET_NIL.
4978
4979         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
4980         (pdump_dump_data): Ditto.
4981         (pdump_reloc_one): Ditto.
4982         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
4983         before dumping.
4984
4985
4986 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
4987
4988         * buffer.c: Remove if 0'ed entry.
4989         * buffer.h: Rewrite TRT to use char-table.
4990         * bufslots.h: Remove mirror tables.
4991         * casetab.c: Remove mirror tables.
4992         (CASE_TABLE_P): New macro.
4993         (Fcase_table_p): Element of a case table is string or char-table.
4994         (make_mirror_trt_table): Removed.
4995         (set_case_table): Setup char-table from strings for backward
4996         compatibility.
4997         * dired.c (Fdirectory_files):
4998         * dired-msw.c: (mswindows_get_files):
4999         * lisp.h: Change prototype of re_pattern_buffer.
5000         * regex.c: (RE_TRANSLATE): New macro.
5001         (TRANSLATE_P): Ditto.
5002         Change translate to type RE_TRANSLATE_TYPE.
5003         * regex.h: Define RE_TRANSLATE_TYPE
5004         * search.c (TRANSLATE): New macro.
5005         (TRANSLATE_ASCII): New macro.
5006         Translate table is changed to Lisp_Object.
5007         (signal_failure): Inhibit return.
5008
5009 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
5010
5011         * device-msw.c:
5012         * eldap.c:
5013         * event-Xt.c:
5014         * event-stream.c:
5015         * print.c:
5016         Do UNGCPRO before return.
5017
5018 2000-11-14  Martin Buchholz <martin@xemacs.org>
5019
5020         * XEmacs 21.2.37 is released.
5021
5022 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
5023
5024         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
5025         Add comments about discarded return value.
5026
5027 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
5028
5029         * callint.c:
5030         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
5031
5032 2000-10-27  Andy Piper  <andy@xemacs.org>
5033
5034         * gutter.c (Fset_default_gutter_position): default left and right
5035         gutters to visible.
5036         (calculate_gutter_size): calculate resonable heuristic for left
5037         and right gutter sizes.
5038         (specifier_vars_of_gutter): change left and right gutter sizes to
5039         autodetect.
5040         (calculate_gutter_size_from_display_lines): new function.
5041         (output_gutter): check for resizing on left and right gutters.
5042         (clear_gutter): don't special case top and left gutters.
5043         (specifier_vars_of_gutter): use new signature for
5044         set_specifier_caching.
5045
5046         * glyphs-x.c (x_redisplay_widget): spelling fix.
5047         * glyphs.c (specifier_vars_of_glyphs):
5048         * menubar.c (specifier_vars_of_menubar):
5049         * redisplay.c (specifier_vars_of_redisplay):
5050         * toolbar.c (specifier_vars_of_toolbar):
5051         * window.c (specifier_vars_of_window):
5052         * scrollbar.c (specifier_vars_of_scrollbar):
5053         (complex_vars_of_scrollbar): use new signature for
5054         set_specifier_caching.
5055
5056         * specifier.c (set_specifier_caching): include recompute flag.
5057         (recompute_one_cached_specifier_in_window): always recompute if
5058         flag set.
5059         (recompute_one_cached_specifier_in_frame): ditto.
5060
5061         * specifier.h (struct specifier_caching): add recompute flag.
5062
5063 2000-10-24  Andy Piper  <andy@xemacs.org>
5064
5065         * unexcw.c (copy_executable_and_dump_data_section): add new
5066         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
5067         5.0 happy.
5068
5069 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5070
5071         * console-x.h (x_device): New member modifier_release_time.
5072         * event-Xt.c (x_handle_sticky_modifiers):
5073         Bound interval modifier keys are sticky.
5074         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
5075         * events.h: extern it.
5076
5077 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5078
5079         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
5080
5081 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5082
5083         * event-stream.c (execute_command_event): Preserve current_events
5084         and the like when event is misc-user-event.
5085         Inhibit quit during the call to maybe_echo_keys.
5086
5087 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
5088
5089         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
5090         symlink when buffer is killed.
5091         (inhibit_clash_detection): New variable.
5092
5093 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5094
5095         * console.c (Fset_input_method): Trigger redisplay on tty.
5096
5097 2000-11-07  Martin Buchholz  <martin@xemacs.org>
5098
5099         * process.c (Fprocess_status): Revert to previous behavior:
5100         (process-status "nosuchprocess") ==> nil
5101
5102 2000-11-06  Martin Buchholz  <martin@xemacs.org>
5103
5104         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
5105         Work around another GCC 2.95.2 optimizer bug.
5106
5107 2000-11-02  Martin Buchholz  <martin@xemacs.org>
5108
5109         * process.c (Fget_process): Use LIST_LOOP_2.
5110         (kill_buffer_processes): Use LIST_LOOP_2.
5111
5112         * minibuf.c (Fall_completions):
5113         Delete old non-functional code for FSF fourth argument.
5114
5115         * frame.c (frame_matches_frame_spec):
5116         Renamed from `frame_matches_frametype'.  Update all callers.
5117         (device_matches_device_spec):
5118         Renamed from 'device_matches_console_spec'.  Update all callers.
5119
5120         * doc.c (Fsubstitute_command_keys):
5121         Remove buffer overflow crash.  Small code cleanups.
5122
5123         * casetab.c (check_case_table): Simpler code.
5124
5125         * window.c (Freplace_buffer_in_windows):
5126         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
5127         (and similar implementation) as Fdelete_windows_on.
5128         Update all callers.
5129
5130         * alloc.c (Fmake_list):
5131         * alloc.c (make_vector):
5132         * alloc.c (Fmake_vector):
5133         * alloc.c (make_bit_vector):
5134         * alloc.c (Fmake_bit_vector):
5135         * alloc.c (Fbit_vector):
5136         * alloc.c (Fmake_string):
5137         * alloc.c (Fpurecopy):
5138         * alloc.c (Fmemory_limit):
5139         * buffer.c:
5140         * buffer.c (Fget_buffer):
5141         * buffer.c (Fkill_buffer):
5142         * buffer.c (complex_vars_of_buffer):
5143         * bytecode.c (Fcompiled_function_stack_depth):
5144         * callint.c (Fprefix_numeric_value):
5145         * event-stream.c:
5146         * event-stream.c (Fread_key_sequence):
5147         * casetab.c:
5148         * casetab.c (Fcase_table_p):
5149         * casetab.c (check_case_table):
5150         * casetab.c (Fset_case_table):
5151         * casetab.c (Fset_standard_case_table):
5152         * chartab.c:
5153         * chartab.c (Fchar_table_type):
5154         * chartab.c (Freset_char_table):
5155         * chartab.c (Fget_char_table):
5156         * chartab.c (Fget_range_char_table):
5157         * chartab.c (Fput_char_table):
5158         * chartab.c (Fmap_char_table):
5159         * chartab.c (Fcategory_table_p):
5160         * chartab.c (Fcheck_category_at):
5161         * chartab.c (Fchar_in_category_p):
5162         * chartab.c (Fcategory_table):
5163         * chartab.c (Fcopy_category_table):
5164         * chartab.c (Fset_category_table):
5165         * chartab.c (Fcategory_designator_p):
5166         * chartab.c (Fcategory_table_value_p):
5167         * cmds.c (Fdelete_char):
5168         * cmds.c (Fdelete_backward_char):
5169         * cmds.c (Fself_insert_command):
5170         * cmds.c (Fself_insert_internal):
5171         * console.c (Fvalid_console_type_p):
5172         * console.c (Fcdfw_console):
5173         * console.c (Fconsole_type):
5174         * console.c (Fconsole_name):
5175         * console.c (Fconsole_device_list):
5176         * console.c (Fconsole_on_window_system_p):
5177         * data.c:
5178         * data.c (Feq):
5179         * data.c (Fold_eq):
5180         * data.c (Fsubr_interactive):
5181         * data.c (Fchar_to_int):
5182         * data.c (Fint_to_char):
5183         * data.c (Fsetcar):
5184         * data.c (Fsetcdr):
5185         * data.c (Fnumber_to_string):
5186         * data.c (Fstring_to_number):
5187         * data.c (Frem):
5188         * database.c (mark_database):
5189         * database.c (finalize_database):
5190         * database.c (Fdatabase_live_p):
5191         * database.c (Fdatabasep):
5192         * device-x.c (Fx_get_resource):
5193         * device.c (Fdfw_device):
5194         * dired.c:
5195         * dired.c (Ffile_name_completion):
5196         * dired.c (Ffile_name_all_completions):
5197         * dired.c (Fuser_name_completion):
5198         * dired.c (Fuser_name_completion_1):
5199         * dired.c (Fuser_name_all_completions):
5200         * doc.c (Fdocumentation):
5201         * doc.c (Fdocumentation_property):
5202         * doc.c (Fsubstitute_command_keys):
5203         * editfns.c:
5204         * editfns.c (Fchar_to_string):
5205         * editfns.c (Fstring_to_char):
5206         * editfns.c (Ftemp_directory):
5207         * editfns.c (Finsert_char):
5208         * editfns.c (Fbuffer_substring_no_properties):
5209         * editfns.c (Fnarrow_to_region):
5210         * editfns.c (Fchar_equal):
5211         * editfns.c (Fchar_Equal):
5212         * editfns.c (Ftranspose_regions):
5213         * emacs.c (Fdump_emacs):
5214         * eval.c (Fthrow):
5215         * eval.c (Fcommand_execute):
5216         * eval.c (Fautoload):
5217         * eval.c (Fbacktrace):
5218         * eval.c (Fbacktrace_frame):
5219         * events.c:
5220         * events.c (Fcopy_event):
5221         * events.c (Fcharacter_to_event):
5222         * events.c (Fevent_button):
5223         * events.c (Fevent_process):
5224         * extents.c:
5225         * extents.c (Fnext_extent_change):
5226         * extents.c (Fextent_property):
5227         * faces.c (Ffacep):
5228         * faces.c (Fmake_face):
5229         * file-coding.c:
5230         * file-coding.c (Fencode_shift_jis_char):
5231         * file-coding.c (Fencode_big5_char):
5232         * fileio.c (Ffile_name_directory):
5233         * fileio.c (Ffile_name_nondirectory):
5234         * fileio.c (Ffile_name_as_directory):
5235         * fileio.c (Fdirectory_file_name):
5236         * fileio.c (Ffile_truename):
5237         * fileio.c (Fsubstitute_in_file_name):
5238         * fileio.c (Ffile_modes):
5239         * fileio.c (Fset_file_modes):
5240         * fileio.c (Fset_default_file_modes):
5241         * fileio.c (Fverify_visited_file_modtime):
5242         * floatfns.c (Facos):
5243         * floatfns.c (Fasin):
5244         * floatfns.c (Fatan):
5245         * floatfns.c (Fcos):
5246         * floatfns.c (Fsin):
5247         * floatfns.c (Ftan):
5248         * floatfns.c (Fbessel_j0):
5249         * floatfns.c (Fbessel_j1):
5250         * floatfns.c (Fbessel_jn):
5251         * floatfns.c (Fbessel_y0):
5252         * floatfns.c (Fbessel_y1):
5253         * floatfns.c (Fbessel_yn):
5254         * floatfns.c (Ferf):
5255         * floatfns.c (Ferfc):
5256         * floatfns.c (Flog_gamma):
5257         * floatfns.c (Fexp):
5258         * floatfns.c (Fexpt):
5259         * floatfns.c (Flog):
5260         * floatfns.c (Flog10):
5261         * floatfns.c (Fsqrt):
5262         * floatfns.c (Fcube_root):
5263         * floatfns.c (Facosh):
5264         * floatfns.c (Fasinh):
5265         * floatfns.c (Fatanh):
5266         * floatfns.c (Fcosh):
5267         * floatfns.c (Fsinh):
5268         * floatfns.c (Ftanh):
5269         * floatfns.c (Fabs):
5270         * floatfns.c (Ffloat):
5271         * floatfns.c (Flogb):
5272         * floatfns.c (Fceiling):
5273         * floatfns.c (Ffloor):
5274         * floatfns.c (Fround):
5275         * floatfns.c (Ftruncate):
5276         * floatfns.c (Ffceiling):
5277         * floatfns.c (Fffloor):
5278         * floatfns.c (Ffround):
5279         * floatfns.c (Fftruncate):
5280         * fns.c (Fstring_equal):
5281         * fns.c (Fstring_lessp):
5282         * fns.c (concat2):
5283         * fns.c (concat3):
5284         * fns.c (vconcat2):
5285         * fns.c (vconcat3):
5286         * fns.c (Fsubstring):
5287         * fns.c (Fassoc):
5288         * fns.c (Fold_assoc):
5289         * fns.c (assoc_no_quit):
5290         * fns.c (Fassq):
5291         * fns.c (Fold_assq):
5292         * fns.c (assq_no_quit):
5293         * fns.c (Frassoc):
5294         * fns.c (Fold_rassoc):
5295         * fns.c (Frassq):
5296         * fns.c (Fold_rassq):
5297         * fns.c (rassq_no_quit):
5298         * fns.c (Fremassoc):
5299         * fns.c (remassoc_no_quit):
5300         * fns.c (Fremassq):
5301         * fns.c (remassq_no_quit):
5302         * fns.c (Fremrassoc):
5303         * fns.c (Fremrassq):
5304         * fns.c (remrassq_no_quit):
5305         * fns.c (Fsort):
5306         * fns.c (Fplist_get):
5307         * fns.c (Fplist_put):
5308         * fns.c (Fplist_remprop):
5309         * fns.c (Fplist_member):
5310         * fns.c (Flax_plist_get):
5311         * fns.c (Flax_plist_put):
5312         * fns.c (Flax_plist_remprop):
5313         * fns.c (Flax_plist_member):
5314         * fns.c (Fequal):
5315         * fns.c (Fold_equal):
5316         * fns.c (Frequire):
5317         * fns.c (Fbase64_encode_region):
5318         * fns.c (Fbase64_encode_string):
5319         * fns.c (Fbase64_decode_region):
5320         * frame.c:
5321         * frame.c (frame_matches_frame_spec):
5322         * frame.c (device_matches_device_spec):
5323         * frame.c (next_frame):
5324         * frame.c (previous_frame):
5325         * frame.c (Fnext_frame):
5326         * frame.c (Fprevious_frame):
5327         * frame.c (Fframe_property):
5328         * frame.c (Fset_frame_height):
5329         * frame.c (Fset_frame_size):
5330         * frame.h:
5331         * glyphs.c:
5332         * glyphs.c (if):
5333         * glyphs.c (decode_error_behavior_flag):
5334         * glyphs.c (Fmake_image_instance):
5335         * indent.c (Findent_to):
5336         * intl.c (Fignore_defer_gettext):
5337         * keymap.c (Fkeymapp):
5338         * keymap.c (Flookup_key):
5339         * lread.c:
5340         * lread.c (Fload_internal):
5341         * lread.c (Feval_buffer):
5342         * lread.c (Feval_region):
5343         * macros.c (Fexecute_kbd_macro):
5344         * marker.c (set_marker_internal):
5345         * marker.c (Fset_marker):
5346         * marker.c (set_marker_restricted):
5347         * marker.c (Fcopy_marker):
5348         * marker.c (noseeum_copy_marker):
5349         * menubar.c:
5350         * menubar.c (Fpopup_menu):
5351         * minibuf.c:
5352         * mule-charset.c (Fcharset_name):
5353         * mule-charset.c (Fchar_charset):
5354         * mule-charset.c (Fchar_octet):
5355         * mule-charset.c (Fsplit_char):
5356         * mule-wnnfns.c (Fwnn_open):
5357         * mule-wnnfns.c (Fwnn_dict_comment):
5358         * mule-wnnfns.c (Fwnn_quit_henkan):
5359         * mule-wnnfns.c (Fwnn_word_toroku):
5360         * mule-wnnfns.c (Fwnn_word_sakujo):
5361         * mule-wnnfns.c (Fwnn_word_use):
5362         * mule-wnnfns.c (Fwnn_hindo_set):
5363         * objects.c:
5364         * objects.c (Fmake_color_instance):
5365         * objects.c (Fmake_font_instance):
5366         * print.c (Fwrite_char):
5367         * process.c:
5368         * process.c (mark_process):
5369         * process.c (print_process):
5370         * process.c (get_process_from_usid):
5371         * process.c (Fprocessp):
5372         * process.c (Fprocess_live_p):
5373         * process.c (Fget_process):
5374         * process.c (Fget_buffer_process):
5375         * process.c (get_process):
5376         * process.c (Fprocess_id):
5377         * process.c (Fprocess_name):
5378         * process.c (Fprocess_command):
5379         * process.c (init_process_io_handles):
5380         * process.c (start_process_unwind):
5381         * process.c (Fstart_process_internal):
5382         * process.c (Fopen_multicast_group_internal):
5383         * process.c (Fset_process_window_size):
5384         * process.c (read_process_output):
5385         * process.c (send_process):
5386         * process.c (Fprocess_tty_name):
5387         * process.c (Fset_process_buffer):
5388         * process.c (Fprocess_buffer):
5389         * process.c (Fprocess_mark):
5390         * process.c (set_process_filter):
5391         * process.c (Fset_process_filter):
5392         * process.c (Fprocess_filter):
5393         * process.c (Fprocess_send_region):
5394         * process.c (Fprocess_send_string):
5395         * process.c (exec_sentinel):
5396         * process.c (Fset_process_sentinel):
5397         * process.c (Fprocess_sentinel):
5398         * process.c (status_notify):
5399         * process.c (Fprocess_status):
5400         * process.c (Fprocess_exit_status):
5401         * process.c (process_send_signal):
5402         * process.c (Fprocess_send_eof):
5403         * process.c (deactivate_process):
5404         * process.c (remove_process):
5405         * process.c (Fdelete_process):
5406         * process.c (kill_buffer_processes):
5407         * process.c (Fprocess_kill_without_query):
5408         * process.c (Fprocess_kill_without_query_p):
5409         * rangetab.c:
5410         * rangetab.c (Fget_range_table):
5411         * rangetab.c (Fput_range_table):
5412         * rangetab.c (Fremove_range_table):
5413         * rangetab.c (Fclear_range_table):
5414         * search.c:
5415         * search.c (Fskip_chars_forward):
5416         * search.c (Fskip_chars_backward):
5417         * search.c (Fskip_syntax_forward):
5418         * search.c (Fskip_syntax_backward):
5419         * search.c (search_command):
5420         * search.c (Freplace_match):
5421         * search.c (Fregexp_quote):
5422         * select.c (Fown_selection_internal):
5423         * select.c (Fselection_owner_p):
5424         * select.c (Fselection_exists_p):
5425         * select.c (Fget_selection_internal):
5426         * specifier.c:
5427         * symbols.c:
5428         * symbols.c (Fintern):
5429         * symbols.c (Fintern_soft):
5430         * symbols.c (Funintern):
5431         * symbols.c (Fapropos_internal):
5432         * symbols.c (Fset_default):
5433         * syntax.c:
5434         * syntax.c (Fsyntax_table_p):
5435         * syntax.c (Fcopy_syntax_table):
5436         * syntax.c (Fset_syntax_table):
5437         * syntax.c (Fchar_syntax):
5438         * syntax.c (syntax_match):
5439         * syntax.c (Fmatching_paren):
5440         * syntax.c (Fforward_word):
5441         * syntax.c (scan_lists):
5442         * syntax.c (Fscan_lists):
5443         * syntax.c (Fscan_sexps):
5444         * syntax.c (Fparse_partial_sexp):
5445         * toolbar.c (Fcheck_toolbar_button_syntax):
5446         * tooltalk.doc:
5447         * window.c:
5448         * window.c (Fwindowp):
5449         * window.c (Fwindow_live_p):
5450         * window.c (Fwindow_point):
5451         * window.c (Fdelete_window):
5452         * window.c (Fnext_window):
5453         * window.c (Fprevious_window):
5454         * window.c (Fother_window):
5455         * window.c (window_loop):
5456         * window.c (Fget_lru_window):
5457         * window.c (Fsplit_window):
5458         * window.c (Fenlarge_window):
5459         * window.c (Fenlarge_window_pixels):
5460         * window.c (Fshrink_window):
5461         * window.c (Fshrink_window_pixels):
5462         * window.c (change_window_height):
5463         * window.c (Fwindow_configuration_p):
5464         * window.c (Fcurrent_window_configuration):
5465         * window.h:
5466         * casefiddle.c (casify_object):
5467         * casefiddle.c (Fupcase):
5468         * casefiddle.c (Fdowncase):
5469         * casefiddle.c (Fcapitalize):
5470         * casefiddle.c (Fupcase_initials):
5471         * casefiddle.c (casify_region_internal):
5472         * casefiddle.c (casify_region):
5473         * casefiddle.c (Fupcase_region):
5474         * casefiddle.c (Fdowncase_region):
5475         * casefiddle.c (Fcapitalize_region):
5476         * casefiddle.c (Fupcase_initials_region):
5477         * casefiddle.c (Fupcase_word):
5478         * casefiddle.c (Fdowncase_word):
5479         * casefiddle.c (Fcapitalize_word):
5480         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
5481         Replace 0 with '\0' when working with bytes.
5482         Replace initial "(" with "\(" in docstrings.
5483
5484 2000-11-01  Martin Buchholz  <martin@xemacs.org>
5485
5486         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
5487
5488         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
5489
5490 2000-10-31  Martin Buchholz  <martin@xemacs.org>
5491
5492         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
5493
5494 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5495
5496         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
5497         correctly.
5498
5499 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5500
5501         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
5502         (inhibit_auto_save_session): New variable.
5503         (vars_of_fileio): Declare and initialize them.
5504         * fileio.c (Fdo_auto_save): Don't create session file if
5505         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
5506
5507 2000-10-31  Martin Buchholz  <martin@xemacs.org>
5508
5509         * sgiplay.c (play_internal): C++ compilability.
5510         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
5511         * callproc.c (Fold_call_process_internal):
5512         Remove unused vars `env', `first'.
5513         * scrollbar.c (update_scrollbar_instance):
5514         #### unused var `current_window'.
5515         * redisplay-tty.c: Put currently unused vars insert_mode_on,
5516         etc. within #ifdef NOT_YET.
5517         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
5518         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
5519         * specifier.c (specifier_instance):
5520         #### unused var `tag'.
5521         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
5522
5523 2000-10-27  Martin Buchholz  <martin@xemacs.org>
5524
5525         * fns.c (Fbutlast):
5526         * fns.c (list_sort):
5527         * fns.c (Ffillarray):
5528         * fns.c (bytecode_nconc2):
5529         * fns.c (Fnconc):
5530         * fns.c (mapcar1):
5531         * fns.c (Fmapconcat):
5532         Be pedantically 64-bit correct.  For the time when someone will
5533         want to have a list with length > 2**32.
5534
5535         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
5536         Work around MIPSpro compiler bug.
5537
5538         * process-unix.c (unix_kill_child_process): Add snarky comment.
5539         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
5540
5541         * config.h.in: Oops, _getpt ==> _getpty
5542
5543 2000-10-26  Martin Buchholz  <martin@xemacs.org>
5544
5545         * config.h.in:
5546         * regex.c:
5547         Use void*, not char*, as return type of alloca().
5548
5549         * alloc.c (free_marker): Side effect inside assert expression!
5550
5551 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
5552
5553         * mule-charset.c (Fset_charset_ccl_program): To check
5554         if the given ccl program is valid, use setup_ccl_program()
5555         instead of CHECK_VECTOR().
5556         (Fmake_charset): Likewise.
5557
5558 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
5559
5560         * faces.c (get_extent_fragment_face_cache_index):
5561         Fix cachel.merged_faces memory leak.
5562
5563 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
5564
5565         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
5566         Reset MSB of octets obtained by DECODE_SJIS
5567         because of the incompatibility with Emacs.
5568         (ccl_driver)<CCL_ENCODE_SJIS>:
5569         Set MSB of octets before passing them to
5570         ENCODE_SJIS because of the incompatibility
5571         with Emacs.
5572
5573 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
5574
5575         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
5576         (DECLARE_LRECORD): Undo the last change.
5577         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
5578
5579 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
5580
5581         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
5582         the implementation to lrecord_implementations_table.
5583
5584 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
5585
5586         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
5587         initial value of `lrecord_type_##c_name' and
5588         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
5589         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
5590         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
5591         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
5592         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
5593
5594 2000-10-17  Martin Buchholz  <martin@xemacs.org>
5595
5596         * miscplay.c (sndcnv8S_2mono):
5597         (sndcnv2monounsigned):
5598         (sndcnvULaw_2linear):
5599         (sndcnv16swap):
5600         Remove implementation-defined behavior.
5601
5602 2000-10-12  Martin Buchholz  <martin@xemacs.org>
5603
5604         * input-method-xlib.c: Warning suppression.
5605
5606 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
5607
5608         * mule-ccl.c: Sync up with Emacs 21.0.90.
5609         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
5610         Do nothing.
5611         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
5612         Likewise.
5613         (ccl_driver[WriteMultibyteChar2]): Bug fix.
5614         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
5615         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
5616         leading char belongs to official 2-dimensional charset.
5617         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
5618         write the given character as is.  Otherwise,
5619         if it is a multibyte char, convert it by
5620         non_ascii_set_charptr_emchar, then write it.
5621         (CCL_WRITE_STRING): Likewise.
5622         (ccl_get_compiled_code): New function.
5623         (setup_ccl_program): When ccl_prog is invalid,
5624         return -1.
5625         (Fregister_code_conversion_map): New function.
5626         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
5627
5628         * mule-ccl.h: Sync up with Emacs 21.0.90.
5629         (Fregister_ccl_program): export it.
5630
5631         * redisplay-msw.c (separate_textual_runs):
5632         If ccl program is not valid, don't do ccl conversion.
5633
5634         * redisplay-x.c (separate_textual_runs): Ditto.
5635
5636         * file-coding.c (Fmake_coding_system):
5637         When type is ccl and value is vector, register it
5638         with a proper symbol.  And checks whether the
5639         given ccl program is valid.
5640         (mule_decode): When calling ccl_driver, if src indicates
5641         NULL pointer, set an empty string instead.
5642         (mule_encode): Likewise.
5643
5644 2000-10-11  Martin Buchholz  <martin@xemacs.org>
5645
5646         The following large batch of changes gets us back to a state of
5647         C++ compilability.  Extbyte is now a char, which means that
5648         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
5649
5650         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
5651
5652         * sound.c (Fplay_sound): Type correctness.
5653
5654         * select-x.c (hack_motif_clipboard_selection): Type correctness.
5655         (x_get_window_property): Type correctness.
5656         (receive_incremental_selection): unsigned char ==> Extbyte
5657         (selection_data_to_lisp_data): unsigned char ==> Extbyte
5658         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
5659         (Fx_store_cutbuffer_internal): Type correctness.
5660
5661         * process-unix.c (try_to_initialize_subtty): Type correctness.
5662
5663         * objects-x.c (x_print_color_instance): Type correctness.
5664         (x_print_font_instance): Type correctness.
5665         (x_list_fonts): SExtbyte ==> Extbyte.
5666         (valid_x_font_name_p): SExtbyte ==> Extbyte.
5667         (x_find_charset_font): SExtbyte ==> Extbyte.
5668         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
5669         (truename_via_XListFonts): SExtbyte ==> Extbyte.
5670         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
5671         Use bufbyte_strcmp.
5672
5673         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
5674         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
5675         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
5676         (BYTE_C0_P): Use bit ops for char-signedness safety.
5677         (BYTE_C1_P): Use bit ops for char-signedness safety.
5678         (CHARSET_BY_LEADING_BYTE):
5679         (CHARSET_BY_ATTRIBUTES):
5680         Always use inline function.
5681         Use type_checking_assert.
5682         Hide chlook.
5683
5684         * mule-charset.c (non_ascii_charptr_copy_char):
5685         Modify to work with both ASCII and non-ASCII characters.
5686         Improve docs and variable names.
5687         Replace over-clever fall-through switch with a simple loop.
5688         (Lstream_get_emchar_1):
5689         Replace over-clever fall-through switch with a simple loop.
5690
5691         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
5692         Warning suppression.
5693
5694         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
5695         the return value of Lstream_getc, which could be EOF as well.
5696
5697         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
5698
5699         * lisp.h: Make Extbyte a char, not unsigned char, so that external
5700         APIs can be used on Extbytes without casts.  Risky!
5701         (SExtbyte): Remove.
5702         (UExtbyte): Remove.
5703
5704         * input-method-xlib.c (XIM_init_device):
5705         Use Xlib.h instead of IntrinsicP.h.
5706         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
5707         which will break in X11R7.
5708         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
5709         to call XRegisterIMInstantiateCallback with correct types.
5710
5711         * gui-x.c (button_item_to_widget_value): Type correctness.
5712
5713         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
5714
5715         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
5716         (xbm_instantiate_1): Type correctness.
5717         (BUILD_GLYPH_INST):  Type correctness.
5718
5719         * fileio.c (Fsubstitute_in_file_name): Type correctness.
5720
5721         * file-coding.c:
5722         (decode_coding_sjis):
5723         (decode_coding_big5):
5724         (decode_coding_ucs4):
5725         (decode_coding_utf8):
5726         (decode_coding_iso2022):
5727         (decode_coding_no_conversion):
5728         Make all decoding functions take an Extbyte * arg.
5729         (encode_coding_sjis):
5730         (encode_coding_big5):
5731         (encode_coding_ucs4):
5732         (encode_coding_utf8):
5733         (encode_coding_iso2022):
5734         (encode_coding_no_conversion):
5735         Make all encoding functions take a Bufbyte * arg.
5736         Use size_t instead of unsigned int for memory sizes.
5737         Only cast to unsigned char whenever dereferencing Extbyte *.
5738
5739         * doc.c (unparesseuxify_doc_string): Type correctness.
5740
5741         * console-x.c (split_up_display_spec):
5742         Rewrite without using details of internal string representation.
5743         (x_semi_canonicalize_device_connection): Type correctness.
5744
5745         * config.h.in:
5746         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
5747         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
5748         (HAVE_XFREE386): Removed.
5749
5750         * buffer.h (DEC_CHARPTR): `const' correctness.
5751         (bufbyte_strcmp): New.
5752         (bufbyte_memcmp): New.
5753
5754         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
5755
5756         * buffer.h (XCHAR_OR_CHAR_INT):
5757         Always use inline function.
5758         Remove redundant type checking assert() - XINT will abort quite nicely.
5759
5760 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
5761
5762         * search.c (Freplace_match): Set newtext to an empty string.
5763
5764 2000-10-10  Martin Buchholz  <martin@xemacs.org>
5765
5766         * s/decosf1-3.h: Remove #include of stropts.h
5767         * s/ptx.h: Remove #include of stropts.h
5768         * s/usg5-4.h: Remove #include of stropts.h
5769         * sysproc.h:
5770         * config.h.in:
5771         Use stropts.h, not sys/stropts.h.
5772         Use strtio.h, not sys/strtio.h.
5773
5774 2000-10-04  Martin Buchholz <martin@xemacs.org>
5775
5776         * XEmacs 21.2.36 is released.
5777
5778 2000-09-21  Andy Piper  <andy@xemacs.org>
5779
5780         * glyphs-x.c (x_redisplay_widget): make sure non-structural
5781         changes still involve copying the widget tree.
5782         (update_widget_face): make sure a change is register in the widget
5783         tree. Call update_tab_widget_face appropriately.
5784         (update_tab_widget_face): ditto.
5785         (x_tab_control_redisplay): make sure non-structural changes still
5786         involve copying the widget tree.
5787
5788 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
5789
5790         * lread.c (locate_file): Check the path element is non-nil.
5791
5792 2000-10-02  Martin Buchholz  <martin@xemacs.org>
5793
5794         * lisp.h: Warning suppression for SCO compilers.
5795
5796         * redisplay-tty.c (reset_tty_modes): Fix crash.
5797         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
5798
5799 2000-09-27  Martin Buchholz  <martin@xemacs.org>
5800
5801         Big signal/process handling overhaul.  Bugs fixed:
5802         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
5803         M-x comint-kill-subjob should work for both values nil and t of
5804         process-connection-type. It was broken on most platforms.
5805         Testing on Irix and Cygwin still needed.  Other plaforms tested.
5806         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
5807         * process-unix.c: Signal/Process handling overhaul.
5808         (pty_name): make 64 bytes, as `expect' does, for paranoia.
5809         (allocate_pty): Use all available modern methods of allocating
5810         ptys, falling back to old style BSD allocation as a last resort.
5811         Use allegedly more secure Unix98 pty allocation by default.
5812         (allocate_pty_the_old_fashioned_way): New. the last resort.
5813         (unix_create_process): Push ptem, ldterm, ttcompat where
5814         available.  Autoconfiscate.
5815         (try_to_initialize_subtty): New.
5816         (unix_kill_child_process): Proper signal handling for ptys on most
5817         platforms, using special knowledge of AIX, BSD, etc...
5818         (unix_create_process): Always disconnect_controlling_terminal() for
5819         subprocesses, whether using ptys or not.
5820         * process.h: Remove old getpt-dependent PTY code.
5821         * process.c (Fprocess_send_signal): New, obvious generic function.
5822         (decode_signal): New.
5823         (Finterrupt_process):
5824         (Fkill_process):
5825         (Fquit_process):
5826         (Fstop_process):
5827         (Fcontinue_process):
5828         (Fsignal_process): Use decode_signal.
5829         (process_send_signal):
5830         Many docstring corrections.
5831         Allow any signal to be sent to a process object.
5832         * config.h.in: Add symbols for big signal/process overhaul.
5833         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
5834         * sysproc.h: Include process-related headers, where available:
5835         sys/stropts.h sys/strtio.h pty.h libutil.h
5836         * s/irix4-0.h:
5837         * s/irix5-0.h:
5838         * s/cygwin32.h:
5839         * s/gnu.h:
5840         * s/linux.h:
5841         * s/hpux.h:
5842         * s/aix3-1.h:
5843         Remove old S&M pty stuff.
5844         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
5845         * systty.h: Simplify cpp hackery, improve comments.
5846         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
5847
5848         * editfns.c (Fformat_time_string):
5849         Be a little more paranoid with the return value of ctime.
5850
5851         * fileio.c (check_executable):
5852         (check_writable):
5853         Use symbolic constants X_OK, W_OK.
5854
5855         * console-x.c (split_up_display_spec): Fix a warning.
5856
5857 2000-10-02  Martin Buchholz  <martin@xemacs.org>
5858
5859         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
5860         * ntproc.c (sys_spawnve): make_string ==> build_string
5861         Small clarity improvements.
5862
5863 2000-09-30  Martin Buchholz  <martin@xemacs.org>
5864
5865         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
5866
5867         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
5868
5869         * config.h.in (HAVE_STRCASECMP): Remove.
5870
5871 2000-09-29  Martin Buchholz  <martin@xemacs.org>
5872
5873         * redisplay-output.c (redisplay_output_pixmap):
5874         Cleaner and possibly more 64-bit correct code.
5875
5876 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
5877
5878         * dumper.c (pdump_load_finish): move restoration of
5879         `noninteractive1' to emacs.c (main_1).
5880         * emacs.c (main_1): protect LISP-visible command-line flags
5881         from pdump_load().
5882
5883 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
5884
5885         * Makefile.in.in (versionclean):  Use EXE_TARGET and
5886         DUMP_TARGET instead of literal program names.
5887
5888 2000-09-20  Martin Buchholz  <martin@xemacs.org>
5889
5890         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
5891
5892 2000-09-19  Martin Buchholz  <martin@xemacs.org>
5893
5894         * *: Spelling mega-patch
5895
5896 2000-09-19  Martin Buchholz  <martin@xemacs.org>
5897
5898         * fns.c (bad_bad_turtle):
5899         Delete "Eek!" comment, since we fixed the bug to which it refers.
5900
5901 2000-09-16  Martin Buchholz  <martin@xemacs.org>
5902
5903         * alloca.c: Replace REGISTER with register.
5904
5905 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
5906
5907         * file-coding.c (ucs_to_char): Use countof.
5908
5909 2000-09-16  Martin Buchholz  <martin@xemacs.org>
5910
5911         * file-coding.c: (ucs_to_char):
5912         (complex_vars_of_file_coding):
5913         Use countof instead of sizeof.
5914         Use CHECK_NATNUM instead of CHECK_INT.
5915
5916         * sysdep.c (strcasecmp): Remove.
5917         * device-x.c (ascii_strcasecmp): New.
5918         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
5919         Avoid using non-standard non-portable strcasecmp.
5920
5921 2000-09-16  Martin Buchholz  <martin@xemacs.org>
5922
5923         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
5924         * font-lock.c: remove reference to emacsfns.h.
5925         * search.c: small doc improvement.
5926         * event-Xt.c: correct file names in comments.
5927         * console-x.h Correct file names in comments.
5928         * frame.c: Correct file names in comments.
5929         * event-stream.c: remove Energize from comments.
5930
5931 2000-09-15  Martin Buchholz  <martin@xemacs.org>
5932
5933         * symeval.h (DEFERROR_STANDARD):
5934         (DEFERROR):
5935         (DEFSYMBOL):
5936         (DEFSYMBOL_NO_DUMP):
5937         (DEFSYMBOL_MULTIWORD_PREDICATE):
5938         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
5939         (DEFKEYWORD):
5940         The construct &##name is not sensible C.
5941         Fixes compilation errors with Unixware native compiler.
5942
5943 2000-09-14  Martin Buchholz  <martin@xemacs.org>
5944
5945         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
5946         (next_frame_internal): Removed.  We now just have next_frame.
5947         (next_frame):
5948         Write a simpler and cleaner one-pass algorithm.
5949         Remove called_from_delete_device arg and #ifdefed-out code.
5950         (previous_frame):
5951         Renamed from prev_frame.  Update callers.
5952         Cleaned up to have an analogous implementation to next_frame.
5953         (other_visible_frames_internal): Remove the
5954         called_from_delete_device bogus arg, and hence, remove this
5955         function.  Just use other_visible_frames().
5956
5957         * window.c (Fnext_window):
5958         Prettify docstring.
5959         Since next_frame() is guaranteed to return a frame, remove check
5960         for nil inserted in previous patch.
5961         (Fprevious_window):
5962         Prettify docstring.
5963         Make code look more like Fnext_window.
5964         (window_loop):
5965         Respect the `console' arg when iterating through windows.
5966         Fixes bug: (get-buffer-window buffer t device) not respecting
5967         the `device' arg.
5968         This function needs more work, as others have pointed out.
5969
5970         * frame.h: Rename prev_frame to previous_frame.
5971         device_matches_console_spec no longer takes a `frame' arg.
5972
5973         * s/gnu.h:
5974         * s/linux.h:
5975         * s/hpux.h:
5976         Use EMACS_BLOCK_SIGNAL instead of sigblock.
5977         From "Golubev I. N." <gin@mo.msk.ru>.
5978
5979         * make-src-depend: Fix typo.
5980
5981 2000-09-13  Martin Buchholz  <martin@xemacs.org>
5982
5983         * window.c (Fnext_window):
5984         next_frame() might return nil, not a frame.
5985         Fixes this crash:
5986         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
5987
5988         * frame.c (next_frame_internal):
5989         We've passed a frame if we've passed its device.
5990         Fixes this crash:
5991         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
5992 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
5993
5994 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
5995
5996         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
5997         Allow option to suppress accelerators in menu/dialog items.
5998         (populate_or_checksum_helper): Pass dialog title through above.
5999
6000 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
6001
6002         * event-msw.c (mswindows_key_to_emacs_keysym):
6003         Add "pause" key, fix "menu" key.
6004
6005 2000-09-09  Martin Buchholz  <martin@xemacs.org>
6006
6007         * eval.c (reinit_vars_of_eval):
6008         Increase max_lisp_eval_depth to 1000,
6009         required for thai-xtis.el to byte-compile under some circumstances.
6010
6011 2000-09-04  Martin Buchholz  <martin@xemacs.org>
6012
6013         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
6014         From Kenichi Handa.
6015
6016 2000-09-01  Martin Buchholz  <martin@xemacs.org>
6017
6018         * make-src-depend: Make the generated Makefiles smaller.
6019
6020         * s/hpux.h (SETUP_SLAVE_PTY):
6021         Provide a %d in the format string for the errno argument.
6022
6023         * editfns.c (Ftemp_directory):
6024         Warning fix.
6025         Avoid buffer overrun on very long file name.
6026
6027         * input-method-xlib.c (XIM_init_device):
6028         6th parameter of XRegisterIMInstantiateCallback has different
6029         pointer types on different OSes, so simply cast to (void *).
6030
6031         * unexhp9k800.c: Warning fixes.  Fiddly changes.
6032
6033         * sysdll.c (dll_open):
6034         shl_load will hang hard if passed a NULL filename.
6035         Simply return NULL for compatibility with dlopen.
6036         * sysdll.c: Conform to XEmacs coding standards.
6037
6038         * sysdep.c (get_pty_max_bytes):
6039         Support pty input lines longer than 512 bytes on HP-UX 10.20.
6040
6041 2000-08-31  Martin Buchholz  <martin@xemacs.org>
6042
6043         * tooltalk.c: Add #include <syssignal.h>
6044
6045 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
6046
6047         * s/hpux.h: Don't use undefined function sigunblock().
6048
6049 2000-08-31  Martin Buchholz  <martin@xemacs.org>
6050
6051         * config.h.in: Add HAVE_BALLOON_HELP.
6052         * emacs.c: Use HAVE_BALLOON_HELP.
6053         * Makefile.in.in (x_objs):
6054         Make Balloon Help conditional on finding shape.h.
6055
6056 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
6057
6058         * syntax.c (regex_emacs_buffer_p): New variable.
6059         * syntax.h (regex_emacs_buffer_p): extern.
6060         * search.c (looking_at_1):
6061         (string_match_1):
6062         (fast_string_match):
6063         (search_buffer): Set regex_emacs_buffer_p.
6064         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
6065         when before_dot, at_dot, after_dot.
6066
6067 2000-08-23  Andy Piper  <andy@xemacs.org>
6068
6069         * gui-x.c (popup_selection_callback): Only set action_occurred
6070         when we really have an image instance.
6071         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
6072
6073 2000-08-23  Andy Piper  <andy@xemacs.org>
6074
6075         * gui-msw.c (mswindows_handle_gui_wm_command): set
6076         action_occurred.
6077         * gui-x.c (popup_selection_callback): ditto.
6078
6079         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
6080         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
6081         (struct Lisp_Image_Instance): add action_occurred flag.
6082
6083         * glyphs.c (redisplay_subwindow): use action_occurred flag.
6084         (image_instance_changed): ditto.
6085         (reset_frame_subwindow_instance_cache): only unmap windows - do
6086         not remove them from the cache also.
6087
6088         * glyphs-widget.c (tab_control_update): better debug.
6089         (progress_gauge_update): ditto.
6090         (layout_update): ditto.
6091         (layout_instantiate): ditto.
6092         (tab_control_order_only_changed): cope with null pending items.
6093
6094         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
6095         debug. Force selection of an item when an action occurred. Cope
6096         with null pending_items.
6097         (mswindows_progress_gauge_redisplay): better debug.
6098         * glyphs-x.c (x_tab_control_redisplay): ditto.
6099
6100         * redisplay.c (redisplay_frame): reset the frame cache if the
6101         frame is garbaged.
6102
6103         * window.c (Fset_window_configuration): potentially re-enable
6104         frame cache reset.
6105         (window_unmap_subwindows): need to finalize instances here since
6106         it is only used in mark_window_as_deleted.
6107
6108 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
6109
6110         * nas.c (SndOpenDataForReading):
6111         nas.c (WaveOpenDataForReading):
6112         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
6113         Somehow escaped from the 2000-08-14 patch.
6114
6115 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6116
6117         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
6118         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
6119
6120 2000-08-21  Andy Piper  <andy@xemacs.org>
6121
6122         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
6123         window if it is not already displayed.
6124
6125         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
6126         it is not already displayed.
6127
6128         * window.c (Fset_window_configuration): don't reset the frame
6129         cache.
6130
6131         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
6132         instances from the frame cache if we are actually finalizing them.
6133         (reset_frame_subwindow_instance_cache): reset frame cache only
6134         after unmapping everything.
6135         (map_subwindow): set displayed flag after mapping.
6136
6137 2000-08-21  Martin Buchholz  <martin@xemacs.org>
6138
6139         * data.c (indirect_function):
6140         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
6141
6142         * eval.c (function_argcount):
6143         Use original function when signaling errors.
6144
6145 2000-08-18  Andy Piper  <andy@xemacs.org>
6146
6147         * frame.c (delete_frame_internal): use new
6148         free_frame_subwindow_instances name.
6149
6150         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
6151         (add_tab_item): make return type correct.
6152         (mswindows_tab_control_instantiate): assert index of tab.
6153         (mswindows_tab_control_redisplay): Re-code to use
6154         gui_item_equal_sans_selected and gui_item_list_find_selected.
6155
6156         * glyphs-widget.c (tab_control_update): Correct comment.
6157
6158         * window.c (window_unmap_subwindows): use new
6159         unmap_subwindow_instance_cache_mapper.
6160         (window_unmap_subwindows_cache_mapper): deleted.
6161         (Fset_window_configuration): comparisons should now be with
6162         EQ. Preserve the subwindow instance cache across configuration
6163         changes.
6164         (allocate_window): ditto.
6165         (make_dummy_parent): ditto.
6166
6167         * glyphs.c (free_frame_subwindow_instances): rename from
6168         free_frame_subwindow_instance_cache. finalize all instances rather
6169         than just those in the display cache.
6170         (finalize_all_subwindow_instances): walk windows unmapping and
6171         finalizing subwindows.
6172         (unmap_subwindow_instance_cache_mapper): moved from
6173         window.c. Allow finalization as well as unmapping.
6174
6175         * gui.c (gui_item_list_find_selected): new function.
6176
6177         * gui.h (gui_item_list_find_selected): declare.
6178
6179         * glyphs-x.c (x_tab_control_redisplay): pick tab
6180         explicitly. Re-code to use gui_item_equal_sans_selected and
6181         gui_item_list_find_selected.
6182
6183         * glyphs-x.h: add lwlib-utils.h
6184
6185         * buffer.c (Frecord_buffer): undo previous change.
6186
6187 2000-08-09  Vin Shelton  <acs@xemacs.org>
6188
6189         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
6190         possible.  Create temporary files more securely.  The patch was
6191         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
6192         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
6193         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
6194         for details.
6195
6196 2000-08-07  Ben Wing  <ben@xemacs.org>
6197
6198         * getloadavg.c: remove duplicate (and windows-breaking)
6199         includes of fcntl.h and sys/file.h.
6200
6201         * nt.c: remove duplicate getloadavg() definition.
6202
6203         * sysdll.h (Qdll_filename_encoding): add missing stand-in
6204         encodings.
6205
6206 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
6207
6208         * eval.c (function_argcount): If function needs to be autoloaded
6209         actually use the loaded definition.
6210         GCPRO function.
6211
6212 2000-08-05  Ben Wing  <ben@xemacs.org>
6213
6214         * getloadavg.c: add prototype for getloadavg().  remove
6215         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
6216         of the code).  remove duplicate header includes.
6217
6218         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
6219
6220         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
6221         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
6222         useful load average.
6223
6224         * alloc.c (reinit_alloc_once_early): removed references to
6225         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
6226         the lisp vars are the only things referencing the malloc_sbrk_*
6227         vars, and they were already if 0'd out.  these vars only exist
6228         in the older malloc.c, which is basically unused, and they're
6229         only for informational purposes.
6230
6231         * m\*.h: removed useless VIRT_ADDR_VARIES.
6232
6233         * m\powerpc.h: removed stray NO_ARG_ARRAY.
6234
6235 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
6236
6237         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
6238         color if the image is a mono pixmap.
6239
6240 2000-07-30  Ben Wing  <ben@xemacs.org>
6241
6242         * Makefile.in.in (release):
6243         Remove stray @.
6244
6245         * buffer.c (directory_is_current_directory):
6246         * dired-msw.c (mswindows_get_files):
6247         * dired.c:
6248         * dired.c (Fdirectory_files):
6249         * dired.c (file_name_completion_stat):
6250         * dired.c (Ffile_attributes):
6251         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
6252         preprocessor tricks, to avoid problems on some machines
6253         (e.g. SCO).
6254
6255         * callproc.c (egetenv): GC docs.
6256
6257         * console-msw.h:
6258         * console-msw.h (struct mswindows_dialog_id):
6259         * lrecord.h (lrecord_type):
6260         New object for use with MSW dialogs.
6261
6262         * console.h (struct console_methods):
6263         New enable/disable frame methods, for proper modal dialogs.
6264
6265         * device-msw.c (msprinter_default_printer): Fix to follow
6266         proper Mule conventions.
6267
6268         * device-msw.c:
6269         * device-msw.c (signal_open_printer_error):
6270         * device-msw.c (msprinter_init_device):
6271         * device-msw.c (ensure_not_printing):
6272         * device-msw.c (plist_get_margin):
6273         * device-msw.c (Fmsprinter_select_settings):
6274         * device-msw.c (finalize_devmode):
6275         * device-msw.c (Fmsprinter_settings_despecialize):
6276         * device-msw.c (signal_enum_priner_error):
6277         * extents.c (decode_extent):
6278         * extents.c (decode_map_extents_flags):
6279         * extents.c (decode_extent_at_flag):
6280         * extents.c (Fextent_at):
6281         * extents.c (Fextents_at):
6282         * extents.c (symbol_to_glyph_layout):
6283         [[[[2]]]] Use structured errors.
6284
6285         * dialog-msw.c:
6286         * dialog-msw.c (mswindows_is_dialog_msg):
6287         * dialog-msw.c (mark_mswindows_dialog_id):
6288         * dialog-msw.c (dialog_proc):
6289         * dialog-msw.c (handle_question_dialog_box):
6290         * dialog-msw.c (syms_of_dialog_mswindows):
6291         Define new object to clean up marking; use it as a dialog identifier.
6292         Call new delete-dialog-box-hook.
6293
6294         * dialog-x.c (dbox_selection_callback):
6295         * dialog-x.c (dbox_descriptor_to_widget_value):
6296         * dialog-x.c (x_make_dialog_box_internal):
6297         Call new delete-dialog-box-hook.
6298         Return an id.
6299
6300         * dialog.c:
6301         * dialog.c (syms_of_dialog):
6302         * dialog.c (vars_of_dialog):
6303         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
6304
6305         * eval.c:
6306         * eval.c (signal_call_debugger):
6307         when noninteractive, output stack traces on the console instead
6308         of in a (never-seen) buffer.
6309
6310         * eval.c (signal_type_error):
6311         * eval.c (invalid_argument_2):
6312         * lisp.h:
6313         new funs for use w/structured errors.
6314
6315         * event-Xt.c:
6316         * event-Xt.c (x_to_emacs_keysym):
6317         * event-Xt.c (describe_event):
6318         * event-Xt.c (emacs_Xt_event_handler):
6319         * event-Xt.c (vars_of_event_Xt):
6320         * event-msw.c:
6321         * event-msw.c (mswindows_wnd_proc):
6322         * event-msw.c (vars_of_event_mswindows):
6323         rename {x,mswindows}-debug-events to debug-{}-events for
6324         consistency with other debug-foo variables.
6325
6326         * event-stream.c:
6327         document next-event more clearly.
6328
6329         * fileio.c (Ffile_name_directory):
6330         * fileio.c (Ffile_name_nondirectory):
6331         * fileio.c (Funhandled_file_name_directory):
6332         * fileio.c (file_name_as_directory):
6333         * fileio.c (Ffile_name_as_directory):
6334         * fileio.c (directory_file_name):
6335         * fileio.c (Fdirectory_file_name):
6336         * fileio.c (Fmake_temp_name):
6337         * fileio.c (Ffile_truename):
6338         * fileio.c (Fsubstitute_in_file_name):
6339         * fileio.c (expand_and_dir_to_file):
6340         * fileio.c (barf_or_query_if_file_exists):
6341         * fileio.c (check_executable):
6342         * fileio.c (Ffile_exists_p):
6343         * fileio.c (Ffile_writable_p):
6344         * fileio.c (Ffile_directory_p):
6345         * fileio.c (Ffile_regular_p):
6346         * fileio.c (Ffile_modes):
6347         * fileio.c (Ffile_newer_than_file_p):
6348         * fileio.c (Fverify_visited_file_modtime):
6349         * fileio.c (Fset_visited_file_modtime):
6350         * fileio.c (auto_save_1):
6351         (1). (2).
6352         fix up gcpro's.
6353
6354         * frame-msw.c:
6355         * frame-msw.c (mswindows_init_frame_1):
6356         * frame-msw.c (mswindows_enable_frame):
6357         * frame-msw.c (error_frame_unsizable):
6358         * frame-msw.c (msprinter_init_frame_1):
6359         * frame-msw.c (msprinter_init_frame_3):
6360         * frame-msw.c (console_type_create_frame_mswindows):
6361         (2).
6362         implement new enable/disable frame methods.
6363
6364         * frame-x.c:
6365         * frame-x.c (x_enable_frame):
6366         * frame-x.c (console_type_create_frame_x):
6367         implement new enable/disable frame methods.
6368
6369         * frame.c:
6370         * frame.c (Fdisable_frame):
6371         * frame.c (syms_of_frame):
6372         * frame.h (struct frame):
6373         implement new enable/disable frame methods/functions.
6374
6375         * general-slots.h:
6376         add initial-focus.
6377
6378         * glyphs-msw.c (mswindows_widget_instantiate):
6379         comment that initial-focus should be implemented.
6380
6381         * glyphs-widget.c:
6382         * glyphs-widget.c (check_valid_instantiator):
6383         * glyphs-widget.c (check_valid_orientation):
6384         * glyphs-widget.c (check_valid_tab_orientation):
6385         * glyphs-widget.c (check_valid_justification):
6386         * glyphs-widget.c (check_valid_border):
6387         * glyphs-widget.c (check_valid_callback):
6388         * glyphs-widget.c (check_valid_int_or_function):
6389         * glyphs-widget.c (check_valid_string_or_vector):
6390         * glyphs-widget.c (check_valid_item_list_1):
6391         * glyphs-widget.c (widget_validate):
6392         * glyphs-widget.c (combo_box_validate):
6393         * glyphs-widget.c (widget_instantiate):
6394         * glyphs-widget.c (syms_of_glyphs_widget):
6395         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
6396         * glyphs-widget.c (image_instantiator_combo_box):
6397         * glyphs-widget.c (image_instantiator_scrollbar):
6398         * glyphs-widget.c (image_instantiator_tab_control):
6399         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
6400         (2).
6401         support (unimplemented) keyword initial-focus.
6402         reindent long macros.
6403
6404         * glyphs-x.c (x_redisplay_widget):
6405         * glyphs-x.c (x_button_instantiate):
6406         * glyphs-x.c (x_button_redisplay):
6407         * glyphs-x.c (x_progress_gauge_instantiate):
6408         * glyphs-x.c (x_edit_field_instantiate):
6409         * glyphs-x.c (x_combo_box_instantiate):
6410         * glyphs-x.c (x_tab_control_instantiate):
6411         * glyphs-x.c (x_label_instantiate):
6412         * gui-x.c:
6413         * gui-x.c (button_item_to_widget_value):
6414         * gui-x.c (gui_items_to_widget_values_1):
6415         * gui-x.c (gui_item_children_to_widget_values):
6416         * gui-x.c (gui_items_to_widget_values):
6417         * gui-x.h:
6418         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
6419         add new flag to gui-parsing routines to indicate whether
6420         accelerator specs should be supported.
6421
6422         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
6423
6424         * glyphs.h (struct Lisp_Image_Instance):
6425         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
6426         add initial-focus flag.
6427
6428         * gui.c:
6429         * gui.c (syms_of_gui):
6430         * gui.c (vars_of_gui):
6431         clean up menu-no-selection-hook.
6432
6433         * gui.h:
6434         support delete-dialog-box-hook.
6435
6436         * lread.c (Fload_internal):
6437         * lread.c (locate_file_in_directory_mapper):
6438         (1).
6439
6440         * lrecord.h:
6441         * lrecord.h (struct toolbar_button):
6442         * lrecord.h (syms_of_toolbar):
6443         document how to create a new object.
6444
6445         * menubar-msw.c (mswindows_char_is_accelerator):
6446         may be called on frames w/o menus.
6447
6448         * menubar.c (vars_of_menubar):
6449         clean up :filter docs.
6450
6451         * nt.c (readdir):
6452         * ntproc.c:
6453         (1).
6454
6455         * process-nt.c:
6456         * process-nt.c (validate_signal_number):
6457         * process-nt.c (signal_cannot_launch):
6458         * process-nt.c (nt_create_process):
6459         * process-nt.c (nt_send_process):
6460         * process-nt.c (nt_kill_child_process):
6461         * process-nt.c (nt_open_network_stream):
6462         * process-nt.c (syms_of_process_nt):
6463         (2).
6464         delete quote-handling.  call new lisp code that does it better.
6465
6466         * process-unix.c (connect_to_file_descriptor):
6467         * process-unix.c (allocate_pty):
6468         * process-unix.c (unix_send_process):
6469         * process-unix.c (unix_kill_child_process):
6470         * process-unix.c (unix_open_network_stream):
6471         * process-unix.c (unix_open_multicast_group):
6472         (1). (2).
6473
6474         * process.c:
6475         * process.c (Fstart_process_internal):
6476         (2).  need to canonicalize process path even if absolute.
6477
6478         * select-msw.c (symbol_to_ms_cf):
6479         * select-msw.c (ms_cf_to_symbol):
6480         * select-msw.c (cf_is_autofreed):
6481         * select-msw.c (mswindows_destroy_selection):
6482         * select.c:
6483         * select.c (syms_of_select):
6484         * select.h:
6485         support dibv5, fix bugs. (from Mike Alexander)
6486
6487         * select.c (Fget_selection_internal):
6488         * select.c (select_convert_out):
6489
6490         * sysdep.c:
6491         * sysdep.c (xemacs_stat):
6492         renamed.
6493
6494         * sysdep.c (mkdir):
6495         * sysdep.c (rmdir):
6496         but keep original stat() here because we provide encapsulation
6497         around these funs.
6498
6499         * sysfile.h:
6500         * sysfile.h (fstat):
6501         remove stat garbage.
6502
6503         * syswindows.h:
6504         fix X/MSW conflict.
6505         don't include tchar.h.  it's inappropriate because it makes
6506         compile-time distinctions when we want runtime distinctions.
6507         (we provide our own tchar replacements)
6508
6509         * toolbar.c:
6510         use default object printer for toolbar-button.
6511
6512         * unexcw.c:
6513         make sure we don't encapsulate.
6514
6515         * window.c (vars_of_window):
6516         emphasize that temp-buffer-show-hook is obsolete.
6517
6518 2000-08-05  Martin Buchholz  <martin@xemacs.org>
6519
6520         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
6521         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
6522
6523         * events.c (Fevent_timestamp_lessp):
6524         Not 64-bit clean.  Use EMACS_INT, not int.
6525
6526 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
6527
6528         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
6529         unsigned int and changed the last enum to
6530         lrecord_type_last_built_in_type.
6531         (lrecord_implementations_table): changed prototype to know how
6532         long the array is supposed to be.
6533         (lrecord_type_count): new unsigned int to keep track of the
6534         current number of lisp lrecord types.
6535         (DEFINE_EXTERNAL_LRECORD):
6536         (DECLARE_EXTERNAL_LRECORD): Added these two for external
6537         dynamic-modules to declare new lisp types. They are the same
6538         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
6539         int for each new type, and increment lrecord_type_count by 1.
6540
6541         * alloc.c (lrecord_implementations_table): Changed to reference
6542         lrecord_type_last_built_in_type for the size of the array.
6543         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
6544
6545 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
6546
6547         * glyphs.h (check_valid_item_list): Renamed from
6548         check_valid_item_list_1.
6549
6550 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
6551
6552         * select.c (Qselect_coerce): New.
6553         * select.c (Vselection_coercion_alist): New.
6554         * select.c (syms_of_select): Declare.
6555         * select.c (get-selection-internal): Use it.
6556         Use the new select-coerce functionality.
6557
6558         * select.c (select_coerce): New.
6559         * select.h (select_coerce): Declare.
6560         New function to coerce one type of data into another.
6561
6562 2000-08-03  Martin Buchholz  <martin@xemacs.org>
6563
6564         * callproc.c (Fcall_process_internal):
6565         (Fcall_process_internal):
6566         * process-unix.c (unix_create_process):
6567         Save and restore the value of errno, so that error messages are accurate.
6568
6569 2000-08-01  Martin Buchholz  <martin@xemacs.org>
6570
6571         * elhash.c (print_hash_table):
6572         Fix printing of hash tables to also use `key-and-value' instead of `t'.
6573         Prettify docstrings and indentation.
6574
6575 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
6576
6577         * window.c (Fwindow_pixel_edges): Subtract frame border and
6578         gutter size.
6579
6580 2000-07-31  Andy Piper  <andy@xemacs.org>
6581
6582         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
6583         will acknowledge the change.
6584
6585         * glyphs.h: declare tab_control_order_only_changed.
6586
6587         * glyphs-x.c (x_tab_control_redisplay): use
6588         tab_control_order_only_changed.
6589
6590         * glyphs-widget.c (tab_control_order_only_changed): new function.
6591
6592         * glyphs-msw.c (mswindows_tab_control_redisplay): use
6593         tab_control_order_only_changed.
6594
6595         * gui.c (gui_item_equal_sans_selected): new function.
6596         (gui_item_equal): use it.
6597
6598         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
6599         :properties in favor of :items..
6600
6601         * glyphs-widget.c (check_valid_item_list): rename from
6602         check_valid_item_list_1.
6603         (check_valid_item_list_1): renamed.
6604         (combo_box_validate): deprecate :properties in favor of :items.
6605         (widget_instantiate): ditto.
6606         (tab_control_update): ditto.
6607         (image_instantiator_combo_box): ditto.
6608         (image_instantiator_tree_view): ditto.
6609         (image_instantiator_tab_control): ditto.
6610         (layout_post_instantiate): remove dead code.
6611
6612         * print.c (debug_print_no_newline): only write to debugger if in
6613         WIN32_NATIVE.
6614
6615         * elhash.c (Fmake_hash_table): update doc string.
6616
6617         * event-msw.c (mswindows_wnd_proc): don't allow processing of
6618         messages whilst in GC. This at least stops XEmacs crashing but has
6619         the potential for wierd behaviour.
6620
6621 2000-07-31  Martin Buchholz  <martin@xemacs.org>
6622
6623         * config.h.in:
6624         Make existence of s&m files optional.
6625
6626         * s/bsd386.h: Remove HAVE_GETLOADAVG.
6627         * s/freebsd.h: Remove HAVE_GETLOADAVG.
6628         * s/gnu.h: Remove HAVE_GETLOADAVG.
6629         * s/netbsd.h: Remove HAVE_GETLOADAVG.
6630         * s/sol2.h: Remove HAVE_GETLOADAVG.
6631         * lisp.h: Remove getloadavg() declaration.
6632         * fns.c:
6633         Include <sys/loadavg.h> if available.
6634         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
6635         * config.h.in:  Group together getloadavg()-related macros.
6636         Use only configure-time tests to detect getloadavg().
6637
6638 2000-07-30  Martin Buchholz  <martin@xemacs.org>
6639
6640         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
6641
6642 2000-07-25  Andy Piper  <andy@xemacs.org>
6643
6644         * syswindows.h: add tchar.h for native builds.
6645
6646         * frame.c (syms_of_frame): remove set-glyph-image.
6647
6648         * general-slots.h: add Qset_glyph_image.
6649
6650         * glyphs-widget.c (layout_update): add domain arg to
6651         set-glyph-image.
6652         (syms_of_glyphs_widget): remove set-glyph-image.
6653
6654 2000-07-23  Ben Wing  <ben@xemacs.org>
6655
6656         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
6657         Vpopup_frame_list.
6658
6659 2000-07-22  Andy Piper  <andy@xemacs.org>
6660
6661         * symsinit.h: add syms_of_win32().
6662
6663         * gui-msw.c (syms_of_gui_mswindows): remove
6664         Fmswindows_shell_execute.
6665         (Fmswindows_shell_execute): moved to win32.c.
6666
6667         * emacs.c (main_1): add syms_of_win32 ().
6668
6669         * win32.c (init_potentially_nonexistent_functions): rewrite in
6670         compiler-friendly terms.
6671         (Fmswindows_shell_execute): move here from gui-msw.c.
6672         (syms_of_win32): new.
6673
6674         * device-msw.c (Fmswindows_printer_list): clean up args to
6675         EnumPrinters.
6676         Don't include tchar under cygwin or mingw.
6677         (msprinter_default_printer): make cygwin-friendly.
6678
6679 2000-07-21  Andy Piper  <andy@xemacs.org>
6680
6681         * glyphs-widget.c (image_instantiator_tree_view): use tab
6682         control's update function.
6683         (layout_property): new function. Retrieve items.
6684
6685         * glyphs-msw.c (mswindows_tree_view_redisplay): new
6686         function. Re-populate the tree view from the pending items.
6687
6688         * glyphs.c (instantiate_image_instantiator): Make sure the domain
6689         is designated the parent if the domain is an image instance. This
6690         is needed so that dirtiness can be cascade up the hierarchy and
6691         thus for layout children to be redisplayed correctly.
6692         (allocate_image_instance): rename glyph -> parent.
6693
6694         * redisplay.h: change redisplay_output_layout signature.
6695
6696         * redisplay-msw.c (mswindows_output_display_block): use domain
6697         arg.
6698
6699         * redisplay-x.c (x_output_display_block): use domain arg.
6700
6701 2000-07-10  Andy Piper  <andy@xemacs.org>
6702
6703         * window.c (Fset_window_configuration): add comment.
6704
6705         * redisplay-output.c (compare_runes):
6706         (redisplay_output_subwindow): redisplay rather than update subwindow.
6707         (redisplay_output_layout): ditto.
6708
6709         * redisplay-msw.c (mswindows_frame_output_end):
6710         (mswindows_frame_output_end): make defer window pos optional.
6711
6712         * lisp.h: add Flast.
6713
6714         * glyphs.h (struct image_instantiator_methods): add dest_mask top
6715         normalize method. Change update method to be for changed
6716         instantiators. Add redisplay method. Change signature of layout
6717         method.
6718         (struct Lisp_Image_Instance): add instantiator.
6719         (IMAGE_INSTANCE_INSTANTIATOR): new.
6720         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
6721         (XIMAGE_INSTANCE_INSTANTIATOR): new.
6722         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
6723
6724         * glyphs.c:
6725         (find_instantiator_differences): new function.
6726         (Fset_instantiator_property): new convenience function.
6727         (check_image_instance_structure): strictly check for vector
6728         instantiators.
6729         (normalize_image_instantiator): make non-static.
6730         (instantiate_image_instantiator): pass on dest_mask and use new
6731         signatures for image_instance_layout and friends.
6732         (mark_image_instance): mark the instantiator. Mark the subwindow
6733         face not the widget face.
6734         (image_instance_equal): add instantiator.
6735         (image_instance_hash): ditto.
6736         (allocate_image_instance): ditto.
6737         (Fset_image_instance_property): removed.
6738         (Fimage_instance_file_name): ditto.
6739         (Fcolorize_image_instance): ditto.
6740         (image_instance_layout): add offsets to be set.
6741         (update_image_instance): new function. update an image instance
6742         from its changed instantiator.
6743         (inherit_normalize): add dest_mask.
6744         (xbm_normalize): ditto.
6745         (xface_normalize): ditto.
6746         (xpm_normalize): ditto.
6747         (text_update): set_property -> update.
6748         (image_instantiate): use the glyph identity as a hash key, not the
6749         instantiator.
6750         (glyph_width): use new image_instance_layout signature.
6751         (glyph_ascent): ditto.
6752         (glyph_descent): ditto.
6753         (glyph_height): ditto.
6754         (glyph_query_geometry): ressurrect.
6755         (glyph_layout): ditto.
6756         (redisplay_subwindow): update -> redisplay.
6757         (syms_of_glyphs): add Fset_instantiator_property.
6758         (image_instantiator_format_create): set_property -> update.
6759
6760         * glyphs-x.c:
6761         (autodetect_normalize): add dest_maks to signature.
6762         (x_redisplay_subwindow): update -> redisplay.
6763         (x_redisplay_widget): ditto.
6764         (x_button_redisplay): ditto.
6765         (x_progress_gauge_redisplay): ditto.
6766         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
6767         stacking order.
6768         (console_type_create_glyphs_x): update -> redisplay.
6769         (image_instantiator_format_create_glyphs_x): ditto.
6770
6771         * glyphs-widget.c:
6772         (check_valid_instantiator): disallow glyphs in the instantiator,
6773         they must now be vectors.
6774         (check_valid_instantiator_list): ditto.
6775         (glyph_instantiator_to_glyph): use internal symbol rather than
6776         intern.
6777         (widget_update): renamed from widget_set_property. Call cascaded
6778         update methods.
6779         (redisplay_widget): renamed from update_widget.
6780         (widget_layout): image_instance_layout now takes position as well
6781         as size.
6782         (widget_normalize): ditto.
6783         (widget_instantiate): ditto.
6784         (tab_control_query_geometry) ditto.:
6785         (tab_control_update): renamed from tab_control_set_property.
6786         (progress_gauge_update): set_property -> update.
6787         (layout_normalize): rewrite so that child instantiators are
6788         normalized also.
6789         (layout_update): new function. Create glyphs from the normalized
6790         children and cope with any other layout keywords. We do not
6791         instantiate children here that will be take care of by
6792         redisplay_output_layout.
6793         (layout_instantiate): call layout_update and not much else.
6794         (layout_post_instantiate): not sure whether this is needed
6795         anymore.
6796         (layout_query_geometry): query glyph geometry rather than
6797         image_instance geometry.
6798         (layout_layout): set offsets from pass in parameters. Use glyph
6799         geometry and layout functions rather than image instance ones.
6800         (native_layout_layout): ditto.
6801         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
6802         (image_instantiator_widget): set_property -> update.
6803         (image_instantiator_buttons): ditto.
6804         (image_instantiator_progress_guage): ditto.
6805         (image_instantiator_tab_control): ditto.
6806         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
6807         (image_instantiator_layout): add update method.
6808
6809         * glyphs-msw.c (bmp_normalize):
6810         (mswindows_resource_normalize): add dest_mask so that it can be
6811         proprogated by layout_normalize.
6812         (begin_defer_window_pos): make optional because it may not be the
6813         right thing to do and it introduces differences with X.
6814         (mswindows_unmap_subwindow): ditto.
6815         (mswindows_map_subwindow): ditto.
6816         (mswindows_redisplay_subwindow): renamed from
6817         mswindows_update_subwindow.
6818         (mswindows_redisplay_widget): ditto.
6819         (mswindows_button_redisplay): renamed from
6820         mswindows_button_update. Update is now what the instantiation
6821         function does for a changed instantiator.
6822         (mswindows_progress_gauge_instantiate): set the progress value
6823         here if appropriate.
6824         (mswindows_tab_control_redisplay): cope with re-ordering of the
6825         members of the tab widget by simply selecting the new top
6826         widget. This makes things appear ok if you click on a tab.
6827         (mswindows_combo_box_instantiate): image_instance_layout now takes
6828         position as well as size.
6829         (mswindows_progress_gauge_redisplay): renamed from
6830         mswindows_progress_gauge_update.
6831         (console_type_create_glyphs_mswindows): fix update -> redisplay.
6832         (image_instantiator_format_create_glyphs_mswindows): ditto.
6833
6834         * glyphs-eimage.c (jpeg_normalize):
6835         (gif_normalize):
6836         (png_normalize):
6837         (tiff_normalize): add dest_mask so that it can be proprogated by
6838         layout_normalize.
6839
6840         * elhash.c:
6841         (print_hash_table):
6842         (hash_table_weakness_validate):
6843         (decode_hash_table_weakness):
6844         (Fhash_table_weakness):
6845         (Fhash_table_type):
6846         (syms_of_elhash): use Ben's naming scheme for hashtable types..
6847
6848         * console.h (struct console_methods): move update_* to
6849         redisplay_*.
6850
6851 2000-07-20  Ben Wing  <ben@xemacs.org>
6852
6853         * *.[ch] (XSETOBJ): remove unused middle argument.
6854         lisp-disunion.h: correct wrap_object() to one argument.
6855
6856 2000-07-15  Ben Wing  <ben@xemacs.org>
6857
6858         * s/cygwin32.h:
6859         * s/cygwin32.h (CYGWIN_CONV_PATH):
6860         Add missing logb prototype for v1.1.
6861         Use post-b20 names and alias to pre-b20 names when pre-b20.
6862
6863         * s/windowsnt.h: [5].
6864
6865 2000-07-15  Ben Wing  <ben@xemacs.org>
6866
6867         * Makefile.in.in (x_objs):
6868         * Makefile.in.in (sheap_objs):
6869         * Makefile.in.in (objs):
6870         added win32.o, cosmetic cleanups.
6871
6872         * alloc.c (Fmake_byte_code):
6873         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
6874         etc. macros which declare their own args now.
6875
6876         * alloc.c (syms_of_alloc):
6877         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
6878
6879         * buffer.c:
6880         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
6881
6882         * buffer.c (Fget_file_buffer):
6883         Fixed GCPRO problem.
6884
6885         * buffer.c (get_truename_buffer):
6886         Fixed comment about GC checking.
6887
6888         * buffer.c (syms_of_buffer):
6889         Undeclared those dedicated frame funs.
6890         [2].
6891
6892         * buffer.h:
6893         Define convenience macros for internal/external conversions.
6894         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
6895         and Qenvironment_variable_encoding for cleaner code.
6896
6897         * bufslots.h:
6898         Remove dedicated-frame; in lisp.
6899
6900         * bytecode.c (funcall_compiled_function):
6901         [1].
6902
6903         * bytecode.c (syms_of_bytecode):
6904         [2].
6905
6906         * console-msw.c:
6907         * console-msw.c (mswindows_show_console): Rewrote.
6908
6909         * console-msw.c (Fmswindows_debugging_output): New.
6910         Sends to OutputDebugString (special MSWin debugger interface).
6911
6912         * console-msw.c (Fmswindows_message_box):
6913         Fixed stupid bugs so it works when called from kill-emacs.
6914
6915         * console-msw.c (syms_of_console_mswindows):
6916         Declare Fmswindows_debugging_output.
6917
6918         * console-msw.h:
6919         New MSWin prototypes.
6920
6921         * console-msw.h (struct mswindows_frame):
6922         New entry last-click-mods for improved button-modifier support.
6923
6924         * console-msw.h (FRAME_MSWINDOWS_POPUP):
6925         New struct entry `popup' with corresponding accessor.
6926
6927         * console-x.c:
6928         * console-x.c (split_up_display_spec):
6929         * console-x.c (get_display_arg_connection):
6930         * console-x.c (x_semi_canonicalize_console_connection):
6931         * console-x.c (x_canonicalize_device_connection):
6932         [[[6]]]: Change char to more specific type.
6933         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
6934
6935         * console-x.c (x_semi_canonicalize_console_connection):
6936         * console-x.c (x_canonicalize_device_connection):
6937         [[[9]]]: Fix up error signalling to use new structured error system.
6938
6939         * console-x.h:
6940         [[[4]]]: Define codesys aliases:
6941         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
6942         Qx_color_name_encoding, Qx_display_name_encoding.
6943
6944         * console.h (struct console_methods):
6945         New method make_dialog_box_internal supersedes older
6946         popup_dialog_box method.
6947
6948         * data.c:
6949         Define many new errors, part of new structured errors.
6950
6951         * data.c (init_errors_once_early):
6952         * data.c (syms_of_data):
6953         [2].
6954
6955         * device-msw.c (mswindows_init_device):
6956         [[[5]]]: Cleanup to support NT 3.51.
6957
6958         * device-msw.c (decode_devmode): Cleanup.
6959
6960         * device-msw.c (mswindows_handle_print_setup_dialog_box):
6961         * device-msw.c (mswindows_handle_print_dialog_box):
6962         * device-msw.c (mswindows_handle_page_setup_dialog_box):
6963         * device-msw.c (syms_of_device_mswindows):
6964         Delete the dialog box primitives recently introduced by Kirill and
6965         instead interface to general dialog box interface.
6966
6967         * device-x.c:
6968         * device-x.c (compute_x_app_name):
6969         * device-x.c (x_init_device):
6970         * device-x.c (Fx_valid_keysym_name_p):
6971         * device-x.c (Fx_set_font_path):
6972         [6].
6973         [7].
6974
6975         * device.h (wrap_device): New.
6976         First of its kind; meant to replace XSETDEVICE.
6977
6978         * dialog-msw.c: Many file-dialog symbols.
6979
6980         * dialog-msw.c (mswindows_register_popup_frame): New.
6981         * dialog-msw.c (mswindows_is_dialog_msg): New.
6982         For supporting kbd traversal in dialog boxes.
6983
6984         * dialog-msw.c (dialog_proc):
6985         Support hitting ESC in dialogs.
6986
6987         * dialog-msw.c (struct):
6988         Common dialog box errors.
6989
6990         * dialog-msw.c (handle_file_dialog_box): New.
6991         Add file dialog code.
6992
6993         * dialog-msw.c (handle_question_dialog_box):
6994         Redo existing code to support new question dialog syntax.
6995
6996         * dialog-msw.c (console_type_create_dialog_mswindows):
6997         We support new dialog console method.
6998
6999         * dialog-msw.c (syms_of_dialog_mswindows):
7000         * dialog-msw.c (vars_of_dialog_mswindows):
7001         New file dialog symbols, vars.
7002
7003         * dialog-x.c:
7004         * dialog-x.c (maybe_run_dbox_text_callback):
7005         * dialog-x.c (dbox_descriptor_to_widget_value):
7006         * dialog-x.c (x_make_dialog_box_internal):
7007         * dialog-x.c (console_type_create_dialog_x):
7008         Mule-ize entire file.
7009         Redo to support question dialog syntax.
7010         [6].
7011
7012         * dialog.c:
7013         * dialog.c (Fmake_dialog_box_internal):
7014         * dialog.c (syms_of_dialog):
7015         Kill old popup-dialog-box, replace with new primitive.
7016         Just call device method or signal error.
7017
7018         * eldap.c (Fldap_open):
7019         * eldap.c (Fldap_search_basic):
7020         * eldap.c (Fldap_add):
7021         * eldap.c (Fldap_modify):
7022         [1].
7023         [7].
7024
7025         * emacs.c:
7026         * emacs.c (make_arg_list_1):
7027         * emacs.c (make_arg_list):
7028         Mule-ize call to dll_init().
7029         [6].
7030         [8].
7031
7032         * emacs.c (make_argc_argv):
7033         * emacs.c (free_argc_argv):
7034         * emacs.c (init_cmdargs):
7035         * emacs.c (main_1):
7036         * emacs.c (Fkill_emacs):
7037         * emacs.c (Fdump_emacs):
7038         Update comments about what can be used in syms_* etc.
7039         Call init_win32() when necessary.
7040         Fix up MS Win dialog box in kill-buffer to actually work right.
7041         [7].
7042
7043         * eval.c:
7044         * eval.c (For):
7045         * eval.c (Fand):
7046         * eval.c (Fprogn):
7047         * eval.c (Fprog1):
7048         * eval.c (Fprog2):
7049         * eval.c (FletX):
7050         * eval.c (Flet):
7051         * eval.c (condition_case_3):
7052         * eval.c (Feval):
7053         * eval.c (function_argcount):
7054         * eval.c (funcall_lambda):
7055         [1].
7056
7057         * eval.c (type_error): New.
7058         * eval.c (maybe_type_error): New.
7059         * eval.c (continuable_type_error): New.
7060         * eval.c (maybe_continuable_type_error): New.
7061         * eval.c (type_error_with_frob): New.
7062         * eval.c (maybe_type_error_with_frob): New.
7063         * eval.c (continuable_type_error_with_frob): New.
7064         * eval.c (maybe_continuable_type_error_with_frob): New.
7065         New functions for use with structured errors.
7066
7067         * event-Xt.c:
7068         * event-Xt.c (x_event_to_emacs_event):
7069         Buttons are now modifiers too.
7070
7071         * event-Xt.c (emacs_Xt_current_event_timestamp):
7072         Implement new event method.
7073         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
7074
7075         * event-msw.c:
7076         * event-msw.c (ntpipe_shove_writer): [5].
7077         * event-msw.c (mswindows_enqueue_mouse_button_event):
7078         * event-msw.c (mswindows_drain_windows_queue):
7079         * event-msw.c (mswindows_wnd_proc): [7].
7080         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
7081         * event-msw.c (mswindows_modifier_state):
7082         Throughout: support new button modifiers.
7083
7084         * event-msw.c (emacs_mswindows_current_event_timestamp):
7085         Implement new event method.
7086         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
7087
7088         * event-stream.c:
7089         * event-stream.c (event_stream_current_event_timestamp): New.
7090         * event-stream.c (maybe_kbd_translate): New functionality.
7091         * event-stream.c (vars_of_event_stream):
7092         Document new kbd-translate-table functionality.
7093
7094         * event-stream.c (Fcurrent_event_timestamp): New.
7095         New primitive for use in fabricated events.
7096         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
7097
7098         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
7099
7100         * events.c:
7101         * events.c (Fmake_event):
7102         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
7103         [1].
7104         [9].
7105
7106         * events.c (format_event_object): fix gcc warnings.
7107
7108         * events.c (Fevent_timestamp): Document new primitives.
7109
7110         * events.c (TIMESTAMP_HALFSPACE): New.
7111
7112         * events.c (Fevent_timestamp_lessp): New.  New primitive for
7113         comparing timestamps correctly (half-space algorithm).
7114
7115         * events.c (Fevent_modifier_bits): Doc fix.
7116
7117         * events.c (Fevent_modifiers): Major doc addition.
7118         * events.c (event_x_y_pixel_internal): Typo fix.
7119         * events.c (syms_of_events): Declare new primitives.
7120
7121         * events.h:
7122         Update long comment for button modifiers, timestamps.
7123
7124         * events.h (struct event_stream):
7125         New current_event_timestamp method.
7126
7127         * extents.c:
7128         * extents.c (extent_in_region_p):
7129         * extents.c (decode_extent):
7130         * extents.c (Fset_extent_parent):
7131         * extents.c (decode_map_extents_flags):
7132         Fix gcc warnings.
7133         [9].
7134
7135         * extents.c (struct extent_at_arg):
7136         * extents.c (decode_extent_at_flag):
7137         * extents.c (extent_at_mapper):
7138         * extents.c (extent_at_bytind):
7139         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
7140         * extents.c (Fextents_at): New primitive. [9].
7141         * extents.c (symbol_to_glyph_layout): [9].
7142         Support new primitive `extents-at'.
7143
7144
7145         * extents.c (get_text_property_bytind):
7146         extent_at_bytind has another arg.
7147         [9].
7148
7149         * extents.c (syms_of_extents): New primitive.
7150
7151         * file-coding.c (Fmake_coding_system): [1].
7152         * file-coding.c (subsidiary_coding_system): fix gcc warning
7153         * file-coding.c (syms_of_file_coding): [2].
7154
7155         * fileio.c (Fexpand_file_name):
7156         * fileio.c (Fsysnetunam):
7157         * fileio.c (Ffile_exists_p):
7158         * fileio.c (Ffile_executable_p):
7159         * fileio.c (Fverify_visited_file_modtime):
7160         Clean up GCPROing.
7161
7162         * fileio.c (syms_of_fileio): [2].
7163
7164         * filelock.c (lock_file_1):
7165         * filelock.c (current_lock_owner):
7166         * filelock.c (lock_if_free):
7167         * filelock.c (lock_file):
7168         * filelock.c (unlock_file):
7169         Clean up GCPROing.
7170
7171         * fns.c (concat): Fix gcc warning.
7172
7173         * fns.c (Fmember):
7174         * fns.c (Fold_member):
7175         * fns.c (Fmemq):
7176         * fns.c (Fold_memq):
7177         * fns.c (memq_no_quit):
7178         * fns.c (Fassoc):
7179         * fns.c (Fold_assoc):
7180         * fns.c (Fassq):
7181         * fns.c (Fold_assq):
7182         * fns.c (assq_no_quit):
7183         * fns.c (Frassoc):
7184         * fns.c (Fold_rassoc):
7185         * fns.c (Frassq):
7186         * fns.c (Fold_rassq):
7187         * fns.c (rassq_no_quit):
7188         * fns.c (Fdelete):
7189         * fns.c (Fold_delete):
7190         * fns.c (Fdelq):
7191         * fns.c (Fold_delq):
7192         * fns.c (delq_no_quit):
7193         * fns.c (Fremassoc):
7194         * fns.c (Fremassq):
7195         * fns.c (remassq_no_quit):
7196         * fns.c (Fremrassoc):
7197         * fns.c (Fremrassq):
7198         * fns.c (remrassq_no_quit):
7199         * fns.c (Freverse):
7200         * fns.c (mapcar1):
7201         [1].
7202
7203         * frame-msw.c (mswindows_init_frame_1):
7204         * frame-msw.c (mswindows_delete_frame):
7205         Register popups with dialog code so keyboard traversing works.
7206
7207         * frame-tty.c (tty_raise_frame_no_select): [1].
7208
7209         * frame-x.c:
7210         * frame-x.c (x_set_frame_text_value):
7211         * frame-x.c (x_set_frame_properties):
7212         * frame-x.c (x_create_widgets):
7213         [7].
7214
7215         * frame.c:
7216         * frame.c (Fmouse_pixel_position): Minor doc fixes.
7217
7218         * frame.h (wrap_frame): New.
7219         Macro like wrap_device.
7220
7221         * general.c:
7222         * general.c (SYMBOL):
7223         * general.c (syms_of_general):
7224         Major reorg.  This is now just a wrapper and symbols themselves
7225         are listed in general-slots.h.
7226
7227         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
7228         * glyphs-msw.c (mswindows_resource_instantiate): [5].
7229
7230         * glyphs-msw.c (mswindows_native_layout_instantiate):
7231         Add DS_CONTROL so keyboard traversal will work.
7232
7233         * glyphs-widget.c:
7234         * glyphs-widget.c (syms_of_glyphs_widget):
7235         Move some symbols to general-slots.h.
7236
7237         * glyphs-x.c:
7238         * glyphs-x.c (xbm_instantiate_1):
7239         * glyphs-x.c (x_xbm_instantiate):
7240         * glyphs-x.c (x_xface_instantiate):
7241         * glyphs-x.c (autodetect_instantiate):
7242         * glyphs-x.c (cursor_font_instantiate):
7243         * glyphs-x.c (x_update_widget):
7244         * glyphs-x.c (x_widget_instantiate):
7245         * glyphs.c (bitmap_to_lisp_data):
7246         * glyphs.c (pixmap_to_lisp_data):
7247         [7].
7248
7249         * glyphs.c (syms_of_glyphs):
7250         [2].
7251
7252         * gui-x.c:
7253         * gui-x.c (print_widget_value):
7254         * gui-x.c (menu_separator_style_and_to_external):
7255         * gui-x.c (add_accel_and_to_external):
7256         * gui-x.c (button_item_to_widget_value):
7257         * gui-x.c (gui_items_to_widget_values_1):
7258         * gui-x.c (gui_items_to_widget_values):
7259         * gui-x.c (syms_of_gui_x):
7260         * gui-x.c (vars_of_gui_x):
7261         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
7262         [9].
7263
7264         * gui-x.h:
7265         Muleize, prototype changes matching gui-x.c.
7266
7267         * gui.c:
7268         * gui.c (separator_string_p):
7269         * gui.c (gui_item_add_keyval_pair):
7270         * gui.c (make_gui_item_from_keywords_internal):
7271         * gui.c (signal_too_long_error):
7272         * gui.c (parse_gui_item_tree_item):
7273         * gui.c (syms_of_gui):
7274         * gui.c (vars_of_gui):
7275         * gui.h:
7276         menu-no-selection-hook moved here (used by MSWin).
7277         Move some symbols to general-slots.h.
7278         [6].
7279         [9].
7280
7281         * insdel.c (get_buffer_pos_char):
7282         * insdel.c (get_buffer_range_char):
7283         Add GC comments.
7284
7285         * keymap.c (keymap_lookup_directly):
7286         * keymap.c (keymap_store):
7287         * keymap.c (ensure_meta_prefix_char_keymapp):
7288         * keymap.c (describe_map):
7289         * keymap.h:
7290         Support new button modifiers.
7291
7292         * lisp-disunion.h (wrap_object):
7293         * lisp-disunion.h (XSETOBJ):
7294         Rename make_obj to wrap_object.
7295
7296         * lisp-union.h:
7297         * lisp-union.h (make_int):
7298         * lisp-union.h (make_char):
7299         Support wrap_object.
7300
7301         * lisp.h:
7302         * lisp.h (LIST_LOOP):
7303         * lisp.h (EXTERNAL_LIST_LOOP):
7304         * lisp.h (LIST_LOOP_2):
7305         * lisp.h (EXTERNAL_LIST_LOOP_1):
7306         * lisp.h (EXTERNAL_LIST_LOOP_2):
7307         * lisp.h (EXTERNAL_LIST_LOOP_3):
7308         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
7309         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
7310         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
7311         * lisp.h (EXTERNAL_ALIST_LOOP_5):
7312         * lisp.h (EXTERNAL_ALIST_LOOP_6):
7313         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
7314         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
7315         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
7316         * lisp.h (struct Lisp_Symbol):
7317         * lisp.h (maybe_continuable_error_with_frob):
7318         Fix up section comments.
7319         Add new types for char to indicate usage.
7320         Delete symbols auto-generated from general-slots.h.
7321         Add prototypes for structured error functions.
7322         Add long comments describing looping macros and change interface
7323         so that lvalues are automatically declared.
7324         Add NO_DECLARE macro in case callers want to declare lvalues
7325         themselves.
7326
7327         * lread.c (read_syntax_error):
7328         * lread.c (continuable_read_syntax_error):
7329         * lread.c (read_structure):
7330         * lread.c (sequence_reader):
7331         * lread.c (read_list_conser):
7332         * lread.c (read_compiled_function):
7333         Rename syntax_error and continuable_syntax_error to avoid clash
7334         with same-named structured error functions.
7335
7336         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
7337         * menubar-msw.c (populate_menu_add_item):
7338         * menubar-msw.c (populate_or_checksum_helper):
7339         [5].
7340         [9].
7341
7342         * menubar-x.c:
7343         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
7344         Mule-ize whole file.
7345
7346         * menubar.c (Fnormalize_menu_item_name): Add optimization.
7347
7348         * mule-charset.c (Fmake_charset):
7349         * mule-wnnfns.c (Fwnn_set_param):
7350         [1].
7351
7352         * ntproc.c (create_child):
7353         * ntproc.c (Fwin32_set_current_locale):
7354         Add comments portending doom.
7355
7356         * objects-msw.c:
7357         * objects-msw.c (old_font_enum_callback_2):
7358         * objects-msw.c (font_enum_callback_1):
7359         * objects-msw.c (mswindows_enumerate_fonts):
7360         [5].
7361
7362         * objects-x.c:
7363         * objects-x.c (allocate_nearest_color):
7364         * objects-x.c (x_parse_nearest_color):
7365         * objects-x.c (x_initialize_color_instance):
7366         * objects-x.c (x_print_color_instance):
7367         * objects-x.c (x_finalize_color_instance):
7368         * objects-x.c (x_valid_color_name_p):
7369         * objects-x.c (x_initialize_font_instance):
7370         * objects-x.c (x_print_font_instance):
7371         * objects-x.c (valid_x_font_name_p):
7372         * objects-x.c (truename_via_FONT_prop):
7373         * objects-x.c (truename_via_random_props):
7374         * objects-x.c (truename_via_XListFonts):
7375         * objects-x.c (x_font_truename):
7376         * objects-x.c (x_font_instance_truename):
7377         * objects-x.c (x_font_instance_properties):
7378         * objects-x.c (x_list_fonts):
7379         * objects-x.c (x_find_charset_font):
7380         Mule-ize entire file.
7381         [7].
7382
7383         * objects-x.h:
7384         Mule-verify.
7385
7386         * print.c:
7387         * print.c (std_handle_out_external):
7388         * print.c (debug_print_no_newline):
7389         * print.c (syms_of_print):
7390         Output to all debugger kinds in debug-print.
7391         Fix console-output code under MSWin to actually work.
7392
7393         * process-nt.c (send_signal):
7394         * process-nt.c (nt_create_process):
7395         Use newer Unicode macros.
7396
7397         * process-unix.c (unix_create_process):
7398         * process-unix.c (unix_canonicalize_host_name):
7399         * process-unix.c (unix_open_network_stream):
7400         [7].
7401
7402         * scrollbar-x.c:
7403         Mule-verify.
7404
7405         * search.c (syms_of_search):
7406         [2].
7407
7408         * select-msw.c (mswindows_destroy_selection):
7409         Use LIST_LOOP_2.
7410
7411         * select-x.c (symbol_to_x_atom):
7412         [7].
7413
7414         * select.c (syms_of_select):
7415         [2].
7416
7417         * sound.c (Fplay_sound_file):
7418         [7].
7419
7420         * specifier.c:
7421         * specifier.c (decode_specifier_type):
7422         * specifier.c (Fvalid_specifier_locale_type_p):
7423         * specifier.c (check_valid_locale_or_locale_type):
7424         * specifier.c (decode_locale):
7425         * specifier.c (decode_locale_type):
7426         * specifier.c (decode_locale_list):
7427         * specifier.c (check_valid_domain):
7428         * specifier.c (decode_specifier_tag_set):
7429         * specifier.c (Fcanonicalize_tag_set):
7430         * specifier.c (Fdefine_specifier_tag):
7431         * specifier.c (Fspecifier_tag_predicate):
7432         * specifier.c (check_valid_inst_list):
7433         * specifier.c (check_valid_spec_list):
7434         * specifier.c (decode_how_to_add_specification):
7435         * specifier.c (check_modifiable_specifier):
7436         * specifier.c (specifier_add_spec):
7437         * specifier.c (boolean_validate):
7438         * specifier.c (display_table_validate):
7439         [9].
7440
7441         * specifier.c (syms_of_specifier):
7442         Move some symbols to general-slots.h.
7443         [2].
7444
7445         * symbols.c:
7446         * symbols.c (Fmapatoms):
7447         * symbols.c (Fapropos_internal):
7448         Add GCPROs.
7449
7450         * symbols.c (set_default_buffer_slot_variable):
7451         * symbols.c (set_default_console_slot_variable):
7452         [1].
7453
7454         * symbols.c (defsymbol_massage_name_1):
7455         * symbols.c (defkeyword_massage_name):
7456         * symbols.c (deferror_1):
7457         * symbols.c (deferror):
7458         * symbols.c (deferror_massage_name_and_message):
7459         * symeval.h:
7460         * symeval.h (DEFSYMBOL):
7461         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
7462
7463         * symbols.c (syms_of_symbols):
7464         [2].
7465
7466         * symsinit.h:
7467         * symsinit.h (init_win32): New.
7468         Also new is syms_of_dialog_mswindows.
7469
7470         * syswindows.h:
7471         Add new Unicode macros, missing Cygwin wide-char functions,
7472         convenience conversion macros for Qmswindows_tstr, macros for
7473         encapsulating required MSWin <-> Cygwin filename conversions,
7474         prototype for dynamically-extracted (not in NT 3.51) functions.
7475
7476         * toolbar-x.c:
7477         Mule-verify.
7478
7479         * tooltalk.c (Fadd_tooltalk_message_arg):
7480         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
7481         * tooltalk.c (Fadd_tooltalk_pattern_arg):
7482         [7].
7483
7484         * tooltalk.c (syms_of_tooltalk):
7485         [2].
7486
7487         * unexnt.c:
7488         * unexnt.c (unexec):
7489         Fix up headers, declaration of unexec() to be more standard.
7490
7491 2000-07-20  Martin Buchholz  <martin@xemacs.org>
7492
7493         * offix.h: Revert change to guard macros - they're used in offix.c!
7494
7495 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7496
7497         * lisp.h: Defsubred Fdelete.
7498
7499         * console-msw.h:  (msprinter_default_printer): Added.
7500
7501         * console-msw.c (msprinter_canonicalize_console_connection):
7502         (msprinter_canonicalize_device_connection): Added.
7503
7504         * device-msw.c (msprinter_default_printer):
7505         (Fmswingows_get_default_printer):
7506         (signal_enum_priner_error):
7507         (Fmswingows_printer_list): Added.
7508
7509 2000-07-19  Martin Buchholz <martin@xemacs.org>
7510
7511         * XEmacs 21.2.35 is released.
7512
7513 2000-07-19  Martin Buchholz  <martin@xemacs.org>
7514
7515         * select-x.c (x_handle_selection_request):
7516         Text selected in xemacs and pasted into xterm failed to appear.
7517         Spelling fixes and cosmetic changes.
7518
7519 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7520
7521         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
7522         XEmacs frame (fix for doubling chars in dialog boxes).
7523
7524 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7525
7526         * select.c (select_convert_in, select_convert_out):
7527         Don't call intern() every time.
7528
7529         * select.c (Qselect_convert_in, Qselect_convert_out): New.
7530         * select.c (vars_of_select): Initialise them.
7531
7532 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7533
7534         * select.c (selection-coercible-types): New.
7535
7536         * select.c (own-selection-internal):
7537         * select.c (get-selection-internal):
7538         MULE bug fix - these should default to COMPOUND_TEXT and not
7539         STRING for MULE. I think.
7540
7541         * select.c (select_convert_out): Use selection-coercible-types
7542         to find types that we can attempt to perform coercions on.
7543
7544 2000-07-18  Martin Buchholz  <martin@xemacs.org>
7545
7546         * mule-wnnfns.c:
7547         * mule-canna.c:
7548         Add coding: cookie to identify encoding.
7549
7550         * mule-canna.c (CANNA_mode_keys): make static.
7551         Use proper prototypes, even for functions of no arguments.
7552         Remove external prototype for Fding().
7553
7554         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
7555
7556         * select.c (syms_of_select): Add missing DEFSUBR.
7557
7558 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7559
7560         * select.c (get_selection_internal, own_selection_internal):
7561         Make the type default to STRING, rather than placing a nil type
7562         into Vselection_alist.
7563
7564 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7565
7566         * gpmevent.c (tty_selection_exists_p):
7567         * gpmevent.c (tty_own_selection):
7568         Updated parameter lists.
7569
7570 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
7571
7572         * select.h (selection-alist): Removed declaration.
7573
7574         * select.h (get_local_selection):
7575         * select.c (get_local_selection):
7576         Made static.
7577
7578         * select.h (convert_selection): Removed declaration.
7579         * select.c (convert_selection): Removed.
7580         This function belongs in Lisp.
7581
7582         * select.h (select_convert_in): Declare.
7583         * select.h (select_convert_out): Declare.
7584         * select.c (select_convert_in): New.
7585         * select.c (select_convert_out): New.
7586         New conversion functions for other files to call.
7587
7588         * select.h (select_notify_buffer_kill): Declare.
7589         * select.c (select_notify_buffer_kill): New.
7590         New functions that get called from kill-buffer.
7591
7592         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
7593         X-specific lisp code.
7594
7595         * select.h: Declare some of the lisp-visible functions for
7596         external use.
7597
7598         * select.c (clean_local_selection_data): Removed. This was
7599         a disgusting function, and previously should have been in
7600         select-x.c in any case. The functionality is now provided
7601         in select-convert-from-integer (select.el).
7602
7603         * select.c (available-selection-types): Fixed stupidity where
7604         INTEGER and ATOM got added twice. Also add STRING when we see an
7605         extent.
7606
7607         * select.c (get-selection-internal): Removed symbol stripping. No
7608         longer causes conversion when data comes from the internal cache.
7609
7610         * select.c (syms_of_select): Added new functions.
7611
7612         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
7613         error checking - previously this called abort!
7614
7615         * select-x.c (x_own_selection): Changed comment.
7616
7617         * select-x.c (x_handle_selection_request): Use select_convert_out.
7618         Don't mess with selection-alist; it's an internal variable of select.c.
7619
7620         * select-x.c (x_get_foreign_selection): Use select_convert_in.
7621
7622         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
7623         rather than messing with selection-alist.
7624
7625         * select-msw.c (mswindows_get_foreign_selection):
7626         Use TO_INTERNAL_FORMAT rather than hacking.
7627
7628 2000-07-14  Martin Buchholz  <martin@xemacs.org>
7629
7630         * process-unix.c (unix_open_multicast_group):
7631         (unix_open_multicast_group): Remove useless casts.
7632
7633 2000-07-13  Martin Buchholz  <martin@xemacs.org>
7634
7635         * sound.c (Fplay_sound): Fix `unused variable' warning.
7636
7637         * emacs.c (main): Use correct type for _environ on SCO5.
7638
7639 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
7640
7641         * console.h (own_selection_method):
7642         * console.h (selection_exists_p_method):
7643         * console.h (available_selection_types_method): New.
7644         * console.h (register_selection_data_type_method): New.
7645         * console.h (selection_data_type_name): New.
7646
7647         * console-msw.h (mswindows_destroy_selection): Declare it.  New
7648         function & alist to track GlobalAlloc()'d handles that need
7649         releasing when the clipboard data gets replaced or emptied.
7650
7651         * event-msw.c (mswindows_wnd_proc): Call it.
7652
7653         * lisp.h, general.c (Qappend): New symbol representing a
7654         `how-to-add' mode.
7655
7656         * select.c (own-selection-internal):
7657         * select.c (selection-exists-p):
7658         * select.c (available-selection-types): New.
7659         * select.c (register-selection-data-type): New.
7660         * select.c (selection-data-type-name): New.  New functions to deal
7661         with device-specific selection data formats.
7662         * select.c (selection-converter-out-alist): Renamed.
7663         * select.c (selection-converter-in-alist): New.
7664         * select.c (selection-appender-alist): New.  Added new alists.
7665         * select.c (syms_of_select, vars_of_select): Added new symbols &
7666         variables.
7667         * select.c (get_local_selection): Split.
7668         * select.c: Removed spurious type checking - selections may now be
7669         of any type, not just strings.
7670         * select.c (own-selection-internal):
7671
7672         * select.h, select.c (convert_selection): New. Created
7673         convert_selection() function based on get_local_selection().
7674         * select.h, select.c (QCF_*): New symbols representing mswindows
7675         clipboard formats.
7676         * select.h, select.c (Qreplace_all, Qreplace_existing): New
7677         symbols representing `how-to-add' modes.
7678
7679         * select-msw.c (x_sym_p): New.
7680         * select-msw.c (symbol_to_ms_cf): New.
7681         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
7682         symbols & clipboard formats. Can also handle string names.
7683         * select-msw.c (mswindows_own_selection):
7684         * select-msw.c (mswindows_selection_exists_p):
7685         Added `data-type' parameter. Use it.
7686         * select-msw.c (mswindows_available_selection_types): New.
7687         * select-msw.c (mswindows_register_selection_data_type): New.
7688         * select-msw.c (mswindows_selection_data_type_name): New.
7689         * select-msw.c (mswindows_own_selection):
7690         * select-msw.c (mswindows_get_foreign_selection):
7691         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
7692         * select-msw.c (console_create_select_mswindows): Added new methods.
7693         * select-msw.c (mswindows_destroy_selection): New.
7694         * select-msw.c (Vhandle_alist): New list.
7695         * select-msw.c (mswindows_own_selection):
7696
7697         * select-x.c (x_own_selection):
7698         * select-x.c (x_selection_exists_p):
7699         * select-x.c: Added some comments about maybe using new
7700         functionality.
7701         * select-x.c (x_own_selection):
7702
7703         * specifier.c: Remove definition of Qappend (now in general.c)
7704         * specifier.c (syms_of_specifier): Remove Qappend.
7705
7706 2000-07-12  Martin Buchholz  <martin@xemacs.org>
7707
7708         * config.h.in: Add socklen_t.
7709
7710         * s/decosf4-0.h: No special compiler flags needed or desired.
7711         In particular, undefine _BSD for DEC OSF 4.0.
7712
7713 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7714
7715         * redisplay-msw.c (msprinter_frame_output_end): Added.
7716         (console_type_create_redisplay_mswindows): Referred the above.
7717
7718         * frame.c (setup_frame_without_minibuffer): Do not create a
7719         default minibuffer frame on a printer device.
7720
7721         * frame-msw.c (apply_dc_geometry): Added.
7722         (msprinter_start_page):
7723         (msprinter_init_frame_3):
7724         (msprinter_eject_page): Use it.
7725
7726         * console-msw.h (struct msprinter_frame): Added pix_left and top,
7727         and removed residual duplex and orientation properties.
7728
7729 2000-07-11  Martin Buchholz  <martin@xemacs.org>
7730
7731         * eval.c (function_argcount): Work around a DEC CC compiler bug.
7732
7733         * unexalpha.c: Remove system prototypes from C sources!
7734
7735 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
7736
7737         * eval.c: Remove references to M-x edit-options in DEFUNs for
7738         `defvar' and `defconst'.
7739
7740 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7741
7742         * config.h.in: Remove SMART_INCLUDE hackery.
7743
7744         PostgreSQL hacking:
7745         * config.h.in: Don't use SMART_INCLUDE.
7746
7747         * postgresql.h: Include libpq-fe.h here.  Fix typo.
7748         * inline.c: Simply #include "postgresql.h"
7749         * postgresql.c:
7750         - Don't use SMART_INCLUDE
7751         - Use simply "const".
7752         - Use standard doc string conventions.
7753         - Use correct type for result of PQstatus.
7754
7755 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7756
7757         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
7758
7759         C++ compilation changes.
7760         * config.h.in (EXTERN_C): Define.
7761         * config.h.in (not): This is also a C++ keyword.
7762         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
7763         * cm.c: Use EXTERN_C.
7764         * redisplay-tty.c: Use EXTERN_C.
7765         * sysdep.c: Use EXTERN_C.  Remove Gould support.
7766
7767 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7768
7769         * general.c: Remove duplicate definition for Qfunction.
7770
7771 2000-07-08  Ben Wing  <ben@xemacs.org>
7772
7773         * device-msw.c (msprinter_init_device):
7774         * device-msw.c (sync_printer_with_devmode):
7775         * device-msw.c (handle_devmode_changes):
7776         * device-msw.c (print_dialog_worker):
7777         * device-msw.c (Fmsprinter_apply_settings):
7778         * device-msw.c (hash_devmode):
7779         * device-msw.c (Fmsprinter_settings_despecialize):
7780         use Qmswindows_tstr, not Qctext.
7781
7782         * vm-limit.c (check_memory_limits):
7783         avoid infinite loop printing warning messages.
7784
7785 2000-07-05  Craig Lanning  <lanning@scra.org>
7786
7787         * Makefile.in.in: Add support for including the Windows resources
7788         when building with the cygwin and mingw targets.
7789
7790         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
7791         not set or not correct.
7792         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
7793         (init_initial_directory): Don't try to use $PWD on the
7794         WIN32_NATIVE target.
7795
7796         * s\cygwin32.h:
7797         [[Add -mwindows to eliminate console window.]] not required --ben
7798         (HAVE_NATIVE_SOUND): removed; now handled by configure.
7799         (MAIL_USE_POP): removed; now handled by configure.
7800
7801         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
7802         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
7803         (HAVE_NATIVE_SOUND): removed; now handled by configure.
7804         (MAIL_USE_POP): removed; now handled by configure.
7805         (ENCAPSULATE_STAT): from Dan Holmsand, added.
7806         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
7807         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
7808         constant string.
7809         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
7810         up from <winsock.h> via systime.h.
7811         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
7812         (getpagesize): from Dan Holmsand, added.
7813         Added #endif which was left dangling by Ben's mega patch; added
7814         comment to help prevent this in the future.
7815
7816         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
7817
7818 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7819
7820         * console-msw.h (struct mswindows_device): Removed unnecessary
7821         cached device geometry values.
7822         Added update_tick and an accessor macro.
7823         (Lisp_Devmode): Added lrecord declaration.
7824         (struct msprinter_device): Contain devmode as a Lisp object.
7825         Added mswindows_get_selected_frame_hwnd();
7826
7827         * console.h (struct console_methods): Indentation nitpicking.
7828
7829         * device-msw.c (mswindows_init_device): Do not initialize geometry
7830         cache. Initialize update tick.
7831         (mswindows_device_system_metrics): Ask the device for its geometry.
7832         (global_free_2_maybe):
7833         (devmode_to_hglobal):
7834         (handle_printer_changes):
7835         (ensure_not_printing):
7836         (print_dialog_worker):
7837         (Fmsprinter_print_setup_dialog):
7838         (Fmsprinter_print_dialog):
7839         (plist_get_margin):
7840         (plist_set_margin):
7841         (Fmsprinter_page_setup_dialog): Added functions.
7842         (sync_printer_with_devmode):
7843         (handle_devmode_changes):
7844         (Fmsprinter_get_settings):
7845         (Fmsprinter_select_settings):
7846         (Fmsprinter_apply_settings):
7847         (allocate_devmode):
7848         (Fmsprinter_settings_copy):
7849         (Fmsprinter_settings_despecialize):
7850         (print_devmode):
7851         (finalize_devmode):
7852         (equal_devmode):
7853         (hash_devmode): Added functions
7854         (syms_of_device_mswindows): Init devmode lrecord class.
7855
7856         * device.h: Added an exfun for find-device.
7857
7858         * event-msw.c (mswindows_wnd_proc): Do not update the cached
7859         geometry; although, recreate the device compatible DC.
7860
7861         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
7862         (msprinter_init_frame_3):
7863         (msprinter_frame_property):
7864         (msprinter_internal_frame_property_p):
7865         (msprinter_frame_properties):
7866         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
7867         print job properties (will move to device settings).
7868
7869         * lisp.h: Added symbols.
7870
7871         * general.c (syms_of_general): Declared them.
7872
7873         * hash.c (string_hash): Added.
7874
7875         * lrecord.h (lrecord_type): Added devmode lrecord type.
7876
7877 2000-07-02  Mike Sperber <mike@xemacs.org>
7878
7879         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
7880         FreeBSD 4.0.
7881
7882 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
7883
7884         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
7885         integer.
7886
7887 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
7888
7889         * data.c (Fstring_to_number): Don't recognize floating point if
7890         base is not 10.
7891
7892 2000-06-22  Martin Buchholz  <martin@xemacs.org>
7893
7894         * glyphs-widget.c (tab_control_query_geometry):
7895         (widget_query_geometry):
7896         (button_query_geometry):
7897         * glyphs.c (text_query_geometry):
7898         Enforce type correctness.
7899
7900 2000-06-18  Martin Buchholz  <martin@xemacs.org>
7901
7902         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
7903         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
7904
7905 2000-06-17  Martin Buchholz  <martin@xemacs.org>
7906
7907         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
7908         conflicts with gcc's fixincluded version of FOO.h.
7909
7910         * glyphs.h (image_instance_geometry): Remove trailing `,'
7911
7912 2000-06-08  Mike Alexander  <mta@arbortext.com>
7913
7914         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
7915         (shove_thread): Don't write the same output twice
7916         (make_ntpipe_output_stream): Increase priority of shove thread
7917         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
7918         chance to run
7919         (ntpipe_shove_closer): Don't delete the pipe until we're done with
7920         it.
7921
7922 2000-06-12  Ben Wing  <ben@xemacs.org>
7923
7924         * s\mingw32.h (sigset):
7925         * s\windowsnt.h (sigset):
7926         rename msw_ to mswindows_ for consistency with general convention.
7927
7928 2000-06-12  Ben Wing  <ben@xemacs.org>
7929
7930         * console-msw.c:
7931         * console-msw.c (mswindows_get_console_hwnd):
7932         * console-msw.c (mswindows_ensure_console_allocated):
7933         * console-msw.c (mswindows_hide_console):
7934         * console-msw.c (mswindows_show_console):
7935         * console-msw.c (mswindows_ensure_console_buffered):
7936         * console-msw.c (mswindows_output_console_string):
7937         * console-msw.c (mswindows_windows9x_p):
7938         * console-msw.h:
7939         * device-msw.c (mswindows_get_workspace_coords):
7940         * device-msw.c (mswindows_device_system_metrics):
7941         * dialog-msw.c (mswindows_popup_dialog_box):
7942         * event-msw.c (mswindows_wnd_proc):
7943         * frame-msw.c (mswindows_size_frame_internal):
7944         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
7945         * menubar-msw.c (displayable_menu_item):
7946         * menubar-msw.c (mswindows_char_is_accelerator):
7947         * nt.c:
7948         * nt.c (mswindows_sigset):
7949         * nt.c (mswindows_sigrelse):
7950         * nt.c (mswindows_sigpause):
7951         * nt.c (mswindows_raise):
7952         * nt.c (timer_proc):
7953         * ntproc.c:
7954         * ntproc.c (find_child_console):
7955         * ntproc.c (sys_kill):
7956         * print.c:
7957         * print.c (std_handle_out_external):
7958         * process-nt.c (find_child_console):
7959         * process-nt.c (send_signal_the_95_way):
7960         * process-nt.c (ensure_console_window_exists):
7961         * process-nt.c (nt_create_process):
7962         * syssignal.h:
7963         rename msw_ to mswindows_ for consistency with general convention.
7964
7965         * emacs.c:
7966         * dumper.c:
7967         include nt.h, not syswindows.h.
7968
7969         * nt.c (mswindows_fstat):
7970         * nt.c (mswindows_stat):
7971         prefix mswindows_ instead of attempting to directly override the
7972         library functions.  fix declarations.
7973
7974         * nt.h:
7975         include syswindows.h.  move some sysdep.h stuff here.
7976
7977         * ntheap.h:
7978         include syswindows.h, not <windows.h>.
7979
7980         * ntplay.c:
7981         clean up headers.
7982
7983         * sysdep.c:
7984         clean up headers.
7985
7986         * sysdep.c (sys_fstat):
7987         * sysdep.c (sys_stat):
7988         call mswindows versions when appropriate.
7989
7990         * sysdep.h:
7991         move mswin decls to nt.h.
7992
7993         * syswindows.h:
7994         add long comment describing appropriate use of the various windows
7995         headers.
7996
7997 2000-06-11  Ben Wing  <ben@xemacs.org>
7998
7999         * device-x.c: Correct doc string for sixth arg of x-get-resource.
8000
8001 2000-06-10  Ben Wing  <ben@xemacs.org>
8002
8003         * Makefile.in.in (release):
8004         Correction to make sure xemacs.exe always dumped when correct.
8005
8006         * alloca.c:
8007         * balloon_help.c:
8008         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
8009
8010         * buffer.c (set_buffer_internal):
8011         [[[[2]]]]: Remove HAVE_FEP code.
8012
8013         * buffer.c (init_initial_directory):
8014         [3].
8015
8016         * bytecode.c:
8017         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
8018         individual files.
8019
8020         * callproc.c:
8021         * callproc.c (call_process_cleanup):
8022         * callproc.c (Fold_call_process_internal):
8023         * callproc.c (child_setup):
8024         * callproc.c (getenv_internal):
8025         * callproc.c (init_callproc):
8026         * callproc.c (vars_of_callproc):
8027         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
8028         __CYGWIN32__ -> CYGWIN.
8029         DOS_NT -> WIN32_NATIVE.
8030         Remove MSDOS support/references, converting to WIN32_NATIVE
8031           where correct.
8032         __MINGW32__ -> MINGW.
8033         Fix windows.h includes.
8034         Remove bogus HAVE_NTGUI.
8035
8036         * config.h.in:
8037         [2].
8038
8039         * console-msw.c:
8040         mswindows_message_outputted added for use in allowing startup
8041         errors on the console to be seen.
8042
8043         * console-msw.c (msw_ensure_console_allocated):
8044         * console-msw.c (msw_output_console_string):
8045         * console-msw.c (DHEADER):
8046         * console-msw.c (DOPAQUE_DATA):
8047         * console-msw.c (DEVENT):
8048         * console-msw.c (DCONS):
8049         * console-msw.c (DCONSCDR):
8050         * console-msw.c (DSTRING):
8051         * console-msw.c (DVECTOR):
8052         * console-msw.c (DSYMBOL):
8053         * console-msw.c (DSYMNAME):
8054         Fix warnings.
8055
8056         * console-stream.c (stream_init_console):
8057         Fix text/binary problems.
8058
8059         * device-msw.c:
8060         * device-msw.c (mswindows_finish_init_device):
8061         * device-msw.c (mswindows_delete_device):
8062         [1].
8063
8064         * device.c (handle_asynch_device_change):
8065         [3].
8066
8067         * dgif_lib.c:
8068         * dgif_lib.c (DGifOpenFileName):
8069         * dgif_lib.c (DGifOpenFileHandle):
8070         * dgif_lib.c (DGifGetLine):
8071         * dgif_lib.c (DGifGetPixel):
8072         Added config.h/lisp.h, fix up includes.
8073         [1].
8074
8075         * dired-msw.c:
8076         [4].
8077
8078         * dired.c:
8079         * dired.c (file_name_completion):
8080         * dired.c (Ffile_attributes):
8081         * dired.c (syms_of_dired):
8082         [1].
8083
8084         * dumper.c:
8085         * dumper.c (pdump_file_unmap):
8086         * dumper.c (pdump_load):
8087         [1].
8088
8089         * editfns.c:
8090         * editfns.c (Ftemp_directory):
8091         * editfns.c (user_login_name):
8092         * editfns.c (Fuser_real_login_name):
8093         * editfns.c (get_home_directory):
8094         [1].
8095
8096         * elhash.c (finish_marking_weak_hash_tables):
8097         [[[[5]]]]: Fix GCC warnings.
8098
8099         * emacs.c:
8100         * emacs.c (mswindows_handle_hardware_exceptions):
8101         * emacs.c (make_arg_list_1):
8102         * emacs.c (main_1):
8103         * emacs.c (Fkill_emacs):
8104         * emacs.c (Fdump_emacs):
8105         [1].
8106         Fix problems with nested crashes, add long comment.
8107
8108         * event-Xt.c (init_event_Xt_late):
8109         [1].
8110
8111         * event-msw.c:
8112         * event-msw.c (mswindows_dde_callback):
8113         * event-msw.c (mswindows_handle_sticky_modifiers):
8114         * event-msw.c (mswindows_wnd_proc):
8115         [1].
8116         [5].
8117
8118         * events.c (character_to_event):
8119         [1].
8120
8121         * fileio.c:
8122         * fileio.c (Ffile_name_directory):
8123         * fileio.c (Ffile_name_nondirectory):
8124         * fileio.c (directory_file_name):
8125         * fileio.c (Fexpand_file_name):
8126         * fileio.c (Fsubstitute_in_file_name):
8127         * fileio.c (Ffile_name_absolute_p):
8128         * fileio.c (check_executable):
8129         * fileio.c (Ffile_readable_p):
8130         * fileio.c (Ffile_accessible_directory_p):
8131         * fileio.c (Ffile_modes):
8132         * fileio.c (Funix_sync):
8133         * fileio.c (vars_of_fileio):
8134         [1]. [4].
8135
8136         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
8137
8138         Expand getdefdir defn.
8139         Fix bogus rename() comment.
8140
8141         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
8142         to use standard XEmacs include files, e.g. sysfile.h, rather
8143         than system-specific includes.
8144
8145         * fns.c:
8146         * fns.c (Fsubseq):
8147         [5]. [6].
8148
8149         * frame.c (vars_of_frame):
8150         [1].
8151
8152         * getloadavg.c:
8153         * getloadavg.c (getloadavg):
8154         [1]. [6].
8155         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
8156         (We don't use it elsewhere in the code; just add a comment.)
8157
8158         * gif_io.c:
8159         [6].
8160         Add config.h.
8161
8162         * glyphs-msw.c:
8163         * glyphs-msw.c (mswindows_resource_instantiate):
8164         [1].
8165
8166         * glyphs-x.c (x_native_layout_instantiate):
8167         [5].
8168
8169         * gui-msw.c (Fmswindows_shell_execute):
8170         [1].
8171
8172         * insdel.c:
8173         [4].
8174
8175         * lisp.h:
8176         [4]. [5].
8177
8178         * lread.c (locate_file_in_directory_mapper):
8179         [1].
8180
8181         * lstream.c:
8182         [4].
8183
8184         * mem-limits.h:
8185         * mem-limits.h (get_lim_data):
8186         [1].
8187
8188         * menubar-msw.c:
8189         [4].
8190
8191         * ndir.h:
8192         [1].
8193
8194         * nt.c:
8195         * nt.c (getwd):
8196         * nt.c (closedir):
8197         * nt.c (rva_to_section):
8198         * nt.c (mswindows_executable_type):
8199         [1]. [6].
8200         Fix closedir() defn.
8201
8202         * nt.h:
8203         [[[[8]]]]: *_OK defs moved to sysfile.h.
8204
8205         * ntproc.c:
8206         [6]. [7].
8207
8208         * objects-x.c:
8209         [4].
8210
8211         * print.c:
8212         * print.c (std_handle_out_external):
8213         [1]. [4].
8214
8215         * process-nt.c:
8216         * process-nt.c (nt_create_process):
8217         [6].
8218         try to fix process quoting somewhat.
8219
8220         * process-unix.c (unix_create_process):
8221         [1].
8222
8223         * process.c:
8224         * process.c (vars_of_process):
8225         Add Vnull_device.
8226
8227         * process.h:
8228         [1].
8229
8230         * realpath.c:
8231         * realpath.c (xrealpath):
8232         [1].
8233
8234         * redisplay-tty.c (init_tty_for_redisplay):
8235         [3].
8236
8237         * redisplay.c:
8238         [4]. [6].
8239
8240         * scrollbar-msw.c:
8241         [4].
8242
8243         * sheap.c:
8244         * sheap.c (more_static_core):
8245         * sheap.c (report_sheap_usage):
8246         [5]. [6].
8247
8248         * signal.c:
8249         * signal.c (alarm_signal):
8250         [1]. [6].
8251
8252         * sound.c:
8253         [6].
8254
8255         * strftime.c:
8256         * strftime.c (zone_name):
8257         [1]. [5].
8258
8259         * symsinit.h (init_sunpro):
8260         [1].
8261
8262         * syscommctrl.h:
8263         commctrl.h not in Cygwin b20.1.
8264
8265         * sysdep.c:
8266         * sysdep.c (endif):
8267         * sysdep.c (sys_subshell):
8268         * sysdep.c (init_baud_rate):
8269         * sysdep.c (emacs_get_tty):
8270         * sysdep.c (emacs_set_tty):
8271         * sysdep.c (tty_init_sys_modes_on_device):
8272         * sysdep.c (init_system_name):
8273         * sysdep.c (sys_open):
8274         * sysdep.c (interruptible_open):
8275         * sysdep.c (sys_fopen):
8276         * sysdep.c (sys_mkdir):
8277         * sysdep.c (sys_rename):
8278         * sysdep.c (get_process_times_1):
8279         [1]. [6].
8280
8281         * sysdep.h:
8282         [1].
8283
8284         * sysdir.h:
8285         * sysdir.h (DIRENTRY_NONEMPTY):
8286         [1]. [6].
8287
8288         * sysdll.c (dll_init):
8289         * sysdll.h:
8290         [1].
8291
8292         * sysfile.h:
8293         [1]. [6]. [8].
8294         added text/binary defs.
8295
8296         * sysfloat.h:
8297         [1].
8298
8299         * sysproc.h:
8300         * sysproc.h (EDESTADDRREQ):
8301         * sysproc.h (poll_fds_for_input):
8302         [1]. [6].
8303
8304         * syspwd.h:
8305         [6].
8306
8307         * syssignal.h:
8308         [1].
8309
8310         * systime.h:
8311         [1]. [6].
8312
8313         * systty.h:
8314         [1].
8315
8316         * syswindows.h:
8317         [1].
8318         Always define WIN32_LEAN_AND_MEAN.
8319
8320         * unexcw.c (unexec):
8321         [5].
8322
8323         * unexec.c:
8324         * unexec.c (copy_text_and_data):
8325         * unexec.c (adjust_lnnoptrs):
8326         [1].
8327
8328         * unexnt.c:
8329         * unexnt.c (_start):
8330         [1].
8331
8332 2000-06-07  Ben Wing  <ben@xemacs.org>
8333
8334         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
8335         was used only as a model.  We've long since extracted any useful
8336         logic or code out of this. (I just did an exhaustive search.)
8337
8338         * s\msdos.h: Removed.
8339
8340         * s\windows95.h: Removed.
8341
8342 2000-06-10  Ben Wing  <ben@xemacs.org>
8343
8344         * s\cygwin32.h:
8345         [1]. [5].
8346         Don't use extern with fun defs.
8347
8348         * s\mingw32.h:
8349         [1]. [7].
8350         Remove nt\inc include.
8351         Remove getdisk, getdefdir. (The former is unused, the latter
8352         expanded in fileio.h.)
8353
8354         * s\windowsnt.h:
8355         * s\windowsnt.h (WIN32_NATIVE):
8356         * s\windowsnt.h (HAVE_STRCASECMP):
8357         [1]. [7].
8358         Add long comment about preprocessor changes.
8359         Remove getdisk, getdefdir. (The former is unused, the latter
8360         expanded in fileio.h.)
8361
8362 2000-06-10  Ben Wing  <ben@xemacs.org>
8363
8364         * m\arm.h:
8365         * m\delta.h:
8366         * m\intel386.h:
8367         * m\sequent.h:
8368         * m\template.h:
8369         * m\windowsnt.h:
8370         [1].
8371         Remove bogus/unused NO_SOCK_SIGIO.
8372
8373 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
8374
8375         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
8376         not an Emchar.
8377
8378 2000-06-04  Mike Sperber <mike@xemacs.org>
8379
8380         * casetab.c (set_case_table): For `set-standard-case-table',
8381         actually deposit the new case tables where the rest of XEmacs can
8382         see them.
8383
8384 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
8385
8386         * data.c (Faset): Don't cast XCHAR() to unsigned char.
8387
8388 2000-06-05  Ben Wing  <ben@xemacs.org>
8389
8390         * callproc.c (child_setup): Don't do close_load_descs() under
8391         MS Windows.  Put in a comment explaining why.
8392
8393 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
8394
8395         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
8396         Toolkit shell" which breaks `kill-compilation' on Windows NT
8397         native, retaining STDERR handling improvements.
8398
8399 2000-06-01  Andreas Jaeger  <aj@suse.de>
8400
8401         * s/s390.h: Support for S390, based on a patch by Martin
8402         Schwidefsky <schwidefsky@de.ibm.com>.
8403
8404 2000-05-30  Andy Piper  <andy@xemacs.org>
8405
8406         * window.c (allocate_window):
8407         (make_dummy_parent):
8408         (Fset_window_configuration): use new hashtable type.
8409
8410         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
8411         (struct image_instantiator_methods):
8412         (struct Lisp_Image_Instance): make instance geometry signed.
8413
8414         * glyphs.c (instantiate_image_instantiator):
8415         (image_instance_query_geometry):
8416         (image_instance_layout):
8417         (image_instance_layout):
8418         (query_string_geometry):
8419         (text_query_geometry):
8420         (image_instantiate):
8421         (image_instantiate):
8422         (cache_subwindow_instance_in_frame_maybe):
8423         (subwindow_query_geometry): make instance geometry signed.
8424
8425         * glyphs-widget.c (widget_query_geometry):
8426         (widget_layout):
8427         (button_query_geometry):
8428         (tree_view_query_geometry):
8429         (tab_control_query_geometry):
8430         (layout_query_geometry):
8431         (layout_layout):
8432         (native_layout_layout): make instance geometry signed.
8433
8434 2000-05-29  Olivier Galibert  <galibert@pobox.com>
8435
8436         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
8437         constant.
8438
8439         * general.c (syms_of_general): Add Qfull_assoc symbol.
8440
8441         * data.c (finish_marking_weak_lists): Mark full-assoc lists
8442         correctly.
8443         (decode_weak_list_type): Decode full-assoc type.
8444         (encode_weak_list_type): Encode full-assoc type.
8445         (Fmake_weak_list): Update doc string.
8446
8447 2000-05-30  Andy Piper  <andy@xemacs.org>
8448
8449         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
8450
8451         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
8452         (decode_hash_table_weakness): ditto.
8453         (Fhash_table_weakness): ditto.
8454         (Fhash_table_type): ditto.
8455         (finish_marking_weak_hash_tables): ditto.
8456         (hash_table_weakness_validate): ditto.
8457         (syms_of_elhash): ditto.
8458
8459 2000-05-28  Martin Buchholz <martin@xemacs.org>
8460
8461         * XEmacs 21.2.34 is released.
8462
8463 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
8464
8465         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
8466         start cache.
8467         (updating_line_start_cache): Gone.
8468         (regenerate_window): Replace resetting of VERTICAL_CLIP by
8469         generic code to force a minimum of 1 line laid out in the
8470         CMOTION_DISP case.
8471
8472 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
8473
8474         * glyphs.c (instantiate_image_instantiator): Check for initialized
8475         height & width no longer special cases IMAGE_NOTHING.
8476         (nothing_instantiate): Set height and width of instance.
8477
8478 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
8479
8480         * unexelf.c (unexec): Search for ".data" section.
8481         Initialize new_data2_offset from old_data_index.
8482         Remove redundant check for ElfW.
8483
8484 2000-05-23  Andy Piper  <andy@xemacs.org>
8485
8486         * glyphs.c (get_image_instantiator_governing_domain): allow more
8487         specific domains as the governing domain rather than expecting an
8488         exact match. This fixes problems with layouts.
8489
8490 2000-05-22  Andy Piper  <andy@xemacs.org>
8491
8492         * redisplay-output.c (compare_runes): check for non-images
8493
8494         * glyphs.c (set_glyph_dirty_p): ditto.
8495         (update_glyph_cachel_data): ditto.
8496
8497         * glyphs-widget.c (layout_post_instantiate): ditto.
8498         (layout_post_instantiate): ditto.
8499
8500         * event-msw.c (mswindows_wnd_proc): warning removal.
8501
8502 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
8503
8504         * s\mingw32.h: Added #undef for CLASH_DETECTION.
8505
8506         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
8507
8508         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
8509
8510         * nt.c (rva_to_section): mingw32 needs rva_to_section.
8511         (mswindows_executable_type): mingw32 now has enough headers for
8512         this to work.
8513
8514 2000-05-20  Andy Piper  <andy@xemacs.org>
8515
8516         * console-msw.c (mswindows_output_last_error): ; -> ,
8517
8518 2000-05-12  Andy Piper  <andy@xemacs.org>
8519
8520         * console-msw.c (FROB): compare ints with ints.
8521
8522 2000-05-11  Andy Piper  <andy@xemacs.org>
8523
8524         * glyphs-x.c (x_finalize_image_instance): make minimal build
8525         happy.
8526
8527 2000-05-20  Ben Wing  <ben@xemacs.org>
8528
8529         * event-Xt.c:
8530         * event-Xt.c (vars_of_event_Xt):
8531         move modifier-keys-are-sticky to event-stream.c.
8532
8533         * event-msw.c:
8534         * event-msw.c (mswindows_enqueue_mouse_button_event):
8535         * event-msw.c (key_needs_default_processing_p):
8536         * event-msw.c (XEMSW_LCONTROL):
8537         * event-msw.c (mswindows_handle_sticky_modifiers):
8538         * event-msw.c (FROB):
8539         * event-msw.c (clear_sticky_modifiers):
8540         * event-msw.c (output_modifier_keyboard_state):
8541         * event-msw.c (output_alt_keyboard_state):
8542         * event-msw.c (mswindows_wnd_proc):
8543         * event-msw.c (mswindows_modifier_state):
8544         * event-msw.c (emacs_mswindows_handle_magic_event):
8545         implement sticky modifiers.
8546
8547         * event-stream.c:
8548         * event-stream.c (vars_of_event_stream):
8549         move modifier-keys-are-sticky here.
8550
8551         * lisp.h:
8552         add CHECK_FUNCTION.
8553
8554         * rangetab.c:
8555         implement map-range-table.
8556
8557
8558 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
8559
8560         * redisplay-tty.c (reset_tty_modes):
8561         (tty_redisplay_shutdown): Adjust argument type to
8562         tty_frame_output_end.
8563
8564 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8565
8566         * eval.c (Fbacktrace): Don't output a line with only right
8567         parenthesis.
8568
8569 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
8570
8571         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
8572         (Fpq_reset_poll): Ditto.
8573
8574 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
8575
8576         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
8577
8578 2000-05-16  Ben Wing  <ben@xemacs.org>
8579
8580         * buffer.c:
8581         * buffer.c (dfc_convert_to/from_internal_format):
8582         * buffer.c (reinit_vars_of_buffer):
8583         Fix conversion functions to allow reentrancy.
8584
8585         * console-msw.c:
8586         * console-msw.c (mswindows_output_last_error):
8587         New fun, generally useful -- output a human-readable
8588         version of GetLastError() on the console.
8589
8590         * console-msw.h:
8591         * console-msw.h (struct mswindows_frame):
8592         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
8593
8594         * console-stream.c (stream_output_begin):
8595         * console-stream.c (stream_output_end):
8596         * console-stream.c (stream_output_vertical_divider):
8597         * console-stream.c (stream_clear_region):
8598         * console-stream.c (stream_flash):
8599         * console-stream.c (console_type_create_stream):
8600         Delete blank stream methods, not needed.
8601
8602         * console.h (struct console_methods):
8603         Split begin/end methods into window and frame.
8604
8605         * event-msw.c:
8606         * event-msw.c (mswindows_handle_paint):
8607         * event-msw.c (output_alt_keyboard_state):
8608         * event-msw.c (mswindows_wnd_proc):
8609         * event-msw.c (vars_of_event_mswindows):
8610         Comment about problems with ignored-expose.
8611         Define mswindows-debug-events; not really implemented.
8612
8613         * frame-msw.c (mswindows_init_frame_1):
8614         random cleanups.
8615
8616         * glyphs-msw.c:
8617         * glyphs-msw.c (begin_defer_window_pos):
8618         * glyphs-msw.c (mswindows_unmap_subwindow):
8619         * glyphs-msw.c (mswindows_map_subwindow):
8620         * glyphs-msw.c (mswindows_resize_subwindow):
8621         Use DeferWindowPos to reduce flashing when mapping/unmapping.
8622
8623         * glyphs.c (make_image_instance_1):
8624         Fix crash.
8625
8626         * gutter.c (Fredisplay_gutter_area):
8627         Use new begin/end methods.
8628
8629         * lisp.h (Dynarr_new2):
8630         New creation fun.
8631
8632         * redisplay-msw.c:
8633         * redisplay-msw.c (mswindows_frame_output_begin):
8634         * redisplay-msw.c (mswindows_frame_output_end):
8635         * redisplay-msw.c (console_type_create_redisplay_mswindows):
8636         New begin/end methods -- handle DeferWindowPos.
8637
8638         * redisplay-output.c (redisplay_move_cursor):
8639         * redisplay-output.c (redraw_cursor_in_window):
8640         * redisplay-output.c (redisplay_update_line):
8641         * redisplay-output.c (redisplay_output_window):
8642         New begin/end methods.
8643
8644         * redisplay-tty.c:
8645         * redisplay-tty.c (tty_frame_output_begin):
8646         * redisplay-tty.c (tty_frame_output_end):
8647         * redisplay-tty.c (console_type_create_redisplay_tty):
8648         New begin/end methods.
8649
8650         * redisplay-x.c:
8651         * redisplay-x.c (x_window_output_begin):
8652         * redisplay-x.c (x_window_output_end):
8653         * redisplay-x.c (console_type_create_redisplay_x):
8654         New begin/end methods.
8655
8656         * redisplay.c (redisplay_frame):
8657         * redisplay.c (Fredisplay_echo_area):
8658         New begin/end methods.
8659         use MAYBE_DEVMETH for clear_frame; it may not exist.
8660
8661         * window.h (WINDOW_XFRAME):
8662         WINDOW_XFOO macros -- get locale and decode struct pointer.
8663
8664
8665 2000-05-12  Ben Wing  <ben@xemacs.org>
8666
8667         * emacs.c:
8668         * emacs.c (ensure_no_quitting_from_now_on):
8669         * emacs.c (fatal_error_signal):
8670         * emacs.c (mswindows_handle_hardware_exceptions):
8671         * emacs.c (main):
8672         * emacs.c (Fkill_emacs):
8673         * emacs.c (shut_down_emacs):
8674         * emacs.c (assert_failed):
8675         various improvements in fatal error handling.
8676
8677         * eval.c:
8678         move preparing_for_armageddon to emacs.c.
8679
8680         * lisp.h:
8681         declare fatal_error_in_progress.
8682
8683         * print.c:
8684         * print.c (std_handle_out_external):
8685         * print.c (std_handle_out_va):
8686         * print.c (stderr_out):
8687         * print.c (stdout_out):
8688         use console under mswin when no standard output.
8689         don't do code conversion during fatal error.
8690
8691         * scrollbar.c (Fscrollbar_page_up):
8692         * scrollbar.c (Fscrollbar_page_down):
8693         fix missing else.  reindent.
8694
8695 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
8696
8697         Emergency fix.
8698
8699         * glyphs.h (GLYPH_CACHEL_DESCENT):
8700         (GLYPH_CACHEL_DESCENT):
8701         (GLYPH_CACHEL_DESCENT):
8702         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
8703         used in case these are inline functions.
8704         Use more absurd values to error check.
8705
8706         include window.h for error check functions.
8707
8708 2000-05-11  Ben Wing  <ben@xemacs.org>
8709
8710         * cmdloop.c (Freally_early_error_handler):
8711         Display message box under windows; otherwise, message will disappear
8712         before it can be viewed.
8713
8714         * console-msw.c:
8715         * console-msw.c (Fmswindows_message_box):
8716         * console-msw.c (FROB):
8717         * console-msw.c (syms_of_console_mswindows):
8718         Define new fun `mswindows-message-box'.
8719         #### I will merge this into `popup-dialog-box'; just give me
8720         a bit of time.
8721
8722         * general.c:
8723         * general.c (syms_of_general):
8724         Some new symbols used in `mswindows-message-box'.
8725
8726         * glyphs.c:
8727         * glyphs.c (Fset_image_instance_property):
8728         put warning in this fun.
8729
8730         * glyphs.h:
8731         * glyphs.h (GLYPH_CACHEL_WIDTH):
8732         * glyphs.h (GLYPH_CACHEL_ASCENT):
8733         * glyphs.h (GLYPH_CACHEL):
8734         * glyphs.h (GLYPH_CACHEL_GLYPH):
8735         define error-checking versions to try to catch a bug i've seen --
8736         redisplay gets in an infinite loop because the glyph width of the
8737         continuation glyph is 65535.
8738
8739         * lisp.h:
8740         Extern message-box stuff.
8741
8742         * window.c (allocate_window):
8743         * window.c (make_dummy_parent):
8744         * window.c (Fset_window_configuration):
8745         Use EQUAL not EQ for subwindow caches to make them work a bit
8746         better. (Something is still very broken.)
8747
8748
8749 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8750
8751         * glyphs.c (image_instantiate): Suppress gcc warnings.
8752         (Fmake_image_instance): Fix doc string.
8753         * specifier.c (Fmake_specifier): Ditto.
8754
8755 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
8756
8757         * paths.h.in (PATH_LOCK): Removed.
8758         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
8759         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
8760
8761 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
8762
8763         * fns.c (Ffeaturep): Update e-mail address in doc-string.
8764         Document (featurep '(and xemacs 21.02)).
8765
8766 2000-05-09  Ben Wing  <ben@xemacs.org>
8767
8768         * buffer.c (complex_vars_of_buffer):
8769         update modeline-format doc.
8770
8771         * device.h:
8772         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
8773
8774         * emacs.c:
8775         timeline of all released versions of Emacs, for use in creating
8776         authorship comments and in synching up.
8777
8778         * glyphs-widget.c (image_instantiator_buttons):
8779         * glyphs-widget.c (image_instantiator_edit_fields):
8780         * glyphs-widget.c (image_instantiator_combo_box):
8781         * glyphs-widget.c (image_instantiator_scrollbar):
8782         * glyphs-widget.c (image_instantiator_progress_guage):
8783         * glyphs-widget.c (image_instantiator_tree_view):
8784         * glyphs-widget.c (image_instantiator_tab_control):
8785         * glyphs-widget.c (image_instantiator_labels):
8786         * glyphs-widget.c (image_instantiator_layout):
8787         * glyphs-widget.c (image_instantiator_native_layout):
8788         rename decode_domain method to governing_domain.
8789
8790         * glyphs.c:
8791         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
8792         * glyphs.c (add_entry_to_device_ii_format_list):
8793         make sure we don't put an entry more than once into the list.
8794         * glyphs.c (check_instance_cache_mapper):
8795         *************************************************************
8796         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
8797         HAVE BEEN GETTING.
8798         *************************************************************
8799         * glyphs.c (get_image_instantiator_governing_domain):
8800         clean up, expand on new concept of governing domain.
8801         * glyphs.c (instantiate_image_instantiator):
8802         * glyphs.c (allocate_image_instance):
8803         use governing_domain instead of cache_domain in naming.
8804         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
8805         * glyphs.c (make_image_instance_1):
8806         * glyphs.c (Fmake_image_instance):
8807         allow for any domain (not just device), and process the
8808         governing domain correctly.  very big doc fix.
8809         * glyphs.c (Fimage_instance_domain):
8810         new primitive, to retrieve the governing domain of an image instance.
8811         * glyphs.c (image_instantiate):
8812         use new governing_domain stuff.  this fixes a crash you could get
8813         by instantiating certain widget glyphs in frame locales. (should
8814         signal an error instead of crashing.)
8815         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
8816         * glyphs.c (Fglyphp): clean up doc.
8817         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
8818         * glyphs.c (syms_of_glyphs):
8819         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
8820         * glyphs.c (image_instantiator_format_create): add some comments about
8821         bogus code.
8822         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
8823         for current-display-table. (Apparently Hrjove implemented in 1998 a
8824         design I wrote up in 1996, but didn't update the doc string.)
8825
8826         * glyphs.h: clean up a doc string.
8827         * glyphs.h (governing_domain):
8828         * glyphs.h (struct image_instantiator_methods):
8829         changes for governing_domain stuff.
8830
8831         * gutter.c:
8832         * gutter.c (Fgutter_specifier_p):
8833         * gutter.c (Fgutter_size_specifier_p):
8834         * gutter.c (Fgutter_visible_specifier_p):
8835         * objects.c:
8836         * objects.c (Fcolor_specifier_p):
8837         * objects.c (Ffont_specifier_p):
8838         * objects.c (Fface_boolean_specifier_p):
8839         doc strings moved to make-*-specifier.
8840
8841         * redisplay.c (add_disp_table_entry_runes_1):
8842         * redisplay.c (generate_fstring_runes):
8843         * redisplay.c (screen):
8844         add random comments and doc strings.
8845
8846         * specifier.c:
8847         * specifier.c (Fmake_specifier):
8848         major overhaul of this doc string.
8849
8850         * specifier.c (Fvalid_specifier_domain_p):
8851         comment about the bogosity of image instances being domains.
8852         * specifier.c (decode_domain):
8853         now non-static, used in glyphs.c.
8854         * specifier.c (specifier_instance):
8855         comment about the bogosity of image instances being domains.
8856         * specifier.c (Fgeneric_specifier_p):
8857         move doc string to make-generic-specifier.
8858         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
8859         rebackslashify.
8860
8861         * specifier.h:
8862         * specifier.h (DOMAIN_FRAME):
8863         * specifier.h (DOMAIN_LIVE_P):
8864         * specifier.h (DOMAIN_XDEVICE):
8865         rebackslashify.
8866         add comments about problems with these macros.
8867         prototype for decode_domain.
8868
8869         * toolbar.c:
8870         * toolbar.c (Ftoolbar_specifier_p):
8871         move doc string to `make-toolbar-specifier'.
8872
8873         * window.c (window_unmap_subwindows_cache_mapper):
8874         *************************************************************
8875         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
8876         HAVE BEEN GETTING.
8877         *************************************************************
8878
8879 2000-05-09  Andy Piper  <andy@xemacs.org>
8880
8881         * glyphs.h: declare reset_frame_subwindow_instance_cache.
8882
8883         * window.c (Fset_window_configuration): reset the frame subwindow
8884         cache and re-initialize the window subwindow caches.
8885
8886         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
8887
8888 2000-05-09  Ben Wing  <ben@xemacs.org>
8889
8890         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
8891         DWORD.
8892
8893 2000-04-26  Mike Woolley  <mike@bulsara.com>
8894
8895         * ntheap.c: Changed recreate_heap to limit the amount reserved
8896         for the heap to that which is actually available. Also now
8897         displays a message box (with some dignostics) in the event that
8898         it still can't start.
8899
8900 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
8901
8902         * callproc.c (Fold_call_process_internal): GCPRO path
8903
8904 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
8905
8906         Patch by Bill Perry.
8907
8908         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
8909         back data instead of #ifdef.
8910         (Fscrollbar_page_down): ditto.
8911
8912 2000-05-07  Ben Wing  <ben@xemacs.org>
8913
8914         * buffer.h:
8915         Kludge for defining Qmswindows_tstr.
8916
8917         * nt.c:
8918         * nt.c (open_input_file):
8919         * nt.c (open_output_file):
8920         * nt.c (rva_to_section):
8921         * nt.c (mswindows_executable_type):
8922         Move all memory-mapped-file routines here (some were in unexnt.c,
8923         which is bad because they are used by process-nt.c, and unexnt
8924         won't be around when portable dumping).  Synched the above routines
8925         with FSF 20.6.
8926
8927         * nt.h:
8928         Removed ifdef'd out bogus code.
8929         Fixed some prototypes.
8930
8931         * nt.h (file_data):
8932         * nt.h (OFFSET_TO_RVA):
8933         * nt.h (RVA_TO_OFFSET):
8934         * nt.h (RVA_TO_PTR):
8935         Moved the memory-mapped-file structures, macros and prototypes
8936         here, to parallel nt.c.  ntheap.h should really be removed
8937         entirely, and it's a non-portable-dumper specific file.
8938
8939         * ntheap.h (round_to_next):
8940         Moved the memory-mapped-file structures, macros and prototypes
8941         to nt.h.
8942
8943         * ntproc.c (compare_env):
8944         Moved rva_to_section and mswindows_executable_type to nt.c.
8945         Moved compare_env to process-nt.c.
8946         ntproc.c will die, one day.
8947
8948         * ntproc.c (sys_spawnve):
8949         Account for win32_ -> mswindows_.
8950
8951         * process-nt.c:
8952         * process-nt.c (struct nt_process_data):
8953         * process-nt.c (ensure_console_window_exists):
8954         * process-nt.c (compare_env):
8955         * process-nt.c (nt_create_process):
8956         * process-nt.c (nt_kill_process_by_pid):
8957         * process-nt.c (syms_of_process_nt):
8958         * process-nt.c (vars_of_process_nt):
8959         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
8960         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
8961         changes).  Eliminate our old `nt-quote-process-args' mechanism.
8962         Synch up nt_create_process with FSF 20.6 sys_spawnve.
8963         Move compare_env here from ntproc.c.
8964
8965         * process.c (Fprocess_send_region):
8966         Takes an optional fourth argument, BUFFER, which should fix some
8967         problems with call-process.
8968
8969         * syscommctrl.h:
8970         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
8971
8972         * syswindows.h:
8973         Move ICC_BAR_CLASSES to syscommctrl.h.
8974         Add preliminary macros for MSWindows/Mule.  More to come.
8975
8976         * unexnt.c:
8977         * unexnt.c (unexec):
8978         open_output_file moved to nt.c.
8979
8980
8981 2000-05-05  Andy Piper  <andy@xemacs.org>
8982
8983         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
8984         instance from the frame cache also since GC may catch up too late
8985         to make frame deletion sane.
8986
8987 2000-05-04  Andy Piper  <andy@xemacs.org>
8988
8989         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
8990         (x_finalize_image_instance): ungcpro on deletion.
8991
8992         * glyphs.c (image_instantiator_format_create): give pointers a
8993         query geometry method so that the geometry is at least set.
8994
8995         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
8996         initialize layouts if using widgets.
8997
8998 2000-05-03  Andy Piper  <andy@xemacs.org>
8999
9000         * nt.c: remove bogus reference to sysmmsystem.h
9001
9002         * gui-x.c (popup_selection_callback): fix no selection abort.
9003
9004 2000-05-02  Andy Piper  <andy@xemacs.org>
9005
9006         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
9007         (mswindows_widget_instantiate): ditto.
9008
9009         * glyphs-widget.c (initialize_widget_image_instance): initialize
9010         children correctly.
9011         (widget_instantiate): cope with children and items in the same
9012         instance.
9013
9014         * glyphs.c (mark_image_instance): cope with children as a first
9015         class member.
9016         (image_instance_equal): ditto.
9017         (image_instance_hash): ditto.
9018         (image_instance_changed): ditto.
9019
9020 2000-04-30  Andy Piper  <andy@xemacs.org>
9021
9022         * glyphs.c (subwindow_query_geometry): new function. Return some
9023         defaults.
9024         (subwindow_instantiate): don't assign dimensions if none have been
9025         given.
9026         (image_instantiator_format_create): add subwindow_query_geometry.
9027         (print_image_instance): cope with layouts as widgets.
9028
9029 2000-04-29  Andy Piper  <andy@xemacs.org>
9030
9031         * frame.c (delete_frame_internal): call
9032         free_frame_subwindow_instance_cache so that all subwindows are
9033         finalized before their parent.
9034         (mark_frame): remove subwindow_cachels.
9035         (Fmake_frame): remove subwindow_cachel manipulation.
9036         (allocate_frame_core): subwindow_instance_cache is a weak list.
9037         (delete_frame_internal): set subwindow_instance_cache to nil.
9038
9039         * glyphs-msw.c (mswindows_finalize_image_instance): make double
9040         finalization safe.
9041         (mswindows_finalize_image_instance): use the device
9042         not the domain as the domain may have died already.
9043
9044         * glyphs-x.c (x_finalize_image_instance): ditto.
9045         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
9046         HEIGHT.
9047
9048         * redisplay-output.c (redisplay_unmap_subwindows): update for
9049         subwindow instance cache as a weak list.
9050         (redisplay_unmap_subwindows_maybe): ditto.
9051         (redisplay_unmap_subwindows_except_us): ditto.
9052
9053         * glyphs.c (unmap_subwindow): error checking will check the domain
9054         so don't deal with it here. Don't use cachels anymore.
9055         (map_subwindow): ditto.
9056         (update_subwindow_cachel_data): remove old accessor names.
9057         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
9058         (Fresize_subwindow): don't update cachel.
9059         (mark_subwindow_cachels):
9060         (update_subwindow_cachel_data):
9061         (add_subwindow_cachel):
9062         (get_subwindow_cachel_index):
9063         (update_subwindow_cachel):
9064         (reset_subwindow_cachels):
9065         (mark_subwindow_cachels_as_not_updated): deleted.
9066         (cache_subwindow_instance_in_frame_maybe): new function. Add a
9067         subwindow instance to the frame cache.
9068         (find_matching_subwindow): update for subwindow instance cache as
9069         a weak list.
9070         (update_widget_instances): ditto.
9071         (image_instance_type_to_mask):inlined.
9072         (free_frame_subwindow_instance_cache): new function. finalize all
9073         subwindows that are instantiated.
9074
9075         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
9076         of cachel information.
9077         (IMAGE_INSTANCE_DISPLAY_X):
9078         (IMAGE_INSTANCE_DISPLAY_Y):
9079         (IMAGE_INSTANCE_DISPLAY_WIDTH):
9080         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
9081         (XIMAGE_INSTANCE_DISPLAY_X):
9082         (XIMAGE_INSTANCE_DISPLAY_Y):
9083         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
9084         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
9085         remove subwindow_cachel structure and function references.
9086         (image_instance_type_to_mask): inline from glyphs.c
9087
9088         * redisplay.c (redisplay_frame): remove subwindow_cachel
9089         references.
9090
9091         * frame.h (struct frame): remove subwindow_cachels.
9092         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
9093
9094         * frameslots.h: add subwindow_instance_cache.
9095
9096         * window.c (replace_window): check subwindow cache of replacement.
9097         (window_unmap_subwindows_cache_mapper):
9098         (window_unmap_subwindows): new functions. Unmap all subwindows
9099         cached on this window.
9100         (mark_window_as_deleted): unmap all subwindows.
9101
9102 2000-04-27  Andy Piper  <andy@xemacs.org>
9103
9104         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
9105
9106         * glyphs-widget.c (widget_layout): return something.
9107         (layout_layout): return something. Fail if not initialized.
9108         (layout_query_geometry): ditto.
9109         (image_instantiator_native_layout): new function. Initialized the
9110         native layout type.
9111         (widget_instantiate): don't do layout stuff here.
9112
9113         * glyphs.c (instantiate_image_instantiator): reorded calling or
9114         instantiate and post_instantiate with layout in between.
9115         (image_instance_layout): be more selective about deciding whether
9116         the layout has been done or not.
9117
9118         * glyphs.h (struct image_instantiator_methods): return a value
9119         from layout_method.
9120
9121 2000-04-26  Andy Piper  <andy@xemacs.org>
9122
9123         * glyphs.c (allocate_image_instance): make initial width and
9124         height unspecified. Set initialized to 0.
9125
9126         * syscommctrl.h new file. Encapsulates commctrl.h.
9127
9128         * syswindows.h new file. Encapsulates windows.h.
9129
9130         * ntplay.c: use new syswindows.h and syscommctrl.h header.
9131         * nt.c: ditto.
9132         * console-msw.h: ditto.
9133
9134         * redisplay-tty.c (tty_output_display_block): remove layout references.
9135
9136         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
9137         window handle rather than just the frame.
9138
9139         * glyphs.c (mark_image_instance): remove layout references.
9140         (print_image_instance): ditto.
9141         (image_instance_equal): ditto.
9142         (image_instance_hash): ditto.
9143         (decode_image_instance_type): ditto.
9144         (encode_image_instance_type): ditto.
9145         (image_instantiate): ditto.
9146         (allocate_glyph): ditto.
9147         (Fimage_instance_height): ditto.
9148         (Fimage_instance_width): ditto.
9149         (update_subwindow): ditto.
9150
9151         * redisplay-x.c (x_output_display_block): recode for layouts as
9152         widgets.
9153
9154         * redisplay-output.c (redisplay_output_layout): recode for layouts
9155         as widgets.
9156         (compare_runes): remove layout references.
9157
9158         * redisplay-msw.c (mswindows_output_display_block): recode for
9159         layouts as widgets.
9160
9161         * glyphs-widget.c (image_instantiator_layout): remove
9162         layout_possible_dest_types.
9163         (layout_possible_dest_types): deleted.
9164
9165         * glyphs.h (image_instance_type): remove layout references.
9166         (struct Lisp_Image_Instance): ditto. Add initialized flag.
9167         (IMAGE_INSTANCE_INITIALIZED): new accessor.
9168         (XIMAGE_INSTANCE_INITIALIZED): ditto.
9169
9170 2000-04-25  Andy Piper  <andy@xemacs.org>
9171
9172         * glyphs-widget.c (image_instantiator_buttons):
9173         (image_instantiator_edit_fields):
9174         (image_instantiator_combo_box):
9175         (image_instantiator_scrollbar):
9176         (image_instantiator_progress_guage):
9177         (image_instantiator_tree_view):
9178         (image_instantiator_tab_control):
9179         (image_instantiator_labels):
9180         (image_instantiator_layout): call default post_instantiate method.
9181         (widget_post_instantiate): new function. Simply lays out the
9182         widgets.
9183
9184         * glyphs.h (struct image_instantiator_methods): add
9185         post_instantiate method.
9186
9187         * glyphs.c (instantiate_image_instantiator): add post_instantiate
9188         method calls.
9189
9190 2000-04-23  Andy Piper  <andy@xemacs.org>
9191
9192         * glyphs.h (struct image_instantiator_methods): add
9193         decode_domain_method.
9194         (struct Lisp_Image_Instance): remove subwindow frame - it can be
9195         derived from the domain.
9196         (IMAGE_INSTANCE_FRAME): new accessor.
9197         (XIMAGE_INSTANCE_FRAME): ditto.
9198
9199         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
9200         instead of _SUBWINDOW_FRAME.
9201         (finalize_image_instance): ditto.
9202         (Fimage_instance_foreground): ditto.
9203         (Fimage_instance_background): ditto.
9204         (image_instantiate): ditto.
9205         (update_subwindow_cachel): ditto.
9206         (update_subwindow): ditto.
9207         (unmap_subwindow): ditto.
9208         (map_subwindow): ditto
9209         (subwindow_instantiate): ditto.
9210         * glyphs-msw.c (mswindows_update_widget): ditto.
9211         (mswindows_progress_gauge_instantiate): ditto.
9212         (mswindows_tab_control_update): ditto.
9213         * glyphs-x.c (x_update_widget): ditto.
9214         (x_widget_instantiate): ditto.
9215         (x_tab_control_instantiate): ditto.
9216         (x_tab_control_update): ditto.
9217         * event-msw.c (mswindows_wnd_proc): ditto
9218
9219         * glyphs-widget.c (image_instantiator_layout): use
9220         subwindow_decode_domain.
9221         (image_instantiator_buttons): ditto.
9222         (image_instantiator_edit_fields): ditto.
9223         (image_instantiator_combo_box): ditto.
9224         (image_instantiator_scrollbar): ditto.
9225         (image_instantiator_progress_guage): ditto.
9226         (image_instantiator_tree_view): ditto.
9227         (image_instantiator_tab_control): ditto.
9228         (image_instantiator_labels): ditto.
9229         (image_instantiator_layout): ditto.
9230
9231         * glyphs.c: add instance error checking to many functions.
9232         (instantiate_image_instantiator): decode device from cache_domain.
9233         (image_instantiate): partially rewrite by using
9234         decode_image_instantiator_domain to determine what domain the
9235         instance needs to be cached in.
9236         (decode_image_instantiator_domain): new function. Determine what
9237         domain the image needs to be cached in.
9238         (check_window_subwindow_cache): new error checking function.
9239         (check_instance_cache_mapper): ditto.
9240         (check_image_instance_structure): ditto.
9241         (subwindow_decode_domain): new function. Encodes a window as a
9242         subwindow's cache domain.
9243         (image_instantiator_format_create): use it for text and
9244         subwindows.
9245
9246 2000-04-21  Andy Piper  <andy@xemacs.org>
9247
9248         * glyphs.c (image_instance_device): new function.
9249         (image_instance_frame): new function.
9250         (image_instance_window): new function.
9251         (image_instance_live_p): new function.
9252
9253         * window.c (mark_window_as_deleted): reset the subwindow_instance_
9254         cache to nil.
9255
9256         * glyphs.h (struct Lisp_Image_Instance): device->domain.
9257         (IMAGE_INSTANCE_DOMAIN): new accessor.
9258         (XIMAGE_INSTANCE_DOMAIN): ditto.
9259
9260         * glyphs-x.c (x_finalize_image_instance): device->domain.
9261
9262         * glyphs-msw.c (init_image_instance_geometry): device->domain.
9263         (mswindows_finalize_image_instance): ditto.
9264
9265         * glyphs-eimage.c (jpeg_instantiate): device->domain.
9266         (gif_instantiate): ditto.
9267         (png_instantiate): ditto.
9268         (tiff_instantiate): ditto.
9269
9270         * glyphs.c (instantiate_image_instantiator): use domain rather
9271         than device.
9272         (mark_image_instance): device -> domain.
9273         (print_image_instance): ditto.
9274         (finalize_image_instance): ditto.
9275         (image_instance_equal): ditto.
9276         (allocate_image_instance): ditto.
9277         (Fcolorize_image_instance): ditto.
9278         (query_string_geometry): ditto.
9279         (image_instantiate): ditto
9280         (query_string_font): ditto.
9281         (image_instantiate): ditto.
9282         (update_subwindow): ditto.
9283         (unmap_subwindow): ditto.
9284         (map_subwindow): ditto.
9285         (subwindow_instantiate): ditto.
9286
9287         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
9288         (DOMAIN_FRAME): ditto.
9289         (DOMAIN_WINDOW): ditto.
9290         (DOMAIN_LIVE_P): ditto.
9291         (XDOMAIN_DEVICE): ditto.
9292         (XDOMAIN_FRAME): ditto.
9293         (XDOMAIN_WINDOW): ditto.
9294
9295         * specifier.c (Fvalid_specifier_domain_p): add image instances as
9296         a valid specifier domain.
9297
9298 2000-04-19  Andy Piper  <andy@xemacs.org>
9299
9300         * glyphs-widget.c (syms_of_glyphs_widget): remove
9301         widget-callback-current-channel.
9302         (vars_of_glyphs_widget): ditto.
9303         * glyphs.h: ditto
9304
9305         * gui.c (get_gui_callback): revert to previous behaviour.
9306
9307 2000-04-18  Andy Piper  <andy@xemacs.org>
9308
9309         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
9310         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
9311         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
9312
9313         * glyphs.c (image_instance_equal): add margin_width.
9314         (image_instance_hash): ditto.
9315
9316         * glyphs-widget.c (widget_instantiate): deal with margin-width.
9317         (layout_query_geometry): ditto.
9318         (layout_layout): ditto.
9319         (syms_of_glyphs_widget): add margin-width.
9320         (image_instantiator_layout): allow margin-width.
9321
9322         * glyphs.c (update_widget_instances): make a normal function.
9323         (syms_of_glyphs): remove Qupdate_widget_instances.
9324         * glyphs.h: ditto.
9325
9326         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
9327         so that we don't corrupt ideas about the last event or
9328         command. Remove widget-callback-current-channel fiddling.
9329         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9330
9331 2000-05-01  Martin Buchholz <martin@xemacs.org>
9332
9333         * XEmacs 21.2.33 is released.
9334
9335 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
9336
9337         * make-src-depend: Allow dots in header file name.
9338
9339 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
9340
9341         * mule-charset.h (struct charset_lookup): Add
9342         next_allocated_1_byte_leading_byte and
9343         next_allocated_2_byte_leading_byte.
9344         * mule-charset.c: Move above two variables so that those values
9345         will be dumped.
9346
9347 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
9348
9349         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
9350         when string length is zero.
9351         (find_charsets_in_emchar_string): Ditto.
9352
9353 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
9354
9355         * lisp.h: extern Qdialog and Qmenubar.
9356
9357         * gui-x.c: added events.h.
9358                 also fixed typo which made the file uncompilable.
9359
9360         * general.c: Added Qmenubar and Qdialog
9361
9362 2000-04-28  Ben Wing  <ben@xemacs.org>
9363
9364         * frame-msw.c (mswindows_init_frame_1):
9365         * frame-msw.c (mswindows_mark_frame):
9366         * event-msw.c (mswindows_enqueue_dispatch_event):
9367         * console-msw.h:
9368         * console-msw.h (struct mswindows_frame):
9369         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
9370         there are now three hash tables for callbacks.
9371         mswindows_enqueue_dispatch_event is no longer static.
9372
9373         * dialog-x.c (maybe_run_dbox_text_callback):
9374         * dialog-x.c (dbox_descriptor_to_widget_value):
9375         switch to new cons3 form for callbacks.
9376
9377         * glyphs-msw.c (mswindows_register_gui_item):
9378         * glyphs-msw.c (mswindows_widget_instantiate):
9379         * glyphs-msw.c (add_tree_item):
9380         * glyphs-msw.c (add_tab_item):
9381         new image instance parameter, so it can be passed to callback-ex.
9382         respect :callback-ex as well as :callback.
9383
9384         * glyphs-widget.c (VALID_GUI_KEYWORDS):
9385         add :callback-ex.
9386
9387         * glyphs.c (print_image_instance):
9388         prettify, e.g. now prints widget type.
9389
9390         * gui-x.h:
9391         certain funs have new image instance parameter.
9392
9393         * gui.c:
9394         * gui.c (get_gui_callback):
9395         * gui.c (gui_item_add_keyval_pair):
9396         * gui.c (gui_item_init):
9397         * gui.c (gui_add_item_keywords_to_plist):
9398         * gui.c (mark_gui_item):
9399         * gui.c (gui_item_hash):
9400         * gui.c (gui_item_equal):
9401         * gui.c (copy_gui_item):
9402         * gui.c (syms_of_gui):
9403         recognize callback-ex in a number of places.
9404         also, fix the annoying "can't get out of yes-no dialog" bug.
9405
9406         * gui.h:
9407         * gui.h (struct Lisp_Gui_Item):
9408         recognize callback-ex in a number of places.
9409
9410         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9411         new parameter in button_item_to_widget_value.
9412
9413         * glyphs-x.c (x_update_widget):
9414         * glyphs-x.c (x_button_instantiate):
9415         * glyphs-x.c (x_button_update):
9416         * glyphs-x.c (x_progress_gauge_instantiate):
9417         * glyphs-x.c (x_edit_field_instantiate):
9418         * glyphs-x.c (x_combo_box_instantiate):
9419         * glyphs-x.c (x_tab_control_instantiate):
9420         * glyphs-x.c (x_label_instantiate):
9421         new image instance parameter in various places.
9422
9423         * event-Xt.c:
9424         * event-Xt.c (enqueue_Xt_dispatch_event):
9425         this fun gets exported.
9426
9427         * gui-msw.c:
9428         * gui-msw.c (mswindows_handle_gui_wm_command):
9429         handle both :callback and :callback-ex, and generate our own
9430         event because it's one of the callback-ex arguments.
9431
9432         * gui-x.c:
9433         * gui-x.c (popup_selection_callback):
9434         handle both :callback and :callback-ex, and generate our own
9435         event because it's one of the callback-ex arguments.
9436         * gui-x.c (button_item_to_widget_value):
9437         * gui-x.c (gui_items_to_widget_values_1):
9438         * gui-x.c (gui_item_children_to_widget_values):
9439         * gui-x.c (gui_items_to_widget_values):
9440         new image instance parameter in various places.
9441
9442         * fns.c (Freplace_list):
9443         fix small typo in doc string.
9444
9445         * lisp.h:
9446         declare enqueue_Xt_dispatch_event.
9447
9448 2000-04-28  Ben Wing  <ben@xemacs.org>
9449
9450         * buffer.c:
9451         * buffer.c (Frecord_buffer):
9452         * buffer.c (syms_of_buffer):
9453         delete record-buffer-hook.
9454
9455         * fns.c:
9456         * fns.c (Freplace_list):
9457         * fns.c (syms_of_fns):
9458         new primitive replace-list.
9459
9460         * frameslots.h:
9461         slot for old buffer-alist.
9462
9463         * lisp.h:
9464         exfun replace-list.
9465
9466         * redisplay.c:
9467         * redisplay.c (redisplay_frame):
9468         * redisplay.c (syms_of_redisplay):
9469         * redisplay.c (vars_of_redisplay):
9470         new hook buffer-list-changed-hook.
9471         call it.
9472
9473 2000-04-27  Ben Wing  <ben@xemacs.org>
9474
9475         * extents.h: extern in_modeline_generation.
9476
9477         * redisplay.c (generate_formatted_string_db): set
9478         in_modeline_generation.
9479
9480         * extents.c (extent_changed_for_redisplay): don't mark redisplay
9481         flags if in modeline generation.  otherwise frame-modified-tick
9482         is ticked far too often.
9483         Declare in_modeline_generation.
9484
9485 2000-04-26  Ben Wing  <ben@xemacs.org>
9486
9487         * emacs.c (vars_of_emacs): document quick-build "error-checking"
9488         option.
9489         (vars_of_emacs): add quick-build as an error-checking option.
9490         A bit kludgy, but there doesn't seem much point in creating
9491         a real var for this.
9492
9493         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
9494
9495 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9496
9497         * redisplay.h (struct display_line): Add a new variable,
9498         line_continuation.
9499
9500         * redisplay.c (create_text_block): Set dl->line_continuation if
9501         the line continues.
9502         (create_string_text_block): Ditto.
9503         (regenerate_window_incrementally): Use line_continuation instead
9504         of searching continuation glyph.
9505         (add_margin_runes): Call add_glyph_rune.
9506         (add_glyph_rune): Handle margin glyph.
9507
9508 2000-04-20  Martin Buchholz  <martin@xemacs.org>
9509
9510         * filelock.c (fill_in_lock_file_name):
9511         ANSIfy.
9512         Check for IS_ANY_SEP instead of '/'.
9513         (lock_file_1):
9514         Avoid generating gratuitous garbage.  Call user_login_name() directly.
9515         Never check errno without first seeing that system call failed.
9516         (unlock_file): Add GCPRO.
9517         (Flock_buffer): Fix docstring.
9518         (Ffile_locked_p): Fix docstring.  Add GCPRO.
9519
9520 2000-04-19  Martin Buchholz  <martin@xemacs.org>
9521
9522         * sysdep.c (get_pty_max_bytes):
9523         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
9524         strings longer than 252 bytes.
9525
9526         * md5.c: Unconditionally include ANSI header <limits.h>
9527
9528         * glyphs-x.c (convert_EImage_to_XImage):
9529         * lisp-union.h (union Lisp_Object):
9530         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
9531
9532 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9533
9534         * filelock.c (current_lock_owner): Remove unused variable o, p.
9535
9536 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
9537
9538         * callint.c: Remove multiply defined symbol Qlet
9539         (syms_of_callint): ditto.
9540
9541 2000-04-14  Andy Piper  <andy@xemacs.org>
9542
9543         * general.c (syms_of_general): add last-command, this-command, let
9544         and funcall.
9545
9546         * lisp.h: declare various symbols.
9547
9548         * glyphs.h: declare Qwidget_callback_current_channel;
9549
9550         * glyphs-widget.c (syms_of_glyphs_widget): add
9551         Qgui_callback_current_channel.
9552         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
9553
9554         * gui-msw.c (mswindows_handle_gui_wm_command): bind
9555         widget-callback-current-channel when invoking the interactive
9556         arg. Also bind last-command and next-command when invoking the
9557         widget updates.
9558         * gui-x.c (popup_selection_callback): ditto.
9559
9560         * gui.c (get_gui_callback): massage args so that we are always
9561         calling eval. This allows us to add our own variable bindings
9562         outside.
9563
9564         * glyphs-x.c (x_button_instantiate): use
9565         gui_items_to_widget_values since this is GC safe.
9566         (x_progress_gauge_instantiate): ditto.
9567         (x_edit_field_instantiate): ditto.
9568         (x_label_instantiate): ditto.
9569
9570         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
9571         (emacs_Xt_event_widget_focus_out): new function
9572         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
9573         focus.
9574         (emacs_Xt_event_add_widget_actions): new function. add focus
9575         functions as actions.
9576         (init_event_Xt_late): use it.
9577
9578 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
9579
9580         * event-stream.c (Fdispatch_event): Doc fix.
9581
9582 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
9583
9584         * postgresql.c: Remove all references to PQsetenv*.
9585
9586         * postgresql.h: Remove references to PGsetenvHandler object.
9587         * lrecord.h (lrecord_type): Ditto.
9588
9589 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
9590
9591         * glyphs-msw.h (struct mswindows_image_instance_data): Added
9592         real_heigh and real_width members, and accessor macros for these.
9593
9594         * glyphs-msw.c (init_image_instance_geometry): New function.
9595         (init_image_instance_from_dibitmap): Use it.
9596         (mswindows_resource_instantiate): Use it.
9597         (init_image_instance_from_xbm_inline): Use it.
9598         (mswindows_initialize_image_instance_mask): Use real bitmap
9599         geometry.
9600         (mswindows_create_resized_bitmap): Ditto.
9601         (mswindows_create_resized_mask): Ditto.
9602
9603         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
9604         and bitmap to their surface size.
9605
9606 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
9607
9608         * process-unix.c (unix_send_process): Guard against process MIA
9609         after Faccept_process_output.
9610
9611 2000-04-11  Ben Wing  <ben@xemacs.org>
9612
9613         * eval.c (unbind_to_hairy): fix brokenness introduced by
9614         nanosecond speed improvements.
9615
9616 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
9617
9618         * sunplay.c (init_device): To play sounds correctly, the device
9619         apparently needs to be initialized at least once by XEmacs.  Make
9620         it so.
9621
9622 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9623
9624         * redisplay.c (add_margin_runes): Add text image glyph
9625           handling.
9626
9627 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
9628
9629         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
9630         gcc is newer than 2.5.
9631
9632 2000-04-06  Colin Rafferty  <colin@xemacs.org>
9633
9634         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
9635
9636         * fns.c (size_bit_vector):
9637         * alloc.c (size_vector):
9638         (make_vector_internal):
9639         (make_bit_vector_internal):
9640         (sweep_bit_vectors_1):
9641         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
9642
9643 2000-04-06  Andy Piper  <andy@xemacs.org>
9644
9645         * gmalloc.c (malloc): undo previous change.
9646         (malloc): ditto.
9647         (free): ditto.
9648         (realloc): ditto.
9649
9650 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
9651
9652         * line-number.c (buffer_line_number): Revert to former version.
9653
9654 2000-04-06  Andy Piper  <andy@xemacs.org>
9655
9656         * gmalloc.c (malloc): add error checking.
9657         (malloc): ditto.
9658         (free): ditto.
9659         (realloc): ditto.
9660
9661         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
9662         button_item_to_widget_value arg.
9663
9664         * glyphs-x.c (x_button_instantiate): add extra
9665         button_item_to_widget_value arg.
9666         (x_progress_gauge_instantiate): ditto.
9667         (x_edit_field_instantiate): ditto.
9668         (x_label_instantiate): ditto.
9669
9670         * gui-x.c (gui_items_to_widget_values_1): add extra
9671         button_item_to_widget_value arg.
9672         (button_item_to_widget_value): add extra menu_item_p arg.
9673
9674         * gui-x.h: change signature of button_item_to_widget_value.
9675
9676         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
9677         button_item_to_widget_value arg.
9678
9679 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9680
9681         * buffer.h (struct buffer): auto_save_modified should be long.
9682
9683 2000-04-05  Andy Piper  <andy@xemacs.org>
9684
9685         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
9686         type.
9687         (button_query_geometry): give a little more room so that athena
9688         buttons fit.
9689
9690 2000-04-05  Andy Piper  <andy@xemacs.org>
9691
9692         * faces.c (complex_vars_of_faces): The widget face should inherit
9693         the font of the gui-element face.
9694
9695 2000-04-04  Andy Piper  <andy@xemacs.org>
9696
9697         * glyphs-x.c (x_button_update): new function. unconditionally
9698         update a button's state when the instance is dirty.
9699         (image_instantiator_format_create_glyphs_x): add x_button_update.
9700         (x_widget_instantiate): remove old resize cruft.
9701
9702 2000-04-02  Andy Piper  <andy@xemacs.org>
9703
9704         * frame.c (change_frame_size_1): The introduction of gutters means
9705         that we need to allow 0 as a potential frame dimension.
9706
9707 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9708
9709         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
9710         image glyph if allow_cursor.
9711         (add_hscroll_rune): Don't allow cursor to border glyph.
9712         (create_text_block): Ditto.
9713
9714         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
9715         text not in buffer.
9716         (redisplay_output_layout): Call ensure_face_cachel_complete for
9717         text image glyph.
9718
9719
9720 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9721
9722         * redisplay.c (add_glyph_rune): Adding text image as text runes.
9723
9724         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
9725         not in buffer
9726
9727         * redisplay-tty.c (tty_output_display_block): Delete the routine
9728         for text image glyph
9729         * redisplay-x.c (x_output_display_block): ditto
9730         * redisplay-msw.c (mswindows_output_display_block): ditto
9731
9732 2000-02-02  Mike Alexander  <mta@arbortext.com>
9733
9734         Note: Some of these were committed by accident as part of other
9735         patches.
9736
9737         * regex.c (regex_compile): Avoid compiler warnings.
9738
9739         * ntproc.c (sys_spawnve): Avoid compiler warnings.
9740
9741         * nt.h: Declare term_ntproc correctly.
9742
9743         * nt.c: Remove incorrect declaration of get_home_directory which
9744         is declared correctly in lisp.h.
9745
9746         * keymap.c (get_keyelt): Avoid compiler warnings.
9747         (raw_lookup_key_mapper): Avoid compiler warnings.
9748
9749         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
9750
9751         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
9752
9753         * filemode.c (mode_string): Avoid compiler warnings.
9754
9755         * file-coding.c (Fcoding_system_aliasee): Add return statement to
9756         avoid warning.
9757
9758         * events-mod.h: Undef some things that winuser.h defines differently.
9759
9760         * data.c (Faset): Avoid compiler warnings.
9761
9762         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
9763
9764 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
9765
9766         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
9767         Fall through to simple beep on error.
9768         Replace "extern" by real header file.
9769
9770         * linuxplay.c: Use nativesound.h
9771         (play_sound_data): Return error code. Be less verbose on error.
9772
9773         * sunplay.c: Use nativesound.h
9774         (play_sound_data): Return error code. Be less verbose on error.
9775
9776         * ntplay.c: Use nativesound.h
9777         (play_sound_data): Return fake error code
9778
9779         * sgiplay.c: Use nativesound.h
9780         (play_sound_data): Return error code
9781
9782         * hpplay.c: Use nativesound.h, partially implement
9783         new error code. Break compilation until finished.
9784         (play_sound_data): error code.
9785
9786         * nativesound.h (play_sound_file):
9787           (play_sound_data): Prototype in new header.
9788
9789 2000-03-31  Andy Piper  <andy@xemacs.org>
9790
9791         * glyphs-widget.c: (button_query_geometry): new function. Adjust
9792         for toggle and radio buttons.
9793         (image_instantiator_buttons): use it.
9794
9795 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
9796
9797         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
9798         (x_update_horizontal_scrollbar_callback): Return if no mirror was
9799         found. Scrollbar event probably belonged to some old config.
9800
9801 2000-03-31  Andy Piper  <andy@xemacs.org>
9802
9803         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
9804         than 1.
9805         (initialize_widget_image_instance): default layout to
9806         LAYOUT_HORIZONTAL rather than 0.
9807         (widget_instantiate): reverse the item list at the end rather than
9808         every iteration.
9809         (layout_layout): re-code for the border text at the front of the
9810         item list rather than at the end.
9811         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
9812         provided by the user.
9813         (widget_query_geometry): comment.
9814
9815 2000-03-30  Andy Piper  <andy@xemacs.org>
9816
9817         * glyphs-widget.c (image_instantiator_layout): allow standard
9818         widget keywords in layouts.
9819
9820         * gutter.c (output_gutter): cope with nil gutter contents.
9821
9822         * frame.c (Fset_frame_properties): add gutter docs.
9823
9824 2000-03-29  Andy Piper  <andy@xemacs.org>
9825
9826         * toolbar-msw.c (TBSTYLE_FLAT): add.
9827         (mswindows_output_toolbar): minor fiddling.
9828
9829 2000-03-29  Andy Piper  <andy@xemacs.org>
9830
9831         * gutter.c (output_gutter): force gutter size recalculation if
9832         what we are trying to display won't fit.
9833         (update_gutter_geometry): new function. A per-gutter version of
9834         update_frame_gutter_geometry.
9835         (update_frame_gutter_geometry): use it.
9836         (redraw_exposed_gutter): add extra debugging output.
9837
9838 2000-03-28  Mike Alexander  <mta@arbortext.com>
9839
9840         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
9841         (pdump_file_unmap): Implement it on Windows
9842         (pdump_file_get): Save alocated handles for pdump_file_unmap
9843
9844 2000-03-28  Andy Piper  <andy@xemacs.org>
9845
9846         * gui.c (get_gui_callback): treat Quit specially.
9847
9848 2000-03-27  Andy Piper  <andy@xemacs.org>
9849
9850         * glyphs.c (image_instantiate): be careful to check in the same
9851         way we assigned.
9852
9853 2000-03-27  Didier Verna  <didier@xemacs.org>
9854
9855         * config.h.in: define the proper SMART_INCLUDE macro.
9856         handle renaming of `foo_h_path' to `foo_h_file'.
9857
9858         * database.c: ditto.
9859
9860         * emacs.c: ditto.
9861
9862         * linuxplay.c: ditto.
9863
9864         * terminfo.c: ditto.
9865
9866         * tooltalk.h: ditto.
9867
9868 2000-03-27  Andy Piper  <andy@xemacs.org>
9869
9870         * glyphs-msw.c (mswindows_update_widget): make sure the widget
9871         gets updated whenever the face might have changed.
9872
9873 2000-03-26  Mike Alexander  <mta@arbortext.com>
9874
9875         * dumper.c (pdump_resource_free): Fix the comment.
9876
9877 2000-03-21  Olivier Galibert  <galibert@pobox.com>
9878
9879         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
9880
9881 2000-03-22  Mike Alexander  <mta@arbortext.com>
9882
9883         * dumper.c: Include Windows headers on Windows
9884         (pdump_resource_free): Add a body to the function
9885         (pdump_load): exe_name -> exe_path and add some comments.
9886
9887 2000-03-25  Mike Alexander  <mta@arbortext.com>
9888
9889         * gui.c (copy_gui_item_tree): Return a value in all cases
9890
9891 2000-03-21  Didier Verna  <didier@xemacs.org>
9892
9893         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
9894         lwlib/config.h.in.
9895         (SMART_INCLUDE): new macro.
9896         (POSTGRES_INCLUDE): new macro to include postgresql headers from
9897         the proper location.
9898
9899         * postgresql.c: use it.
9900
9901         * inline.c: ditto.
9902
9903 2000-03-24  Andy Piper  <andy@xemacs.org>
9904
9905         * gutter.c (redraw_exposed_gutters): must be "in display" when we
9906         do this.
9907
9908 2000-03-24  Andy Piper  <andy@xemacs.org>
9909
9910         * redisplay-output.c (compare_runes): use image_instance_changed
9911         to detect changes. Do not depend on glyphs_changed, only depend on
9912         dirtiness.
9913          (redisplay_output_layout): add debug messages.
9914         (compare_runes): ditto.
9915
9916         * glyphs.h: declare new functions.
9917         (struct Lisp_Image_Instance): remove percent and associated
9918         accessors.
9919
9920         * gui.h: declare new copying functions.
9921
9922         * gui.c (copy_gui_item_tree): new function.
9923         (copy_gui_item): new function.
9924         (gui_item_id_hash): revert to standard hash.
9925         (gui_item_hash): ditto.
9926         (gui_item_hash_internal): deleted.
9927         (mark_gui_item): mark value.
9928         (gui_item_add_keyval_pair): add value.
9929         (gui_item_init): ditto.
9930         (gui_add_item_keywords_to_plist): ditto.
9931         (gui_item_equal): ditto.
9932         (syms_of_gui): add Q_value.
9933
9934         * glyphs-x.c (x_progress_gauge_update): use pending items and
9935         value for setting the state.
9936         (x_update_widget): don't set items from pending here.
9937
9938         * glyphs-widget.c (update_widget): update items here.
9939         (progress_gauge_set_property): use items for storing value. Put
9940         new value in pending items.
9941
9942         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
9943         items for new value. Convert percent -> value.
9944         (mswindows_tab_control_update): don't update items here.
9945
9946         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
9947         (update_subwindow): ditto.
9948         (image_instance_changed): new function. Compare hash values and
9949         past and present widget items.
9950         (image_instantiate): We more careful about where we instantiate
9951         things.
9952         (image_instantiate): add error checking.
9953
9954         * gutter.c (syms_of_gutter): use -hook.
9955
9956 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
9957
9958         * console-tty.c (Fset_console_tty_input_coding_system): Use
9959         Qkeyboard.
9960         (Fset_console_tty_output_coding_system): Use Qterminal.
9961         (tty_init_console): Use Qkeyboard and Qterminal.
9962
9963 2000-03-21  Ben Wing  <ben@xemacs.org>
9964
9965         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
9966         From Mike Alexander <mta@arbortext.com>.
9967
9968 2000-03-21  Ben Wing  <ben@xemacs.org>
9969
9970         * event-msw.c (mswindows_need_event): Horrible kludge to fix
9971         process brokenness.  Proper implementation to come.
9972         * callproc.c:
9973         Rename call-process-internal to old-call-process-internal.
9974         New impl. in process.el.
9975
9976 2000-03-21  Martin Buchholz  <martin@xemacs.org>
9977
9978         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
9979
9980 2000-03-20  Andy Piper  <andy@xemacs.org>
9981
9982         * glyphs.c (full_list_hash): make hashes of the same elements in
9983         different orders return different values.
9984
9985 2000-03-20  Martin Buchholz <martin@xemacs.org>
9986
9987         * XEmacs 21.2.32 is released.
9988
9989 2000-03-20  Martin Buchholz  <martin@xemacs.org>
9990
9991         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
9992         (DFC_MALLOC_USE_CONVERTED_DATA):
9993         Add aliasing-safe casts to allow use with char* or unsigned char*
9994         lvalues.
9995
9996         * eldap.c (Fldap_open):
9997         (Fldap_search_basic):
9998         (Fldap_add):
9999         (Fldap_modify):
10000         Make C++-compilable.
10001         Make sure GCPRO'ed variables are initialized.
10002         Use temp variables to avoid repeated calls to Flength.
10003
10004 2000-03-16  Martin Buchholz  <martin@xemacs.org>
10005
10006         * sysfile.h:
10007         Make sure PATH_MAX is always defined.
10008         Include limits.h for PATH_MAX.
10009         Deprecate use of MAXPATHLEN.
10010
10011 2000-03-10  Martin Buchholz  <martin@xemacs.org>
10012
10013         * emacs.c: Add reinit_vars_of_fileio.
10014         * symsinit.h: Add reinit_vars_of_fileio.
10015         * fileio.c (reinit_vars_of_fileio): New.
10016         * fileio.c (Fmake_temp_name):
10017         Initialize temp_name random number from microseconds to make
10018         collisions even less likely.  Initialize always at process startup
10019         time.  (make-temp-name) used to return the same file name twice in
10020         a row when PDUMP.
10021         Random stylistic fiddling.
10022         Comment fixes.
10023
10024 2000-03-20  Andy Piper  <andy@xemacs.org>
10025
10026         * glyphs.c (image_instantiate): allow text glyphs to be
10027         instantiated in the minibuffer window.
10028
10029 2000-03-19  Andy Piper  <andy@xemacs.org>
10030
10031         * glyphs.c (image_instance_hash): be careful about which items we
10032         hash on.
10033
10034         * glyphs-widget.c (tab_control_set_property): record into pending
10035         items rather than the actual items.
10036
10037         * glyphs-x.c (x_update_widget): use pending items to update with.
10038
10039         * glyphs-msw.c (mswindows_tab_control_update): use pending items
10040         to update with.
10041
10042         * glyphs.c (mark_image_instance): mark pending items.
10043
10044         * window.c (Fset_window_configuration): record the buffer.
10045         (Fselect_window): totally revert previous change which breaks many
10046         things.
10047
10048 2000-03-18  Andy Piper  <andy@xemacs.org>
10049
10050         * glyphs-msw.c (mswindows_tab_control_update): force selected
10051         item.
10052
10053         * glyphs.c (image_instantiate): don't allow the minibuffer as a
10054         window domain cache, otherwise we get inconsistencies at
10055         startup. There is something fishy at startup which can lead to the
10056         minibuffer being the selected window when the gutter content is
10057         instantiated.
10058
10059         * gui.c (parse_gui_item_tree_list): add probably unnecessary
10060         gcpros.
10061         (parse_gui_item_tree_children): ditto.
10062         (parse_gui_item_tree_item): ditto.
10063
10064         * glyphs.c (Fupdate_widget_instances): return something.
10065
10066 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
10067
10068         * window.c (Fselect_window): Undo 2000-03-17 change.
10069
10070 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
10071
10072         * postgresql.c (Fpq_setenv): Remove this turkey when linking
10073         against v7.0 libraries.  Insta-coredump city until the postgres
10074         folks fix it.
10075
10076 2000-03-17  Andy Piper  <andy@xemacs.org>
10077
10078         * faces.c (complex_vars_of_faces): don't give the widget face an
10079         inherited background pixmap.
10080
10081         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
10082         selected item.
10083
10084         * event-stream.c (Fdispatch_non_command_events): return something.
10085
10086         * gutter.c (output_gutter): use widget face.
10087         (clear_gutter): ditto.
10088
10089         * NEWS: adjust again.
10090
10091         * window.c (Fselect_window): make sure this runs to completion to
10092         avoid oddities with Fset_window_configuration.
10093         (Fcurrent_window_configuration): in general do not save the
10094         minibuffer as the selected window.
10095
10096         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
10097
10098 2000-03-16  Olivier Galibert  <galibert@pobox.com>
10099
10100         * emacs.c (Frunning_temacs_p): Revert previous patch.
10101         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
10102
10103 2000-03-16  Andy Piper  <andy@xemacs.org>
10104
10105         * glyphs-x.c (x_tab_control_update): if no widget values then
10106         return.
10107
10108         * NEWS: update for new features.
10109
10110         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
10111         synthetic event to the native system.
10112         (reinit_vars_of_event_Xt): set force_event_pending to
10113         emacs_Xt_force_event_pending.
10114
10115         * events.h (struct event_stream): add force_event_pending.
10116
10117         * specifier.c (recompute_one_cached_specifier_in_window): add
10118         comment.
10119
10120         * redisplay.c (redisplay_frame): don't call
10121         update_frame_subwindows. Reset subwindow cachels when
10122         subwindows_changed, removing this was an optimization too far.
10123
10124         * redisplay-output.c (compare_runes): reorganize so that we catch
10125         glyph changes when we want them. Set optimize_output when this
10126         would help layouts.
10127         (redisplay_output_layout): remove frame_really_changed, use
10128         optimize_output instead.
10129
10130         * redisplay-msw.c (mswindows_output_display_block): reset
10131         optimize_output after outputting a glyph.
10132         * redisplay-x.c (x_output_display_block): ditto.
10133         * redisplay-tty.c (tty_output_display_block): ditto.
10134
10135         * gutter.c: (specifier_vars_of_gutter): use new spec changed
10136         functions.
10137         (gutter_specs_changed): do specific gutter positions.
10138         (top_gutter_specs_changed): new function. Only update the
10139         specified gutter specs.
10140         (bottom_gutter_specs_changed): ditto.
10141         (left_gutter_specs_changed): ditto.
10142         (right_gutter_specs_changed): ditto.
10143
10144         * gui.c (gui_item_hash_internal): new function, does a real hash.
10145         (gui_item_id_hash): use it.
10146         (gui_item_hash): hash the eval'ed gui_item.
10147
10148         * gui-x.c (popup_selection_callback): send an eval event to call
10149         Fupdate_widget_instances.
10150
10151         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
10152         to call Fupdate_widget_instances.
10153
10154         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
10155         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
10156
10157         * glyphs.c: (update_frame_subwindows): deleted.
10158         (Fupdate_widget_instances): new function for updating the dirty
10159         state of widgets that might have changed.
10160         (syms_of_glyphs): add Qupdate_widget_instances.
10161         (full_list_hash): hash a list completely.
10162         (image_instance_hash): use it for items and properties.
10163
10164         * frame-msw.c (mswindows_size_frame_internal): remove unused
10165         variable.
10166
10167         * faces.h (struct face_cachel): fix comment.
10168
10169         * event-stream.c (Fdispatch_non_command_events): new
10170         function. Process non-command events, forcing an event cycle
10171         beforehand.
10172         (syms_of_event_stream): declare.
10173         (event_stream_force_event_pending): new function. Force an event
10174         on the native event queue so that an event cycle will occur next
10175         time we check.
10176
10177         * event-msw.c:
10178         (struct ntpipe_shove_stream):
10179         (mswindows_enqueue_dispatch_event):
10180         (mswindows_dequeue_dispatch_event):
10181         (mswindows_cancel_dispatch_event):
10182         (mswindows_pump_outstanding_events):
10183         (mswindows_drain_windows_queue):
10184         (mswindows_handle_paint):
10185         (mswindows_wnd_proc):
10186         (mswindows_key_to_emacs_keysym):
10187         (get_process_input_waitable):
10188         (emacs_mswindows_delete_stream_pair): re-indent file.
10189         (mswindows_need_event): do not process further fds if the windows
10190         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
10191         fixes the 100% cpu problem.
10192         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
10193
10194 2000-03-15  Olivier Galibert  <galibert@pobox.com>
10195
10196         * alloc.h: New.
10197         * dumper.h: New.
10198         * dumper.c: New.
10199
10200         * emacs.c: Moved dump file searching to dumper.c.
10201         (Frunning_temacs_p): Fixed.
10202
10203         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
10204         last_lrecord_type_index_assigned.
10205
10206 2000-02-20  Olivier Galibert  <galibert@pobox.com>
10207
10208         * symsinit.h: Added reinit parameter to init_console_stream
10209         declaration.
10210
10211         * lisp.h: Added file parameter to pdump_load declaration.
10212
10213         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
10214         support.  Added dump file searching.
10215
10216         * config.h.in: Added EMACS_PROGNAME.
10217
10218         * console-stream.c (init_console_stream): Fix reinitialisation
10219         when running from temacs.
10220
10221         * alloc.c (pdump): Add id support.
10222         (pdump_load): Add file parameter and signature/id support.
10223
10224         * Makefile.in.in: Add full pdump support.
10225
10226 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
10227
10228         * postgresql.c: Update documentation to reflect latest code
10229         status.
10230         (print_result): Show tuple counts in printed representation when
10231         appropriate.
10232         (Fpq_put_nbytes): MULE-ize.
10233         (Fpq_get_line_async): Ditto.
10234
10235 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
10236
10237         * postgresql.c (Fpq_lo_import): Fix return value.
10238         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
10239
10240 2000-03-13  Ben Wing  <ben@xemacs.org>
10241
10242         * alloc.c (pdump_load):
10243         Fix compile warning under mswin.
10244
10245 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
10246
10247         * postgresql.c: Mule-ization, bug fixes.
10248         Use PG_CODING to encapsulate coding system name changes.
10249         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
10250         (pg-coding-system): Create.
10251
10252         (Fpq_conn_defaults): Mule-ize.
10253         (Fpq_connectdb): Mule-ize & bug fix.
10254         (Fpq_connect_start): Mule-ize.
10255         (Fpq_set_client_encoding): Mule-ize.
10256         (Fpq_finish): Document `DEAD' connection status.
10257         (Fpq_clear): Ditto.
10258         (Fpq_pgconn): Mule-ize.
10259         (Fpq_exec): Mule-ize & bug fix.
10260         (Fpq_send_query): Ditto.
10261         (Fpq_get_result): Ditto.
10262         (Fpq_res_status): Mule-ize.
10263         (Fpq_result_error_message): Mule-ize.
10264         (Fpq_ntuples): fix comments.
10265         (Fpq_fname): Mule-ize.
10266         (Fpq_fnumber): Mule-ize.
10267         (Fpq_ftype): fix comments.
10268         (Fpq_get_value): Mule-ize.
10269         (Fpq_cmd_status): Ditto.
10270         (Fpq_cmd_tuples): Ditto.
10271         (Fpq_oid_value): Ditto.
10272         (Fpq_notifies): Ditto.
10273         (Fpq_lo_import): Ditto.
10274         (Fpq_lo_export): Ditto.
10275         (Fpq_get_line): Ditto.
10276         (Fpq_put_line): Mule-ize and bug fix.
10277         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
10278
10279 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
10280
10281         * postgresql.c (vars_of_postgresql): Mule-ize.
10282         (Fpq_conn_defaults): Ditto.
10283
10284 2000-03-12  Ben Wing  <ben@xemacs.org>
10285
10286         * alloc.c (Fmake_byte_code):
10287         * alloc.c (debug_string_purity_print):
10288         * alloc.c (pdump_backtrace):
10289         * alloc.c (pdump_get_indirect_count):
10290         * alloc.c (pdump_register_sub):
10291         * alloc.c (pdump_register_object):
10292         * alloc.c (pdump_register_struct):
10293         * alloc.c (pdump_dump_data):
10294         * alloc.c (pdump_reloc_one):
10295         Minor cleanups.
10296
10297         * console-msw.c:
10298         * console-msw.c (GetConsoleHwnd):
10299         * console-msw.c (msw_hide_console):
10300         * console-msw.c (msw_show_console):
10301         * console-msw.c (msw_ensure_console_buffered):
10302         * console-msw.c (msw_output_console_string):
10303         * console-msw.c (console_type_create_mswindows):
10304
10305         a) Added functions to manipulate the console window for use with
10306         shell support.
10307
10308         b) Added support for writing text to the console, which is now
10309         used under Windows when xemacs is not being run non-interactively,
10310         to write text that would otherwise be destined for stdout because
10311         under these circumstances, text written to stdout tends to
10312         disappear and not be seen.
10313
10314         * console-msw.h:
10315         * event-Xt.c:
10316         * event-Xt.c (x_event_to_emacs_event):
10317         * event-Xt.c (describe_event_window):
10318         * events-mod.h (XEMACS_MOD_CONTROL):
10319         * events.c:
10320         * events.c (Fmake_event):
10321         * events.c (character_to_event):
10322         * events.c (event_to_character):
10323         * events.c (format_event_object):
10324         * events.c (Fevent_modifiers):
10325         * events.h:
10326         * events.h (struct key_data):
10327         * events.h (struct button_data):
10328         * events.h (struct misc_user_data):
10329         * frame-x.c (Fcde_start_drag_internal):
10330         * frame-x.c (Foffix_start_drag_internal):
10331         * gpmevent.c (Freceive_gpm_event):
10332         * keymap.c:
10333         * keymap.c (bucky_sym_to_bucky_bit):
10334         * keymap.c (control_meta_superify):
10335         * keymap.c (make_key_description):
10336         * keymap.c (keymap_lookup_directly):
10337         * keymap.c (create_bucky_submap):
10338         * keymap.c (keymap_store):
10339         * keymap.c (define_key_check_and_coerce_keysym):
10340         * keymap.c (define_key_parser):
10341         * keymap.c (define_key_alternate_name):
10342         * keymap.c (Fdefine_key):
10343         * keymap.c (raw_lookup_key_mapper):
10344         * keymap.c (struct map_keymap_unsorted_closure):
10345         * keymap.c (map_keymap_unsorted_mapper):
10346         * keymap.c (map_keymap_sort_predicate):
10347         * keymap.c (map_keymap_sorted):
10348         * keymap.c (accessible_keymaps_mapper_1):
10349         * keymap.c (where_is_recursive_mapper):
10350         * keymap.c (describe_map_mapper):
10351         * keymap.c (describe_map_sort_predicate):
10352         * keymap.c (describe_map):
10353         * keymap.c (complex_vars_of_keymap):
10354         And a number of other files, the key modifier preprocessor
10355         constants that xemacs uses have names that conflict with constants
10356         defined under MS Windows for other purposes, so they were renamed
10357         to begin with the prefix XEMACS_. The variables that hold such
10358         modifiers were changed to consistently be of type int to fix
10359         various compile warnings.
10360
10361         * console.c (complex_vars_of_console):
10362         * device.c:
10363         * device-msw.c:
10364         * device-msw.c (mswindows_finish_init_device):
10365         * device-msw.c (msw_get_workspace_coords):
10366         * device-msw.c (mswindows_device_system_metrics):
10367         and various other files, added support for a new
10368         device property called offset-workspace which returns the position
10369         of the upper left corner of the workspace area and goes along with
10370         the existing size-workspace property.
10371
10372         * dialog-msw.c:
10373         * dialog-msw.c (push_bufbyte_string_as_unicode):
10374         * dialog-msw.c (mswindows_popup_dialog_box):
10375         Added support for XEmacs-style accelerator specifications in
10376         button text.  Note: I didn't add support for this under X Windows,
10377         and somebody needs to do this.
10378
10379         * dialog.c:
10380         * dialog.c (Fpopup_dialog_box):
10381         Documented the support for accelerators that was just mentioned.
10382
10383         editfns.c (get_home_directory): Changed behavior under Windows
10384         when HOME not defined; former behavior was irretrievably broken.
10385
10386         * emacs.c:
10387         * emacs.c (main_1):
10388         * emacs.c (main):
10389         * minibuf.c (clear_echo_area_internal):
10390         * minibuf.c (echo_area_append):
10391         * print.c:
10392         * print.c (std_handle_out_external):
10393         * print.c (std_handle_out_va):
10394         * print.c (fatal):
10395         * print.c (write_string_to_stdio_stream):
10396         * print.c (output_string):
10397         * print.c (debug_print):
10398         * print.c (debug_backtrace):
10399         * print.c (debug_short_backtrace):
10400         Cleaned up the code that prints text to stdout so that this can be
10401         changed to output into a console window instead under MS Windows,
10402         as described above.
10403
10404         * eval.c:
10405         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
10406         * eval.c (internal_catch):
10407         * eval.c (unwind_to_catch):
10408         * eval.c (throw_or_bomb_out):
10409         * eval.c (condition_case_1):
10410         * eval.c (signal_1):
10411         * eval.c (check_error_state_sanity):
10412         * eval.c (call_with_suspended_errors_1):
10413         * eval.c (call_with_suspended_errors):
10414         * eval.c (reinit_vars_of_eval):
10415         Added code to catch throw loops and check for a pesky bug that may
10416         be gone now.
10417
10418         * event-msw.c:
10419         * event-msw.c (key_needs_default_processing_p):
10420         * event-msw.c (mswindows_wnd_proc):
10421         * event-msw.c (mswindows_modifier_state):
10422         * event-msw.c (emacs_mswindows_quit_p):
10423         * event-msw.c (vars_of_event_mswindows):
10424         a) Added support for using the alt key to select menu items as is
10425         standard under MS Windows.  This is controlled using the variable
10426         menu-accelerator-enabled, just like under X Windows.  There is an
10427         option on the options menu to turn this support on.  I really
10428         think that it should be on by default under Windows, but I'm not
10429         going to make this change yet.
10430
10431         b)  Added support for dynamic display size changes under Windows.
10432
10433         * event-stream.c:
10434         * event-stream.c (maybe_echo_keys):
10435         * event-stream.c (Fnext_event):
10436         * event-stream.c (command_builder_find_leaf):
10437         * event-stream.c (lookup_command_event):
10438         * event-stream.c (execute_command_event):
10439         * event-stream.c (pre_command_hook):
10440         * event-stream.c (post_command_hook):
10441         * event-stream.c (syms_of_event_stream):
10442         * event-stream.c (vars_of_event_stream):
10443         * event-stream.c (complex_vars_of_event_stream):
10444         * events.h (struct command_builder):
10445
10446         a) Tried to clean up a little bit the horribly written x-specific
10447         accelerator code that crept into this file.  I moved this code
10448         into menubar-x.c where it belongs. I also needed to move the
10449         command builder structure into the file events.h because it is
10450         accessed directly by this accelerator code.  What I didn't do, but
10451         which should be done at some point, is to properly abstract this
10452         code using device methods instead of the kludgy way that it
10453         currently hooks into the event code.
10454
10455         b) Added the lisp variables this-command-properties and
10456         last-command- properties, which should be used to synchronize two
10457         adjacent commands in preference to playing games with the variable
10458         this-command, which is typically what happens.
10459
10460         c) Added some slightly nasty code to hook into the lisp support
10461         for shifted- motion-key selection.  This is actually necessary for
10462         somewhat complicated reasons, which are described in
10463         simple.el. (NB: I think the proper thing would be to have the code
10464         that calls the pre and post command hooks also call out to generic
10465         lisp functions in simple.el, where all built-in stuff could be
10466         added.  I will think about this more.)
10467
10468         * event-unixoid.c (poll_fds_for_input):
10469         * lread.c (readchar):
10470         * redisplay-tty.c (tty_clear_frame):
10471         * redisplay-x.c (x_get_gc):
10472         * signal.c (interrupt_signal):
10473         And a whole bunch of other files: fixed up places that printed
10474         directly to stderr to instead call the function stderr_out so that
10475         the changes I made under Windows work correctly.
10476
10477         * filemode.c (mode_string):
10478         Warning fixes.
10479
10480         * frame-msw.c:
10481         * frame-msw.c (mswindows_size_frame_internal):
10482         Fixed the computation of frame size and position to keep the frame
10483         within the workspace area, rather than within the physical
10484         dimensions of the screen, so that the frame doesn't overlap window
10485         manager decorations, such as the start menu and toolbar, typically
10486         at the bottom of the screen.
10487
10488         * frame.c (vars_of_frame):
10489         Changed the default frame title format under MS Windows to consist
10490         of buffername-XEmacs, which is standard under MS Windows.  I think
10491         it might be a good idea to change this everywhere because I think
10492         it is superior to the current frame title format, but this is the
10493         kind of change that is likely to cause some people to get annoyed,
10494         so I'm not making it.
10495
10496         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
10497
10498         * gui-msw.c (mswindows_handle_gui_wm_command):
10499         Fixed compile warnings.
10500
10501         * gui-x.c:
10502         * gui-x.c (strdup_and_add_accel):
10503         * gui-x.c (button_item_to_widget_value):
10504         * gui-x.h:
10505         Added code to automatically put an accelerator onto the beginning
10506         of menu items that don't have one as is now the standard, and is
10507         described more later.  Also fixed things so that the menu item
10508         name can be an evaluated expression, again a new standard.
10509
10510         * gui.c:
10511         * gui.c (gui_item_add_keyval_pair):
10512         * gui.c (make_gui_item_from_keywords_internal):
10513         * gui.c (gui_add_item_keywords_to_plist):
10514         * gui.c (gui_item_accelerator):
10515         * gui.c (gui_name_accelerator):
10516         * gui.c (gui_item_included_p):
10517         * gui.c (gui_item_display_flush_left):
10518         * gui.c (gui_item_display_flush_right):
10519         * gui.c (parse_gui_item_tree_item):
10520         * gui.c (parse_gui_item_tree_children):
10521         * gui.c (parse_gui_item_tree_list):
10522         Mule-ized.  Cleanup.  GCPRO addition.
10523
10524         * line-number.c (buffer_line_number):
10525         * lisp.h:
10526         * lisp.h (EMACS_INT_MAX):
10527         Added the manifest constant EMACS_INT_MIN corresponding to the
10528         existing constant EMACS_INT_MAX.  This is partially to fix compile
10529         warnings under Windows, and partly for cleanliness.
10530
10531         * menubar-msw.c:
10532         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
10533         * menubar-msw.c (msw_translate_menu_or_dialog_item):
10534         * menubar-msw.c (displayable_menu_item):
10535         * menubar-msw.c (populate_menu_add_item):
10536         * menubar-msw.c (populate_or_checksum_helper):
10537         * menubar-msw.c (populate_menu):
10538         * menubar-msw.c (update_frame_menubar_maybe):
10539         * menubar-msw.c (prune_menubar):
10540         * menubar-msw.c (msw_char_is_accelerator):
10541         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
10542         * menubar-msw.c (mswindows_handle_wm_command):
10543         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
10544         * menubar-msw.c (mswindows_handle_wm_initmenu):
10545         * menubar-msw.c (mswindows_update_frame_menubars):
10546         * menubar-msw.c (mswindows_free_frame_menubars):
10547         * menubar-msw.c (mswindows_popup_menu):
10548         Fixed a bug in handling accelerators where an extra character
10549         would be displayed in the menu item.  Also generalized the
10550         function displayable_menu_item because it is now used by the
10551         dialog box code as well.  And finally, added code in the functions
10552         that create the menubar to extract a list of accelerators for the
10553         top level menubar, which is used in the event code to determine
10554         whether a particular alt-key combination should be used to invoke
10555         a menu item, or should be passed through to access the standard
10556         XEmacs keymap binding for this key combination.
10557
10558         Much needed GCPROing.
10559
10560         * menubar-x.c:
10561         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10562         * menubar-x.c (menu_item_descriptor_to_widget_value):
10563         * menubar-x.c (restore_in_menu_callback):
10564         * menubar-x.c (x_popup_menu):
10565         * menubar-x.c (menu_move_up):
10566         * menubar-x.c (menu_move_down):
10567         * menubar-x.c (menu_move_left):
10568         * menubar-x.c (menu_move_right):
10569         * menubar-x.c (menu_select_item):
10570         * menubar-x.c (command_builder_operate_menu_accelerator):
10571         * menubar-x.c (menu_accelerator_junk_on_error):
10572         * menubar-x.c (command_builder_find_menu_accelerator):
10573         * menubar-x.c (Faccelerate_menu):
10574         * menubar.h:
10575         Moved a whole bunch of code here that was previously in
10576         event-stream.c as described above.  There is also code connected
10577         to the new standard of adding an accelerator to the beginning of
10578         menu items that don't have one as described above and below.
10579
10580         * menubar.c:
10581         * menubar.c (menu_parse_submenu_keywords):
10582         * menubar.c (Fmenu_find_real_submenu):
10583         * menubar.c (Fnormalize_menu_item_name):
10584         * menubar.c (syms_of_menubar):
10585         * menubar.c (vars_of_menubar):
10586         * menubar.c (complex_vars_of_menubar):
10587
10588         a) Cleaned up a bunch of documentation and improved it.
10589
10590         b) XEmacs now automatically adds an accelerator onto the beginning
10591         of any menu items that don't have one.  I did this because there
10592         will inevitably be some menu items on the main menubar that don't
10593         have accelerators on them because the package that adds that
10594         particular menu item hasn't yet been fixed up to have accelerators
10595         in them and it looked rather strange to have some items with and
10596         some items without accelerators, especially since even in items
10597         without accelerators, you can, at least under windows, still
10598         access the item through an accelerator corresponding to the first
10599         character in the item's name.  If people don't like this behavior,
10600         I can add a variable to turn it off optionally, but I'm not sure
10601         this is a good idea because we really do need to have accelerators
10602         on all of the menu items, and if a package doesn't like the
10603         accelerators being put on the first character, then it should put
10604         the accelerators where they belong.
10605
10606         c) I made a behavior change, which is that the descriptor that
10607         specifies the text of the menu item, which formerly was just a
10608         string, can now also be an evaluated expression.  This makes this
10609         descriptor parallel with all of the others, which could also be
10610         evaluated expressions.  This also obviates the need for the
10611         keyword :label, which was previously listed in the documentation
10612         as unimplemented, and which was for the same purpose.
10613
10614         d) GCPROing.
10615
10616         * ntproc.c:
10617         * ntproc.c (new_child):
10618         * ntproc.c (sys_spawnve):
10619         * ntproc.c (find_child_console):
10620         * ntproc.c (sys_kill):
10621         Fixed compile warnings.  By the way, this file should really go
10622         away entirely, and this will happen as soon as Kirill makes his
10623         final round of process cleanups, which affect the function
10624         call-process.
10625
10626         * process-nt.c:
10627         * process-nt.c (struct nt_process_data):
10628         * process-nt.c (find_process_from_pid):
10629         * process-nt.c (send_signal_the_nt_way):
10630         * process-nt.c (enable_child_signals):
10631         * process-nt.c (find_child_console):
10632         * process-nt.c (send_signal_the_95_way):
10633         * process-nt.c (nt_finalize_process_data):
10634         * process-nt.c (ensure_console_window_exists):
10635         * process-nt.c (nt_create_process):
10636         * process-nt.c (nt_kill_child_process):
10637         * process-nt.c (nt_kill_process_by_pid):
10638         * process-nt.c (nt_open_network_stream):
10639         * process-nt.c (vars_of_process_nt):
10640         Copied over code from Emacs 20.5 to correctly send signals to sub-
10641         processes under Windows 95.  Also added code to automatically
10642         create and hide console window when a sub-process is created under
10643         Windows 95, which obviates the need for the separate runemacs.exe
10644         executable, and finally implemented some variables that were
10645         implemented in Emacs 20.5, but previously not in XEmacs.  These
10646         include mswindows- start-process-share-console and
10647         mswindows-start-process-inherit-error-mode. (Both of these only
10648         apply to Windows 95.)
10649
10650         * regex.c (regex_compile): Fixed a compile warning.
10651
10652         * select-msw.c:
10653         * select-msw.c (mswindows_own_selection):
10654         * select-msw.c (mswindows_get_foreign_selection):
10655         * select-msw.c (mswindows_disown_selection):
10656         * select-msw.c (console_type_create_select_mswindows):
10657         * select-msw.c (syms_of_select_mswindows):
10658         Cleaned up the file and implemented the device method
10659         selection_exists_p, which had accidentally been left out.  Also
10660         removed four lisp functions that were remnants from before the
10661         time when the selection code was properly device abstracted.
10662         These functions are no longer needed because there are generic
10663         equivalents, and because they were added recently and don't exist
10664         in FSF Emacs, I don't think there's any problem with just deleting
10665         them.
10666
10667         * sysdep.c:
10668         * sysdep.c (sys_subshell):
10669         Fixed a compile warning, although in this case there's probably
10670         something wrong with this code, and it ought to be looked into
10671         more thoroughly by somebody who understands it.
10672
10673         * window.c:
10674         * window.c (Fwindow_text_area_height):
10675         * window.c (Fwindow_width):
10676         * window.c (Fwindow_full_width):
10677         * window.c (Fwindow_pixel_width):
10678         * window.c (debug_print_window):
10679         * window.c (syms_of_window):
10680         Added functions window-text-area-height and window-full-width,
10681         which are functions for returning various width and height
10682         characteristics of a window. (One of these functions is necessary
10683         for making the file dialog box work correctly, and the other one
10684         was added for completeness.)  Also added a table to the
10685         documentation for window-height which describes the entire scheme
10686         for accessing width and height characteristics of a window.
10687
10688 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10689
10690         * nt.c (fstat): Added a comment for another problem with
10691         non-encapsulated [f]stat(), reported by Adrian Aichner
10692         <aichner@ecf.teradyne.com>.
10693
10694 2000-03-11  Andy Piper  <andy@xemacs.org>
10695
10696         * window.c (make_dummy_parent): initialize subwindow instance
10697         cache.
10698         (Fset_window_configuration): zero extent_modiff.
10699
10700 2000-03-10  Andy Piper  <andy@xemacs.org>
10701
10702         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
10703         more changes can be triggered.
10704         (Fredisplay_frame): ditto.
10705         (Fredraw_device): ditto.
10706         (Fredisplay_device): ditto.
10707         (redisplay_frame): make non-static.
10708         (redisplay_frame): call update_frame_gutter_geometry outside of
10709         display proper.
10710
10711         * gutter.h: declare update_frame_gutter_geometry.
10712
10713         * redisplay.h: declare redisplay_frame.
10714
10715         * gutter.c (update_frame_gutter_geometry): move geometry changes
10716         in update_frame_gutters here. Geometry changes can only occur
10717         outside of redisplay.
10718         (update_frame_gutters): remove geometry change code.
10719         (Fredisplay_gutter_area): make sure that we are in display when we
10720         update and that we have flushed any size changes.
10721
10722 2000-03-11  Andy Piper  <andy@xemacs.org>
10723
10724         * alloc.c (pdump_dump_data): remove i & count shadows.
10725
10726 2000-02-27  Mike Alexander  <mta@arbortext.com>
10727
10728         * sysdep.h: Declare pdump_read_file
10729
10730         * sysdep.c (pdump_read_file): New function
10731
10732         * alloc.c (pdump_load): Call pdump_read_file to get the portable
10733         dump data
10734
10735 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
10736
10737         * lrecord.h: add `lrecord_type_pgsetenv'.
10738
10739 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
10740
10741         * symsinit.h: declare (vars|syms)_of* functions.
10742         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
10743
10744 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
10745
10746         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
10747
10748         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
10749         GCCs.
10750
10751         * emacs.c (main_1): Call postgres initialization code.
10752
10753         * postgresql.h: New file.  PostgreSQL RDBMS support.
10754         * postgresql.c: New file.
10755
10756 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
10757
10758         * redisplay-output.c (redisplay_output_display_block): Disable
10759         redundant code.
10760
10761 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10762
10763         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
10764         (Fcanna_henkan_next): Ditto.
10765         (Fcanna_bunsetu_henkou): Ditto.
10766         (Fcanna_henkan_kakutei): Ditto.
10767         (Fcanna_henkan_end): Ditto.
10768         (Fcanna_henkan_quit): Ditto.
10769         (Fcanna_henkan_next): Set retun value correctly.
10770         (c2mu): Use unsigned char instead of signed char.
10771
10772 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10773
10774         * emacs.c (main_1): Always call syms_of_gui.
10775         * inline.c: include gui.h
10776
10777 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10778
10779         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
10780         converted to Lisp_Object.
10781         (Qtop_bottom): New variable.
10782         (syms_of_redisplay): Initialize it.
10783         * redisplay.h (Vvisible_bell): Ditto.
10784         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
10785         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
10786         only flash top and bottom.
10787
10788 2000-03-08  Andy Piper  <andy@xemacs.org>
10789
10790         * buffer.c (Frename_buffer): record new buffer name the right way.
10791
10792 2000-03-08  Andy Piper  <andy@xemacs.org>
10793
10794         * glyphs.c (update_subwindow): increase hash depth so that widget
10795         items get picked up properly.
10796
10797         * redisplay-output.c (compare_runes): increase hash depth so that
10798         widget items get picked up properly.
10799
10800 2000-03-08  Andy Piper  <andy@xemacs.org>
10801
10802         * gutter.c (output_gutter): add some debug.
10803
10804         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
10805         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
10806         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
10807
10808         * redisplay-output.c (compare_runes): use display_hash to
10809         determine if glyphs really are not the same.
10810
10811         * glyphs.c (update_subwindow): check display_hash to see if
10812         anything really needs to be updated. If not then do
10813         nothing. Record the display_hash after updating.
10814         (image_instance_equal): compare the image_instance face also.
10815
10816 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
10817
10818         * redisplay.h: Fix comment style.
10819
10820 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10821
10822         * consle-msw.h (struct mswindows_frame):
10823         Added new member paint_pending to indicate whether a WM_PAINT
10824         magic event has been queued for this frame.
10825
10826         * event-msw.c (mswindows_drain_windows_queue):
10827         Don't queue a WM_PAINT magic event if one is already queued.
10828         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
10829
10830         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
10831
10832 2000-03-07  Didier Verna  <didier@xemacs.org>
10833
10834         * dired.c: #include `regex.h' after `sysfile.h'.
10835
10836 2000-03-06  Martin Buchholz  <martin@xemacs.org>
10837
10838         * sound.c (init_nas_sound): Fix compiler warning.
10839
10840         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
10841         (FREE_STRUCT_P):
10842         (MARK_STRUCT_AS_FREE):
10843         (MARK_STRUCT_AS_NOT_FREE):
10844         Make `gcc -fstrict-aliasing' work properly.
10845
10846 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10847
10848         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
10849         (mswindows_delete_device): Call CoUnnitialize().
10850
10851         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
10852
10853 2000-02-25    <CraigL@DyCon.com>
10854
10855         * process-nt.c: MinGW now has <shellapi.h>, but still needs
10856         <errno.h>.
10857
10858         * sysdep.c: This extern declaration for environ prevents MinGW
10859         from finding the variable in CRTDLL.DLL.
10860
10861         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
10862         windows headers.
10863         (SHGFI_EXETYPE): ..
10864         (WM_MOUSEWHEEL): ..
10865         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
10866         definitions.
10867         (MMRESULT): Removed, now defined in cygwin's windows headers.
10868         (TIMECAPS): ..
10869         (uid_t,gid_t,pid_t,ssize_t): ..
10870         (_timeb): Removed, MinGW defines both _timeb and timeb.
10871         (HAVE_H_ERRNO): Added.
10872         (HAVE_TZNAME): Added, configure is not detecting this.
10873
10874 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
10875
10876         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
10877         * syntax.c (syntax_match): Use it.
10878
10879         * cmds.c: Import auto-fill-chars from FSF Emacs.
10880         (Vauto_fill_chars): New variables.
10881         (internal_self_insert): Check Vauto_fill_chars.
10882         (vars_of_cmds):
10883         Declare auto-fill-chars as a Lisp variable and initialize it.
10884
10885 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10886
10887         * fileio.c (Fmake_symbolic_link):
10888         (Ffile_symlink_p):
10889         Run handlers even if local machine doesn't have symlinks.
10890
10891 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10892
10893         * event-msw.c (mswindows_drain_windows_queue):
10894         Don't generate paint magic events for non-XEmacs frames.
10895
10896 2000-03-05  Andy Piper  <andy@xemacs.org>
10897
10898         * redisplay.c (redisplay_frame): generate_displayable_area and
10899         friends assumes that we are not in GC, we therefore have to make
10900         sure that this doesn't happen.
10901
10902         * gutter.c (calculate_gutter_size): generate_displayable_area
10903         assumes that we are not in GC, we therefore have to make sure that
10904         this doesn't happen.
10905
10906 2000-03-05  Martin Buchholz  <martin@xemacs.org>
10907
10908         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
10909
10910 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
10911
10912         * redisplay.c (regenerate_window): Make sure we set a sane value
10913         for end_pos even if we jump out of the loop.
10914         (regenerate_window): Answer Ben's question :-).
10915         (start_end_of_last_line): Add may_error argument.
10916         (start_of_last_line):
10917         (end_of_last_line): Pass may_error = 0.
10918         (end_of_last_line_may_error): New function.
10919         (pixel_to_glyph_translation): Use it, so we don't crash in
10920         event_to_glyph.
10921
10922 2000-03-04  Andy Piper  <andy@xemacs.org>
10923
10924         * window.h (struct window): add gutter_extent_modiff.
10925
10926         * window.c (allocate_window): zero out gutter_extent_modiff.
10927
10928         * redisplay.h: declare sync_display_line_structs.
10929
10930         * redisplay.c (add_glyph_rune): add a better comment.
10931
10932         * redisplay-output.c (sync_display_line_structs): made non-static.
10933         (compare_runes): remove unneccesary glyph cachel access.
10934
10935         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
10936
10937         * gutter.c (output_gutter): don't output the gutter if extent
10938         changes only involve extents in buffers. use 4 sets of display
10939         lines.
10940         (gutter_extent_signal_changed_region_maybe): new function. Mark
10941         extents in gutters as changed.
10942         (update_frame_gutters): use 4 sets of display lines.
10943         (reset_gutter_display_lines): ditto.
10944         (free_frame_gutters): ditto.
10945         (redraw_exposed_gutter): force output of gutters.
10946
10947         * frame.h (struct frame): add 4 sets of gutter display lines.
10948
10949         * extents.c: (extent_changed_for_redisplay): signal changes to
10950         extents in strings in the gutter as well as extents in buffers.
10951
10952 2000-03-02  Andy Piper  <andy@xemacs.org>
10953
10954         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
10955
10956         * frame.c (Fmake_frame): make sure the gutters get initialized
10957         after the frame is visible.
10958         (set_frame_selected_window): re-arrange compilation macros a
10959         little.
10960         (change_frame_size_1): mark gutters changed.
10961
10962         * device.c (Fset_device_class): mark gutters changed.
10963
10964 2000-03-01  Andy Piper  <andy@xemacs.org>
10965
10966         * window.c (window_top_frame_gutter_height): deleted.
10967         (window_bottom_frame_gutter_height): ditto.
10968         (window_left_frame_gutter_height): ditto.
10969         (window_right_frame_gutter_height): ditto.
10970         (window_top_gutter_height): don't use them.
10971         (window_bottom_gutter_height): ditto.
10972         (window_left_gutter_width): ditto.
10973         (window_right_gutter_width): ditto.
10974         (Fsplit_window): ditto.
10975         (Fwindow_pixel_edges): don't use border dimensions here.
10976
10977         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
10978         (update_scrollbar_instance): ditto.
10979
10980         * redisplay.c (generate_modeline): don't take gutters into account.
10981         (generate_modeline): ditto.
10982         (redisplay_frame): small gutter display optimization.
10983
10984         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
10985
10986         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
10987         gutters into account.
10988
10989         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
10990         for window position and type.
10991
10992         * gutter.c (get_gutter_coords): fix for frame gutters.
10993         (update_frame_gutters): update frame geometry if the gutters have
10994         changed.
10995         (init_frame_gutters): record current gutter geometries.
10996
10997         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
10998         var.
10999         (mswindows_widget_instantiate): ditto.
11000
11001         * frame.h (struct frame): add current_gutter_bounds.
11002
11003         * frame.c (change_frame_size_1): position window and minibuffer
11004         appropriately taking into account the frame gutters.
11005
11006         * frame-x.c: (x_initialize_frame_size): take into account the
11007         frame gutters.
11008
11009 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
11010
11011         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
11012
11013 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
11014
11015         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
11016
11017 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11018
11019         * file-coding.c (reset_decoding_stream): Clear previous
11020         detection state when autodetect.
11021
11022 2000-02-29  Didier Verna  <didier@xemacs.org>
11023
11024         * extents.c (set_extent_glyph_1): don't require extents to be
11025         attached.
11026
11027 2000-02-27  Andy Piper  <andy@xemacs.org>
11028
11029         * gutter.c (Fset_default_gutter_position): don't default left and
11030         right gutter visibility to t.
11031         (Fset_default_gutter_position): run
11032         default-gutter-position-changed-hook.
11033         (syms_of_gutter): add default-gutter-position-changed-hook.
11034
11035 2000-02-26  Andy Piper  <andy@xemacs.org>
11036
11037         * specifier.c (Fmake_specifier): add gutter references.
11038
11039         * gutter.h (RAW_WINDOW_GUTTER): new macro.
11040
11041         * lisp.h: declare Fvalid_plist_p.
11042
11043         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
11044         as changed.
11045         (default_gutter_visible_p_changed_in_window): invalidate gutter as
11046         well as its visibility so that it gets reconstructed.
11047         (construct_window_gutter_spec): new function. Construct a string
11048         to be displayed in the gutter from a plist of strings. Take care
11049         to only use elements that are declared as visible.
11050         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
11051         WINDOW_GUTTER.
11052         (gutter_validate): allow plists of strings in the specifier.
11053         (gutter_specs_changed): construct the real_gutter from the gutter
11054         specs using construct_window_gutter_spec.
11055         (gutter_visible_validate): gutter-visible is a new specifier type.
11056         (Fgutter_visible_specifier_p): new function for the new specifier.
11057         (syms_of_gutter): declare gutter-visible and
11058         Fgutter_visible_specifier_p.
11059         (specifier_type_create_gutter): intitalize new gutter-visible
11060         specifier.
11061         (reinit_specifier_type_create_gutter): ditto.
11062         (specifier_vars_of_gutter): use new specifier type for gutter
11063         visibility.
11064         (init_frame_gutters): construct real_gutter correctly.
11065         (Fgutter_specifier_p): beef up documentation.
11066         (Fgutter_size_specifier_p): ditto.
11067
11068         * winslots.h: add real_gutter slots.
11069
11070 2000-02-25  Andy Piper  <andy@xemacs.org>
11071
11072         * device-msw.c: Be kind to older cygwin versions. From Raymond
11073         Toy <toy@rtp.ericsson.se>.
11074
11075         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
11076         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
11077
11078 2000-02-25  Martin Buchholz  <martin@xemacs.org>
11079
11080         * elhash.c (MARK_OBJ): Practice macro hygiene.
11081
11082 2000-02-24  Martin Buchholz  <martin@xemacs.org>
11083
11084         * miscplay.c: s/__inline__/inline/g;
11085         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
11086         (get_device_compdc): INLINE ==> static inline
11087         * *.[ch]: Change INLINE to INLINE_HEADER globally.
11088         find -name '*.h' | \
11089         xargs global-replace \
11090         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
11091
11092 2000-02-25  Andy Piper  <andy@xemacs.org>
11093
11094         * window.c (window_top_frame_gutter_height): new function.
11095         (window_top_window_gutter_height): ditto.
11096         (window_top_gutter_height): use them.
11097         (window_bottom_frame_gutter_height): new function.
11098         (window_bottom_window_gutter_height): ditto.
11099         (window_bottom_gutter_height): use them.
11100         (window_left_window_gutter_width): new function.
11101         (window_left_frame_gutter_width): ditto.
11102         (window_left_gutter_width): use them.
11103         (window_right_window_gutter_width): new function.
11104         (window_right_frame_gutter_width): ditto.
11105         (window_right_gutter_width): use them.
11106         (window_pixel_height): new function. calulate window pixel height
11107         with frame gutter involvement.
11108         (Fsplit_window): calculate new sizes taking frame gutters into
11109         account.
11110         (window_char_height_to_pixel_height): don't include frame gutters.
11111         (window_char_height): use window_pixel_height.
11112         (window_pixheight): rename from window_pixel_height.
11113         (change_window_height): use it.
11114         (window_pixel_height_to_char_height): don't include frame gutters.
11115         (window_char_width_to_pixel_width): ditto.
11116
11117 2000-02-25  Andy Piper  <andy@xemacs.org>
11118
11119         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
11120         if it is.
11121
11122 2000-02-24  Martin Buchholz  <martin@xemacs.org>
11123
11124         * alloc.c (staticpro):
11125         (staticpro_nodump):
11126         (dumpstruct):
11127         (dumpopaque):
11128         (pdump_wire):
11129         (pdump_wire_list):
11130         (compact_string_chars):
11131         (pdump_dump_wired):
11132         Convert:  if (foo) abort();  ==>  assert (! foo);
11133
11134         * eldap.c (Fldap_search_basic):
11135         (Fldap_add):
11136         (Fldap_modify):
11137         (Fldap_delete):
11138         Fix compiler warnings, and possible crashes if (random) return
11139         value were to be used.
11140
11141 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11142
11143         * device-msw.c: Workaround ResetDC failure.
11144
11145         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
11146         applying a devmode.
11147
11148         * redisplay-msw.c (get_frame_dc): Added start_page_p.
11149         (mswindows_text_width): Do not start printer page.
11150
11151         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
11152
11153         * glyphs-msw.c: Added image methods to msprinter console and
11154         msprinter-specific image instantiation.
11155
11156 2000-02-20  Mike Alexander  <mta@arbortext.com>
11157
11158         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
11159         to avoid crashes when selection-sets-clipboard is on
11160         (mswindows_own_selection): ditto
11161
11162 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11163
11164         * glyphs-msw.c:
11165         * redisplay-msw.c (get_frame_dc):
11166         (get_frame_compdc):
11167         * console-msw.h:
11168         * device-msw.c (mswindows_init_device):
11169         (mswindows_delete_device):
11170         (msprinter_init_device):
11171         (msprinter_delete_device):
11172         * frame-msw.c (mswindows_init_frame_1):
11173         (mswindows_delete_frame):
11174         (msprinter_init_frame_3):
11175         (msprinter_delete_frame): Move compatible DC to device object from
11176         frame object, for both mswindows and msprinter. Only one at a time
11177         is needed, it is a real waste to have one per frame!
11178
11179 2000-02-23  Andy Piper  <andy@xemacs.org>
11180
11181         * glyphs.c: add dynamic width and height elements.
11182         (image_instance_equal): ditto.
11183
11184         * glyphs-widget.c (widget_query_geometry): calculate width and
11185         height dynamically if required.
11186         (initialize_widget_image_instance): initialize dynamic dimensions.
11187         (widget_instantiate): pick-up dynamic dimensions.
11188
11189         * glyphs.h (struct Lisp_Image_Instance): add width and height for
11190         dynamic determination. Add appropriate macros.
11191
11192         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
11193         dimensions safe.
11194         (WINDOW_GUTTER_SIZE): ditto.
11195         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
11196
11197         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
11198         inline.
11199         (get_frame_dc): ditto.
11200
11201         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
11202         here.
11203
11204 2000-02-23  Martin Buchholz <martin@xemacs.org>
11205
11206         * XEmacs 21.2.31 is released.
11207
11208 2000-02-22  Ben Wing <ben@xemacs.org>
11209
11210         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
11211
11212 2000-02-22  Andy Piper  <andy@xemacs.org>
11213
11214         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
11215
11216 2000-02-21  Mike Sperber <mike@xemacs.org>
11217
11218         * .dbxrc:
11219         * .gdbinit:
11220         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
11221         variables.
11222
11223 2000-02-21  Mike Sperber <mike@xemacs.org>
11224
11225         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
11226
11227 2000-02-21  Martin Buchholz <martin@xemacs.org>
11228
11229         * XEmacs 21.2.30 is released.
11230
11231 2000-02-20  Martin Buchholz  <martin@xemacs.org>
11232
11233         Performance hacking.
11234         * *.c (syms_of_*):
11235         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
11236         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
11237         * emacs.c (main_1):
11238         * lisp.h (DEFUN):
11239         * console.c (DEFVAR_CONSOLE_LOCAL_1):
11240         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
11241         * symeval.h (DEFVAR_SYMVAL_FWD):
11242         * symbols.c (guts_of_unbound_marker):
11243         Make all c_readonly objects also lisp_readonly and marked for life.
11244         * lrecord.h (struct lrecord_implementation):
11245         Document flags better.
11246         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
11247         * lrecord.h (DECLARE_LRECORD):
11248         * lrecord.h (XSETRECORD):
11249         * lrecord.h (RECORDP):
11250         * lrecord.h (RECORD_TYPEP):
11251         * lrecord.h (RECORD_MARKER): New.
11252         * lrecord.h (error_check_*):
11253         * lrecord.h (CONCHECK_NONRECORD):
11254         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
11255         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
11256         * lrecord.h (set_lheader_implementation):
11257         * lrecord.h (enum lrecord_type): New.
11258         * symeval.h (SYMBOL_VALUE_MAGIC_P):
11259         * alloc.c (disksave_object_finalization_1):
11260         * alloc.c (mark_object):
11261         * alloc.c (lrecord_type_index):
11262         * alloc.c (tick_lcrecord_stats):
11263         * alloc.c (Fgarbage_collect):
11264         * alloc.c (init_alloc_once_early):
11265         * alloc.c (pdump_load):
11266         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
11267         * alloc.c (lrecord_type_index): Delete.
11268         Make lisp object type indexes be constant.
11269           Makes (byte-compile) 5% faster.
11270         Put all marker functions into their own array.
11271           Makes (garbage-collect) 5% faster.
11272         Optimize SYMBOL_VALUE_MAGIC_P.
11273           Makes (byte-compile) 2-3% faster.
11274         * config.h.in (gc_checking_assert): New.
11275         * alloc.c: Use gc_checking_assert().
11276         * .dbxrc: Make compatible with new object type implementation.
11277         * .gdbinit: Make compatible with new object type implementation.
11278         * alloc.c: Delete all symbols defined only for debugging, such as
11279         Lisp_Type_Vector and lrecord_charset.
11280
11281 2000-02-21  Andy Piper  <andy@xemacs.org>
11282
11283         * gui-msw.c (Fmswindows_shell_execute): fix file location
11284         problems.
11285
11286         * buffer.c (Fkill_buffer): remove buffer from alist buffer
11287         unshowing so that set_window_buffer doesn't undo
11288         kill_buffer_hook's hard work.
11289
11290         * glyphs-widget.c (tab_control_query_geometry): don't count the
11291         first item when calculating geometry.
11292
11293         * glyphs.c (map_subwindow): remove redundant code.
11294         (update_frame_subwindows): be more circumspect about when to
11295         update subwindows.
11296
11297         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
11298         when items haven't changed. Update faces if faces have changed as
11299         well as just the widget face.
11300         (x_tab_control_update): Update faces if faces have changed as well
11301         as just the widget face.
11302
11303 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11304
11305         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
11306         registration.
11307         (build_syscolor_string): Use mswindows_color_to_string to try to
11308         get a named color.
11309         (mswindows_device_system_metrics): Reverse the foreground and
11310         background colors so that they match the documentation.
11311
11312         * objects-msw.c: (mswindows_X_color_map): tweak some values so
11313         they match the default Windows palette.
11314         (mswindows_color_to_string): New function.
11315
11316 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11317
11318         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
11319
11320 2000-02-18  Olivier Galibert  <galibert@pobox.com>
11321
11322         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
11323         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
11324
11325         * symbols.c (init_symbols_once_early): Removed obsolete
11326         DATA_SEG_BITS related kludge.
11327         (defvar_magic): Ditto.
11328
11329         * malloc.c: Removed obsolete DATA_SEG_BITS
11330         * ralloc.c: Ditto.
11331         * mem-limits.h: Ditto.
11332
11333         * Makefile.in.in: Removed obsolete HAVE_SHM
11334         * emacs.c: Ditto.
11335
11336 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11337
11338         *  device-msw.c (mswindows_delete_device): Free DDE string
11339         handles.
11340
11341 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11342
11343         * keymap.c (get_keyelt):
11344         * unexnt.c (unexec):
11345         * vm-limit.c (memory_warnings):
11346         * ntheap.c (recreate_heap):
11347         * ntheap.h (UNINIT_PTR):
11348         * select-msw.c (Fmswindows_get_clipboard):
11349         (Fmswindows_set_clipboard):
11350         * objects-msw.h (MSWINDOWS_BAD_HFONT):
11351         * objects-msw.c:
11352         * menubar-msw.c (displayable_menu_item):
11353         * glyphs-msw.c:
11354         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
11355         * sysdep.c (sys_subshell):
11356         * process-nt.c (nt_create_process):
11357         * nt.c (normalize_filename):
11358         (dostounix_filename):
11359         (unixtodos_filename):
11360         * ntproc.c (win32_executable_type):
11361         * ntplay.c (play_sound_data_1):
11362         (play_sound_file):
11363         * editfns.c (get_home_directory):
11364         * event-msw.c (struct winsock_stream):
11365         (mswindows_dde_callback):
11366         * device-msw.c (msprinter_init_device):
11367         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
11368
11369         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
11370         mswindows_clear_toolbar were swapped!
11371
11372         * objects-msw.c:(colormap_t):
11373         (fontmap_t):
11374         * emacs.c (struct standard_args): Fixed const jumble.
11375
11376         * glyphs-widget.c (update_widget): Fixed comparison notation.
11377
11378         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
11379
11380         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
11381         __declspec(noreturn) syntax.
11382
11383 2000-02-19  Martin Buchholz  <martin@xemacs.org>
11384
11385         * eldap.c (Fldap_open):
11386         (Fldap_search_basic):
11387         (Fldap_add):
11388         (Fldap_modify):
11389         Use new coding system conversion macros.
11390
11391 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11392
11393         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
11394
11395 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
11396
11397         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
11398         (Fldap_add, Fldap_modify, Fldap_delete): New functions
11399
11400         * eldap.c (Qadd, Qreplace): New constant symbols
11401         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
11402         interruptions by XEmacs signals
11403         Remove unnecessary calls to slow_down_interrupts and
11404         speed_up_interrupts
11405         (Fldap_search_basic): Renamed from Fldap_search_internal
11406         Added new optional parameter VERBOSE that triggers the
11407         display of progress messages
11408         Remove unnecessary calls to slow_down_interrupts and
11409         speed_up_interrupts
11410         LDAP result code analysis rewritten
11411         (Fldap_add, Fldap_modify, Fldap_delete): New functions
11412         (syms_of_eldap): Define the new symbols and functions
11413
11414
11415 2000-02-17  Martin Buchholz  <martin@xemacs.org>
11416
11417         * realpath.c: Determine PATH_MAX maximally portably.
11418
11419         * insdel.c (bytecount_to_charcount): Optimize.
11420         The function used to be optimized for entirely ASCII sequences.
11421         Now it is optimized for successive characters from the same
11422         charset.  This also wins big for _mostly_ ASCII sequences.
11423
11424         * fileio.c (Ffile_truename): convert return from realpath() using
11425         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
11426         - Rewrite GCPROing slightly.
11427
11428         * sysdep.c (sys_open): Do filename conversion, like all other
11429         sys_* functions.  Fixes bug:
11430         (let ((file-name-coding-system 'iso-8859-2))
11431            (write-region x y latin2-name))
11432         ==> writes filename using internal encoding.
11433
11434 2000-02-18  Martin Buchholz  <martin@xemacs.org>
11435
11436         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
11437         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
11438         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
11439         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
11440         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
11441         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
11442         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
11443         (CONST_IF_NOT_DEBUG): Delete.
11444         * alloc.c (this_one_is_unmarkable): Delete.
11445         (mark_object): Don't check for this_one_is_unmarkable. Use the
11446         c_readonly flag instead.
11447         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
11448
11449 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11450
11451         * event-msw.c (mswindows_drain_windows_queue):
11452         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
11453         away redundant repaint events.
11454
11455 2000-02-17  Andy Piper  <andy@xemacs.org>
11456
11457         * redisplay.h: declare mark_redisplay_structs.
11458
11459         * redisplay.c (redisplay_window):
11460         (redisplay_frame): don't check subwindows_state_changed.
11461         (mark_redisplay): mark gutters here.
11462
11463         * glyphs.c: (instantiate_image_instantiator): always layout if we
11464         haven't done so already.
11465         (allocate_image_instance): don't mark as dirty.
11466         (update_subwindow): bind inhibit_quit.
11467
11468         * gutter.c (mark_gutters): new function.
11469
11470         * glyphs-x.c (x_update_widget): Always resize to get round a
11471         widget bug.
11472
11473         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
11474         breaking absolutely everything.
11475
11476         * gutter.h: declare mark_gutters.
11477
11478 2000-02-16  Martin Buchholz <martin@xemacs.org>
11479
11480         * XEmacs 21.2.29 is released.
11481
11482 2000-02-15  Olivier Galibert  <galibert@pobox.com>
11483
11484         * fns.c (size_bit_vector): Fix computation of the size.
11485
11486 2000-02-15  Martin Buchholz  <martin@xemacs.org>
11487
11488         * *.[ch]: Change CONST to const globally.
11489         find -name '*.[ch]' | \
11490         xargs global-replace \
11491         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
11492         - Remove vestigial references to CONST_IS_LOSING
11493
11494 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11495
11496         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
11497         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
11498         events instead of dispatching them directly.
11499         (mswindows_handle_paint): New function to do repainting.
11500         (mswindows_wnd_proc):
11501         (emacs_mswindows_handle_magic_event): Call above function.
11502
11503 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11504
11505         * objects-msw.c (mswindows_create_font_variant): Return the new
11506         font handle.
11507         (initialize_font_instance): Get font metrics from the underlined
11508         variant of the font to cope with the case where the underlined
11509         font has a bigger descent.
11510
11511 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
11512
11513         * gui.c (gui_item_accelerator): Return the first underlined
11514         character in item name.
11515
11516 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11517
11518         * lisp.h: Added Qprinter.
11519
11520         * general.c (syms_of_general): Initialized it.
11521
11522         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
11523         (get_frame_dc):
11524         (get_frame_compdc): Made inline.
11525
11526         * console.h (struct console_methods): Added eject_page method.
11527
11528         * frame.h: Added FRAME_DISPLAY_P and friends.
11529         Aligned backslahes in many macros in more readable fashion.
11530         Added page_number to struct frame, and an accessor macro
11531         for it.
11532
11533         * defice.h: Added DEVICE_DISPLAY_P and friends.
11534
11535         * device.c (Fdevice_printer_p): Used these.
11536
11537         * frame.c (allocate_frame_core): Initialize page number.
11538         (Fprint_job_page_number):
11539         (Fprint_job_eject_page): Implemented.
11540
11541         * frame-msw.c (msprinter_eject_page): Added method.
11542         (msprinter_start_page): Added.
11543
11544         * window.c (Fwindow_truncated_p): Fixed docstring.
11545         (Fwindow_last_line_visible_height): Implemented.
11546
11547 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
11548
11549         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
11550
11551 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11552
11553         * syntax.c (scan_words): Always advance at least one character.
11554
11555 2000-02-13  Andy Piper  <andy@xemacs.org>
11556
11557         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
11558         to make sure the glyph is in the cachels.
11559
11560         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
11561         global image instance flag.
11562         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
11563         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
11564
11565         * glyphs.c (allocate_image_instance): set dirty bits correctly.
11566         (Fset_image_instance_property): mark layout as changed.
11567         (invalidate_glyph_geometry_maybe): mark layout as changed.
11568         (glyph_width): use new NEEDS_LAYOUT macro.
11569         (glyph_ascent): ditto.
11570         (glyph_descent): ditto.
11571         (glyph_height): ditto.
11572         (image_instance_layout): mark layout as clean after laying out.
11573         (update_subwindow): don't mark layout as clean here.
11574
11575         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
11576         should no longer be needed.
11577
11578         * glyphs-x.c (x_update_widget): sanitize asserts.
11579         (x_finalize_image_instance): sanitize assignment to widgets.
11580
11581         * glyphs-widget.c (widget_instantiate): don't need to clear the
11582         layout flag here.
11583
11584 2000-02-13  Martin Buchholz  <martin@xemacs.org>
11585
11586         * sysdep.c (getcwd): Use standard prototype.
11587         * sysdep.h (getcwd): Use standard prototype.
11588
11589         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
11590         (sequence, start, end).
11591         Remove redundant type checking.
11592         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
11593         view of `caller-protects') to avoid a crash where the real fix was
11594         found elsewhere.
11595
11596 2000-02-12  Martin Buchholz  <martin@xemacs.org>
11597
11598         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
11599
11600         * s/sol2.h: Remove feature macro initialization.
11601
11602         * alloc.c (alloc_lcrecord): Add more type checking assertions.
11603         (vector_hash): New.  Code from internal_hash.
11604         * lrecord.h:
11605         Fix up allocation subsystem comments.
11606
11607         * config.h.in: Add __EXTENSIONS__ for Solaris.
11608
11609         * systime.h (EMACS_GETTIMEOFDAY): New.
11610         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
11611         Remove Solaris-specific code.
11612         Use void* for the (ignored) second arg for gettimeofday().
11613
11614         * elhash.c (hash_table_hash): Implement it, finally.
11615         * elhash.c:  Use hashcode_t.
11616
11617         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
11618         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
11619
11620         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
11621         * fns.c (size_bit_vector):
11622         * alloc.c (size_vector):
11623         (make_vector_internal):
11624         (make_bit_vector_internal):
11625         (sweep_bit_vectors_1):
11626         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
11627
11628 2000-02-10  Martin Buchholz  <martin@xemacs.org>
11629
11630         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
11631         Include strings.h to avoid warnings for bzero and strcasecmp.
11632
11633 2000-02-10  Olivier Galibert  <galibert@pobox.com>
11634
11635         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
11636         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
11637
11638         * fns.c (size_bit_vector): New.  Declare bit vectors as a
11639         sequence.
11640
11641 2000-02-10  Olivier Galibert  <galibert@pobox.com>
11642
11643         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
11644         use a value field instead.
11645         (symbol_value_forward_forward): Use value field.
11646         (DEFVAR_SYMVAL_FWD): Use value field.
11647         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
11648         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
11649         (DEFVAR_CONST_INT): Ditto.
11650         (DEFVAR_BOOL): Ditto.
11651         (DEFVAR_CONST_BOOL): Ditto.
11652         (DEFVAR_INT_MAGIC): Ditto.
11653         (DEFVAR_BOOL_MAGIC): Ditto.
11654
11655         * symbols.c (guts_of_unbound_marker): Use value field.
11656         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
11657         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
11658
11659         * lisp.h: Declare dumpopaque and noninteractive1.
11660
11661         * alloc.c (dumpopaque): Added.
11662         (pdump_dump_opaquevec): Added.
11663         (pdump): Call pdump_dump_opaquevec to dump opaque data.
11664         (pdump_load): Reload opaque data.  Sync noninteractive1 with
11665         noninteractive.
11666
11667 2000-02-10  Andy Piper  <andy@xemacs.org>
11668
11669         * glyphs.c (image_instance_layout): if the size changes, mark it
11670         as such.
11671
11672         * redisplay-output.c (redisplay_output_layout): Update the
11673         subwindow here.
11674         (redisplay_output_subwindow): ditto.
11675
11676         * glyphs.c (update_subwindow): make sure we reset flags for
11677         layouts as well as everything else.
11678
11679         * glyphs-widget.c (layout_layout): don't need to set the instances
11680         dimensions here.
11681
11682 2000-02-09  Martin Buchholz  <martin@xemacs.org>
11683
11684         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
11685         not HAVE_DLOPEN, which is a lower-level thing.
11686
11687         * .cvsignore: Ignore gmon.out
11688
11689 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
11690
11691         * .cvsignore: Ignore portable dumper xemacs.dmp file
11692
11693 2000-02-09  Andy Piper  <andy@xemacs.org>
11694
11695         * redisplay-output.c (redisplay_output_layout): be more clever
11696         about when we output based on the changed flags.
11697
11698         * glyphs.h (struct image_instantiator_methods): add update_method.
11699         (struct Lisp_Image_Instance): add changed flags. Declare new
11700         macros for manipulating them.
11701
11702         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
11703         (image_instance_parent_glyph): find an image_instance's parent
11704         glyph or image_instance.
11705         (image_instance_layout): mark the size as changed.
11706         (set_image_instance_dirty_p): new function. mark an image
11707         instance, plus all of its parents, as dirty.
11708         (Fset_image_instance_property): use it.
11709         (Fglyph_animated_timeout_handler): use it.
11710         (update_subwindow): call update_widget and device methods for
11711         update_subwindow. Mark all changed flags as clean.
11712         (Fresize_subwindow): mark size as changed.
11713
11714         * glyphs-x.c (x_finalize_image_instance): try and detect gc
11715         failures.
11716         (x_update_subwindow): only resize subwindows here.
11717         (x_update_widget): new function. Update all changed properties of
11718         a widget.
11719         (x_resize_subwindow): deleted.
11720         (x_widget_set_property): deleted.
11721         (x_progress_gauge_set_property): deleted.
11722         (x_progress_gauge_update): new function. Implement recorded
11723         changes.
11724         (x_tab_control_update): ditto.
11725         (x_tab_control_set_property): deleted.
11726         (console_type_create_glyphs_x): declare new functions.
11727         (image_instantiator_format_create_glyphs_x): ditto.
11728
11729         * glyphs-widget.c (widget_set_property): mark text changed.
11730         (update_widget): new function. Update properties of a widget.
11731         (widget_instantiate): for layouts make sure we set their
11732         children's parent correctly.
11733         (tab_control_set_property): new function. Record changes that will
11734         take place under redisplay's control.
11735         (progress_gauge_set_property): ditto.
11736         (image_instantiator_progress_guage): declare new functions.
11737         (image_instantiator_tab_control): ditto.
11738
11739         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
11740         now.
11741         (mswindows_update_widget): new function. Update all properties on
11742         a widget that have changed.
11743         (mswindows_button_update): new function. Update a button's set
11744         state.
11745         (mswindows_tab_control_update): new function. Update the items in
11746         a tab.
11747         (mswindows_tab_control_set_property): deleted.
11748         (mswindows_progress_gauge_update): new function. Update the
11749         progress gauge's progress.
11750         (mswindows_widget_set_property): deleted. This is all done
11751         asynchronously now.
11752         (mswindows_progress_gauge_set_property): ditto.
11753         (console_type_create_glyphs_mswindows): declare new methods.
11754         (image_instantiator_format_create_glyphs_mswindows): ditto.
11755
11756         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
11757         (msprinter_set_frame_properties): ditto.
11758
11759         * console.h (struct console_methods): Add update_widget_method.
11760
11761 2000-02-09  Andy Piper  <andy@xemacs.org>
11762
11763         * gui-msw.c (Fmswindows_shell_execute): Make
11764         mswindows-shell-execute industrial strength.
11765
11766 2000-02-08  Martin Buchholz  <martin@xemacs.org>
11767
11768         * lrecord.h: Make macro argument `props' match member function `plist'.
11769         * fns.c (Fget):
11770         * fns.c (Fput):
11771         * fns.c (Fremprop):
11772         * fns.c (Fobject_plist):
11773         * alloc.c:
11774         * symbols.c:
11775         Object property list frobbing cleanup.
11776         - Allow any lisp object (compared with `eq'), not just symbols, as
11777           keys in object plists.
11778         - Move symbol plist frobbing into symbols.c, where it belongs.
11779         - Move string plist frobbing into alloc.c, where it belongs.
11780         - Everything's an lrecord now, so no need to test for symbolp, etc.
11781         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
11782
11783         * extents.c: Reorder code to remove declarations.
11784
11785         * frame.h (store_in_alist): Remove useless declaration.
11786
11787 2000-02-07  Martin Buchholz  <martin@xemacs.org>
11788
11789         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
11790         * config.h.in: Add HAVE_XCONVERTCASE.
11791
11792 2000-02-07  Andy Piper  <andy@xemacs.org>
11793
11794         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
11795         it breaks many things.
11796
11797 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
11798
11799         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
11800         actually can start a common comment type.
11801         * src/syntax.h (SYNTAX_END_P): ditto for end.
11802
11803 2000-02-07  Martin Buchholz <martin@xemacs.org>
11804
11805         * XEmacs 21.2.28 is released.
11806
11807 2000-02-06  Martin Buchholz  <martin@xemacs.org>
11808
11809         * event-Xt.c (x_keysym_to_character): New.
11810         (maybe_define_x_key_as_self_inserting_character): New.
11811         (x_has_keysym): New.
11812         Auto-define all keys on the keyboard as self-insert-key.
11813
11814 2000-02-02  Martin Buchholz  <martin@xemacs.org>
11815
11816         * menubar.c (vars_of_menubar): A small code simplification.
11817
11818         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
11819
11820         * ExternalShell.c:
11821         * ExternalClient.c:
11822         * EmacsShell-sub.c:
11823         * EmacsManager.c:
11824         * EmacsFrame.c:
11825         Use consistent style for specifying X resources.
11826
11827         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
11828         This makes (dontusethis-set-symbol-value-handler) actually usable.
11829
11830         * lrecord.h (lrecord_decription_type):
11831         * alloc.c (pdump_register_sub):
11832         (pdump_dump_data):
11833         (pdump_reloc_one):
11834         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
11835         Comply with XEmacs coding style.
11836         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
11837         args, and XD_LISP_OBJECT_ARRAY with 3 args.
11838
11839         * keymap.c (Faccessible_keymaps):
11840         Make (accessible-keymaps map "\C-h") do the Right Thing.
11841         Make (accessible-keymaps map []) do the Right Thing.
11842         Make (accessible-keymaps map "") do the Right Thing.
11843         (check_keymap_definition_loop): New function.
11844         (keymap_store_internal): Keep luser from shooting self in foot,
11845           via (define-key ctl-x-4-map "p" global-map).
11846         Remove fullness slot from struct Lisp_Keymap, since hash tables
11847         are now reliable.
11848         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
11849
11850 2000-01-30  Martin Buchholz  <martin@xemacs.org>
11851
11852         * redisplay.c (init_redisplay): Fix small memory leak.
11853         * elhash.h:
11854         * elhash.c (pdump_reorganize_hash_table):
11855         Rename from reorganize_hash_table. Change prototype.
11856         Reuse the original memory for hentries.  Save 100k.
11857         * alloc.c (PDUMP_READ): new macro.
11858         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
11859         * alloc.c: No need to #ifndef before #undef.
11860
11861         * print.c: Allow debug_print() to print readably by modifying
11862         debug_print_readably.  Use consistent variable names.
11863
11864         * .dbxrc: Try to get things to work even if stopped in a function
11865         without source available by explicitly specifying source files.
11866 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11867
11868         * unexnt.c (_start): Removed bogus code which caused loading heap
11869         from differrent executable file.
11870         Removed bogus assignment to _fmode, which caused inconsistencies.
11871
11872 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11873
11874         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
11875         Have spawnve encapsulation regard DONT_ENCAPSULATE.
11876         Do not preliminary `#define signal sigset'.
11877
11878         * systime.h: Do not prototype environ on windows nt and cygwin,
11879         this conflicts with system header.
11880
11881         * syssignal.h: Use correct define for WINDOWSNT
11882
11883         * sysdep.h: Do not prototype environ on windows nt, this conflicts
11884         with system header.
11885
11886         * sysdep.c (near start of file): Fixed commentary and rearranged
11887         ifdefs in readable order.
11888         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
11889         (start_of_text):
11890         (end_of_text):
11891         (end_of_data): Do not compile in if using PDUMP.
11892
11893         * symsinit.h: Prototyped vars_of_nt().
11894
11895         * ntproc.c (windows9x_p): Added, instead of os_subtype.
11896         (find_child_console): Use it.
11897         (sys_kill): Use it.
11898
11899         * ntheap.h: Do not extern os_subtype.
11900
11901         * ntheap.c (cache_system_info): Do not cache unneeded:
11902         nt_major_version, nt_minor_version and os_subtype.
11903         (recreate_heap): Do not compile in when PDUMPing.
11904
11905         * nt.c (geteuid and friends): Use the new varibale
11906         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
11907         (init_user_info): Removed the above mentioned hackery.
11908         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
11909         stat has been fixed in the C runtime.
11910         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
11911
11912         * file-coding.c (struct file_coding_dump): Do not define
11913         ucs_to_mule_table in the struct if not MULE.
11914         (struct struct lrecord_description fcd_description_1): Do not dump
11915         the above.
11916
11917         * emacs.c (main_1): Call vars_of_nt().
11918         (right before Fdump_emacs_data): Don't need lastfile if using both
11919         portabe dumper and system malloc.
11920
11921         * alloc.c (Fmemory_limit): Conditionalized out.
11922         (pdump): Use OPEN_BINARY for the portable dump file.
11923         (pdump_load): Ditto.
11924
11925 2000-02-02  Mike Alexander  <mta@arbortext.com>
11926
11927         * nt.c (convert_time): Set tm_isdst before calling mktime and
11928         avoid calling it at all if the compiler supports 64 bit integers.
11929         Also initialize utc_base_ft before using it.
11930
11931 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
11932
11933         * frame.c (change_frame_size_1): Take f->internal_border_width
11934         into consideration when calculating the width of the frame.
11935
11936 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11937
11938         * window.c (frame_min_height):
11939         (frame_size_valid_p):
11940         (frame_pixsize_valid_p): Added.
11941         (check_frame_size): Generalized.
11942
11943         * window.h: Prototyped the above.
11944
11945         * lisp.h:
11946         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
11947         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
11948         Deleted Vwin32_* and Vbinary_process_* unused variables.
11949
11950         * device-msw.c (msprinter_init_device): Do not get printer font
11951         list; Added DEVMODE functions.
11952
11953         * frame-msw.c: Added lots of printer code.
11954
11955         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
11956         general.c.
11957
11958         * console-msw.h: Added more msprinter device private slots.
11959
11960 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11961
11962         * event-msw.c (key_needs_default_processing_p): Added.
11963         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
11964
11965 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11966
11967         * glyphs.c (image_instance_layout): Mark image instance as clean
11968         after layout.
11969         (glyph_dirty_p): Removed redundant function.
11970         (invalidate_glyph_geometry_maybe): Added.
11971         (update_glyph_cachel_data): Call it.
11972
11973         * glyphs.h: Prototyped it.
11974
11975         * redisplay.c (add_glyph_rune): Call it.
11976         (redisplay_window): Reset glyphs cachels when frame faces have
11977         changed, thus forcing recomputation of built-in border glyphs.
11978
11979 2000-01-30  Martin Buchholz  <martin@xemacs.org>
11980
11981         * Makefile.in.in: Make portable dumper and purify play well together.
11982         Add imperfect, but better than nothing, support for pdump.
11983         Remove xemacs.dmp when temacs is re-generated.
11984         Don't ignore errors when dumping xemacs.
11985
11986         * symbols.c (maybe_call_magic_handler): Remove one magic number.
11987
11988 2000-01-28  Andy Piper  <andy@xemacs.org>
11989
11990         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
11991         (setup_normal_frame): ditto.
11992         (setup_frame_without_minibuffer): ditto.
11993         (setup_minibuffer_frame): ditto.
11994         (delete_frame_internal): ditto.
11995         (Fmake_frame_invisible): ditto.
11996         (Ficonify_frame): ditto.
11997
11998         * window.h: change Fset_window_buffer signature.
11999
12000         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
12001         (Fset_window_buffer): allow recording of buffer if the window is
12002         the selected window.
12003         (window_loop): Use new Fset_window signature.
12004
12005 2000-01-23  Daniel Pittman  <daniel@danann.net>
12006
12007         * config.h.in: Added template for `HAVE_ATHENA_3D'
12008
12009 2000-01-29  Andy Piper  <andy@xemacs.org>
12010
12011         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
12012
12013         * gutter.c (output_gutter): Don't output if the window isn't live.
12014
12015 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12016
12017         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
12018         of 01/12/00: Moved SetFocus back here where it belongs.
12019
12020 2000-01-23  Andy Piper  <andy@xemacs.org>
12021
12022         * s/cygwin32.h: declare printer things.
12023
12024 2000-01-26  Andy Piper  <andy@xemacs.org>
12025
12026         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
12027         Alexander.
12028
12029 2000-01-24  Andy Piper  <andy@xemacs.org>
12030
12031         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
12032         (mswindows_button_instantiate): Make sure glyph is a pixmap.
12033
12034         * glyphs-widget.c (widget_instantiate): Avoid shadows.
12035
12036         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
12037
12038         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
12039
12040         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
12041         (mswindows_output_display_block): Avoid local shadows.
12042
12043         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
12044         (mswindows_enqueue_mouse_button_event): ditto.
12045         (mswindows_handle_gui_wm_command): remove declaration.
12046
12047         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
12048         warnings.
12049
12050         * console-msw.h: Avoid shadows.
12051         (mswindows_get_toolbar_button_text):
12052         (emacs_mswindows_create_stream_pair):
12053         (emacs_mswindows_delete_stream_pair):
12054         (mswindows_handle_toolbar_wm_command): declare.
12055
12056         * device-msw.c (build_syscolor_string): Avoid shadows.
12057
12058 2000-01-23  Andy Piper  <andy@xemacs.org>
12059
12060         * glyphs-widget.c (widget_instantiate): reverse the items for
12061         layouts so that children are in the expected order.
12062
12063 2000-01-28  Martin Buchholz  <martin@xemacs.org>
12064
12065         * ralloc.c: safe_bcopy ==> memmove
12066         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
12067         * s/msdos.h: Remove BCOPY macros.
12068         * insdel.c (gap_right): Remove BCOPY conditional code.
12069         * insdel.c (gap_left): Remove BCOPY conditional code.
12070         XEmacs demands a working ANSI C compiler - hence memmove.
12071
12072         * regex.c (regex_compile): Remove accidental use of trigraphs.
12073
12074 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12075
12076         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
12077         event timestamp.
12078
12079 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12080
12081         * event-msw.c (mswindows_drain_windows_queue): Added the
12082         parameter.
12083         (mswindows_need_event): Commented the call to
12084         mswindows_drain_windows_queue().
12085         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
12086         only.
12087
12088         * console-msw.h: Moved a few function prototypes here from
12089         event-msw.c.
12090
12091         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
12092         parameter from unsigned short to unsigned long.
12093         (Fmswindows_shell_execute): Added return value.
12094
12095 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12096
12097         * sysdep.c (init_system_name):
12098           process-unix.c (unix_canonicalized_host_name):
12099         Don't call freeaddrinfo() if getaddrinfo() fails.
12100
12101         * process-unix.c (unix_open_unix_network_stream):
12102         Moved the code to get a port # into address loop.
12103
12104 2000-01-27  Martin Buchholz  <martin@xemacs.org>
12105
12106         * buffer.c (reinit_vars_of_buffer):
12107         The right place to initialize conversion_in_dynarr and
12108         conversion_out_dynarr.
12109
12110         * alloc.c (pdump): Use the real open() till sys_open() is functional.
12111
12112         * process-unix.c (unix_canonicalize_host_name): Muleize.
12113         (unix_open_network_stream): Muleize.
12114
12115         * buffer.h: Fix up prototypes for ralloc.c functions.
12116
12117 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12118         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
12119         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
12120                 instead of gethostbyname()
12121         * process-unix.c: In unix_canonicalize_host_name() and
12122                 unix_open_network_stream(), add code to use getaddrinfo()
12123                 instead of gethostbyname().
12124
12125 2000-01-27  Daniel Pittman <daniel@danann.net>
12126
12127         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
12128         libs when built with flat Athena.
12129
12130 2000-01-27  Martin Buchholz  <martin@xemacs.org>
12131
12132         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
12133         Use coding standards for function prototypes.
12134
12135 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12136
12137         * dialog-msw.c (push_lisp_string_as_unicode):
12138         * doc.c (unparesseuxify_doc_string):
12139         * dired.c (Fuser_name_completion_1):
12140         * dired.c (Fuser_name_all_completions):
12141         * dired.c (free_user_cache):
12142         * dired.c (user_name_completion):
12143         * console-x.c (get_display_arg_connection):
12144         * minibuf.c (clear_echo_area_internal):
12145         * minibuf.c (echo_area_append):
12146         * eldap.c (Fldap_open):
12147         * eldap.c (Fldap_search_internal):
12148         * frame-x.c (x_set_frame_text_value):
12149         * frame-x.c (x_set_frame_properties):
12150         * frame-x.c (x_create_widgets):
12151         * redisplay-tty.c (term_get_fkeys_1):
12152         * objects-x.c (x_parse_nearest_color):
12153         * objects-x.c (x_valid_color_name_p):
12154         * objects-x.c (x_initialize_font_instance):
12155         * objects-x.c (x_list_fonts):
12156         * objects-x.c (x_find_charset_font):
12157         * tooltalk.c (Fadd_tooltalk_message_arg):
12158         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12159         * tooltalk.c (Fadd_tooltalk_pattern_arg):
12160         * process-unix.c (unix_create_process):
12161         * ntproc.c (sys_spawnve):
12162         * sound.c (Fplay_sound_file):
12163         * sound.c (Fplay_sound):
12164         * buffer.c (init_initial_directory):
12165         * buffer.c (init_buffer):
12166         * editfns.c (init_editfns):
12167         * editfns.c (Ftemp_directory):
12168         * editfns.c (Fuser_full_name):
12169         * editfns.c (uncache_home_directory):
12170         * editfns.c (get_home_directory):
12171         * editfns.c (Fuser_home_directory):
12172         * editfns.c (Fformat_time_string):
12173         * editfns.c (Fcurrent_time_string):
12174         * gui-x.c (button_item_to_widget_value):
12175         * database.c (Fopen_database):
12176         * event-Xt.c (x_to_emacs_keysym):
12177         * event-Xt.c (x_event_to_emacs_event):
12178         * event-Xt.c (describe_event_window):
12179         * event-msw.c (mswindows_wnd_proc):
12180         * glyphs-eimage.c (jpeg_instantiate):
12181         * glyphs-eimage.c (gif_instantiate):
12182         * glyphs-eimage.c (png_instantiate):
12183         * glyphs-eimage.c (tiff_instantiate):
12184         * glyphs-x.c (xbm_instantiate_1):
12185         * glyphs-x.c (x_xbm_instantiate):
12186         * glyphs-x.c (x_xface_instantiate):
12187         * glyphs-x.c (autodetect_instantiate):
12188         * glyphs-x.c (cursor_font_instantiate):
12189         * glyphs-x.c (x_widget_instantiate):
12190         * glyphs-x.c (x_widget_set_property):
12191         * glyphs-x.c (x_widget_property):
12192         * glyphs-x.c (BUILD_GLYPH_INST):
12193         * print.c (write_string_to_stdio_stream):
12194         * print.c (output_string):
12195         * print.c (Falternate_debugging_output):
12196         * print.c (Fexternal_debugging_output):
12197         * glyphs-msw.c (extract_xpm_color_names):
12198         * glyphs-msw.c (mswindows_xpm_instantiate):
12199         * glyphs-msw.c (bmp_instantiate):
12200         * glyphs-msw.c (resource_name_to_resource):
12201         * glyphs-msw.c (mswindows_resource_instantiate):
12202         * glyphs-msw.c (xbm_instantiate_1):
12203         * glyphs-msw.c (mswindows_xbm_instantiate):
12204         * glyphs-msw.c (mswindows_xface_instantiate):
12205         * glyphs-msw.c (mswindows_widget_instantiate):
12206         * glyphs-msw.c (add_tree_item):
12207         * glyphs-msw.c (add_tab_item):
12208         * glyphs-msw.c (mswindows_combo_box_instantiate):
12209         * glyphs-msw.c (mswindows_widget_property):
12210         * glyphs-msw.c (mswindows_combo_box_property):
12211         * glyphs-msw.c (mswindows_widget_set_property):
12212         * console.c (stuff_buffered_input):
12213         * objects-msw.c (mswindows_initialize_color_instance):
12214         * objects-msw.c (mswindows_valid_color_name_p):
12215         * objects-msw.c (mswindows_list_fonts):
12216         * objects-msw.c (mswindows_font_instance_truename):
12217         * bytecode.c (optimize_compiled_function):
12218         * select-x.c (symbol_to_x_atom):
12219         * select-x.c (x_atom_to_symbol):
12220         * select-x.c (hack_motif_clipboard_selection):
12221         * select-x.c (selection_data_to_lisp_data):
12222         * select-x.c (lisp_data_to_selection_data):
12223         * select-x.c (Fx_get_cutbuffer_internal):
12224         * select-x.c (Fx_store_cutbuffer_internal):
12225         * buffer.h (TO_EXTERNAL_FORMAT): New function.
12226         * buffer.h (TO_INTERNAL_FORMAT): New function.
12227         * emacs.c (make_arg_list_1):
12228         * emacs.c (make_argc_argv):
12229         * emacs.c (main_1):
12230         * emacs.c (Fdump_emacs):
12231         * emacs.c (split_string_by_emchar_1):
12232         * file-coding.h:
12233         * lisp.h:
12234         * lstream.h:
12235         * symsinit.h:
12236         * device-x.c (x_init_device):
12237         * device-x.c (Fx_valid_keysym_name_p):
12238         * device-x.c (Fx_get_font_path):
12239         * device-x.c (Fx_set_font_path):
12240         * glyphs.c (bitmap_to_lisp_data):
12241         * glyphs.c (pixmap_to_lisp_data):
12242         * alloc.c (make_ext_string): Use coding system arguments.  Update
12243         all callers.
12244         * alloc.c (build_string):
12245         * callproc.c (child_setup):
12246         * callproc.c (init_callproc):
12247         * fileio.c (lisp_strerror):
12248         * fileio.c (directory_file_name):
12249         * fileio.c (Fexpand_file_name):
12250         * fileio.c (Ffile_truename):
12251         * fileio.c (Fsysnetunam):
12252         * fileio.c (Fdo_auto_save):
12253         * sysdep.c (sys_readdir):
12254         * tests.c: New file.  Allow adding C tests.
12255         Replace GET_* macros with a more comprehensible and flexible
12256         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
12257         Modify all calls.
12258         Any coding system can be used to do format conversion.
12259         Eliminate enum external_data_format.
12260         Eliminate convert_to_external_format.
12261         Eliminate convert_to_internal_format.
12262         Make sure file-name, keyboard, terminal, and ctext are always
12263         defined as coding systems or aliases.  Make
12264         file-name-coding-system, terminal-coding-system, and
12265         keyboard-coding-system magical variables that are equivalent to
12266         defining the corresponding coding system aliases.
12267
12268         * file-coding.c (Fcoding_system_canonical_name_p): New function.
12269         * file-coding.c (Fcoding_system_alias_p): New function.
12270         * file-coding.c (Fcoding_system_aliasee): New function.
12271         * file-coding.c (append_suffix_to_symbol): New function.
12272         * file-coding.c (dangling_coding_system_alias_p): New function.
12273         * file-coding.c (Ffind_coding_system):
12274         * file-coding.c (Fcopy_coding_system):
12275         * file-coding.c (encode_coding_no_conversion):
12276         * file-coding.c (syms_of_file_coding):
12277         * file-coding.c (vars_of_file_coding):
12278         Rewrite coding system alias code.
12279         Allow nested aliases, like symbolic links.
12280         Allow redefinition of coding system aliases.
12281         Prevent existence of dangling coding system aliases.
12282
12283         * dired.c (Fuser_name_completion_1):
12284         * dired.c (Fuser_name_all_completions):
12285         A crash would happen if user did QUIT in the middle of building
12286         user_name_cache.  Remove redundant code in mainline and unwind_protect.
12287
12288         * lisp.h:
12289         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
12290
12291         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
12292         an unsigned char *.  Update all callers.
12293
12294 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12295
12296         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
12297
12298 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12299
12300         * elhash.c (hentry_description): Use more portable definition.
12301         (resize_hash_table): Initialize new hentries using
12302         xnew_array_and_zero, thereby simplifying the code.
12303
12304         * mule-charset.c (make_charset): Make sure entire object is
12305         initialized, to avoid Purify warnings.
12306
12307         * alloc.c (resize_string): Fix unlikely crash with big strings.
12308
12309 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12310
12311         * realpath.c (xrealpath):
12312         Don't call getwd().
12313
12314 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12315
12316         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
12317
12318 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
12319
12320         * unexelfsgi.c (unexec): Change the way we decide which segment
12321         should be extended.
12322
12323         Assumption that .bss section should be outside the PT_LOADable
12324         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
12325         it's present) is inside the 'data' segment. This would fail the
12326         test which was used to find a segment to grow and cover new
12327         heap. Instead of this assumption, I created another one - on IRIX
12328         the segment to grow should start below .bss and it's address
12329         should extent above the end of .bss. Once this segment is
12330         identified, it's grown to accommodate the new heap and new
12331         zero-length .bss section is added at the end of .data2.
12332
12333 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12334
12335         * eval.c (Feval): Wrong number of arguments should use original
12336         function, not the indirect_function version of it.
12337
12338 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
12339
12340         * glyphs-x.c (x_button_instantiate): Don't add image if
12341         it is not a pixmap.
12342         (x_locate_pixmap_file): Call Fexpand_file_name when file name
12343         is relative.
12344
12345 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
12346
12347         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
12348         declaration.
12349         (DEFVAR_INT_MAGIC): Ditto.
12350         (DEFVAR_BOOL_MAGIC): Ditto.
12351         * glyphs.h: Reindent backslash.
12352
12353 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12354
12355         * glyphs-widget.c (layout_query_geometry):
12356         (layout_layout): Use correct types for gheight, gwidth.
12357
12358 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12359
12360         * EmacsManager.c (QueryGeometry): Purified.
12361
12362 2000-01-23  Martin Buchholz  <martin@xemacs.org>
12363
12364         * alloc.c (make_float): Make sure entire object is initialized, to
12365         avoid Purify warnings.
12366         (pdump_register_sub): Remove useless assignment.
12367         (pdump): Use xmalloc, not malloc.
12368         (pdump_load): Use xmalloc, not malloc.
12369
12370 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12371
12372         * callproc.c:
12373         * dired-msw.c:
12374         * fileio.c:
12375         * process-nt.c:
12376         * redisplay-msw.c:
12377         * sysdep.c: Removed redundant #include <windows.h>
12378
12379 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12380
12381         * frame.c (delete_frame_internal): Do not delete device when its
12382         implementation so declares.
12383         (delete_frame_internal): Set device selected frame to nil when
12384         last frame goes away.
12385
12386         * device-msw.c (msprinter_device_system_metrics): Implemented.
12387         (mswindows_device_system_metrics): Added 'device-dpi property.
12388
12389         * device.c: (Fdevice_printer_p): Added.
12390         Added 'offset-workspace device metric.
12391
12392         * console.h (device_metrics): Declared DM_offset_workspace.
12393
12394 2000-01-23  Martin Buchholz  <martin@xemacs.org>
12395
12396         * fileio.c (Ffile_truename): Remove pointless and confusing
12397         initialization of elen.
12398
12399         * glyphs-widget.c: Compiler warning fixes.
12400
12401 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
12402
12403         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
12404         instead of a Lisp_Object as argument to make it consistent with
12405         the other LIVE_P macros.
12406         (CHECK_LIVE_PROCESS): New macro.
12407
12408         * process.c: Declare Qprocess_live_p.
12409         (Fprocess_live_p): New function.
12410         (create_process): Use PROCESS_LIVE_P.
12411         (read_process_output): Ditto.
12412         (set_process_filter): Ditto.
12413         (Fdelete_process): Ditto.
12414         (kill_buffer_processes): Ditto
12415         (process_send_signal): Use CHECK_LIVE_PROCESS.
12416         (Fprocess_input_coding_system): Check whether process is still
12417         alive (fix PR#1061).
12418         (Fprocess_output_coding_system): Ditto.
12419         (Fprocess_coding_system): Ditto.
12420         (Fset_process_input_coding_system): Ditto.
12421         (Fset_process_output_coding_system): Ditto.
12422
12423 2000-01-23  Andy Piper  <andy@xemacs.org>
12424
12425         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
12426         layout and widget.
12427
12428         * glyphs.c (mark_image_instance): take into account changed
12429         image_instance format.
12430         (image_instance_equal): ditto.
12431         (image_instance_hash): ditto.
12432
12433         * glyphs-widget.c (widget_instantiate): Incorporate layout
12434         instantiation here. Delay layout of the layout until later.
12435         (layout_instantiate): deleted.
12436         (layout_query_geometry): new function. get the geometry of a
12437         layout.
12438         (layout_layout): layout a layout dynamically.
12439         (image_instantiator_widget): New function - splitting up
12440         image_instantiator_format_create_glyphs_widget for netwinder
12441         compilation.
12442         (image_instantiator_buttons):
12443         (image_instantiator_edit_fields):
12444         (image_instantiator_combo_box):
12445         (image_instantiator_scrollbar):
12446         (image_instantiator_progress_guage):
12447         (image_instantiator_tree_view):
12448         (image_instantiator_tab_control):
12449         (image_instantiator_labels):
12450         (image_instantiator_layout): ditto.
12451         (image_instantiator_format_create_glyphs_widget): Call preceding
12452         functions.
12453
12454 2000-01-22  Martin Buchholz  <martin@xemacs.org>
12455
12456         * process.c (Fset_process_coding_system):
12457         * device-x.c (Fx_keysym_hash_table):
12458         Docstring fixes.
12459
12460         * lstream.c (Lstream_write): Return documented value, not 0.
12461
12462         * fileio.c (directory_file_name):
12463         (Fsubstitute_in_file_name):
12464         (Fsubstitute_insert_file_contents_internal):
12465         (Fwrite_region_internal):
12466         * emacs.c:
12467         * sysdep.c:
12468         * getloadavg.c:
12469         * systty.h:
12470         Remove vestigial APOLLO-conditional code.
12471
12472 2000-01-21  Martin Buchholz  <martin@xemacs.org>
12473
12474         * getpagesize.h: Add guard macros.
12475         * libsst.h: Add guard macros.
12476         * libst.h: Add guard macros.
12477         * line-number.h: Add guard macros.
12478         * ndir.h: Add guard macros.
12479         * sysfloat.h: Add guard macros.
12480         * sysfile.h: Add guard macros.
12481         * sysproc.h: Add guard macros.
12482         * syswait.h: Add guard macros.
12483         * xintrinsic.h: Add guard macros.
12484         * xintrinsicp.h: Add guard macros.
12485         * xmmanager.h: Add guard macros.
12486         * xmmanagerp.h: Add guard macros.
12487         * xmprimitive.h: Add guard macros.
12488         * xmu.h: Add guard macros.
12489         * gpmevent.h: Add copyright statement. Add guard macros.
12490         * miscplay.h: Add guard macros.
12491         * *.h: Use consistent C-standards-approved guard macro names.
12492
12493         * opaque.c (make_opaque): Switch parameter order.
12494         * opaque.h (make_opaque): Switch parameter order.
12495         Update all callers.
12496         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
12497
12498         * config.h.in (type_checking_assert): Added.
12499         (bufpos_checking_assert): Added.
12500
12501 2000-01-21  Martin Buchholz  <martin@xemacs.org>
12502
12503         * alloc.c: Harmless pdump changes.
12504         - Use countof().
12505         - spell alignment correctly.
12506         * sysdep.c: Use countof()
12507
12508 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12509
12510         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
12511         initially_selected_for_input() console method, default to 0.
12512         (semi_canonicalize_console_connection): Try to delegate to
12513         canonicalize_console_connection if no such console method.
12514         (canonicalize_console_connection): Vice versa.
12515         (print_console): Do not print nil connection.
12516
12517         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
12518         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
12519         (XDEVIMPF_FRAMELESS_OK): Added.
12520         (CONSOLE_INHERITS_METHOD): Added.
12521
12522         * console-msw.c (mswindows_canonicalize_console_connection):
12523         Added.
12524         (mswindows_canonicalize_device_connection): Added.
12525
12526         * console-msw.h (struct msprinter_device): Added this struct and
12527         accessor macros.
12528         (mswindows_device): Made fontlist a lisp object.
12529
12530         * device.c (semi_canonicalize_device_connection):  Try to delegate
12531         to canonicalize_device_connection if no such console method.
12532         (canonicalize_device_connection): Vice versa.
12533         (print_device): Do not print nil connection.
12534
12535         * device-msw.c (mswindows_init_device): Call InitCommonControls
12536         when have widgets.
12537         (mswindows_delete_device): Removed fontlist deallocation.
12538         (mswindows_mark_device): Added.
12539
12540         * events.c (event_equal): Added abort() at unreached code.
12541         (event_hash): Ditto.
12542
12543         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
12544         fallback tags of Windows devices.
12545
12546         * general.c (syms_of_general): Initialized Qmsprinter.
12547
12548         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
12549         of fallback tags of Windows devices.
12550
12551         * lisp.h: Declared Qmsprinter.
12552
12553         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
12554         of strings.
12555         (mswindows_list_fonts): Ditto.
12556         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
12557         that it can be used by both mswindows and msprinter devices.
12558         (initialize_font_instance): Added.
12559         (mswindows_initialize_font_instance): Use it.
12560         (msprinter_initialize_font_instance): Added.
12561
12562         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
12563         and implementation flags check.
12564         (redisplay_without_hooks): Changed the call to the above.
12565         (Fredraw_device): Ditto.
12566         (Fredisplay_device): Ditto.
12567
12568         * redisplay-msw.c (get_frame_dc): Implemented.
12569         (get_frame_compdc): Implemented.
12570         (many functions): Use the two functions above to get device
12571         contexts, ether for a window or a printer.
12572
12573 2000-01-21  Olivier Galibert  <galibert@pobox.com>
12574
12575         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
12576         initialization here.
12577         (init_symbols_once_early): Call it.
12578         * emacs.c (main_1): Call it.
12579         * symsinit.h: Declare it.
12580
12581 2000-01-19  Olivier Galibert  <galibert@pobox.com>
12582
12583         * alloc.c: Use a lrecord_header * in the backtrace instead of a
12584         Lisp_Object.
12585         (pdump_backtrace): Ditto.
12586         (pdump_register_object): Ditto.  Cleanup use of the pointers.
12587         (pdump_get_entry): Abort if trying to register a null pointer.
12588         (pdump_dump_data): Cleanup types when relocating.
12589         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
12590         (pdump_dump_rtables): Remove bad casts.
12591         (pdump_load): Cleanup relocation w.r.t union type.  Use a
12592         Lisp_Object instead of a EMACS_INT for the hashtable
12593         reorganization.
12594
12595 2000-01-20  Martin Buchholz  <martin@xemacs.org>
12596
12597         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
12598
12599         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
12600
12601         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
12602
12603         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
12604
12605 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12606
12607         * faces.h (FACE_STRIKETHRU_P): Added.
12608
12609         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
12610         of font variants.
12611
12612         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
12613         (mswindows_set_dc_font): New function, aware of font variants,
12614         separated from mswindows_update_dc.
12615
12616         * objects-msw.h (struct mswindows_font_instance_data): Added
12617         definition.
12618
12619         * objects-msw.c (mswindows_finalize_font_instance): Delete all
12620         cached fonts and the data structure.
12621         (mswindows_initialize_font_instance): Added creation of font data
12622         structure.
12623         (mswindows_print_font_instance): Print at least something.
12624         (mswindows_create_font_variant): Implemented.
12625         (mswindows_get_hfont): Implemented.
12626
12627 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
12628
12629         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
12630         prototyping problem with msvc.
12631
12632         * emacs.c (main_1): added syms_of_gui_mswindows() call
12633
12634         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
12635         syms_of_gui_mswindows() function
12636
12637         * symsinit.h: added the prototype for syms_of_gui_mswindows()
12638
12639 2000-01-18  Martin Buchholz <martin@xemacs.org>
12640
12641         * XEmacs 21.2.27 is released.
12642
12643 2000-01-18  Martin Buchholz  <martin@xemacs.org>
12644
12645         * glyphs-eimage.c (struct tiff_error_struct):
12646         (tiff_error_func):
12647         (tiff_warning_func):
12648         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
12649
12650         * unexmips.c:
12651         * unexhp9k3.c:
12652         * unexfreebsd.c:
12653         * unexec.c: Remove vestigial Lucid C code.
12654         * unexalpha.c:
12655         * unexaix.c:
12656         * termcap.c:
12657         * libsst.c: Ansify.
12658         Remove declarations of errno and strerror().
12659
12660         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
12661
12662         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
12663
12664 2000-01-16  Martin Buchholz  <martin@xemacs.org>
12665
12666         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
12667         Optimize.
12668
12669 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12670
12671         * md5.c:
12672         * file-coding.c:
12673         * file-coding.h:
12674         Change enum eol_type to eol_type_t.
12675
12676 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12677
12678         * gui.c (get_gui_callback): Check cons before accessing car.
12679
12680 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12681
12682         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
12683         (XSETSPECIFIER_TYPE): Ditto.
12684
12685 2000-01-17  Didier Verna  <didier@xemacs.org>
12686
12687         * redisplay.c (generate_fstring_runes): compute string size in
12688         characters, not bytes.
12689
12690 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
12691
12692         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
12693
12694 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
12695
12696         * print.c (print_error_message): Call print_prepare().
12697
12698 2000-01-14  Martin Buchholz  <martin@xemacs.org>
12699
12700         * .dbxrc: Renamed from dbxrc.
12701
12702         * events.c (event_to_character):
12703         Use `assert (foo)' instead of `if (!foo) abort()'
12704
12705         * .gdbinit (xtype): Add documentation.
12706         * .gdbinit (check-temacs): New function.
12707         * .gdbinit (check-xemacs): New function.
12708         * dbxrc (check-xemacs): New function.
12709         * dbxrc (check-xemacs): New function.
12710
12711 2000-01-14  Andy Piper  <andy@xemacs.org>
12712
12713         * glyphs-widget.c (widget_query_geometry): Make sure that we
12714         calculate default dimensions correctly.
12715
12716 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12717
12718         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
12719
12720         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
12721         pdump_wire'd variable.
12722
12723         * emacs.c: (main_1): Conditionalized calls to
12724         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
12725
12726 2000-01-13  Martin Buchholz  <martin@xemacs.org>
12727
12728         * window.c (Fset_window_configuration):
12729         * sysdep.c (_start):
12730         * input-method-motif.c (res):
12731         * event-Xt.c (Xt_process_to_emacs_event):
12732         Simple compiler warning fixes.
12733
12734         * bytecode.c (funcall_compiled_function): Use the original
12735         function symbol on the backtrace list in preference to the
12736         compiled_function object in error messages.
12737
12738 2000-01-13  Andy Piper  <andy@xemacs.org>
12739
12740         * glyphs-x.c (update_widget_face): Make sure we update the widget
12741         background as well as foreground.
12742
12743 2000-01-13  Andy Piper  <andy@xemacs.org>
12744
12745         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
12746         fields to subwindow.
12747         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
12748         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
12749         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
12750         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
12751
12752         * glyphs-widget.c (check_valid_tab_orientation): new function.
12753         (initialize_widget_image_instance): zero orientation and
12754         justification.
12755         (widget_instantiate): pick up orientation.
12756         (tab_control_query_geometry): return appropriate values for
12757         vertical tabs.
12758
12759         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
12760         appropriate creation flags for left, right and bottom tabs.
12761
12762         * s/cygwin32.h: add tab definitions.
12763
12764 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12765
12766         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
12767         frame upon hiding a subwindow.
12768         (mswindows_button_instantiate): Changed the push button style to
12769         BS_PUSHBUTTON.
12770         (mswindows_button_instantiate): Removed button BS_NOTIFY
12771         style.
12772         (mswindows_button_instantiate): Removed redundant check for
12773         a disabled gui item.
12774         (mswindows_button_instantiate): Made use of WS_TABSTOP
12775         consistent: "operable" controls (edit, button, tree, scroll) have
12776         this style, "display-only" ones (static, progress gauge) do
12777         not. This style is currently ignored by XEmacs though. Also,
12778         removed the WS_EX_CONTROLPARENT style - it is not for children,
12779         it is for their parents!
12780         (mswindows_edit_field_instantiate): Ditto.
12781         (mswindows_progress_gauge_instantiate): Ditto.
12782         (mswindows_tree_view_instantiate): Ditto.
12783         (mswindows_tab_control_instantiate): Ditto.
12784         (mswindows_scrollbar_instantiate): Ditto.
12785         (mswindows_combo_box_instantiate): Ditto.
12786         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
12787         style to the "clip" window.
12788         (mswindows_button_instantiate): Removed compilation warning by
12789         equally typing terms of the ?: operator.
12790
12791 2000-01-12  Didier Verna  <didier@xemacs.org>
12792
12793         * redisplay.c (generate_fstring_runes): new parameter holding the
12794         last modeline-format extent.
12795         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
12796         extent, fill the glyph block with it.
12797         (generate_fstring_runes): handle these parameters.
12798         (generate_formatted_string_db): ditto.
12799
12800         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
12801         glyphs'extents in the modeline.
12802
12803 1999-01-11  Mike Woolley  <mike@bulsara.com>
12804
12805         * ntheap.c: Reduced the reserved heap space from 1Gb down to
12806         256Mb, as a workaround for the non-starting problem many people
12807         have experienced.
12808
12809 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12810
12811         * console-tty.c (Fset_console_tty_output_coding_system):
12812         Force redrawing tty frame.
12813
12814 2000-01-10  Didier Verna  <didier@xemacs.org>
12815
12816         * redisplay.c (generate_fstring_runes): fix size computation bug.
12817
12818 2000-01-09  William M. Perry <wmperry@aventail.com>
12819
12820         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
12821
12822 2000-01-09  Andy Piper  <andy@xemacs.org>
12823
12824         * glyphs-msw.c: index -> i to avoid shadows.
12825         (xbm_create_bitmap_from_data): make static.
12826         (check_valid_string_or_int): deleted.
12827         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
12828
12829         * glyphs-x.c (x_update_subwindow): remove unused args.
12830
12831         * glyphs.c (glyph_image_instance): return the thing. Don't set the
12832         back pointer - this is done in allocate_image_instance.
12833         (query_string_font): return Qnil to make the compiler happy.
12834         (unmap_subwindow): set to ~0 to make the compiler happy.
12835         (glyph_query_geometry): comment out until used.
12836         (glyph_layout): ditto.
12837
12838 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
12839
12840         * insdel.c (signal_after_change): Remove extraneous unbind_to().