a3c236d2b5846918583b64dc677b7ce19d3d15ce
[chise/xemacs-chise.git-] / src / ChangeLog
1 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * mule-charset.c (Vcharset_mojikyo): Deleted.
4         (Vcharset_mojikyo_2022_1): Deleted.
5         (Vcharset_mojikyo_pj_{1..21}): Deleted.
6         (Qmin_code): New variable in UTF-2000.
7         (Qmax_code): Likewise.
8         (Qmother): Likewise.
9         (Qconversion): Likewise.
10         (Q94x60): Likewise.
11         (Qmojikyo): Deleted.
12         (Qmojikyo_2022_1): Deleted.
13         (Qmojikyo_pj_{1..22}): Deleted.
14         (mark_charset): Mark `cs->mother'.
15         (charset_description): Add description for `mother'.
16         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
17         new arguments `mother' and `conversion'; use
18         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
19         (charset_code_point): Moved from char-ucs.h; support `mother'
20         charset feature.
21         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
22         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
23         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
24         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
25         allow 2 as the value of `graphic' in UTF-2000; add new properties
26         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
27         require `final' in UTF-2000; modify for `make_charset'.
28         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
29         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
30         (Fcharset_property): Support `mother', `min-code' and `max-code'.
31         (Fencode_char): New function.
32         (syms_of_mule_charset): Add new builtin function `encode-char' in
33         UTF-2000; add new symbols `min-code', `max-code', `mother',
34         `conversion' and `94x60'; delete symbols `mojikyo',
35         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
36         (complex_vars_of_mule_charset): Modify for `make_charset' change;
37         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
38         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
39
40         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
41         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
42
43         * char-ucs.h (Vcharset_mojikyo): Deleted.
44         (Vcharset_mojikyo_2022_1): Deleted.
45         (LEADING_BYTE_MOJIKYO): Deleted.
46         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
47         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
48         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
49         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
50         add new member `mother'; add new member `conversion'.
51         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
52         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
53         (CHARSET_MOTHER): New macro.
54         (CHARSET_CONVERSION): New macro.
55         (CONVERSION_IDENTICAL): New macro.
56         (CONVERSION_94x60): New macro.
57         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
58         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
59         (XCHARSET_MOTHER): New macro.
60         (XCHARSET_CONVERSION): New macro.
61         (MIN_CHAR_MOJIKYO): Deleted.
62         (MAX_CHAR_MOJIKYO): Deleted.
63         (DECODE_MOJIKYO_2022): Deleted.
64         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
65         (charset_code_point): Changed to non-inline function.
66         (encode_char_1): Use `charset_code_point'.
67         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
68
69 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
70
71         * lread.c (read_compiled_function): Fix prototype.
72         (read_vector): Likewise.
73
74 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
75
76         * lrecord.h (struct lrecord_header): Delete `older'.
77         (set_lheader_implementation): Delete code for `older'.
78         (set_lheader_older_implementation): Deleted.
79         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
80         (OLDER_RECORD_P): Deleted.
81         (OLDER_RECORD_HEADER_P): Deleted.
82         (alloc_older_lcrecord): Deleted.
83         (alloc_older_lcrecord_type): Deleted.
84
85         * alloc.c (all_older_lcrecords): Deleted.
86         (alloc_older_lcrecord): Deleted.
87         (disksave_object_finalization_1): Delete code for older objects.
88         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
89         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
90
91 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
92
93         * mule-charset.c (decoding_table_put_char): Use `make_vector'
94         instead of `make_older_vector'.
95         (put_char_ccs_code_point): Likewise.
96         (mark_charset): Mark `cs->decoding_table'.
97         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
98
99         * lisp.h (make_older_vector): Deleted.
100         (make_vector_newer): Deleted.
101
102         * config.h.in (HAVE_GGC): Deleted.
103
104         * alloc.c (make_older_vector): Deleted.
105         (make_vector_newer_1): Deleted.
106         (make_vector_newer): Deleted.
107
108 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
109
110         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
111         (Qideograph_daikanwa_2): New variable.
112         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
113         (complex_vars_of_mule_charset): Add new coded-charset
114         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
115         `LEADING_BYTE_DAIKANWA'.
116
117         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
118         (LEADING_BYTE_DAIKANWA_1): New macro.
119         (LEADING_BYTE_DAIKANWA_2): New macro.
120         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
121
122 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
123
124         * mule-charset.c (complex_vars_of_mule_charset): Change
125         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
126         the second revised version.
127
128 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
129
130         * mule-charset.c (Vcharset_ucs_smp): New variable.
131         (Vcharset_ucs_sip): New variable.
132         (Qucs_smp): New variable.
133         (Qucs_sip): New variable.
134         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
135         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
136         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
137         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
138         `ucs-bmp'; addn new coded-charset `ucs-smp' and `ucs-sip'; change
139         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
140
141         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
142         (LEADING_BYTE_UCS_SIP): New macro.
143         (MIN_CHAR_SMP): New macro.
144         (MAX_CHAR_SMP): New macro.
145         (MIN_CHAR_SIP): New macro.
146         (MAX_CHAR_SIP): New macro.
147
148 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
149
150         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
151         utf-2000.
152
153 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
154
155         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
156         value; don't store value into `encoding_table' of `Lisp_Charset'.
157         (mark_charset): `encoding_table' was deleted.
158         (charset_description): Likewise.
159         (make_charset): Likewise.
160         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
161         `put_char_ccs_code_point'.
162
163         * chartab.h (Fput_char_attribute): New EXFUN.
164
165         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
166         is unified with normal symbol space.
167         (Fget_char_attribute): Likewise.
168         (Fput_char_attribute): Likewise; behavior of
169         `put_char_ccs_code_point' is changed.
170
171         * char-ucs.h: Include "elhash.h".
172         (Vchar_attribute_hash_table): New external variable.
173         (struct Lisp_Charset): Delete `encoding_table'.
174         (CHARSET_ENCODING_TABLE): New implementation; refer
175         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
176         `Lisp_Charset'.
177
178 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
179
180         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
181         (cs) == 0.
182
183 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
184
185         * text-coding.c (char_encode_big5): Prefer charset-g1 than
186         `chinese-big5'.
187
188 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
189
190         * chartab.c (uint8_byte_table_description): New constant.
191         (uint8-byte-table): Use `uint8_byte_table_description'.
192         (uint16_byte_table_description): New constant.
193         (uint16-byte-table): Use `uint16_byte_table_description'.
194
195 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
196
197         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
198         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
199
200 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
201
202         * mule-charset.c (Vcharset_ucs_ks): New variable.
203         (Qucs_ks): New variable.
204         (syms_of_mule_charset): Add new symbol `ucs-ks'.
205         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
206
207         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
208
209 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
210
211         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
212         (Fdecode_char): Likewise.
213
214         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
215         chartab.h.
216         (Fdefine_char): Modify for Fdecode_char.
217         (Ffind_char): Likewise.
218
219         * mule-charset.c (Fdecode_char): Add new optional argument
220         `defined-only'.
221         (Fdecode_builtin_char): Modify for `Fdecode_char'.
222
223 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
224
225         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
226         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
227         (allocate_coding_system): Initialize initial-charsets of
228         CODESYS_BIG5 in XEmacs UTF-2000.
229         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
230         CODESYS_BIG5 in XEmacs UTF-2000.
231         (decode_coding_big5): Use initial-charset-g0 and -g1 of
232         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
233
234         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
235         variables.
236         (Qideograph_hanziku_{1 .. 12}): Likewise.
237         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
238         .. 12}'.
239         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
240         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
241         `ideograph-hanziku-{1 .. 12}'.
242
243         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
244         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
245         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
246         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
247         (DECODE_DEFINED_CHAR): New inline function.
248         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
249
250 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
251
252         * mule-charset.c (Vcharset_china3_jef): Renamed from
253         `Vcharset_japanese_jef_china3'.
254         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
255         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
256         `{MIN|MAX}_CHAR_JEF_CHINA3'..
257         (syms_of_mule_charset): Rename `china3-jef' from
258         `japanese-jef-china3'.
259         (complex_vars_of_mule_charset): Likewise; rename
260         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
261
262         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
263         `LEADING_BYTE_JEF_CHINA3'.
264         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
265         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
266
267 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
268
269         * mule-charset.c (encode_builtin_char_1): Comment out special code
270         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
271
272         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
273         (MAX_CHAR_MOJIKYO_0): Comment out.
274         (MIN_CHAR_CBETA): Changed to 0x00E20000.
275         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
276         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
277         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
278
279 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
280
281         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
282         (Qideograph_cbeta): New variable.
283         (encode_builtin_char_1): Comment out special code for
284         coded-charset `mojikyo' and `japanese-jef-china3'.
285         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
286         (complex_vars_of_mule_charset): Add new coded-charset
287         `ideograph-cbeta'.
288
289         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
290         (MIN_CHAR_CBETA): New macro.
291         (MAX_CHAR_CBETA): New macro.
292
293 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
294
295         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
296         (LEADING_BYTE_JEF_CHINA3): New macro.
297         (MIN_CHAR_JEF_CHINA3): New macro.
298         (MAX_CHAR_JEF_CHINA3): Likewise.
299         (DECODE_CHAR): Fixed.
300
301 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
302
303         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
304         (Qjapanese_jef_china3): New variable.
305         (encode_builtin_char_1): Support `japanese-jef-china3'.
306         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
307         (complex_vars_of_mule_charset): Add new coded-charset
308         `japanese-jef-china3'.
309
310 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
311
312         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
313         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
314         94^4, 96^3, 96^4, 128^n and 256^n set.
315         (put_char_table): Use `XCHARSET_CELL_RANGE'.
316         (map_char_table): Likewise.
317
318 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
319
320         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
321         UTF-2000.
322
323 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
324
325         * chartab.h (get_char_id_table): New inline function.
326
327         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
328         function.
329
330 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
331
332         * chartab.h (decode_char_table_range): New prototype in XEmacs
333         UTF-2000.
334         (put_char_id_table): New inline function in XEmacs UTF-2000.
335
336         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
337         function.
338         (decode_char_table_range): Delete static declaration in XEmacs
339         UTF-2000.
340
341 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
342
343         * chartab.c (put_char_id_table): Use `put_char_table'.
344
345 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
346
347         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
348         (map_over_uint16_byte_table): Likewise.
349         (map_over_byte_table): Likewise.
350         (map_char_table): Modify for `map_over_uint8_byte_table',
351         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
352         UTF-2000.
353
354 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
355
356         * chartab.c (struct map_char_table_for_charset_arg): New
357         structure.
358         (map_char_table_for_charset_fun): New function.
359         (map_char_table): Use `map_char_table' for encoding_table of
360         `range->charset'.
361
362 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
363
364         * chartab.c (map_char_table): Check a character is found in
365         range->charset instead of non default value is defined in
366         char-table when range is CHARTAB_RANGE_ROW.
367
368 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
369
370         * chartab.c (map_char_id_table): Deleted.
371         (Fmap_char_attribute): Use `map_char_table' instead of
372         `map_char_id_table'.
373
374 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
375
376         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
377         UTF-2000.
378         (update_syntax_table): Deleted in XEmacs UTF-2000.
379
380         * syntax.c (find_defun_start): Use `syntax_table' instead of
381         `mirror_syntax_table' in XEmacs UTF-2000.
382         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
383         UTF-2000.
384         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
385         XEmacs UTF-2000.
386         (Fmatching_paren): Likewise.
387         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
388         in XEmacs UTF-2000.
389         (find_start_of_comment): Likewise.
390         (find_end_of_comment): Likewise.
391         (Fforward_comment): Likewise.
392         (scan_lists): Likewise.
393         (char_quoted): Likewise.
394         (Fbackward_prefix_chars): Likewise.
395         (scan_sexps_forward): Likewise.
396         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
397         (update_syntax_table): Likewise.
398
399         * search.c (skip_chars): Use `syntax_table' instead of
400         `mirror_syntax_table' in XEmacs UTF-2000.
401         (wordify): Likewise.
402         (Freplace_match): Likewise.
403
404         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
405         `mirror_syntax_table' in XEmacs UTF-2000.
406         (WORDCHAR_P_UNSAFE): Likewise.
407         (re_match_2_internal): Likewise.
408
409         * font-lock.c (find_context): Use `buf->syntax_table' instead of
410         `buf->mirror_syntax_table' in XEmacs UTF-2000.
411
412         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
413         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
414
415         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
416         XEmacs UTF-2000.
417
418         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
419         UTF-2000.
420         (print_char_table): Print `default_value' in XEmacs UTF-2000.
421         (char_table_description): Delete `mirror_table' in XEmacs
422         UTF-2000.
423         (fill_char_table): Don't call `update_syntax_table' in XEmacs
424         UTF-2000.
425         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
426         (Fcopy_char_table): Likewise.
427         (put_char_table): Don't call `update_syntax_table' in XEmacs
428         UTF-2000.
429
430         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
431         `buf->mirror_syntax_table' in XEmacs UTF-2000.
432         (casify_region_internal): Likewise.
433
434         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
435
436         * buffer.c (common_init_complex_vars_of_buffer): Don't use
437         `mirror_syntax_table' in XEmacs UTF-2000.
438
439         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
440         `buf->mirror_syntax_table' in XEmacs UTF-2000.
441         (Fexpand_abbrev): Likewise.
442
443 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
444
445         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
446
447 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
448
449         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
450         (map_over_uint16_byte_table): Likewise.
451         (map_over_byte_table): Likewise.
452         (get_char_id_table): Refer `cit->default_value'.
453         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
454         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
455         of character-id ranges.
456         (mark_char_table): Mark `ct->default_value'.
457         (char_table_description): Add `default_value'.
458         (fill_char_table): Use `default_value'.
459         (decode_char_table_range): Decode `nil' as
460         `CHARTAB_RANGE_DEFAULT'.
461         (get_char_id_table): Refer `cit->default_value'.
462         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
463         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
464         temporary hack; check value of char-table is bound or not.
465         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
466
467         * chartab.h (struct Lisp_Char_Table): Add new member
468         `default_value' in XEmacs UTF-2000.
469         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
470         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
471         UTF-2000.
472
473 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
474
475         * chartab.h (Lisp_Char_ID_Table): Deleted.
476
477         * chartab.c (char_table_description): Fix typo.
478         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
479         `Lisp_Char_ID_Table'.
480
481 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
482
483         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
484         `CHAR_ID_TABLE_P'.
485
486         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
487         `CHAR_ID_TABLE_P'.
488
489         * chartab.h (XCHAR_ID_TABLE): Deleted.
490         (XSETCHAR_ID_TABLE): Deleted.
491         (CHAR_ID_TABLE_P): Deleted.
492
493         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
494         `CHAR_ID_TABLE_P'.
495         (Fget_composite_char): Likewise.
496         (put_char_table): Likewise.
497         (add_char_attribute_alist_mapper): Fixed.
498         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
499         `CHAR_ID_TABLE_P'.
500         (Fget_char_attribute): Likewise.
501         (Fget_char_attribute): Likewise.
502         (Fmap_char_attribute): Likewise.
503
504         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
505         `CHAR_ID_TABLE_P'.
506         (encode_char_1): Likewise.
507
508 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
509
510         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
511         `XCHAR_ID_TABLE'.
512
513         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
514         instead of `XCHAR_ID_TABLE'.
515         (remove_char_ccs): Likewise.
516
517         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
518         `XCHAR_ID_TABLE'.
519         (Fget_composite_char): Likewise.
520         (Fchar_variants): Likewise.
521         (put_char_table): Likewise.
522         (add_char_attribute_alist_mapper): Likewise.
523         (Fchar_attribute_alist): Likewise.
524         (Fget_char_attribute): Likewise.
525         (Fput_char_attribute): Likewise.
526         (Fmap_char_attribute): Likewise.
527         (Fmap_char_attribute): Likewise.
528
529         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
530         `XCHAR_ID_TABLE'.
531         (encode_char_1): Likewise.
532
533 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
534
535         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
536         `Lisp_Char_ID_Table'.
537         (mark_char_id_table): Deleted.
538         (print_char_id_table): Likewise.
539         (char_id_table_equal): Likewise.
540         (char_id_table_hash): Likewise.
541         (char_id_table_description): Likewise.
542         (char_id_table): Likewise.
543         (make_char_id_table): Use `Fmake_char_table' and
544         `fill_char_table'.
545         (get_char_id_table): Use `Lisp_Char_Table' instead of
546         `Lisp_Char_ID_Table'.
547         (put_char_id_table): Likewise.
548         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
549         `XCHAR_ID_TABLE'.
550         (Fremove_char_attribute): Likewise.
551         (syms_of_chartab): Don't define type `char-id-table'.
552
553         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
554         (char_id_table): Likewise.
555         (GC_CHAR_ID_TABLE_P): Likewise.
556         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
557         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
558         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
559         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
560         (get_char_id_table): Use `Lisp_Char_Table' instead of
561         `Lisp_Char_ID_Table'.
562         (put_char_id_table_0): Likewise.
563         (put_char_id_table): Likewise.
564
565 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
566
567         * chartab.h: Lisp_Byte_Table related codes are moved from
568         chartab.h.
569
570         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
571
572 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
573
574         * chartab.h: Don't include "chartab.h".
575         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
576         (Lisp_Char_ID_Table): Likewise.
577         (char_id_table): Likewise.
578         (XCHAR_ID_TABLE): Likewise.
579         (XSETCHAR_ID_TABLE): Likewise.
580         (CHAR_ID_TABLE_P): Likewise.
581         (GC_CHAR_ID_TABLE_P): Likewise.
582         (get_char_id_table): Likewise.
583
584         * char-ucs.h: Include "chartab.h".
585         (struct Lisp_Char_ID_Table): Moved to chartab.h.
586         (Lisp_Char_ID_Table): Likewise.
587         (char_id_table): Likewise.
588         (XCHAR_ID_TABLE): Likewise.
589         (XSETCHAR_ID_TABLE): Likewise.
590         (CHAR_ID_TABLE_P): Likewise.
591         (GC_CHAR_ID_TABLE_P): Likewise.
592         (get_char_id_table): Likewise.
593
594 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
595
596         * chartab.c (copy_uint8_byte_table): New function.
597         (copy_uint16_byte_table): New function.
598         (copy_byte_table): New function.
599         (map_over_uint8_byte_table): Modify to avoid huge numbers of
600         characters to call.
601         (map_over_uint16_byte_table): Likewise.
602         (map_over_byte_table): Likewise.
603         (get_byte_table): Move prototype to chartab.h.
604         (put_byte_table): Likewise.
605         (put_char_id_table_0): Moved to chartab.h.
606         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
607         (char_table_entry_equal): Likewise.
608         (char_table_entry_hash): Likewise.
609         (char_table_entry_description): Likewise.
610         (char_table_entry): Likewise.
611         (make_char_table_entry): Likewise.
612         (copy_char_table_entry): Likewise.
613         (get_non_ascii_char_table_value): Likewise.
614         (map_over_charset_ascii): Likewise.
615         (map_over_charset_control_1): Likewise.
616         (map_over_charset_row): Likewise.
617         (map_over_other_charset): Likewise.
618         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
619         (print_char_table): Likewise.
620         (char_table_equal): Likewise.
621         (char_table_hash): Likewise.
622         (char_table_description): Likewise.
623         (fill_char_table): Likewise.
624         (Fcopy_char_table): Likewise.
625         (get_char_table): Likewise.
626         (Fget_range_char_table): Likewise.
627         (put_char_table): Likewise.
628         (map_char_table): Likewise.
629         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
630         UTF-2000.
631
632 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
633
634         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
635         `Vauto_fill_chars' in XEmacs UTF-2000.
636
637         * chartab.h (get_byte_table): New prototype [moved from
638         chartab.c].
639         (put_byte_table): Likewise [moved from chartab.c].
640         (put_char_id_table_0): New inline function [moved from chartab.c].
641         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
642         (Lisp_Char_Table_Entry): Likewise.
643         (char_table_entry): Likewise.
644         (XCHAR_TABLE_ENTRY): Likewise.
645         (XSETCHAR_TABLE_ENTRY): Likewise.
646         (CHAR_TABLE_ENTRYP): Likewise.
647         (CHECK_CHAR_TABLE_ENTRY): Likewise.
648         (NUM_ASCII_CHARS): Likewise.
649         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
650         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
651
652 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
653
654         * chartab.c (get_char_id_table): Change interface.
655         (put_char_id_table_0): New function.
656         (put_char_id_table): Change interface; new implementation.
657         (Fget_composite_char): Modify for interface change of
658         `get_char_id_table'.
659         (Fchar_variants): Likewise.
660         (add_char_attribute_alist_mapper): Likewise.
661         (Fchar_attribute_alist): Likewise.
662         (Fget_char_attribute): Likewise.
663         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
664         as same as character as the first argument like `put-char-table';
665         modify for interface change of `put_char_id_table'.
666         (Fremove_char_attribute): Modify for interface change of
667         `put_char_id_table'.
668
669 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
670
671         * text-coding.c: Sync up with XEmacs 21.2.41.
672         (COMPOSE_ADD_CHAR): Modify for interface change of
673         `get_char_id_table'.
674
675         * mule-charset.c (put_char_ccs_code_point): Modify for interface
676         change of `put_char_id_table'.
677         (remove_char_ccs): Likewise.
678
679         * chartab.h (put_char_id_table): Change interface.
680
681         * char-ucs.h (get_char_id_table): Change interface.
682         (charset_code_point): Modify for interface change of
683         `get_char_id_table'.
684         (encode_char_1): Likewise.
685
686 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
687
688         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
689         argument `ccs'.
690         (map_over_uint16_byte_table): Likewise.
691         (map_over_byte_table): Likewise.
692         (map_char_id_table): Add new argument `range' like
693         `map_char_table'.
694         (Fmap_char_attribute): Add new argument `range' like
695         `Fmap_char_table'.
696
697 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
698
699         * chartab.c (map_over_uint8_byte_table): Change interface of
700         mapping function to use struct chartab_range instead of Emchar.
701         (map_over_uint16_byte_table): Likewise.
702         (map_over_byte_table): Likewise.
703         (map_char_id_table): Likewise.
704         (struct slow_map_char_id_table_arg): Deleted.
705         (slow_map_char_id_table_fun): Deleted.
706         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
707         function `slow_map_char_table_fun' instead of struct
708         `slow_map_char_id_table_arg' and function
709         `slow_map_char_id_table_fun'.
710
711 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
712
713         * mule-charset.c: Move char-it-table related codes to chartab.c.
714         (Vutf_2000_version): Moved to chartab.c.
715         (Fdefine_char): Likewise.
716         (Ffind_char): Likewise.
717         (syms_of_mule_charset): Move types `uint8-byte-table',
718         `uint16-byte-table', `byte-table' and `char-id-table' to
719         chartab.c; move functions `char_attribute_list,
720         `find_char_attribute_table, `char_attribute_alist,
721         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
722         `map_char_attribute, `define_char, `find_char, `char_variants and
723         `get_composite_char to chartab.c; move symbols `=>ucs',
724         `->decomposition', `compat', `isolated', `initial', `medial',
725         `final', `vertical', `noBreak', `fraction', `super', `sub',
726         `circle', `square', `wide', `narrow', `small' and `font' to
727         chartab.c.
728         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
729         setting codes for `Vcharacter_composition_table' and
730         `Vcharacter_variant_table' to chartab.c.
731         (complex_vars_of_mule_charset): Move setting code for
732         `Vchar_attribute_hash_table' to chartab.c.
733
734         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
735         (make_char_id_table): New prototype.
736         (put_char_id_table): Likewise.
737         (Fget_char_attribute): Likewise.
738
739         * chartab.c: Move char-id-table related code from mule-charset.c.
740         (Vutf_2000_version): Moved from mule-charset.c.
741
742         * char-ucs.h (Qucs): New external variable.
743         (put_char_ccs_code_point): New prototype.
744         (remove_char_ccs): Likewise.
745
746 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
747
748         * mule-charset.c (Vcharset_ucs_jis): New variable.
749         (Qucs_jis): Likewise.
750         (syms_of_mule_charset): Add new symbol `ucs-jis'.
751         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
752
753         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
754
755 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
756
757         * mule-charset.c (map_over_uint8_byte_table): New function.
758         (map_over_uint16_byte_table): Likewise.
759         (map_over_byte_table): Likewise.
760         (map_char_id_table): Likewise.
761         (slow_map_char_id_table_fun): Likewise.
762         (Fmap_char_attribute): Likewise.
763         (syms_of_mule_charset): Add new function `map-char-attribute'.
764
765 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
766
767         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
768         (syms_of_mule_charset): Add new function `find-char'.
769
770 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
771
772         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
773         XEmacs UTF-2000.
774         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
775         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
776         XEmacs UTF-2000.
777         (complex_vars_of_mule_charset): Add new coded-charset
778         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
779         `ideograph-gt-pj-*'.
780
781         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
782
783 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
784
785         * mule-charset.c (encode_builtin_char_1): Purge codes about
786         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
787         {MIN|MAX}_CHAR_HEBREW.
788         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
789         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
790
791         * char-ucs.h (MIN_CHAR_GREEK): Purged.
792         (MAX_CHAR_GREEK): Purged.
793         (MIN_CHAR_CYRILLIC): Purged.
794         (MAX_CHAR_CYRILLIC): Purged.
795         (MIN_CHAR_HEBREW): Commented out.
796         (MAX_CHAR_HEBREW): Likewise.
797
798 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
799
800         * mule-charset.c (Qto_ucs): New variable.
801         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
802         (Fdefine_char): Likewise.
803         (syms_of_mule_charset): Add new symbol `=>ucs'.
804
805 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
806
807         * mule-charset.c (Fdecode_char): Fixed.
808
809 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
810
811         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
812         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
813         "tcvn5712-1".
814
815 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
816
817         * mule-charset.c (Vcharset_ucs_big5): New variable.
818         (Qucs_big5): Likewise.
819         (syms_of_mule_charset): Add new symbol `ucs-big5'.
820         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
821
822         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
823
824 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
825
826         * mule-charset.c (decode_builtin_char): Check Big5 code range
827         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
828
829 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
830
831         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
832         (Qchinese_gb12345): Likewise.
833         (Fdecode_builtin_char): Fixed.
834         (syms_of_mule_charset): Add `chinese-gb12345'.
835         (complex_vars_of_mule_charset): Add coded-charset
836         `chinese-gb12345'.
837
838         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
839         (LEADING_BYTE_CHINESE_GB12345): New macro.
840
841 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
842
843         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
844         and `latin-viscii-upper' for `latin-viscii'.
845
846 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
847
848         * mule-charset.c (Fdecode_builtin_char): Comment out
849         regularization code for ISO-IR GR representation.
850
851 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
852
853         * mule-charset.c (decode_builtin_char): New function; renamed from
854         `make_builtin_char'; return -1 instead of signal.
855         (Fdecode_builtin_char): Use `decode_builtin_char'.
856
857         * char-ucs.h (decode_builtin_char): New prototype; renamed from
858         `make_builtin_char'.
859         (DECODE_CHAR): Use `decode_builtin_char' instead of
860         `make_builtin_char'; use mapping table of `chinese-big5' for
861         `chinese-big5-{1,2}'.
862
863 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
864
865         * text-coding.c (char_encode_big5): New function.
866         (char_finish_big5): Likewise.
867         (reset_encoding_stream): Use `char_encode_big5' and
868         `char_finish_big5' for CODESYS_BIG5.
869         (mule_encode): Don't use `encode_coding_big5'.
870         (encode_coding_big5): Deleted.
871
872 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
873
874         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
875         0x81- in XEmacs UTF-2000.
876         (detect_coding_big5): Likewise.
877
878 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
879
880         * mule-charset.c (Fdefine_char): Don't use a CCS property to
881         generate character-id if the CCS property does not have
882         corresponding predefined character.
883         (make_builtin_char): Return -1 if corresponding predefined
884         character is not found.
885         (Fdecode_char): Return nil if corresponding character is not
886         found.
887         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
888         don't map to builtin ucs space.
889
890 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
891
892         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
893         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
894
895 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
896
897         * mule-charset.c (Vcharset_ideograph_gt): New variable.
898         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
899         (Qideograph_gt): Likewise.
900         (Qideograph_gt_pj_{1..11}): Likewise.
901         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
902         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
903         `ideograph-gt-pj-11'.
904         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
905         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
906         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
907
908         * char-ucs.h (LEADING_BYTE_GT): New macro.
909         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
910         (MIN_CHAR_GT): Likewise.
911         (MAX_CHAR_GT): Likewise.
912
913 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
914
915         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
916         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
917
918         * doprnt.c (unsigned_int_converters): Add `c'.
919         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
920
921         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
922         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
923         `MIN_CHAR_MOJIKYO'.
924         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
925         (MAX_CHAR_MOJIKYO_0): New macro.
926         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
927
928 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
929
930         * mule-charset.c (Fdefine_char): Delete cemented out code.
931         (encode_builtin_char_1): Modify for new allocation of builtin
932         Mojikyo characters.
933
934         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
935
936 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
937
938         * mule-charset.c (Vcharset_ucs_cns): New variable.
939         (Qucs_cns): New variable.
940         (syms_of_mule_charset): Add new symbol `ucs-cns'.
941         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
942
943 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
944
945         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
946
947 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
948
949         * search.c (search_buffer): Make `charset_base_code' as
950         character-id >> 6 to eliminate the corresponding last byte in
951         UTF-8 representation [I'm not sure it is right thing].
952         (boyer_moore): Likewise.
953
954 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
955
956         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
957         representation in MULE.
958
959 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
960
961         * text-coding.c (Fmake_coding_system): Use
962         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
963         `EXTERNAL_PROPERTY_LIST_LOOP'.
964
965 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
966
967         * text-coding.c (decode_output_utf8_partial_char): New function.
968         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
969
970 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
971
972         * text-coding.c (decode_coding_utf8): Output original byte
973         sequence if it is broken; change order of conditions.
974
975         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
976         of conditions.
977
978         * mb-multibyte.h (BYTE_ASCII_P):
979         Use bit ops for char-signedness safety.
980         (BYTE_C0_P): Use bit ops for char-signedness safety.
981         (BYTE_C1_P): Use bit ops for char-signedness safety.
982
983         * character.h: (XCHAR_OR_CHAR_INT):
984         Always use inline function.
985         Remove redundant type checking assert() - XINT will abort quite
986         nicely.
987
988 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
989
990         * text-coding.c: (Fencode_shift_jis_char):
991         (Fencode_big5_char):
992         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
993         Replace 0 with '\0' when working with bytes.
994         Replace initial "(" with "\(" in docstrings.
995
996         (Fmake_coding_system):
997         When type is ccl and value is vector, register it with a proper
998         symbol.  And checks whether the given ccl program is valid.
999         (mule_decode): When calling ccl_driver, if src indicates
1000         NULL pointer, set an empty string instead.
1001         (mule_encode): Likewise.
1002
1003         (detect_eol_type):
1004         (detect_coding_sjis):
1005         (decode_coding_sjis):
1006         (detect_coding_big5):
1007         (decode_coding_big5):
1008         (detect_coding_ucs4):
1009         (decode_coding_ucs4):
1010         (detect_coding_utf8):
1011         (decode_coding_utf8):
1012         (detect_coding_iso2022):
1013         (decode_coding_iso2022):
1014         (decode_coding_no_conversion):
1015         (mule_decode):
1016         Make all detecting and decoding functions take an Extbyte * arg.
1017         (text_encode_generic):
1018         (encode_coding_big5):
1019         (encode_coding_no_conversion):
1020         (mule_encode):
1021         Make all encoding functions take a Bufbyte * arg.
1022         Use size_t instead of unsigned int for memory sizes.
1023         Only cast to unsigned char whenever dereferencing Extbyte *.
1024
1025         (struct lrecord_description fcd_description_1): Use countof.
1026         (complex_vars_of_file_coding):
1027         Use countof instead of sizeof.
1028         Use CHECK_NATNUM instead of CHECK_INT.
1029
1030 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1031
1032         * mule-charset.c (Fget_char_attribute): Add new optional argument
1033         `default-value'.
1034         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
1035         (remove_char_ccs): Likewise.
1036
1037 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1038
1039         * text-coding.c (char_encode_shift_jis): New implementation in
1040         UTF-2000.
1041         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
1042         ...)'.
1043
1044         * mule-charset.c (Vcharset_chinese_big5): New variable in
1045         UTF-2000.
1046         (Qchinese_big5): New variable in UTF-2000.
1047         (BIG5_SAME_ROW): New macro in UTF-2000.
1048         (make_builtin_char): Use builtin characters of
1049         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
1050         characters of `Vcharset_chinese_big5'.
1051         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
1052         (complex_vars_of_mule_charset): Add new coded-charset
1053         `chinese-big5' in UTF-2000.
1054
1055         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
1056         (Vcharset_chinese_big5): New external variable declaration.
1057         (Vcharset_japanese_jisx0208_1990): Likewise.
1058
1059 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1060
1061         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
1062         function.
1063         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
1064
1065 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1066
1067         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
1068         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
1069         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
1070         `mojikyo-pj-*'.
1071
1072 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1073
1074         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
1075
1076 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1077
1078         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1079         to 0.17.
1080
1081 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1082
1083         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
1084         for `CHARSET_BY_ATTRIBUTES'.
1085         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1086         `CHARSET_BY_ATTRIBUTES'.
1087
1088         * text-coding.c (struct decoding_stream): Rename member `CH' to
1089         `CPOS'.
1090         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
1091         (decode_coding_sjis): Likewise.
1092         (decode_coding_big5): Likewise.
1093         (decode_coding_ucs4): Likewise.
1094         (decode_coding_utf8): Likewise.
1095         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1096         `CHARSET_BY_ATTRIBUTES'.
1097         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
1098         `str->counter'; decode 3, 4 bytes sets.
1099         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
1100         sets.
1101         (decode_coding_no_conversion): Use `str->cpos' instead of
1102         `str->ch'.
1103
1104         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
1105         (Qmojikyo_2022_1): New variable.
1106         (make_charset): Don't use `CHARSET_TYPE_*'.
1107         (range_charset_code_point): Support coded-charset
1108         `mojikyo-2022-1'.
1109         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
1110         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
1111         `CHARSET_BY_ATTRIBUTES'.
1112         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
1113         `CHARSET_BY_ATTRIBUTES'.
1114         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
1115         (complex_vars_of_mule_charset): Add new coded-charset
1116         `mojikyo-2022-1'.
1117
1118         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
1119         interface; changed to inline function.
1120
1121         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
1122         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
1123         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
1124         (CHARSET_TYPE_94): Deleted.
1125         (CHARSET_TYPE_94X94): Deleted.
1126         (CHARSET_TYPE_96): Deleted.
1127         (CHARSET_TYPE_96X96): Deleted.
1128         (CHARSET_TYPE_128): Deleted.
1129         (CHARSET_TYPE_128X128): Deleted.
1130         (CHARSET_TYPE_256): Deleted.
1131         (CHARSET_TYPE_256X256): Deleted.
1132         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
1133         to inline function.
1134         (DECODE_MOJIKYO_2022): New inline function.
1135         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
1136         `Vcharset_mojikyo_2022_1'.
1137
1138 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1139
1140         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
1141         instead of `EQ'.
1142         (put_byte_table): Likewise.
1143         (char_id_table_equal): Use `get_byte_table' [new implementation].
1144
1145 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1146
1147         * mule-charset.c: Include <limits.h> in UTF-2000.
1148         (BT_UINT8_MIN): New macro in UTF-2000.
1149         (BT_UINT8_MAX): New macro in UTF-2000.
1150         (BT_UINT8_t): New macro in UTF-2000.
1151         (BT_UINT8_nil): New macro in UTF-2000.
1152         (BT_UINT8_unbound): New macro in UTF-2000.
1153         (INT_UINT8_P): New inline function in UTF-2000.
1154         (UINT8_VALUE_P): New inline function in UTF-2000.
1155         (UINT8_ENCODE): New inline function in UTF-2000.
1156         (UINT8_DECODE): New inline function in UTF-2000.
1157         (mark_uint8_byte_table): New function in UTF-2000.
1158         (print_uint8_byte_table): New function in UTF-2000.
1159         (uint8_byte_table_equal): New function in UTF-2000.
1160         (uint8_byte_table_hash): New function in UTF-2000.
1161         (make_uint8_byte_table): New function in UTF-2000.
1162         (uint8_byte_table_same_value_p): New function in UTF-2000.
1163         (BT_UINT16_MIN): New macro in UTF-2000.
1164         (BT_UINT16_MAX): New macro in UTF-2000.
1165         (BT_UINT16_t): New macro in UTF-2000.
1166         (BT_UINT16_nil): New macro in UTF-2000.
1167         (BT_UINT16_unbound): New macro in UTF-2000.
1168         (INT_UINT16_P): New inline function in UTF-2000.
1169         (UINT16_VALUE_P): New inline function in UTF-2000.
1170         (UINT16_ENCODE): New inline function in UTF-2000.
1171         (UINT16_DECODE): New inline function in UTF-2000.
1172         (UINT8_TO_UINT16): New inline function in UTF-2000.
1173         (mark_uint16_byte_table): New function in UTF-2000.
1174         (print_uint16_byte_table): New function in UTF-2000.
1175         (uint16_byte_table_equal): New function in UTF-2000.
1176         (uint16_byte_table_hash): New function in UTF-2000.
1177         (make_uint16_byte_table): New function in UTF-2000.
1178         (uint16_byte_table_same_value_p): New function in UTF-2000.
1179         (print_byte_table): New function in UTF-2000.
1180         (byte-table): Use `print_byte_table' as printer.
1181         (make_byte_table): Delete second argument `older'.
1182         (byte_table_same_value_p): New function in UTF-2000.
1183         (copy_byte_table): Deleted.
1184         (get_byte_table): New function in UTF-2000.
1185         (put_byte_table): New function in UTF-2000.
1186         (print_char_id_table): New function in UTF-2000.
1187         (char-id-table): Use `print_char_id_table' as printer.
1188         (make_char_id_table): Delete second argument `older'.
1189         (get_char_id_table): Use `get_byte_table [new implementation].
1190         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
1191         implementation].
1192         (Ffind_char_attribute_table): New function in UTF-2000.
1193         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
1194         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
1195         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
1196         (syms_of_mule_charset): Add new function
1197         `find-char-attribute-table' in UTF-2000.
1198
1199         * lrecord.h (enum lrecord_type): Add
1200         `lrecord_type_uint16_byte_table' and
1201         `lrecord_type_uint8_byte_table'.
1202
1203         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
1204         (Lisp_Uint8_Byte_Table): New type.
1205         (XUINT8_BYTE_TABLE): New macro.
1206         (XSETUINT8_BYTE_TABLE): New macro.
1207         (UINT8_BYTE_TABLE_P): New macro.
1208         (GC_UINT8_BYTE_TABLE_P): New macro.
1209         (struct Lisp_Uint16_Byte_Table): New structure.
1210         (Lisp_Uint16_Byte_Table): New type.
1211         (XUINT16_BYTE_TABLE): New macro.
1212         (XSETUINT16_BYTE_TABLE): New macro.
1213         (UINT16_BYTE_TABLE_P): New macro.
1214         (GC_UINT16_BYTE_TABLE_P): New macro.
1215
1216 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1217
1218         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
1219         (Vcharacter_ideographic_strokes_table): Deleted.
1220         (Vcharacter_total_strokes_table): Deleted.
1221         (Vcharacter_morohashi_daikanwa_table): Deleted.
1222         (Vcharacter_decomposition_table): Deleted.
1223         (Qname): Deleted because it is duplicated.
1224         (Qideographic_radical): Deleted.
1225         (Qideographic_strokes): Deleted.
1226         (Qtotal_strokes): Deleted.
1227         (Qmorohashi_daikanwa): Deleted.
1228         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
1229         `ideographic-radical', `ideographic-strokes', `total-strokes',
1230         `morohashi-daikanwa' and `->decomposition'.
1231         (Fget_char_attribute): Likewise.
1232         (Fput_char_attribute): Likewise; use `make-vector' instead of
1233         `make_older_vector' for `->decomposition' value.
1234         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
1235         `ideograph-daikanwa'.
1236         (syms_of_mule_charset): Delete builtin symbols `name',
1237         `ideographic-radical', `ideographic-strokes', `total-strokes' and
1238         `morohashi-daikanwa'.
1239         (vars_of_mule_charset): Don't setup
1240         `Vcharacter_ideographic_radical_table',
1241         `Vcharacter_ideographic_strokes_table',
1242         `Vcharacter_total_strokes_table',
1243         `Vcharacter_morohashi_daikanwa_table' and
1244         `Vcharacter_decomposition_table'.
1245
1246 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1247
1248         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
1249         `make_older_vector', `make_vector_newer_1' and
1250         `make_vector_newer'.
1251
1252         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
1253         `make_older_vector' and `make_vector_newer'.
1254
1255         * config.h.in (HAVE_GGC): New macro.
1256
1257 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1258
1259         * mule-charset.c (struct char_attribute_list_closure): New
1260         structure in UTF-2000.
1261         (add_char_attribute_to_list_mapper): New function in UTF-2000.
1262         (Fchar_attribute_list): Likewise.
1263         (Fset_charset_mapping_table): Use `make_vector_newer'.
1264         (Fdecode_builtin_char): New function in UTF-2000.
1265         (syms_of_mule_charset): Add new function `char-attribute-list' and
1266         `decode-builtin-char' in UTF-2000.
1267
1268         * lisp.h (make_vector_newer): New prototype.
1269
1270         * alloc.c (make_vector_newer_1): New function.
1271         (make_vector_newer): New function.
1272
1273 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1274
1275         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
1276         50100)'.
1277
1278 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1279
1280         * mule-charset.c (Vchar_attribute_hash_table): New variable.
1281         (Vcharacter_attribute_table): Deleted.
1282         (Vcharacter_name_table): Deleted.
1283         (put_char_attribute): Deleted.
1284         (remove_char_attribute): Deleted.
1285         (struct char_attribute_alist_closure): New structure.
1286         (add_char_attribute_alist_mapper): New function.
1287         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
1288         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
1289         (Fget_char_attribute): Likewise.
1290         (Fput_char_attribute): Likewise.
1291         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
1292         of `remove_char_attribute'.
1293         (Fdefine_char): Return character.
1294         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
1295         and `Vcharacter_name_table'.
1296         (complex_vars_of_mule_charset): Likewise
1297         `Vchar_attribute_hash_table'.
1298
1299 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1300
1301         * character.h (CHARC_CHARSET): New macro.
1302         (CHARC_CHARSET_ID): New macro.
1303         (CHARC_CODE_POINT): New macro.
1304         (CHARC_COLUMNS): New macro.
1305         (CHARC_TO_CHAR): New inline function.
1306         (CHARC_EQ): New inline function.
1307         (CHARC_ASCII_EQ): New inline function.
1308         (CHARC_IS_SPACE): New inline function.
1309         (ASCII_TO_CHARC): New inline function.
1310
1311         * char-ucs.h (encode_char_2): Deleted.
1312         (ENCODE_CHAR): Use `encode_char_1' again.
1313         (breakup_char_1): Likewise.
1314         (CHAR_TO_CHARC): New inline function.
1315
1316         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
1317
1318 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1319
1320         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
1321         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
1322         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
1323         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
1324         (create_string_text_block): Use `CHARC_ASCII_EQ' and
1325         `CHARC_IS_SPACE'.
1326         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
1327
1328         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
1329         `CHARC_CODE_POINT'.
1330         (x_output_display_block): Use `CHARC_CHARSET' and
1331         `CHARC_ASCII_EQ'.
1332
1333         * redisplay-tty.c (tty_output_display_block): Use
1334         `CHARC_ASCII_EQ'.
1335         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
1336
1337         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
1338
1339         * insdel.c (find_charsets_in_charc_string): Use
1340         `CHARC_CHARSET_ID'.
1341         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
1342         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
1343         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
1344         (convert_charc_string_into_malloced_string): Likewise.
1345
1346 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1347
1348         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
1349         instead of <Emchar_dynarr *> for buf; use
1350         `convert_bufbyte_string_into_charc_dynarr' instead of
1351         `convert_bufbyte_string_into_emchar_dynarr'; use
1352         `find_charsets_in_charc_string' instead of
1353         `find_charsets_in_emchar_string'.
1354
1355         * redisplay.h:
1356         - Include "character.h".
1357         (struct rune): New member `cglyph'; delete member `chr'.
1358
1359         * redisplay.c (redisplay_text_width_charc_string): New function;
1360         delete `redisplay_text_width_emchar_string'.
1361         (rtw_charc_dynarr): New variable; renamed from
1362         `rtw_emchar_dynarr'.
1363         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
1364         `rtw_emchar_dynarr'; use
1365         `convert_bufbyte_string_into_charc_dynarr' instead of
1366         `convert_bufbyte_string_into_emchar_dynarr'; use
1367         `redisplay_text_width_charc_string' instead of
1368         `redisplay_text_width_emchar_string'.
1369         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
1370         instead of `rtw_emchar_dynarr'; use
1371         `convert_bufbyte_string_into_charc_dynarr' instead of
1372         `convert_bufbyte_string_into_emchar_dynarr'.
1373         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
1374         `redisplay_text_width_charc_string' instead of
1375         `redisplay_text_width_emchar_string'.
1376         (create_text_block): Modify for <struct rune> change.
1377         (generate_formatted_string_db): Likewise.
1378         (create_string_text_block): Likewise.
1379         (pixel_to_glyph_translation): Likewise.
1380
1381         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
1382         instead of <const Emchar *>.
1383         (x_text_width): Likewise.
1384         (x_output_display_block): Use <Charc_dynarr *> instead
1385         <Emchar_dynarr *>; modify for <structure rune> change.
1386         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
1387         *>.
1388
1389         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
1390         <const Emchar *>; use `charc_string_displayed_columns' instead of
1391         `emchar_string_displayed_columns'.
1392         (tty_output_display_block): Use <Charc_dynarr *> instead of
1393         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
1394         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
1395         (tty_output_charc_dynarr_dynarr): New variable; renamed from
1396         `tty_output_emchar_dynarr_dynarr'.
1397         (tty_output_charc_dynarr): New function; delete
1398         `tty_output_charc_dynarr'.
1399
1400         * redisplay-output.c (compare_runes): Modify for `struct rune'.
1401         (redisplay_output_layout): Use <Charc_dynarr *> instead of
1402         <Emchar_dynarr *> for buf; use
1403         `convert_bufbyte_string_into_charc_dynarr' instead of
1404         `convert_bufbyte_string_into_emchar_dynarr'.
1405
1406         * frame.c (title_string_charc_dynarr): New variable; renamed from
1407         `title_string_emchar_dynarr'.
1408         (generate_title_string): Use `title_string_charc_dynarr' instead
1409         of `title_string_emchar_dynarr'; use
1410         `convert_charc_string_into_malloced_string' instead of
1411         `convert_emchar_string_into_malloced_string'.
1412         (init_frame): Use `title_string_charc_dynarr' instead of
1413         `title_string_emchar_dynarr'.
1414
1415         * console.h:
1416         - Include "character.h".
1417         (struct console_methods): Use <const Charc *> instead of <const
1418         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
1419         <Emchar_dynarr *> in output_string_method.
1420
1421         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
1422         <Emchar_dynarr *>.
1423
1424         * console-stream.c (stream_text_width): Use <const Charc *>
1425         instead of <const Emchar *>.
1426
1427         * character.h (Charc_dynarr): New type.
1428
1429         * char-ucs.h (structure Charc): New structure; define new type
1430         `Charc'.
1431
1432         * char-lb.h (DECODE_CHAR): New inline function.
1433         (encode_char_1): New inline function.
1434         (ENCODE_CHAR): New macro.
1435         (structure Charc): New structure; define new type `Charc'.
1436
1437         * char-1byte.h (Vcharset_control_1): New macro.
1438         (Vcharset_latin_iso8859_1): New macro.
1439         (DECODE_CHAR): New inline function.
1440         (encode_char_1): New inline function.
1441         (ENCODE_CHAR): New macro.
1442         (structure Charc): New structure; define new type `Charc'.
1443
1444         * insdel.c (find_charsets_in_charc_string): New function; delete
1445         `find_charsets_in_emchar_string'.
1446         (charc_string_displayed_columns): New function; delete
1447         `emchar_string_displayed_columns'.
1448         (convert_bufbyte_string_into_charc_dynarr): New function; delete
1449         `convert_bufbyte_string_into_emchar_dynarr'.
1450         (convert_charc_string_into_bufbyte_dynarr): New function; delete
1451         `convert_charc_string_into_bufbyte_dynarr'.
1452         (convert_charc_string_into_malloced_string): New function; delete
1453         `convert_charc_string_into_malloced_string'.
1454
1455         * buffer.h (find_charsets_in_charc_string): New prototype; delete
1456         `find_charsets_in_emchar_string'.
1457         (charc_string_displayed_columns): New prototype; delete
1458         `emchar_string_displayed_columns'.
1459         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
1460         `convert_charc_string_into_bufbyte_dynarr'.
1461         (convert_charc_string_into_malloced_string): New prototype; delete
1462         `convert_charc_string_into_malloced_string'.
1463
1464 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1465
1466         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
1467
1468 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1469
1470         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
1471
1472         * char-ucs.h: Use <short> for <Charset_ID>.
1473
1474         * mule-charset.h, char-1byte.h: Use <unsigned char> for
1475         <Charset_ID>.
1476
1477 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1478
1479         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1480         to 0.16.
1481
1482 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1483
1484         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
1485         variable.
1486         (Qmorohashi_daikanwa): New variable.
1487         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
1488         for `morohashi-daikanwa' attribute.
1489         (Fget_char_attribute): Likewise.
1490         (Fput_char_attribute): Likewise.
1491         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
1492         has the same value of `ideograph-daikanwa'.
1493         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
1494         (vars_of_mule_charset): Setup
1495         `Vcharacter_morohashi_daikanwa_table'.
1496
1497 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1498
1499         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
1500         attributes.
1501         (add_charset_to_list_mapper): Add `key' instead of
1502         `XCHARSET_NAME (value)' to return aliases.
1503
1504 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1505
1506         * mule-charset.c (Vcharacter_ideographic_radical_table): New
1507         variable.
1508         (Vcharacter_ideographic_strokes_table): New variable.
1509         (Qideographic_radical): New variable.
1510         (Qideographic_strokes): New variable.
1511         (Fchar_attribute_alist): Use
1512         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
1513         attribute; use `Vcharacter_ideographic_strokes_table' for
1514         `ideographic-strokes' attribute.
1515         (Fget_char_attribute): Likewise.
1516         (Fput_char_attribute): Likewise.
1517         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
1518         `ideographic-strokes'.
1519         (vars_of_mule_charset): Setup
1520         `Vcharacter_ideographic_radical_table' and
1521         `Vcharacter_ideographic_strokes_table'.
1522
1523 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1524
1525         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
1526         (Qtotal_strokes): New variable.
1527         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
1528         `total-strokes' attribute.
1529         (Fget_char_attribute): Likewise.
1530         (Fput_char_attribute): Likewise.
1531         (syms_of_mule_charset): Add new symbol `total-strokes'.
1532         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
1533
1534 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1535
1536         * mule-charset.c (Vcharacter_decomposition_table): New variable.
1537         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
1538         are found.
1539         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
1540         `->decomposition' attribute.
1541         (Fput_char_attribute): Likewise.
1542         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
1543
1544 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1545
1546         * mule-charset.c (decoding_table_check_elements): New function.
1547         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
1548
1549 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1550
1551         * mule-charset.c (Fset_charset_mapping_table): Use
1552         `put_char_ccs_code_point'.
1553
1554 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1555
1556         * mule-charset.c (decoding_table_put_char): New inline function.
1557         (put_char_ccs_code_point): Use `decoding_table_put_char'.
1558
1559 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1560
1561         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
1562         (XCHARSET_BYTE_SIZE): New macro.
1563         (decoding_table_remove_char): New inline function.
1564         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
1565         `decoding_table_remove_char'.
1566         (remove_char_ccs): Use `decoding_table_remove_char'.
1567         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
1568
1569 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1570
1571         * mule-charset.c (Vcharacter_name_table): New variable.
1572         (Qname): New variable.
1573         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
1574         attribute.
1575         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
1576         `Vcharacter_name_table' for `name' attribute.
1577         (Fremove_char_attribute): Use function `remove_char_ccs'.
1578         (put_char_ccs_code_point): New function.
1579         (remove_char_ccs): New function.
1580         (syms_of_mule_charset): Add new symbol `name'.
1581         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
1582
1583 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1584
1585         * mule-charset.c (make_byte_table): Add new argument `older'.
1586         (make_char_id_table): Likewise.
1587         (copy_char_id_table): Comment out because it is not used.
1588         (put_char_id_table): Modify for `make_byte_table'.
1589         (Fput_char_attribute): Make encoding_table as older object;
1590         inherit older bit of `Vcharacter_composition_table'.
1591         (mark_charset): Don't mark `cs->encoding_table'.
1592         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
1593         normal object; make `Vcharacter_composition_table' as an older
1594         object; delete staticpro for `Vcharacter_composition_table'; make
1595         `Vcharacter_variant_table' as a normal object.
1596
1597         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
1598         (mark_object): Don't check older object in UTF-2000.
1599
1600         * lrecord.h (struct lrecord_header): Add new member `older' in
1601         UTF-2000.
1602         (set_lheader_implementation): Setup `SLI_header->older' in
1603         UTF-2000.
1604         (set_lheader_older_implementation): New macro in UTF-2000.
1605         (OLDER_RECORD_P): New macro in UTF-2000.
1606         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
1607         (alloc_older_lcrecord): New prototype in UTF-2000.
1608         (alloc_older_lcrecord_type): New macro in UTF-2000.
1609
1610 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1611
1612         * mule-charset.c (byte_table_description): Use
1613         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
1614         (char_id_table_description): Delete bogus `, 1'.
1615         (Fget_char_attribute): Refer encoding_table of each coded-charset
1616         to get value of coded-charset attribute of a character.
1617         (Fput_char_attribute): Use `make_older_vector' instead of
1618         `make_vector'; use encoding_table of each coded-charset to store
1619         value of coded-charset attribute of a character.
1620         (Fremove_char_attribute): Use encoding_table of each coded-charset
1621         to store value of coded-charset attribute of a character.
1622         (mark_charset): Mark `cs->encoding_table'; don't mark
1623         `cs->decoding_table'.
1624         (charset_description): Add description of new member
1625         `encoding_table'.
1626         (make_charset): Initialize `encoding_table'.
1627
1628         * char-ucs.h (struct Lisp_Charset): Add new member
1629         `encoding_table'.
1630         (CHARSET_ENCODING_TABLE): New macro.
1631         (XCHARSET_ENCODING_TABLE): New macro.
1632         (charset_code_point): New implementation.
1633         (encode_char_1): Likewise.
1634
1635         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
1636         (disksave_object_finalization_1): Call finalizers of
1637         `all_older_lcrecords' in UTF-2000.
1638         (make_older_vector): New function in UTF-2000.
1639         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
1640         UTF-2000.
1641
1642         * lisp.h (make_older_vector): New prototype in UTF-2000.
1643
1644 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1645
1646         * lrecord.h (enum lrecord_type): Rename
1647         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
1648
1649         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
1650         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
1651         `get_char_code_table'.
1652
1653         * mule-charset.c (mark_char_id_table): Renamed from
1654         `mark_char_code_table'.
1655         (char_id_table_equal): Renamed from `char_code_table_equal'.
1656         (char_id_table_hash): Renamed from `char_code_table_hash'.
1657         (make_char_id_table): Renamed from `make_char_code_table'.
1658         (copy_char_id_table): Renamed from `copy_char_code_table'.
1659         (get_char_id_table): Renamed from `get_char_code_table'.
1660         (put_char_id_table): Renamed from `put_char_code_table'.
1661         (to_char_id): Renamed from `to_char_code'.
1662
1663         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
1664         `Lisp_Char_Code_Table'.
1665         (char_id_table): Renamed from `char_code_table'.
1666         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
1667         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
1668         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
1669         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
1670         (get_char_id_table): Renamed from `get_char_code_table'.
1671
1672 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1673
1674         * lrecord.h (enum lrecord_type): Rename
1675         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
1676
1677         * mule-charset.c (mark_byte_table): Renamed from
1678         `mark_char_byte_table'.
1679         (byte_table_equal): Renamed from `char_byte_table_equal'.
1680         (byte_table_hash): Renamed from `byte_table_hash'.
1681         (make_byte_table): Renamed from `make_byte_table'.
1682         (copy_byte_table): Renamed from `copy_char_byte_table'.
1683
1684         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
1685         `Lisp_Char_Byte_Table'.
1686         (byte_table): Renamed from `char_byte_table'.
1687         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
1688         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
1689         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
1690         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
1691
1692 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1693
1694         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
1695         (dfc_convert_to_internal_format): Likewise.
1696         
1697         * text-coding.c (Fcoding_system_canonical_name_p): New function.
1698         * text-coding.c (Fcoding_system_alias_p): New function.
1699         * text-coding.c (Fcoding_system_aliasee): New function.
1700         * text-coding.c (append_suffix_to_symbol): New function.
1701         * text-coding.c (dangling_coding_system_alias_p): New function.
1702         * text-coding.c (Ffind_coding_system):
1703         * text-coding.c (Fcopy_coding_system):
1704         * text-coding.c (encode_coding_no_conversion):
1705         * text-coding.c (syms_of_file_coding):
1706         * text-coding.c (vars_of_file_coding):
1707         Rewrite coding system alias code.
1708         Allow nested aliases, like symbolic links.
1709         Allow redefinition of coding system aliases.
1710         Prevent existence of dangling coding system aliases.
1711         Eliminate convert_to_external_format.
1712         Eliminate convert_to_internal_format.
1713         
1714         * text-coding.c: Change enum eol_type to eol_type_t.
1715
1716 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1717
1718         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
1719         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
1720
1721         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
1722         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
1723
1724 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1725
1726         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
1727         `ideograph-daikanwa'.
1728
1729         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
1730         (Vcharset_ucs_bmp): Likewise.
1731         (Vcharset_mojikyo): Add new extern variable definition.
1732         (Vcharset_latin_iso8859_2): Deleted because it is not used.
1733         (Vcharset_latin_iso8859_3): Likewise.
1734         (Vcharset_latin_iso8859_4): Likewise.
1735         (Vcharset_latin_iso8859_9): Likewise.
1736         (Vcharset_latin_viscii_lower): Likewise.
1737         (Vcharset_latin_viscii_upper): Likewise.
1738         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
1739         `mojikyo' code-point is used to decode.
1740         (encode_char_2): New function [to convert `mojikyo' code-point to
1741         Mojikyo font encoding].
1742         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
1743         (breakup_char_1): Likewise.
1744         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
1745
1746 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1747
1748         * text-coding.c (Fmake_coding_system): Add document about
1749         `disable-composition' property.
1750
1751 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1752
1753         * text-coding.c (Qdisable_composition): New variable; delete
1754         `Qcomposite'.
1755         (Fmake_coding_system): Add new property `disable-composite';
1756         delete property `composite'.
1757         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
1758         instead of `!CODING_SYSTEM_COMPOSITE'.
1759         (syms_of_file_coding): Add new symbol `disable-composition';
1760         delete symbol `composite'.
1761
1762         * file-coding.h (struct Lisp_Coding_System): Add
1763         `disable_composition'; delete `enable_composition'.
1764         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
1765         `CODING_SYSTEM_COMPOSITE'.
1766         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
1767         `XCODING_SYSTEM_COMPOSITE'.
1768
1769 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1770
1771         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1772         to 0.15.
1773
1774 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1775
1776         * text-coding.c (Qcomposite): New variable.
1777         (Fmake_coding_system): Add new property `composite'.
1778         (struct decoding_stream): Add `combined_char_count',
1779         `combined_chars' and `combining_table' in UTF-2000.
1780         (COMPOSE_FLUSH_CHARS): New macro.
1781         (COMPOSE_ADD_CHAR): New macro.
1782         (reset_decoding_stream): Reset `str->combined_char_count' and
1783         `str->combining_table' in UTF-2000.
1784         (decode_coding_iso2022): Modify for character-decomposition.
1785         (syms_of_file_coding): Add new symbol `composite'.
1786
1787 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1788
1789         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
1790         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
1791         of `Vcharacter_composition_table' if `->decomposition' property
1792         has only 1 element.
1793         (Qlatin_tcvn5712): New variable.
1794         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
1795         (complex_vars_of_mule_charset): Add new coded-charset
1796         `latin-tcvn5712'.
1797
1798         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
1799
1800 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1801
1802         * file-coding.h (struct Lisp_Coding_System): Add
1803         `enable_composition'.
1804         (CODING_SYSTEM_COMPOSITE): New macro.
1805         (XCODING_SYSTEM_COMPOSITE): New macro.
1806
1807 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
1808
1809         * mule-canna.c (c2mu): Fix problem with UTF-2000.
1810
1811 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
1812
1813         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
1814         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
1815
1816 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
1817
1818         * mule-charset.c (Vcharset_mojikyo): New variable.
1819         (Fdefine_char): Don't use coded-charset which does not have
1820         non-builtin character range to allocate character-id.
1821         (Qmojikyo): New variable.
1822         (syms_of_mule_charset): Add new symbol `mojikyo'.
1823         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
1824
1825         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
1826         (LEADING_BYTE_MOJIKYO): New macro.
1827         (MIN_CHAR_MOJIKYO): New macro.
1828         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
1829         (MAX_CHAR_MOJIKYO): New macro.
1830
1831 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
1832
1833         * mule-charset.c (remove_char_attribute): Fixed.
1834
1835 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
1836
1837         * mule-charset.c (remove_char_attribute): New function.
1838         (Fremove_char_attribute): New function.
1839         (encode_builtin_char_1): Comment out builtin-support for
1840         greek-iso8859-7 and cyrillic-iso8859-5.
1841         (Fdecode_char): Check `code' is an integer.
1842         (syms_of_mule_charset): Add `remove-char-attribute'.
1843         (MIN_CHAR_GREEK): Deleted.
1844         (MAX_CHAR_GREEK): Likewise.
1845         (MIN_CHAR_CYRILLIC): Likewise.
1846         (MAX_CHAR_CYRILLIC): Likewise.
1847         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
1848         MAX_CHAR_GREEK for `greek-iso8859-7'.
1849
1850         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
1851         (MAX_CHAR_GREEK): Likewise.
1852         (MIN_CHAR_CYRILLIC): Likewise.
1853         (MAX_CHAR_CYRILLIC): Likewise.
1854
1855 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
1856
1857         * mule-charset.c (Fdefine_char): Fix problem when new code-point
1858         format is used without `ucs' property.
1859         (Fdecode_char): Fix problem with GR representation.
1860         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
1861         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
1862
1863 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
1864
1865         * mule-charset.c (make_builtin_char): New function.
1866         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
1867         (Fset_charset_mapping_table): Modify for new representation of
1868         code-point.
1869         (Fdecode_char): New function.
1870         (syms_of_mule_charset): Add new builtin function `decode-char' in
1871         UTF-2000.
1872
1873         * char-ucs.h (make_builtin_char): New prototype.
1874         (DECODE_CHAR): New inline function.
1875         (MAKE_CHAR): Use `DECODE_CHAR'.
1876
1877 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
1878
1879         * text-coding.c (parse_charset_conversion_specs): Use
1880         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
1881         `XCHARSET_TYPE'.
1882         (iso2022_designate): Likewise.
1883
1884         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
1885         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
1886
1887         * mule-charset.c (Vcharset_ucs): New variable.
1888         (print_charset): Change design; use `CHARSET_CHARS' and
1889         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
1890         (make_charset): Change signature to specify `chars' and
1891         `dimension' instead of `type'.
1892         (range_charset_code_point): Modify for 256^n-set.
1893         (encode_builtin_char_1): Encode as `ucs' in default.
1894         (Fmake_charset): Modify for `make_charset'.
1895         (Fmake_reverse_direction_charset): Likewise.
1896         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
1897         UTF-2000.
1898         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
1899         for `make_charset'.
1900
1901         * char-ucs.h (Vcharset_ucs): New variable.
1902         (LEADING_BYTE_UCS): New macro.
1903         (struct Lisp_Charset): Delete `type'; change type of `dimension'
1904         and `chars' to `unsigned short' from `unsigned int'.
1905         (CHARSET_TYPE): Deleted.
1906         (XCHARSET_TYPE): Deleted.
1907
1908 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
1909
1910         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
1911
1912         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
1913         (ENCODE_CHAR): New macro.
1914
1915 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
1916
1917         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1918         to 0.14 (Kawachi-Katakami).
1919
1920 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
1921
1922         * text-coding.c (char_encode_shift_jis): Modify for
1923         `charset_code_point'.
1924         (char_encode_iso2022): Likewise.
1925
1926         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
1927         (integer) instead of list of <Lisp_Object>s (integers) as the
1928         format of code-point of a coded-charset.
1929         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
1930         (encode_builtin_char_1): New function; delete
1931         `split_builtin_char'.
1932         (charset_code_point): Return <int> instead of <Lisp_Object>.
1933         (Fsplit_char): Don't use `SPLIT_CHAR'.
1934
1935         * char-ucs.h (encode_builtin_char_1): New prototype; delete
1936         prototype for `split_builtin_char'.
1937         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
1938         (charset_code_point): Likewise.
1939         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
1940         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
1941
1942 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
1943
1944         * mule-charset.c (complex_vars_of_mule_charset): Don't define
1945         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
1946
1947 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
1948
1949         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
1950
1951         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
1952         (MAX_CHAR_OBS_94x94): Deleted.
1953
1954 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
1955
1956         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
1957
1958         * char-ucs.h (MAX_CHAR_BMP): New macro.
1959
1960 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
1961
1962         * text-coding.c: Sync with r21-2-24.
1963
1964 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
1965
1966         * file-coding.c: Modify for UTF-2000.
1967
1968 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
1969
1970         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1971         to 0.13 (Takaida).
1972
1973 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
1974
1975         * mule-charset.c (split_builtin_char): Delete builtin support for
1976         `katakana-jisx0201'.
1977         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
1978         BMP area in builtin representation.
1979
1980         * char-ucs.h (MAKE_CHAR): Delete builtin support for
1981         `Vcharset_katakana_jisx0201'.
1982
1983 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
1984
1985         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
1986         (Qisolated): New variable.
1987         (Qinitial): New variable.
1988         (Qmedial): New variable.
1989         (Qfinal): New variable.
1990         (Qvertical): New variable.
1991         (Qsmall): New variable.
1992         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
1993         `Qvertical' and `Qsmall'.
1994         (Qmojikyo_pj_[1 .. 21]): New variable.
1995         (syms_of_mule_charset): Add new symbols `isolated', `initial',
1996         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
1997         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
1998         .. 21]'.
1999
2000 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
2001
2002         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
2003         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
2004         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
2005
2006 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2007
2008         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
2009         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
2010         BMP.
2011         (Qjapanese_jisx0208_1990): New variable.
2012         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
2013         (complex_vars_of_mule_charset): Add new coded-charset
2014         `japanese-jisx0208-1990'.
2015
2016         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
2017         (MIN_CHAR_JIS_X0208_1990): New macro.
2018         (MAX_CHAR_JIS_X0208_1990): New macro.
2019
2020 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2021
2022         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
2023         coded-charset is not found.
2024
2025 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2026
2027         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
2028         (Fdefine_char): Use `Fmake_char'.
2029
2030 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2031
2032         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
2033         (Vcharset_hiragana_jisx0208): Deleted.
2034         (Vcharset_katakana_jisx0208): Deleted.
2035         (Qideograph_daikanwa): New variable.
2036         (Qhiragana_jisx0208): Deleted.
2037         (Qkatakana_jisx0208): Deleted.
2038         (split_builtin_char): Split `ideograph-daikanwa'.
2039         (Fsplit_char): New implementation for UTF-2000.
2040         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
2041         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
2042         (complex_vars_of_mule_charset): Add new coded-charset
2043         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
2044         `katakana-jisx0208'.
2045
2046         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
2047         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
2048         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
2049         (MIN_CHAR_DAIKANWA): New macro.
2050         (MAX_CHAR_DAIKANWA): New macro.
2051
2052 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2053
2054         * data.c (Fstring_to_number): Don't recognize floating point if
2055         base is not 10.
2056
2057 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2058
2059         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
2060
2061 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2062
2063         * mule-charset.c (Qsquare): New variable.
2064         (to_char_code): Add `Qsquare'.
2065         (syms_of_mule_charset): Add new symbol `square'.
2066
2067 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2068
2069         * mule-charset.c (Qcircle): New variable.
2070         (to_char_code): Add `Qcircle'.
2071         (syms_of_mule_charset): Add new symbol `circle'.
2072
2073 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2074
2075         * mule-charset.c (Qfont): New variable.
2076         (to_char_code): Add `Qfont'.
2077         (syms_of_mule_charset): Add new symbol `font'.
2078
2079 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2080
2081         * mule-charset.c (Qsub): New variable.
2082         (to_char_code): Add `Qsub'.
2083         (syms_of_mule_charset): Add new symbol `sub'.
2084
2085 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2086
2087         * mule-charset.c (Fput_char_attribute): Convert each element of
2088         VALUE to GL position if ATTRIBUTE is a GR-set,
2089
2090 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2091
2092         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
2093         coded-charset is a GR-set.
2094
2095 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2096
2097         * mule-charset.c (Fput_char_attribute): Check each element of
2098         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
2099
2100 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2101
2102         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
2103         UTF-2000.
2104         (Qethiopic_ucs): New variable in UTF-2000.
2105         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
2106         (complex_vars_of_mule_charset): Add new coded-charset
2107         `ethiopic-ucs' in UTF-2000.
2108
2109         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
2110         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2111         9)'.
2112         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2113         10)'.
2114         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
2115
2116 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
2117
2118         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
2119         `ascii'.
2120
2121 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2122
2123         * mule-charset.c (Vcharacter_variant_table): New variable.
2124         (Q_ucs): New variable.
2125         (Fchar_variants): New function.
2126         (Fput_char_attribute): Register `->ucs' value to
2127         `Vcharacter_variant_table'.
2128         (syms_of_mule_charset): Add new function `char-variants' and new
2129         symbol `->ucs'.
2130         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
2131
2132 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2133
2134         * mule-charset.c (get_char_code_table): Allow negative character
2135         code.
2136         (put_char_code_table): Likewise.
2137         (Vcharacter_composition_table): New variable.
2138         (Q_decomposition): New variable.
2139         (Qwide): New variable.
2140         (Qnarrow): New variable.
2141         (Qcompat): New variable.
2142         (QnoBreak): New variable.
2143         (Qsuper): New variable.
2144         (Qfraction): New variable.
2145         (to_char_code): New function.
2146         (Fget_composite_char): New function.
2147         (Fput_char_attribute): Register `->decomposition' value to
2148         `Vcharacter_composition_table'.
2149         (syms_of_mule_charset): Add new function `get-composite-char', new
2150         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
2151         `super' and `fraction'.
2152         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
2153
2154 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2155
2156         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
2157         character; copy the return value.
2158
2159 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2160
2161         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
2162
2163         * mule-charset.c (range_charset_code_point): Must use make_int.
2164         (split_builtin_char): New function.
2165
2166 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2167
2168         * mule-charset.c (char_byte_table): Change name from
2169         "char-code-table" to "char-byte-table".
2170         (mark_char_code_table): New function.
2171         (char_code_table_equal): New function.
2172         (char_code_table_hash): New function.
2173         (char_code_table_description): New constant.
2174         (char_code_table): New type.
2175         (make_char_code_table): New function.
2176         (copy_char_code_table): New function.
2177         (get_char_code_table): Modify for `char_code_table' type.
2178         (put_char_code_table): Likewise.
2179         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
2180         (Kashiwara).
2181
2182         * char-ucs.h (char_code_table): New type.
2183         (XCHAR_CODE_TABLE): New macro.
2184         (XSETCHAR_CODE_TABLE): New macro.
2185         (CHAR_CODE_TABLE_P): New macro.
2186         (GC_CHAR_CODE_TABLE_P): New macro.
2187         (struct Lisp_Char_Code_Table): New structure.
2188
2189 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2190
2191         * mule-charset.c (Fmake_charset): Setup byte_offset for
2192         {94|96}^n-set.
2193
2194 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2195
2196         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
2197         character.
2198
2199 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2200
2201         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
2202         is found.
2203
2204 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2205
2206         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
2207         charset, it is regarded as a charset.
2208         (put_char_attribute): New function in UTF-2000.
2209         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
2210         charset, mapping-table of the charset is modified.
2211         (Fdefine_char): New function in UTF-2000.
2212         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
2213         `Fput_char_attribute'.
2214         (syms_of_mule_charset): Add new function `define-char' and new
2215         symbol `ucs' in UTF-2000.
2216         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
2217
2218 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2219
2220         * mule-charset.c (Fcharset_name): Define `byte_offset' in
2221         non-UTF-2000 configuration.
2222
2223 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2224
2225         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
2226         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
2227
2228         * mule-charset.c (mark_charset): `cs->encoding_table' has been
2229         deleted.
2230         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
2231         (Fset_charset_mapping_table): Likewise.
2232
2233         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
2234         (CHARSET_ENCODING_TABLE): Delete.
2235         (XCHARSET_ENCODING_TABLE): Delete.
2236         (charset_code_point): New interface.
2237
2238 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2239
2240         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
2241         instead of `charset_get_byte1' and `charset_get_byte2'.
2242
2243         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
2244         (charset_get_byte2): Deleted.
2245
2246 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2247
2248         * char-ucs.h (SPLIT_CHAR): New inline function.
2249         (breakup_char_1): Use `SPLIT_CHAR'.
2250
2251         * mule-charset.c (range_charset_code_point): New function.
2252         (charset_code_point): New function.
2253
2254         * char-ucs.h (range_charset_code_point): New interface.
2255         (breakup_char_1): Use `range_charset_code_point'.
2256
2257 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2258
2259         * mule-charset.c (Fmake_charset): Delete unused local variable
2260         `code_offset'.
2261
2262         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
2263         (breakup_char_1): Find a charset and code-point in
2264         `Vcharacter_attribute_table'.
2265
2266 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2267
2268         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2269         to 0.10 (Yao).
2270
2271 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
2272
2273         * mule-charset.c (Vcharacter_attribute_table): New variable.
2274         (Fchar_attribute_alist): New function.
2275         (Fget_char_attribute): New function.
2276         (Fput_char_attribute): New function.
2277         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
2278         too.
2279         (syms_of_mule_charset): Add new function `char-attribute-alist',
2280         `get-char-attribute' and `put-char-attribute'.
2281         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
2282
2283 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
2284
2285         * mule-charset.c (Fmake_charset): Just use
2286         `get_unallocated_leading_byte'.
2287
2288         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
2289         sets; don't use final-byte based number for private sets.
2290
2291 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2292
2293         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
2294         integer.
2295
2296 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2297
2298         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2299         to 0.9.
2300
2301 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2302
2303         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
2304         of `CHAR_LEADING_BYTE' in UTF-2000.
2305
2306         * insdel.c (find_charsets_in_bufbyte_string): Use
2307         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2308         (find_charsets_in_emchar_string): Likewise.
2309
2310         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
2311         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2312
2313         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
2314         (CHAR_CHARSET_ID): New macro.
2315
2316 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2317
2318         * chartab.c (get_char_table): Don't use type `Charset_ID' for
2319         charset-id - MIN_LEADING_BYTE.
2320         (put_char_table): Likewise.
2321
2322 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2323
2324         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
2325         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
2326         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
2327         (CHARSET_ID_OFFSET): New macro.
2328         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
2329         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
2330         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
2331         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2332         4).
2333         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2334         5).
2335         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
2336         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
2337         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
2338         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
2339         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
2340
2341 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2342
2343         * mule-charset.c (next_allocated_leading_byte): New variable in
2344         UTF-2000.
2345         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
2346         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
2347         (get_unallocated_leading_byte): Simply use
2348         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
2349         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
2350         UTF-2000.
2351
2352         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
2353         (MAX_LEADING_BYTE_PRIVATE): New macro.
2354         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
2355         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
2356
2357 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2358
2359         * mule-charset.c (Fmake_charset): Allocate final-byte based
2360         charset-id for 94-set, 96-set and 94x94-set.
2361
2362 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2363
2364         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
2365         ambiguous `else'.
2366         (Fmake_charset): Likewise.
2367         (complex_vars_of_mule_charset): Modify the font registry of
2368         `ucs-bmp' not to match `Ethiopic-Unicode'.
2369
2370 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2371
2372         * mule-charset.c (complex_vars_of_mule_charset): Add font
2373         registory of `ucs-bmp'.
2374
2375 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2376
2377         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
2378         coded-charsets in `default-coded-charset-priority-list' when
2379         breaking up a character.
2380
2381         * mule-charset.c (Vcharset_latin_viscii): New variable.
2382         (Qlatin_viscii): New variable.
2383         (make_charset): Don't use `decoding_table'.
2384         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
2385         byte_offset.
2386         (Fset_charset_mapping_table): New implementation.
2387         (syms_of_mule_charset): Add new symbol `latin-viscii'.
2388         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
2389         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
2390         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
2391         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
2392         charset `latin_viscii'.
2393
2394         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
2395         (CHARSET_TYPE_94X94): Change to 1 from 2.
2396         (CHARSET_TYPE_96): Change to 2 from 1.
2397         (CHARSET_TYPE_128): New macro.
2398         (CHARSET_TYPE_128X128): Change to 5 from 4.
2399         (CHARSET_TYPE_256): New macro.
2400         (CHARSET_TYPE_256X256): Change to 7 from 5.
2401         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
2402
2403 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2404
2405         * text-coding.c (char_encode_shift_jis): Refer
2406         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
2407         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
2408
2409         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
2410         (char_byte_table_equal): New function in UTF-2000.
2411         (char_byte_table_hash): New function in UTF-2000.
2412         (char_byte_table_description): New constant in UTF-2000.
2413         (char_byte_table): New type in UTF-2000.
2414         (make_char_byte_table): New function in UTF-2000.
2415         (copy_char_byte_table): New function in UTF-2000.
2416         (make_char_code_table): New macro in UTF-2000.
2417         (get_char_code_table): New function in UTF-2000.
2418         (put_char_code_table): New function in UTF-2000.
2419         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2420         (charset_description): Add setting in UTF-2000.
2421         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
2422         `CHARSET_TO_BYTE1_TABLE(cs)'.
2423         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
2424         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
2425         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
2426         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
2427         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
2428         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
2429         `CHARSET_TO_BYTE2_TABLE(cs)'.
2430
2431         * char-ucs.h (char_byte_table): New type.
2432         (XCHAR_BYTE_TABLE): New macro.
2433         (XSETCHAR_BYTE_TABLE): New macro.
2434         (CHAR_BYTE_TABLE_P): New macro.
2435         (GC_CHAR_BYTE_TABLE_P): New macro.
2436         (struct Lisp_Char_Byte_Table): New structure.
2437         (get_char_code_table): New interface.
2438         (Emchar_to_byte_table): Deleted.
2439         (get_byte_from_character_table): Deleted.
2440         (struct Lisp_Charset): Add `encoding_table'; delete
2441         `to_byte1_table' and `to_byte2_table'.
2442         (CHARSET_ENCODING_TABLE): New macro.
2443         (CHARSET_TO_BYTE1_TABLE): Deleted.
2444         (CHARSET_TO_BYTE2_TABLE): Deleted.
2445         (XCHARSET_ENCODING_TABLE): New macro.
2446         (XCHARSET_TO_BYTE1_TABLE): Deleted.
2447         (XCHARSET_TO_BYTE2_TABLE): Deleted.
2448
2449 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2450
2451         * mule-charset.c (syms_of_mule_charset): Delete charset alias
2452         `vietnamese-viscii-*'.
2453
2454 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2455
2456         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
2457         (Qvietnamese_viscii_upper): New variable.
2458         (Fdefine_charset_alias): New function.
2459         (syms_of_mule_charset): Add new function `define-charset-alias'.
2460         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
2461         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
2462         `latin-viscii-*'.
2463
2464 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
2465
2466         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
2467         (MAX_CHAR_OBS_94x94): New macro.
2468         (breakup_char_1): Support obsolete XEmacs-UCS private code space
2469         for 94x94 sets.
2470
2471         * mule-charset.c (put_byte_from_character_table): Change unit size
2472         from 128 to 256.
2473         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
2474         not defined.
2475         (Fmake_reverse_direction_charset): Modify dummy argument of
2476         `make_charset' for non-UTF-2000 environment.
2477
2478 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2479
2480         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
2481
2482         * mule-charset.c (destroy_byte_from_character_table): New macro.
2483         (latin_jisx0201_to_ucs): Deleted.
2484         (latin_iso8859_2_to_ucs): Deleted.
2485         (latin_iso8859_3_to_ucs): Deleted.
2486         (latin_iso8859_4_to_ucs): Deleted.
2487         (latin_iso8859_9_to_ucs): Deleted.
2488         (latin_viscii_lower_to_ucs): Deleted.
2489         (latin_viscii_upper_to_ucs): Deleted.
2490         (mark_charset): Mark `cs->decoding_table'.
2491         (Fcharset_mapping_table): Fix DOC-string.
2492         (Fset_charset_mapping_table): New function.
2493         (syms_of_mule_charset): Add nwe function
2494         `set-charset-mapping-table'.
2495         (complex_vars_of_mule_charset): Don't setup and use
2496         `latin_*_to_ucs'.
2497
2498 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2499
2500         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
2501         charset.
2502
2503 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2504
2505         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
2506         (Vcharset_katakana_jisx0208): New variable.
2507         (Qhiragana_jisx0208): New variable.
2508         (Qkatakana_jisx0208): New variable.
2509         (make_charset): Add new argument `byte_offset'.
2510         (charset_get_byte1): Modify for new coded-charset definition; use
2511         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
2512         `XCHARSET_BYTE_OFFSET'.
2513         (Fmake_charset): Modify for `make_charset'.
2514         (Fmake_reverse_direction_charset): Likewise.
2515         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
2516         `katakana-jisx0208'.
2517         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
2518         `.'  in font registry of charset `katakana-jisx0201',
2519         `latin-jisx0201', `vietnamese-viscii-lower' and
2520         `vietnamese-viscii-upper'; modify DOC-string of charset
2521         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
2522         registry of charset `japanese-jisx0208' not to use font for JIS
2523         X0208:1990; add new charset `hiragana-jisx0208' and
2524         `katakana-jisx0208'.
2525
2526         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
2527         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
2528         (struct Lisp_Charset): Add `byte_offset'.
2529         (CHARSET_BYTE_OFFSET): New macro.
2530         (XCHARSET_UCS_MIN): New macro.
2531         (XCHARSET_UCS_MAX): New macro.
2532         (XCHARSET_CODE_OFFSET): New macro.
2533         (XCHARSET_BYTE_OFFSET): New macro.
2534         (MIN_CHAR_HIRAGANA): New macro.
2535         (MAX_CHAR_HIRAGANA): New macro.
2536         (MIN_CHAR_KATAKANA): New macro.
2537         (MAX_CHAR_KATAKANA): New macro.
2538         (MAKE_CHAR): Modify for new coded-charset definition; use
2539         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
2540         `XCHARSET_BYTE_OFFSET'.
2541
2542 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2543
2544         * mule-charset.c (CHAR96): Deleted.
2545         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
2546         <Lisp_Object>.
2547         (latin_iso8859_2_to_ucs): Likewise.
2548         (latin_iso8859_3_to_ucs): Likewise.
2549         (latin_iso8859_4_to_ucs): Likewise.
2550         (latin_iso8859_9_to_ucs): Likewise.
2551         (latin_viscii_lower_to_ucs): Likewise.
2552         (latin_viscii_upper_to_ucs): Likewise.
2553         (latin_tcvn5712_to_ucs): Commented out.
2554         (make_charset): Change type of argument `decoding_table' from
2555         <Emchar*> to <Lisp_Object> [vector of characters].
2556         (Fmake_charset): Modify for `make_charset'.
2557         (Fmake_reverse_direction_charset): Likewise.
2558         (Fcharset_mapping_table): New function in UTF-2000.
2559         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
2560         UTF-2000.
2561         (complex_vars_of_mule_charset): Modify for type change of
2562         `*_to_ucs'; modify for `make_charset'.
2563
2564         * char-ucs.h (struct Lisp_Charset): Change type of
2565         `decoding_table' from <Emchar*> to <Lisp_Object>.
2566         (MAKE_CHAR): Modify for new specification of `decoding_table'.
2567
2568 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
2569
2570         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
2571         error with non-UTF-2000-Mule.
2572
2573 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
2574
2575         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
2576         in lisp again].
2577         (Vcharset_chinese_cns11643_4): Likewise.
2578         (Vcharset_chinese_cns11643_5): Likewise.
2579         (Vcharset_chinese_cns11643_6): Likewise.
2580         (Vcharset_chinese_cns11643_7): Likewise.
2581         (Qchinese_cns11643_3): Likewise.
2582         (Qchinese_cns11643_4): Likewise.
2583         (Qchinese_cns11643_5): Likewise.
2584         (Qchinese_cns11643_6): Likewise.
2585         (Qchinese_cns11643_7): Likewise.
2586         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
2587         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
2588         and `chinese-cns11643-7' to lisp/mule/chinese.el.
2589         (complex_vars_of_mule_charset): Likewise.
2590
2591 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2592
2593         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
2594         96-set.
2595         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
2596         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
2597
2598 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
2599
2600         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
2601         0xFF60.
2602         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
2603         (breakup_char_1): Likewise.
2604
2605         * text-coding.c (char_encode_iso2022): Keep designated charsets if
2606         one of them includes the specified character.
2607
2608 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
2609
2610         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
2611
2612 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
2613
2614         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
2615
2616 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
2617
2618         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
2619         definition for non-UTF-2000 Mule.
2620         (latin_iso8859_3_to_ucs): Likewise.
2621         (latin_iso8859_4_to_ucs): Likewise.
2622         (latin_iso8859_9_to_ucs): Likewise.
2623         (latin_jisx0201_to_ucs): Likewise.
2624         (MIN_CHAR_THAI): Likewise.
2625         (MAX_CHAR_THAI): Likewise.
2626         (MIN_CHAR_GREEK): Likewise.
2627         (MAX_CHAR_GREEK): Likewise.
2628         (MIN_CHAR_HEBREW): Likewise.
2629         (MAX_CHAR_HEBREW): Likewise.
2630         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
2631         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
2632         (MIN_CHAR_CYRILLIC): Likewise.
2633         (MAX_CHAR_CYRILLIC): Likewise.
2634
2635 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
2636
2637         * char-ucs.h (breakup_char_1): Use
2638         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
2639         thai-tis620 and katakana-jisx0201 area.
2640
2641 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2642
2643         * char-ucs.h (breakup_char_1): Use
2644         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
2645         area.
2646
2647         * text-coding.c (reset_encoding_stream): Fixed.
2648         (char_encode_ucs4): Delete `& 255'.
2649
2650         * char-ucs.h (breakup_char_1): Use
2651         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
2652
2653 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2654
2655         * file-coding.c (Fmake_coding_system): Don't set up
2656         `codesys->fixed.size'.
2657         (encode_coding_no_conversion): Don't refer
2658         `str->codesys->fixed.size'.
2659
2660 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2661
2662         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
2663         (latin_a_char_to_byte1): Deleted.
2664         (latin_a_char_to_byte2): Deleted.
2665
2666 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2667
2668         * mule-charset.c (make_charset): Add new argument `ucs_min',
2669         `ucs_max' and `code_offset'.
2670         (charset_get_byte1): New implementation [delete specific charset
2671         depended implementations].
2672         (Fmake_charset): Modify for `make_charset'.
2673         (Fmake_reverse_direction_charset): Likewise.
2674         (complex_vars_of_mule_charset): Likewise.
2675
2676         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
2677         `code_offset'.
2678         (CHARSET_UCS_MIN): New macro.
2679         (CHARSET_UCS_MAX): New macro.
2680         (CHARSET_CODE_OFFSET): New macro.
2681         (MAKE_CHAR): Delete charset depended definitions [except
2682         katakana-jisx0201].
2683
2684 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
2685
2686         * char-ucs.h (breakup_char_1): Use
2687         `Vdefault_coded_charset_priority_list' for C0-Controls,
2688         Basic-Latin, C1-Controls and Latin-1-Supplement area.
2689
2690 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2691
2692         * char-ucs.h (charset_get_byte1): New function.
2693         (XCHARSET_GET_BYTE1): Deleted.
2694         (charset_get_byte2): New function.
2695         (XCHARSET_GET_BYTE2): Deleted.
2696         (Vdefault_coded_charset_priority_list): New external variable.
2697         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
2698         `Vdefault_preferred_coded_charset_list'.
2699
2700         * mule-charset.c (charset_get_byte1): New function.
2701         (charset_get_byte2): New function.
2702         (Vdefault_coded_charset_priority_list): New variable.
2703         (vars_of_mule_charset): Add new variable
2704         `default-coded-charset-priority-list'.
2705
2706 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2707
2708         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
2709         (XCHARSET_GET_BYTE2): New inline function.
2710         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
2711         `XCHARSET_GET_BYTE2'.
2712
2713 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2714
2715         * mule-charset.c (make_charset): Initialize
2716         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
2717         NULL if table is not defined.
2718
2719 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2720
2721         * text-coding.c (char_encode_shift_jis): Use
2722         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
2723         `ucs_to_latin_jisx0201'.
2724
2725         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
2726         (ucs_to_latin_iso8859_2): Deleted.
2727         (ucs_to_latin_iso8859_3): Deleted.
2728         (ucs_to_latin_iso8859_4): Deleted.
2729         (ucs_to_latin_iso8859_9): Deleted.
2730         (ucs_to_latin_viscii_lower): Deleted.
2731         (ucs_to_latin_viscii_upper): Deleted.
2732         (ucs_to_latin_tcvn5712): Deleted.
2733         (make_charset): Add new argument `decoding_table'; set up
2734         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
2735         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
2736         `decoding_table' is defined in UTF-2000.
2737         (Fmake_charset): Modify for `make_charset'.
2738         (Fmake_reverse_direction_charset): Likewise.
2739         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
2740         and `GENERATE_96_SET'.
2741
2742         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
2743         (ucs_to_latin_jisx0201): Deleted.
2744         (latin_iso8859_2_to_ucs): Deleted.
2745         (ucs_to_latin_iso8859_2): Deleted.
2746         (latin_iso8859_3_to_ucs): Deleted.
2747         (ucs_to_latin_iso8859_3): Deleted.
2748         (latin_iso8859_4_to_ucs): Deleted.
2749         (ucs_to_latin_iso8859_4): Deleted.
2750         (latin_iso8859_9_to_ucs): Deleted.
2751         (ucs_to_latin_iso8859_9): Deleted.
2752         (latin_viscii_lower_to_ucs): Deleted.
2753         (ucs_to_latin_viscii_lower): Deleted.
2754         (latin_viscii_upper_to_ucs): Deleted.
2755         (ucs_to_latin_viscii_upper): Deleted.
2756         (struct Lisp_Charset): Renamed `encoding_table' to
2757         `to_byte1_table'; add `to_byte2_table'.
2758         (CHARSET_DECODING_TABLE): New macro.
2759         (CHARSET_TO_BYTE1_TABLE): New macro.
2760         (CHARSET_TO_BYTE2_TABLE): New macro.
2761         (XCHARSET_DECODING_TABLE): New macro.
2762         (XCHARSET_TO_BYTE1_TABLE): New macro.
2763         (XCHARSET_TO_BYTE2_TABLE): New macro.
2764         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
2765         tables.
2766         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
2767         don't use `ucs_to_*' tables.
2768
2769 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2770
2771         * text-coding.c (Fmake_coding_system): Don't set up
2772         `codesys->fixed.size'.
2773         (encode_coding_no_conversion): Use `if' instead of `switch'.
2774
2775         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
2776
2777 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2778
2779         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
2780         (Fmake_charset): Modify for `make_charset'.
2781         (Fmake_reverse_direction_charset): Likewise.
2782         (complex_vars_of_mule_charset): Likewise.
2783
2784 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2785
2786         * text-coding.c (char_encode_shift_jis): Use table
2787         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
2788
2789 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2790
2791         * text-coding.c (text_encode_generic): Use `if' instead of
2792         `switch'.
2793         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
2794         decode JIS-Latin.
2795
2796 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2797
2798         * text-coding.c (encode_coding_sjis): Deleted.
2799         (char_encode_shift_jis): New function.
2800         (char_finish_shift_jis): New function.
2801         (reset_encoding_stream): Set up `encode_char' and `finish' for
2802         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
2803         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
2804         (char_encode_utf8): Treat `eol_type'.
2805
2806 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2807
2808         * file-coding.c (decode_coding_iso2022): Use
2809         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
2810
2811 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2812
2813         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2814         to 0.7 (Hirano).
2815
2816 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2817
2818         * char-lb.h (CHAR_COLUMNS): New macro.
2819
2820 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2821
2822         * text-coding.c (char_encode_ucs4): New function.
2823         (char_finish_ucs4): New function.
2824         (encode_coding_ucs4): Deleted.
2825         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
2826         (text_encode_generic): Delete local variable `charset' and `half'.
2827         (ucs_to_mule_table): Deleted.
2828         (mule_to_ucs_table): Deleted.
2829         (Fset_ucs_char): Deleted.
2830         (ucs_to_char): Deleted.
2831         (Fucs_char): Deleted.
2832         (Fset_char_ucs): Deleted.
2833         (Fchar_ucs): Deleted.
2834         (decode_ucs4): Deleted.
2835         (mule_char_to_ucs4): Deleted.
2836         (encode_ucs4): Deleted.
2837         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
2838         (decode_coding_utf8): Likewise.
2839         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
2840         (char_encode_iso2022): Fixed.
2841         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
2842         `Fset_char_ucs' and `Fchar_ucs'.
2843         (complex_vars_of_file_coding): Don't initialize
2844         `ucs_to_mule_table'.
2845
2846         * objects-tty.c (tty_initialize_font_instance): Don't use
2847         `XCHARSET_COLUMNS'.
2848
2849         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
2850         UTF-2000.
2851
2852         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
2853         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
2854
2855         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
2856         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
2857         (emchar_string_displayed_columns): Likewise.
2858
2859         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
2860         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
2861         (string_column_at_point): Likewise.
2862         (Fmove_to_column): Likewise.
2863
2864         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
2865         `encoding_table' and `decoding_table'.
2866         (CHARSET_REP_BYTES): Deleted.
2867         (XCHARSET_REP_BYTES): Deleted.
2868         (XCHARSET_COLUMNS): Deleted.
2869         (CHAR_COLUMNS): New macro.
2870         (lookup_composite_char): Deleted unconditionally.
2871         (composite_char_string): Likewise.
2872
2873 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2874
2875         * char-ucs.h (Emchar_to_byte_table): New type.
2876         (get_byte_from_character_table): New function interface.
2877         (Vcharset_latin_jisx0201): New variable.
2878         (latin_jisx0201_to_ucs): New variable.
2879         (ucs_to_latin_jisx0201): New variable.
2880         (Vcharset_latin_iso8859_2): New variable.
2881         (latin_iso8859_2_to_ucs): New variable.
2882         (ucs_to_latin_iso8859_2): New variable.
2883         (Vcharset_latin_iso8859_3): New variable.
2884         (latin_iso8859_3_to_ucs): New variable.
2885         (ucs_to_latin_iso8859_3): New variable.
2886         (Vcharset_latin_iso8859_4): New variable.
2887         (latin_iso8859_4_to_ucs): New variable.
2888         (ucs_to_latin_iso8859_4): New variable.
2889         (Vcharset_latin_iso8859_9): New variable.
2890         (latin_iso8859_9_to_ucs): New variable.
2891         (ucs_to_latin_iso8859_9): New variable.
2892         (Vcharset_latin_viscii_lower): New variable.
2893         (latin_viscii_lower_to_ucs): New variable.
2894         (ucs_to_latin_viscii_lower): New variable.
2895         (Vcharset_latin_viscii_upper): New variable.
2896         (latin_viscii_upper_to_ucs): New variable.
2897         (ucs_to_latin_viscii_upper): New variable.
2898         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
2899         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
2900         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
2901         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
2902         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
2903         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
2904         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
2905         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
2906         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
2907         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
2908
2909         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
2910         (Vcharset_latin_viscii_upper): New variable.
2911         (make_byte_from_character_table): New function.
2912         (put_byte_from_character_table): New function.
2913         (get_byte_from_character_table): New function.
2914         (CHAR96): New macro.
2915         (ucs_to_latin_jisx0201): New variable.
2916         (latin_jisx0201_to_ucs): New variable.
2917         (ucs_to_latin_iso8859_2): New variable.
2918         (latin_iso8859_2_to_ucs): New variable.
2919         (ucs_to_latin_iso8859_3): New variable.
2920         (latin_iso8859_3_to_ucs): New variable.
2921         (ucs_to_latin_iso8859_4): New variable.
2922         (latin_iso8859_4_to_ucs): New variable.
2923         (ucs_to_latin_iso8859_9): New variable.
2924         (latin_iso8859_9_to_ucs): New variable.
2925         (ucs_to_latin_viscii_lower): New variable.
2926         (latin_viscii_lower_to_ucs): New variable.
2927         (ucs_to_latin_viscii_upper): New variable.
2928         (latin_viscii_upper_to_ucs): New variable.
2929         (ucs_to_latin_tcvn5712): New variable.
2930         (latin_tcvn5712_to_ucs): New variable.
2931         (Qlatin_viscii_lower): New variable.
2932         (Qlatin_viscii_upper): New variable.
2933         (syms_of_mule_charset): Set up new symbol
2934         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
2935         (complex_vars_of_mule_charset): Set up new charset
2936         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
2937         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
2938         `ucs_to_<CHARSET>' tables.
2939
2940 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
2941
2942         * text-coding.c: New file.
2943
2944 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2945
2946         * mule-charset.c (Fmake_char): Fix problem of 256-set.
2947
2948         * char-ucs.h (Vcharset_ucs_bmp): New variable.
2949         (MAKE_CHAR): Modify for `ucs-bmp'.
2950         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
2951         non-MULE characters of BMP.
2952
2953 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
2954
2955         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2956         to 0.6.
2957
2958 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2959
2960         * lstream.h:
2961         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
2962         - Include character.h for `CHAR_ASCII_P'.
2963
2964         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
2965
2966         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
2967         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
2968
2969         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
2970         (BYTE_C0_P): Likewise.
2971         (BYTE_C1_P): Likewise.
2972         (Lstream_get_emchar_1): Likewise.
2973         (Lstream_fput_emchar): Likewise.
2974         (Lstream_funget_emchar): Likewise.
2975         (copy_internal_to_external): Likewise.
2976         (copy_external_to_internal): Likewise.
2977
2978         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
2979         (BYTE_C0_P): Likewise.
2980         (BYTE_C1_P): Likewise.
2981         (Lstream_get_emchar_1): Likewise.
2982         (Lstream_fput_emchar): Likewise.
2983         (Lstream_funget_emchar): Likewise.
2984         (copy_internal_to_external): Likewise.
2985         (copy_external_to_internal): Likewise.
2986
2987         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
2988         (REP_BYTES_BY_FIRST_BYTE): Likewise.
2989
2990         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
2991         (BYTE_ASCII_P): Moved to mb-1byte.h.
2992
2993 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2994
2995         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
2996
2997         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
2998         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
2999         (VALID_CHARPTR_P): Moved to mb-*byte.h.
3000         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3001         (VALIDATE_CHARPTR_FORWARD): Likewise.
3002         (simple_charptr_emchar): Moved to mb-multibyte.h.
3003         (simple_set_charptr_emchar): Likewise.
3004         (simple_charptr_copy_char): Likewise.
3005         (non_ascii_charptr_emchar): Likewise.
3006         (non_ascii_set_charptr_emchar): Likewise.
3007         (non_ascii_charptr_copy_char): Likewise.
3008         (charptr_emchar): Moved to mb-*byte.h.
3009         (set_charptr_emchar): Likewise.
3010         (charptr_copy_char): Likewise.
3011
3012         * mb-1byte.h, mb-multibyte.h: New files.
3013
3014 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3015
3016         * mb-utf-8.h (MULTIBYTE): New macro.
3017         (MAX_EMCHAR_LEN): Moved from buffer.h.
3018         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
3019
3020         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
3021
3022         * mb-lb.h, multibyte.h: New files.
3023
3024         * char-1byte.h (Charset_ID): Moved from buffer.h.
3025         (MIN_LEADING_BYTE): Likewise.
3026         (LEADING_BYTE_ASCII): Likewise.
3027         (NUM_LEADING_BYTES): Likewise.
3028         (CHARSETP): Likewise.
3029         (CHARSET_BY_LEADING_BYTE): Likewise.
3030         (XCHARSET_LEADING_BYTE): Likewise.
3031         (XCHARSET_GRAPHIC): Likewise.
3032         (XCHARSET_COLUMNS): Likewise.
3033         (XCHARSET_DIMENSION): Likewise.
3034         (CHAR_CHARSET): Likewise.
3035         (CHAR_LEADING_BYTE): Likewise.
3036         (BREAKUP_CHAR): Likewise.
3037         (Vcharset_ascii): Likewise.
3038
3039         * buffer.h: Include multibyte.h unconditionally.
3040         (VALID_CHARPTR_P): Moved to multibyte.h.
3041         (ASSERT_VALID_CHARPTR): Likewise.
3042         (REAL_INC_CHARPTR): Likewise.
3043         (REAL_INC_CHARBYTIND): Likewise.
3044         (REAL_DEC_CHARPTR): Likewise.
3045         (INC_CHARPTR): Likewise.
3046         (INC_CHARBYTIND): Likewise.
3047         (DEC_CHARPTR): Likewise.
3048         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3049         (VALIDATE_CHARPTR_FORWARD): Likewise.
3050         (charptr_n_addr): Likewise.
3051         (MAX_EMCHAR_LEN): Moved to mb-*.h.
3052         (simple_charptr_emchar): Moved to multibyte.h.
3053         (simple_set_charptr_emchar): Likewise.
3054         (simple_charptr_copy_char): Likewise.
3055         (non_ascii_charptr_emchar): Likewise.
3056         (non_ascii_set_charptr_emchar): Likewise.
3057         (non_ascii_charptr_copy_char): Likewise.
3058         (charptr_emchar): Likewise.
3059         (set_charptr_emchar): Likewise.
3060         (charptr_copy_char): Likewise.
3061         (charptr_emchar_n): Likewise.
3062         (Charset_ID): Moved to char-1byte.h.
3063         (Vcharset_ascii): Likewise.
3064         (CHAR_CHARSET): Likewise.
3065         (CHAR_LEADING_BYTE): Likewise.
3066         (LEADING_BYTE_ASCII): Likewise.
3067         (NUM_LEADING_BYTES): Likewise.
3068         (MIN_LEADING_BYTE): Likewise.
3069         (CHARSETP): Likewise.
3070         (CHARSET_BY_LEADING_BYTE): Likewise.
3071         (XCHARSET_LEADING_BYTE): Likewise.
3072         (XCHARSET_GRAPHIC): Likewise.
3073         (XCHARSET_COLUMNS): Likewise.
3074         (XCHARSET_DIMENSION): Likewise.
3075         (BREAKUP_CHAR): Likewise.
3076
3077 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3078
3079         * character.h: Add document about interface for characters.
3080
3081         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
3082         (MAKE_CHAR): Delete comment about
3083         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
3084         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
3085         (BREAKUP_CHAR): Modify name of arguments.
3086         (CHAR_CHARSET): Modify name of argument.
3087
3088         * buffer.h: Delete document about Emchar accessors.
3089
3090 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3091
3092         * character.h (CHAR_INTP): Moved from buffer.h
3093         (CHAR_OR_CHAR_INTP): Likewise.
3094         (XCHAR_OR_CHAR_INT): Likewise.
3095         (CHECK_CHAR_COERCE_INT): Likewise.
3096
3097         * buffer.h (CHAR_INTP): Moved to character.h
3098         (CHAR_OR_CHAR_INTP): Likewise.
3099         (XCHAR_OR_CHAR_INT): Likewise.
3100         (CHECK_CHAR_COERCE_INT): Likewise.
3101
3102 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3103
3104         * character.h:
3105         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
3106         - Include char-1byte.h, char-lb.h or char-ucs.h.
3107
3108         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
3109
3110         * buffer.h: Include character unconditionally.
3111         (valid_char_p): Moved to char-*.h.
3112         (non_ascii_valid_char_p): Moved to char-lb.h.
3113
3114         * char-1byte.h, char-lb.h, char-ucs.h: New files.
3115
3116 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3117
3118         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
3119         in UTF-2000 because it is not ported yet and not to use
3120         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
3121         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
3122         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
3123
3124         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
3125         (CHAR_ASCII_P): Moved from character.h.
3126
3127         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
3128         (CHAR_ASCII_P): Likewise.
3129         (CHAR_FIELD1_MASK): Deleted.
3130         (CHAR_FIELD2_MASK): Deleted.
3131         (CHAR_FIELD3_MASK): Deleted.
3132         (MAX_CHAR_BASIC_LATIN): New macro.
3133         (CHAR_FIELD1): Deleted.
3134         (CHAR_FIELD2_INTERNAL): Deleted.
3135         (CHAR_FIELD3_INTERNAL): Deleted.
3136         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
3137         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
3138         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
3139         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
3140         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
3141         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
3142         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
3143         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
3144         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
3145         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
3146         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
3147         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
3148         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
3149         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
3150         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
3151         (MIN_CHAR_COMPOSITION): Deleted.
3152         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
3153         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
3154
3155 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
3156
3157         * buffer.h: Include mb-utf-8.h in UTF-2000.
3158
3159         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
3160
3161         * mb-utf-8.h: New file.
3162
3163 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
3164
3165         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
3166         instead of `int'.
3167
3168         * mule-charset.h, buffer.h (Charset_ID): New type.
3169
3170 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
3171
3172         * mule-canna.c (c2mu): Use `MAKE_CHAR',
3173         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
3174         instead of `MULE_CHAR_PRIVATE_OFFSET',
3175         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
3176         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
3177         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
3178
3179         * character.h (Vcharset_japanese_jisx0212): New variable
3180         definition.
3181
3182 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
3183
3184         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
3185         (charset_by_attributes): Delete array about direction.
3186         (latin_a_char_to_charset): New variable in UTF-2000.
3187         (latin_a_char_to_byte1): New variable in UTF-2000.
3188         (latin_a_char_to_byte2): New variable in UTF-2000.
3189         (Qucs_bmp): New variable.
3190         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
3191         `Bufbyte'.
3192         (next_allocated_2_byte_leading_byte): Likewise.
3193         (non_ascii_set_charptr_emchar): Likewise.
3194         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
3195         `CHARSET_TYPE_256X256' in UTF-2000; modify for
3196         `charset_by_attributes'.
3197         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
3198         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
3199         and `CHARSET_BY_LEADING_BYTE'.
3200         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
3201         `utf-2000-version' to `vars_of_mule_charset'.
3202         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
3203         define `leading-code-private-11' in UTF-2000; move setting of
3204         `utf-2000-version' from `syms_of_mule_charset'.
3205         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
3206         UTF-2000.
3207
3208         * character.h (Charset_ID): New type.
3209         (LEADING_BYTE_UCS_BMP): New macro.
3210         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
3211         (CHARSET_ID_OFFSET_94): New macro.
3212         (MIN_CHARSET_ID_PRIVATE_94): New macro.
3213         (MAX_CHARSET_ID_PRIVATE_94): New macro.
3214         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
3215         final-byte.
3216         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
3217         (LEADING_BYTE_LATIN_JISX0201): Likewise.
3218         (CHARSET_ID_OFFSET_96): New macro.
3219         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
3220         CHARSET_ID_OFFSET_96 and final-byte.
3221         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
3222         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
3223         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
3224         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
3225         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
3226         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
3227         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
3228         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
3229         (LEADING_BYTE_THAI_TIS620): Likewise.
3230         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
3231         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
3232         (CHARSET_ID_OFFSET_94x94): New macro.
3233         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
3234         CHARSET_ID_OFFSET_94x94 and final-byte.
3235         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
3236         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
3237         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
3238         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
3239         (LEADING_BYTE_CHINESE_GB2312): Likewise.
3240         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
3241         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
3242         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
3243         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
3244         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
3245         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
3246         (CHARSET_TYPE_128X128): New macro.
3247         (CHARSET_TYPE_256X256): New macro.
3248         (XCHARSET_PRIVATE_P): Delete unconditionally.
3249         (charset_by_attributes): Delete array about direction.
3250         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
3251         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
3252         (MIN_CHAR_94): New macro.
3253         (MAX_CHAR_94): New macro.
3254         (MIN_CHAR_96): New macro.
3255         (MAX_CHAR_96): New macro.
3256         (MIN_CHAR_94x94): New macro.
3257         (MAX_CHAR_94x94): New macro.
3258         (MIN_CHAR_96x96): New macro.
3259         (MAX_CHAR_96x96): New macro.
3260         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
3261         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3262         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
3263         - 32)'.
3264         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
3265         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
3266         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
3267         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
3268         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
3269         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
3270         `XCHARSET_LEADING_BYTE' to make code-point.
3271         (latin_a_char_to_charset): New variable.
3272         (latin_a_char_to_byte1): New variable.
3273         (latin_a_char_to_byte2): New variable.
3274         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
3275         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
3276         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
3277
3278         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
3279         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
3280         (find_charsets_in_emchar_string): Likewise.
3281         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
3282
3283         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
3284         `int'.
3285         (decode_coding_iso2022): Likewise.
3286
3287         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
3288         of `unsigned char'.
3289
3290         * redisplay.c (redisplay_text_width_emchar_string): Use
3291         `Charset_ID' instead of `unsigned char'.
3292         (redisplay_frame_text_width_string): Likewise.
3293
3294         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
3295         `unsigned char'.
3296
3297         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
3298         instead of `unsigned char'.
3299         (face_cachel_charset_font_metric_info): Likewise.
3300
3301         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
3302         (get_non_ascii_char_table_value): Likewise.
3303         (get_char_table): Likewise.
3304         (put_char_table): Likewise.
3305         (map_over_other_charset): Likewise.
3306         (map_char_table): Likewise.
3307
3308         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
3309         instead of `unsigned char'.
3310
3311 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
3312
3313         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
3314         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
3315
3316         * mule-charset.c (leading_code_private_11): Don't define in
3317         UTF-2000.
3318
3319         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
3320         in UTF-2000 because it is not ported yet and not to use
3321         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
3322
3323 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
3324
3325         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
3326
3327 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3328
3329         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
3330         in UTF-2000.
3331
3332         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
3333         of unsigned char to store leading-byte.
3334
3335         * chartab.c (get_non_ascii_char_table_value): Don't use
3336         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
3337
3338         * file-coding.c (encode_coding_big5): Delete bogus implementation
3339         in UTF2000.
3340
3341         * character.h (LEADING_BYTE_*): Delete definition for
3342         non-UTF-2000.
3343         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
3344         (LEADING_BYTE_PREFIX_P): Deleted.
3345         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
3346         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
3347         (BUFBYTE_LEADING_BYTE_P): Deleted.
3348         (CHARSET_PRIVATE_P): Deleted unconditionally.
3349         (rep_bytes_by_first_byte): Deleted unconditionally.
3350         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
3351         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
3352         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3353         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
3354         (CHAR_FIELD2): Deleted.
3355         (CHAR_FIELD3): Deleted.
3356         (MAKE_CHAR): Delete definition for non-UTF-2000.
3357         (BREAKUP_CHAR_1_UNSAFE): Deleted.
3358         (breakup_char_1): New implementation.
3359         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
3360         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
3361
3362 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3363
3364         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
3365         condition.
3366
3367 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3368
3369         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
3370         (CHARSET_PRIVATE_P): Likewise.
3371         (XCHARSET_PRIVATE_P): Likewise.
3372         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
3373
3374         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
3375         UTF2000.
3376         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
3377
3378 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3379
3380         * character.h (LEADING_BYTE_*): Changed in UTF2000.
3381         (NUM_LEADING_BYTES): Changed from 128 to 256.
3382         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3383         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
3384         UTF2000.
3385         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3386
3387         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
3388         UTF2000.
3389         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
3390         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
3391         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
3392         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
3393         (Qchinese_cns11643_3): New variable in UTF2000.
3394         (Qchinese_cns11643_4): New variable in UTF2000.
3395         (Qchinese_cns11643_5): New variable in UTF2000.
3396         (Qchinese_cns11643_6): New variable in UTF2000.
3397         (Qchinese_cns11643_7): New variable in UTF2000.
3398         (syms_of_mule_charset): Define `chinese-cns11643-3',
3399         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3400         and `chinese-cns11643-7' in UTF2000.
3401         (vars_of_mule_charset): Initialize
3402         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
3403         + 1 in UTF2000.
3404         (complex_vars_of_mule_charset): Setup charset
3405         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
3406         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
3407
3408 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3409
3410         * mule-charset.c: Move setting for `leading-code-private-11' from
3411         `syms_of_mule_charset' to `vars_of_mule_charset'.
3412
3413 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3414
3415         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
3416         and `NUM_LEADING_BYTES' in assert.
3417
3418 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3419
3420         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
3421         instead of 128.
3422         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
3423         `NUM_LEADING_BYTES' instead of 128.
3424
3425 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3426
3427         * mule-charset.h (charset_by_leading_byte): Use
3428         `NUM_LEADING_BYTES' instead of 128.
3429         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
3430
3431         * mule-charset.c (charset_by_leading_byte): Use
3432         `NUM_LEADING_BYTES' instead of 128.
3433         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
3434
3435         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
3436         128.
3437
3438 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
3439
3440         * mule-charset.c (syms_of_mule_charset): Update to
3441         0.4 (Shin-Imamiya).
3442
3443 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
3444
3445         * file-coding.c (encode_coding_sjis): New implementation for
3446         UTF2000.  (decode_coding_sjis): Ditto.
3447
3448 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3449
3450         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
3451         Don't define in UTF2000.
3452
3453         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
3454         defined.
3455
3456         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3457         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
3458         MULE.
3459
3460 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3461
3462         * config.h.in (CHAR_IS_UCS4): New macro.
3463
3464         * mule-charset.c (rep_bytes_by_first_byte): Modify for
3465         conventional MULE representation.
3466         (syms_of_mule_charset): Update to 0.3 (Imamiya).
3467
3468         * mule-charset.h: Reverted to original.
3469
3470         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3471         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
3472         "mule-charset.h" if CHAR_IS_UCS4 is defined.
3473
3474         * character.h: New file.
3475
3476         * file-coding.c (Fmake_coding_system): Set 1 to
3477         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
3478         defined.
3479         (encode_coding_no_conversion): New implementation for UTF2000.
3480
3481         * file-coding.h (struct Lisp_Coding_System): Add new member
3482         `fixed.size'.
3483
3484 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
3485
3486         * file-coding.c (decode_coding_iso2022): Code-point arguments of
3487         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
3488         (encode_coding_iso2022): New implementation for UTF2000.
3489
3490 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3491
3492         * mule-canna.c (c2mu): New implementation for UTF2000.
3493         (m2c): Likewise.
3494
3495 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3496
3497         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
3498
3499 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3500
3501         * file-coding.c (reset_encoding_stream): Set 0 to
3502         `str->iso2022.current_char_boundary' in UTF2000.
3503         (encode_utf8): Don't define in UTF2000.
3504         (encode_coding_utf8): New implementation for UTF-8 representation
3505         of UTF2000.
3506         (complex_vars_of_file_coding): Define coding-system `utf-8'.
3507
3508 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3509
3510         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
3511
3512         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
3513         UTF2000.
3514         (REP_BYTES_BY_FIRST_BYTE): Likewise.
3515
3516         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
3517
3518         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
3519         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
3520         as UTF-8 in UTF2000.
3521         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
3522         (non_ascii_valid_char_p): Don't define in UTF2000.
3523         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
3524         (Lstream_get_emchar_1): Likewise.
3525         (utf-2000-version): New variable in UTF2000.
3526
3527         * lread.c (read_escape): Add new reader `u'.
3528
3529         * insdel.c (three_to_one_table): Don't define in UTF2000.
3530         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
3531         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
3532         UTF2000.
3533         (bytind_to_bufpos_func): Likewise.
3534         (buffer_mule_signal_inserted_region): Likewise.
3535         (vars_of_insdel): Don't initialize `three_to_one_table'.
3536         (init_buffer_text): Use `buf->text->mule_size' instead of
3537         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
3538         UTF2000.
3539
3540         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
3541         UTF-8 representation in UTF2000.
3542         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
3543         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
3544         (decode_coding_iso2022): Don't define local variable `lb' in
3545         UTF2000; don't use LEADING_BYTE in UTF2000; use
3546         `DECODE_ADD_UCS_CHAR' in UTF2000.
3547         (convert_to_external_format): Decode as UTF-8 in UTF2000.
3548
3549         * config.h.in (UTF2000): New macro.
3550
3551         * buffer.h (struct buffer_text): Add new member `mule_size' and
3552         don't add `mule_shifter' and `mule_three_p' in UTF2000.
3553         (valid_char_p): Return always 1 in UTF2000.
3554         (MAX_EMCHAR_LEN): 6 in UTF2000.
3555         (three_to_one_table): Don't define in UTF2000.
3556         (real_bufpos_to_bytind): Modify for UTF-8 representation in
3557         UTF2000.
3558         (real_bytind_to_bufpos): Likewise.
3559
3560         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
3561
3562 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3563
3564         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
3565         representation change.
3566         (Vutf_2000_version): New variable.
3567         (leading_code_private_11): New variable.
3568         (syms_of_mule_charset): Add new variables `utf-2000-version' and
3569         `leading-code-private-11'.
3570
3571         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
3572         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
3573         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
3574         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
3575         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
3576         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
3577         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
3578         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
3579         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
3580         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
3581         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
3582         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
3583         (MIN_CHAR_GREEK): New macro.
3584         (MAX_CHAR_GREEK): New macro.
3585         (MIN_CHAR_CYRILLIC): New macro.
3586         (MAX_CHAR_CYRILLIC): New macro.
3587         (MIN_CHAR_HEBREW): New macro.
3588         (MAX_CHAR_HEBREW): New macro.
3589         (MIN_CHAR_THAI): New macro.
3590         (MAX_CHAR_THAI): New macro.
3591         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
3592         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
3593         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
3594         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
3595         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
3596         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
3597         (CHAR_FIELD2): New inline function.
3598         (CHAR_FIELD3): New inline function.
3599         (MULE_CHAR_PRIVATE_OFFSET): New macro.
3600         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
3601         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
3602         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
3603         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
3604         (MIN_CHAR_COMPOSITION): Likewise.
3605         (CHAR_LEADING_BYTE): Modified for character representation change.
3606         (MAKE_CHAR): Likewise.
3607
3608         * lisp.h (Vcharset_latin_iso8859_1): New variable.
3609         (Vcharset_greek_iso8859_7): Likewise.
3610         (Vcharset_cyrillic_iso8859_5): Likewise.
3611         (Vcharset_hebrew_iso8859_8): Likewise.
3612         (Vcharset_thai_tis620): Likewise.
3613         (Vcharset_katakana_jisx0201): Likewise.
3614
3615 2001-01-26  Martin Buchholz <martin@xemacs.org>
3616
3617         * XEmacs 21.2.43 "Terspichore" is released.
3618
3619 2001-01-25  Martin Buchholz  <martin@xemacs.org>
3620
3621         Type fiddling for window_config.saved_windows_count
3622         * window.c (struct window_config): 
3623         Make saved_windows_count member unsigned.
3624         * window.c (sizeof_window_config_for_n_windows): 
3625         Make parameter unsigned.
3626         * window.c (mark_window_config):
3627         * window.c (window_config_equal):
3628         * window.c (free_window_configuration):
3629         * window.c (Fset_window_configuration):
3630         * window.c (count_windows):
3631         * window.c (Fcurrent_window_configuration):
3632         * window.c (reinit_vars_of_window):
3633         Update all callers and users.
3634
3635 2001-01-25  Martin Buchholz  <martin@xemacs.org>
3636
3637         Alignment correctness for flexible arrays.
3638         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
3639         Make alignment-correct. Add interesting comments.
3640         * alloc.c (size_vector):
3641         * alloc.c (make_vector_internal):
3642         * alloc.c (make_bit_vector_internal):
3643         * alloc.c (sweep_bit_vectors_1):
3644         * fns.c (size_bit_vector):
3645         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
3646         * window.c (sizeof_window_config_for_n_windows): 
3647         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
3648
3649 2001-01-24  Martin Buchholz  <martin@xemacs.org>
3650
3651         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
3652
3653 2001-01-23  Andy Piper  <andy@xemacs.org>
3654
3655         * select.c (Fown_selection_internal): pass owned_p
3656
3657         * select-msw.c (mswindows_own_selection): New Signature.
3658
3659         * console.h (struct console_methods): add owned_p to
3660         _own_selection.
3661
3662         * select-x.c (x_own_selection): pass owned_p
3663         (hack_motif_clipboard_selection): use owned_p
3664         (vars_of_select_x): new variable -
3665         x_selection_strict_motif_ownership.
3666
3667 2001-01-23  Martin Buchholz  <martin@xemacs.org>
3668
3669         * specifier.h (specifier_data_offset): Remove pointless parens.
3670         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
3671
3672 2001-01-24  Martin Buchholz  <martin@xemacs.org>
3673
3674         Make Lisp_Object sizeof methods be alignment-correct.
3675         pdump must restore objects to the same alignment as the C compiler
3676         assumes.  It really matters on SGIs.
3677         * lstream.c (aligned_sizeof_lstream): New.
3678         (sizeof_lstream): Use aligned_sizeof_lstream.
3679         (Lstream_new): Likewise.
3680         * opaque.c (aligned_sizeof_opaque): New.
3681         (sizeof_opaque): Use aligned_sizeof_opaque.
3682         (make_opaque): Likewise.
3683         * specifier.c (aligned_sizeof_specifier): New.
3684         (sizeof_specifier): Use aligned_sizeof_specifier.
3685         (make_specifier_internal): Likewise.
3686
3687 2001-01-23  Martin Buchholz  <martin@xemacs.org>
3688
3689         * lstream.h (struct lstream): Use max_align_t for trailing data.
3690         * specifier.h (struct Lisp_Specifier): Likewise.
3691
3692 2001-01-22  Martin Buchholz  <martin@xemacs.org>
3693
3694         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
3695         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
3696         (CCL_SUSPEND): Likewise.
3697         (CCL_INVALID_CMD): Likewise.
3698         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
3699         (ccl_driver): Likewise.
3700         (CCL_WRITE_CHAR): Macro hygiene.
3701         (CCL_WRITE_STRING): Macro hygiene.
3702
3703 2001-01-22  Martin Buchholz  <martin@xemacs.org>
3704
3705         Port "portable" dumper to SunOS 4 and HP-UX.
3706         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
3707         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
3708         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
3709
3710 2001-01-22  Martin Buchholz  <martin@xemacs.org>
3711
3712         * lisp.h (ALIGNOF): A better definition for C++.
3713
3714 2001-01-20  Martin Buchholz  <martin@xemacs.org>
3715
3716         Macro hygiene.
3717         Fix printf warnings: int format, long int arg.
3718         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
3719         (PUSH_FAILURE_POINT): Use correct printf formats.
3720         (POP_FAILURE_POINT): Use correct printf formats.  
3721         Use do {...} while (0)
3722
3723 2001-01-20  Martin Buchholz <martin@xemacs.org>
3724
3725         * XEmacs 21.2.42 "Poseidon" is released.
3726
3727 2001-01-20  Martin Buchholz  <martin@xemacs.org>
3728
3729         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
3730
3731 2001-01-19  Martin Buchholz  <martin@xemacs.org>
3732
3733         De-kludgify FIXED_TYPE free list frobbing.
3734         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
3735         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
3736         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
3737         * alloc.c (Lisp_Free): New pseudo lisp object definition.
3738         * alloc.c (LRECORD_FREE_P): New.
3739         * alloc.c (MARK_LRECORD_AS_FREE): New.
3740         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
3741         * alloc.c (STRUCT_FREE_P): Deleted.
3742         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
3743         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
3744         * alloc.c (STRING_CHARS_FREE_P): New.
3745         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
3746         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
3747         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
3748         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
3749         * alloc.c (resize_string): Use new definitions.
3750         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
3751         * alloc.c (verify_string_chars_integrity): Use new definitions.
3752         * alloc.c (compact_string_chars): Use new definitions.
3753         * alloc.c: Update monster comments.
3754         * lrecord.h (lrecord_type): Add some new lrecord types for
3755         alloc.c's use.
3756
3757 2001-01-18  Martin Buchholz  <martin@xemacs.org>
3758
3759         Improve alignment hackery.
3760         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
3761         (max_align_t): Moved from opaque.h - general purpose.
3762         (ALIGN_PTR): Use size_t, not long.
3763         * opaque.h (max_align_t): Move to lisp.h.
3764
3765 2001-01-18  Norbert Koch  <nk@LF.net>
3766
3767         * gui.h: Fix and add prototypes to fix build problems.
3768
3769 2001-01-18  Martin Buchholz  <martin@xemacs.org>
3770
3771         temacs is going away, so `dump-temacs' is now a bad name.
3772         * .dbxrc (dump-temacs): Rename to `dmp'.
3773         * .gdbinit (dump-temacs): Rename to `dmp'.
3774
3775 2001-01-17  Andy Piper  <andy@xemacs.org>
3776
3777         * glyphs.c (print_image_instance): comment to make martin happy.
3778
3779         * glyphs-x.c (x_redisplay_widget): update faces after a frame
3780         change.
3781
3782         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
3783         activation.
3784         (mswindows_tab_control_redisplay): warning suppression.
3785
3786         * glyphs-widget.c (widget_update): re-write to cope with updated
3787         items.
3788         (widget_instantiate): use new gui_item functions.
3789         (tab_control_update): deleted.
3790         (progress_gauge_update): deleted.
3791         (image_instantiator_progress_guage): take out update reference.
3792         (image_instantiator_tree_view): ditto.
3793         (image_instantiator_tab_control): ditto.
3794
3795         * gui.c (widget_gui_parse_item_keywords): new function. Do things
3796         Right the new way.
3797         (gui_item_add_keyval_pair): re-write to cope with descriptors and
3798         return whether anything was changed.
3799         (update_gui_item_keywords): as it sounds.
3800
3801         * gui.h: declare widget_gui_parse_item_keywords.
3802
3803         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
3804         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
3805
3806 2001-01-17  Martin Buchholz <martin@xemacs.org>
3807
3808         * XEmacs 21.2.41 "Polyhymnia" is released.
3809
3810 2001-01-16  Didier Verna  <didier@xemacs.org>
3811
3812         * glyphs.c (image_instantiate): don't use fallbacks when
3813         instantiating a face's background pixmap by inheritance.
3814
3815 2001-01-14  Mike Sperber <mike@xemacs.org>
3816
3817         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
3818         Conditionalize accordingly.
3819
3820 2001-01-16  Martin Buchholz  <martin@xemacs.org>
3821
3822         * dumper.c (pdump_file_get): Fix a compiler warning.
3823
3824 2001-01-15  Martin Buchholz  <martin@xemacs.org>
3825
3826         Make Purify happy when pdumping.
3827         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
3828         iniitalizing all bits of new lisp object memory.
3829         * symbols.c (Fmake_local_variable): Likewise.
3830         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
3831         * symbols.c (Fdefvaralias): Likewise.
3832         * mule-charset.c (vars_of_mule_charset): Likewise.
3833
3834 2001-01-15  Martin Buchholz  <martin@xemacs.org>
3835         Add the `-nd' flag when running pre-dump operations under the debugger.
3836         * .dbxrc (run-temacs): Add `-nd'.
3837         * .dbxrc (update-elc): Likewise.
3838         * .dbxrc (dump-temacs): Likewise.
3839         * .gdbinit (run-temacs): Likewise.
3840         * .gdbinit (check-temacs): Likewise.
3841         * .gdbinit (update-elc): Likewise.
3842         * .gdbinit (dump-temacs): Likewise.
3843
3844 2001-01-14  Martin Buchholz  <martin@xemacs.org>
3845
3846         Allow building 64-bit executables on AIX with GNU malloc, e.g.
3847         export OBJECT_MODE=64
3848         configure --pdump --use-union-type=no
3849         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
3850         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
3851
3852         * miscplay.c (sndcnv8U_2mono):
3853         Avoid two uses of `++' in the same expression.
3854         Suppresses a GCC warning.
3855
3856 2001-01-13  Martin Buchholz  <martin@xemacs.org>
3857
3858         Make sure future compilers don't miscompile alloc.c.
3859         * alloc.c:
3860         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
3861         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
3862
3863 2001-01-12  Martin Buchholz  <martin@xemacs.org>
3864
3865         * dumper.c: A little post-pdump-rename comment fixup.
3866
3867 2001-01-09  Jerry James  <james@eecs.ku.edu>
3868
3869         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
3870
3871 2001-01-13  Martin Buchholz  <martin@xemacs.org>
3872
3873         * *.[ch]: Globally rename symbols using the following `pdump-rename'
3874         script:
3875         #!/bin/sh
3876         replace_symbol () {
3877           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
3878         }
3879
3880         replace_symbol pdump_wire_lists pdump_weak_object_chains
3881         replace_symbol pdump_wire_list dump_add_weak_object_chain
3882
3883         replace_symbol pdump_wires pdump_root_objects
3884         replace_symbol pdump_wire dump_add_root_object
3885
3886         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
3887         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
3888
3889         replace_symbol dumpstructinfos pdump_root_struct_ptrs
3890         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
3891         replace_symbol dumpstructinfo pdump_root_struct_ptr
3892         replace_symbol dumpstruct dump_add_root_struct_ptr
3893
3894         replace_symbol dumpopaque dump_add_opaque
3895         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
3896         replace_symbol dumpopaqueinfos pdump_opaques
3897         replace_symbol dumpopaqueinfo pdump_opaque
3898
3899         replace_symbol nb_structdump nb_root_struct_ptrs
3900         replace_symbol nb_opaquedump nb_opaques
3901
3902         replace_symbol align_table pdump_align_table
3903         replace_symbol dump_header pdump_header
3904
3905         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
3906         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
3907
3908
3909 2001-01-12  Martin Buchholz  <martin@xemacs.org>
3910
3911         * s/aix4.h: Keep the C for AIX compiler from overaggressively
3912         optimizing bytecount_to_charcount().
3913
3914 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
3915
3916         * config.h.in:
3917         (HAVE_DLFCN_H): Removed.
3918         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
3919
3920 2001-01-06  Martin Buchholz  <martin@xemacs.org>
3921
3922         Portable dumper maintainability improvements.
3923         * alloc.c (staticpro):
3924         * alloc.c (staticpro_nodump):
3925         * alloc.c (garbage_collect_1):
3926         * alloc.c (reinit_alloc_once_early):
3927         * alloc.c (init_alloc_once_early):
3928         * alloc.c: Move dumper functions to alloc.c.
3929         * dumper.c (pdump_backtrace):
3930         * dumper.c (pdump_dump_structs):
3931         * dumper.c (pdump_dump_opaques):
3932         * dumper.c (pdump_dump_rtables):
3933         * dumper.c (pdump_dump_wired):
3934         * dumper.c (pdump):
3935         * dumper.c (pdump_load_check):
3936         * dumper.c (pdump_load_finish):
3937         * dumper.c (pdump_file_unmap):
3938         * dumper.c (pdump_file_get):
3939         * dumper.c (pdump_resource_free):
3940         * dumper.c (pdump_resource_get):
3941         * dumper.c (pdump_file_free):
3942         * dumper.c (pdump_file_try):
3943         * dumper.c (pdump_load):
3944         Remove fixed size limits on staticpro(), staticpro_nodump(),
3945         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
3946         Remove custom code for dumping lrecord_implementations_table - use
3947         dumpopaque instead.
3948         Remove (most of the) custom code for dumping staticpros - dump it
3949         like any other dynarr.
3950
3951         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
3952         * dumper.c: Moved functions from alloc.c.
3953         * alloc.c (dumpstruct): Moved to dumper.c.
3954         * alloc.c (dumpopaque): Likewise.
3955         * alloc.c (pdump_wire): Likewise.
3956         * alloc.c (pdump_wire_list): Likewise.
3957
3958         * lisp.h (Dynarr_sizeof): New.
3959         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
3960         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
3961         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
3962
3963         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
3964         * lisp.h (dumpopaque): ditto.
3965         * lisp.h (pdump_wire): ditto.
3966         * lisp.h (pdump_wire_list): ditto.
3967
3968 2001-01-09  Martin Buchholz  <martin@xemacs.org>
3969
3970         * make-src-depend (PrintPatternDeps):
3971         Use `sort' to make output independent of perl version.
3972
3973 2001-01-08  Martin Buchholz  <martin@xemacs.org>
3974
3975         Port to Netbsd 1.5.
3976         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
3977         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
3978
3979 2001-01-03  Didier Verna  <didier@xemacs.org>
3980
3981         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
3982         that `focus_frame' is alive before thinking of calling
3983         `redisplay_redraw_cursor' on it.
3984
3985 2001-01-08  Martin Buchholz <martin@xemacs.org>
3986
3987         * XEmacs 21.2.40 is released.
3988
3989 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
3990
3991         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
3992
3993 2001-01-06  Martin Buchholz  <martin@xemacs.org>
3994
3995         * alloc.c (dbg_valmask): Make const.
3996         * alloc.c (dbg_typemask): Make const.
3997         * alloc.c (dbg_USE_UNION_TYPE): Make const.
3998         * alloc.c (dbg_valbits): Make const.
3999         * alloc.c (dbg_gctypebits): Make const.
4000
4001 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
4002
4003         * redisplay-x.c (x_bevel_area):
4004         redisplay.h (struct rune):
4005         Typo fixes in comments.
4006
4007 2001-01-05  Andy Piper  <andy@xemacs.org>
4008
4009         * glyphs-x.c (x_redisplay_widget): use size changed for offset
4010         adjustment.
4011
4012         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
4013
4014 2001-01-05  Martin Buchholz  <martin@xemacs.org>
4015
4016         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
4017
4018         * mule-ccl.c (stack_idx_of_map_multiple):
4019         Non const global data must not be initialized!
4020         Found by MIYASHITA Hisashi.
4021
4022 2001-01-02  Andy Piper  <andy@xemacs.org>
4023
4024         * frame.c (change_frame_size): make sure frame size is always
4025         marked as changed.
4026
4027         * glyphs.c (image_instance_layout): minor code reuse.
4028
4029         * window.c (Fcurrent_window_configuration): revert previous
4030         change.
4031
4032 2001-01-02  Martin Buchholz  <martin@xemacs.org>
4033
4034         * glyphs.h:
4035         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
4036
4037 2000-12-31  Andy Piper  <andy@xemacs.org>
4038
4039         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
4040         when widget gets unmapped.
4041
4042         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
4043         function. Make sure widgets losing focus don't just drop it.
4044         (handle_focus_event_1): record the widget with focus.
4045
4046 2000-12-31  Andy Piper  <andy@xemacs.org>
4047
4048         * window.c (allocate_window): use
4049         make_image_instance_cache_hash_table.
4050         (make_dummy_parent): ditto.
4051         (Fset_window_configuration): ditto.
4052
4053         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
4054
4055         * glyphs.c (process_image_string_instantiator): use
4056         INSTANTIATOR_TYPE.
4057         (get_image_instantiator_governing_domain): ditto.
4058         (normalize_image_instantiator): ditto.
4059         (instantiate_image_instantiator): ditto.
4060         (make_image_instance_1): ditto.
4061         (image_instantiate): ditto. Key on glyph *and* instantiator type.
4062         (instantiator_eq_equal): new function for use with instance hash
4063         tables.
4064         (instantiator_eq_hash): ditto.
4065         (make_image_instance_cache_hash_table): create a suitable hash
4066         table for storing image instances.
4067
4068         * elhash.h (hash_table_weakness): new internal weakness type
4069         HASH_TABLE_KEY_CAR_VALUE_WEAK.
4070         declare new functions.
4071
4072         * elhash.c (finish_marking_weak_hash_tables): introduce yet
4073         another weakness type for glyphs.
4074         (make_standard_lisp_hash_table): new function split out from
4075         make_general_lisp_hash_table.
4076         (make_lisp_hash_table): call make_standard_lisp_hash_table.
4077         (hash_table_instantiate): ditto.
4078         (Fmake_hash_table): ditto.
4079
4080 2000-12-31  Martin Buchholz <martin@xemacs.org>
4081
4082         * XEmacs 21.2.39 is released.
4083
4084 2000-12-29  Andy Piper  <andy@xemacs.org>
4085
4086         * menubar.c (menubar_visible_p_changed): signal the frame changed.
4087
4088         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
4089         the frame has changed so that we pick up geometry changes such as
4090         menubar visibility.
4091
4092 2000-12-28  Andy Piper  <andy@xemacs.org>
4093
4094         * lastfile.c (my_ebss): make a char array so we can pad the
4095         bss. Fixes cygwin unexec.
4096
4097         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
4098
4099 2000-12-26  Andy Piper  <andy@xemacs.org>
4100
4101         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
4102         comments and try and be more precise about a non-/SIGIO world.
4103         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
4104         SIGIO.
4105
4106         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
4107         we don't normalize to zero width or height.
4108
4109 2000-12-24  Andy Piper  <andy@xemacs.org>
4110
4111         * Makefile.in.in (ldflags): add -mwindows when appropriate.
4112
4113 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
4114
4115         * s/sco5.h: SCO 5 has pty support.
4116
4117 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
4118
4119         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
4120         input-method-xlib.c contains whole contents of input-method-xfs.c,
4121         so we can use input-method-xlib.c's code for USE_XFONTSET
4122         using #ifdefs.
4123         * input-method-xfs.c: removed.
4124
4125 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
4126
4127         * file-coding.h (enum coding_category_type): reorder enumerators to
4128         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
4129         (now one greater than largest real coding_category_type enumerator).
4130         * file-coding.c (coding_category_symbol, coding_category_by_priority,
4131         coding_category_system, fcd_descriptihon_1, decode_coding_category,
4132         Fcoding_category_list, Fset_coding_priority_list,
4133         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
4134         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
4135
4136 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
4137
4138         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
4139         * redisplay-output.c (redisplay_output_window): Clear top of window
4140         when face is changed.
4141         * redisplay-x.c (x_redraw_exposed_window): Call
4142         redisplay_clear_top_of_window.
4143         * redisplay.h: Publish redisplay_clear_top_of_window.
4144
4145 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
4146
4147         * buffer.c (Fkill_buffer): Map over all devices.
4148         * window.c (window_loop): Remove UNSHOW_BUFFER code.
4149         (list_windows): New function.
4150         (list_all_windows): Ditto.
4151         (Freplace_buffer_in_windows): Use them.
4152
4153 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4154
4155         * database.c (berkdb_subtype): Recognize new subtype `queue'.
4156         (Fopen_database): Use `db_create' instead of `db_open'.
4157         (syms_of_database): Initialize Qqueue.
4158
4159 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
4160
4161         * buffer.c (common_init_complex_vars_of_buffer): Initialize
4162         buffer_local_face_property.
4163         * buffer.h (struct buffer): New member buffer_local_face_property.
4164         * window.c (Fset_window_buffer):  Mark window's face as changed
4165         when buffer has buffer local face.
4166         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
4167         * objects.c (color_after_change): Set buffer_local_face_property
4168         when locale of face specifier is buffer.
4169         * objects.c (font_after_change): Ditto.
4170         * objects.c (face_boolean_after_change): Ditto.
4171         * glyphs.c (image_after_change): Ditto.
4172
4173 2000-12-09  Dan Holmsand  <dan@eyebee.com>
4174
4175         * nt.c (mswindows_fstat): Report file permissions, volume serial
4176         number, etc. Code adapted from FSF Emacs 20.7.
4177
4178 2000-12-09  Dan Holmsand  <dan@eyebee.com>
4179
4180         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
4181         of stat when we don't have symbolic links, to make sure
4182         mswindows_stat is called on mswindows.
4183
4184 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
4185
4186         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
4187
4188 2000-12-12  Martin Buchholz  <martin@xemacs.org>
4189
4190         * doprnt.c (emacs_doprnt_1): More printing fixes.
4191         Make printing of numbers compatible with libc and FSF Emacs.
4192         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
4193         Use the system printf to do most of the hard work of formatting,
4194         instead of doprnt_1().
4195         Calculate memory to allocate for format string.
4196         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
4197         (doprnt_1): Cleaner code and documentation.
4198
4199 2000-12-01  Jerry James  <james@eecs.ukans.edu>
4200
4201         * Makefile.in.in: Use the loop variable to install headers.
4202
4203 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4204
4205         * window.c (Fsplit_window): Don't invalidate face cache.
4206
4207 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4208
4209         * minibuf.c (Fall_completions): Undo the previous change
4210         which removed checking elements start with space.
4211
4212 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
4213
4214         * mule-canna.c: Didier suppression.
4215
4216 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
4217
4218         * mule-canna.c: rename static unsigned char buf[] to key_buffer
4219         (warning suppression).  Add English comment translations.
4220
4221 2000-12-05  Martin Buchholz  <martin@xemacs.org>
4222
4223         * unexelfsgi.c (unexec): Better test for mmap failure.
4224
4225 2000-12-05  Martin Buchholz <martin@xemacs.org>
4226
4227         * XEmacs 21.2.38 is released.
4228
4229 2000-12-05  Martin Buchholz  <martin@xemacs.org>
4230
4231         * redisplay.c (bar-cursor): Make a user variable.
4232
4233         * symsinit.h: Add init_postgresql_from_environment.
4234
4235 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4236
4237         * regex.c: Convert to clean C.
4238
4239 2000-12-05  Dan Holmsand  <dan@eyebee.com>
4240
4241         * realpath.c:
4242         Don't #include sysfile.h. Revert to duplicating PATH_MAX
4243         initialization.
4244         (sys_readlink): renamed to system_readlink to avoid conflict with
4245         the other sys_readlink.
4246
4247 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
4248
4249         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
4250
4251 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
4252
4253         * postgresql.c (init_postgresql_from_environment): new function.
4254         (vars_of_postgresql): Move code initializing Lisp variables out and
4255         into init_postgresql_from_environment.
4256         emacs.c (main_1): Call init_postgresql_from_environment if and only
4257         if running a dumped XEmacs.
4258
4259 2000-08-31  Dan Holmsand  <dan@eyebee.com>
4260
4261         * buffer.c: Make find-file-compare-truenames default to true on
4262         windows.
4263
4264         * realpath.c (win32_abs_start):
4265         (cygwin_readlink):
4266         (win32_readlink): New functions.
4267         (xrealpath): Return really real filenames on windows.
4268
4269         * fileio.c (Ffile_truename): Make file-truename work on windows.
4270
4271 2000-11-29  Didier Verna  <didier@xemacs.org>
4272
4273         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
4274         * faces.c (update_face_cachel_data): use it.
4275         * faces.c (add_face_cachel): use it. Complete background pixmap
4276         frobbing in face cache if `update_face_cachel_data' has not done so.
4277
4278 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
4279
4280         * search.c (string_match_1): Don't set last_thing_searched
4281         when search failed.
4282
4283 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
4284
4285         * buffer.c: Include casetab.h
4286         (common_init_complex_vars_of_buffer): Use new case-table object.
4287         * buffer.h: Include casetab.h
4288         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
4289         (DOWNCASE_TABLE_OF): Ditto.
4290         * bufslots.h: Remove char-tables and add case-table.
4291         * casetab.c: Include casetab.h
4292         (CASE_TABLE_P): Removed.
4293         (mark_case_table): New function.
4294         (allocate_case_table): New function.
4295         (Fcase_table_p): Use new case-table.
4296         (case_table_char): New function.
4297         (Fget_case_table): Ditto.
4298         (Fput_case_table): Ditto.
4299         (Fput_case_table_pair): Ditto.
4300         (Fcopy_case_table): Ditto.
4301         (Fcurrent_case_table): Return case-table.
4302         (Fstandard_case_table): Return case-table.
4303         (Fset_case_table): Fix doc-string.
4304         (set_case_table): Use case-table
4305         (syms_of_casetab): DEFSUBR new functions.
4306         (complex_vars_of_casetab): Set up standard case-table.
4307         * casetab.h: New file.
4308         * editfns.c: Include casetab.h
4309         (Fcompare_buffer_substrings): Use case-table.
4310         * inline.c: Include casetab.h
4311         * lisp.h: Remove bogus extern.
4312         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
4313         * search.c: Include casetab.h
4314         (TRANSLATE_ASCII): Removed.
4315         (TRANSLATE): Unconditionally translate character.
4316         (looking_at_1): Use case-table.
4317         (string_match_1): Ditto.
4318         (fast_string_match): Ditto.
4319         (search_command): Ditto.
4320         (search_buffer): Separate boyer_moore.  Check whether
4321         boyer_moore is possible.
4322         (simple_search): New function.
4323         (boyer_moore): Separated from search_buffer. Translate char.
4324
4325 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
4326
4327         * regex.c (RE_TR_ASCII): Removed.
4328         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
4329         (PATFETCH): Call PATFETCH_RAW.
4330         (PATFETCH_RAW): Fetch Emchar.
4331         (PATUNFETCH): Decrement charptr.
4332         (GET_BUFFER_SPACE): Rename b to buf_end.
4333         (BUF_PUSH): Ditto.
4334         (BUF_PUSH_2): Ditto.
4335         (BUF_PUSH_3): Ditto.
4336         (EXTEND_BUFFER): Ditto.
4337         (SET_LIST_BIT): Ditto.
4338         (regex_compile): Ditto.  Translate non ASCII char.
4339         (compile_range): Ditto.
4340         (re_search_2): Ditto.
4341         (re_match_2_internal): Compare Emchar.
4342         (bcmp_translate): Ditto.
4343
4344 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
4345
4346         * lisp.h (basic char/int typedefs):  comment improvement.
4347
4348 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
4349
4350         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
4351         unstomp inhibit_site_lisp.  Improve comments.
4352
4353 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
4354
4355         * mule-charset.c (Fcharset_property):  improve type checking, comments.
4356
4357 2000-11-28  Andy Piper  <andy@xemacs.org>
4358
4359         * redisplay-output.c (redisplay_output_subwindow): make sure we do
4360         clipped display for windows in the gutter also.
4361         (redisplay_display_boxes_in_window_p): change semantics of return
4362         codes to be more intuitive.
4363
4364         * gutter.h: declare display_boxes_in_gutter_p.
4365
4366         * gutter.c (display_boxes_in_gutter_p): new function for
4367         redisplay.
4368
4369 2000-11-22  Andy Piper  <andy@xemacs.org>
4370
4371         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
4372         autodetect domain.
4373
4374 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
4375
4376         * callproc.c (Fold_call_process_internal):
4377         * gpm.c (Freceive_gpm_event):
4378         (tty_get_foreign_selection): Might be just warning supression.
4379         * fileio.c (Fwrite_region_internal):
4380         (Fset_visited_file_modtime):
4381         * keymap.c (event_matches_key_specifier_p):
4382         Initialize GCPROed variable.
4383
4384         * menubar-x.c (command_builder_find_menu_accelerator):
4385         Initialize before use.
4386
4387 2000-11-23  Andy Piper  <andy@xemacs.org>
4388
4389         * unexcw.c (unexec): make the resulting executable executable.
4390
4391 2000-11-21  Martin Buchholz  <martin@xemacs.org>
4392
4393         * doc.c (get_doc_string):
4394         Use size_t, not int, for result of XSTRING_LENGTH.
4395
4396         * cmds.c (Fdelete_char):
4397         * cmds.c (Fpoint_at_eol):
4398         * cmds.c (Fself_insert_command):
4399         Use EMACS_INT, not int, for result of XINT.
4400         Someday, someone will want to insert more than 2**31 identical characters.
4401
4402         * cmds.c (Fdelete_char):
4403         * cmds.c (Fdelete_backward_char):
4404         * syntax.c (Fforward_word):
4405         * syntax.c (Fforward_comment):
4406         Make COUNT argument optional, for consistency with forward-char et al.
4407
4408 2000-11-22  Martin Buchholz  <martin@xemacs.org>
4409
4410         * lisp.h:
4411         * print.c (long_to_string):
4412         Return a useful value: the pointer at end of data written.
4413
4414         * doprnt.c:
4415         Use `static const char * const' for constant strings.
4416         (union printf_arg): Delete `i', `ui' members.
4417         (get_doprnt_args):
4418         (emacs_doprnt_1):
4419         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
4420         Do all printf-ing via the `l' specifier.
4421         Use EMACS_INT instead of int.
4422         Optimize.
4423
4424 2000-11-20  Didier Verna  <didier@xemacs.org>
4425
4426         * faces.c (update_face_cachel_data): don't frob the background
4427         pixmap when the window is being created. The face is needed but
4428         does not exist yet.
4429
4430 2000-11-20  Andy Piper  <andy@xemacs.org>
4431
4432         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
4433         messing with a debug environment.
4434
4435 2000-11-20  Martin Buchholz  <martin@xemacs.org>
4436
4437         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
4438
4439 2000-11-20  Martin Buchholz  <martin@xemacs.org>
4440
4441         * casetab.c (Fcase_table_p): Fix compile error and crash.
4442
4443 2000-11-18  Philip Aston  <philipa@mail.com>
4444
4445         * s/cygwin32.h: Cygwin has SVR4-like pty support.
4446
4447 2000-11-18  Martin Buchholz  <martin@xemacs.org>
4448
4449         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
4450         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
4451
4452 2000-11-17  Martin Buchholz  <martin@xemacs.org>
4453
4454         * config.h.in: Define HAVE_ELF_H if elf.h exists.
4455         * unexelf.c: Use HAVE_ELF_H.
4456         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
4457         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
4458         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
4459         Greg Harrington <greg_harrington@hotmail.com> provided a machine
4460         for testing.
4461         So this is an unexelfsgi.c from a different line of development.
4462
4463 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
4464
4465         * regex.c (RE_TR_ASCII): New function.
4466         (RE_TRANSLATE): Call it.
4467
4468 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
4469
4470         * buffer.h (TRT_TABLE_OF): Remove assert.
4471         (IN_TRT_TABLE_DOMAIN): Removed.
4472
4473 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
4474
4475         * free-hook.c (log_gcpro):
4476         (show_gcprohist): Add support for GCPRO5.
4477
4478 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
4479
4480         * emacs.c (main_1): Improve -sd error message when --pdump=no.
4481
4482 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
4483
4484         * symeval.h: Declare flush_all_buffer_local_cache.
4485
4486         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
4487         (flush_buffer_local_cache): Added.
4488         (flush_all_buffer_local_cache): Added.
4489
4490         * lrecord.h: Remove unused XD_LO_RESET_NIL.
4491
4492         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
4493         (pdump_dump_data): Ditto.
4494         (pdump_reloc_one): Ditto.
4495         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
4496         before dumping.
4497
4498
4499 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
4500
4501         * buffer.c: Remove if 0'ed entry.
4502         * buffer.h: Rewrite TRT to use char-table.
4503         * bufslots.h: Remove mirror tables.
4504         * casetab.c: Remove mirror tables.
4505         (CASE_TABLE_P): New macro.
4506         (Fcase_table_p): Element of a case table is string or char-table.
4507         (make_mirror_trt_table): Removed.
4508         (set_case_table): Setup char-table from strings for backward
4509         compatibility.
4510         * dired.c (Fdirectory_files):
4511         * dired-msw.c: (mswindows_get_files):
4512         * lisp.h: Change prototype of re_pattern_buffer.
4513         * regex.c: (RE_TRANSLATE): New macro.
4514         (TRANSLATE_P): Ditto.
4515         Change translate to type RE_TRANSLATE_TYPE.
4516         * regex.h: Define RE_TRANSLATE_TYPE
4517         * search.c (TRANSLATE): New macro.
4518         (TRANSLATE_ASCII): New macro.
4519         Translate table is changed to Lisp_Object.
4520         (signal_failure): Inhibit return.
4521
4522 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
4523
4524         * device-msw.c:
4525         * eldap.c:
4526         * event-Xt.c:
4527         * event-stream.c:
4528         * print.c:
4529         Do UNGCPRO before return.
4530
4531 2000-11-14  Martin Buchholz <martin@xemacs.org>
4532
4533         * XEmacs 21.2.37 is released.
4534
4535 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
4536
4537         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
4538         Add comments about discarded return value.
4539
4540 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
4541
4542         * callint.c:
4543         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
4544
4545 2000-10-27  Andy Piper  <andy@xemacs.org>
4546
4547         * gutter.c (Fset_default_gutter_position): default left and right
4548         gutters to visible.
4549         (calculate_gutter_size): calculate resonable heuristic for left
4550         and right gutter sizes.
4551         (specifier_vars_of_gutter): change left and right gutter sizes to
4552         autodetect.
4553         (calculate_gutter_size_from_display_lines): new function.
4554         (output_gutter): check for resizing on left and right gutters.
4555         (clear_gutter): don't special case top and left gutters.
4556         (specifier_vars_of_gutter): use new signature for
4557         set_specifier_caching.
4558
4559         * glyphs-x.c (x_redisplay_widget): spelling fix.
4560         * glyphs.c (specifier_vars_of_glyphs):
4561         * menubar.c (specifier_vars_of_menubar):
4562         * redisplay.c (specifier_vars_of_redisplay):
4563         * toolbar.c (specifier_vars_of_toolbar):
4564         * window.c (specifier_vars_of_window):
4565         * scrollbar.c (specifier_vars_of_scrollbar):
4566         (complex_vars_of_scrollbar): use new signature for
4567         set_specifier_caching.
4568
4569         * specifier.c (set_specifier_caching): include recompute flag.
4570         (recompute_one_cached_specifier_in_window): always recompute if
4571         flag set.
4572         (recompute_one_cached_specifier_in_frame): ditto.
4573
4574         * specifier.h (struct specifier_caching): add recompute flag.
4575
4576 2000-10-24  Andy Piper  <andy@xemacs.org>
4577
4578         * unexcw.c (copy_executable_and_dump_data_section): add new
4579         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
4580         5.0 happy.
4581
4582 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
4583
4584         * console-x.h (x_device): New member modifier_release_time.
4585         * event-Xt.c (x_handle_sticky_modifiers):
4586         Bound interval modifier keys are sticky.
4587         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
4588         * events.h: extern it.
4589
4590 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
4591
4592         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
4593
4594 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
4595
4596         * event-stream.c (execute_command_event): Preserve current_events
4597         and the like when event is misc-user-event.
4598         Inhibit quit during the call to maybe_echo_keys.
4599
4600 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
4601
4602         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
4603         symlink when buffer is killed.
4604         (inhibit_clash_detection): New variable.
4605
4606 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
4607
4608         * console.c (Fset_input_method): Trigger redisplay on tty.
4609
4610 2000-11-07  Martin Buchholz  <martin@xemacs.org>
4611
4612         * process.c (Fprocess_status): Revert to previous behavior:
4613         (process-status "nosuchprocess") ==> nil
4614
4615 2000-11-06  Martin Buchholz  <martin@xemacs.org>
4616
4617         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
4618         Work around another GCC 2.95.2 optimizer bug.
4619
4620 2000-11-02  Martin Buchholz  <martin@xemacs.org>
4621
4622         * process.c (Fget_process): Use LIST_LOOP_2.
4623         (kill_buffer_processes): Use LIST_LOOP_2.
4624
4625         * minibuf.c (Fall_completions):
4626         Delete old non-functional code for FSF fourth argument.
4627
4628         * frame.c (frame_matches_frame_spec):
4629         Renamed from `frame_matches_frametype'.  Update all callers.
4630         (device_matches_device_spec):
4631         Renamed from 'device_matches_console_spec'.  Update all callers.
4632
4633         * doc.c (Fsubstitute_command_keys):
4634         Remove buffer overflow crash.  Small code cleanups.
4635
4636         * casetab.c (check_case_table): Simpler code.
4637
4638         * window.c (Freplace_buffer_in_windows):
4639         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
4640         (and similar implementation) as Fdelete_windows_on.
4641         Update all callers.
4642
4643         * alloc.c (Fmake_list):
4644         * alloc.c (make_vector):
4645         * alloc.c (Fmake_vector):
4646         * alloc.c (make_bit_vector):
4647         * alloc.c (Fmake_bit_vector):
4648         * alloc.c (Fbit_vector):
4649         * alloc.c (Fmake_string):
4650         * alloc.c (Fpurecopy):
4651         * alloc.c (Fmemory_limit):
4652         * buffer.c:
4653         * buffer.c (Fget_buffer):
4654         * buffer.c (Fkill_buffer):
4655         * buffer.c (complex_vars_of_buffer):
4656         * bytecode.c (Fcompiled_function_stack_depth):
4657         * callint.c (Fprefix_numeric_value):
4658         * event-stream.c:
4659         * event-stream.c (Fread_key_sequence):
4660         * casetab.c:
4661         * casetab.c (Fcase_table_p):
4662         * casetab.c (check_case_table):
4663         * casetab.c (Fset_case_table):
4664         * casetab.c (Fset_standard_case_table):
4665         * chartab.c:
4666         * chartab.c (Fchar_table_type):
4667         * chartab.c (Freset_char_table):
4668         * chartab.c (Fget_char_table):
4669         * chartab.c (Fget_range_char_table):
4670         * chartab.c (Fput_char_table):
4671         * chartab.c (Fmap_char_table):
4672         * chartab.c (Fcategory_table_p):
4673         * chartab.c (Fcheck_category_at):
4674         * chartab.c (Fchar_in_category_p):
4675         * chartab.c (Fcategory_table):
4676         * chartab.c (Fcopy_category_table):
4677         * chartab.c (Fset_category_table):
4678         * chartab.c (Fcategory_designator_p):
4679         * chartab.c (Fcategory_table_value_p):
4680         * cmds.c (Fdelete_char):
4681         * cmds.c (Fdelete_backward_char):
4682         * cmds.c (Fself_insert_command):
4683         * cmds.c (Fself_insert_internal):
4684         * console.c (Fvalid_console_type_p):
4685         * console.c (Fcdfw_console):
4686         * console.c (Fconsole_type):
4687         * console.c (Fconsole_name):
4688         * console.c (Fconsole_device_list):
4689         * console.c (Fconsole_on_window_system_p):
4690         * data.c:
4691         * data.c (Feq):
4692         * data.c (Fold_eq):
4693         * data.c (Fsubr_interactive):
4694         * data.c (Fchar_to_int):
4695         * data.c (Fint_to_char):
4696         * data.c (Fsetcar):
4697         * data.c (Fsetcdr):
4698         * data.c (Fnumber_to_string):
4699         * data.c (Fstring_to_number):
4700         * data.c (Frem):
4701         * database.c (mark_database):
4702         * database.c (finalize_database):
4703         * database.c (Fdatabase_live_p):
4704         * database.c (Fdatabasep):
4705         * device-x.c (Fx_get_resource):
4706         * device.c (Fdfw_device):
4707         * dired.c:
4708         * dired.c (Ffile_name_completion):
4709         * dired.c (Ffile_name_all_completions):
4710         * dired.c (Fuser_name_completion):
4711         * dired.c (Fuser_name_completion_1):
4712         * dired.c (Fuser_name_all_completions):
4713         * doc.c (Fdocumentation):
4714         * doc.c (Fdocumentation_property):
4715         * doc.c (Fsubstitute_command_keys):
4716         * editfns.c:
4717         * editfns.c (Fchar_to_string):
4718         * editfns.c (Fstring_to_char):
4719         * editfns.c (Ftemp_directory):
4720         * editfns.c (Finsert_char):
4721         * editfns.c (Fbuffer_substring_no_properties):
4722         * editfns.c (Fnarrow_to_region):
4723         * editfns.c (Fchar_equal):
4724         * editfns.c (Fchar_Equal):
4725         * editfns.c (Ftranspose_regions):
4726         * emacs.c (Fdump_emacs):
4727         * eval.c (Fthrow):
4728         * eval.c (Fcommand_execute):
4729         * eval.c (Fautoload):
4730         * eval.c (Fbacktrace):
4731         * eval.c (Fbacktrace_frame):
4732         * events.c:
4733         * events.c (Fcopy_event):
4734         * events.c (Fcharacter_to_event):
4735         * events.c (Fevent_button):
4736         * events.c (Fevent_process):
4737         * extents.c:
4738         * extents.c (Fnext_extent_change):
4739         * extents.c (Fextent_property):
4740         * faces.c (Ffacep):
4741         * faces.c (Fmake_face):
4742         * file-coding.c:
4743         * file-coding.c (Fencode_shift_jis_char):
4744         * file-coding.c (Fencode_big5_char):
4745         * fileio.c (Ffile_name_directory):
4746         * fileio.c (Ffile_name_nondirectory):
4747         * fileio.c (Ffile_name_as_directory):
4748         * fileio.c (Fdirectory_file_name):
4749         * fileio.c (Ffile_truename):
4750         * fileio.c (Fsubstitute_in_file_name):
4751         * fileio.c (Ffile_modes):
4752         * fileio.c (Fset_file_modes):
4753         * fileio.c (Fset_default_file_modes):
4754         * fileio.c (Fverify_visited_file_modtime):
4755         * floatfns.c (Facos):
4756         * floatfns.c (Fasin):
4757         * floatfns.c (Fatan):
4758         * floatfns.c (Fcos):
4759         * floatfns.c (Fsin):
4760         * floatfns.c (Ftan):
4761         * floatfns.c (Fbessel_j0):
4762         * floatfns.c (Fbessel_j1):
4763         * floatfns.c (Fbessel_jn):
4764         * floatfns.c (Fbessel_y0):
4765         * floatfns.c (Fbessel_y1):
4766         * floatfns.c (Fbessel_yn):
4767         * floatfns.c (Ferf):
4768         * floatfns.c (Ferfc):
4769         * floatfns.c (Flog_gamma):
4770         * floatfns.c (Fexp):
4771         * floatfns.c (Fexpt):
4772         * floatfns.c (Flog):
4773         * floatfns.c (Flog10):
4774         * floatfns.c (Fsqrt):
4775         * floatfns.c (Fcube_root):
4776         * floatfns.c (Facosh):
4777         * floatfns.c (Fasinh):
4778         * floatfns.c (Fatanh):
4779         * floatfns.c (Fcosh):
4780         * floatfns.c (Fsinh):
4781         * floatfns.c (Ftanh):
4782         * floatfns.c (Fabs):
4783         * floatfns.c (Ffloat):
4784         * floatfns.c (Flogb):
4785         * floatfns.c (Fceiling):
4786         * floatfns.c (Ffloor):
4787         * floatfns.c (Fround):
4788         * floatfns.c (Ftruncate):
4789         * floatfns.c (Ffceiling):
4790         * floatfns.c (Fffloor):
4791         * floatfns.c (Ffround):
4792         * floatfns.c (Fftruncate):
4793         * fns.c (Fstring_equal):
4794         * fns.c (Fstring_lessp):
4795         * fns.c (concat2):
4796         * fns.c (concat3):
4797         * fns.c (vconcat2):
4798         * fns.c (vconcat3):
4799         * fns.c (Fsubstring):
4800         * fns.c (Fassoc):
4801         * fns.c (Fold_assoc):
4802         * fns.c (assoc_no_quit):
4803         * fns.c (Fassq):
4804         * fns.c (Fold_assq):
4805         * fns.c (assq_no_quit):
4806         * fns.c (Frassoc):
4807         * fns.c (Fold_rassoc):
4808         * fns.c (Frassq):
4809         * fns.c (Fold_rassq):
4810         * fns.c (rassq_no_quit):
4811         * fns.c (Fremassoc):
4812         * fns.c (remassoc_no_quit):
4813         * fns.c (Fremassq):
4814         * fns.c (remassq_no_quit):
4815         * fns.c (Fremrassoc):
4816         * fns.c (Fremrassq):
4817         * fns.c (remrassq_no_quit):
4818         * fns.c (Fsort):
4819         * fns.c (Fplist_get):
4820         * fns.c (Fplist_put):
4821         * fns.c (Fplist_remprop):
4822         * fns.c (Fplist_member):
4823         * fns.c (Flax_plist_get):
4824         * fns.c (Flax_plist_put):
4825         * fns.c (Flax_plist_remprop):
4826         * fns.c (Flax_plist_member):
4827         * fns.c (Fequal):
4828         * fns.c (Fold_equal):
4829         * fns.c (Frequire):
4830         * fns.c (Fbase64_encode_region):
4831         * fns.c (Fbase64_encode_string):
4832         * fns.c (Fbase64_decode_region):
4833         * frame.c:
4834         * frame.c (frame_matches_frame_spec):
4835         * frame.c (device_matches_device_spec):
4836         * frame.c (next_frame):
4837         * frame.c (previous_frame):
4838         * frame.c (Fnext_frame):
4839         * frame.c (Fprevious_frame):
4840         * frame.c (Fframe_property):
4841         * frame.c (Fset_frame_height):
4842         * frame.c (Fset_frame_size):
4843         * frame.h:
4844         * glyphs.c:
4845         * glyphs.c (if):
4846         * glyphs.c (decode_error_behavior_flag):
4847         * glyphs.c (Fmake_image_instance):
4848         * indent.c (Findent_to):
4849         * intl.c (Fignore_defer_gettext):
4850         * keymap.c (Fkeymapp):
4851         * keymap.c (Flookup_key):
4852         * lread.c:
4853         * lread.c (Fload_internal):
4854         * lread.c (Feval_buffer):
4855         * lread.c (Feval_region):
4856         * macros.c (Fexecute_kbd_macro):
4857         * marker.c (set_marker_internal):
4858         * marker.c (Fset_marker):
4859         * marker.c (set_marker_restricted):
4860         * marker.c (Fcopy_marker):
4861         * marker.c (noseeum_copy_marker):
4862         * menubar.c:
4863         * menubar.c (Fpopup_menu):
4864         * minibuf.c:
4865         * mule-charset.c (Fcharset_name):
4866         * mule-charset.c (Fchar_charset):
4867         * mule-charset.c (Fchar_octet):
4868         * mule-charset.c (Fsplit_char):
4869         * mule-wnnfns.c (Fwnn_open):
4870         * mule-wnnfns.c (Fwnn_dict_comment):
4871         * mule-wnnfns.c (Fwnn_quit_henkan):
4872         * mule-wnnfns.c (Fwnn_word_toroku):
4873         * mule-wnnfns.c (Fwnn_word_sakujo):
4874         * mule-wnnfns.c (Fwnn_word_use):
4875         * mule-wnnfns.c (Fwnn_hindo_set):
4876         * objects.c:
4877         * objects.c (Fmake_color_instance):
4878         * objects.c (Fmake_font_instance):
4879         * print.c (Fwrite_char):
4880         * process.c:
4881         * process.c (mark_process):
4882         * process.c (print_process):
4883         * process.c (get_process_from_usid):
4884         * process.c (Fprocessp):
4885         * process.c (Fprocess_live_p):
4886         * process.c (Fget_process):
4887         * process.c (Fget_buffer_process):
4888         * process.c (get_process):
4889         * process.c (Fprocess_id):
4890         * process.c (Fprocess_name):
4891         * process.c (Fprocess_command):
4892         * process.c (init_process_io_handles):
4893         * process.c (start_process_unwind):
4894         * process.c (Fstart_process_internal):
4895         * process.c (Fopen_multicast_group_internal):
4896         * process.c (Fset_process_window_size):
4897         * process.c (read_process_output):
4898         * process.c (send_process):
4899         * process.c (Fprocess_tty_name):
4900         * process.c (Fset_process_buffer):
4901         * process.c (Fprocess_buffer):
4902         * process.c (Fprocess_mark):
4903         * process.c (set_process_filter):
4904         * process.c (Fset_process_filter):
4905         * process.c (Fprocess_filter):
4906         * process.c (Fprocess_send_region):
4907         * process.c (Fprocess_send_string):
4908         * process.c (exec_sentinel):
4909         * process.c (Fset_process_sentinel):
4910         * process.c (Fprocess_sentinel):
4911         * process.c (status_notify):
4912         * process.c (Fprocess_status):
4913         * process.c (Fprocess_exit_status):
4914         * process.c (process_send_signal):
4915         * process.c (Fprocess_send_eof):
4916         * process.c (deactivate_process):
4917         * process.c (remove_process):
4918         * process.c (Fdelete_process):
4919         * process.c (kill_buffer_processes):
4920         * process.c (Fprocess_kill_without_query):
4921         * process.c (Fprocess_kill_without_query_p):
4922         * rangetab.c:
4923         * rangetab.c (Fget_range_table):
4924         * rangetab.c (Fput_range_table):
4925         * rangetab.c (Fremove_range_table):
4926         * rangetab.c (Fclear_range_table):
4927         * search.c:
4928         * search.c (Fskip_chars_forward):
4929         * search.c (Fskip_chars_backward):
4930         * search.c (Fskip_syntax_forward):
4931         * search.c (Fskip_syntax_backward):
4932         * search.c (search_command):
4933         * search.c (Freplace_match):
4934         * search.c (Fregexp_quote):
4935         * select.c (Fown_selection_internal):
4936         * select.c (Fselection_owner_p):
4937         * select.c (Fselection_exists_p):
4938         * select.c (Fget_selection_internal):
4939         * specifier.c:
4940         * symbols.c:
4941         * symbols.c (Fintern):
4942         * symbols.c (Fintern_soft):
4943         * symbols.c (Funintern):
4944         * symbols.c (Fapropos_internal):
4945         * symbols.c (Fset_default):
4946         * syntax.c:
4947         * syntax.c (Fsyntax_table_p):
4948         * syntax.c (Fcopy_syntax_table):
4949         * syntax.c (Fset_syntax_table):
4950         * syntax.c (Fchar_syntax):
4951         * syntax.c (syntax_match):
4952         * syntax.c (Fmatching_paren):
4953         * syntax.c (Fforward_word):
4954         * syntax.c (scan_lists):
4955         * syntax.c (Fscan_lists):
4956         * syntax.c (Fscan_sexps):
4957         * syntax.c (Fparse_partial_sexp):
4958         * toolbar.c (Fcheck_toolbar_button_syntax):
4959         * tooltalk.doc:
4960         * window.c:
4961         * window.c (Fwindowp):
4962         * window.c (Fwindow_live_p):
4963         * window.c (Fwindow_point):
4964         * window.c (Fdelete_window):
4965         * window.c (Fnext_window):
4966         * window.c (Fprevious_window):
4967         * window.c (Fother_window):
4968         * window.c (window_loop):
4969         * window.c (Fget_lru_window):
4970         * window.c (Fsplit_window):
4971         * window.c (Fenlarge_window):
4972         * window.c (Fenlarge_window_pixels):
4973         * window.c (Fshrink_window):
4974         * window.c (Fshrink_window_pixels):
4975         * window.c (change_window_height):
4976         * window.c (Fwindow_configuration_p):
4977         * window.c (Fcurrent_window_configuration):
4978         * window.h:
4979         * casefiddle.c (casify_object):
4980         * casefiddle.c (Fupcase):
4981         * casefiddle.c (Fdowncase):
4982         * casefiddle.c (Fcapitalize):
4983         * casefiddle.c (Fupcase_initials):
4984         * casefiddle.c (casify_region_internal):
4985         * casefiddle.c (casify_region):
4986         * casefiddle.c (Fupcase_region):
4987         * casefiddle.c (Fdowncase_region):
4988         * casefiddle.c (Fcapitalize_region):
4989         * casefiddle.c (Fupcase_initials_region):
4990         * casefiddle.c (Fupcase_word):
4991         * casefiddle.c (Fdowncase_word):
4992         * casefiddle.c (Fcapitalize_word):
4993         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
4994         Replace 0 with '\0' when working with bytes.
4995         Replace initial "(" with "\(" in docstrings.
4996
4997 2000-11-01  Martin Buchholz  <martin@xemacs.org>
4998
4999         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
5000
5001         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
5002
5003 2000-10-31  Martin Buchholz  <martin@xemacs.org>
5004
5005         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
5006
5007 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5008
5009         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
5010         correctly.
5011
5012 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5013
5014         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
5015         (inhibit_auto_save_session): New variable.
5016         (vars_of_fileio): Declare and initialize them.
5017         * fileio.c (Fdo_auto_save): Don't create session file if
5018         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
5019
5020 2000-10-31  Martin Buchholz  <martin@xemacs.org>
5021
5022         * sgiplay.c (play_internal): C++ compilability.
5023         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
5024         * callproc.c (Fold_call_process_internal):
5025         Remove unused vars `env', `first'.
5026         * scrollbar.c (update_scrollbar_instance):
5027         #### unused var `current_window'.
5028         * redisplay-tty.c: Put currently unused vars insert_mode_on,
5029         etc. within #ifdef NOT_YET.
5030         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
5031         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
5032         * specifier.c (specifier_instance):
5033         #### unused var `tag'.
5034         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
5035
5036 2000-10-27  Martin Buchholz  <martin@xemacs.org>
5037
5038         * fns.c (Fbutlast):
5039         * fns.c (list_sort):
5040         * fns.c (Ffillarray):
5041         * fns.c (bytecode_nconc2):
5042         * fns.c (Fnconc):
5043         * fns.c (mapcar1):
5044         * fns.c (Fmapconcat):
5045         Be pedantically 64-bit correct.  For the time when someone will
5046         want to have a list with length > 2**32.
5047
5048         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
5049         Work around MIPSpro compiler bug.
5050
5051         * process-unix.c (unix_kill_child_process): Add snarky comment.
5052         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
5053
5054         * config.h.in: Oops, _getpt ==> _getpty
5055
5056 2000-10-26  Martin Buchholz  <martin@xemacs.org>
5057
5058         * config.h.in:
5059         * regex.c:
5060         Use void*, not char*, as return type of alloca().
5061
5062         * alloc.c (free_marker): Side effect inside assert expression!
5063
5064 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
5065
5066         * mule-charset.c (Fset_charset_ccl_program): To check
5067         if the given ccl program is valid, use setup_ccl_program()
5068         instead of CHECK_VECTOR().
5069         (Fmake_charset): Likewise.
5070
5071 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
5072
5073         * faces.c (get_extent_fragment_face_cache_index):
5074         Fix cachel.merged_faces memory leak.
5075
5076 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
5077
5078         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
5079         Reset MSB of octets obtained by DECODE_SJIS
5080         because of the incompatibility with Emacs.
5081         (ccl_driver)<CCL_ENCODE_SJIS>:
5082         Set MSB of octets before passing them to
5083         ENCODE_SJIS because of the incompatibility
5084         with Emacs.
5085
5086 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
5087
5088         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
5089         (DECLARE_LRECORD): Undo the last change.
5090         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
5091
5092 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
5093
5094         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
5095         the implementation to lrecord_implementations_table.
5096
5097 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
5098
5099         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
5100         initial value of `lrecord_type_##c_name' and
5101         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
5102         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
5103         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
5104         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
5105         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
5106
5107 2000-10-17  Martin Buchholz  <martin@xemacs.org>
5108
5109         * miscplay.c (sndcnv8S_2mono):
5110         (sndcnv2monounsigned):
5111         (sndcnvULaw_2linear):
5112         (sndcnv16swap):
5113         Remove implementation-defined behavior.
5114
5115 2000-10-12  Martin Buchholz  <martin@xemacs.org>
5116
5117         * input-method-xlib.c: Warning suppression.
5118
5119 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
5120
5121         * mule-ccl.c: Sync up with Emacs 21.0.90.
5122         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
5123         Do nothing.
5124         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
5125         Likewise.
5126         (ccl_driver[WriteMultibyteChar2]): Bug fix.
5127         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
5128         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
5129         leading char belongs to official 2-dimensional charset.
5130         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
5131         write the given character as is.  Otherwise,
5132         if it is a multibyte char, convert it by
5133         non_ascii_set_charptr_emchar, then write it.
5134         (CCL_WRITE_STRING): Likewise.
5135         (ccl_get_compiled_code): New function.
5136         (setup_ccl_program): When ccl_prog is invalid,
5137         return -1.
5138         (Fregister_code_conversion_map): New function.
5139         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
5140
5141         * mule-ccl.h: Sync up with Emacs 21.0.90.
5142         (Fregister_ccl_program): export it.
5143
5144         * redisplay-msw.c (separate_textual_runs):
5145         If ccl program is not valid, don't do ccl conversion.
5146
5147         * redisplay-x.c (separate_textual_runs): Ditto.
5148
5149         * file-coding.c (Fmake_coding_system):
5150         When type is ccl and value is vector, register it
5151         with a proper symbol.  And checks whether the
5152         given ccl program is valid.
5153         (mule_decode): When calling ccl_driver, if src indicates
5154         NULL pointer, set an empty string instead.
5155         (mule_encode): Likewise.
5156
5157 2000-10-11  Martin Buchholz  <martin@xemacs.org>
5158
5159         The following large batch of changes gets us back to a state of
5160         C++ compilability.  Extbyte is now a char, which means that
5161         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
5162
5163         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
5164
5165         * sound.c (Fplay_sound): Type correctness.
5166
5167         * select-x.c (hack_motif_clipboard_selection): Type correctness.
5168         (x_get_window_property): Type correctness.
5169         (receive_incremental_selection): unsigned char ==> Extbyte
5170         (selection_data_to_lisp_data): unsigned char ==> Extbyte
5171         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
5172         (Fx_store_cutbuffer_internal): Type correctness.
5173
5174         * process-unix.c (try_to_initialize_subtty): Type correctness.
5175
5176         * objects-x.c (x_print_color_instance): Type correctness.
5177         (x_print_font_instance): Type correctness.
5178         (x_list_fonts): SExtbyte ==> Extbyte.
5179         (valid_x_font_name_p): SExtbyte ==> Extbyte.
5180         (x_find_charset_font): SExtbyte ==> Extbyte.
5181         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
5182         (truename_via_XListFonts): SExtbyte ==> Extbyte.
5183         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
5184         Use bufbyte_strcmp.
5185
5186         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
5187         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
5188         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
5189         (BYTE_C0_P): Use bit ops for char-signedness safety.
5190         (BYTE_C1_P): Use bit ops for char-signedness safety.
5191         (CHARSET_BY_LEADING_BYTE):
5192         (CHARSET_BY_ATTRIBUTES):
5193         Always use inline function.
5194         Use type_checking_assert.
5195         Hide chlook.
5196
5197         * mule-charset.c (non_ascii_charptr_copy_char):
5198         Modify to work with both ASCII and non-ASCII characters.
5199         Improve docs and variable names.
5200         Replace over-clever fall-through switch with a simple loop.
5201         (Lstream_get_emchar_1):
5202         Replace over-clever fall-through switch with a simple loop.
5203
5204         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
5205         Warning suppression.
5206
5207         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
5208         the return value of Lstream_getc, which could be EOF as well.
5209
5210         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
5211
5212         * lisp.h: Make Extbyte a char, not unsigned char, so that external
5213         APIs can be used on Extbytes without casts.  Risky!
5214         (SExtbyte): Remove.
5215         (UExtbyte): Remove.
5216
5217         * input-method-xlib.c (XIM_init_device):
5218         Use Xlib.h instead of IntrinsicP.h.
5219         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
5220         which will break in X11R7.
5221         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
5222         to call XRegisterIMInstantiateCallback with correct types.
5223
5224         * gui-x.c (button_item_to_widget_value): Type correctness.
5225
5226         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
5227
5228         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
5229         (xbm_instantiate_1): Type correctness.
5230         (BUILD_GLYPH_INST):  Type correctness.
5231
5232         * fileio.c (Fsubstitute_in_file_name): Type correctness.
5233
5234         * file-coding.c:
5235         (decode_coding_sjis):
5236         (decode_coding_big5):
5237         (decode_coding_ucs4):
5238         (decode_coding_utf8):
5239         (decode_coding_iso2022):
5240         (decode_coding_no_conversion):
5241         Make all decoding functions take an Extbyte * arg.
5242         (encode_coding_sjis):
5243         (encode_coding_big5):
5244         (encode_coding_ucs4):
5245         (encode_coding_utf8):
5246         (encode_coding_iso2022):
5247         (encode_coding_no_conversion):
5248         Make all encoding functions take a Bufbyte * arg.
5249         Use size_t instead of unsigned int for memory sizes.
5250         Only cast to unsigned char whenever dereferencing Extbyte *.
5251
5252         * doc.c (unparesseuxify_doc_string): Type correctness.
5253
5254         * console-x.c (split_up_display_spec):
5255         Rewrite without using details of internal string representation.
5256         (x_semi_canonicalize_device_connection): Type correctness.
5257
5258         * config.h.in:
5259         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
5260         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
5261         (HAVE_XFREE386): Removed.
5262
5263         * buffer.h (DEC_CHARPTR): `const' correctness.
5264         (bufbyte_strcmp): New.
5265         (bufbyte_memcmp): New.
5266
5267         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
5268
5269         * buffer.h (XCHAR_OR_CHAR_INT):
5270         Always use inline function.
5271         Remove redundant type checking assert() - XINT will abort quite nicely.
5272
5273 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
5274
5275         * search.c (Freplace_match): Set newtext to an empty string.
5276
5277 2000-10-10  Martin Buchholz  <martin@xemacs.org>
5278
5279         * s/decosf1-3.h: Remove #include of stropts.h
5280         * s/ptx.h: Remove #include of stropts.h
5281         * s/usg5-4.h: Remove #include of stropts.h
5282         * sysproc.h:
5283         * config.h.in:
5284         Use stropts.h, not sys/stropts.h.
5285         Use strtio.h, not sys/strtio.h.
5286
5287 2000-10-04  Martin Buchholz <martin@xemacs.org>
5288
5289         * XEmacs 21.2.36 is released.
5290
5291 2000-09-21  Andy Piper  <andy@xemacs.org>
5292
5293         * glyphs-x.c (x_redisplay_widget): make sure non-structural
5294         changes still involve copying the widget tree.
5295         (update_widget_face): make sure a change is register in the widget
5296         tree. Call update_tab_widget_face appropriately.
5297         (update_tab_widget_face): ditto.
5298         (x_tab_control_redisplay): make sure non-structural changes still
5299         involve copying the widget tree.
5300
5301 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
5302
5303         * lread.c (locate_file): Check the path element is non-nil.
5304
5305 2000-10-02  Martin Buchholz  <martin@xemacs.org>
5306
5307         * lisp.h: Warning suppression for SCO compilers.
5308
5309         * redisplay-tty.c (reset_tty_modes): Fix crash.
5310         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
5311
5312 2000-09-27  Martin Buchholz  <martin@xemacs.org>
5313
5314         Big signal/process handling overhaul.  Bugs fixed:
5315         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
5316         M-x comint-kill-subjob should work for both values nil and t of
5317         process-connection-type. It was broken on most platforms.
5318         Testing on Irix and Cygwin still needed.  Other plaforms tested.
5319         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
5320         * process-unix.c: Signal/Process handling overhaul.
5321         (pty_name): make 64 bytes, as `expect' does, for paranoia.
5322         (allocate_pty): Use all available modern methods of allocating
5323         ptys, falling back to old style BSD allocation as a last resort.
5324         Use allegedly more secure Unix98 pty allocation by default.
5325         (allocate_pty_the_old_fashioned_way): New. the last resort.
5326         (unix_create_process): Push ptem, ldterm, ttcompat where
5327         available.  Autoconfiscate.
5328         (try_to_initialize_subtty): New.
5329         (unix_kill_child_process): Proper signal handling for ptys on most
5330         platforms, using special knowledge of AIX, BSD, etc...
5331         (unix_create_process): Always disconnect_controlling_terminal() for
5332         subprocesses, whether using ptys or not.
5333         * process.h: Remove old getpt-dependent PTY code.
5334         * process.c (Fprocess_send_signal): New, obvious generic function.
5335         (decode_signal): New.
5336         (Finterrupt_process):
5337         (Fkill_process):
5338         (Fquit_process):
5339         (Fstop_process):
5340         (Fcontinue_process):
5341         (Fsignal_process): Use decode_signal.
5342         (process_send_signal):
5343         Many docstring corrections.
5344         Allow any signal to be sent to a process object.
5345         * config.h.in: Add symbols for big signal/process overhaul.
5346         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
5347         * sysproc.h: Include process-related headers, where available:
5348         sys/stropts.h sys/strtio.h pty.h libutil.h
5349         * s/irix4-0.h:
5350         * s/irix5-0.h:
5351         * s/cygwin32.h:
5352         * s/gnu.h:
5353         * s/linux.h:
5354         * s/hpux.h:
5355         * s/aix3-1.h:
5356         Remove old S&M pty stuff.
5357         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
5358         * systty.h: Simplify cpp hackery, improve comments.
5359         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
5360
5361         * editfns.c (Fformat_time_string):
5362         Be a little more paranoid with the return value of ctime.
5363
5364         * fileio.c (check_executable):
5365         (check_writable):
5366         Use symbolic constants X_OK, W_OK.
5367
5368         * console-x.c (split_up_display_spec): Fix a warning.
5369
5370 2000-10-02  Martin Buchholz  <martin@xemacs.org>
5371
5372         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
5373         * ntproc.c (sys_spawnve): make_string ==> build_string
5374         Small clarity improvements.
5375
5376 2000-09-30  Martin Buchholz  <martin@xemacs.org>
5377
5378         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
5379
5380         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
5381
5382         * config.h.in (HAVE_STRCASECMP): Remove.
5383
5384 2000-09-29  Martin Buchholz  <martin@xemacs.org>
5385
5386         * redisplay-output.c (redisplay_output_pixmap):
5387         Cleaner and possibly more 64-bit correct code.
5388
5389 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
5390
5391         * dumper.c (pdump_load_finish): move restoration of
5392         `noninteractive1' to emacs.c (main_1).
5393         * emacs.c (main_1): protect LISP-visible command-line flags
5394         from pdump_load().
5395
5396 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
5397
5398         * Makefile.in.in (versionclean):  Use EXE_TARGET and
5399         DUMP_TARGET instead of literal program names.
5400
5401 2000-09-20  Martin Buchholz  <martin@xemacs.org>
5402
5403         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
5404
5405 2000-09-19  Martin Buchholz  <martin@xemacs.org>
5406
5407         * *: Spelling mega-patch
5408
5409 2000-09-19  Martin Buchholz  <martin@xemacs.org>
5410
5411         * fns.c (bad_bad_turtle):
5412         Delete "Eek!" comment, since we fixed the bug to which it refers.
5413
5414 2000-09-16  Martin Buchholz  <martin@xemacs.org>
5415
5416         * alloca.c: Replace REGISTER with register.
5417
5418 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
5419
5420         * file-coding.c (ucs_to_char): Use countof.
5421
5422 2000-09-16  Martin Buchholz  <martin@xemacs.org>
5423
5424         * file-coding.c: (ucs_to_char):
5425         (complex_vars_of_file_coding):
5426         Use countof instead of sizeof.
5427         Use CHECK_NATNUM instead of CHECK_INT.
5428
5429         * sysdep.c (strcasecmp): Remove.
5430         * device-x.c (ascii_strcasecmp): New.
5431         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
5432         Avoid using non-standard non-portable strcasecmp.
5433
5434 2000-09-16  Martin Buchholz  <martin@xemacs.org>
5435
5436         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
5437         * font-lock.c: remove reference to emacsfns.h.
5438         * search.c: small doc improvement.
5439         * event-Xt.c: correct file names in comments.
5440         * console-x.h Correct file names in comments.
5441         * frame.c: Correct file names in comments.
5442         * event-stream.c: remove Energize from comments.
5443
5444 2000-09-15  Martin Buchholz  <martin@xemacs.org>
5445
5446         * symeval.h (DEFERROR_STANDARD):
5447         (DEFERROR):
5448         (DEFSYMBOL):
5449         (DEFSYMBOL_NO_DUMP):
5450         (DEFSYMBOL_MULTIWORD_PREDICATE):
5451         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
5452         (DEFKEYWORD):
5453         The construct &##name is not sensible C.
5454         Fixes compilation errors with Unixware native compiler.
5455
5456 2000-09-14  Martin Buchholz  <martin@xemacs.org>
5457
5458         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
5459         (next_frame_internal): Removed.  We now just have next_frame.
5460         (next_frame):
5461         Write a simpler and cleaner one-pass algorithm.
5462         Remove called_from_delete_device arg and #ifdefed-out code.
5463         (previous_frame):
5464         Renamed from prev_frame.  Update callers.
5465         Cleaned up to have an analogous implementation to next_frame.
5466         (other_visible_frames_internal): Remove the
5467         called_from_delete_device bogus arg, and hence, remove this
5468         function.  Just use other_visible_frames().
5469
5470         * window.c (Fnext_window):
5471         Prettify docstring.
5472         Since next_frame() is guaranteed to return a frame, remove check
5473         for nil inserted in previous patch.
5474         (Fprevious_window):
5475         Prettify docstring.
5476         Make code look more like Fnext_window.
5477         (window_loop):
5478         Respect the `console' arg when iterating through windows.
5479         Fixes bug: (get-buffer-window buffer t device) not respecting
5480         the `device' arg.
5481         This function needs more work, as others have pointed out.
5482
5483         * frame.h: Rename prev_frame to previous_frame.
5484         device_matches_console_spec no longer takes a `frame' arg.
5485
5486         * s/gnu.h:
5487         * s/linux.h:
5488         * s/hpux.h:
5489         Use EMACS_BLOCK_SIGNAL instead of sigblock.
5490         From "Golubev I. N." <gin@mo.msk.ru>.
5491
5492         * make-src-depend: Fix typo.
5493
5494 2000-09-13  Martin Buchholz  <martin@xemacs.org>
5495
5496         * window.c (Fnext_window):
5497         next_frame() might return nil, not a frame.
5498         Fixes this crash:
5499         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
5500
5501         * frame.c (next_frame_internal):
5502         We've passed a frame if we've passed its device.
5503         Fixes this crash:
5504         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
5505 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
5506
5507 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
5508
5509         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
5510         Allow option to suppress accelerators in menu/dialog items.
5511         (populate_or_checksum_helper): Pass dialog title through above.
5512
5513 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
5514
5515         * event-msw.c (mswindows_key_to_emacs_keysym):
5516         Add "pause" key, fix "menu" key.
5517
5518 2000-09-09  Martin Buchholz  <martin@xemacs.org>
5519
5520         * eval.c (reinit_vars_of_eval):
5521         Increase max_lisp_eval_depth to 1000,
5522         required for thai-xtis.el to byte-compile under some circumstances.
5523
5524 2000-09-04  Martin Buchholz  <martin@xemacs.org>
5525
5526         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
5527         From Kenichi Handa.
5528
5529 2000-09-01  Martin Buchholz  <martin@xemacs.org>
5530
5531         * make-src-depend: Make the generated Makefiles smaller.
5532
5533         * s/hpux.h (SETUP_SLAVE_PTY):
5534         Provide a %d in the format string for the errno argument.
5535
5536         * editfns.c (Ftemp_directory):
5537         Warning fix.
5538         Avoid buffer overrun on very long file name.
5539
5540         * input-method-xlib.c (XIM_init_device):
5541         6th parameter of XRegisterIMInstantiateCallback has different
5542         pointer types on different OSes, so simply cast to (void *).
5543
5544         * unexhp9k800.c: Warning fixes.  Fiddly changes.
5545
5546         * sysdll.c (dll_open):
5547         shl_load will hang hard if passed a NULL filename.
5548         Simply return NULL for compatibility with dlopen.
5549         * sysdll.c: Conform to XEmacs coding standards.
5550
5551         * sysdep.c (get_pty_max_bytes):
5552         Support pty input lines longer than 512 bytes on HP-UX 10.20.
5553
5554 2000-08-31  Martin Buchholz  <martin@xemacs.org>
5555
5556         * tooltalk.c: Add #include <syssignal.h>
5557
5558 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
5559
5560         * s/hpux.h: Don't use undefined function sigunblock().
5561
5562 2000-08-31  Martin Buchholz  <martin@xemacs.org>
5563
5564         * config.h.in: Add HAVE_BALLOON_HELP.
5565         * emacs.c: Use HAVE_BALLOON_HELP.
5566         * Makefile.in.in (x_objs):
5567         Make Balloon Help conditional on finding shape.h.
5568
5569 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
5570
5571         * syntax.c (regex_emacs_buffer_p): New variable.
5572         * syntax.h (regex_emacs_buffer_p): extern.
5573         * search.c (looking_at_1):
5574         (string_match_1):
5575         (fast_string_match):
5576         (search_buffer): Set regex_emacs_buffer_p.
5577         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
5578         when before_dot, at_dot, after_dot.
5579
5580 2000-08-23  Andy Piper  <andy@xemacs.org>
5581
5582         * gui-x.c (popup_selection_callback): Only set action_occurred
5583         when we really have an image instance.
5584         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
5585
5586 2000-08-23  Andy Piper  <andy@xemacs.org>
5587
5588         * gui-msw.c (mswindows_handle_gui_wm_command): set
5589         action_occurred.
5590         * gui-x.c (popup_selection_callback): ditto.
5591
5592         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
5593         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
5594         (struct Lisp_Image_Instance): add action_occurred flag.
5595
5596         * glyphs.c (redisplay_subwindow): use action_occurred flag.
5597         (image_instance_changed): ditto.
5598         (reset_frame_subwindow_instance_cache): only unmap windows - do
5599         not remove them from the cache also.
5600
5601         * glyphs-widget.c (tab_control_update): better debug.
5602         (progress_gauge_update): ditto.
5603         (layout_update): ditto.
5604         (layout_instantiate): ditto.
5605         (tab_control_order_only_changed): cope with null pending items.
5606
5607         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
5608         debug. Force selection of an item when an action occurred. Cope
5609         with null pending_items.
5610         (mswindows_progress_gauge_redisplay): better debug.
5611         * glyphs-x.c (x_tab_control_redisplay): ditto.
5612
5613         * redisplay.c (redisplay_frame): reset the frame cache if the
5614         frame is garbaged.
5615
5616         * window.c (Fset_window_configuration): potentially re-enable
5617         frame cache reset.
5618         (window_unmap_subwindows): need to finalize instances here since
5619         it is only used in mark_window_as_deleted.
5620
5621 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
5622
5623         * nas.c (SndOpenDataForReading):
5624         nas.c (WaveOpenDataForReading):
5625         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
5626         Somehow escaped from the 2000-08-14 patch.
5627
5628 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5629
5630         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
5631         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
5632
5633 2000-08-21  Andy Piper  <andy@xemacs.org>
5634
5635         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
5636         window if it is not already displayed.
5637
5638         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
5639         it is not already displayed.
5640
5641         * window.c (Fset_window_configuration): don't reset the frame
5642         cache.
5643
5644         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
5645         instances from the frame cache if we are actually finalizing them.
5646         (reset_frame_subwindow_instance_cache): reset frame cache only
5647         after unmapping everything.
5648         (map_subwindow): set displayed flag after mapping.
5649
5650 2000-08-21  Martin Buchholz  <martin@xemacs.org>
5651
5652         * data.c (indirect_function):
5653         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
5654
5655         * eval.c (function_argcount):
5656         Use original function when signaling errors.
5657
5658 2000-08-18  Andy Piper  <andy@xemacs.org>
5659
5660         * frame.c (delete_frame_internal): use new
5661         free_frame_subwindow_instances name.
5662
5663         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
5664         (add_tab_item): make return type correct.
5665         (mswindows_tab_control_instantiate): assert index of tab.
5666         (mswindows_tab_control_redisplay): Re-code to use
5667         gui_item_equal_sans_selected and gui_item_list_find_selected.
5668
5669         * glyphs-widget.c (tab_control_update): Correct comment.
5670
5671         * window.c (window_unmap_subwindows): use new
5672         unmap_subwindow_instance_cache_mapper.
5673         (window_unmap_subwindows_cache_mapper): deleted.
5674         (Fset_window_configuration): comparisons should now be with
5675         EQ. Preserve the subwindow instance cache across configuration
5676         changes.
5677         (allocate_window): ditto.
5678         (make_dummy_parent): ditto.
5679
5680         * glyphs.c (free_frame_subwindow_instances): rename from
5681         free_frame_subwindow_instance_cache. finalize all instances rather
5682         than just those in the display cache.
5683         (finalize_all_subwindow_instances): walk windows unmapping and
5684         finalizing subwindows.
5685         (unmap_subwindow_instance_cache_mapper): moved from
5686         window.c. Allow finalization as well as unmapping.
5687
5688         * gui.c (gui_item_list_find_selected): new function.
5689
5690         * gui.h (gui_item_list_find_selected): declare.
5691
5692         * glyphs-x.c (x_tab_control_redisplay): pick tab
5693         explicitly. Re-code to use gui_item_equal_sans_selected and
5694         gui_item_list_find_selected.
5695
5696         * glyphs-x.h: add lwlib-utils.h
5697
5698         * buffer.c (Frecord_buffer): undo previous change.
5699
5700 2000-08-09  Vin Shelton  <acs@xemacs.org>
5701
5702         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
5703         possible.  Create temporary files more securely.  The patch was
5704         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
5705         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
5706         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
5707         for details.
5708
5709 2000-08-07  Ben Wing  <ben@xemacs.org>
5710
5711         * getloadavg.c: remove duplicate (and windows-breaking)
5712         includes of fcntl.h and sys/file.h.
5713
5714         * nt.c: remove duplicate getloadavg() definition.
5715
5716         * sysdll.h (Qdll_filename_encoding): add missing stand-in
5717         encodings.
5718
5719 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
5720
5721         * eval.c (function_argcount): If function needs to be autoloaded
5722         actually use the loaded definition.
5723         GCPRO function.
5724
5725 2000-08-05  Ben Wing  <ben@xemacs.org>
5726
5727         * getloadavg.c: add prototype for getloadavg().  remove
5728         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
5729         of the code).  remove duplicate header includes.
5730
5731         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
5732
5733         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
5734         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
5735         useful load average.
5736
5737         * alloc.c (reinit_alloc_once_early): removed references to
5738         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
5739         the lisp vars are the only things referencing the malloc_sbrk_*
5740         vars, and they were already if 0'd out.  these vars only exist
5741         in the older malloc.c, which is basically unused, and they're
5742         only for informational purposes.
5743
5744         * m\*.h: removed useless VIRT_ADDR_VARIES.
5745
5746         * m\powerpc.h: removed stray NO_ARG_ARRAY.
5747
5748 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
5749
5750         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
5751         color if the image is a mono pixmap.
5752
5753 2000-07-30  Ben Wing  <ben@xemacs.org>
5754
5755         * Makefile.in.in (release):
5756         Remove stray @.
5757
5758         * buffer.c (directory_is_current_directory):
5759         * dired-msw.c (mswindows_get_files):
5760         * dired.c:
5761         * dired.c (Fdirectory_files):
5762         * dired.c (file_name_completion_stat):
5763         * dired.c (Ffile_attributes):
5764         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
5765         preprocessor tricks, to avoid problems on some machines
5766         (e.g. SCO).
5767
5768         * callproc.c (egetenv): GC docs.
5769
5770         * console-msw.h:
5771         * console-msw.h (struct mswindows_dialog_id):
5772         * lrecord.h (lrecord_type):
5773         New object for use with MSW dialogs.
5774
5775         * console.h (struct console_methods):
5776         New enable/disable frame methods, for proper modal dialogs.
5777
5778         * device-msw.c (msprinter_default_printer): Fix to follow
5779         proper Mule conventions.
5780
5781         * device-msw.c:
5782         * device-msw.c (signal_open_printer_error):
5783         * device-msw.c (msprinter_init_device):
5784         * device-msw.c (ensure_not_printing):
5785         * device-msw.c (plist_get_margin):
5786         * device-msw.c (Fmsprinter_select_settings):
5787         * device-msw.c (finalize_devmode):
5788         * device-msw.c (Fmsprinter_settings_despecialize):
5789         * device-msw.c (signal_enum_priner_error):
5790         * extents.c (decode_extent):
5791         * extents.c (decode_map_extents_flags):
5792         * extents.c (decode_extent_at_flag):
5793         * extents.c (Fextent_at):
5794         * extents.c (Fextents_at):
5795         * extents.c (symbol_to_glyph_layout):
5796         [[[[2]]]] Use structured errors.
5797
5798         * dialog-msw.c:
5799         * dialog-msw.c (mswindows_is_dialog_msg):
5800         * dialog-msw.c (mark_mswindows_dialog_id):
5801         * dialog-msw.c (dialog_proc):
5802         * dialog-msw.c (handle_question_dialog_box):
5803         * dialog-msw.c (syms_of_dialog_mswindows):
5804         Define new object to clean up marking; use it as a dialog identifier.
5805         Call new delete-dialog-box-hook.
5806
5807         * dialog-x.c (dbox_selection_callback):
5808         * dialog-x.c (dbox_descriptor_to_widget_value):
5809         * dialog-x.c (x_make_dialog_box_internal):
5810         Call new delete-dialog-box-hook.
5811         Return an id.
5812
5813         * dialog.c:
5814         * dialog.c (syms_of_dialog):
5815         * dialog.c (vars_of_dialog):
5816         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
5817
5818         * eval.c:
5819         * eval.c (signal_call_debugger):
5820         when noninteractive, output stack traces on the console instead
5821         of in a (never-seen) buffer.
5822
5823         * eval.c (signal_type_error):
5824         * eval.c (invalid_argument_2):
5825         * lisp.h:
5826         new funs for use w/structured errors.
5827
5828         * event-Xt.c:
5829         * event-Xt.c (x_to_emacs_keysym):
5830         * event-Xt.c (describe_event):
5831         * event-Xt.c (emacs_Xt_event_handler):
5832         * event-Xt.c (vars_of_event_Xt):
5833         * event-msw.c:
5834         * event-msw.c (mswindows_wnd_proc):
5835         * event-msw.c (vars_of_event_mswindows):
5836         rename {x,mswindows}-debug-events to debug-{}-events for
5837         consistency with other debug-foo variables.
5838
5839         * event-stream.c:
5840         document next-event more clearly.
5841
5842         * fileio.c (Ffile_name_directory):
5843         * fileio.c (Ffile_name_nondirectory):
5844         * fileio.c (Funhandled_file_name_directory):
5845         * fileio.c (file_name_as_directory):
5846         * fileio.c (Ffile_name_as_directory):
5847         * fileio.c (directory_file_name):
5848         * fileio.c (Fdirectory_file_name):
5849         * fileio.c (Fmake_temp_name):
5850         * fileio.c (Ffile_truename):
5851         * fileio.c (Fsubstitute_in_file_name):
5852         * fileio.c (expand_and_dir_to_file):
5853         * fileio.c (barf_or_query_if_file_exists):
5854         * fileio.c (check_executable):
5855         * fileio.c (Ffile_exists_p):
5856         * fileio.c (Ffile_writable_p):
5857         * fileio.c (Ffile_directory_p):
5858         * fileio.c (Ffile_regular_p):
5859         * fileio.c (Ffile_modes):
5860         * fileio.c (Ffile_newer_than_file_p):
5861         * fileio.c (Fverify_visited_file_modtime):
5862         * fileio.c (Fset_visited_file_modtime):
5863         * fileio.c (auto_save_1):
5864         (1). (2).
5865         fix up gcpro's.
5866
5867         * frame-msw.c:
5868         * frame-msw.c (mswindows_init_frame_1):
5869         * frame-msw.c (mswindows_enable_frame):
5870         * frame-msw.c (error_frame_unsizable):
5871         * frame-msw.c (msprinter_init_frame_1):
5872         * frame-msw.c (msprinter_init_frame_3):
5873         * frame-msw.c (console_type_create_frame_mswindows):
5874         (2).
5875         implement new enable/disable frame methods.
5876
5877         * frame-x.c:
5878         * frame-x.c (x_enable_frame):
5879         * frame-x.c (console_type_create_frame_x):
5880         implement new enable/disable frame methods.
5881
5882         * frame.c:
5883         * frame.c (Fdisable_frame):
5884         * frame.c (syms_of_frame):
5885         * frame.h (struct frame):
5886         implement new enable/disable frame methods/functions.
5887
5888         * general-slots.h:
5889         add initial-focus.
5890
5891         * glyphs-msw.c (mswindows_widget_instantiate):
5892         comment that initial-focus should be implemented.
5893
5894         * glyphs-widget.c:
5895         * glyphs-widget.c (check_valid_instantiator):
5896         * glyphs-widget.c (check_valid_orientation):
5897         * glyphs-widget.c (check_valid_tab_orientation):
5898         * glyphs-widget.c (check_valid_justification):
5899         * glyphs-widget.c (check_valid_border):
5900         * glyphs-widget.c (check_valid_callback):
5901         * glyphs-widget.c (check_valid_int_or_function):
5902         * glyphs-widget.c (check_valid_string_or_vector):
5903         * glyphs-widget.c (check_valid_item_list_1):
5904         * glyphs-widget.c (widget_validate):
5905         * glyphs-widget.c (combo_box_validate):
5906         * glyphs-widget.c (widget_instantiate):
5907         * glyphs-widget.c (syms_of_glyphs_widget):
5908         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
5909         * glyphs-widget.c (image_instantiator_combo_box):
5910         * glyphs-widget.c (image_instantiator_scrollbar):
5911         * glyphs-widget.c (image_instantiator_tab_control):
5912         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
5913         (2).
5914         support (unimplemented) keyword initial-focus.
5915         reindent long macros.
5916
5917         * glyphs-x.c (x_redisplay_widget):
5918         * glyphs-x.c (x_button_instantiate):
5919         * glyphs-x.c (x_button_redisplay):
5920         * glyphs-x.c (x_progress_gauge_instantiate):
5921         * glyphs-x.c (x_edit_field_instantiate):
5922         * glyphs-x.c (x_combo_box_instantiate):
5923         * glyphs-x.c (x_tab_control_instantiate):
5924         * glyphs-x.c (x_label_instantiate):
5925         * gui-x.c:
5926         * gui-x.c (button_item_to_widget_value):
5927         * gui-x.c (gui_items_to_widget_values_1):
5928         * gui-x.c (gui_item_children_to_widget_values):
5929         * gui-x.c (gui_items_to_widget_values):
5930         * gui-x.h:
5931         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
5932         add new flag to gui-parsing routines to indicate whether
5933         accelerator specs should be supported.
5934
5935         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
5936
5937         * glyphs.h (struct Lisp_Image_Instance):
5938         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
5939         add initial-focus flag.
5940
5941         * gui.c:
5942         * gui.c (syms_of_gui):
5943         * gui.c (vars_of_gui):
5944         clean up menu-no-selection-hook.
5945
5946         * gui.h:
5947         support delete-dialog-box-hook.
5948
5949         * lread.c (Fload_internal):
5950         * lread.c (locate_file_in_directory_mapper):
5951         (1).
5952
5953         * lrecord.h:
5954         * lrecord.h (struct toolbar_button):
5955         * lrecord.h (syms_of_toolbar):
5956         document how to create a new object.
5957
5958         * menubar-msw.c (mswindows_char_is_accelerator):
5959         may be called on frames w/o menus.
5960
5961         * menubar.c (vars_of_menubar):
5962         clean up :filter docs.
5963
5964         * nt.c (readdir):
5965         * ntproc.c:
5966         (1).
5967
5968         * process-nt.c:
5969         * process-nt.c (validate_signal_number):
5970         * process-nt.c (signal_cannot_launch):
5971         * process-nt.c (nt_create_process):
5972         * process-nt.c (nt_send_process):
5973         * process-nt.c (nt_kill_child_process):
5974         * process-nt.c (nt_open_network_stream):
5975         * process-nt.c (syms_of_process_nt):
5976         (2).
5977         delete quote-handling.  call new lisp code that does it better.
5978
5979         * process-unix.c (connect_to_file_descriptor):
5980         * process-unix.c (allocate_pty):
5981         * process-unix.c (unix_send_process):
5982         * process-unix.c (unix_kill_child_process):
5983         * process-unix.c (unix_open_network_stream):
5984         * process-unix.c (unix_open_multicast_group):
5985         (1). (2).
5986
5987         * process.c:
5988         * process.c (Fstart_process_internal):
5989         (2).  need to canonicalize process path even if absolute.
5990
5991         * select-msw.c (symbol_to_ms_cf):
5992         * select-msw.c (ms_cf_to_symbol):
5993         * select-msw.c (cf_is_autofreed):
5994         * select-msw.c (mswindows_destroy_selection):
5995         * select.c:
5996         * select.c (syms_of_select):
5997         * select.h:
5998         support dibv5, fix bugs. (from Mike Alexander)
5999
6000         * select.c (Fget_selection_internal):
6001         * select.c (select_convert_out):
6002
6003         * sysdep.c:
6004         * sysdep.c (xemacs_stat):
6005         renamed.
6006
6007         * sysdep.c (mkdir):
6008         * sysdep.c (rmdir):
6009         but keep original stat() here because we provide encapsulation
6010         around these funs.
6011
6012         * sysfile.h:
6013         * sysfile.h (fstat):
6014         remove stat garbage.
6015
6016         * syswindows.h:
6017         fix X/MSW conflict.
6018         don't include tchar.h.  it's inappropriate because it makes
6019         compile-time distinctions when we want runtime distinctions.
6020         (we provide our own tchar replacements)
6021
6022         * toolbar.c:
6023         use default object printer for toolbar-button.
6024
6025         * unexcw.c:
6026         make sure we don't encapsulate.
6027
6028         * window.c (vars_of_window):
6029         emphasize that temp-buffer-show-hook is obsolete.
6030
6031 2000-08-05  Martin Buchholz  <martin@xemacs.org>
6032
6033         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
6034         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
6035
6036         * events.c (Fevent_timestamp_lessp):
6037         Not 64-bit clean.  Use EMACS_INT, not int.
6038
6039 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
6040
6041         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
6042         unsigned int and changed the last enum to
6043         lrecord_type_last_built_in_type.
6044         (lrecord_implementations_table): changed prototype to know how
6045         long the array is supposed to be.
6046         (lrecord_type_count): new unsigned int to keep track of the
6047         current number of lisp lrecord types.
6048         (DEFINE_EXTERNAL_LRECORD):
6049         (DECLARE_EXTERNAL_LRECORD): Added these two for external
6050         dynamic-modules to declare new lisp types. They are the same
6051         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
6052         int for each new type, and increment lrecord_type_count by 1.
6053
6054         * alloc.c (lrecord_implementations_table): Changed to reference
6055         lrecord_type_last_built_in_type for the size of the array.
6056         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
6057
6058 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
6059
6060         * glyphs.h (check_valid_item_list): Renamed from
6061         check_valid_item_list_1.
6062
6063 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
6064
6065         * select.c (Qselect_coerce): New.
6066         * select.c (Vselection_coercion_alist): New.
6067         * select.c (syms_of_select): Declare.
6068         * select.c (get-selection-internal): Use it.
6069         Use the new select-coerce functionality.
6070
6071         * select.c (select_coerce): New.
6072         * select.h (select_coerce): Declare.
6073         New function to coerce one type of data into another.
6074
6075 2000-08-03  Martin Buchholz  <martin@xemacs.org>
6076
6077         * callproc.c (Fcall_process_internal):
6078         (Fcall_process_internal):
6079         * process-unix.c (unix_create_process):
6080         Save and restore the value of errno, so that error messages are accurate.
6081
6082 2000-08-01  Martin Buchholz  <martin@xemacs.org>
6083
6084         * elhash.c (print_hash_table):
6085         Fix printing of hash tables to also use `key-and-value' instead of `t'.
6086         Prettify docstrings and indentation.
6087
6088 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
6089
6090         * window.c (Fwindow_pixel_edges): Subtract frame border and
6091         gutter size.
6092
6093 2000-07-31  Andy Piper  <andy@xemacs.org>
6094
6095         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
6096         will acknowledge the change.
6097
6098         * glyphs.h: declare tab_control_order_only_changed.
6099
6100         * glyphs-x.c (x_tab_control_redisplay): use
6101         tab_control_order_only_changed.
6102
6103         * glyphs-widget.c (tab_control_order_only_changed): new function.
6104
6105         * glyphs-msw.c (mswindows_tab_control_redisplay): use
6106         tab_control_order_only_changed.
6107
6108         * gui.c (gui_item_equal_sans_selected): new function.
6109         (gui_item_equal): use it.
6110
6111         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
6112         :properties in favor of :items..
6113
6114         * glyphs-widget.c (check_valid_item_list): rename from
6115         check_valid_item_list_1.
6116         (check_valid_item_list_1): renamed.
6117         (combo_box_validate): deprecate :properties in favor of :items.
6118         (widget_instantiate): ditto.
6119         (tab_control_update): ditto.
6120         (image_instantiator_combo_box): ditto.
6121         (image_instantiator_tree_view): ditto.
6122         (image_instantiator_tab_control): ditto.
6123         (layout_post_instantiate): remove dead code.
6124
6125         * print.c (debug_print_no_newline): only write to debugger if in
6126         WIN32_NATIVE.
6127
6128         * elhash.c (Fmake_hash_table): update doc string.
6129
6130         * event-msw.c (mswindows_wnd_proc): don't allow processing of
6131         messages whilst in GC. This at least stops XEmacs crashing but has
6132         the potential for wierd behaviour.
6133
6134 2000-07-31  Martin Buchholz  <martin@xemacs.org>
6135
6136         * config.h.in:
6137         Make existence of s&m files optional.
6138
6139         * s/bsd386.h: Remove HAVE_GETLOADAVG.
6140         * s/freebsd.h: Remove HAVE_GETLOADAVG.
6141         * s/gnu.h: Remove HAVE_GETLOADAVG.
6142         * s/netbsd.h: Remove HAVE_GETLOADAVG.
6143         * s/sol2.h: Remove HAVE_GETLOADAVG.
6144         * lisp.h: Remove getloadavg() declaration.
6145         * fns.c:
6146         Include <sys/loadavg.h> if available.
6147         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
6148         * config.h.in:  Group together getloadavg()-related macros.
6149         Use only configure-time tests to detect getloadavg().
6150
6151 2000-07-30  Martin Buchholz  <martin@xemacs.org>
6152
6153         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
6154
6155 2000-07-25  Andy Piper  <andy@xemacs.org>
6156
6157         * syswindows.h: add tchar.h for native builds.
6158
6159         * frame.c (syms_of_frame): remove set-glyph-image.
6160
6161         * general-slots.h: add Qset_glyph_image.
6162
6163         * glyphs-widget.c (layout_update): add domain arg to
6164         set-glyph-image.
6165         (syms_of_glyphs_widget): remove set-glyph-image.
6166
6167 2000-07-23  Ben Wing  <ben@xemacs.org>
6168
6169         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
6170         Vpopup_frame_list.
6171
6172 2000-07-22  Andy Piper  <andy@xemacs.org>
6173
6174         * symsinit.h: add syms_of_win32().
6175
6176         * gui-msw.c (syms_of_gui_mswindows): remove
6177         Fmswindows_shell_execute.
6178         (Fmswindows_shell_execute): moved to win32.c.
6179
6180         * emacs.c (main_1): add syms_of_win32 ().
6181
6182         * win32.c (init_potentially_nonexistent_functions): rewrite in
6183         compiler-friendly terms.
6184         (Fmswindows_shell_execute): move here from gui-msw.c.
6185         (syms_of_win32): new.
6186
6187         * device-msw.c (Fmswindows_printer_list): clean up args to
6188         EnumPrinters.
6189         Don't include tchar under cygwin or mingw.
6190         (msprinter_default_printer): make cygwin-friendly.
6191
6192 2000-07-21  Andy Piper  <andy@xemacs.org>
6193
6194         * glyphs-widget.c (image_instantiator_tree_view): use tab
6195         control's update function.
6196         (layout_property): new function. Retrieve items.
6197
6198         * glyphs-msw.c (mswindows_tree_view_redisplay): new
6199         function. Re-populate the tree view from the pending items.
6200
6201         * glyphs.c (instantiate_image_instantiator): Make sure the domain
6202         is designated the parent if the domain is an image instance. This
6203         is needed so that dirtiness can be cascade up the hierarchy and
6204         thus for layout children to be redisplayed correctly.
6205         (allocate_image_instance): rename glyph -> parent.
6206
6207         * redisplay.h: change redisplay_output_layout signature.
6208
6209         * redisplay-msw.c (mswindows_output_display_block): use domain
6210         arg.
6211
6212         * redisplay-x.c (x_output_display_block): use domain arg.
6213
6214 2000-07-10  Andy Piper  <andy@xemacs.org>
6215
6216         * window.c (Fset_window_configuration): add comment.
6217
6218         * redisplay-output.c (compare_runes):
6219         (redisplay_output_subwindow): redisplay rather than update subwindow.
6220         (redisplay_output_layout): ditto.
6221
6222         * redisplay-msw.c (mswindows_frame_output_end):
6223         (mswindows_frame_output_end): make defer window pos optional.
6224
6225         * lisp.h: add Flast.
6226
6227         * glyphs.h (struct image_instantiator_methods): add dest_mask top
6228         normalize method. Change update method to be for changed
6229         instantiators. Add redisplay method. Change signature of layout
6230         method.
6231         (struct Lisp_Image_Instance): add instantiator.
6232         (IMAGE_INSTANCE_INSTANTIATOR): new.
6233         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
6234         (XIMAGE_INSTANCE_INSTANTIATOR): new.
6235         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
6236
6237         * glyphs.c:
6238         (find_instantiator_differences): new function.
6239         (Fset_instantiator_property): new convenience function.
6240         (check_image_instance_structure): strictly check for vector
6241         instantiators.
6242         (normalize_image_instantiator): make non-static.
6243         (instantiate_image_instantiator): pass on dest_mask and use new
6244         signatures for image_instance_layout and friends.
6245         (mark_image_instance): mark the instantiator. Mark the subwindow
6246         face not the widget face.
6247         (image_instance_equal): add instantiator.
6248         (image_instance_hash): ditto.
6249         (allocate_image_instance): ditto.
6250         (Fset_image_instance_property): removed.
6251         (Fimage_instance_file_name): ditto.
6252         (Fcolorize_image_instance): ditto.
6253         (image_instance_layout): add offsets to be set.
6254         (update_image_instance): new function. update an image instance
6255         from its changed instantiator.
6256         (inherit_normalize): add dest_mask.
6257         (xbm_normalize): ditto.
6258         (xface_normalize): ditto.
6259         (xpm_normalize): ditto.
6260         (text_update): set_property -> update.
6261         (image_instantiate): use the glyph identity as a hash key, not the
6262         instantiator.
6263         (glyph_width): use new image_instance_layout signature.
6264         (glyph_ascent): ditto.
6265         (glyph_descent): ditto.
6266         (glyph_height): ditto.
6267         (glyph_query_geometry): ressurrect.
6268         (glyph_layout): ditto.
6269         (redisplay_subwindow): update -> redisplay.
6270         (syms_of_glyphs): add Fset_instantiator_property.
6271         (image_instantiator_format_create): set_property -> update.
6272
6273         * glyphs-x.c:
6274         (autodetect_normalize): add dest_maks to signature.
6275         (x_redisplay_subwindow): update -> redisplay.
6276         (x_redisplay_widget): ditto.
6277         (x_button_redisplay): ditto.
6278         (x_progress_gauge_redisplay): ditto.
6279         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
6280         stacking order.
6281         (console_type_create_glyphs_x): update -> redisplay.
6282         (image_instantiator_format_create_glyphs_x): ditto.
6283
6284         * glyphs-widget.c:
6285         (check_valid_instantiator): disallow glyphs in the instantiator,
6286         they must now be vectors.
6287         (check_valid_instantiator_list): ditto.
6288         (glyph_instantiator_to_glyph): use internal symbol rather than
6289         intern.
6290         (widget_update): renamed from widget_set_property. Call cascaded
6291         update methods.
6292         (redisplay_widget): renamed from update_widget.
6293         (widget_layout): image_instance_layout now takes position as well
6294         as size.
6295         (widget_normalize): ditto.
6296         (widget_instantiate): ditto.
6297         (tab_control_query_geometry) ditto.:
6298         (tab_control_update): renamed from tab_control_set_property.
6299         (progress_gauge_update): set_property -> update.
6300         (layout_normalize): rewrite so that child instantiators are
6301         normalized also.
6302         (layout_update): new function. Create glyphs from the normalized
6303         children and cope with any other layout keywords. We do not
6304         instantiate children here that will be take care of by
6305         redisplay_output_layout.
6306         (layout_instantiate): call layout_update and not much else.
6307         (layout_post_instantiate): not sure whether this is needed
6308         anymore.
6309         (layout_query_geometry): query glyph geometry rather than
6310         image_instance geometry.
6311         (layout_layout): set offsets from pass in parameters. Use glyph
6312         geometry and layout functions rather than image instance ones.
6313         (native_layout_layout): ditto.
6314         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
6315         (image_instantiator_widget): set_property -> update.
6316         (image_instantiator_buttons): ditto.
6317         (image_instantiator_progress_guage): ditto.
6318         (image_instantiator_tab_control): ditto.
6319         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
6320         (image_instantiator_layout): add update method.
6321
6322         * glyphs-msw.c (bmp_normalize):
6323         (mswindows_resource_normalize): add dest_mask so that it can be
6324         proprogated by layout_normalize.
6325         (begin_defer_window_pos): make optional because it may not be the
6326         right thing to do and it introduces differences with X.
6327         (mswindows_unmap_subwindow): ditto.
6328         (mswindows_map_subwindow): ditto.
6329         (mswindows_redisplay_subwindow): renamed from
6330         mswindows_update_subwindow.
6331         (mswindows_redisplay_widget): ditto.
6332         (mswindows_button_redisplay): renamed from
6333         mswindows_button_update. Update is now what the instantiation
6334         function does for a changed instantiator.
6335         (mswindows_progress_gauge_instantiate): set the progress value
6336         here if appropriate.
6337         (mswindows_tab_control_redisplay): cope with re-ordering of the
6338         members of the tab widget by simply selecting the new top
6339         widget. This makes things appear ok if you click on a tab.
6340         (mswindows_combo_box_instantiate): image_instance_layout now takes
6341         position as well as size.
6342         (mswindows_progress_gauge_redisplay): renamed from
6343         mswindows_progress_gauge_update.
6344         (console_type_create_glyphs_mswindows): fix update -> redisplay.
6345         (image_instantiator_format_create_glyphs_mswindows): ditto.
6346
6347         * glyphs-eimage.c (jpeg_normalize):
6348         (gif_normalize):
6349         (png_normalize):
6350         (tiff_normalize): add dest_mask so that it can be proprogated by
6351         layout_normalize.
6352
6353         * elhash.c:
6354         (print_hash_table):
6355         (hash_table_weakness_validate):
6356         (decode_hash_table_weakness):
6357         (Fhash_table_weakness):
6358         (Fhash_table_type):
6359         (syms_of_elhash): use Ben's naming scheme for hashtable types..
6360
6361         * console.h (struct console_methods): move update_* to
6362         redisplay_*.
6363
6364 2000-07-20  Ben Wing  <ben@xemacs.org>
6365
6366         * *.[ch] (XSETOBJ): remove unused middle argument.
6367         lisp-disunion.h: correct wrap_object() to one argument.
6368
6369 2000-07-15  Ben Wing  <ben@xemacs.org>
6370
6371         * s/cygwin32.h:
6372         * s/cygwin32.h (CYGWIN_CONV_PATH):
6373         Add missing logb prototype for v1.1.
6374         Use post-b20 names and alias to pre-b20 names when pre-b20.
6375
6376         * s/windowsnt.h: [5].
6377
6378 2000-07-15  Ben Wing  <ben@xemacs.org>
6379
6380         * Makefile.in.in (x_objs):
6381         * Makefile.in.in (sheap_objs):
6382         * Makefile.in.in (objs):
6383         added win32.o, cosmetic cleanups.
6384
6385         * alloc.c (Fmake_byte_code):
6386         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
6387         etc. macros which declare their own args now.
6388
6389         * alloc.c (syms_of_alloc):
6390         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
6391
6392         * buffer.c:
6393         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
6394
6395         * buffer.c (Fget_file_buffer):
6396         Fixed GCPRO problem.
6397
6398         * buffer.c (get_truename_buffer):
6399         Fixed comment about GC checking.
6400
6401         * buffer.c (syms_of_buffer):
6402         Undeclared those dedicated frame funs.
6403         [2].
6404
6405         * buffer.h:
6406         Define convenience macros for internal/external conversions.
6407         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
6408         and Qenvironment_variable_encoding for cleaner code.
6409
6410         * bufslots.h:
6411         Remove dedicated-frame; in lisp.
6412
6413         * bytecode.c (funcall_compiled_function):
6414         [1].
6415
6416         * bytecode.c (syms_of_bytecode):
6417         [2].
6418
6419         * console-msw.c:
6420         * console-msw.c (mswindows_show_console): Rewrote.
6421
6422         * console-msw.c (Fmswindows_debugging_output): New.
6423         Sends to OutputDebugString (special MSWin debugger interface).
6424
6425         * console-msw.c (Fmswindows_message_box):
6426         Fixed stupid bugs so it works when called from kill-emacs.
6427
6428         * console-msw.c (syms_of_console_mswindows):
6429         Declare Fmswindows_debugging_output.
6430
6431         * console-msw.h:
6432         New MSWin prototypes.
6433
6434         * console-msw.h (struct mswindows_frame):
6435         New entry last-click-mods for improved button-modifier support.
6436
6437         * console-msw.h (FRAME_MSWINDOWS_POPUP):
6438         New struct entry `popup' with corresponding accessor.
6439
6440         * console-x.c:
6441         * console-x.c (split_up_display_spec):
6442         * console-x.c (get_display_arg_connection):
6443         * console-x.c (x_semi_canonicalize_console_connection):
6444         * console-x.c (x_canonicalize_device_connection):
6445         [[[6]]]: Change char to more specific type.
6446         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
6447
6448         * console-x.c (x_semi_canonicalize_console_connection):
6449         * console-x.c (x_canonicalize_device_connection):
6450         [[[9]]]: Fix up error signalling to use new structured error system.
6451
6452         * console-x.h:
6453         [[[4]]]: Define codesys aliases:
6454         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
6455         Qx_color_name_encoding, Qx_display_name_encoding.
6456
6457         * console.h (struct console_methods):
6458         New method make_dialog_box_internal supersedes older
6459         popup_dialog_box method.
6460
6461         * data.c:
6462         Define many new errors, part of new structured errors.
6463
6464         * data.c (init_errors_once_early):
6465         * data.c (syms_of_data):
6466         [2].
6467
6468         * device-msw.c (mswindows_init_device):
6469         [[[5]]]: Cleanup to support NT 3.51.
6470
6471         * device-msw.c (decode_devmode): Cleanup.
6472
6473         * device-msw.c (mswindows_handle_print_setup_dialog_box):
6474         * device-msw.c (mswindows_handle_print_dialog_box):
6475         * device-msw.c (mswindows_handle_page_setup_dialog_box):
6476         * device-msw.c (syms_of_device_mswindows):
6477         Delete the dialog box primitives recently introduced by Kirill and
6478         instead interface to general dialog box interface.
6479
6480         * device-x.c:
6481         * device-x.c (compute_x_app_name):
6482         * device-x.c (x_init_device):
6483         * device-x.c (Fx_valid_keysym_name_p):
6484         * device-x.c (Fx_set_font_path):
6485         [6].
6486         [7].
6487
6488         * device.h (wrap_device): New.
6489         First of its kind; meant to replace XSETDEVICE.
6490
6491         * dialog-msw.c: Many file-dialog symbols.
6492
6493         * dialog-msw.c (mswindows_register_popup_frame): New.
6494         * dialog-msw.c (mswindows_is_dialog_msg): New.
6495         For supporting kbd traversal in dialog boxes.
6496
6497         * dialog-msw.c (dialog_proc):
6498         Support hitting ESC in dialogs.
6499
6500         * dialog-msw.c (struct):
6501         Common dialog box errors.
6502
6503         * dialog-msw.c (handle_file_dialog_box): New.
6504         Add file dialog code.
6505
6506         * dialog-msw.c (handle_question_dialog_box):
6507         Redo existing code to support new question dialog syntax.
6508
6509         * dialog-msw.c (console_type_create_dialog_mswindows):
6510         We support new dialog console method.
6511
6512         * dialog-msw.c (syms_of_dialog_mswindows):
6513         * dialog-msw.c (vars_of_dialog_mswindows):
6514         New file dialog symbols, vars.
6515
6516         * dialog-x.c:
6517         * dialog-x.c (maybe_run_dbox_text_callback):
6518         * dialog-x.c (dbox_descriptor_to_widget_value):
6519         * dialog-x.c (x_make_dialog_box_internal):
6520         * dialog-x.c (console_type_create_dialog_x):
6521         Mule-ize entire file.
6522         Redo to support question dialog syntax.
6523         [6].
6524
6525         * dialog.c:
6526         * dialog.c (Fmake_dialog_box_internal):
6527         * dialog.c (syms_of_dialog):
6528         Kill old popup-dialog-box, replace with new primitive.
6529         Just call device method or signal error.
6530
6531         * eldap.c (Fldap_open):
6532         * eldap.c (Fldap_search_basic):
6533         * eldap.c (Fldap_add):
6534         * eldap.c (Fldap_modify):
6535         [1].
6536         [7].
6537
6538         * emacs.c:
6539         * emacs.c (make_arg_list_1):
6540         * emacs.c (make_arg_list):
6541         Mule-ize call to dll_init().
6542         [6].
6543         [8].
6544
6545         * emacs.c (make_argc_argv):
6546         * emacs.c (free_argc_argv):
6547         * emacs.c (init_cmdargs):
6548         * emacs.c (main_1):
6549         * emacs.c (Fkill_emacs):
6550         * emacs.c (Fdump_emacs):
6551         Update comments about what can be used in syms_* etc.
6552         Call init_win32() when necessary.
6553         Fix up MS Win dialog box in kill-buffer to actually work right.
6554         [7].
6555
6556         * eval.c:
6557         * eval.c (For):
6558         * eval.c (Fand):
6559         * eval.c (Fprogn):
6560         * eval.c (Fprog1):
6561         * eval.c (Fprog2):
6562         * eval.c (FletX):
6563         * eval.c (Flet):
6564         * eval.c (condition_case_3):
6565         * eval.c (Feval):
6566         * eval.c (function_argcount):
6567         * eval.c (funcall_lambda):
6568         [1].
6569
6570         * eval.c (type_error): New.
6571         * eval.c (maybe_type_error): New.
6572         * eval.c (continuable_type_error): New.
6573         * eval.c (maybe_continuable_type_error): New.
6574         * eval.c (type_error_with_frob): New.
6575         * eval.c (maybe_type_error_with_frob): New.
6576         * eval.c (continuable_type_error_with_frob): New.
6577         * eval.c (maybe_continuable_type_error_with_frob): New.
6578         New functions for use with structured errors.
6579
6580         * event-Xt.c:
6581         * event-Xt.c (x_event_to_emacs_event):
6582         Buttons are now modifiers too.
6583
6584         * event-Xt.c (emacs_Xt_current_event_timestamp):
6585         Implement new event method.
6586         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
6587
6588         * event-msw.c:
6589         * event-msw.c (ntpipe_shove_writer): [5].
6590         * event-msw.c (mswindows_enqueue_mouse_button_event):
6591         * event-msw.c (mswindows_drain_windows_queue):
6592         * event-msw.c (mswindows_wnd_proc): [7].
6593         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
6594         * event-msw.c (mswindows_modifier_state):
6595         Throughout: support new button modifiers.
6596
6597         * event-msw.c (emacs_mswindows_current_event_timestamp):
6598         Implement new event method.
6599         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
6600
6601         * event-stream.c:
6602         * event-stream.c (event_stream_current_event_timestamp): New.
6603         * event-stream.c (maybe_kbd_translate): New functionality.
6604         * event-stream.c (vars_of_event_stream):
6605         Document new kbd-translate-table functionality.
6606
6607         * event-stream.c (Fcurrent_event_timestamp): New.
6608         New primitive for use in fabricated events.
6609         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
6610
6611         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
6612
6613         * events.c:
6614         * events.c (Fmake_event):
6615         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
6616         [1].
6617         [9].
6618
6619         * events.c (format_event_object): fix gcc warnings.
6620
6621         * events.c (Fevent_timestamp): Document new primitives.
6622
6623         * events.c (TIMESTAMP_HALFSPACE): New.
6624
6625         * events.c (Fevent_timestamp_lessp): New.  New primitive for
6626         comparing timestamps correctly (half-space algorithm).
6627
6628         * events.c (Fevent_modifier_bits): Doc fix.
6629
6630         * events.c (Fevent_modifiers): Major doc addition.
6631         * events.c (event_x_y_pixel_internal): Typo fix.
6632         * events.c (syms_of_events): Declare new primitives.
6633
6634         * events.h:
6635         Update long comment for button modifiers, timestamps.
6636
6637         * events.h (struct event_stream):
6638         New current_event_timestamp method.
6639
6640         * extents.c:
6641         * extents.c (extent_in_region_p):
6642         * extents.c (decode_extent):
6643         * extents.c (Fset_extent_parent):
6644         * extents.c (decode_map_extents_flags):
6645         Fix gcc warnings.
6646         [9].
6647
6648         * extents.c (struct extent_at_arg):
6649         * extents.c (decode_extent_at_flag):
6650         * extents.c (extent_at_mapper):
6651         * extents.c (extent_at_bytind):
6652         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
6653         * extents.c (Fextents_at): New primitive. [9].
6654         * extents.c (symbol_to_glyph_layout): [9].
6655         Support new primitive `extents-at'.
6656
6657
6658         * extents.c (get_text_property_bytind):
6659         extent_at_bytind has another arg.
6660         [9].
6661
6662         * extents.c (syms_of_extents): New primitive.
6663
6664         * file-coding.c (Fmake_coding_system): [1].
6665         * file-coding.c (subsidiary_coding_system): fix gcc warning
6666         * file-coding.c (syms_of_file_coding): [2].
6667
6668         * fileio.c (Fexpand_file_name):
6669         * fileio.c (Fsysnetunam):
6670         * fileio.c (Ffile_exists_p):
6671         * fileio.c (Ffile_executable_p):
6672         * fileio.c (Fverify_visited_file_modtime):
6673         Clean up GCPROing.
6674
6675         * fileio.c (syms_of_fileio): [2].
6676
6677         * filelock.c (lock_file_1):
6678         * filelock.c (current_lock_owner):
6679         * filelock.c (lock_if_free):
6680         * filelock.c (lock_file):
6681         * filelock.c (unlock_file):
6682         Clean up GCPROing.
6683
6684         * fns.c (concat): Fix gcc warning.
6685
6686         * fns.c (Fmember):
6687         * fns.c (Fold_member):
6688         * fns.c (Fmemq):
6689         * fns.c (Fold_memq):
6690         * fns.c (memq_no_quit):
6691         * fns.c (Fassoc):
6692         * fns.c (Fold_assoc):
6693         * fns.c (Fassq):
6694         * fns.c (Fold_assq):
6695         * fns.c (assq_no_quit):
6696         * fns.c (Frassoc):
6697         * fns.c (Fold_rassoc):
6698         * fns.c (Frassq):
6699         * fns.c (Fold_rassq):
6700         * fns.c (rassq_no_quit):
6701         * fns.c (Fdelete):
6702         * fns.c (Fold_delete):
6703         * fns.c (Fdelq):
6704         * fns.c (Fold_delq):
6705         * fns.c (delq_no_quit):
6706         * fns.c (Fremassoc):
6707         * fns.c (Fremassq):
6708         * fns.c (remassq_no_quit):
6709         * fns.c (Fremrassoc):
6710         * fns.c (Fremrassq):
6711         * fns.c (remrassq_no_quit):
6712         * fns.c (Freverse):
6713         * fns.c (mapcar1):
6714         [1].
6715
6716         * frame-msw.c (mswindows_init_frame_1):
6717         * frame-msw.c (mswindows_delete_frame):
6718         Register popups with dialog code so keyboard traversing works.
6719
6720         * frame-tty.c (tty_raise_frame_no_select): [1].
6721
6722         * frame-x.c:
6723         * frame-x.c (x_set_frame_text_value):
6724         * frame-x.c (x_set_frame_properties):
6725         * frame-x.c (x_create_widgets):
6726         [7].
6727
6728         * frame.c:
6729         * frame.c (Fmouse_pixel_position): Minor doc fixes.
6730
6731         * frame.h (wrap_frame): New.
6732         Macro like wrap_device.
6733
6734         * general.c:
6735         * general.c (SYMBOL):
6736         * general.c (syms_of_general):
6737         Major reorg.  This is now just a wrapper and symbols themselves
6738         are listed in general-slots.h.
6739
6740         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
6741         * glyphs-msw.c (mswindows_resource_instantiate): [5].
6742
6743         * glyphs-msw.c (mswindows_native_layout_instantiate):
6744         Add DS_CONTROL so keyboard traversal will work.
6745
6746         * glyphs-widget.c:
6747         * glyphs-widget.c (syms_of_glyphs_widget):
6748         Move some symbols to general-slots.h.
6749
6750         * glyphs-x.c:
6751         * glyphs-x.c (xbm_instantiate_1):
6752         * glyphs-x.c (x_xbm_instantiate):
6753         * glyphs-x.c (x_xface_instantiate):
6754         * glyphs-x.c (autodetect_instantiate):
6755         * glyphs-x.c (cursor_font_instantiate):
6756         * glyphs-x.c (x_update_widget):
6757         * glyphs-x.c (x_widget_instantiate):
6758         * glyphs.c (bitmap_to_lisp_data):
6759         * glyphs.c (pixmap_to_lisp_data):
6760         [7].
6761
6762         * glyphs.c (syms_of_glyphs):
6763         [2].
6764
6765         * gui-x.c:
6766         * gui-x.c (print_widget_value):
6767         * gui-x.c (menu_separator_style_and_to_external):
6768         * gui-x.c (add_accel_and_to_external):
6769         * gui-x.c (button_item_to_widget_value):
6770         * gui-x.c (gui_items_to_widget_values_1):
6771         * gui-x.c (gui_items_to_widget_values):
6772         * gui-x.c (syms_of_gui_x):
6773         * gui-x.c (vars_of_gui_x):
6774         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
6775         [9].
6776
6777         * gui-x.h:
6778         Muleize, prototype changes matching gui-x.c.
6779
6780         * gui.c:
6781         * gui.c (separator_string_p):
6782         * gui.c (gui_item_add_keyval_pair):
6783         * gui.c (make_gui_item_from_keywords_internal):
6784         * gui.c (signal_too_long_error):
6785         * gui.c (parse_gui_item_tree_item):
6786         * gui.c (syms_of_gui):
6787         * gui.c (vars_of_gui):
6788         * gui.h:
6789         menu-no-selection-hook moved here (used by MSWin).
6790         Move some symbols to general-slots.h.
6791         [6].
6792         [9].
6793
6794         * insdel.c (get_buffer_pos_char):
6795         * insdel.c (get_buffer_range_char):
6796         Add GC comments.
6797
6798         * keymap.c (keymap_lookup_directly):
6799         * keymap.c (keymap_store):
6800         * keymap.c (ensure_meta_prefix_char_keymapp):
6801         * keymap.c (describe_map):
6802         * keymap.h:
6803         Support new button modifiers.
6804
6805         * lisp-disunion.h (wrap_object):
6806         * lisp-disunion.h (XSETOBJ):
6807         Rename make_obj to wrap_object.
6808
6809         * lisp-union.h:
6810         * lisp-union.h (make_int):
6811         * lisp-union.h (make_char):
6812         Support wrap_object.
6813
6814         * lisp.h:
6815         * lisp.h (LIST_LOOP):
6816         * lisp.h (EXTERNAL_LIST_LOOP):
6817         * lisp.h (LIST_LOOP_2):
6818         * lisp.h (EXTERNAL_LIST_LOOP_1):
6819         * lisp.h (EXTERNAL_LIST_LOOP_2):
6820         * lisp.h (EXTERNAL_LIST_LOOP_3):
6821         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
6822         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
6823         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
6824         * lisp.h (EXTERNAL_ALIST_LOOP_5):
6825         * lisp.h (EXTERNAL_ALIST_LOOP_6):
6826         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
6827         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
6828         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
6829         * lisp.h (struct Lisp_Symbol):
6830         * lisp.h (maybe_continuable_error_with_frob):
6831         Fix up section comments.
6832         Add new types for char to indicate usage.
6833         Delete symbols auto-generated from general-slots.h.
6834         Add prototypes for structured error functions.
6835         Add long comments describing looping macros and change interface
6836         so that lvalues are automatically declared.
6837         Add NO_DECLARE macro in case callers want to declare lvalues
6838         themselves.
6839
6840         * lread.c (read_syntax_error):
6841         * lread.c (continuable_read_syntax_error):
6842         * lread.c (read_structure):
6843         * lread.c (sequence_reader):
6844         * lread.c (read_list_conser):
6845         * lread.c (read_compiled_function):
6846         Rename syntax_error and continuable_syntax_error to avoid clash
6847         with same-named structured error functions.
6848
6849         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
6850         * menubar-msw.c (populate_menu_add_item):
6851         * menubar-msw.c (populate_or_checksum_helper):
6852         [5].
6853         [9].
6854
6855         * menubar-x.c:
6856         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
6857         Mule-ize whole file.
6858
6859         * menubar.c (Fnormalize_menu_item_name): Add optimization.
6860
6861         * mule-charset.c (Fmake_charset):
6862         * mule-wnnfns.c (Fwnn_set_param):
6863         [1].
6864
6865         * ntproc.c (create_child):
6866         * ntproc.c (Fwin32_set_current_locale):
6867         Add comments portending doom.
6868
6869         * objects-msw.c:
6870         * objects-msw.c (old_font_enum_callback_2):
6871         * objects-msw.c (font_enum_callback_1):
6872         * objects-msw.c (mswindows_enumerate_fonts):
6873         [5].
6874
6875         * objects-x.c:
6876         * objects-x.c (allocate_nearest_color):
6877         * objects-x.c (x_parse_nearest_color):
6878         * objects-x.c (x_initialize_color_instance):
6879         * objects-x.c (x_print_color_instance):
6880         * objects-x.c (x_finalize_color_instance):
6881         * objects-x.c (x_valid_color_name_p):
6882         * objects-x.c (x_initialize_font_instance):
6883         * objects-x.c (x_print_font_instance):
6884         * objects-x.c (valid_x_font_name_p):
6885         * objects-x.c (truename_via_FONT_prop):
6886         * objects-x.c (truename_via_random_props):
6887         * objects-x.c (truename_via_XListFonts):
6888         * objects-x.c (x_font_truename):
6889         * objects-x.c (x_font_instance_truename):
6890         * objects-x.c (x_font_instance_properties):
6891         * objects-x.c (x_list_fonts):
6892         * objects-x.c (x_find_charset_font):
6893         Mule-ize entire file.
6894         [7].
6895
6896         * objects-x.h:
6897         Mule-verify.
6898
6899         * print.c:
6900         * print.c (std_handle_out_external):
6901         * print.c (debug_print_no_newline):
6902         * print.c (syms_of_print):
6903         Output to all debugger kinds in debug-print.
6904         Fix console-output code under MSWin to actually work.
6905
6906         * process-nt.c (send_signal):
6907         * process-nt.c (nt_create_process):
6908         Use newer Unicode macros.
6909
6910         * process-unix.c (unix_create_process):
6911         * process-unix.c (unix_canonicalize_host_name):
6912         * process-unix.c (unix_open_network_stream):
6913         [7].
6914
6915         * scrollbar-x.c:
6916         Mule-verify.
6917
6918         * search.c (syms_of_search):
6919         [2].
6920
6921         * select-msw.c (mswindows_destroy_selection):
6922         Use LIST_LOOP_2.
6923
6924         * select-x.c (symbol_to_x_atom):
6925         [7].
6926
6927         * select.c (syms_of_select):
6928         [2].
6929
6930         * sound.c (Fplay_sound_file):
6931         [7].
6932
6933         * specifier.c:
6934         * specifier.c (decode_specifier_type):
6935         * specifier.c (Fvalid_specifier_locale_type_p):
6936         * specifier.c (check_valid_locale_or_locale_type):
6937         * specifier.c (decode_locale):
6938         * specifier.c (decode_locale_type):
6939         * specifier.c (decode_locale_list):
6940         * specifier.c (check_valid_domain):
6941         * specifier.c (decode_specifier_tag_set):
6942         * specifier.c (Fcanonicalize_tag_set):
6943         * specifier.c (Fdefine_specifier_tag):
6944         * specifier.c (Fspecifier_tag_predicate):
6945         * specifier.c (check_valid_inst_list):
6946         * specifier.c (check_valid_spec_list):
6947         * specifier.c (decode_how_to_add_specification):
6948         * specifier.c (check_modifiable_specifier):
6949         * specifier.c (specifier_add_spec):
6950         * specifier.c (boolean_validate):
6951         * specifier.c (display_table_validate):
6952         [9].
6953
6954         * specifier.c (syms_of_specifier):
6955         Move some symbols to general-slots.h.
6956         [2].
6957
6958         * symbols.c:
6959         * symbols.c (Fmapatoms):
6960         * symbols.c (Fapropos_internal):
6961         Add GCPROs.
6962
6963         * symbols.c (set_default_buffer_slot_variable):
6964         * symbols.c (set_default_console_slot_variable):
6965         [1].
6966
6967         * symbols.c (defsymbol_massage_name_1):
6968         * symbols.c (defkeyword_massage_name):
6969         * symbols.c (deferror_1):
6970         * symbols.c (deferror):
6971         * symbols.c (deferror_massage_name_and_message):
6972         * symeval.h:
6973         * symeval.h (DEFSYMBOL):
6974         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
6975
6976         * symbols.c (syms_of_symbols):
6977         [2].
6978
6979         * symsinit.h:
6980         * symsinit.h (init_win32): New.
6981         Also new is syms_of_dialog_mswindows.
6982
6983         * syswindows.h:
6984         Add new Unicode macros, missing Cygwin wide-char functions,
6985         convenience conversion macros for Qmswindows_tstr, macros for
6986         encapsulating required MSWin <-> Cygwin filename conversions,
6987         prototype for dynamically-extracted (not in NT 3.51) functions.
6988
6989         * toolbar-x.c:
6990         Mule-verify.
6991
6992         * tooltalk.c (Fadd_tooltalk_message_arg):
6993         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
6994         * tooltalk.c (Fadd_tooltalk_pattern_arg):
6995         [7].
6996
6997         * tooltalk.c (syms_of_tooltalk):
6998         [2].
6999
7000         * unexnt.c:
7001         * unexnt.c (unexec):
7002         Fix up headers, declaration of unexec() to be more standard.
7003
7004 2000-07-20  Martin Buchholz  <martin@xemacs.org>
7005
7006         * offix.h: Revert change to guard macros - they're used in offix.c!
7007
7008 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7009
7010         * lisp.h: Defsubred Fdelete.
7011
7012         * console-msw.h:  (msprinter_default_printer): Added.
7013
7014         * console-msw.c (msprinter_canonicalize_console_connection):
7015         (msprinter_canonicalize_device_connection): Added.
7016
7017         * device-msw.c (msprinter_default_printer):
7018         (Fmswingows_get_default_printer):
7019         (signal_enum_priner_error):
7020         (Fmswingows_printer_list): Added.
7021
7022 2000-07-19  Martin Buchholz <martin@xemacs.org>
7023
7024         * XEmacs 21.2.35 is released.
7025
7026 2000-07-19  Martin Buchholz  <martin@xemacs.org>
7027
7028         * select-x.c (x_handle_selection_request):
7029         Text selected in xemacs and pasted into xterm failed to appear.
7030         Spelling fixes and cosmetic changes.
7031
7032 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7033
7034         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
7035         XEmacs frame (fix for doubling chars in dialog boxes).
7036
7037 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7038
7039         * select.c (select_convert_in, select_convert_out):
7040         Don't call intern() every time.
7041
7042         * select.c (Qselect_convert_in, Qselect_convert_out): New.
7043         * select.c (vars_of_select): Initialise them.
7044
7045 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7046
7047         * select.c (selection-coercible-types): New.
7048
7049         * select.c (own-selection-internal):
7050         * select.c (get-selection-internal):
7051         MULE bug fix - these should default to COMPOUND_TEXT and not
7052         STRING for MULE. I think.
7053
7054         * select.c (select_convert_out): Use selection-coercible-types
7055         to find types that we can attempt to perform coercions on.
7056
7057 2000-07-18  Martin Buchholz  <martin@xemacs.org>
7058
7059         * mule-wnnfns.c:
7060         * mule-canna.c:
7061         Add coding: cookie to identify encoding.
7062
7063         * mule-canna.c (CANNA_mode_keys): make static.
7064         Use proper prototypes, even for functions of no arguments.
7065         Remove external prototype for Fding().
7066
7067         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
7068
7069         * select.c (syms_of_select): Add missing DEFSUBR.
7070
7071 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7072
7073         * select.c (get_selection_internal, own_selection_internal):
7074         Make the type default to STRING, rather than placing a nil type
7075         into Vselection_alist.
7076
7077 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7078
7079         * gpmevent.c (tty_selection_exists_p):
7080         * gpmevent.c (tty_own_selection):
7081         Updated parameter lists.
7082
7083 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
7084
7085         * select.h (selection-alist): Removed declaration.
7086
7087         * select.h (get_local_selection):
7088         * select.c (get_local_selection):
7089         Made static.
7090
7091         * select.h (convert_selection): Removed declaration.
7092         * select.c (convert_selection): Removed.
7093         This function belongs in Lisp.
7094
7095         * select.h (select_convert_in): Declare.
7096         * select.h (select_convert_out): Declare.
7097         * select.c (select_convert_in): New.
7098         * select.c (select_convert_out): New.
7099         New conversion functions for other files to call.
7100
7101         * select.h (select_notify_buffer_kill): Declare.
7102         * select.c (select_notify_buffer_kill): New.
7103         New functions that get called from kill-buffer.
7104
7105         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
7106         X-specific lisp code.
7107
7108         * select.h: Declare some of the lisp-visible functions for
7109         external use.
7110
7111         * select.c (clean_local_selection_data): Removed. This was
7112         a disgusting function, and previously should have been in
7113         select-x.c in any case. The functionality is now provided
7114         in select-convert-from-integer (select.el).
7115
7116         * select.c (available-selection-types): Fixed stupidity where
7117         INTEGER and ATOM got added twice. Also add STRING when we see an
7118         extent.
7119
7120         * select.c (get-selection-internal): Removed symbol stripping. No
7121         longer causes conversion when data comes from the internal cache.
7122
7123         * select.c (syms_of_select): Added new functions.
7124
7125         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
7126         error checking - previously this called abort!
7127
7128         * select-x.c (x_own_selection): Changed comment.
7129
7130         * select-x.c (x_handle_selection_request): Use select_convert_out.
7131         Don't mess with selection-alist; it's an internal variable of select.c.
7132
7133         * select-x.c (x_get_foreign_selection): Use select_convert_in.
7134
7135         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
7136         rather than messing with selection-alist.
7137
7138         * select-msw.c (mswindows_get_foreign_selection):
7139         Use TO_INTERNAL_FORMAT rather than hacking.
7140
7141 2000-07-14  Martin Buchholz  <martin@xemacs.org>
7142
7143         * process-unix.c (unix_open_multicast_group):
7144         (unix_open_multicast_group): Remove useless casts.
7145
7146 2000-07-13  Martin Buchholz  <martin@xemacs.org>
7147
7148         * sound.c (Fplay_sound): Fix `unused variable' warning.
7149
7150         * emacs.c (main): Use correct type for _environ on SCO5.
7151
7152 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
7153
7154         * console.h (own_selection_method):
7155         * console.h (selection_exists_p_method):
7156         * console.h (available_selection_types_method): New.
7157         * console.h (register_selection_data_type_method): New.
7158         * console.h (selection_data_type_name): New.
7159
7160         * console-msw.h (mswindows_destroy_selection): Declare it.  New
7161         function & alist to track GlobalAlloc()'d handles that need
7162         releasing when the clipboard data gets replaced or emptied.
7163
7164         * event-msw.c (mswindows_wnd_proc): Call it.
7165
7166         * lisp.h, general.c (Qappend): New symbol representing a
7167         `how-to-add' mode.
7168
7169         * select.c (own-selection-internal):
7170         * select.c (selection-exists-p):
7171         * select.c (available-selection-types): New.
7172         * select.c (register-selection-data-type): New.
7173         * select.c (selection-data-type-name): New.  New functions to deal
7174         with device-specific selection data formats.
7175         * select.c (selection-converter-out-alist): Renamed.
7176         * select.c (selection-converter-in-alist): New.
7177         * select.c (selection-appender-alist): New.  Added new alists.
7178         * select.c (syms_of_select, vars_of_select): Added new symbols &
7179         variables.
7180         * select.c (get_local_selection): Split.
7181         * select.c: Removed spurious type checking - selections may now be
7182         of any type, not just strings.
7183         * select.c (own-selection-internal):
7184
7185         * select.h, select.c (convert_selection): New. Created
7186         convert_selection() function based on get_local_selection().
7187         * select.h, select.c (QCF_*): New symbols representing mswindows
7188         clipboard formats.
7189         * select.h, select.c (Qreplace_all, Qreplace_existing): New
7190         symbols representing `how-to-add' modes.
7191
7192         * select-msw.c (x_sym_p): New.
7193         * select-msw.c (symbol_to_ms_cf): New.
7194         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
7195         symbols & clipboard formats. Can also handle string names.
7196         * select-msw.c (mswindows_own_selection):
7197         * select-msw.c (mswindows_selection_exists_p):
7198         Added `data-type' parameter. Use it.
7199         * select-msw.c (mswindows_available_selection_types): New.
7200         * select-msw.c (mswindows_register_selection_data_type): New.
7201         * select-msw.c (mswindows_selection_data_type_name): New.
7202         * select-msw.c (mswindows_own_selection):
7203         * select-msw.c (mswindows_get_foreign_selection):
7204         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
7205         * select-msw.c (console_create_select_mswindows): Added new methods.
7206         * select-msw.c (mswindows_destroy_selection): New.
7207         * select-msw.c (Vhandle_alist): New list.
7208         * select-msw.c (mswindows_own_selection):
7209
7210         * select-x.c (x_own_selection):
7211         * select-x.c (x_selection_exists_p):
7212         * select-x.c: Added some comments about maybe using new
7213         functionality.
7214         * select-x.c (x_own_selection):
7215
7216         * specifier.c: Remove definition of Qappend (now in general.c)
7217         * specifier.c (syms_of_specifier): Remove Qappend.
7218
7219 2000-07-12  Martin Buchholz  <martin@xemacs.org>
7220
7221         * config.h.in: Add socklen_t.
7222
7223         * s/decosf4-0.h: No special compiler flags needed or desired.
7224         In particular, undefine _BSD for DEC OSF 4.0.
7225
7226 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7227
7228         * redisplay-msw.c (msprinter_frame_output_end): Added.
7229         (console_type_create_redisplay_mswindows): Referred the above.
7230
7231         * frame.c (setup_frame_without_minibuffer): Do not create a
7232         default minibuffer frame on a printer device.
7233
7234         * frame-msw.c (apply_dc_geometry): Added.
7235         (msprinter_start_page):
7236         (msprinter_init_frame_3):
7237         (msprinter_eject_page): Use it.
7238
7239         * console-msw.h (struct msprinter_frame): Added pix_left and top,
7240         and removed residual duplex and orientation properties.
7241
7242 2000-07-11  Martin Buchholz  <martin@xemacs.org>
7243
7244         * eval.c (function_argcount): Work around a DEC CC compiler bug.
7245
7246         * unexalpha.c: Remove system prototypes from C sources!
7247
7248 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
7249
7250         * eval.c: Remove references to M-x edit-options in DEFUNs for
7251         `defvar' and `defconst'.
7252
7253 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7254
7255         * config.h.in: Remove SMART_INCLUDE hackery.
7256
7257         PostgreSQL hacking:
7258         * config.h.in: Don't use SMART_INCLUDE.
7259
7260         * postgresql.h: Include libpq-fe.h here.  Fix typo.
7261         * inline.c: Simply #include "postgresql.h"
7262         * postgresql.c:
7263         - Don't use SMART_INCLUDE
7264         - Use simply "const".
7265         - Use standard doc string conventions.
7266         - Use correct type for result of PQstatus.
7267
7268 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7269
7270         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
7271
7272         C++ compilation changes.
7273         * config.h.in (EXTERN_C): Define.
7274         * config.h.in (not): This is also a C++ keyword.
7275         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
7276         * cm.c: Use EXTERN_C.
7277         * redisplay-tty.c: Use EXTERN_C.
7278         * sysdep.c: Use EXTERN_C.  Remove Gould support.
7279
7280 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7281
7282         * general.c: Remove duplicate definition for Qfunction.
7283
7284 2000-07-08  Ben Wing  <ben@xemacs.org>
7285
7286         * device-msw.c (msprinter_init_device):
7287         * device-msw.c (sync_printer_with_devmode):
7288         * device-msw.c (handle_devmode_changes):
7289         * device-msw.c (print_dialog_worker):
7290         * device-msw.c (Fmsprinter_apply_settings):
7291         * device-msw.c (hash_devmode):
7292         * device-msw.c (Fmsprinter_settings_despecialize):
7293         use Qmswindows_tstr, not Qctext.
7294
7295         * vm-limit.c (check_memory_limits):
7296         avoid infinite loop printing warning messages.
7297
7298 2000-07-05  Craig Lanning  <lanning@scra.org>
7299
7300         * Makefile.in.in: Add support for including the Windows resources
7301         when building with the cygwin and mingw targets.
7302
7303         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
7304         not set or not correct.
7305         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
7306         (init_initial_directory): Don't try to use $PWD on the
7307         WIN32_NATIVE target.
7308
7309         * s\cygwin32.h:
7310         [[Add -mwindows to eliminate console window.]] not required --ben
7311         (HAVE_NATIVE_SOUND): removed; now handled by configure.
7312         (MAIL_USE_POP): removed; now handled by configure.
7313
7314         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
7315         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
7316         (HAVE_NATIVE_SOUND): removed; now handled by configure.
7317         (MAIL_USE_POP): removed; now handled by configure.
7318         (ENCAPSULATE_STAT): from Dan Holmsand, added.
7319         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
7320         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
7321         constant string.
7322         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
7323         up from <winsock.h> via systime.h.
7324         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
7325         (getpagesize): from Dan Holmsand, added.
7326         Added #endif which was left dangling by Ben's mega patch; added
7327         comment to help prevent this in the future.
7328
7329         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
7330
7331 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7332
7333         * console-msw.h (struct mswindows_device): Removed unnecessary
7334         cached device geometry values.
7335         Added update_tick and an accessor macro.
7336         (Lisp_Devmode): Added lrecord declaration.
7337         (struct msprinter_device): Contain devmode as a Lisp object.
7338         Added mswindows_get_selected_frame_hwnd();
7339
7340         * console.h (struct console_methods): Indentation nitpicking.
7341
7342         * device-msw.c (mswindows_init_device): Do not initialize geometry
7343         cache. Initialize update tick.
7344         (mswindows_device_system_metrics): Ask the device for its geometry.
7345         (global_free_2_maybe):
7346         (devmode_to_hglobal):
7347         (handle_printer_changes):
7348         (ensure_not_printing):
7349         (print_dialog_worker):
7350         (Fmsprinter_print_setup_dialog):
7351         (Fmsprinter_print_dialog):
7352         (plist_get_margin):
7353         (plist_set_margin):
7354         (Fmsprinter_page_setup_dialog): Added functions.
7355         (sync_printer_with_devmode):
7356         (handle_devmode_changes):
7357         (Fmsprinter_get_settings):
7358         (Fmsprinter_select_settings):
7359         (Fmsprinter_apply_settings):
7360         (allocate_devmode):
7361         (Fmsprinter_settings_copy):
7362         (Fmsprinter_settings_despecialize):
7363         (print_devmode):
7364         (finalize_devmode):
7365         (equal_devmode):
7366         (hash_devmode): Added functions
7367         (syms_of_device_mswindows): Init devmode lrecord class.
7368
7369         * device.h: Added an exfun for find-device.
7370
7371         * event-msw.c (mswindows_wnd_proc): Do not update the cached
7372         geometry; although, recreate the device compatible DC.
7373
7374         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
7375         (msprinter_init_frame_3):
7376         (msprinter_frame_property):
7377         (msprinter_internal_frame_property_p):
7378         (msprinter_frame_properties):
7379         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
7380         print job properties (will move to device settings).
7381
7382         * lisp.h: Added symbols.
7383
7384         * general.c (syms_of_general): Declared them.
7385
7386         * hash.c (string_hash): Added.
7387
7388         * lrecord.h (lrecord_type): Added devmode lrecord type.
7389
7390 2000-07-02  Mike Sperber <mike@xemacs.org>
7391
7392         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
7393         FreeBSD 4.0.
7394
7395 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
7396
7397         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
7398         integer.
7399
7400 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
7401
7402         * data.c (Fstring_to_number): Don't recognize floating point if
7403         base is not 10.
7404
7405 2000-06-22  Martin Buchholz  <martin@xemacs.org>
7406
7407         * glyphs-widget.c (tab_control_query_geometry):
7408         (widget_query_geometry):
7409         (button_query_geometry):
7410         * glyphs.c (text_query_geometry):
7411         Enforce type correctness.
7412
7413 2000-06-18  Martin Buchholz  <martin@xemacs.org>
7414
7415         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
7416         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
7417
7418 2000-06-17  Martin Buchholz  <martin@xemacs.org>
7419
7420         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
7421         conflicts with gcc's fixincluded version of FOO.h.
7422
7423         * glyphs.h (image_instance_geometry): Remove trailing `,'
7424
7425 2000-06-08  Mike Alexander  <mta@arbortext.com>
7426
7427         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
7428         (shove_thread): Don't write the same output twice
7429         (make_ntpipe_output_stream): Increase priority of shove thread
7430         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
7431         chance to run
7432         (ntpipe_shove_closer): Don't delete the pipe until we're done with
7433         it.
7434
7435 2000-06-12  Ben Wing  <ben@xemacs.org>
7436
7437         * s\mingw32.h (sigset):
7438         * s\windowsnt.h (sigset):
7439         rename msw_ to mswindows_ for consistency with general convention.
7440
7441 2000-06-12  Ben Wing  <ben@xemacs.org>
7442
7443         * console-msw.c:
7444         * console-msw.c (mswindows_get_console_hwnd):
7445         * console-msw.c (mswindows_ensure_console_allocated):
7446         * console-msw.c (mswindows_hide_console):
7447         * console-msw.c (mswindows_show_console):
7448         * console-msw.c (mswindows_ensure_console_buffered):
7449         * console-msw.c (mswindows_output_console_string):
7450         * console-msw.c (mswindows_windows9x_p):
7451         * console-msw.h:
7452         * device-msw.c (mswindows_get_workspace_coords):
7453         * device-msw.c (mswindows_device_system_metrics):
7454         * dialog-msw.c (mswindows_popup_dialog_box):
7455         * event-msw.c (mswindows_wnd_proc):
7456         * frame-msw.c (mswindows_size_frame_internal):
7457         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
7458         * menubar-msw.c (displayable_menu_item):
7459         * menubar-msw.c (mswindows_char_is_accelerator):
7460         * nt.c:
7461         * nt.c (mswindows_sigset):
7462         * nt.c (mswindows_sigrelse):
7463         * nt.c (mswindows_sigpause):
7464         * nt.c (mswindows_raise):
7465         * nt.c (timer_proc):
7466         * ntproc.c:
7467         * ntproc.c (find_child_console):
7468         * ntproc.c (sys_kill):
7469         * print.c:
7470         * print.c (std_handle_out_external):
7471         * process-nt.c (find_child_console):
7472         * process-nt.c (send_signal_the_95_way):
7473         * process-nt.c (ensure_console_window_exists):
7474         * process-nt.c (nt_create_process):
7475         * syssignal.h:
7476         rename msw_ to mswindows_ for consistency with general convention.
7477
7478         * emacs.c:
7479         * dumper.c:
7480         include nt.h, not syswindows.h.
7481
7482         * nt.c (mswindows_fstat):
7483         * nt.c (mswindows_stat):
7484         prefix mswindows_ instead of attempting to directly override the
7485         library functions.  fix declarations.
7486
7487         * nt.h:
7488         include syswindows.h.  move some sysdep.h stuff here.
7489
7490         * ntheap.h:
7491         include syswindows.h, not <windows.h>.
7492
7493         * ntplay.c:
7494         clean up headers.
7495
7496         * sysdep.c:
7497         clean up headers.
7498
7499         * sysdep.c (sys_fstat):
7500         * sysdep.c (sys_stat):
7501         call mswindows versions when appropriate.
7502
7503         * sysdep.h:
7504         move mswin decls to nt.h.
7505
7506         * syswindows.h:
7507         add long comment describing appropriate use of the various windows
7508         headers.
7509
7510 2000-06-11  Ben Wing  <ben@xemacs.org>
7511
7512         * device-x.c: Correct doc string for sixth arg of x-get-resource.
7513
7514 2000-06-10  Ben Wing  <ben@xemacs.org>
7515
7516         * Makefile.in.in (release):
7517         Correction to make sure xemacs.exe always dumped when correct.
7518
7519         * alloca.c:
7520         * balloon_help.c:
7521         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
7522
7523         * buffer.c (set_buffer_internal):
7524         [[[[2]]]]: Remove HAVE_FEP code.
7525
7526         * buffer.c (init_initial_directory):
7527         [3].
7528
7529         * bytecode.c:
7530         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
7531         individual files.
7532
7533         * callproc.c:
7534         * callproc.c (call_process_cleanup):
7535         * callproc.c (Fold_call_process_internal):
7536         * callproc.c (child_setup):
7537         * callproc.c (getenv_internal):
7538         * callproc.c (init_callproc):
7539         * callproc.c (vars_of_callproc):
7540         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
7541         __CYGWIN32__ -> CYGWIN.
7542         DOS_NT -> WIN32_NATIVE.
7543         Remove MSDOS support/references, converting to WIN32_NATIVE
7544           where correct.
7545         __MINGW32__ -> MINGW.
7546         Fix windows.h includes.
7547         Remove bogus HAVE_NTGUI.
7548
7549         * config.h.in:
7550         [2].
7551
7552         * console-msw.c:
7553         mswindows_message_outputted added for use in allowing startup
7554         errors on the console to be seen.
7555
7556         * console-msw.c (msw_ensure_console_allocated):
7557         * console-msw.c (msw_output_console_string):
7558         * console-msw.c (DHEADER):
7559         * console-msw.c (DOPAQUE_DATA):
7560         * console-msw.c (DEVENT):
7561         * console-msw.c (DCONS):
7562         * console-msw.c (DCONSCDR):
7563         * console-msw.c (DSTRING):
7564         * console-msw.c (DVECTOR):
7565         * console-msw.c (DSYMBOL):
7566         * console-msw.c (DSYMNAME):
7567         Fix warnings.
7568
7569         * console-stream.c (stream_init_console):
7570         Fix text/binary problems.
7571
7572         * device-msw.c:
7573         * device-msw.c (mswindows_finish_init_device):
7574         * device-msw.c (mswindows_delete_device):
7575         [1].
7576
7577         * device.c (handle_asynch_device_change):
7578         [3].
7579
7580         * dgif_lib.c:
7581         * dgif_lib.c (DGifOpenFileName):
7582         * dgif_lib.c (DGifOpenFileHandle):
7583         * dgif_lib.c (DGifGetLine):
7584         * dgif_lib.c (DGifGetPixel):
7585         Added config.h/lisp.h, fix up includes.
7586         [1].
7587
7588         * dired-msw.c:
7589         [4].
7590
7591         * dired.c:
7592         * dired.c (file_name_completion):
7593         * dired.c (Ffile_attributes):
7594         * dired.c (syms_of_dired):
7595         [1].
7596
7597         * dumper.c:
7598         * dumper.c (pdump_file_unmap):
7599         * dumper.c (pdump_load):
7600         [1].
7601
7602         * editfns.c:
7603         * editfns.c (Ftemp_directory):
7604         * editfns.c (user_login_name):
7605         * editfns.c (Fuser_real_login_name):
7606         * editfns.c (get_home_directory):
7607         [1].
7608
7609         * elhash.c (finish_marking_weak_hash_tables):
7610         [[[[5]]]]: Fix GCC warnings.
7611
7612         * emacs.c:
7613         * emacs.c (mswindows_handle_hardware_exceptions):
7614         * emacs.c (make_arg_list_1):
7615         * emacs.c (main_1):
7616         * emacs.c (Fkill_emacs):
7617         * emacs.c (Fdump_emacs):
7618         [1].
7619         Fix problems with nested crashes, add long comment.
7620
7621         * event-Xt.c (init_event_Xt_late):
7622         [1].
7623
7624         * event-msw.c:
7625         * event-msw.c (mswindows_dde_callback):
7626         * event-msw.c (mswindows_handle_sticky_modifiers):
7627         * event-msw.c (mswindows_wnd_proc):
7628         [1].
7629         [5].
7630
7631         * events.c (character_to_event):
7632         [1].
7633
7634         * fileio.c:
7635         * fileio.c (Ffile_name_directory):
7636         * fileio.c (Ffile_name_nondirectory):
7637         * fileio.c (directory_file_name):
7638         * fileio.c (Fexpand_file_name):
7639         * fileio.c (Fsubstitute_in_file_name):
7640         * fileio.c (Ffile_name_absolute_p):
7641         * fileio.c (check_executable):
7642         * fileio.c (Ffile_readable_p):
7643         * fileio.c (Ffile_accessible_directory_p):
7644         * fileio.c (Ffile_modes):
7645         * fileio.c (Funix_sync):
7646         * fileio.c (vars_of_fileio):
7647         [1]. [4].
7648
7649         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
7650
7651         Expand getdefdir defn.
7652         Fix bogus rename() comment.
7653
7654         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
7655         to use standard XEmacs include files, e.g. sysfile.h, rather
7656         than system-specific includes.
7657
7658         * fns.c:
7659         * fns.c (Fsubseq):
7660         [5]. [6].
7661
7662         * frame.c (vars_of_frame):
7663         [1].
7664
7665         * getloadavg.c:
7666         * getloadavg.c (getloadavg):
7667         [1]. [6].
7668         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
7669         (We don't use it elsewhere in the code; just add a comment.)
7670
7671         * gif_io.c:
7672         [6].
7673         Add config.h.
7674
7675         * glyphs-msw.c:
7676         * glyphs-msw.c (mswindows_resource_instantiate):
7677         [1].
7678
7679         * glyphs-x.c (x_native_layout_instantiate):
7680         [5].
7681
7682         * gui-msw.c (Fmswindows_shell_execute):
7683         [1].
7684
7685         * insdel.c:
7686         [4].
7687
7688         * lisp.h:
7689         [4]. [5].
7690
7691         * lread.c (locate_file_in_directory_mapper):
7692         [1].
7693
7694         * lstream.c:
7695         [4].
7696
7697         * mem-limits.h:
7698         * mem-limits.h (get_lim_data):
7699         [1].
7700
7701         * menubar-msw.c:
7702         [4].
7703
7704         * ndir.h:
7705         [1].
7706
7707         * nt.c:
7708         * nt.c (getwd):
7709         * nt.c (closedir):
7710         * nt.c (rva_to_section):
7711         * nt.c (mswindows_executable_type):
7712         [1]. [6].
7713         Fix closedir() defn.
7714
7715         * nt.h:
7716         [[[[8]]]]: *_OK defs moved to sysfile.h.
7717
7718         * ntproc.c:
7719         [6]. [7].
7720
7721         * objects-x.c:
7722         [4].
7723
7724         * print.c:
7725         * print.c (std_handle_out_external):
7726         [1]. [4].
7727
7728         * process-nt.c:
7729         * process-nt.c (nt_create_process):
7730         [6].
7731         try to fix process quoting somewhat.
7732
7733         * process-unix.c (unix_create_process):
7734         [1].
7735
7736         * process.c:
7737         * process.c (vars_of_process):
7738         Add Vnull_device.
7739
7740         * process.h:
7741         [1].
7742
7743         * realpath.c:
7744         * realpath.c (xrealpath):
7745         [1].
7746
7747         * redisplay-tty.c (init_tty_for_redisplay):
7748         [3].
7749
7750         * redisplay.c:
7751         [4]. [6].
7752
7753         * scrollbar-msw.c:
7754         [4].
7755
7756         * sheap.c:
7757         * sheap.c (more_static_core):
7758         * sheap.c (report_sheap_usage):
7759         [5]. [6].
7760
7761         * signal.c:
7762         * signal.c (alarm_signal):
7763         [1]. [6].
7764
7765         * sound.c:
7766         [6].
7767
7768         * strftime.c:
7769         * strftime.c (zone_name):
7770         [1]. [5].
7771
7772         * symsinit.h (init_sunpro):
7773         [1].
7774
7775         * syscommctrl.h:
7776         commctrl.h not in Cygwin b20.1.
7777
7778         * sysdep.c:
7779         * sysdep.c (endif):
7780         * sysdep.c (sys_subshell):
7781         * sysdep.c (init_baud_rate):
7782         * sysdep.c (emacs_get_tty):
7783         * sysdep.c (emacs_set_tty):
7784         * sysdep.c (tty_init_sys_modes_on_device):
7785         * sysdep.c (init_system_name):
7786         * sysdep.c (sys_open):
7787         * sysdep.c (interruptible_open):
7788         * sysdep.c (sys_fopen):
7789         * sysdep.c (sys_mkdir):
7790         * sysdep.c (sys_rename):
7791         * sysdep.c (get_process_times_1):
7792         [1]. [6].
7793
7794         * sysdep.h:
7795         [1].
7796
7797         * sysdir.h:
7798         * sysdir.h (DIRENTRY_NONEMPTY):
7799         [1]. [6].
7800
7801         * sysdll.c (dll_init):
7802         * sysdll.h:
7803         [1].
7804
7805         * sysfile.h:
7806         [1]. [6]. [8].
7807         added text/binary defs.
7808
7809         * sysfloat.h:
7810         [1].
7811
7812         * sysproc.h:
7813         * sysproc.h (EDESTADDRREQ):
7814         * sysproc.h (poll_fds_for_input):
7815         [1]. [6].
7816
7817         * syspwd.h:
7818         [6].
7819
7820         * syssignal.h:
7821         [1].
7822
7823         * systime.h:
7824         [1]. [6].
7825
7826         * systty.h:
7827         [1].
7828
7829         * syswindows.h:
7830         [1].
7831         Always define WIN32_LEAN_AND_MEAN.
7832
7833         * unexcw.c (unexec):
7834         [5].
7835
7836         * unexec.c:
7837         * unexec.c (copy_text_and_data):
7838         * unexec.c (adjust_lnnoptrs):
7839         [1].
7840
7841         * unexnt.c:
7842         * unexnt.c (_start):
7843         [1].
7844
7845 2000-06-07  Ben Wing  <ben@xemacs.org>
7846
7847         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
7848         was used only as a model.  We've long since extracted any useful
7849         logic or code out of this. (I just did an exhaustive search.)
7850
7851         * s\msdos.h: Removed.
7852
7853         * s\windows95.h: Removed.
7854
7855 2000-06-10  Ben Wing  <ben@xemacs.org>
7856
7857         * s\cygwin32.h:
7858         [1]. [5].
7859         Don't use extern with fun defs.
7860
7861         * s\mingw32.h:
7862         [1]. [7].
7863         Remove nt\inc include.
7864         Remove getdisk, getdefdir. (The former is unused, the latter
7865         expanded in fileio.h.)
7866
7867         * s\windowsnt.h:
7868         * s\windowsnt.h (WIN32_NATIVE):
7869         * s\windowsnt.h (HAVE_STRCASECMP):
7870         [1]. [7].
7871         Add long comment about preprocessor changes.
7872         Remove getdisk, getdefdir. (The former is unused, the latter
7873         expanded in fileio.h.)
7874
7875 2000-06-10  Ben Wing  <ben@xemacs.org>
7876
7877         * m\arm.h:
7878         * m\delta.h:
7879         * m\intel386.h:
7880         * m\sequent.h:
7881         * m\template.h:
7882         * m\windowsnt.h:
7883         [1].
7884         Remove bogus/unused NO_SOCK_SIGIO.
7885
7886 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
7887
7888         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
7889         not an Emchar.
7890
7891 2000-06-04  Mike Sperber <mike@xemacs.org>
7892
7893         * casetab.c (set_case_table): For `set-standard-case-table',
7894         actually deposit the new case tables where the rest of XEmacs can
7895         see them.
7896
7897 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
7898
7899         * data.c (Faset): Don't cast XCHAR() to unsigned char.
7900
7901 2000-06-05  Ben Wing  <ben@xemacs.org>
7902
7903         * callproc.c (child_setup): Don't do close_load_descs() under
7904         MS Windows.  Put in a comment explaining why.
7905
7906 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
7907
7908         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
7909         Toolkit shell" which breaks `kill-compilation' on Windows NT
7910         native, retaining STDERR handling improvements.
7911
7912 2000-06-01  Andreas Jaeger  <aj@suse.de>
7913
7914         * s/s390.h: Support for S390, based on a patch by Martin
7915         Schwidefsky <schwidefsky@de.ibm.com>.
7916
7917 2000-05-30  Andy Piper  <andy@xemacs.org>
7918
7919         * window.c (allocate_window):
7920         (make_dummy_parent):
7921         (Fset_window_configuration): use new hashtable type.
7922
7923         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
7924         (struct image_instantiator_methods):
7925         (struct Lisp_Image_Instance): make instance geometry signed.
7926
7927         * glyphs.c (instantiate_image_instantiator):
7928         (image_instance_query_geometry):
7929         (image_instance_layout):
7930         (image_instance_layout):
7931         (query_string_geometry):
7932         (text_query_geometry):
7933         (image_instantiate):
7934         (image_instantiate):
7935         (cache_subwindow_instance_in_frame_maybe):
7936         (subwindow_query_geometry): make instance geometry signed.
7937
7938         * glyphs-widget.c (widget_query_geometry):
7939         (widget_layout):
7940         (button_query_geometry):
7941         (tree_view_query_geometry):
7942         (tab_control_query_geometry):
7943         (layout_query_geometry):
7944         (layout_layout):
7945         (native_layout_layout): make instance geometry signed.
7946
7947 2000-05-29  Olivier Galibert  <galibert@pobox.com>
7948
7949         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
7950         constant.
7951
7952         * general.c (syms_of_general): Add Qfull_assoc symbol.
7953
7954         * data.c (finish_marking_weak_lists): Mark full-assoc lists
7955         correctly.
7956         (decode_weak_list_type): Decode full-assoc type.
7957         (encode_weak_list_type): Encode full-assoc type.
7958         (Fmake_weak_list): Update doc string.
7959
7960 2000-05-30  Andy Piper  <andy@xemacs.org>
7961
7962         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
7963
7964         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
7965         (decode_hash_table_weakness): ditto.
7966         (Fhash_table_weakness): ditto.
7967         (Fhash_table_type): ditto.
7968         (finish_marking_weak_hash_tables): ditto.
7969         (hash_table_weakness_validate): ditto.
7970         (syms_of_elhash): ditto.
7971
7972 2000-05-28  Martin Buchholz <martin@xemacs.org>
7973
7974         * XEmacs 21.2.34 is released.
7975
7976 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
7977
7978         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
7979         start cache.
7980         (updating_line_start_cache): Gone.
7981         (regenerate_window): Replace resetting of VERTICAL_CLIP by
7982         generic code to force a minimum of 1 line laid out in the
7983         CMOTION_DISP case.
7984
7985 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
7986
7987         * glyphs.c (instantiate_image_instantiator): Check for initialized
7988         height & width no longer special cases IMAGE_NOTHING.
7989         (nothing_instantiate): Set height and width of instance.
7990
7991 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
7992
7993         * unexelf.c (unexec): Search for ".data" section.
7994         Initialize new_data2_offset from old_data_index.
7995         Remove redundant check for ElfW.
7996
7997 2000-05-23  Andy Piper  <andy@xemacs.org>
7998
7999         * glyphs.c (get_image_instantiator_governing_domain): allow more
8000         specific domains as the governing domain rather than expecting an
8001         exact match. This fixes problems with layouts.
8002
8003 2000-05-22  Andy Piper  <andy@xemacs.org>
8004
8005         * redisplay-output.c (compare_runes): check for non-images
8006
8007         * glyphs.c (set_glyph_dirty_p): ditto.
8008         (update_glyph_cachel_data): ditto.
8009
8010         * glyphs-widget.c (layout_post_instantiate): ditto.
8011         (layout_post_instantiate): ditto.
8012
8013         * event-msw.c (mswindows_wnd_proc): warning removal.
8014
8015 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
8016
8017         * s\mingw32.h: Added #undef for CLASH_DETECTION.
8018
8019         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
8020
8021         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
8022
8023         * nt.c (rva_to_section): mingw32 needs rva_to_section.
8024         (mswindows_executable_type): mingw32 now has enough headers for
8025         this to work.
8026
8027 2000-05-20  Andy Piper  <andy@xemacs.org>
8028
8029         * console-msw.c (mswindows_output_last_error): ; -> ,
8030
8031 2000-05-12  Andy Piper  <andy@xemacs.org>
8032
8033         * console-msw.c (FROB): compare ints with ints.
8034
8035 2000-05-11  Andy Piper  <andy@xemacs.org>
8036
8037         * glyphs-x.c (x_finalize_image_instance): make minimal build
8038         happy.
8039
8040 2000-05-20  Ben Wing  <ben@xemacs.org>
8041
8042         * event-Xt.c:
8043         * event-Xt.c (vars_of_event_Xt):
8044         move modifier-keys-are-sticky to event-stream.c.
8045
8046         * event-msw.c:
8047         * event-msw.c (mswindows_enqueue_mouse_button_event):
8048         * event-msw.c (key_needs_default_processing_p):
8049         * event-msw.c (XEMSW_LCONTROL):
8050         * event-msw.c (mswindows_handle_sticky_modifiers):
8051         * event-msw.c (FROB):
8052         * event-msw.c (clear_sticky_modifiers):
8053         * event-msw.c (output_modifier_keyboard_state):
8054         * event-msw.c (output_alt_keyboard_state):
8055         * event-msw.c (mswindows_wnd_proc):
8056         * event-msw.c (mswindows_modifier_state):
8057         * event-msw.c (emacs_mswindows_handle_magic_event):
8058         implement sticky modifiers.
8059
8060         * event-stream.c:
8061         * event-stream.c (vars_of_event_stream):
8062         move modifier-keys-are-sticky here.
8063
8064         * lisp.h:
8065         add CHECK_FUNCTION.
8066
8067         * rangetab.c:
8068         implement map-range-table.
8069
8070
8071 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
8072
8073         * redisplay-tty.c (reset_tty_modes):
8074         (tty_redisplay_shutdown): Adjust argument type to
8075         tty_frame_output_end.
8076
8077 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8078
8079         * eval.c (Fbacktrace): Don't output a line with only right
8080         parenthesis.
8081
8082 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
8083
8084         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
8085         (Fpq_reset_poll): Ditto.
8086
8087 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
8088
8089         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
8090
8091 2000-05-16  Ben Wing  <ben@xemacs.org>
8092
8093         * buffer.c:
8094         * buffer.c (dfc_convert_to/from_internal_format):
8095         * buffer.c (reinit_vars_of_buffer):
8096         Fix conversion functions to allow reentrancy.
8097
8098         * console-msw.c:
8099         * console-msw.c (mswindows_output_last_error):
8100         New fun, generally useful -- output a human-readable
8101         version of GetLastError() on the console.
8102
8103         * console-msw.h:
8104         * console-msw.h (struct mswindows_frame):
8105         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
8106
8107         * console-stream.c (stream_output_begin):
8108         * console-stream.c (stream_output_end):
8109         * console-stream.c (stream_output_vertical_divider):
8110         * console-stream.c (stream_clear_region):
8111         * console-stream.c (stream_flash):
8112         * console-stream.c (console_type_create_stream):
8113         Delete blank stream methods, not needed.
8114
8115         * console.h (struct console_methods):
8116         Split begin/end methods into window and frame.
8117
8118         * event-msw.c:
8119         * event-msw.c (mswindows_handle_paint):
8120         * event-msw.c (output_alt_keyboard_state):
8121         * event-msw.c (mswindows_wnd_proc):
8122         * event-msw.c (vars_of_event_mswindows):
8123         Comment about problems with ignored-expose.
8124         Define mswindows-debug-events; not really implemented.
8125
8126         * frame-msw.c (mswindows_init_frame_1):
8127         random cleanups.
8128
8129         * glyphs-msw.c:
8130         * glyphs-msw.c (begin_defer_window_pos):
8131         * glyphs-msw.c (mswindows_unmap_subwindow):
8132         * glyphs-msw.c (mswindows_map_subwindow):
8133         * glyphs-msw.c (mswindows_resize_subwindow):
8134         Use DeferWindowPos to reduce flashing when mapping/unmapping.
8135
8136         * glyphs.c (make_image_instance_1):
8137         Fix crash.
8138
8139         * gutter.c (Fredisplay_gutter_area):
8140         Use new begin/end methods.
8141
8142         * lisp.h (Dynarr_new2):
8143         New creation fun.
8144
8145         * redisplay-msw.c:
8146         * redisplay-msw.c (mswindows_frame_output_begin):
8147         * redisplay-msw.c (mswindows_frame_output_end):
8148         * redisplay-msw.c (console_type_create_redisplay_mswindows):
8149         New begin/end methods -- handle DeferWindowPos.
8150
8151         * redisplay-output.c (redisplay_move_cursor):
8152         * redisplay-output.c (redraw_cursor_in_window):
8153         * redisplay-output.c (redisplay_update_line):
8154         * redisplay-output.c (redisplay_output_window):
8155         New begin/end methods.
8156
8157         * redisplay-tty.c:
8158         * redisplay-tty.c (tty_frame_output_begin):
8159         * redisplay-tty.c (tty_frame_output_end):
8160         * redisplay-tty.c (console_type_create_redisplay_tty):
8161         New begin/end methods.
8162
8163         * redisplay-x.c:
8164         * redisplay-x.c (x_window_output_begin):
8165         * redisplay-x.c (x_window_output_end):
8166         * redisplay-x.c (console_type_create_redisplay_x):
8167         New begin/end methods.
8168
8169         * redisplay.c (redisplay_frame):
8170         * redisplay.c (Fredisplay_echo_area):
8171         New begin/end methods.
8172         use MAYBE_DEVMETH for clear_frame; it may not exist.
8173
8174         * window.h (WINDOW_XFRAME):
8175         WINDOW_XFOO macros -- get locale and decode struct pointer.
8176
8177
8178 2000-05-12  Ben Wing  <ben@xemacs.org>
8179
8180         * emacs.c:
8181         * emacs.c (ensure_no_quitting_from_now_on):
8182         * emacs.c (fatal_error_signal):
8183         * emacs.c (mswindows_handle_hardware_exceptions):
8184         * emacs.c (main):
8185         * emacs.c (Fkill_emacs):
8186         * emacs.c (shut_down_emacs):
8187         * emacs.c (assert_failed):
8188         various improvements in fatal error handling.
8189
8190         * eval.c:
8191         move preparing_for_armageddon to emacs.c.
8192
8193         * lisp.h:
8194         declare fatal_error_in_progress.
8195
8196         * print.c:
8197         * print.c (std_handle_out_external):
8198         * print.c (std_handle_out_va):
8199         * print.c (stderr_out):
8200         * print.c (stdout_out):
8201         use console under mswin when no standard output.
8202         don't do code conversion during fatal error.
8203
8204         * scrollbar.c (Fscrollbar_page_up):
8205         * scrollbar.c (Fscrollbar_page_down):
8206         fix missing else.  reindent.
8207
8208 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
8209
8210         Emergency fix.
8211
8212         * glyphs.h (GLYPH_CACHEL_DESCENT):
8213         (GLYPH_CACHEL_DESCENT):
8214         (GLYPH_CACHEL_DESCENT):
8215         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
8216         used in case these are inline functions.
8217         Use more absurd values to error check.
8218
8219         include window.h for error check functions.
8220
8221 2000-05-11  Ben Wing  <ben@xemacs.org>
8222
8223         * cmdloop.c (Freally_early_error_handler):
8224         Display message box under windows; otherwise, message will disappear
8225         before it can be viewed.
8226
8227         * console-msw.c:
8228         * console-msw.c (Fmswindows_message_box):
8229         * console-msw.c (FROB):
8230         * console-msw.c (syms_of_console_mswindows):
8231         Define new fun `mswindows-message-box'.
8232         #### I will merge this into `popup-dialog-box'; just give me
8233         a bit of time.
8234
8235         * general.c:
8236         * general.c (syms_of_general):
8237         Some new symbols used in `mswindows-message-box'.
8238
8239         * glyphs.c:
8240         * glyphs.c (Fset_image_instance_property):
8241         put warning in this fun.
8242
8243         * glyphs.h:
8244         * glyphs.h (GLYPH_CACHEL_WIDTH):
8245         * glyphs.h (GLYPH_CACHEL_ASCENT):
8246         * glyphs.h (GLYPH_CACHEL):
8247         * glyphs.h (GLYPH_CACHEL_GLYPH):
8248         define error-checking versions to try to catch a bug i've seen --
8249         redisplay gets in an infinite loop because the glyph width of the
8250         continuation glyph is 65535.
8251
8252         * lisp.h:
8253         Extern message-box stuff.
8254
8255         * window.c (allocate_window):
8256         * window.c (make_dummy_parent):
8257         * window.c (Fset_window_configuration):
8258         Use EQUAL not EQ for subwindow caches to make them work a bit
8259         better. (Something is still very broken.)
8260
8261
8262 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8263
8264         * glyphs.c (image_instantiate): Suppress gcc warnings.
8265         (Fmake_image_instance): Fix doc string.
8266         * specifier.c (Fmake_specifier): Ditto.
8267
8268 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
8269
8270         * paths.h.in (PATH_LOCK): Removed.
8271         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
8272         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
8273
8274 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
8275
8276         * fns.c (Ffeaturep): Update e-mail address in doc-string.
8277         Document (featurep '(and xemacs 21.02)).
8278
8279 2000-05-09  Ben Wing  <ben@xemacs.org>
8280
8281         * buffer.c (complex_vars_of_buffer):
8282         update modeline-format doc.
8283
8284         * device.h:
8285         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
8286
8287         * emacs.c:
8288         timeline of all released versions of Emacs, for use in creating
8289         authorship comments and in synching up.
8290
8291         * glyphs-widget.c (image_instantiator_buttons):
8292         * glyphs-widget.c (image_instantiator_edit_fields):
8293         * glyphs-widget.c (image_instantiator_combo_box):
8294         * glyphs-widget.c (image_instantiator_scrollbar):
8295         * glyphs-widget.c (image_instantiator_progress_guage):
8296         * glyphs-widget.c (image_instantiator_tree_view):
8297         * glyphs-widget.c (image_instantiator_tab_control):
8298         * glyphs-widget.c (image_instantiator_labels):
8299         * glyphs-widget.c (image_instantiator_layout):
8300         * glyphs-widget.c (image_instantiator_native_layout):
8301         rename decode_domain method to governing_domain.
8302
8303         * glyphs.c:
8304         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
8305         * glyphs.c (add_entry_to_device_ii_format_list):
8306         make sure we don't put an entry more than once into the list.
8307         * glyphs.c (check_instance_cache_mapper):
8308         *************************************************************
8309         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
8310         HAVE BEEN GETTING.
8311         *************************************************************
8312         * glyphs.c (get_image_instantiator_governing_domain):
8313         clean up, expand on new concept of governing domain.
8314         * glyphs.c (instantiate_image_instantiator):
8315         * glyphs.c (allocate_image_instance):
8316         use governing_domain instead of cache_domain in naming.
8317         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
8318         * glyphs.c (make_image_instance_1):
8319         * glyphs.c (Fmake_image_instance):
8320         allow for any domain (not just device), and process the
8321         governing domain correctly.  very big doc fix.
8322         * glyphs.c (Fimage_instance_domain):
8323         new primitive, to retrieve the governing domain of an image instance.
8324         * glyphs.c (image_instantiate):
8325         use new governing_domain stuff.  this fixes a crash you could get
8326         by instantiating certain widget glyphs in frame locales. (should
8327         signal an error instead of crashing.)
8328         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
8329         * glyphs.c (Fglyphp): clean up doc.
8330         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
8331         * glyphs.c (syms_of_glyphs):
8332         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
8333         * glyphs.c (image_instantiator_format_create): add some comments about
8334         bogus code.
8335         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
8336         for current-display-table. (Apparently Hrjove implemented in 1998 a
8337         design I wrote up in 1996, but didn't update the doc string.)
8338
8339         * glyphs.h: clean up a doc string.
8340         * glyphs.h (governing_domain):
8341         * glyphs.h (struct image_instantiator_methods):
8342         changes for governing_domain stuff.
8343
8344         * gutter.c:
8345         * gutter.c (Fgutter_specifier_p):
8346         * gutter.c (Fgutter_size_specifier_p):
8347         * gutter.c (Fgutter_visible_specifier_p):
8348         * objects.c:
8349         * objects.c (Fcolor_specifier_p):
8350         * objects.c (Ffont_specifier_p):
8351         * objects.c (Fface_boolean_specifier_p):
8352         doc strings moved to make-*-specifier.
8353
8354         * redisplay.c (add_disp_table_entry_runes_1):
8355         * redisplay.c (generate_fstring_runes):
8356         * redisplay.c (screen):
8357         add random comments and doc strings.
8358
8359         * specifier.c:
8360         * specifier.c (Fmake_specifier):
8361         major overhaul of this doc string.
8362
8363         * specifier.c (Fvalid_specifier_domain_p):
8364         comment about the bogosity of image instances being domains.
8365         * specifier.c (decode_domain):
8366         now non-static, used in glyphs.c.
8367         * specifier.c (specifier_instance):
8368         comment about the bogosity of image instances being domains.
8369         * specifier.c (Fgeneric_specifier_p):
8370         move doc string to make-generic-specifier.
8371         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
8372         rebackslashify.
8373
8374         * specifier.h:
8375         * specifier.h (DOMAIN_FRAME):
8376         * specifier.h (DOMAIN_LIVE_P):
8377         * specifier.h (DOMAIN_XDEVICE):
8378         rebackslashify.
8379         add comments about problems with these macros.
8380         prototype for decode_domain.
8381
8382         * toolbar.c:
8383         * toolbar.c (Ftoolbar_specifier_p):
8384         move doc string to `make-toolbar-specifier'.
8385
8386         * window.c (window_unmap_subwindows_cache_mapper):
8387         *************************************************************
8388         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
8389         HAVE BEEN GETTING.
8390         *************************************************************
8391
8392 2000-05-09  Andy Piper  <andy@xemacs.org>
8393
8394         * glyphs.h: declare reset_frame_subwindow_instance_cache.
8395
8396         * window.c (Fset_window_configuration): reset the frame subwindow
8397         cache and re-initialize the window subwindow caches.
8398
8399         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
8400
8401 2000-05-09  Ben Wing  <ben@xemacs.org>
8402
8403         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
8404         DWORD.
8405
8406 2000-04-26  Mike Woolley  <mike@bulsara.com>
8407
8408         * ntheap.c: Changed recreate_heap to limit the amount reserved
8409         for the heap to that which is actually available. Also now
8410         displays a message box (with some dignostics) in the event that
8411         it still can't start.
8412
8413 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
8414
8415         * callproc.c (Fold_call_process_internal): GCPRO path
8416
8417 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
8418
8419         Patch by Bill Perry.
8420
8421         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
8422         back data instead of #ifdef.
8423         (Fscrollbar_page_down): ditto.
8424
8425 2000-05-07  Ben Wing  <ben@xemacs.org>
8426
8427         * buffer.h:
8428         Kludge for defining Qmswindows_tstr.
8429
8430         * nt.c:
8431         * nt.c (open_input_file):
8432         * nt.c (open_output_file):
8433         * nt.c (rva_to_section):
8434         * nt.c (mswindows_executable_type):
8435         Move all memory-mapped-file routines here (some were in unexnt.c,
8436         which is bad because they are used by process-nt.c, and unexnt
8437         won't be around when portable dumping).  Synched the above routines
8438         with FSF 20.6.
8439
8440         * nt.h:
8441         Removed ifdef'd out bogus code.
8442         Fixed some prototypes.
8443
8444         * nt.h (file_data):
8445         * nt.h (OFFSET_TO_RVA):
8446         * nt.h (RVA_TO_OFFSET):
8447         * nt.h (RVA_TO_PTR):
8448         Moved the memory-mapped-file structures, macros and prototypes
8449         here, to parallel nt.c.  ntheap.h should really be removed
8450         entirely, and it's a non-portable-dumper specific file.
8451
8452         * ntheap.h (round_to_next):
8453         Moved the memory-mapped-file structures, macros and prototypes
8454         to nt.h.
8455
8456         * ntproc.c (compare_env):
8457         Moved rva_to_section and mswindows_executable_type to nt.c.
8458         Moved compare_env to process-nt.c.
8459         ntproc.c will die, one day.
8460
8461         * ntproc.c (sys_spawnve):
8462         Account for win32_ -> mswindows_.
8463
8464         * process-nt.c:
8465         * process-nt.c (struct nt_process_data):
8466         * process-nt.c (ensure_console_window_exists):
8467         * process-nt.c (compare_env):
8468         * process-nt.c (nt_create_process):
8469         * process-nt.c (nt_kill_process_by_pid):
8470         * process-nt.c (syms_of_process_nt):
8471         * process-nt.c (vars_of_process_nt):
8472         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
8473         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
8474         changes).  Eliminate our old `nt-quote-process-args' mechanism.
8475         Synch up nt_create_process with FSF 20.6 sys_spawnve.
8476         Move compare_env here from ntproc.c.
8477
8478         * process.c (Fprocess_send_region):
8479         Takes an optional fourth argument, BUFFER, which should fix some
8480         problems with call-process.
8481
8482         * syscommctrl.h:
8483         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
8484
8485         * syswindows.h:
8486         Move ICC_BAR_CLASSES to syscommctrl.h.
8487         Add preliminary macros for MSWindows/Mule.  More to come.
8488
8489         * unexnt.c:
8490         * unexnt.c (unexec):
8491         open_output_file moved to nt.c.
8492
8493
8494 2000-05-05  Andy Piper  <andy@xemacs.org>
8495
8496         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
8497         instance from the frame cache also since GC may catch up too late
8498         to make frame deletion sane.
8499
8500 2000-05-04  Andy Piper  <andy@xemacs.org>
8501
8502         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
8503         (x_finalize_image_instance): ungcpro on deletion.
8504
8505         * glyphs.c (image_instantiator_format_create): give pointers a
8506         query geometry method so that the geometry is at least set.
8507
8508         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
8509         initialize layouts if using widgets.
8510
8511 2000-05-03  Andy Piper  <andy@xemacs.org>
8512
8513         * nt.c: remove bogus reference to sysmmsystem.h
8514
8515         * gui-x.c (popup_selection_callback): fix no selection abort.
8516
8517 2000-05-02  Andy Piper  <andy@xemacs.org>
8518
8519         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
8520         (mswindows_widget_instantiate): ditto.
8521
8522         * glyphs-widget.c (initialize_widget_image_instance): initialize
8523         children correctly.
8524         (widget_instantiate): cope with children and items in the same
8525         instance.
8526
8527         * glyphs.c (mark_image_instance): cope with children as a first
8528         class member.
8529         (image_instance_equal): ditto.
8530         (image_instance_hash): ditto.
8531         (image_instance_changed): ditto.
8532
8533 2000-04-30  Andy Piper  <andy@xemacs.org>
8534
8535         * glyphs.c (subwindow_query_geometry): new function. Return some
8536         defaults.
8537         (subwindow_instantiate): don't assign dimensions if none have been
8538         given.
8539         (image_instantiator_format_create): add subwindow_query_geometry.
8540         (print_image_instance): cope with layouts as widgets.
8541
8542 2000-04-29  Andy Piper  <andy@xemacs.org>
8543
8544         * frame.c (delete_frame_internal): call
8545         free_frame_subwindow_instance_cache so that all subwindows are
8546         finalized before their parent.
8547         (mark_frame): remove subwindow_cachels.
8548         (Fmake_frame): remove subwindow_cachel manipulation.
8549         (allocate_frame_core): subwindow_instance_cache is a weak list.
8550         (delete_frame_internal): set subwindow_instance_cache to nil.
8551
8552         * glyphs-msw.c (mswindows_finalize_image_instance): make double
8553         finalization safe.
8554         (mswindows_finalize_image_instance): use the device
8555         not the domain as the domain may have died already.
8556
8557         * glyphs-x.c (x_finalize_image_instance): ditto.
8558         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
8559         HEIGHT.
8560
8561         * redisplay-output.c (redisplay_unmap_subwindows): update for
8562         subwindow instance cache as a weak list.
8563         (redisplay_unmap_subwindows_maybe): ditto.
8564         (redisplay_unmap_subwindows_except_us): ditto.
8565
8566         * glyphs.c (unmap_subwindow): error checking will check the domain
8567         so don't deal with it here. Don't use cachels anymore.
8568         (map_subwindow): ditto.
8569         (update_subwindow_cachel_data): remove old accessor names.
8570         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
8571         (Fresize_subwindow): don't update cachel.
8572         (mark_subwindow_cachels):
8573         (update_subwindow_cachel_data):
8574         (add_subwindow_cachel):
8575         (get_subwindow_cachel_index):
8576         (update_subwindow_cachel):
8577         (reset_subwindow_cachels):
8578         (mark_subwindow_cachels_as_not_updated): deleted.
8579         (cache_subwindow_instance_in_frame_maybe): new function. Add a
8580         subwindow instance to the frame cache.
8581         (find_matching_subwindow): update for subwindow instance cache as
8582         a weak list.
8583         (update_widget_instances): ditto.
8584         (image_instance_type_to_mask):inlined.
8585         (free_frame_subwindow_instance_cache): new function. finalize all
8586         subwindows that are instantiated.
8587
8588         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
8589         of cachel information.
8590         (IMAGE_INSTANCE_DISPLAY_X):
8591         (IMAGE_INSTANCE_DISPLAY_Y):
8592         (IMAGE_INSTANCE_DISPLAY_WIDTH):
8593         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
8594         (XIMAGE_INSTANCE_DISPLAY_X):
8595         (XIMAGE_INSTANCE_DISPLAY_Y):
8596         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
8597         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
8598         remove subwindow_cachel structure and function references.
8599         (image_instance_type_to_mask): inline from glyphs.c
8600
8601         * redisplay.c (redisplay_frame): remove subwindow_cachel
8602         references.
8603
8604         * frame.h (struct frame): remove subwindow_cachels.
8605         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
8606
8607         * frameslots.h: add subwindow_instance_cache.
8608
8609         * window.c (replace_window): check subwindow cache of replacement.
8610         (window_unmap_subwindows_cache_mapper):
8611         (window_unmap_subwindows): new functions. Unmap all subwindows
8612         cached on this window.
8613         (mark_window_as_deleted): unmap all subwindows.
8614
8615 2000-04-27  Andy Piper  <andy@xemacs.org>
8616
8617         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
8618
8619         * glyphs-widget.c (widget_layout): return something.
8620         (layout_layout): return something. Fail if not initialized.
8621         (layout_query_geometry): ditto.
8622         (image_instantiator_native_layout): new function. Initialized the
8623         native layout type.
8624         (widget_instantiate): don't do layout stuff here.
8625
8626         * glyphs.c (instantiate_image_instantiator): reorded calling or
8627         instantiate and post_instantiate with layout in between.
8628         (image_instance_layout): be more selective about deciding whether
8629         the layout has been done or not.
8630
8631         * glyphs.h (struct image_instantiator_methods): return a value
8632         from layout_method.
8633
8634 2000-04-26  Andy Piper  <andy@xemacs.org>
8635
8636         * glyphs.c (allocate_image_instance): make initial width and
8637         height unspecified. Set initialized to 0.
8638
8639         * syscommctrl.h new file. Encapsulates commctrl.h.
8640
8641         * syswindows.h new file. Encapsulates windows.h.
8642
8643         * ntplay.c: use new syswindows.h and syscommctrl.h header.
8644         * nt.c: ditto.
8645         * console-msw.h: ditto.
8646
8647         * redisplay-tty.c (tty_output_display_block): remove layout references.
8648
8649         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
8650         window handle rather than just the frame.
8651
8652         * glyphs.c (mark_image_instance): remove layout references.
8653         (print_image_instance): ditto.
8654         (image_instance_equal): ditto.
8655         (image_instance_hash): ditto.
8656         (decode_image_instance_type): ditto.
8657         (encode_image_instance_type): ditto.
8658         (image_instantiate): ditto.
8659         (allocate_glyph): ditto.
8660         (Fimage_instance_height): ditto.
8661         (Fimage_instance_width): ditto.
8662         (update_subwindow): ditto.
8663
8664         * redisplay-x.c (x_output_display_block): recode for layouts as
8665         widgets.
8666
8667         * redisplay-output.c (redisplay_output_layout): recode for layouts
8668         as widgets.
8669         (compare_runes): remove layout references.
8670
8671         * redisplay-msw.c (mswindows_output_display_block): recode for
8672         layouts as widgets.
8673
8674         * glyphs-widget.c (image_instantiator_layout): remove
8675         layout_possible_dest_types.
8676         (layout_possible_dest_types): deleted.
8677
8678         * glyphs.h (image_instance_type): remove layout references.
8679         (struct Lisp_Image_Instance): ditto. Add initialized flag.
8680         (IMAGE_INSTANCE_INITIALIZED): new accessor.
8681         (XIMAGE_INSTANCE_INITIALIZED): ditto.
8682
8683 2000-04-25  Andy Piper  <andy@xemacs.org>
8684
8685         * glyphs-widget.c (image_instantiator_buttons):
8686         (image_instantiator_edit_fields):
8687         (image_instantiator_combo_box):
8688         (image_instantiator_scrollbar):
8689         (image_instantiator_progress_guage):
8690         (image_instantiator_tree_view):
8691         (image_instantiator_tab_control):
8692         (image_instantiator_labels):
8693         (image_instantiator_layout): call default post_instantiate method.
8694         (widget_post_instantiate): new function. Simply lays out the
8695         widgets.
8696
8697         * glyphs.h (struct image_instantiator_methods): add
8698         post_instantiate method.
8699
8700         * glyphs.c (instantiate_image_instantiator): add post_instantiate
8701         method calls.
8702
8703 2000-04-23  Andy Piper  <andy@xemacs.org>
8704
8705         * glyphs.h (struct image_instantiator_methods): add
8706         decode_domain_method.
8707         (struct Lisp_Image_Instance): remove subwindow frame - it can be
8708         derived from the domain.
8709         (IMAGE_INSTANCE_FRAME): new accessor.
8710         (XIMAGE_INSTANCE_FRAME): ditto.
8711
8712         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
8713         instead of _SUBWINDOW_FRAME.
8714         (finalize_image_instance): ditto.
8715         (Fimage_instance_foreground): ditto.
8716         (Fimage_instance_background): ditto.
8717         (image_instantiate): ditto.
8718         (update_subwindow_cachel): ditto.
8719         (update_subwindow): ditto.
8720         (unmap_subwindow): ditto.
8721         (map_subwindow): ditto
8722         (subwindow_instantiate): ditto.
8723         * glyphs-msw.c (mswindows_update_widget): ditto.
8724         (mswindows_progress_gauge_instantiate): ditto.
8725         (mswindows_tab_control_update): ditto.
8726         * glyphs-x.c (x_update_widget): ditto.
8727         (x_widget_instantiate): ditto.
8728         (x_tab_control_instantiate): ditto.
8729         (x_tab_control_update): ditto.
8730         * event-msw.c (mswindows_wnd_proc): ditto
8731
8732         * glyphs-widget.c (image_instantiator_layout): use
8733         subwindow_decode_domain.
8734         (image_instantiator_buttons): ditto.
8735         (image_instantiator_edit_fields): ditto.
8736         (image_instantiator_combo_box): ditto.
8737         (image_instantiator_scrollbar): ditto.
8738         (image_instantiator_progress_guage): ditto.
8739         (image_instantiator_tree_view): ditto.
8740         (image_instantiator_tab_control): ditto.
8741         (image_instantiator_labels): ditto.
8742         (image_instantiator_layout): ditto.
8743
8744         * glyphs.c: add instance error checking to many functions.
8745         (instantiate_image_instantiator): decode device from cache_domain.
8746         (image_instantiate): partially rewrite by using
8747         decode_image_instantiator_domain to determine what domain the
8748         instance needs to be cached in.
8749         (decode_image_instantiator_domain): new function. Determine what
8750         domain the image needs to be cached in.
8751         (check_window_subwindow_cache): new error checking function.
8752         (check_instance_cache_mapper): ditto.
8753         (check_image_instance_structure): ditto.
8754         (subwindow_decode_domain): new function. Encodes a window as a
8755         subwindow's cache domain.
8756         (image_instantiator_format_create): use it for text and
8757         subwindows.
8758
8759 2000-04-21  Andy Piper  <andy@xemacs.org>
8760
8761         * glyphs.c (image_instance_device): new function.
8762         (image_instance_frame): new function.
8763         (image_instance_window): new function.
8764         (image_instance_live_p): new function.
8765
8766         * window.c (mark_window_as_deleted): reset the subwindow_instance_
8767         cache to nil.
8768
8769         * glyphs.h (struct Lisp_Image_Instance): device->domain.
8770         (IMAGE_INSTANCE_DOMAIN): new accessor.
8771         (XIMAGE_INSTANCE_DOMAIN): ditto.
8772
8773         * glyphs-x.c (x_finalize_image_instance): device->domain.
8774
8775         * glyphs-msw.c (init_image_instance_geometry): device->domain.
8776         (mswindows_finalize_image_instance): ditto.
8777
8778         * glyphs-eimage.c (jpeg_instantiate): device->domain.
8779         (gif_instantiate): ditto.
8780         (png_instantiate): ditto.
8781         (tiff_instantiate): ditto.
8782
8783         * glyphs.c (instantiate_image_instantiator): use domain rather
8784         than device.
8785         (mark_image_instance): device -> domain.
8786         (print_image_instance): ditto.
8787         (finalize_image_instance): ditto.
8788         (image_instance_equal): ditto.
8789         (allocate_image_instance): ditto.
8790         (Fcolorize_image_instance): ditto.
8791         (query_string_geometry): ditto.
8792         (image_instantiate): ditto
8793         (query_string_font): ditto.
8794         (image_instantiate): ditto.
8795         (update_subwindow): ditto.
8796         (unmap_subwindow): ditto.
8797         (map_subwindow): ditto.
8798         (subwindow_instantiate): ditto.
8799
8800         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
8801         (DOMAIN_FRAME): ditto.
8802         (DOMAIN_WINDOW): ditto.
8803         (DOMAIN_LIVE_P): ditto.
8804         (XDOMAIN_DEVICE): ditto.
8805         (XDOMAIN_FRAME): ditto.
8806         (XDOMAIN_WINDOW): ditto.
8807
8808         * specifier.c (Fvalid_specifier_domain_p): add image instances as
8809         a valid specifier domain.
8810
8811 2000-04-19  Andy Piper  <andy@xemacs.org>
8812
8813         * glyphs-widget.c (syms_of_glyphs_widget): remove
8814         widget-callback-current-channel.
8815         (vars_of_glyphs_widget): ditto.
8816         * glyphs.h: ditto
8817
8818         * gui.c (get_gui_callback): revert to previous behaviour.
8819
8820 2000-04-18  Andy Piper  <andy@xemacs.org>
8821
8822         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
8823         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
8824         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
8825
8826         * glyphs.c (image_instance_equal): add margin_width.
8827         (image_instance_hash): ditto.
8828
8829         * glyphs-widget.c (widget_instantiate): deal with margin-width.
8830         (layout_query_geometry): ditto.
8831         (layout_layout): ditto.
8832         (syms_of_glyphs_widget): add margin-width.
8833         (image_instantiator_layout): allow margin-width.
8834
8835         * glyphs.c (update_widget_instances): make a normal function.
8836         (syms_of_glyphs): remove Qupdate_widget_instances.
8837         * glyphs.h: ditto.
8838
8839         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
8840         so that we don't corrupt ideas about the last event or
8841         command. Remove widget-callback-current-channel fiddling.
8842         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
8843
8844 2000-05-01  Martin Buchholz <martin@xemacs.org>
8845
8846         * XEmacs 21.2.33 is released.
8847
8848 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
8849
8850         * make-src-depend: Allow dots in header file name.
8851
8852 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
8853
8854         * mule-charset.h (struct charset_lookup): Add
8855         next_allocated_1_byte_leading_byte and
8856         next_allocated_2_byte_leading_byte.
8857         * mule-charset.c: Move above two variables so that those values
8858         will be dumped.
8859
8860 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
8861
8862         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
8863         when string length is zero.
8864         (find_charsets_in_emchar_string): Ditto.
8865
8866 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
8867
8868         * lisp.h: extern Qdialog and Qmenubar.
8869
8870         * gui-x.c: added events.h.
8871                 also fixed typo which made the file uncompilable.
8872
8873         * general.c: Added Qmenubar and Qdialog
8874
8875 2000-04-28  Ben Wing  <ben@xemacs.org>
8876
8877         * frame-msw.c (mswindows_init_frame_1):
8878         * frame-msw.c (mswindows_mark_frame):
8879         * event-msw.c (mswindows_enqueue_dispatch_event):
8880         * console-msw.h:
8881         * console-msw.h (struct mswindows_frame):
8882         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
8883         there are now three hash tables for callbacks.
8884         mswindows_enqueue_dispatch_event is no longer static.
8885
8886         * dialog-x.c (maybe_run_dbox_text_callback):
8887         * dialog-x.c (dbox_descriptor_to_widget_value):
8888         switch to new cons3 form for callbacks.
8889
8890         * glyphs-msw.c (mswindows_register_gui_item):
8891         * glyphs-msw.c (mswindows_widget_instantiate):
8892         * glyphs-msw.c (add_tree_item):
8893         * glyphs-msw.c (add_tab_item):
8894         new image instance parameter, so it can be passed to callback-ex.
8895         respect :callback-ex as well as :callback.
8896
8897         * glyphs-widget.c (VALID_GUI_KEYWORDS):
8898         add :callback-ex.
8899
8900         * glyphs.c (print_image_instance):
8901         prettify, e.g. now prints widget type.
8902
8903         * gui-x.h:
8904         certain funs have new image instance parameter.
8905
8906         * gui.c:
8907         * gui.c (get_gui_callback):
8908         * gui.c (gui_item_add_keyval_pair):
8909         * gui.c (gui_item_init):
8910         * gui.c (gui_add_item_keywords_to_plist):
8911         * gui.c (mark_gui_item):
8912         * gui.c (gui_item_hash):
8913         * gui.c (gui_item_equal):
8914         * gui.c (copy_gui_item):
8915         * gui.c (syms_of_gui):
8916         recognize callback-ex in a number of places.
8917         also, fix the annoying "can't get out of yes-no dialog" bug.
8918
8919         * gui.h:
8920         * gui.h (struct Lisp_Gui_Item):
8921         recognize callback-ex in a number of places.
8922
8923         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
8924         new parameter in button_item_to_widget_value.
8925
8926         * glyphs-x.c (x_update_widget):
8927         * glyphs-x.c (x_button_instantiate):
8928         * glyphs-x.c (x_button_update):
8929         * glyphs-x.c (x_progress_gauge_instantiate):
8930         * glyphs-x.c (x_edit_field_instantiate):
8931         * glyphs-x.c (x_combo_box_instantiate):
8932         * glyphs-x.c (x_tab_control_instantiate):
8933         * glyphs-x.c (x_label_instantiate):
8934         new image instance parameter in various places.
8935
8936         * event-Xt.c:
8937         * event-Xt.c (enqueue_Xt_dispatch_event):
8938         this fun gets exported.
8939
8940         * gui-msw.c:
8941         * gui-msw.c (mswindows_handle_gui_wm_command):
8942         handle both :callback and :callback-ex, and generate our own
8943         event because it's one of the callback-ex arguments.
8944
8945         * gui-x.c:
8946         * gui-x.c (popup_selection_callback):
8947         handle both :callback and :callback-ex, and generate our own
8948         event because it's one of the callback-ex arguments.
8949         * gui-x.c (button_item_to_widget_value):
8950         * gui-x.c (gui_items_to_widget_values_1):
8951         * gui-x.c (gui_item_children_to_widget_values):
8952         * gui-x.c (gui_items_to_widget_values):
8953         new image instance parameter in various places.
8954
8955         * fns.c (Freplace_list):
8956         fix small typo in doc string.
8957
8958         * lisp.h:
8959         declare enqueue_Xt_dispatch_event.
8960
8961 2000-04-28  Ben Wing  <ben@xemacs.org>
8962
8963         * buffer.c:
8964         * buffer.c (Frecord_buffer):
8965         * buffer.c (syms_of_buffer):
8966         delete record-buffer-hook.
8967
8968         * fns.c:
8969         * fns.c (Freplace_list):
8970         * fns.c (syms_of_fns):
8971         new primitive replace-list.
8972
8973         * frameslots.h:
8974         slot for old buffer-alist.
8975
8976         * lisp.h:
8977         exfun replace-list.
8978
8979         * redisplay.c:
8980         * redisplay.c (redisplay_frame):
8981         * redisplay.c (syms_of_redisplay):
8982         * redisplay.c (vars_of_redisplay):
8983         new hook buffer-list-changed-hook.
8984         call it.
8985
8986 2000-04-27  Ben Wing  <ben@xemacs.org>
8987
8988         * extents.h: extern in_modeline_generation.
8989
8990         * redisplay.c (generate_formatted_string_db): set
8991         in_modeline_generation.
8992
8993         * extents.c (extent_changed_for_redisplay): don't mark redisplay
8994         flags if in modeline generation.  otherwise frame-modified-tick
8995         is ticked far too often.
8996         Declare in_modeline_generation.
8997
8998 2000-04-26  Ben Wing  <ben@xemacs.org>
8999
9000         * emacs.c (vars_of_emacs): document quick-build "error-checking"
9001         option.
9002         (vars_of_emacs): add quick-build as an error-checking option.
9003         A bit kludgy, but there doesn't seem much point in creating
9004         a real var for this.
9005
9006         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
9007
9008 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9009
9010         * redisplay.h (struct display_line): Add a new variable,
9011         line_continuation.
9012
9013         * redisplay.c (create_text_block): Set dl->line_continuation if
9014         the line continues.
9015         (create_string_text_block): Ditto.
9016         (regenerate_window_incrementally): Use line_continuation instead
9017         of searching continuation glyph.
9018         (add_margin_runes): Call add_glyph_rune.
9019         (add_glyph_rune): Handle margin glyph.
9020
9021 2000-04-20  Martin Buchholz  <martin@xemacs.org>
9022
9023         * filelock.c (fill_in_lock_file_name):
9024         ANSIfy.
9025         Check for IS_ANY_SEP instead of '/'.
9026         (lock_file_1):
9027         Avoid generating gratuitous garbage.  Call user_login_name() directly.
9028         Never check errno without first seeing that system call failed.
9029         (unlock_file): Add GCPRO.
9030         (Flock_buffer): Fix docstring.
9031         (Ffile_locked_p): Fix docstring.  Add GCPRO.
9032
9033 2000-04-19  Martin Buchholz  <martin@xemacs.org>
9034
9035         * sysdep.c (get_pty_max_bytes):
9036         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
9037         strings longer than 252 bytes.
9038
9039         * md5.c: Unconditionally include ANSI header <limits.h>
9040
9041         * glyphs-x.c (convert_EImage_to_XImage):
9042         * lisp-union.h (union Lisp_Object):
9043         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
9044
9045 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9046
9047         * filelock.c (current_lock_owner): Remove unused variable o, p.
9048
9049 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
9050
9051         * callint.c: Remove multiply defined symbol Qlet
9052         (syms_of_callint): ditto.
9053
9054 2000-04-14  Andy Piper  <andy@xemacs.org>
9055
9056         * general.c (syms_of_general): add last-command, this-command, let
9057         and funcall.
9058
9059         * lisp.h: declare various symbols.
9060
9061         * glyphs.h: declare Qwidget_callback_current_channel;
9062
9063         * glyphs-widget.c (syms_of_glyphs_widget): add
9064         Qgui_callback_current_channel.
9065         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
9066
9067         * gui-msw.c (mswindows_handle_gui_wm_command): bind
9068         widget-callback-current-channel when invoking the interactive
9069         arg. Also bind last-command and next-command when invoking the
9070         widget updates.
9071         * gui-x.c (popup_selection_callback): ditto.
9072
9073         * gui.c (get_gui_callback): massage args so that we are always
9074         calling eval. This allows us to add our own variable bindings
9075         outside.
9076
9077         * glyphs-x.c (x_button_instantiate): use
9078         gui_items_to_widget_values since this is GC safe.
9079         (x_progress_gauge_instantiate): ditto.
9080         (x_edit_field_instantiate): ditto.
9081         (x_label_instantiate): ditto.
9082
9083         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
9084         (emacs_Xt_event_widget_focus_out): new function
9085         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
9086         focus.
9087         (emacs_Xt_event_add_widget_actions): new function. add focus
9088         functions as actions.
9089         (init_event_Xt_late): use it.
9090
9091 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
9092
9093         * event-stream.c (Fdispatch_event): Doc fix.
9094
9095 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
9096
9097         * postgresql.c: Remove all references to PQsetenv*.
9098
9099         * postgresql.h: Remove references to PGsetenvHandler object.
9100         * lrecord.h (lrecord_type): Ditto.
9101
9102 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
9103
9104         * glyphs-msw.h (struct mswindows_image_instance_data): Added
9105         real_heigh and real_width members, and accessor macros for these.
9106
9107         * glyphs-msw.c (init_image_instance_geometry): New function.
9108         (init_image_instance_from_dibitmap): Use it.
9109         (mswindows_resource_instantiate): Use it.
9110         (init_image_instance_from_xbm_inline): Use it.
9111         (mswindows_initialize_image_instance_mask): Use real bitmap
9112         geometry.
9113         (mswindows_create_resized_bitmap): Ditto.
9114         (mswindows_create_resized_mask): Ditto.
9115
9116         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
9117         and bitmap to their surface size.
9118
9119 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
9120
9121         * process-unix.c (unix_send_process): Guard against process MIA
9122         after Faccept_process_output.
9123
9124 2000-04-11  Ben Wing  <ben@xemacs.org>
9125
9126         * eval.c (unbind_to_hairy): fix brokenness introduced by
9127         nanosecond speed improvements.
9128
9129 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
9130
9131         * sunplay.c (init_device): To play sounds correctly, the device
9132         apparently needs to be initialized at least once by XEmacs.  Make
9133         it so.
9134
9135 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9136
9137         * redisplay.c (add_margin_runes): Add text image glyph
9138           handling.
9139
9140 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
9141
9142         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
9143         gcc is newer than 2.5.
9144
9145 2000-04-06  Colin Rafferty  <colin@xemacs.org>
9146
9147         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
9148
9149         * fns.c (size_bit_vector):
9150         * alloc.c (size_vector):
9151         (make_vector_internal):
9152         (make_bit_vector_internal):
9153         (sweep_bit_vectors_1):
9154         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
9155
9156 2000-04-06  Andy Piper  <andy@xemacs.org>
9157
9158         * gmalloc.c (malloc): undo previous change.
9159         (malloc): ditto.
9160         (free): ditto.
9161         (realloc): ditto.
9162
9163 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
9164
9165         * line-number.c (buffer_line_number): Revert to former version.
9166
9167 2000-04-06  Andy Piper  <andy@xemacs.org>
9168
9169         * gmalloc.c (malloc): add error checking.
9170         (malloc): ditto.
9171         (free): ditto.
9172         (realloc): ditto.
9173
9174         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
9175         button_item_to_widget_value arg.
9176
9177         * glyphs-x.c (x_button_instantiate): add extra
9178         button_item_to_widget_value arg.
9179         (x_progress_gauge_instantiate): ditto.
9180         (x_edit_field_instantiate): ditto.
9181         (x_label_instantiate): ditto.
9182
9183         * gui-x.c (gui_items_to_widget_values_1): add extra
9184         button_item_to_widget_value arg.
9185         (button_item_to_widget_value): add extra menu_item_p arg.
9186
9187         * gui-x.h: change signature of button_item_to_widget_value.
9188
9189         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
9190         button_item_to_widget_value arg.
9191
9192 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9193
9194         * buffer.h (struct buffer): auto_save_modified should be long.
9195
9196 2000-04-05  Andy Piper  <andy@xemacs.org>
9197
9198         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
9199         type.
9200         (button_query_geometry): give a little more room so that athena
9201         buttons fit.
9202
9203 2000-04-05  Andy Piper  <andy@xemacs.org>
9204
9205         * faces.c (complex_vars_of_faces): The widget face should inherit
9206         the font of the gui-element face.
9207
9208 2000-04-04  Andy Piper  <andy@xemacs.org>
9209
9210         * glyphs-x.c (x_button_update): new function. unconditionally
9211         update a button's state when the instance is dirty.
9212         (image_instantiator_format_create_glyphs_x): add x_button_update.
9213         (x_widget_instantiate): remove old resize cruft.
9214
9215 2000-04-02  Andy Piper  <andy@xemacs.org>
9216
9217         * frame.c (change_frame_size_1): The introduction of gutters means
9218         that we need to allow 0 as a potential frame dimension.
9219
9220 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9221
9222         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
9223         image glyph if allow_cursor.
9224         (add_hscroll_rune): Don't allow cursor to border glyph.
9225         (create_text_block): Ditto.
9226
9227         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
9228         text not in buffer.
9229         (redisplay_output_layout): Call ensure_face_cachel_complete for
9230         text image glyph.
9231
9232
9233 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9234
9235         * redisplay.c (add_glyph_rune): Adding text image as text runes.
9236
9237         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
9238         not in buffer
9239
9240         * redisplay-tty.c (tty_output_display_block): Delete the routine
9241         for text image glyph
9242         * redisplay-x.c (x_output_display_block): ditto
9243         * redisplay-msw.c (mswindows_output_display_block): ditto
9244
9245 2000-02-02  Mike Alexander  <mta@arbortext.com>
9246
9247         Note: Some of these were committed by accident as part of other
9248         patches.
9249
9250         * regex.c (regex_compile): Avoid compiler warnings.
9251
9252         * ntproc.c (sys_spawnve): Avoid compiler warnings.
9253
9254         * nt.h: Declare term_ntproc correctly.
9255
9256         * nt.c: Remove incorrect declaration of get_home_directory which
9257         is declared correctly in lisp.h.
9258
9259         * keymap.c (get_keyelt): Avoid compiler warnings.
9260         (raw_lookup_key_mapper): Avoid compiler warnings.
9261
9262         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
9263
9264         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
9265
9266         * filemode.c (mode_string): Avoid compiler warnings.
9267
9268         * file-coding.c (Fcoding_system_aliasee): Add return statement to
9269         avoid warning.
9270
9271         * events-mod.h: Undef some things that winuser.h defines differently.
9272
9273         * data.c (Faset): Avoid compiler warnings.
9274
9275         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
9276
9277 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
9278
9279         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
9280         Fall through to simple beep on error.
9281         Replace "extern" by real header file.
9282
9283         * linuxplay.c: Use nativesound.h
9284         (play_sound_data): Return error code. Be less verbose on error.
9285
9286         * sunplay.c: Use nativesound.h
9287         (play_sound_data): Return error code. Be less verbose on error.
9288
9289         * ntplay.c: Use nativesound.h
9290         (play_sound_data): Return fake error code
9291
9292         * sgiplay.c: Use nativesound.h
9293         (play_sound_data): Return error code
9294
9295         * hpplay.c: Use nativesound.h, partially implement
9296         new error code. Break compilation until finished.
9297         (play_sound_data): error code.
9298
9299         * nativesound.h (play_sound_file):
9300           (play_sound_data): Prototype in new header.
9301
9302 2000-03-31  Andy Piper  <andy@xemacs.org>
9303
9304         * glyphs-widget.c: (button_query_geometry): new function. Adjust
9305         for toggle and radio buttons.
9306         (image_instantiator_buttons): use it.
9307
9308 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
9309
9310         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
9311         (x_update_horizontal_scrollbar_callback): Return if no mirror was
9312         found. Scrollbar event probably belonged to some old config.
9313
9314 2000-03-31  Andy Piper  <andy@xemacs.org>
9315
9316         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
9317         than 1.
9318         (initialize_widget_image_instance): default layout to
9319         LAYOUT_HORIZONTAL rather than 0.
9320         (widget_instantiate): reverse the item list at the end rather than
9321         every iteration.
9322         (layout_layout): re-code for the border text at the front of the
9323         item list rather than at the end.
9324         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
9325         provided by the user.
9326         (widget_query_geometry): comment.
9327
9328 2000-03-30  Andy Piper  <andy@xemacs.org>
9329
9330         * glyphs-widget.c (image_instantiator_layout): allow standard
9331         widget keywords in layouts.
9332
9333         * gutter.c (output_gutter): cope with nil gutter contents.
9334
9335         * frame.c (Fset_frame_properties): add gutter docs.
9336
9337 2000-03-29  Andy Piper  <andy@xemacs.org>
9338
9339         * toolbar-msw.c (TBSTYLE_FLAT): add.
9340         (mswindows_output_toolbar): minor fiddling.
9341
9342 2000-03-29  Andy Piper  <andy@xemacs.org>
9343
9344         * gutter.c (output_gutter): force gutter size recalculation if
9345         what we are trying to display won't fit.
9346         (update_gutter_geometry): new function. A per-gutter version of
9347         update_frame_gutter_geometry.
9348         (update_frame_gutter_geometry): use it.
9349         (redraw_exposed_gutter): add extra debugging output.
9350
9351 2000-03-28  Mike Alexander  <mta@arbortext.com>
9352
9353         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
9354         (pdump_file_unmap): Implement it on Windows
9355         (pdump_file_get): Save alocated handles for pdump_file_unmap
9356
9357 2000-03-28  Andy Piper  <andy@xemacs.org>
9358
9359         * gui.c (get_gui_callback): treat Quit specially.
9360
9361 2000-03-27  Andy Piper  <andy@xemacs.org>
9362
9363         * glyphs.c (image_instantiate): be careful to check in the same
9364         way we assigned.
9365
9366 2000-03-27  Didier Verna  <didier@xemacs.org>
9367
9368         * config.h.in: define the proper SMART_INCLUDE macro.
9369         handle renaming of `foo_h_path' to `foo_h_file'.
9370
9371         * database.c: ditto.
9372
9373         * emacs.c: ditto.
9374
9375         * linuxplay.c: ditto.
9376
9377         * terminfo.c: ditto.
9378
9379         * tooltalk.h: ditto.
9380
9381 2000-03-27  Andy Piper  <andy@xemacs.org>
9382
9383         * glyphs-msw.c (mswindows_update_widget): make sure the widget
9384         gets updated whenever the face might have changed.
9385
9386 2000-03-26  Mike Alexander  <mta@arbortext.com>
9387
9388         * dumper.c (pdump_resource_free): Fix the comment.
9389
9390 2000-03-21  Olivier Galibert  <galibert@pobox.com>
9391
9392         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
9393
9394 2000-03-22  Mike Alexander  <mta@arbortext.com>
9395
9396         * dumper.c: Include Windows headers on Windows
9397         (pdump_resource_free): Add a body to the function
9398         (pdump_load): exe_name -> exe_path and add some comments.
9399
9400 2000-03-25  Mike Alexander  <mta@arbortext.com>
9401
9402         * gui.c (copy_gui_item_tree): Return a value in all cases
9403
9404 2000-03-21  Didier Verna  <didier@xemacs.org>
9405
9406         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
9407         lwlib/config.h.in.
9408         (SMART_INCLUDE): new macro.
9409         (POSTGRES_INCLUDE): new macro to include postgresql headers from
9410         the proper location.
9411
9412         * postgresql.c: use it.
9413
9414         * inline.c: ditto.
9415
9416 2000-03-24  Andy Piper  <andy@xemacs.org>
9417
9418         * gutter.c (redraw_exposed_gutters): must be "in display" when we
9419         do this.
9420
9421 2000-03-24  Andy Piper  <andy@xemacs.org>
9422
9423         * redisplay-output.c (compare_runes): use image_instance_changed
9424         to detect changes. Do not depend on glyphs_changed, only depend on
9425         dirtiness.
9426          (redisplay_output_layout): add debug messages.
9427         (compare_runes): ditto.
9428
9429         * glyphs.h: declare new functions.
9430         (struct Lisp_Image_Instance): remove percent and associated
9431         accessors.
9432
9433         * gui.h: declare new copying functions.
9434
9435         * gui.c (copy_gui_item_tree): new function.
9436         (copy_gui_item): new function.
9437         (gui_item_id_hash): revert to standard hash.
9438         (gui_item_hash): ditto.
9439         (gui_item_hash_internal): deleted.
9440         (mark_gui_item): mark value.
9441         (gui_item_add_keyval_pair): add value.
9442         (gui_item_init): ditto.
9443         (gui_add_item_keywords_to_plist): ditto.
9444         (gui_item_equal): ditto.
9445         (syms_of_gui): add Q_value.
9446
9447         * glyphs-x.c (x_progress_gauge_update): use pending items and
9448         value for setting the state.
9449         (x_update_widget): don't set items from pending here.
9450
9451         * glyphs-widget.c (update_widget): update items here.
9452         (progress_gauge_set_property): use items for storing value. Put
9453         new value in pending items.
9454
9455         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
9456         items for new value. Convert percent -> value.
9457         (mswindows_tab_control_update): don't update items here.
9458
9459         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
9460         (update_subwindow): ditto.
9461         (image_instance_changed): new function. Compare hash values and
9462         past and present widget items.
9463         (image_instantiate): We more careful about where we instantiate
9464         things.
9465         (image_instantiate): add error checking.
9466
9467         * gutter.c (syms_of_gutter): use -hook.
9468
9469 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
9470
9471         * console-tty.c (Fset_console_tty_input_coding_system): Use
9472         Qkeyboard.
9473         (Fset_console_tty_output_coding_system): Use Qterminal.
9474         (tty_init_console): Use Qkeyboard and Qterminal.
9475
9476 2000-03-21  Ben Wing  <ben@xemacs.org>
9477
9478         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
9479         From Mike Alexander <mta@arbortext.com>.
9480
9481 2000-03-21  Ben Wing  <ben@xemacs.org>
9482
9483         * event-msw.c (mswindows_need_event): Horrible kludge to fix
9484         process brokenness.  Proper implementation to come.
9485         * callproc.c:
9486         Rename call-process-internal to old-call-process-internal.
9487         New impl. in process.el.
9488
9489 2000-03-21  Martin Buchholz  <martin@xemacs.org>
9490
9491         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
9492
9493 2000-03-20  Andy Piper  <andy@xemacs.org>
9494
9495         * glyphs.c (full_list_hash): make hashes of the same elements in
9496         different orders return different values.
9497
9498 2000-03-20  Martin Buchholz <martin@xemacs.org>
9499
9500         * XEmacs 21.2.32 is released.
9501
9502 2000-03-20  Martin Buchholz  <martin@xemacs.org>
9503
9504         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
9505         (DFC_MALLOC_USE_CONVERTED_DATA):
9506         Add aliasing-safe casts to allow use with char* or unsigned char*
9507         lvalues.
9508
9509         * eldap.c (Fldap_open):
9510         (Fldap_search_basic):
9511         (Fldap_add):
9512         (Fldap_modify):
9513         Make C++-compilable.
9514         Make sure GCPRO'ed variables are initialized.
9515         Use temp variables to avoid repeated calls to Flength.
9516
9517 2000-03-16  Martin Buchholz  <martin@xemacs.org>
9518
9519         * sysfile.h:
9520         Make sure PATH_MAX is always defined.
9521         Include limits.h for PATH_MAX.
9522         Deprecate use of MAXPATHLEN.
9523
9524 2000-03-10  Martin Buchholz  <martin@xemacs.org>
9525
9526         * emacs.c: Add reinit_vars_of_fileio.
9527         * symsinit.h: Add reinit_vars_of_fileio.
9528         * fileio.c (reinit_vars_of_fileio): New.
9529         * fileio.c (Fmake_temp_name):
9530         Initialize temp_name random number from microseconds to make
9531         collisions even less likely.  Initialize always at process startup
9532         time.  (make-temp-name) used to return the same file name twice in
9533         a row when PDUMP.
9534         Random stylistic fiddling.
9535         Comment fixes.
9536
9537 2000-03-20  Andy Piper  <andy@xemacs.org>
9538
9539         * glyphs.c (image_instantiate): allow text glyphs to be
9540         instantiated in the minibuffer window.
9541
9542 2000-03-19  Andy Piper  <andy@xemacs.org>
9543
9544         * glyphs.c (image_instance_hash): be careful about which items we
9545         hash on.
9546
9547         * glyphs-widget.c (tab_control_set_property): record into pending
9548         items rather than the actual items.
9549
9550         * glyphs-x.c (x_update_widget): use pending items to update with.
9551
9552         * glyphs-msw.c (mswindows_tab_control_update): use pending items
9553         to update with.
9554
9555         * glyphs.c (mark_image_instance): mark pending items.
9556
9557         * window.c (Fset_window_configuration): record the buffer.
9558         (Fselect_window): totally revert previous change which breaks many
9559         things.
9560
9561 2000-03-18  Andy Piper  <andy@xemacs.org>
9562
9563         * glyphs-msw.c (mswindows_tab_control_update): force selected
9564         item.
9565
9566         * glyphs.c (image_instantiate): don't allow the minibuffer as a
9567         window domain cache, otherwise we get inconsistencies at
9568         startup. There is something fishy at startup which can lead to the
9569         minibuffer being the selected window when the gutter content is
9570         instantiated.
9571
9572         * gui.c (parse_gui_item_tree_list): add probably unnecessary
9573         gcpros.
9574         (parse_gui_item_tree_children): ditto.
9575         (parse_gui_item_tree_item): ditto.
9576
9577         * glyphs.c (Fupdate_widget_instances): return something.
9578
9579 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9580
9581         * window.c (Fselect_window): Undo 2000-03-17 change.
9582
9583 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
9584
9585         * postgresql.c (Fpq_setenv): Remove this turkey when linking
9586         against v7.0 libraries.  Insta-coredump city until the postgres
9587         folks fix it.
9588
9589 2000-03-17  Andy Piper  <andy@xemacs.org>
9590
9591         * faces.c (complex_vars_of_faces): don't give the widget face an
9592         inherited background pixmap.
9593
9594         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
9595         selected item.
9596
9597         * event-stream.c (Fdispatch_non_command_events): return something.
9598
9599         * gutter.c (output_gutter): use widget face.
9600         (clear_gutter): ditto.
9601
9602         * NEWS: adjust again.
9603
9604         * window.c (Fselect_window): make sure this runs to completion to
9605         avoid oddities with Fset_window_configuration.
9606         (Fcurrent_window_configuration): in general do not save the
9607         minibuffer as the selected window.
9608
9609         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
9610
9611 2000-03-16  Olivier Galibert  <galibert@pobox.com>
9612
9613         * emacs.c (Frunning_temacs_p): Revert previous patch.
9614         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
9615
9616 2000-03-16  Andy Piper  <andy@xemacs.org>
9617
9618         * glyphs-x.c (x_tab_control_update): if no widget values then
9619         return.
9620
9621         * NEWS: update for new features.
9622
9623         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
9624         synthetic event to the native system.
9625         (reinit_vars_of_event_Xt): set force_event_pending to
9626         emacs_Xt_force_event_pending.
9627
9628         * events.h (struct event_stream): add force_event_pending.
9629
9630         * specifier.c (recompute_one_cached_specifier_in_window): add
9631         comment.
9632
9633         * redisplay.c (redisplay_frame): don't call
9634         update_frame_subwindows. Reset subwindow cachels when
9635         subwindows_changed, removing this was an optimization too far.
9636
9637         * redisplay-output.c (compare_runes): reorganize so that we catch
9638         glyph changes when we want them. Set optimize_output when this
9639         would help layouts.
9640         (redisplay_output_layout): remove frame_really_changed, use
9641         optimize_output instead.
9642
9643         * redisplay-msw.c (mswindows_output_display_block): reset
9644         optimize_output after outputting a glyph.
9645         * redisplay-x.c (x_output_display_block): ditto.
9646         * redisplay-tty.c (tty_output_display_block): ditto.
9647
9648         * gutter.c: (specifier_vars_of_gutter): use new spec changed
9649         functions.
9650         (gutter_specs_changed): do specific gutter positions.
9651         (top_gutter_specs_changed): new function. Only update the
9652         specified gutter specs.
9653         (bottom_gutter_specs_changed): ditto.
9654         (left_gutter_specs_changed): ditto.
9655         (right_gutter_specs_changed): ditto.
9656
9657         * gui.c (gui_item_hash_internal): new function, does a real hash.
9658         (gui_item_id_hash): use it.
9659         (gui_item_hash): hash the eval'ed gui_item.
9660
9661         * gui-x.c (popup_selection_callback): send an eval event to call
9662         Fupdate_widget_instances.
9663
9664         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
9665         to call Fupdate_widget_instances.
9666
9667         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
9668         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
9669
9670         * glyphs.c: (update_frame_subwindows): deleted.
9671         (Fupdate_widget_instances): new function for updating the dirty
9672         state of widgets that might have changed.
9673         (syms_of_glyphs): add Qupdate_widget_instances.
9674         (full_list_hash): hash a list completely.
9675         (image_instance_hash): use it for items and properties.
9676
9677         * frame-msw.c (mswindows_size_frame_internal): remove unused
9678         variable.
9679
9680         * faces.h (struct face_cachel): fix comment.
9681
9682         * event-stream.c (Fdispatch_non_command_events): new
9683         function. Process non-command events, forcing an event cycle
9684         beforehand.
9685         (syms_of_event_stream): declare.
9686         (event_stream_force_event_pending): new function. Force an event
9687         on the native event queue so that an event cycle will occur next
9688         time we check.
9689
9690         * event-msw.c:
9691         (struct ntpipe_shove_stream):
9692         (mswindows_enqueue_dispatch_event):
9693         (mswindows_dequeue_dispatch_event):
9694         (mswindows_cancel_dispatch_event):
9695         (mswindows_pump_outstanding_events):
9696         (mswindows_drain_windows_queue):
9697         (mswindows_handle_paint):
9698         (mswindows_wnd_proc):
9699         (mswindows_key_to_emacs_keysym):
9700         (get_process_input_waitable):
9701         (emacs_mswindows_delete_stream_pair): re-indent file.
9702         (mswindows_need_event): do not process further fds if the windows
9703         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
9704         fixes the 100% cpu problem.
9705         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
9706
9707 2000-03-15  Olivier Galibert  <galibert@pobox.com>
9708
9709         * alloc.h: New.
9710         * dumper.h: New.
9711         * dumper.c: New.
9712
9713         * emacs.c: Moved dump file searching to dumper.c.
9714         (Frunning_temacs_p): Fixed.
9715
9716         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
9717         last_lrecord_type_index_assigned.
9718
9719 2000-02-20  Olivier Galibert  <galibert@pobox.com>
9720
9721         * symsinit.h: Added reinit parameter to init_console_stream
9722         declaration.
9723
9724         * lisp.h: Added file parameter to pdump_load declaration.
9725
9726         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
9727         support.  Added dump file searching.
9728
9729         * config.h.in: Added EMACS_PROGNAME.
9730
9731         * console-stream.c (init_console_stream): Fix reinitialisation
9732         when running from temacs.
9733
9734         * alloc.c (pdump): Add id support.
9735         (pdump_load): Add file parameter and signature/id support.
9736
9737         * Makefile.in.in: Add full pdump support.
9738
9739 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
9740
9741         * postgresql.c: Update documentation to reflect latest code
9742         status.
9743         (print_result): Show tuple counts in printed representation when
9744         appropriate.
9745         (Fpq_put_nbytes): MULE-ize.
9746         (Fpq_get_line_async): Ditto.
9747
9748 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
9749
9750         * postgresql.c (Fpq_lo_import): Fix return value.
9751         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
9752
9753 2000-03-13  Ben Wing  <ben@xemacs.org>
9754
9755         * alloc.c (pdump_load):
9756         Fix compile warning under mswin.
9757
9758 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
9759
9760         * postgresql.c: Mule-ization, bug fixes.
9761         Use PG_CODING to encapsulate coding system name changes.
9762         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
9763         (pg-coding-system): Create.
9764
9765         (Fpq_conn_defaults): Mule-ize.
9766         (Fpq_connectdb): Mule-ize & bug fix.
9767         (Fpq_connect_start): Mule-ize.
9768         (Fpq_set_client_encoding): Mule-ize.
9769         (Fpq_finish): Document `DEAD' connection status.
9770         (Fpq_clear): Ditto.
9771         (Fpq_pgconn): Mule-ize.
9772         (Fpq_exec): Mule-ize & bug fix.
9773         (Fpq_send_query): Ditto.
9774         (Fpq_get_result): Ditto.
9775         (Fpq_res_status): Mule-ize.
9776         (Fpq_result_error_message): Mule-ize.
9777         (Fpq_ntuples): fix comments.
9778         (Fpq_fname): Mule-ize.
9779         (Fpq_fnumber): Mule-ize.
9780         (Fpq_ftype): fix comments.
9781         (Fpq_get_value): Mule-ize.
9782         (Fpq_cmd_status): Ditto.
9783         (Fpq_cmd_tuples): Ditto.
9784         (Fpq_oid_value): Ditto.
9785         (Fpq_notifies): Ditto.
9786         (Fpq_lo_import): Ditto.
9787         (Fpq_lo_export): Ditto.
9788         (Fpq_get_line): Ditto.
9789         (Fpq_put_line): Mule-ize and bug fix.
9790         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
9791
9792 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
9793
9794         * postgresql.c (vars_of_postgresql): Mule-ize.
9795         (Fpq_conn_defaults): Ditto.
9796
9797 2000-03-12  Ben Wing  <ben@xemacs.org>
9798
9799         * alloc.c (Fmake_byte_code):
9800         * alloc.c (debug_string_purity_print):
9801         * alloc.c (pdump_backtrace):
9802         * alloc.c (pdump_get_indirect_count):
9803         * alloc.c (pdump_register_sub):
9804         * alloc.c (pdump_register_object):
9805         * alloc.c (pdump_register_struct):
9806         * alloc.c (pdump_dump_data):
9807         * alloc.c (pdump_reloc_one):
9808         Minor cleanups.
9809
9810         * console-msw.c:
9811         * console-msw.c (GetConsoleHwnd):
9812         * console-msw.c (msw_hide_console):
9813         * console-msw.c (msw_show_console):
9814         * console-msw.c (msw_ensure_console_buffered):
9815         * console-msw.c (msw_output_console_string):
9816         * console-msw.c (console_type_create_mswindows):
9817
9818         a) Added functions to manipulate the console window for use with
9819         shell support.
9820
9821         b) Added support for writing text to the console, which is now
9822         used under Windows when xemacs is not being run non-interactively,
9823         to write text that would otherwise be destined for stdout because
9824         under these circumstances, text written to stdout tends to
9825         disappear and not be seen.
9826
9827         * console-msw.h:
9828         * event-Xt.c:
9829         * event-Xt.c (x_event_to_emacs_event):
9830         * event-Xt.c (describe_event_window):
9831         * events-mod.h (XEMACS_MOD_CONTROL):
9832         * events.c:
9833         * events.c (Fmake_event):
9834         * events.c (character_to_event):
9835         * events.c (event_to_character):
9836         * events.c (format_event_object):
9837         * events.c (Fevent_modifiers):
9838         * events.h:
9839         * events.h (struct key_data):
9840         * events.h (struct button_data):
9841         * events.h (struct misc_user_data):
9842         * frame-x.c (Fcde_start_drag_internal):
9843         * frame-x.c (Foffix_start_drag_internal):
9844         * gpmevent.c (Freceive_gpm_event):
9845         * keymap.c:
9846         * keymap.c (bucky_sym_to_bucky_bit):
9847         * keymap.c (control_meta_superify):
9848         * keymap.c (make_key_description):
9849         * keymap.c (keymap_lookup_directly):
9850         * keymap.c (create_bucky_submap):
9851         * keymap.c (keymap_store):
9852         * keymap.c (define_key_check_and_coerce_keysym):
9853         * keymap.c (define_key_parser):
9854         * keymap.c (define_key_alternate_name):
9855         * keymap.c (Fdefine_key):
9856         * keymap.c (raw_lookup_key_mapper):
9857         * keymap.c (struct map_keymap_unsorted_closure):
9858         * keymap.c (map_keymap_unsorted_mapper):
9859         * keymap.c (map_keymap_sort_predicate):
9860         * keymap.c (map_keymap_sorted):
9861         * keymap.c (accessible_keymaps_mapper_1):
9862         * keymap.c (where_is_recursive_mapper):
9863         * keymap.c (describe_map_mapper):
9864         * keymap.c (describe_map_sort_predicate):
9865         * keymap.c (describe_map):
9866         * keymap.c (complex_vars_of_keymap):
9867         And a number of other files, the key modifier preprocessor
9868         constants that xemacs uses have names that conflict with constants
9869         defined under MS Windows for other purposes, so they were renamed
9870         to begin with the prefix XEMACS_. The variables that hold such
9871         modifiers were changed to consistently be of type int to fix
9872         various compile warnings.
9873
9874         * console.c (complex_vars_of_console):
9875         * device.c:
9876         * device-msw.c:
9877         * device-msw.c (mswindows_finish_init_device):
9878         * device-msw.c (msw_get_workspace_coords):
9879         * device-msw.c (mswindows_device_system_metrics):
9880         and various other files, added support for a new
9881         device property called offset-workspace which returns the position
9882         of the upper left corner of the workspace area and goes along with
9883         the existing size-workspace property.
9884
9885         * dialog-msw.c:
9886         * dialog-msw.c (push_bufbyte_string_as_unicode):
9887         * dialog-msw.c (mswindows_popup_dialog_box):
9888         Added support for XEmacs-style accelerator specifications in
9889         button text.  Note: I didn't add support for this under X Windows,
9890         and somebody needs to do this.
9891
9892         * dialog.c:
9893         * dialog.c (Fpopup_dialog_box):
9894         Documented the support for accelerators that was just mentioned.
9895
9896         editfns.c (get_home_directory): Changed behavior under Windows
9897         when HOME not defined; former behavior was irretrievably broken.
9898
9899         * emacs.c:
9900         * emacs.c (main_1):
9901         * emacs.c (main):
9902         * minibuf.c (clear_echo_area_internal):
9903         * minibuf.c (echo_area_append):
9904         * print.c:
9905         * print.c (std_handle_out_external):
9906         * print.c (std_handle_out_va):
9907         * print.c (fatal):
9908         * print.c (write_string_to_stdio_stream):
9909         * print.c (output_string):
9910         * print.c (debug_print):
9911         * print.c (debug_backtrace):
9912         * print.c (debug_short_backtrace):
9913         Cleaned up the code that prints text to stdout so that this can be
9914         changed to output into a console window instead under MS Windows,
9915         as described above.
9916
9917         * eval.c:
9918         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
9919         * eval.c (internal_catch):
9920         * eval.c (unwind_to_catch):
9921         * eval.c (throw_or_bomb_out):
9922         * eval.c (condition_case_1):
9923         * eval.c (signal_1):
9924         * eval.c (check_error_state_sanity):
9925         * eval.c (call_with_suspended_errors_1):
9926         * eval.c (call_with_suspended_errors):
9927         * eval.c (reinit_vars_of_eval):
9928         Added code to catch throw loops and check for a pesky bug that may
9929         be gone now.
9930
9931         * event-msw.c:
9932         * event-msw.c (key_needs_default_processing_p):
9933         * event-msw.c (mswindows_wnd_proc):
9934         * event-msw.c (mswindows_modifier_state):
9935         * event-msw.c (emacs_mswindows_quit_p):
9936         * event-msw.c (vars_of_event_mswindows):
9937         a) Added support for using the alt key to select menu items as is
9938         standard under MS Windows.  This is controlled using the variable
9939         menu-accelerator-enabled, just like under X Windows.  There is an
9940         option on the options menu to turn this support on.  I really
9941         think that it should be on by default under Windows, but I'm not
9942         going to make this change yet.
9943
9944         b)  Added support for dynamic display size changes under Windows.
9945
9946         * event-stream.c:
9947         * event-stream.c (maybe_echo_keys):
9948         * event-stream.c (Fnext_event):
9949         * event-stream.c (command_builder_find_leaf):
9950         * event-stream.c (lookup_command_event):
9951         * event-stream.c (execute_command_event):
9952         * event-stream.c (pre_command_hook):
9953         * event-stream.c (post_command_hook):
9954         * event-stream.c (syms_of_event_stream):
9955         * event-stream.c (vars_of_event_stream):
9956         * event-stream.c (complex_vars_of_event_stream):
9957         * events.h (struct command_builder):
9958
9959         a) Tried to clean up a little bit the horribly written x-specific
9960         accelerator code that crept into this file.  I moved this code
9961         into menubar-x.c where it belongs. I also needed to move the
9962         command builder structure into the file events.h because it is
9963         accessed directly by this accelerator code.  What I didn't do, but
9964         which should be done at some point, is to properly abstract this
9965         code using device methods instead of the kludgy way that it
9966         currently hooks into the event code.
9967
9968         b) Added the lisp variables this-command-properties and
9969         last-command- properties, which should be used to synchronize two
9970         adjacent commands in preference to playing games with the variable
9971         this-command, which is typically what happens.
9972
9973         c) Added some slightly nasty code to hook into the lisp support
9974         for shifted- motion-key selection.  This is actually necessary for
9975         somewhat complicated reasons, which are described in
9976         simple.el. (NB: I think the proper thing would be to have the code
9977         that calls the pre and post command hooks also call out to generic
9978         lisp functions in simple.el, where all built-in stuff could be
9979         added.  I will think about this more.)
9980
9981         * event-unixoid.c (poll_fds_for_input):
9982         * lread.c (readchar):
9983         * redisplay-tty.c (tty_clear_frame):
9984         * redisplay-x.c (x_get_gc):
9985         * signal.c (interrupt_signal):
9986         And a whole bunch of other files: fixed up places that printed
9987         directly to stderr to instead call the function stderr_out so that
9988         the changes I made under Windows work correctly.
9989
9990         * filemode.c (mode_string):
9991         Warning fixes.
9992
9993         * frame-msw.c:
9994         * frame-msw.c (mswindows_size_frame_internal):
9995         Fixed the computation of frame size and position to keep the frame
9996         within the workspace area, rather than within the physical
9997         dimensions of the screen, so that the frame doesn't overlap window
9998         manager decorations, such as the start menu and toolbar, typically
9999         at the bottom of the screen.
10000
10001         * frame.c (vars_of_frame):
10002         Changed the default frame title format under MS Windows to consist
10003         of buffername-XEmacs, which is standard under MS Windows.  I think
10004         it might be a good idea to change this everywhere because I think
10005         it is superior to the current frame title format, but this is the
10006         kind of change that is likely to cause some people to get annoyed,
10007         so I'm not making it.
10008
10009         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
10010
10011         * gui-msw.c (mswindows_handle_gui_wm_command):
10012         Fixed compile warnings.
10013
10014         * gui-x.c:
10015         * gui-x.c (strdup_and_add_accel):
10016         * gui-x.c (button_item_to_widget_value):
10017         * gui-x.h:
10018         Added code to automatically put an accelerator onto the beginning
10019         of menu items that don't have one as is now the standard, and is
10020         described more later.  Also fixed things so that the menu item
10021         name can be an evaluated expression, again a new standard.
10022
10023         * gui.c:
10024         * gui.c (gui_item_add_keyval_pair):
10025         * gui.c (make_gui_item_from_keywords_internal):
10026         * gui.c (gui_add_item_keywords_to_plist):
10027         * gui.c (gui_item_accelerator):
10028         * gui.c (gui_name_accelerator):
10029         * gui.c (gui_item_included_p):
10030         * gui.c (gui_item_display_flush_left):
10031         * gui.c (gui_item_display_flush_right):
10032         * gui.c (parse_gui_item_tree_item):
10033         * gui.c (parse_gui_item_tree_children):
10034         * gui.c (parse_gui_item_tree_list):
10035         Mule-ized.  Cleanup.  GCPRO addition.
10036
10037         * line-number.c (buffer_line_number):
10038         * lisp.h:
10039         * lisp.h (EMACS_INT_MAX):
10040         Added the manifest constant EMACS_INT_MIN corresponding to the
10041         existing constant EMACS_INT_MAX.  This is partially to fix compile
10042         warnings under Windows, and partly for cleanliness.
10043
10044         * menubar-msw.c:
10045         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
10046         * menubar-msw.c (msw_translate_menu_or_dialog_item):
10047         * menubar-msw.c (displayable_menu_item):
10048         * menubar-msw.c (populate_menu_add_item):
10049         * menubar-msw.c (populate_or_checksum_helper):
10050         * menubar-msw.c (populate_menu):
10051         * menubar-msw.c (update_frame_menubar_maybe):
10052         * menubar-msw.c (prune_menubar):
10053         * menubar-msw.c (msw_char_is_accelerator):
10054         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
10055         * menubar-msw.c (mswindows_handle_wm_command):
10056         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
10057         * menubar-msw.c (mswindows_handle_wm_initmenu):
10058         * menubar-msw.c (mswindows_update_frame_menubars):
10059         * menubar-msw.c (mswindows_free_frame_menubars):
10060         * menubar-msw.c (mswindows_popup_menu):
10061         Fixed a bug in handling accelerators where an extra character
10062         would be displayed in the menu item.  Also generalized the
10063         function displayable_menu_item because it is now used by the
10064         dialog box code as well.  And finally, added code in the functions
10065         that create the menubar to extract a list of accelerators for the
10066         top level menubar, which is used in the event code to determine
10067         whether a particular alt-key combination should be used to invoke
10068         a menu item, or should be passed through to access the standard
10069         XEmacs keymap binding for this key combination.
10070
10071         Much needed GCPROing.
10072
10073         * menubar-x.c:
10074         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10075         * menubar-x.c (menu_item_descriptor_to_widget_value):
10076         * menubar-x.c (restore_in_menu_callback):
10077         * menubar-x.c (x_popup_menu):
10078         * menubar-x.c (menu_move_up):
10079         * menubar-x.c (menu_move_down):
10080         * menubar-x.c (menu_move_left):
10081         * menubar-x.c (menu_move_right):
10082         * menubar-x.c (menu_select_item):
10083         * menubar-x.c (command_builder_operate_menu_accelerator):
10084         * menubar-x.c (menu_accelerator_junk_on_error):
10085         * menubar-x.c (command_builder_find_menu_accelerator):
10086         * menubar-x.c (Faccelerate_menu):
10087         * menubar.h:
10088         Moved a whole bunch of code here that was previously in
10089         event-stream.c as described above.  There is also code connected
10090         to the new standard of adding an accelerator to the beginning of
10091         menu items that don't have one as described above and below.
10092
10093         * menubar.c:
10094         * menubar.c (menu_parse_submenu_keywords):
10095         * menubar.c (Fmenu_find_real_submenu):
10096         * menubar.c (Fnormalize_menu_item_name):
10097         * menubar.c (syms_of_menubar):
10098         * menubar.c (vars_of_menubar):
10099         * menubar.c (complex_vars_of_menubar):
10100
10101         a) Cleaned up a bunch of documentation and improved it.
10102
10103         b) XEmacs now automatically adds an accelerator onto the beginning
10104         of any menu items that don't have one.  I did this because there
10105         will inevitably be some menu items on the main menubar that don't
10106         have accelerators on them because the package that adds that
10107         particular menu item hasn't yet been fixed up to have accelerators
10108         in them and it looked rather strange to have some items with and
10109         some items without accelerators, especially since even in items
10110         without accelerators, you can, at least under windows, still
10111         access the item through an accelerator corresponding to the first
10112         character in the item's name.  If people don't like this behavior,
10113         I can add a variable to turn it off optionally, but I'm not sure
10114         this is a good idea because we really do need to have accelerators
10115         on all of the menu items, and if a package doesn't like the
10116         accelerators being put on the first character, then it should put
10117         the accelerators where they belong.
10118
10119         c) I made a behavior change, which is that the descriptor that
10120         specifies the text of the menu item, which formerly was just a
10121         string, can now also be an evaluated expression.  This makes this
10122         descriptor parallel with all of the others, which could also be
10123         evaluated expressions.  This also obviates the need for the
10124         keyword :label, which was previously listed in the documentation
10125         as unimplemented, and which was for the same purpose.
10126
10127         d) GCPROing.
10128
10129         * ntproc.c:
10130         * ntproc.c (new_child):
10131         * ntproc.c (sys_spawnve):
10132         * ntproc.c (find_child_console):
10133         * ntproc.c (sys_kill):
10134         Fixed compile warnings.  By the way, this file should really go
10135         away entirely, and this will happen as soon as Kirill makes his
10136         final round of process cleanups, which affect the function
10137         call-process.
10138
10139         * process-nt.c:
10140         * process-nt.c (struct nt_process_data):
10141         * process-nt.c (find_process_from_pid):
10142         * process-nt.c (send_signal_the_nt_way):
10143         * process-nt.c (enable_child_signals):
10144         * process-nt.c (find_child_console):
10145         * process-nt.c (send_signal_the_95_way):
10146         * process-nt.c (nt_finalize_process_data):
10147         * process-nt.c (ensure_console_window_exists):
10148         * process-nt.c (nt_create_process):
10149         * process-nt.c (nt_kill_child_process):
10150         * process-nt.c (nt_kill_process_by_pid):
10151         * process-nt.c (nt_open_network_stream):
10152         * process-nt.c (vars_of_process_nt):
10153         Copied over code from Emacs 20.5 to correctly send signals to sub-
10154         processes under Windows 95.  Also added code to automatically
10155         create and hide console window when a sub-process is created under
10156         Windows 95, which obviates the need for the separate runemacs.exe
10157         executable, and finally implemented some variables that were
10158         implemented in Emacs 20.5, but previously not in XEmacs.  These
10159         include mswindows- start-process-share-console and
10160         mswindows-start-process-inherit-error-mode. (Both of these only
10161         apply to Windows 95.)
10162
10163         * regex.c (regex_compile): Fixed a compile warning.
10164
10165         * select-msw.c:
10166         * select-msw.c (mswindows_own_selection):
10167         * select-msw.c (mswindows_get_foreign_selection):
10168         * select-msw.c (mswindows_disown_selection):
10169         * select-msw.c (console_type_create_select_mswindows):
10170         * select-msw.c (syms_of_select_mswindows):
10171         Cleaned up the file and implemented the device method
10172         selection_exists_p, which had accidentally been left out.  Also
10173         removed four lisp functions that were remnants from before the
10174         time when the selection code was properly device abstracted.
10175         These functions are no longer needed because there are generic
10176         equivalents, and because they were added recently and don't exist
10177         in FSF Emacs, I don't think there's any problem with just deleting
10178         them.
10179
10180         * sysdep.c:
10181         * sysdep.c (sys_subshell):
10182         Fixed a compile warning, although in this case there's probably
10183         something wrong with this code, and it ought to be looked into
10184         more thoroughly by somebody who understands it.
10185
10186         * window.c:
10187         * window.c (Fwindow_text_area_height):
10188         * window.c (Fwindow_width):
10189         * window.c (Fwindow_full_width):
10190         * window.c (Fwindow_pixel_width):
10191         * window.c (debug_print_window):
10192         * window.c (syms_of_window):
10193         Added functions window-text-area-height and window-full-width,
10194         which are functions for returning various width and height
10195         characteristics of a window. (One of these functions is necessary
10196         for making the file dialog box work correctly, and the other one
10197         was added for completeness.)  Also added a table to the
10198         documentation for window-height which describes the entire scheme
10199         for accessing width and height characteristics of a window.
10200
10201 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10202
10203         * nt.c (fstat): Added a comment for another problem with
10204         non-encapsulated [f]stat(), reported by Adrian Aichner
10205         <aichner@ecf.teradyne.com>.
10206
10207 2000-03-11  Andy Piper  <andy@xemacs.org>
10208
10209         * window.c (make_dummy_parent): initialize subwindow instance
10210         cache.
10211         (Fset_window_configuration): zero extent_modiff.
10212
10213 2000-03-10  Andy Piper  <andy@xemacs.org>
10214
10215         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
10216         more changes can be triggered.
10217         (Fredisplay_frame): ditto.
10218         (Fredraw_device): ditto.
10219         (Fredisplay_device): ditto.
10220         (redisplay_frame): make non-static.
10221         (redisplay_frame): call update_frame_gutter_geometry outside of
10222         display proper.
10223
10224         * gutter.h: declare update_frame_gutter_geometry.
10225
10226         * redisplay.h: declare redisplay_frame.
10227
10228         * gutter.c (update_frame_gutter_geometry): move geometry changes
10229         in update_frame_gutters here. Geometry changes can only occur
10230         outside of redisplay.
10231         (update_frame_gutters): remove geometry change code.
10232         (Fredisplay_gutter_area): make sure that we are in display when we
10233         update and that we have flushed any size changes.
10234
10235 2000-03-11  Andy Piper  <andy@xemacs.org>
10236
10237         * alloc.c (pdump_dump_data): remove i & count shadows.
10238
10239 2000-02-27  Mike Alexander  <mta@arbortext.com>
10240
10241         * sysdep.h: Declare pdump_read_file
10242
10243         * sysdep.c (pdump_read_file): New function
10244
10245         * alloc.c (pdump_load): Call pdump_read_file to get the portable
10246         dump data
10247
10248 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
10249
10250         * lrecord.h: add `lrecord_type_pgsetenv'.
10251
10252 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
10253
10254         * symsinit.h: declare (vars|syms)_of* functions.
10255         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
10256
10257 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
10258
10259         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
10260
10261         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
10262         GCCs.
10263
10264         * emacs.c (main_1): Call postgres initialization code.
10265
10266         * postgresql.h: New file.  PostgreSQL RDBMS support.
10267         * postgresql.c: New file.
10268
10269 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
10270
10271         * redisplay-output.c (redisplay_output_display_block): Disable
10272         redundant code.
10273
10274 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10275
10276         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
10277         (Fcanna_henkan_next): Ditto.
10278         (Fcanna_bunsetu_henkou): Ditto.
10279         (Fcanna_henkan_kakutei): Ditto.
10280         (Fcanna_henkan_end): Ditto.
10281         (Fcanna_henkan_quit): Ditto.
10282         (Fcanna_henkan_next): Set retun value correctly.
10283         (c2mu): Use unsigned char instead of signed char.
10284
10285 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10286
10287         * emacs.c (main_1): Always call syms_of_gui.
10288         * inline.c: include gui.h
10289
10290 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10291
10292         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
10293         converted to Lisp_Object.
10294         (Qtop_bottom): New variable.
10295         (syms_of_redisplay): Initialize it.
10296         * redisplay.h (Vvisible_bell): Ditto.
10297         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
10298         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
10299         only flash top and bottom.
10300
10301 2000-03-08  Andy Piper  <andy@xemacs.org>
10302
10303         * buffer.c (Frename_buffer): record new buffer name the right way.
10304
10305 2000-03-08  Andy Piper  <andy@xemacs.org>
10306
10307         * glyphs.c (update_subwindow): increase hash depth so that widget
10308         items get picked up properly.
10309
10310         * redisplay-output.c (compare_runes): increase hash depth so that
10311         widget items get picked up properly.
10312
10313 2000-03-08  Andy Piper  <andy@xemacs.org>
10314
10315         * gutter.c (output_gutter): add some debug.
10316
10317         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
10318         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
10319         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
10320
10321         * redisplay-output.c (compare_runes): use display_hash to
10322         determine if glyphs really are not the same.
10323
10324         * glyphs.c (update_subwindow): check display_hash to see if
10325         anything really needs to be updated. If not then do
10326         nothing. Record the display_hash after updating.
10327         (image_instance_equal): compare the image_instance face also.
10328
10329 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
10330
10331         * redisplay.h: Fix comment style.
10332
10333 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10334
10335         * consle-msw.h (struct mswindows_frame):
10336         Added new member paint_pending to indicate whether a WM_PAINT
10337         magic event has been queued for this frame.
10338
10339         * event-msw.c (mswindows_drain_windows_queue):
10340         Don't queue a WM_PAINT magic event if one is already queued.
10341         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
10342
10343         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
10344
10345 2000-03-07  Didier Verna  <didier@xemacs.org>
10346
10347         * dired.c: #include `regex.h' after `sysfile.h'.
10348
10349 2000-03-06  Martin Buchholz  <martin@xemacs.org>
10350
10351         * sound.c (init_nas_sound): Fix compiler warning.
10352
10353         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
10354         (FREE_STRUCT_P):
10355         (MARK_STRUCT_AS_FREE):
10356         (MARK_STRUCT_AS_NOT_FREE):
10357         Make `gcc -fstrict-aliasing' work properly.
10358
10359 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10360
10361         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
10362         (mswindows_delete_device): Call CoUnnitialize().
10363
10364         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
10365
10366 2000-02-25    <CraigL@DyCon.com>
10367
10368         * process-nt.c: MinGW now has <shellapi.h>, but still needs
10369         <errno.h>.
10370
10371         * sysdep.c: This extern declaration for environ prevents MinGW
10372         from finding the variable in CRTDLL.DLL.
10373
10374         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
10375         windows headers.
10376         (SHGFI_EXETYPE): ..
10377         (WM_MOUSEWHEEL): ..
10378         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
10379         definitions.
10380         (MMRESULT): Removed, now defined in cygwin's windows headers.
10381         (TIMECAPS): ..
10382         (uid_t,gid_t,pid_t,ssize_t): ..
10383         (_timeb): Removed, MinGW defines both _timeb and timeb.
10384         (HAVE_H_ERRNO): Added.
10385         (HAVE_TZNAME): Added, configure is not detecting this.
10386
10387 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
10388
10389         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
10390         * syntax.c (syntax_match): Use it.
10391
10392         * cmds.c: Import auto-fill-chars from FSF Emacs.
10393         (Vauto_fill_chars): New variables.
10394         (internal_self_insert): Check Vauto_fill_chars.
10395         (vars_of_cmds):
10396         Declare auto-fill-chars as a Lisp variable and initialize it.
10397
10398 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10399
10400         * fileio.c (Fmake_symbolic_link):
10401         (Ffile_symlink_p):
10402         Run handlers even if local machine doesn't have symlinks.
10403
10404 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10405
10406         * event-msw.c (mswindows_drain_windows_queue):
10407         Don't generate paint magic events for non-XEmacs frames.
10408
10409 2000-03-05  Andy Piper  <andy@xemacs.org>
10410
10411         * redisplay.c (redisplay_frame): generate_displayable_area and
10412         friends assumes that we are not in GC, we therefore have to make
10413         sure that this doesn't happen.
10414
10415         * gutter.c (calculate_gutter_size): generate_displayable_area
10416         assumes that we are not in GC, we therefore have to make sure that
10417         this doesn't happen.
10418
10419 2000-03-05  Martin Buchholz  <martin@xemacs.org>
10420
10421         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
10422
10423 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
10424
10425         * redisplay.c (regenerate_window): Make sure we set a sane value
10426         for end_pos even if we jump out of the loop.
10427         (regenerate_window): Answer Ben's question :-).
10428         (start_end_of_last_line): Add may_error argument.
10429         (start_of_last_line):
10430         (end_of_last_line): Pass may_error = 0.
10431         (end_of_last_line_may_error): New function.
10432         (pixel_to_glyph_translation): Use it, so we don't crash in
10433         event_to_glyph.
10434
10435 2000-03-04  Andy Piper  <andy@xemacs.org>
10436
10437         * window.h (struct window): add gutter_extent_modiff.
10438
10439         * window.c (allocate_window): zero out gutter_extent_modiff.
10440
10441         * redisplay.h: declare sync_display_line_structs.
10442
10443         * redisplay.c (add_glyph_rune): add a better comment.
10444
10445         * redisplay-output.c (sync_display_line_structs): made non-static.
10446         (compare_runes): remove unneccesary glyph cachel access.
10447
10448         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
10449
10450         * gutter.c (output_gutter): don't output the gutter if extent
10451         changes only involve extents in buffers. use 4 sets of display
10452         lines.
10453         (gutter_extent_signal_changed_region_maybe): new function. Mark
10454         extents in gutters as changed.
10455         (update_frame_gutters): use 4 sets of display lines.
10456         (reset_gutter_display_lines): ditto.
10457         (free_frame_gutters): ditto.
10458         (redraw_exposed_gutter): force output of gutters.
10459
10460         * frame.h (struct frame): add 4 sets of gutter display lines.
10461
10462         * extents.c: (extent_changed_for_redisplay): signal changes to
10463         extents in strings in the gutter as well as extents in buffers.
10464
10465 2000-03-02  Andy Piper  <andy@xemacs.org>
10466
10467         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
10468
10469         * frame.c (Fmake_frame): make sure the gutters get initialized
10470         after the frame is visible.
10471         (set_frame_selected_window): re-arrange compilation macros a
10472         little.
10473         (change_frame_size_1): mark gutters changed.
10474
10475         * device.c (Fset_device_class): mark gutters changed.
10476
10477 2000-03-01  Andy Piper  <andy@xemacs.org>
10478
10479         * window.c (window_top_frame_gutter_height): deleted.
10480         (window_bottom_frame_gutter_height): ditto.
10481         (window_left_frame_gutter_height): ditto.
10482         (window_right_frame_gutter_height): ditto.
10483         (window_top_gutter_height): don't use them.
10484         (window_bottom_gutter_height): ditto.
10485         (window_left_gutter_width): ditto.
10486         (window_right_gutter_width): ditto.
10487         (Fsplit_window): ditto.
10488         (Fwindow_pixel_edges): don't use border dimensions here.
10489
10490         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
10491         (update_scrollbar_instance): ditto.
10492
10493         * redisplay.c (generate_modeline): don't take gutters into account.
10494         (generate_modeline): ditto.
10495         (redisplay_frame): small gutter display optimization.
10496
10497         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
10498
10499         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
10500         gutters into account.
10501
10502         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
10503         for window position and type.
10504
10505         * gutter.c (get_gutter_coords): fix for frame gutters.
10506         (update_frame_gutters): update frame geometry if the gutters have
10507         changed.
10508         (init_frame_gutters): record current gutter geometries.
10509
10510         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
10511         var.
10512         (mswindows_widget_instantiate): ditto.
10513
10514         * frame.h (struct frame): add current_gutter_bounds.
10515
10516         * frame.c (change_frame_size_1): position window and minibuffer
10517         appropriately taking into account the frame gutters.
10518
10519         * frame-x.c: (x_initialize_frame_size): take into account the
10520         frame gutters.
10521
10522 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
10523
10524         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
10525
10526 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
10527
10528         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
10529
10530 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
10531
10532         * file-coding.c (reset_decoding_stream): Clear previous
10533         detection state when autodetect.
10534
10535 2000-02-29  Didier Verna  <didier@xemacs.org>
10536
10537         * extents.c (set_extent_glyph_1): don't require extents to be
10538         attached.
10539
10540 2000-02-27  Andy Piper  <andy@xemacs.org>
10541
10542         * gutter.c (Fset_default_gutter_position): don't default left and
10543         right gutter visibility to t.
10544         (Fset_default_gutter_position): run
10545         default-gutter-position-changed-hook.
10546         (syms_of_gutter): add default-gutter-position-changed-hook.
10547
10548 2000-02-26  Andy Piper  <andy@xemacs.org>
10549
10550         * specifier.c (Fmake_specifier): add gutter references.
10551
10552         * gutter.h (RAW_WINDOW_GUTTER): new macro.
10553
10554         * lisp.h: declare Fvalid_plist_p.
10555
10556         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
10557         as changed.
10558         (default_gutter_visible_p_changed_in_window): invalidate gutter as
10559         well as its visibility so that it gets reconstructed.
10560         (construct_window_gutter_spec): new function. Construct a string
10561         to be displayed in the gutter from a plist of strings. Take care
10562         to only use elements that are declared as visible.
10563         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
10564         WINDOW_GUTTER.
10565         (gutter_validate): allow plists of strings in the specifier.
10566         (gutter_specs_changed): construct the real_gutter from the gutter
10567         specs using construct_window_gutter_spec.
10568         (gutter_visible_validate): gutter-visible is a new specifier type.
10569         (Fgutter_visible_specifier_p): new function for the new specifier.
10570         (syms_of_gutter): declare gutter-visible and
10571         Fgutter_visible_specifier_p.
10572         (specifier_type_create_gutter): intitalize new gutter-visible
10573         specifier.
10574         (reinit_specifier_type_create_gutter): ditto.
10575         (specifier_vars_of_gutter): use new specifier type for gutter
10576         visibility.
10577         (init_frame_gutters): construct real_gutter correctly.
10578         (Fgutter_specifier_p): beef up documentation.
10579         (Fgutter_size_specifier_p): ditto.
10580
10581         * winslots.h: add real_gutter slots.
10582
10583 2000-02-25  Andy Piper  <andy@xemacs.org>
10584
10585         * device-msw.c: Be kind to older cygwin versions. From Raymond
10586         Toy <toy@rtp.ericsson.se>.
10587
10588         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
10589         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
10590
10591 2000-02-25  Martin Buchholz  <martin@xemacs.org>
10592
10593         * elhash.c (MARK_OBJ): Practice macro hygiene.
10594
10595 2000-02-24  Martin Buchholz  <martin@xemacs.org>
10596
10597         * miscplay.c: s/__inline__/inline/g;
10598         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
10599         (get_device_compdc): INLINE ==> static inline
10600         * *.[ch]: Change INLINE to INLINE_HEADER globally.
10601         find -name '*.h' | \
10602         xargs global-replace \
10603         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
10604
10605 2000-02-25  Andy Piper  <andy@xemacs.org>
10606
10607         * window.c (window_top_frame_gutter_height): new function.
10608         (window_top_window_gutter_height): ditto.
10609         (window_top_gutter_height): use them.
10610         (window_bottom_frame_gutter_height): new function.
10611         (window_bottom_window_gutter_height): ditto.
10612         (window_bottom_gutter_height): use them.
10613         (window_left_window_gutter_width): new function.
10614         (window_left_frame_gutter_width): ditto.
10615         (window_left_gutter_width): use them.
10616         (window_right_window_gutter_width): new function.
10617         (window_right_frame_gutter_width): ditto.
10618         (window_right_gutter_width): use them.
10619         (window_pixel_height): new function. calulate window pixel height
10620         with frame gutter involvement.
10621         (Fsplit_window): calculate new sizes taking frame gutters into
10622         account.
10623         (window_char_height_to_pixel_height): don't include frame gutters.
10624         (window_char_height): use window_pixel_height.
10625         (window_pixheight): rename from window_pixel_height.
10626         (change_window_height): use it.
10627         (window_pixel_height_to_char_height): don't include frame gutters.
10628         (window_char_width_to_pixel_width): ditto.
10629
10630 2000-02-25  Andy Piper  <andy@xemacs.org>
10631
10632         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
10633         if it is.
10634
10635 2000-02-24  Martin Buchholz  <martin@xemacs.org>
10636
10637         * alloc.c (staticpro):
10638         (staticpro_nodump):
10639         (dumpstruct):
10640         (dumpopaque):
10641         (pdump_wire):
10642         (pdump_wire_list):
10643         (compact_string_chars):
10644         (pdump_dump_wired):
10645         Convert:  if (foo) abort();  ==>  assert (! foo);
10646
10647         * eldap.c (Fldap_search_basic):
10648         (Fldap_add):
10649         (Fldap_modify):
10650         (Fldap_delete):
10651         Fix compiler warnings, and possible crashes if (random) return
10652         value were to be used.
10653
10654 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10655
10656         * device-msw.c: Workaround ResetDC failure.
10657
10658         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
10659         applying a devmode.
10660
10661         * redisplay-msw.c (get_frame_dc): Added start_page_p.
10662         (mswindows_text_width): Do not start printer page.
10663
10664         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
10665
10666         * glyphs-msw.c: Added image methods to msprinter console and
10667         msprinter-specific image instantiation.
10668
10669 2000-02-20  Mike Alexander  <mta@arbortext.com>
10670
10671         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
10672         to avoid crashes when selection-sets-clipboard is on
10673         (mswindows_own_selection): ditto
10674
10675 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10676
10677         * glyphs-msw.c:
10678         * redisplay-msw.c (get_frame_dc):
10679         (get_frame_compdc):
10680         * console-msw.h:
10681         * device-msw.c (mswindows_init_device):
10682         (mswindows_delete_device):
10683         (msprinter_init_device):
10684         (msprinter_delete_device):
10685         * frame-msw.c (mswindows_init_frame_1):
10686         (mswindows_delete_frame):
10687         (msprinter_init_frame_3):
10688         (msprinter_delete_frame): Move compatible DC to device object from
10689         frame object, for both mswindows and msprinter. Only one at a time
10690         is needed, it is a real waste to have one per frame!
10691
10692 2000-02-23  Andy Piper  <andy@xemacs.org>
10693
10694         * glyphs.c: add dynamic width and height elements.
10695         (image_instance_equal): ditto.
10696
10697         * glyphs-widget.c (widget_query_geometry): calculate width and
10698         height dynamically if required.
10699         (initialize_widget_image_instance): initialize dynamic dimensions.
10700         (widget_instantiate): pick-up dynamic dimensions.
10701
10702         * glyphs.h (struct Lisp_Image_Instance): add width and height for
10703         dynamic determination. Add appropriate macros.
10704
10705         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
10706         dimensions safe.
10707         (WINDOW_GUTTER_SIZE): ditto.
10708         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
10709
10710         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
10711         inline.
10712         (get_frame_dc): ditto.
10713
10714         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
10715         here.
10716
10717 2000-02-23  Martin Buchholz <martin@xemacs.org>
10718
10719         * XEmacs 21.2.31 is released.
10720
10721 2000-02-22  Ben Wing <ben@xemacs.org>
10722
10723         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
10724
10725 2000-02-22  Andy Piper  <andy@xemacs.org>
10726
10727         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
10728
10729 2000-02-21  Mike Sperber <mike@xemacs.org>
10730
10731         * .dbxrc:
10732         * .gdbinit:
10733         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
10734         variables.
10735
10736 2000-02-21  Mike Sperber <mike@xemacs.org>
10737
10738         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
10739
10740 2000-02-21  Martin Buchholz <martin@xemacs.org>
10741
10742         * XEmacs 21.2.30 is released.
10743
10744 2000-02-20  Martin Buchholz  <martin@xemacs.org>
10745
10746         Performance hacking.
10747         * *.c (syms_of_*):
10748         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
10749         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
10750         * emacs.c (main_1):
10751         * lisp.h (DEFUN):
10752         * console.c (DEFVAR_CONSOLE_LOCAL_1):
10753         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
10754         * symeval.h (DEFVAR_SYMVAL_FWD):
10755         * symbols.c (guts_of_unbound_marker):
10756         Make all c_readonly objects also lisp_readonly and marked for life.
10757         * lrecord.h (struct lrecord_implementation):
10758         Document flags better.
10759         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
10760         * lrecord.h (DECLARE_LRECORD):
10761         * lrecord.h (XSETRECORD):
10762         * lrecord.h (RECORDP):
10763         * lrecord.h (RECORD_TYPEP):
10764         * lrecord.h (RECORD_MARKER): New.
10765         * lrecord.h (error_check_*):
10766         * lrecord.h (CONCHECK_NONRECORD):
10767         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
10768         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
10769         * lrecord.h (set_lheader_implementation):
10770         * lrecord.h (enum lrecord_type): New.
10771         * symeval.h (SYMBOL_VALUE_MAGIC_P):
10772         * alloc.c (disksave_object_finalization_1):
10773         * alloc.c (mark_object):
10774         * alloc.c (lrecord_type_index):
10775         * alloc.c (tick_lcrecord_stats):
10776         * alloc.c (Fgarbage_collect):
10777         * alloc.c (init_alloc_once_early):
10778         * alloc.c (pdump_load):
10779         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
10780         * alloc.c (lrecord_type_index): Delete.
10781         Make lisp object type indexes be constant.
10782           Makes (byte-compile) 5% faster.
10783         Put all marker functions into their own array.
10784           Makes (garbage-collect) 5% faster.
10785         Optimize SYMBOL_VALUE_MAGIC_P.
10786           Makes (byte-compile) 2-3% faster.
10787         * config.h.in (gc_checking_assert): New.
10788         * alloc.c: Use gc_checking_assert().
10789         * .dbxrc: Make compatible with new object type implementation.
10790         * .gdbinit: Make compatible with new object type implementation.
10791         * alloc.c: Delete all symbols defined only for debugging, such as
10792         Lisp_Type_Vector and lrecord_charset.
10793
10794 2000-02-21  Andy Piper  <andy@xemacs.org>
10795
10796         * gui-msw.c (Fmswindows_shell_execute): fix file location
10797         problems.
10798
10799         * buffer.c (Fkill_buffer): remove buffer from alist buffer
10800         unshowing so that set_window_buffer doesn't undo
10801         kill_buffer_hook's hard work.
10802
10803         * glyphs-widget.c (tab_control_query_geometry): don't count the
10804         first item when calculating geometry.
10805
10806         * glyphs.c (map_subwindow): remove redundant code.
10807         (update_frame_subwindows): be more circumspect about when to
10808         update subwindows.
10809
10810         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
10811         when items haven't changed. Update faces if faces have changed as
10812         well as just the widget face.
10813         (x_tab_control_update): Update faces if faces have changed as well
10814         as just the widget face.
10815
10816 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10817
10818         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
10819         registration.
10820         (build_syscolor_string): Use mswindows_color_to_string to try to
10821         get a named color.
10822         (mswindows_device_system_metrics): Reverse the foreground and
10823         background colors so that they match the documentation.
10824
10825         * objects-msw.c: (mswindows_X_color_map): tweak some values so
10826         they match the default Windows palette.
10827         (mswindows_color_to_string): New function.
10828
10829 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10830
10831         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
10832
10833 2000-02-18  Olivier Galibert  <galibert@pobox.com>
10834
10835         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
10836         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
10837
10838         * symbols.c (init_symbols_once_early): Removed obsolete
10839         DATA_SEG_BITS related kludge.
10840         (defvar_magic): Ditto.
10841
10842         * malloc.c: Removed obsolete DATA_SEG_BITS
10843         * ralloc.c: Ditto.
10844         * mem-limits.h: Ditto.
10845
10846         * Makefile.in.in: Removed obsolete HAVE_SHM
10847         * emacs.c: Ditto.
10848
10849 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10850
10851         *  device-msw.c (mswindows_delete_device): Free DDE string
10852         handles.
10853
10854 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10855
10856         * keymap.c (get_keyelt):
10857         * unexnt.c (unexec):
10858         * vm-limit.c (memory_warnings):
10859         * ntheap.c (recreate_heap):
10860         * ntheap.h (UNINIT_PTR):
10861         * select-msw.c (Fmswindows_get_clipboard):
10862         (Fmswindows_set_clipboard):
10863         * objects-msw.h (MSWINDOWS_BAD_HFONT):
10864         * objects-msw.c:
10865         * menubar-msw.c (displayable_menu_item):
10866         * glyphs-msw.c:
10867         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
10868         * sysdep.c (sys_subshell):
10869         * process-nt.c (nt_create_process):
10870         * nt.c (normalize_filename):
10871         (dostounix_filename):
10872         (unixtodos_filename):
10873         * ntproc.c (win32_executable_type):
10874         * ntplay.c (play_sound_data_1):
10875         (play_sound_file):
10876         * editfns.c (get_home_directory):
10877         * event-msw.c (struct winsock_stream):
10878         (mswindows_dde_callback):
10879         * device-msw.c (msprinter_init_device):
10880         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
10881
10882         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
10883         mswindows_clear_toolbar were swapped!
10884
10885         * objects-msw.c:(colormap_t):
10886         (fontmap_t):
10887         * emacs.c (struct standard_args): Fixed const jumble.
10888
10889         * glyphs-widget.c (update_widget): Fixed comparison notation.
10890
10891         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
10892
10893         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
10894         __declspec(noreturn) syntax.
10895
10896 2000-02-19  Martin Buchholz  <martin@xemacs.org>
10897
10898         * eldap.c (Fldap_open):
10899         (Fldap_search_basic):
10900         (Fldap_add):
10901         (Fldap_modify):
10902         Use new coding system conversion macros.
10903
10904 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
10905
10906         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
10907
10908 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
10909
10910         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
10911         (Fldap_add, Fldap_modify, Fldap_delete): New functions
10912
10913         * eldap.c (Qadd, Qreplace): New constant symbols
10914         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
10915         interruptions by XEmacs signals
10916         Remove unnecessary calls to slow_down_interrupts and
10917         speed_up_interrupts
10918         (Fldap_search_basic): Renamed from Fldap_search_internal
10919         Added new optional parameter VERBOSE that triggers the
10920         display of progress messages
10921         Remove unnecessary calls to slow_down_interrupts and
10922         speed_up_interrupts
10923         LDAP result code analysis rewritten
10924         (Fldap_add, Fldap_modify, Fldap_delete): New functions
10925         (syms_of_eldap): Define the new symbols and functions
10926
10927
10928 2000-02-17  Martin Buchholz  <martin@xemacs.org>
10929
10930         * realpath.c: Determine PATH_MAX maximally portably.
10931
10932         * insdel.c (bytecount_to_charcount): Optimize.
10933         The function used to be optimized for entirely ASCII sequences.
10934         Now it is optimized for successive characters from the same
10935         charset.  This also wins big for _mostly_ ASCII sequences.
10936
10937         * fileio.c (Ffile_truename): convert return from realpath() using
10938         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
10939         - Rewrite GCPROing slightly.
10940
10941         * sysdep.c (sys_open): Do filename conversion, like all other
10942         sys_* functions.  Fixes bug:
10943         (let ((file-name-coding-system 'iso-8859-2))
10944            (write-region x y latin2-name))
10945         ==> writes filename using internal encoding.
10946
10947 2000-02-18  Martin Buchholz  <martin@xemacs.org>
10948
10949         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
10950         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
10951         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
10952         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
10953         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
10954         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
10955         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
10956         (CONST_IF_NOT_DEBUG): Delete.
10957         * alloc.c (this_one_is_unmarkable): Delete.
10958         (mark_object): Don't check for this_one_is_unmarkable. Use the
10959         c_readonly flag instead.
10960         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
10961
10962 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10963
10964         * event-msw.c (mswindows_drain_windows_queue):
10965         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
10966         away redundant repaint events.
10967
10968 2000-02-17  Andy Piper  <andy@xemacs.org>
10969
10970         * redisplay.h: declare mark_redisplay_structs.
10971
10972         * redisplay.c (redisplay_window):
10973         (redisplay_frame): don't check subwindows_state_changed.
10974         (mark_redisplay): mark gutters here.
10975
10976         * glyphs.c: (instantiate_image_instantiator): always layout if we
10977         haven't done so already.
10978         (allocate_image_instance): don't mark as dirty.
10979         (update_subwindow): bind inhibit_quit.
10980
10981         * gutter.c (mark_gutters): new function.
10982
10983         * glyphs-x.c (x_update_widget): Always resize to get round a
10984         widget bug.
10985
10986         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
10987         breaking absolutely everything.
10988
10989         * gutter.h: declare mark_gutters.
10990
10991 2000-02-16  Martin Buchholz <martin@xemacs.org>
10992
10993         * XEmacs 21.2.29 is released.
10994
10995 2000-02-15  Olivier Galibert  <galibert@pobox.com>
10996
10997         * fns.c (size_bit_vector): Fix computation of the size.
10998
10999 2000-02-15  Martin Buchholz  <martin@xemacs.org>
11000
11001         * *.[ch]: Change CONST to const globally.
11002         find -name '*.[ch]' | \
11003         xargs global-replace \
11004         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
11005         - Remove vestigial references to CONST_IS_LOSING
11006
11007 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11008
11009         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
11010         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
11011         events instead of dispatching them directly.
11012         (mswindows_handle_paint): New function to do repainting.
11013         (mswindows_wnd_proc):
11014         (emacs_mswindows_handle_magic_event): Call above function.
11015
11016 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11017
11018         * objects-msw.c (mswindows_create_font_variant): Return the new
11019         font handle.
11020         (initialize_font_instance): Get font metrics from the underlined
11021         variant of the font to cope with the case where the underlined
11022         font has a bigger descent.
11023
11024 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
11025
11026         * gui.c (gui_item_accelerator): Return the first underlined
11027         character in item name.
11028
11029 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11030
11031         * lisp.h: Added Qprinter.
11032
11033         * general.c (syms_of_general): Initialized it.
11034
11035         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
11036         (get_frame_dc):
11037         (get_frame_compdc): Made inline.
11038
11039         * console.h (struct console_methods): Added eject_page method.
11040
11041         * frame.h: Added FRAME_DISPLAY_P and friends.
11042         Aligned backslahes in many macros in more readable fashion.
11043         Added page_number to struct frame, and an accessor macro
11044         for it.
11045
11046         * defice.h: Added DEVICE_DISPLAY_P and friends.
11047
11048         * device.c (Fdevice_printer_p): Used these.
11049
11050         * frame.c (allocate_frame_core): Initialize page number.
11051         (Fprint_job_page_number):
11052         (Fprint_job_eject_page): Implemented.
11053
11054         * frame-msw.c (msprinter_eject_page): Added method.
11055         (msprinter_start_page): Added.
11056
11057         * window.c (Fwindow_truncated_p): Fixed docstring.
11058         (Fwindow_last_line_visible_height): Implemented.
11059
11060 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
11061
11062         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
11063
11064 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11065
11066         * syntax.c (scan_words): Always advance at least one character.
11067
11068 2000-02-13  Andy Piper  <andy@xemacs.org>
11069
11070         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
11071         to make sure the glyph is in the cachels.
11072
11073         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
11074         global image instance flag.
11075         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
11076         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
11077
11078         * glyphs.c (allocate_image_instance): set dirty bits correctly.
11079         (Fset_image_instance_property): mark layout as changed.
11080         (invalidate_glyph_geometry_maybe): mark layout as changed.
11081         (glyph_width): use new NEEDS_LAYOUT macro.
11082         (glyph_ascent): ditto.
11083         (glyph_descent): ditto.
11084         (glyph_height): ditto.
11085         (image_instance_layout): mark layout as clean after laying out.
11086         (update_subwindow): don't mark layout as clean here.
11087
11088         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
11089         should no longer be needed.
11090
11091         * glyphs-x.c (x_update_widget): sanitize asserts.
11092         (x_finalize_image_instance): sanitize assignment to widgets.
11093
11094         * glyphs-widget.c (widget_instantiate): don't need to clear the
11095         layout flag here.
11096
11097 2000-02-13  Martin Buchholz  <martin@xemacs.org>
11098
11099         * sysdep.c (getcwd): Use standard prototype.
11100         * sysdep.h (getcwd): Use standard prototype.
11101
11102         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
11103         (sequence, start, end).
11104         Remove redundant type checking.
11105         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
11106         view of `caller-protects') to avoid a crash where the real fix was
11107         found elsewhere.
11108
11109 2000-02-12  Martin Buchholz  <martin@xemacs.org>
11110
11111         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
11112
11113         * s/sol2.h: Remove feature macro initialization.
11114
11115         * alloc.c (alloc_lcrecord): Add more type checking assertions.
11116         (vector_hash): New.  Code from internal_hash.
11117         * lrecord.h:
11118         Fix up allocation subsystem comments.
11119
11120         * config.h.in: Add __EXTENSIONS__ for Solaris.
11121
11122         * systime.h (EMACS_GETTIMEOFDAY): New.
11123         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
11124         Remove Solaris-specific code.
11125         Use void* for the (ignored) second arg for gettimeofday().
11126
11127         * elhash.c (hash_table_hash): Implement it, finally.
11128         * elhash.c:  Use hashcode_t.
11129
11130         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
11131         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
11132
11133         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
11134         * fns.c (size_bit_vector):
11135         * alloc.c (size_vector):
11136         (make_vector_internal):
11137         (make_bit_vector_internal):
11138         (sweep_bit_vectors_1):
11139         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
11140
11141 2000-02-10  Martin Buchholz  <martin@xemacs.org>
11142
11143         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
11144         Include strings.h to avoid warnings for bzero and strcasecmp.
11145
11146 2000-02-10  Olivier Galibert  <galibert@pobox.com>
11147
11148         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
11149         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
11150
11151         * fns.c (size_bit_vector): New.  Declare bit vectors as a
11152         sequence.
11153
11154 2000-02-10  Olivier Galibert  <galibert@pobox.com>
11155
11156         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
11157         use a value field instead.
11158         (symbol_value_forward_forward): Use value field.
11159         (DEFVAR_SYMVAL_FWD): Use value field.
11160         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
11161         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
11162         (DEFVAR_CONST_INT): Ditto.
11163         (DEFVAR_BOOL): Ditto.
11164         (DEFVAR_CONST_BOOL): Ditto.
11165         (DEFVAR_INT_MAGIC): Ditto.
11166         (DEFVAR_BOOL_MAGIC): Ditto.
11167
11168         * symbols.c (guts_of_unbound_marker): Use value field.
11169         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
11170         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
11171
11172         * lisp.h: Declare dumpopaque and noninteractive1.
11173
11174         * alloc.c (dumpopaque): Added.
11175         (pdump_dump_opaquevec): Added.
11176         (pdump): Call pdump_dump_opaquevec to dump opaque data.
11177         (pdump_load): Reload opaque data.  Sync noninteractive1 with
11178         noninteractive.
11179
11180 2000-02-10  Andy Piper  <andy@xemacs.org>
11181
11182         * glyphs.c (image_instance_layout): if the size changes, mark it
11183         as such.
11184
11185         * redisplay-output.c (redisplay_output_layout): Update the
11186         subwindow here.
11187         (redisplay_output_subwindow): ditto.
11188
11189         * glyphs.c (update_subwindow): make sure we reset flags for
11190         layouts as well as everything else.
11191
11192         * glyphs-widget.c (layout_layout): don't need to set the instances
11193         dimensions here.
11194
11195 2000-02-09  Martin Buchholz  <martin@xemacs.org>
11196
11197         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
11198         not HAVE_DLOPEN, which is a lower-level thing.
11199
11200         * .cvsignore: Ignore gmon.out
11201
11202 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
11203
11204         * .cvsignore: Ignore portable dumper xemacs.dmp file
11205
11206 2000-02-09  Andy Piper  <andy@xemacs.org>
11207
11208         * redisplay-output.c (redisplay_output_layout): be more clever
11209         about when we output based on the changed flags.
11210
11211         * glyphs.h (struct image_instantiator_methods): add update_method.
11212         (struct Lisp_Image_Instance): add changed flags. Declare new
11213         macros for manipulating them.
11214
11215         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
11216         (image_instance_parent_glyph): find an image_instance's parent
11217         glyph or image_instance.
11218         (image_instance_layout): mark the size as changed.
11219         (set_image_instance_dirty_p): new function. mark an image
11220         instance, plus all of its parents, as dirty.
11221         (Fset_image_instance_property): use it.
11222         (Fglyph_animated_timeout_handler): use it.
11223         (update_subwindow): call update_widget and device methods for
11224         update_subwindow. Mark all changed flags as clean.
11225         (Fresize_subwindow): mark size as changed.
11226
11227         * glyphs-x.c (x_finalize_image_instance): try and detect gc
11228         failures.
11229         (x_update_subwindow): only resize subwindows here.
11230         (x_update_widget): new function. Update all changed properties of
11231         a widget.
11232         (x_resize_subwindow): deleted.
11233         (x_widget_set_property): deleted.
11234         (x_progress_gauge_set_property): deleted.
11235         (x_progress_gauge_update): new function. Implement recorded
11236         changes.
11237         (x_tab_control_update): ditto.
11238         (x_tab_control_set_property): deleted.
11239         (console_type_create_glyphs_x): declare new functions.
11240         (image_instantiator_format_create_glyphs_x): ditto.
11241
11242         * glyphs-widget.c (widget_set_property): mark text changed.
11243         (update_widget): new function. Update properties of a widget.
11244         (widget_instantiate): for layouts make sure we set their
11245         children's parent correctly.
11246         (tab_control_set_property): new function. Record changes that will
11247         take place under redisplay's control.
11248         (progress_gauge_set_property): ditto.
11249         (image_instantiator_progress_guage): declare new functions.
11250         (image_instantiator_tab_control): ditto.
11251
11252         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
11253         now.
11254         (mswindows_update_widget): new function. Update all properties on
11255         a widget that have changed.
11256         (mswindows_button_update): new function. Update a button's set
11257         state.
11258         (mswindows_tab_control_update): new function. Update the items in
11259         a tab.
11260         (mswindows_tab_control_set_property): deleted.
11261         (mswindows_progress_gauge_update): new function. Update the
11262         progress gauge's progress.
11263         (mswindows_widget_set_property): deleted. This is all done
11264         asynchronously now.
11265         (mswindows_progress_gauge_set_property): ditto.
11266         (console_type_create_glyphs_mswindows): declare new methods.
11267         (image_instantiator_format_create_glyphs_mswindows): ditto.
11268
11269         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
11270         (msprinter_set_frame_properties): ditto.
11271
11272         * console.h (struct console_methods): Add update_widget_method.
11273
11274 2000-02-09  Andy Piper  <andy@xemacs.org>
11275
11276         * gui-msw.c (Fmswindows_shell_execute): Make
11277         mswindows-shell-execute industrial strength.
11278
11279 2000-02-08  Martin Buchholz  <martin@xemacs.org>
11280
11281         * lrecord.h: Make macro argument `props' match member function `plist'.
11282         * fns.c (Fget):
11283         * fns.c (Fput):
11284         * fns.c (Fremprop):
11285         * fns.c (Fobject_plist):
11286         * alloc.c:
11287         * symbols.c:
11288         Object property list frobbing cleanup.
11289         - Allow any lisp object (compared with `eq'), not just symbols, as
11290           keys in object plists.
11291         - Move symbol plist frobbing into symbols.c, where it belongs.
11292         - Move string plist frobbing into alloc.c, where it belongs.
11293         - Everything's an lrecord now, so no need to test for symbolp, etc.
11294         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
11295
11296         * extents.c: Reorder code to remove declarations.
11297
11298         * frame.h (store_in_alist): Remove useless declaration.
11299
11300 2000-02-07  Martin Buchholz  <martin@xemacs.org>
11301
11302         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
11303         * config.h.in: Add HAVE_XCONVERTCASE.
11304
11305 2000-02-07  Andy Piper  <andy@xemacs.org>
11306
11307         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
11308         it breaks many things.
11309
11310 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
11311
11312         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
11313         actually can start a common comment type.
11314         * src/syntax.h (SYNTAX_END_P): ditto for end.
11315
11316 2000-02-07  Martin Buchholz <martin@xemacs.org>
11317
11318         * XEmacs 21.2.28 is released.
11319
11320 2000-02-06  Martin Buchholz  <martin@xemacs.org>
11321
11322         * event-Xt.c (x_keysym_to_character): New.
11323         (maybe_define_x_key_as_self_inserting_character): New.
11324         (x_has_keysym): New.
11325         Auto-define all keys on the keyboard as self-insert-key.
11326
11327 2000-02-02  Martin Buchholz  <martin@xemacs.org>
11328
11329         * menubar.c (vars_of_menubar): A small code simplification.
11330
11331         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
11332
11333         * ExternalShell.c:
11334         * ExternalClient.c:
11335         * EmacsShell-sub.c:
11336         * EmacsManager.c:
11337         * EmacsFrame.c:
11338         Use consistent style for specifying X resources.
11339
11340         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
11341         This makes (dontusethis-set-symbol-value-handler) actually usable.
11342
11343         * lrecord.h (lrecord_decription_type):
11344         * alloc.c (pdump_register_sub):
11345         (pdump_dump_data):
11346         (pdump_reloc_one):
11347         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
11348         Comply with XEmacs coding style.
11349         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
11350         args, and XD_LISP_OBJECT_ARRAY with 3 args.
11351
11352         * keymap.c (Faccessible_keymaps):
11353         Make (accessible-keymaps map "\C-h") do the Right Thing.
11354         Make (accessible-keymaps map []) do the Right Thing.
11355         Make (accessible-keymaps map "") do the Right Thing.
11356         (check_keymap_definition_loop): New function.
11357         (keymap_store_internal): Keep luser from shooting self in foot,
11358           via (define-key ctl-x-4-map "p" global-map).
11359         Remove fullness slot from struct Lisp_Keymap, since hash tables
11360         are now reliable.
11361         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
11362
11363 2000-01-30  Martin Buchholz  <martin@xemacs.org>
11364
11365         * redisplay.c (init_redisplay): Fix small memory leak.
11366         * elhash.h:
11367         * elhash.c (pdump_reorganize_hash_table):
11368         Rename from reorganize_hash_table. Change prototype.
11369         Reuse the original memory for hentries.  Save 100k.
11370         * alloc.c (PDUMP_READ): new macro.
11371         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
11372         * alloc.c: No need to #ifndef before #undef.
11373
11374         * print.c: Allow debug_print() to print readably by modifying
11375         debug_print_readably.  Use consistent variable names.
11376
11377         * .dbxrc: Try to get things to work even if stopped in a function
11378         without source available by explicitly specifying source files.
11379 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11380
11381         * unexnt.c (_start): Removed bogus code which caused loading heap
11382         from differrent executable file.
11383         Removed bogus assignment to _fmode, which caused inconsistencies.
11384
11385 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11386
11387         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
11388         Have spawnve encapsulation regard DONT_ENCAPSULATE.
11389         Do not preliminary `#define signal sigset'.
11390
11391         * systime.h: Do not prototype environ on windows nt and cygwin,
11392         this conflicts with system header.
11393
11394         * syssignal.h: Use correct define for WINDOWSNT
11395
11396         * sysdep.h: Do not prototype environ on windows nt, this conflicts
11397         with system header.
11398
11399         * sysdep.c (near start of file): Fixed commentary and rearranged
11400         ifdefs in readable order.
11401         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
11402         (start_of_text):
11403         (end_of_text):
11404         (end_of_data): Do not compile in if using PDUMP.
11405
11406         * symsinit.h: Prototyped vars_of_nt().
11407
11408         * ntproc.c (windows9x_p): Added, instead of os_subtype.
11409         (find_child_console): Use it.
11410         (sys_kill): Use it.
11411
11412         * ntheap.h: Do not extern os_subtype.
11413
11414         * ntheap.c (cache_system_info): Do not cache unneeded:
11415         nt_major_version, nt_minor_version and os_subtype.
11416         (recreate_heap): Do not compile in when PDUMPing.
11417
11418         * nt.c (geteuid and friends): Use the new varibale
11419         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
11420         (init_user_info): Removed the above mentioned hackery.
11421         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
11422         stat has been fixed in the C runtime.
11423         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
11424
11425         * file-coding.c (struct file_coding_dump): Do not define
11426         ucs_to_mule_table in the struct if not MULE.
11427         (struct struct lrecord_description fcd_description_1): Do not dump
11428         the above.
11429
11430         * emacs.c (main_1): Call vars_of_nt().
11431         (right before Fdump_emacs_data): Don't need lastfile if using both
11432         portabe dumper and system malloc.
11433
11434         * alloc.c (Fmemory_limit): Conditionalized out.
11435         (pdump): Use OPEN_BINARY for the portable dump file.
11436         (pdump_load): Ditto.
11437
11438 2000-02-02  Mike Alexander  <mta@arbortext.com>
11439
11440         * nt.c (convert_time): Set tm_isdst before calling mktime and
11441         avoid calling it at all if the compiler supports 64 bit integers.
11442         Also initialize utc_base_ft before using it.
11443
11444 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
11445
11446         * frame.c (change_frame_size_1): Take f->internal_border_width
11447         into consideration when calculating the width of the frame.
11448
11449 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11450
11451         * window.c (frame_min_height):
11452         (frame_size_valid_p):
11453         (frame_pixsize_valid_p): Added.
11454         (check_frame_size): Generalized.
11455
11456         * window.h: Prototyped the above.
11457
11458         * lisp.h:
11459         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
11460         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
11461         Deleted Vwin32_* and Vbinary_process_* unused variables.
11462
11463         * device-msw.c (msprinter_init_device): Do not get printer font
11464         list; Added DEVMODE functions.
11465
11466         * frame-msw.c: Added lots of printer code.
11467
11468         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
11469         general.c.
11470
11471         * console-msw.h: Added more msprinter device private slots.
11472
11473 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11474
11475         * event-msw.c (key_needs_default_processing_p): Added.
11476         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
11477
11478 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11479
11480         * glyphs.c (image_instance_layout): Mark image instance as clean
11481         after layout.
11482         (glyph_dirty_p): Removed redundant function.
11483         (invalidate_glyph_geometry_maybe): Added.
11484         (update_glyph_cachel_data): Call it.
11485
11486         * glyphs.h: Prototyped it.
11487
11488         * redisplay.c (add_glyph_rune): Call it.
11489         (redisplay_window): Reset glyphs cachels when frame faces have
11490         changed, thus forcing recomputation of built-in border glyphs.
11491
11492 2000-01-30  Martin Buchholz  <martin@xemacs.org>
11493
11494         * Makefile.in.in: Make portable dumper and purify play well together.
11495         Add imperfect, but better than nothing, support for pdump.
11496         Remove xemacs.dmp when temacs is re-generated.
11497         Don't ignore errors when dumping xemacs.
11498
11499         * symbols.c (maybe_call_magic_handler): Remove one magic number.
11500
11501 2000-01-28  Andy Piper  <andy@xemacs.org>
11502
11503         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
11504         (setup_normal_frame): ditto.
11505         (setup_frame_without_minibuffer): ditto.
11506         (setup_minibuffer_frame): ditto.
11507         (delete_frame_internal): ditto.
11508         (Fmake_frame_invisible): ditto.
11509         (Ficonify_frame): ditto.
11510
11511         * window.h: change Fset_window_buffer signature.
11512
11513         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
11514         (Fset_window_buffer): allow recording of buffer if the window is
11515         the selected window.
11516         (window_loop): Use new Fset_window signature.
11517
11518 2000-01-23  Daniel Pittman  <daniel@danann.net>
11519
11520         * config.h.in: Added template for `HAVE_ATHENA_3D'
11521
11522 2000-01-29  Andy Piper  <andy@xemacs.org>
11523
11524         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
11525
11526         * gutter.c (output_gutter): Don't output if the window isn't live.
11527
11528 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11529
11530         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
11531         of 01/12/00: Moved SetFocus back here where it belongs.
11532
11533 2000-01-23  Andy Piper  <andy@xemacs.org>
11534
11535         * s/cygwin32.h: declare printer things.
11536
11537 2000-01-26  Andy Piper  <andy@xemacs.org>
11538
11539         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
11540         Alexander.
11541
11542 2000-01-24  Andy Piper  <andy@xemacs.org>
11543
11544         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
11545         (mswindows_button_instantiate): Make sure glyph is a pixmap.
11546
11547         * glyphs-widget.c (widget_instantiate): Avoid shadows.
11548
11549         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
11550
11551         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
11552
11553         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
11554         (mswindows_output_display_block): Avoid local shadows.
11555
11556         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
11557         (mswindows_enqueue_mouse_button_event): ditto.
11558         (mswindows_handle_gui_wm_command): remove declaration.
11559
11560         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
11561         warnings.
11562
11563         * console-msw.h: Avoid shadows.
11564         (mswindows_get_toolbar_button_text):
11565         (emacs_mswindows_create_stream_pair):
11566         (emacs_mswindows_delete_stream_pair):
11567         (mswindows_handle_toolbar_wm_command): declare.
11568
11569         * device-msw.c (build_syscolor_string): Avoid shadows.
11570
11571 2000-01-23  Andy Piper  <andy@xemacs.org>
11572
11573         * glyphs-widget.c (widget_instantiate): reverse the items for
11574         layouts so that children are in the expected order.
11575
11576 2000-01-28  Martin Buchholz  <martin@xemacs.org>
11577
11578         * ralloc.c: safe_bcopy ==> memmove
11579         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
11580         * s/msdos.h: Remove BCOPY macros.
11581         * insdel.c (gap_right): Remove BCOPY conditional code.
11582         * insdel.c (gap_left): Remove BCOPY conditional code.
11583         XEmacs demands a working ANSI C compiler - hence memmove.
11584
11585         * regex.c (regex_compile): Remove accidental use of trigraphs.
11586
11587 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11588
11589         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
11590         event timestamp.
11591
11592 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11593
11594         * event-msw.c (mswindows_drain_windows_queue): Added the
11595         parameter.
11596         (mswindows_need_event): Commented the call to
11597         mswindows_drain_windows_queue().
11598         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
11599         only.
11600
11601         * console-msw.h: Moved a few function prototypes here from
11602         event-msw.c.
11603
11604         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
11605         parameter from unsigned short to unsigned long.
11606         (Fmswindows_shell_execute): Added return value.
11607
11608 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
11609
11610         * sysdep.c (init_system_name):
11611           process-unix.c (unix_canonicalized_host_name):
11612         Don't call freeaddrinfo() if getaddrinfo() fails.
11613
11614         * process-unix.c (unix_open_unix_network_stream):
11615         Moved the code to get a port # into address loop.
11616
11617 2000-01-27  Martin Buchholz  <martin@xemacs.org>
11618
11619         * buffer.c (reinit_vars_of_buffer):
11620         The right place to initialize conversion_in_dynarr and
11621         conversion_out_dynarr.
11622
11623         * alloc.c (pdump): Use the real open() till sys_open() is functional.
11624
11625         * process-unix.c (unix_canonicalize_host_name): Muleize.
11626         (unix_open_network_stream): Muleize.
11627
11628         * buffer.h: Fix up prototypes for ralloc.c functions.
11629
11630 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
11631         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
11632         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
11633                 instead of gethostbyname()
11634         * process-unix.c: In unix_canonicalize_host_name() and
11635                 unix_open_network_stream(), add code to use getaddrinfo()
11636                 instead of gethostbyname().
11637
11638 2000-01-27  Daniel Pittman <daniel@danann.net>
11639
11640         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
11641         libs when built with flat Athena.
11642
11643 2000-01-27  Martin Buchholz  <martin@xemacs.org>
11644
11645         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
11646         Use coding standards for function prototypes.
11647
11648 2000-01-25  Martin Buchholz  <martin@xemacs.org>
11649
11650         * dialog-msw.c (push_lisp_string_as_unicode):
11651         * doc.c (unparesseuxify_doc_string):
11652         * dired.c (Fuser_name_completion_1):
11653         * dired.c (Fuser_name_all_completions):
11654         * dired.c (free_user_cache):
11655         * dired.c (user_name_completion):
11656         * console-x.c (get_display_arg_connection):
11657         * minibuf.c (clear_echo_area_internal):
11658         * minibuf.c (echo_area_append):
11659         * eldap.c (Fldap_open):
11660         * eldap.c (Fldap_search_internal):
11661         * frame-x.c (x_set_frame_text_value):
11662         * frame-x.c (x_set_frame_properties):
11663         * frame-x.c (x_create_widgets):
11664         * redisplay-tty.c (term_get_fkeys_1):
11665         * objects-x.c (x_parse_nearest_color):
11666         * objects-x.c (x_valid_color_name_p):
11667         * objects-x.c (x_initialize_font_instance):
11668         * objects-x.c (x_list_fonts):
11669         * objects-x.c (x_find_charset_font):
11670         * tooltalk.c (Fadd_tooltalk_message_arg):
11671         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
11672         * tooltalk.c (Fadd_tooltalk_pattern_arg):
11673         * process-unix.c (unix_create_process):
11674         * ntproc.c (sys_spawnve):
11675         * sound.c (Fplay_sound_file):
11676         * sound.c (Fplay_sound):
11677         * buffer.c (init_initial_directory):
11678         * buffer.c (init_buffer):
11679         * editfns.c (init_editfns):
11680         * editfns.c (Ftemp_directory):
11681         * editfns.c (Fuser_full_name):
11682         * editfns.c (uncache_home_directory):
11683         * editfns.c (get_home_directory):
11684         * editfns.c (Fuser_home_directory):
11685         * editfns.c (Fformat_time_string):
11686         * editfns.c (Fcurrent_time_string):
11687         * gui-x.c (button_item_to_widget_value):
11688         * database.c (Fopen_database):
11689         * event-Xt.c (x_to_emacs_keysym):
11690         * event-Xt.c (x_event_to_emacs_event):
11691         * event-Xt.c (describe_event_window):
11692         * event-msw.c (mswindows_wnd_proc):
11693         * glyphs-eimage.c (jpeg_instantiate):
11694         * glyphs-eimage.c (gif_instantiate):
11695         * glyphs-eimage.c (png_instantiate):
11696         * glyphs-eimage.c (tiff_instantiate):
11697         * glyphs-x.c (xbm_instantiate_1):
11698         * glyphs-x.c (x_xbm_instantiate):
11699         * glyphs-x.c (x_xface_instantiate):
11700         * glyphs-x.c (autodetect_instantiate):
11701         * glyphs-x.c (cursor_font_instantiate):
11702         * glyphs-x.c (x_widget_instantiate):
11703         * glyphs-x.c (x_widget_set_property):
11704         * glyphs-x.c (x_widget_property):
11705         * glyphs-x.c (BUILD_GLYPH_INST):
11706         * print.c (write_string_to_stdio_stream):
11707         * print.c (output_string):
11708         * print.c (Falternate_debugging_output):
11709         * print.c (Fexternal_debugging_output):
11710         * glyphs-msw.c (extract_xpm_color_names):
11711         * glyphs-msw.c (mswindows_xpm_instantiate):
11712         * glyphs-msw.c (bmp_instantiate):
11713         * glyphs-msw.c (resource_name_to_resource):
11714         * glyphs-msw.c (mswindows_resource_instantiate):
11715         * glyphs-msw.c (xbm_instantiate_1):
11716         * glyphs-msw.c (mswindows_xbm_instantiate):
11717         * glyphs-msw.c (mswindows_xface_instantiate):
11718         * glyphs-msw.c (mswindows_widget_instantiate):
11719         * glyphs-msw.c (add_tree_item):
11720         * glyphs-msw.c (add_tab_item):
11721         * glyphs-msw.c (mswindows_combo_box_instantiate):
11722         * glyphs-msw.c (mswindows_widget_property):
11723         * glyphs-msw.c (mswindows_combo_box_property):
11724         * glyphs-msw.c (mswindows_widget_set_property):
11725         * console.c (stuff_buffered_input):
11726         * objects-msw.c (mswindows_initialize_color_instance):
11727         * objects-msw.c (mswindows_valid_color_name_p):
11728         * objects-msw.c (mswindows_list_fonts):
11729         * objects-msw.c (mswindows_font_instance_truename):
11730         * bytecode.c (optimize_compiled_function):
11731         * select-x.c (symbol_to_x_atom):
11732         * select-x.c (x_atom_to_symbol):
11733         * select-x.c (hack_motif_clipboard_selection):
11734         * select-x.c (selection_data_to_lisp_data):
11735         * select-x.c (lisp_data_to_selection_data):
11736         * select-x.c (Fx_get_cutbuffer_internal):
11737         * select-x.c (Fx_store_cutbuffer_internal):
11738         * buffer.h (TO_EXTERNAL_FORMAT): New function.
11739         * buffer.h (TO_INTERNAL_FORMAT): New function.
11740         * emacs.c (make_arg_list_1):
11741         * emacs.c (make_argc_argv):
11742         * emacs.c (main_1):
11743         * emacs.c (Fdump_emacs):
11744         * emacs.c (split_string_by_emchar_1):
11745         * file-coding.h:
11746         * lisp.h:
11747         * lstream.h:
11748         * symsinit.h:
11749         * device-x.c (x_init_device):
11750         * device-x.c (Fx_valid_keysym_name_p):
11751         * device-x.c (Fx_get_font_path):
11752         * device-x.c (Fx_set_font_path):
11753         * glyphs.c (bitmap_to_lisp_data):
11754         * glyphs.c (pixmap_to_lisp_data):
11755         * alloc.c (make_ext_string): Use coding system arguments.  Update
11756         all callers.
11757         * alloc.c (build_string):
11758         * callproc.c (child_setup):
11759         * callproc.c (init_callproc):
11760         * fileio.c (lisp_strerror):
11761         * fileio.c (directory_file_name):
11762         * fileio.c (Fexpand_file_name):
11763         * fileio.c (Ffile_truename):
11764         * fileio.c (Fsysnetunam):
11765         * fileio.c (Fdo_auto_save):
11766         * sysdep.c (sys_readdir):
11767         * tests.c: New file.  Allow adding C tests.
11768         Replace GET_* macros with a more comprehensible and flexible
11769         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
11770         Modify all calls.
11771         Any coding system can be used to do format conversion.
11772         Eliminate enum external_data_format.
11773         Eliminate convert_to_external_format.
11774         Eliminate convert_to_internal_format.
11775         Make sure file-name, keyboard, terminal, and ctext are always
11776         defined as coding systems or aliases.  Make
11777         file-name-coding-system, terminal-coding-system, and
11778         keyboard-coding-system magical variables that are equivalent to
11779         defining the corresponding coding system aliases.
11780
11781         * file-coding.c (Fcoding_system_canonical_name_p): New function.
11782         * file-coding.c (Fcoding_system_alias_p): New function.
11783         * file-coding.c (Fcoding_system_aliasee): New function.
11784         * file-coding.c (append_suffix_to_symbol): New function.
11785         * file-coding.c (dangling_coding_system_alias_p): New function.
11786         * file-coding.c (Ffind_coding_system):
11787         * file-coding.c (Fcopy_coding_system):
11788         * file-coding.c (encode_coding_no_conversion):
11789         * file-coding.c (syms_of_file_coding):
11790         * file-coding.c (vars_of_file_coding):
11791         Rewrite coding system alias code.
11792         Allow nested aliases, like symbolic links.
11793         Allow redefinition of coding system aliases.
11794         Prevent existence of dangling coding system aliases.
11795
11796         * dired.c (Fuser_name_completion_1):
11797         * dired.c (Fuser_name_all_completions):
11798         A crash would happen if user did QUIT in the middle of building
11799         user_name_cache.  Remove redundant code in mainline and unwind_protect.
11800
11801         * lisp.h:
11802         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
11803
11804         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
11805         an unsigned char *.  Update all callers.
11806
11807 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11808
11809         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
11810
11811 2000-01-25  Martin Buchholz  <martin@xemacs.org>
11812
11813         * elhash.c (hentry_description): Use more portable definition.
11814         (resize_hash_table): Initialize new hentries using
11815         xnew_array_and_zero, thereby simplifying the code.
11816
11817         * mule-charset.c (make_charset): Make sure entire object is
11818         initialized, to avoid Purify warnings.
11819
11820         * alloc.c (resize_string): Fix unlikely crash with big strings.
11821
11822 2000-01-24  Martin Buchholz  <martin@xemacs.org>
11823
11824         * realpath.c (xrealpath):
11825         Don't call getwd().
11826
11827 2000-01-25  Martin Buchholz  <martin@xemacs.org>
11828
11829         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
11830
11831 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
11832
11833         * unexelfsgi.c (unexec): Change the way we decide which segment
11834         should be extended.
11835
11836         Assumption that .bss section should be outside the PT_LOADable
11837         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
11838         it's present) is inside the 'data' segment. This would fail the
11839         test which was used to find a segment to grow and cover new
11840         heap. Instead of this assumption, I created another one - on IRIX
11841         the segment to grow should start below .bss and it's address
11842         should extent above the end of .bss. Once this segment is
11843         identified, it's grown to accommodate the new heap and new
11844         zero-length .bss section is added at the end of .data2.
11845
11846 2000-01-25  Martin Buchholz  <martin@xemacs.org>
11847
11848         * eval.c (Feval): Wrong number of arguments should use original
11849         function, not the indirect_function version of it.
11850
11851 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
11852
11853         * glyphs-x.c (x_button_instantiate): Don't add image if
11854         it is not a pixmap.
11855         (x_locate_pixmap_file): Call Fexpand_file_name when file name
11856         is relative.
11857
11858 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
11859
11860         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
11861         declaration.
11862         (DEFVAR_INT_MAGIC): Ditto.
11863         (DEFVAR_BOOL_MAGIC): Ditto.
11864         * glyphs.h: Reindent backslash.
11865
11866 2000-01-24  Martin Buchholz  <martin@xemacs.org>
11867
11868         * glyphs-widget.c (layout_query_geometry):
11869         (layout_layout): Use correct types for gheight, gwidth.
11870
11871 2000-01-24  Martin Buchholz  <martin@xemacs.org>
11872
11873         * EmacsManager.c (QueryGeometry): Purified.
11874
11875 2000-01-23  Martin Buchholz  <martin@xemacs.org>
11876
11877         * alloc.c (make_float): Make sure entire object is initialized, to
11878         avoid Purify warnings.
11879         (pdump_register_sub): Remove useless assignment.
11880         (pdump): Use xmalloc, not malloc.
11881         (pdump_load): Use xmalloc, not malloc.
11882
11883 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11884
11885         * callproc.c:
11886         * dired-msw.c:
11887         * fileio.c:
11888         * process-nt.c:
11889         * redisplay-msw.c:
11890         * sysdep.c: Removed redundant #include <windows.h>
11891
11892 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11893
11894         * frame.c (delete_frame_internal): Do not delete device when its
11895         implementation so declares.
11896         (delete_frame_internal): Set device selected frame to nil when
11897         last frame goes away.
11898
11899         * device-msw.c (msprinter_device_system_metrics): Implemented.
11900         (mswindows_device_system_metrics): Added 'device-dpi property.
11901
11902         * device.c: (Fdevice_printer_p): Added.
11903         Added 'offset-workspace device metric.
11904
11905         * console.h (device_metrics): Declared DM_offset_workspace.
11906
11907 2000-01-23  Martin Buchholz  <martin@xemacs.org>
11908
11909         * fileio.c (Ffile_truename): Remove pointless and confusing
11910         initialization of elen.
11911
11912         * glyphs-widget.c: Compiler warning fixes.
11913
11914 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
11915
11916         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
11917         instead of a Lisp_Object as argument to make it consistent with
11918         the other LIVE_P macros.
11919         (CHECK_LIVE_PROCESS): New macro.
11920
11921         * process.c: Declare Qprocess_live_p.
11922         (Fprocess_live_p): New function.
11923         (create_process): Use PROCESS_LIVE_P.
11924         (read_process_output): Ditto.
11925         (set_process_filter): Ditto.
11926         (Fdelete_process): Ditto.
11927         (kill_buffer_processes): Ditto
11928         (process_send_signal): Use CHECK_LIVE_PROCESS.
11929         (Fprocess_input_coding_system): Check whether process is still
11930         alive (fix PR#1061).
11931         (Fprocess_output_coding_system): Ditto.
11932         (Fprocess_coding_system): Ditto.
11933         (Fset_process_input_coding_system): Ditto.
11934         (Fset_process_output_coding_system): Ditto.
11935
11936 2000-01-23  Andy Piper  <andy@xemacs.org>
11937
11938         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
11939         layout and widget.
11940
11941         * glyphs.c (mark_image_instance): take into account changed
11942         image_instance format.
11943         (image_instance_equal): ditto.
11944         (image_instance_hash): ditto.
11945
11946         * glyphs-widget.c (widget_instantiate): Incorporate layout
11947         instantiation here. Delay layout of the layout until later.
11948         (layout_instantiate): deleted.
11949         (layout_query_geometry): new function. get the geometry of a
11950         layout.
11951         (layout_layout): layout a layout dynamically.
11952         (image_instantiator_widget): New function - splitting up
11953         image_instantiator_format_create_glyphs_widget for netwinder
11954         compilation.
11955         (image_instantiator_buttons):
11956         (image_instantiator_edit_fields):
11957         (image_instantiator_combo_box):
11958         (image_instantiator_scrollbar):
11959         (image_instantiator_progress_guage):
11960         (image_instantiator_tree_view):
11961         (image_instantiator_tab_control):
11962         (image_instantiator_labels):
11963         (image_instantiator_layout): ditto.
11964         (image_instantiator_format_create_glyphs_widget): Call preceding
11965         functions.
11966
11967 2000-01-22  Martin Buchholz  <martin@xemacs.org>
11968
11969         * process.c (Fset_process_coding_system):
11970         * device-x.c (Fx_keysym_hash_table):
11971         Docstring fixes.
11972
11973         * lstream.c (Lstream_write): Return documented value, not 0.
11974
11975         * fileio.c (directory_file_name):
11976         (Fsubstitute_in_file_name):
11977         (Fsubstitute_insert_file_contents_internal):
11978         (Fwrite_region_internal):
11979         * emacs.c:
11980         * sysdep.c:
11981         * getloadavg.c:
11982         * systty.h:
11983         Remove vestigial APOLLO-conditional code.
11984
11985 2000-01-21  Martin Buchholz  <martin@xemacs.org>
11986
11987         * getpagesize.h: Add guard macros.
11988         * libsst.h: Add guard macros.
11989         * libst.h: Add guard macros.
11990         * line-number.h: Add guard macros.
11991         * ndir.h: Add guard macros.
11992         * sysfloat.h: Add guard macros.
11993         * sysfile.h: Add guard macros.
11994         * sysproc.h: Add guard macros.
11995         * syswait.h: Add guard macros.
11996         * xintrinsic.h: Add guard macros.
11997         * xintrinsicp.h: Add guard macros.
11998         * xmmanager.h: Add guard macros.
11999         * xmmanagerp.h: Add guard macros.
12000         * xmprimitive.h: Add guard macros.
12001         * xmu.h: Add guard macros.
12002         * gpmevent.h: Add copyright statement. Add guard macros.
12003         * miscplay.h: Add guard macros.
12004         * *.h: Use consistent C-standards-approved guard macro names.
12005
12006         * opaque.c (make_opaque): Switch parameter order.
12007         * opaque.h (make_opaque): Switch parameter order.
12008         Update all callers.
12009         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
12010
12011         * config.h.in (type_checking_assert): Added.
12012         (bufpos_checking_assert): Added.
12013
12014 2000-01-21  Martin Buchholz  <martin@xemacs.org>
12015
12016         * alloc.c: Harmless pdump changes.
12017         - Use countof().
12018         - spell alignment correctly.
12019         * sysdep.c: Use countof()
12020
12021 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12022
12023         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
12024         initially_selected_for_input() console method, default to 0.
12025         (semi_canonicalize_console_connection): Try to delegate to
12026         canonicalize_console_connection if no such console method.
12027         (canonicalize_console_connection): Vice versa.
12028         (print_console): Do not print nil connection.
12029
12030         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
12031         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
12032         (XDEVIMPF_FRAMELESS_OK): Added.
12033         (CONSOLE_INHERITS_METHOD): Added.
12034
12035         * console-msw.c (mswindows_canonicalize_console_connection):
12036         Added.
12037         (mswindows_canonicalize_device_connection): Added.
12038
12039         * console-msw.h (struct msprinter_device): Added this struct and
12040         accessor macros.
12041         (mswindows_device): Made fontlist a lisp object.
12042
12043         * device.c (semi_canonicalize_device_connection):  Try to delegate
12044         to canonicalize_device_connection if no such console method.
12045         (canonicalize_device_connection): Vice versa.
12046         (print_device): Do not print nil connection.
12047
12048         * device-msw.c (mswindows_init_device): Call InitCommonControls
12049         when have widgets.
12050         (mswindows_delete_device): Removed fontlist deallocation.
12051         (mswindows_mark_device): Added.
12052
12053         * events.c (event_equal): Added abort() at unreached code.
12054         (event_hash): Ditto.
12055
12056         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
12057         fallback tags of Windows devices.
12058
12059         * general.c (syms_of_general): Initialized Qmsprinter.
12060
12061         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
12062         of fallback tags of Windows devices.
12063
12064         * lisp.h: Declared Qmsprinter.
12065
12066         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
12067         of strings.
12068         (mswindows_list_fonts): Ditto.
12069         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
12070         that it can be used by both mswindows and msprinter devices.
12071         (initialize_font_instance): Added.
12072         (mswindows_initialize_font_instance): Use it.
12073         (msprinter_initialize_font_instance): Added.
12074
12075         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
12076         and implementation flags check.
12077         (redisplay_without_hooks): Changed the call to the above.
12078         (Fredraw_device): Ditto.
12079         (Fredisplay_device): Ditto.
12080
12081         * redisplay-msw.c (get_frame_dc): Implemented.
12082         (get_frame_compdc): Implemented.
12083         (many functions): Use the two functions above to get device
12084         contexts, ether for a window or a printer.
12085
12086 2000-01-21  Olivier Galibert  <galibert@pobox.com>
12087
12088         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
12089         initialization here.
12090         (init_symbols_once_early): Call it.
12091         * emacs.c (main_1): Call it.
12092         * symsinit.h: Declare it.
12093
12094 2000-01-19  Olivier Galibert  <galibert@pobox.com>
12095
12096         * alloc.c: Use a lrecord_header * in the backtrace instead of a
12097         Lisp_Object.
12098         (pdump_backtrace): Ditto.
12099         (pdump_register_object): Ditto.  Cleanup use of the pointers.
12100         (pdump_get_entry): Abort if trying to register a null pointer.
12101         (pdump_dump_data): Cleanup types when relocating.
12102         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
12103         (pdump_dump_rtables): Remove bad casts.
12104         (pdump_load): Cleanup relocation w.r.t union type.  Use a
12105         Lisp_Object instead of a EMACS_INT for the hashtable
12106         reorganization.
12107
12108 2000-01-20  Martin Buchholz  <martin@xemacs.org>
12109
12110         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
12111
12112         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
12113
12114         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
12115
12116         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
12117
12118 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12119
12120         * faces.h (FACE_STRIKETHRU_P): Added.
12121
12122         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
12123         of font variants.
12124
12125         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
12126         (mswindows_set_dc_font): New function, aware of font variants,
12127         separated from mswindows_update_dc.
12128
12129         * objects-msw.h (struct mswindows_font_instance_data): Added
12130         definition.
12131
12132         * objects-msw.c (mswindows_finalize_font_instance): Delete all
12133         cached fonts and the data structure.
12134         (mswindows_initialize_font_instance): Added creation of font data
12135         structure.
12136         (mswindows_print_font_instance): Print at least something.
12137         (mswindows_create_font_variant): Implemented.
12138         (mswindows_get_hfont): Implemented.
12139
12140 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
12141
12142         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
12143         prototyping problem with msvc.
12144
12145         * emacs.c (main_1): added syms_of_gui_mswindows() call
12146
12147         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
12148         syms_of_gui_mswindows() function
12149
12150         * symsinit.h: added the prototype for syms_of_gui_mswindows()
12151
12152 2000-01-18  Martin Buchholz <martin@xemacs.org>
12153
12154         * XEmacs 21.2.27 is released.
12155
12156 2000-01-18  Martin Buchholz  <martin@xemacs.org>
12157
12158         * glyphs-eimage.c (struct tiff_error_struct):
12159         (tiff_error_func):
12160         (tiff_warning_func):
12161         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
12162
12163         * unexmips.c:
12164         * unexhp9k3.c:
12165         * unexfreebsd.c:
12166         * unexec.c: Remove vestigial Lucid C code.
12167         * unexalpha.c:
12168         * unexaix.c:
12169         * termcap.c:
12170         * libsst.c: Ansify.
12171         Remove declarations of errno and strerror().
12172
12173         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
12174
12175         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
12176
12177 2000-01-16  Martin Buchholz  <martin@xemacs.org>
12178
12179         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
12180         Optimize.
12181
12182 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12183
12184         * md5.c:
12185         * file-coding.c:
12186         * file-coding.h:
12187         Change enum eol_type to eol_type_t.
12188
12189 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12190
12191         * gui.c (get_gui_callback): Check cons before accessing car.
12192
12193 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12194
12195         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
12196         (XSETSPECIFIER_TYPE): Ditto.
12197
12198 2000-01-17  Didier Verna  <didier@xemacs.org>
12199
12200         * redisplay.c (generate_fstring_runes): compute string size in
12201         characters, not bytes.
12202
12203 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
12204
12205         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
12206
12207 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
12208
12209         * print.c (print_error_message): Call print_prepare().
12210
12211 2000-01-14  Martin Buchholz  <martin@xemacs.org>
12212
12213         * .dbxrc: Renamed from dbxrc.
12214
12215         * events.c (event_to_character):
12216         Use `assert (foo)' instead of `if (!foo) abort()'
12217
12218         * .gdbinit (xtype): Add documentation.
12219         * .gdbinit (check-temacs): New function.
12220         * .gdbinit (check-xemacs): New function.
12221         * dbxrc (check-xemacs): New function.
12222         * dbxrc (check-xemacs): New function.
12223
12224 2000-01-14  Andy Piper  <andy@xemacs.org>
12225
12226         * glyphs-widget.c (widget_query_geometry): Make sure that we
12227         calculate default dimensions correctly.
12228
12229 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12230
12231         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
12232
12233         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
12234         pdump_wire'd variable.
12235
12236         * emacs.c: (main_1): Conditionalized calls to
12237         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
12238
12239 2000-01-13  Martin Buchholz  <martin@xemacs.org>
12240
12241         * window.c (Fset_window_configuration):
12242         * sysdep.c (_start):
12243         * input-method-motif.c (res):
12244         * event-Xt.c (Xt_process_to_emacs_event):
12245         Simple compiler warning fixes.
12246
12247         * bytecode.c (funcall_compiled_function): Use the original
12248         function symbol on the backtrace list in preference to the
12249         compiled_function object in error messages.
12250
12251 2000-01-13  Andy Piper  <andy@xemacs.org>
12252
12253         * glyphs-x.c (update_widget_face): Make sure we update the widget
12254         background as well as foreground.
12255
12256 2000-01-13  Andy Piper  <andy@xemacs.org>
12257
12258         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
12259         fields to subwindow.
12260         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
12261         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
12262         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
12263         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
12264
12265         * glyphs-widget.c (check_valid_tab_orientation): new function.
12266         (initialize_widget_image_instance): zero orientation and
12267         justification.
12268         (widget_instantiate): pick up orientation.
12269         (tab_control_query_geometry): return appropriate values for
12270         vertical tabs.
12271
12272         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
12273         appropriate creation flags for left, right and bottom tabs.
12274
12275         * s/cygwin32.h: add tab definitions.
12276
12277 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12278
12279         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
12280         frame upon hiding a subwindow.
12281         (mswindows_button_instantiate): Changed the push button style to
12282         BS_PUSHBUTTON.
12283         (mswindows_button_instantiate): Removed button BS_NOTIFY
12284         style.
12285         (mswindows_button_instantiate): Removed redundant check for
12286         a disabled gui item.
12287         (mswindows_button_instantiate): Made use of WS_TABSTOP
12288         consistent: "operable" controls (edit, button, tree, scroll) have
12289         this style, "display-only" ones (static, progress gauge) do
12290         not. This style is currently ignored by XEmacs though. Also,
12291         removed the WS_EX_CONTROLPARENT style - it is not for children,
12292         it is for their parents!
12293         (mswindows_edit_field_instantiate): Ditto.
12294         (mswindows_progress_gauge_instantiate): Ditto.
12295         (mswindows_tree_view_instantiate): Ditto.
12296         (mswindows_tab_control_instantiate): Ditto.
12297         (mswindows_scrollbar_instantiate): Ditto.
12298         (mswindows_combo_box_instantiate): Ditto.
12299         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
12300         style to the "clip" window.
12301         (mswindows_button_instantiate): Removed compilation warning by
12302         equally typing terms of the ?: operator.
12303
12304 2000-01-12  Didier Verna  <didier@xemacs.org>
12305
12306         * redisplay.c (generate_fstring_runes): new parameter holding the
12307         last modeline-format extent.
12308         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
12309         extent, fill the glyph block with it.
12310         (generate_fstring_runes): handle these parameters.
12311         (generate_formatted_string_db): ditto.
12312
12313         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
12314         glyphs'extents in the modeline.
12315
12316 1999-01-11  Mike Woolley  <mike@bulsara.com>
12317
12318         * ntheap.c: Reduced the reserved heap space from 1Gb down to
12319         256Mb, as a workaround for the non-starting problem many people
12320         have experienced.
12321
12322 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12323
12324         * console-tty.c (Fset_console_tty_output_coding_system):
12325         Force redrawing tty frame.
12326
12327 2000-01-10  Didier Verna  <didier@xemacs.org>
12328
12329         * redisplay.c (generate_fstring_runes): fix size computation bug.
12330
12331 2000-01-09  William M. Perry <wmperry@aventail.com>
12332
12333         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
12334
12335 2000-01-09  Andy Piper  <andy@xemacs.org>
12336
12337         * glyphs-msw.c: index -> i to avoid shadows.
12338         (xbm_create_bitmap_from_data): make static.
12339         (check_valid_string_or_int): deleted.
12340         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
12341
12342         * glyphs-x.c (x_update_subwindow): remove unused args.
12343
12344         * glyphs.c (glyph_image_instance): return the thing. Don't set the
12345         back pointer - this is done in allocate_image_instance.
12346         (query_string_font): return Qnil to make the compiler happy.
12347         (unmap_subwindow): set to ~0 to make the compiler happy.
12348         (glyph_query_geometry): comment out until used.
12349         (glyph_layout): ditto.
12350
12351 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
12352
12353         * insdel.c (signal_after_change): Remove extraneous unbind_to().