afce8fdfd34daad1f9e9e8d36e24cd8e7e7466b2
[chise/xemacs-chise.git] / src / ChangeLog
1 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * mule-charset.c (range_charset_code_point): Fixed.
4
5 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
6
7         * mule-charset.c (decode_builtin_char): Change semantics of
8         code-offset of coded-charset.
9         (charset_code_point): Likewise.
10         (range_charset_code_point): Likewise.
11         (complex_vars_of_mule_charset): Modify for the change.
12
13 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
14
15         * mule-charset.c (Fencode_char): Reverse arguments.
16
17         * mule-charset.c (charset_code_point): Fixed.
18
19 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
20
21         * mule-charset.c (Vcharset_mojikyo): Deleted.
22         (Vcharset_mojikyo_2022_1): Deleted.
23         (Vcharset_mojikyo_pj_{1..21}): Deleted.
24         (Qmin_code): New variable in UTF-2000.
25         (Qmax_code): Likewise.
26         (Qmother): Likewise.
27         (Qconversion): Likewise.
28         (Q94x60): Likewise.
29         (Qmojikyo): Deleted.
30         (Qmojikyo_2022_1): Deleted.
31         (Qmojikyo_pj_{1..22}): Deleted.
32         (mark_charset): Mark `cs->mother'.
33         (charset_description): Add description for `mother'.
34         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
35         new arguments `mother' and `conversion'; use
36         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
37         (charset_code_point): Moved from char-ucs.h; support `mother'
38         charset feature.
39         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
40         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
41         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
42         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
43         allow 2 as the value of `graphic' in UTF-2000; add new properties
44         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
45         require `final' in UTF-2000; modify for `make_charset'.
46         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
47         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
48         (Fcharset_property): Support `mother', `min-code' and `max-code'.
49         (Fencode_char): New function.
50         (syms_of_mule_charset): Add new builtin function `encode-char' in
51         UTF-2000; add new symbols `min-code', `max-code', `mother',
52         `conversion' and `94x60'; delete symbols `mojikyo',
53         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
54         (complex_vars_of_mule_charset): Modify for `make_charset' change;
55         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
56         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
57
58         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
59         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
60
61         * char-ucs.h (Vcharset_mojikyo): Deleted.
62         (Vcharset_mojikyo_2022_1): Deleted.
63         (LEADING_BYTE_MOJIKYO): Deleted.
64         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
65         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
66         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
67         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
68         add new member `mother'; add new member `conversion'.
69         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
70         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
71         (CHARSET_MOTHER): New macro.
72         (CHARSET_CONVERSION): New macro.
73         (CONVERSION_IDENTICAL): New macro.
74         (CONVERSION_94x60): New macro.
75         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
76         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
77         (XCHARSET_MOTHER): New macro.
78         (XCHARSET_CONVERSION): New macro.
79         (MIN_CHAR_MOJIKYO): Deleted.
80         (MAX_CHAR_MOJIKYO): Deleted.
81         (DECODE_MOJIKYO_2022): Deleted.
82         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
83         (charset_code_point): Changed to non-inline function.
84         (encode_char_1): Use `charset_code_point'.
85         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
86
87 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
88
89         * lread.c (read_compiled_function): Fix prototype.
90         (read_vector): Likewise.
91
92 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
93
94         * lrecord.h (struct lrecord_header): Delete `older'.
95         (set_lheader_implementation): Delete code for `older'.
96         (set_lheader_older_implementation): Deleted.
97         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
98         (OLDER_RECORD_P): Deleted.
99         (OLDER_RECORD_HEADER_P): Deleted.
100         (alloc_older_lcrecord): Deleted.
101         (alloc_older_lcrecord_type): Deleted.
102
103         * alloc.c (all_older_lcrecords): Deleted.
104         (alloc_older_lcrecord): Deleted.
105         (disksave_object_finalization_1): Delete code for older objects.
106         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
107         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
108
109 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
110
111         * mule-charset.c (decoding_table_put_char): Use `make_vector'
112         instead of `make_older_vector'.
113         (put_char_ccs_code_point): Likewise.
114         (mark_charset): Mark `cs->decoding_table'.
115         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
116
117         * lisp.h (make_older_vector): Deleted.
118         (make_vector_newer): Deleted.
119
120         * config.h.in (HAVE_GGC): Deleted.
121
122         * alloc.c (make_older_vector): Deleted.
123         (make_vector_newer_1): Deleted.
124         (make_vector_newer): Deleted.
125
126 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
127
128         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
129         (Qideograph_daikanwa_2): New variable.
130         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
131         (complex_vars_of_mule_charset): Add new coded-charset
132         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
133         `LEADING_BYTE_DAIKANWA'.
134
135         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
136         (LEADING_BYTE_DAIKANWA_1): New macro.
137         (LEADING_BYTE_DAIKANWA_2): New macro.
138         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
139
140 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
141
142         * mule-charset.c (complex_vars_of_mule_charset): Change
143         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
144         the second revised version.
145
146 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
147
148         * mule-charset.c (Vcharset_ucs_smp): New variable.
149         (Vcharset_ucs_sip): New variable.
150         (Qucs_smp): New variable.
151         (Qucs_sip): New variable.
152         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
153         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
154         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
155         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
156         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
157         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
158
159         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
160         (LEADING_BYTE_UCS_SIP): New macro.
161         (MIN_CHAR_SMP): New macro.
162         (MAX_CHAR_SMP): New macro.
163         (MIN_CHAR_SIP): New macro.
164         (MAX_CHAR_SIP): New macro.
165
166 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
167
168         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
169         utf-2000.
170
171 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
172
173         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
174         value; don't store value into `encoding_table' of `Lisp_Charset'.
175         (mark_charset): `encoding_table' was deleted.
176         (charset_description): Likewise.
177         (make_charset): Likewise.
178         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
179         `put_char_ccs_code_point'.
180
181         * chartab.h (Fput_char_attribute): New EXFUN.
182
183         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
184         is unified with normal symbol space.
185         (Fget_char_attribute): Likewise.
186         (Fput_char_attribute): Likewise; behavior of
187         `put_char_ccs_code_point' is changed.
188
189         * char-ucs.h: Include "elhash.h".
190         (Vchar_attribute_hash_table): New external variable.
191         (struct Lisp_Charset): Delete `encoding_table'.
192         (CHARSET_ENCODING_TABLE): New implementation; refer
193         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
194         `Lisp_Charset'.
195
196 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
197
198         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
199         (cs) == 0.
200
201 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
202
203         * text-coding.c (char_encode_big5): Prefer charset-g1 than
204         `chinese-big5'.
205
206 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
207
208         * chartab.c (uint8_byte_table_description): New constant.
209         (uint8-byte-table): Use `uint8_byte_table_description'.
210         (uint16_byte_table_description): New constant.
211         (uint16-byte-table): Use `uint16_byte_table_description'.
212
213 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
214
215         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
216         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
217
218 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
219
220         * mule-charset.c (Vcharset_ucs_ks): New variable.
221         (Qucs_ks): New variable.
222         (syms_of_mule_charset): Add new symbol `ucs-ks'.
223         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
224
225         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
226
227 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
228
229         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
230         (Fdecode_char): Likewise.
231
232         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
233         chartab.h.
234         (Fdefine_char): Modify for Fdecode_char.
235         (Ffind_char): Likewise.
236
237         * mule-charset.c (Fdecode_char): Add new optional argument
238         `defined-only'.
239         (Fdecode_builtin_char): Modify for `Fdecode_char'.
240
241 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
242
243         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
244         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
245         (allocate_coding_system): Initialize initial-charsets of
246         CODESYS_BIG5 in XEmacs UTF-2000.
247         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
248         CODESYS_BIG5 in XEmacs UTF-2000.
249         (decode_coding_big5): Use initial-charset-g0 and -g1 of
250         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
251
252         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
253         variables.
254         (Qideograph_hanziku_{1 .. 12}): Likewise.
255         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
256         .. 12}'.
257         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
258         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
259         `ideograph-hanziku-{1 .. 12}'.
260
261         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
262         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
263         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
264         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
265         (DECODE_DEFINED_CHAR): New inline function.
266         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
267
268 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
269
270         * mule-charset.c (Vcharset_china3_jef): Renamed from
271         `Vcharset_japanese_jef_china3'.
272         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
273         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
274         `{MIN|MAX}_CHAR_JEF_CHINA3'..
275         (syms_of_mule_charset): Rename `china3-jef' from
276         `japanese-jef-china3'.
277         (complex_vars_of_mule_charset): Likewise; rename
278         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
279
280         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
281         `LEADING_BYTE_JEF_CHINA3'.
282         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
283         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
284
285 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
286
287         * mule-charset.c (encode_builtin_char_1): Comment out special code
288         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
289
290         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
291         (MAX_CHAR_MOJIKYO_0): Comment out.
292         (MIN_CHAR_CBETA): Changed to 0x00E20000.
293         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
294         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
295         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
296
297 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
298
299         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
300         (Qideograph_cbeta): New variable.
301         (encode_builtin_char_1): Comment out special code for
302         coded-charset `mojikyo' and `japanese-jef-china3'.
303         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
304         (complex_vars_of_mule_charset): Add new coded-charset
305         `ideograph-cbeta'.
306
307         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
308         (MIN_CHAR_CBETA): New macro.
309         (MAX_CHAR_CBETA): New macro.
310
311 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
312
313         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
314         (LEADING_BYTE_JEF_CHINA3): New macro.
315         (MIN_CHAR_JEF_CHINA3): New macro.
316         (MAX_CHAR_JEF_CHINA3): Likewise.
317         (DECODE_CHAR): Fixed.
318
319 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
320
321         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
322         (Qjapanese_jef_china3): New variable.
323         (encode_builtin_char_1): Support `japanese-jef-china3'.
324         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
325         (complex_vars_of_mule_charset): Add new coded-charset
326         `japanese-jef-china3'.
327
328 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
329
330         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
331         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
332         94^4, 96^3, 96^4, 128^n and 256^n set.
333         (put_char_table): Use `XCHARSET_CELL_RANGE'.
334         (map_char_table): Likewise.
335
336 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
337
338         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
339         UTF-2000.
340
341 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
342
343         * chartab.h (get_char_id_table): New inline function.
344
345         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
346         function.
347
348 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
349
350         * chartab.h (decode_char_table_range): New prototype in XEmacs
351         UTF-2000.
352         (put_char_id_table): New inline function in XEmacs UTF-2000.
353
354         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
355         function.
356         (decode_char_table_range): Delete static declaration in XEmacs
357         UTF-2000.
358
359 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
360
361         * chartab.c (put_char_id_table): Use `put_char_table'.
362
363 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
364
365         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
366         (map_over_uint16_byte_table): Likewise.
367         (map_over_byte_table): Likewise.
368         (map_char_table): Modify for `map_over_uint8_byte_table',
369         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
370         UTF-2000.
371
372 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
373
374         * chartab.c (struct map_char_table_for_charset_arg): New
375         structure.
376         (map_char_table_for_charset_fun): New function.
377         (map_char_table): Use `map_char_table' for encoding_table of
378         `range->charset'.
379
380 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
381
382         * chartab.c (map_char_table): Check a character is found in
383         range->charset instead of non default value is defined in
384         char-table when range is CHARTAB_RANGE_ROW.
385
386 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
387
388         * chartab.c (map_char_id_table): Deleted.
389         (Fmap_char_attribute): Use `map_char_table' instead of
390         `map_char_id_table'.
391
392 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
393
394         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
395         UTF-2000.
396         (update_syntax_table): Deleted in XEmacs UTF-2000.
397
398         * syntax.c (find_defun_start): Use `syntax_table' instead of
399         `mirror_syntax_table' in XEmacs UTF-2000.
400         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
401         UTF-2000.
402         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
403         XEmacs UTF-2000.
404         (Fmatching_paren): Likewise.
405         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
406         in XEmacs UTF-2000.
407         (find_start_of_comment): Likewise.
408         (find_end_of_comment): Likewise.
409         (Fforward_comment): Likewise.
410         (scan_lists): Likewise.
411         (char_quoted): Likewise.
412         (Fbackward_prefix_chars): Likewise.
413         (scan_sexps_forward): Likewise.
414         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
415         (update_syntax_table): Likewise.
416
417         * search.c (skip_chars): Use `syntax_table' instead of
418         `mirror_syntax_table' in XEmacs UTF-2000.
419         (wordify): Likewise.
420         (Freplace_match): Likewise.
421
422         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
423         `mirror_syntax_table' in XEmacs UTF-2000.
424         (WORDCHAR_P_UNSAFE): Likewise.
425         (re_match_2_internal): Likewise.
426
427         * font-lock.c (find_context): Use `buf->syntax_table' instead of
428         `buf->mirror_syntax_table' in XEmacs UTF-2000.
429
430         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
431         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
432
433         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
434         XEmacs UTF-2000.
435
436         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
437         UTF-2000.
438         (print_char_table): Print `default_value' in XEmacs UTF-2000.
439         (char_table_description): Delete `mirror_table' in XEmacs
440         UTF-2000.
441         (fill_char_table): Don't call `update_syntax_table' in XEmacs
442         UTF-2000.
443         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
444         (Fcopy_char_table): Likewise.
445         (put_char_table): Don't call `update_syntax_table' in XEmacs
446         UTF-2000.
447
448         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
449         `buf->mirror_syntax_table' in XEmacs UTF-2000.
450         (casify_region_internal): Likewise.
451
452         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
453
454         * buffer.c (common_init_complex_vars_of_buffer): Don't use
455         `mirror_syntax_table' in XEmacs UTF-2000.
456
457         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
458         `buf->mirror_syntax_table' in XEmacs UTF-2000.
459         (Fexpand_abbrev): Likewise.
460
461 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
462
463         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
464
465 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
466
467         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
468         (map_over_uint16_byte_table): Likewise.
469         (map_over_byte_table): Likewise.
470         (get_char_id_table): Refer `cit->default_value'.
471         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
472         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
473         of character-id ranges.
474         (mark_char_table): Mark `ct->default_value'.
475         (char_table_description): Add `default_value'.
476         (fill_char_table): Use `default_value'.
477         (decode_char_table_range): Decode `nil' as
478         `CHARTAB_RANGE_DEFAULT'.
479         (get_char_id_table): Refer `cit->default_value'.
480         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
481         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
482         temporary hack; check value of char-table is bound or not.
483         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
484
485         * chartab.h (struct Lisp_Char_Table): Add new member
486         `default_value' in XEmacs UTF-2000.
487         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
488         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
489         UTF-2000.
490
491 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
492
493         * chartab.h (Lisp_Char_ID_Table): Deleted.
494
495         * chartab.c (char_table_description): Fix typo.
496         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
497         `Lisp_Char_ID_Table'.
498
499 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
500
501         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
502         `CHAR_ID_TABLE_P'.
503
504         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
505         `CHAR_ID_TABLE_P'.
506
507         * chartab.h (XCHAR_ID_TABLE): Deleted.
508         (XSETCHAR_ID_TABLE): Deleted.
509         (CHAR_ID_TABLE_P): Deleted.
510
511         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
512         `CHAR_ID_TABLE_P'.
513         (Fget_composite_char): Likewise.
514         (put_char_table): Likewise.
515         (add_char_attribute_alist_mapper): Fixed.
516         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
517         `CHAR_ID_TABLE_P'.
518         (Fget_char_attribute): Likewise.
519         (Fget_char_attribute): Likewise.
520         (Fmap_char_attribute): Likewise.
521
522         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
523         `CHAR_ID_TABLE_P'.
524         (encode_char_1): Likewise.
525
526 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
527
528         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
529         `XCHAR_ID_TABLE'.
530
531         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
532         instead of `XCHAR_ID_TABLE'.
533         (remove_char_ccs): Likewise.
534
535         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
536         `XCHAR_ID_TABLE'.
537         (Fget_composite_char): Likewise.
538         (Fchar_variants): Likewise.
539         (put_char_table): Likewise.
540         (add_char_attribute_alist_mapper): Likewise.
541         (Fchar_attribute_alist): Likewise.
542         (Fget_char_attribute): Likewise.
543         (Fput_char_attribute): Likewise.
544         (Fmap_char_attribute): Likewise.
545         (Fmap_char_attribute): Likewise.
546
547         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
548         `XCHAR_ID_TABLE'.
549         (encode_char_1): Likewise.
550
551 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
552
553         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
554         `Lisp_Char_ID_Table'.
555         (mark_char_id_table): Deleted.
556         (print_char_id_table): Likewise.
557         (char_id_table_equal): Likewise.
558         (char_id_table_hash): Likewise.
559         (char_id_table_description): Likewise.
560         (char_id_table): Likewise.
561         (make_char_id_table): Use `Fmake_char_table' and
562         `fill_char_table'.
563         (get_char_id_table): Use `Lisp_Char_Table' instead of
564         `Lisp_Char_ID_Table'.
565         (put_char_id_table): Likewise.
566         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
567         `XCHAR_ID_TABLE'.
568         (Fremove_char_attribute): Likewise.
569         (syms_of_chartab): Don't define type `char-id-table'.
570
571         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
572         (char_id_table): Likewise.
573         (GC_CHAR_ID_TABLE_P): Likewise.
574         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
575         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
576         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
577         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
578         (get_char_id_table): Use `Lisp_Char_Table' instead of
579         `Lisp_Char_ID_Table'.
580         (put_char_id_table_0): Likewise.
581         (put_char_id_table): Likewise.
582
583 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
584
585         * chartab.h: Lisp_Byte_Table related codes are moved from
586         chartab.h.
587
588         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
589
590 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
591
592         * chartab.h: Don't include "chartab.h".
593         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
594         (Lisp_Char_ID_Table): Likewise.
595         (char_id_table): Likewise.
596         (XCHAR_ID_TABLE): Likewise.
597         (XSETCHAR_ID_TABLE): Likewise.
598         (CHAR_ID_TABLE_P): Likewise.
599         (GC_CHAR_ID_TABLE_P): Likewise.
600         (get_char_id_table): Likewise.
601
602         * char-ucs.h: Include "chartab.h".
603         (struct Lisp_Char_ID_Table): Moved to chartab.h.
604         (Lisp_Char_ID_Table): Likewise.
605         (char_id_table): Likewise.
606         (XCHAR_ID_TABLE): Likewise.
607         (XSETCHAR_ID_TABLE): Likewise.
608         (CHAR_ID_TABLE_P): Likewise.
609         (GC_CHAR_ID_TABLE_P): Likewise.
610         (get_char_id_table): Likewise.
611
612 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
613
614         * chartab.c (copy_uint8_byte_table): New function.
615         (copy_uint16_byte_table): New function.
616         (copy_byte_table): New function.
617         (map_over_uint8_byte_table): Modify to avoid huge numbers of
618         characters to call.
619         (map_over_uint16_byte_table): Likewise.
620         (map_over_byte_table): Likewise.
621         (get_byte_table): Move prototype to chartab.h.
622         (put_byte_table): Likewise.
623         (put_char_id_table_0): Moved to chartab.h.
624         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
625         (char_table_entry_equal): Likewise.
626         (char_table_entry_hash): Likewise.
627         (char_table_entry_description): Likewise.
628         (char_table_entry): Likewise.
629         (make_char_table_entry): Likewise.
630         (copy_char_table_entry): Likewise.
631         (get_non_ascii_char_table_value): Likewise.
632         (map_over_charset_ascii): Likewise.
633         (map_over_charset_control_1): Likewise.
634         (map_over_charset_row): Likewise.
635         (map_over_other_charset): Likewise.
636         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
637         (print_char_table): Likewise.
638         (char_table_equal): Likewise.
639         (char_table_hash): Likewise.
640         (char_table_description): Likewise.
641         (fill_char_table): Likewise.
642         (Fcopy_char_table): Likewise.
643         (get_char_table): Likewise.
644         (Fget_range_char_table): Likewise.
645         (put_char_table): Likewise.
646         (map_char_table): Likewise.
647         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
648         UTF-2000.
649
650 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
651
652         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
653         `Vauto_fill_chars' in XEmacs UTF-2000.
654
655         * chartab.h (get_byte_table): New prototype [moved from
656         chartab.c].
657         (put_byte_table): Likewise [moved from chartab.c].
658         (put_char_id_table_0): New inline function [moved from chartab.c].
659         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
660         (Lisp_Char_Table_Entry): Likewise.
661         (char_table_entry): Likewise.
662         (XCHAR_TABLE_ENTRY): Likewise.
663         (XSETCHAR_TABLE_ENTRY): Likewise.
664         (CHAR_TABLE_ENTRYP): Likewise.
665         (CHECK_CHAR_TABLE_ENTRY): Likewise.
666         (NUM_ASCII_CHARS): Likewise.
667         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
668         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
669
670 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
671
672         * chartab.c (get_char_id_table): Change interface.
673         (put_char_id_table_0): New function.
674         (put_char_id_table): Change interface; new implementation.
675         (Fget_composite_char): Modify for interface change of
676         `get_char_id_table'.
677         (Fchar_variants): Likewise.
678         (add_char_attribute_alist_mapper): Likewise.
679         (Fchar_attribute_alist): Likewise.
680         (Fget_char_attribute): Likewise.
681         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
682         as same as character as the first argument like `put-char-table';
683         modify for interface change of `put_char_id_table'.
684         (Fremove_char_attribute): Modify for interface change of
685         `put_char_id_table'.
686
687 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
688
689         * text-coding.c: Sync up with XEmacs 21.2.41.
690         (COMPOSE_ADD_CHAR): Modify for interface change of
691         `get_char_id_table'.
692
693         * mule-charset.c (put_char_ccs_code_point): Modify for interface
694         change of `put_char_id_table'.
695         (remove_char_ccs): Likewise.
696
697         * chartab.h (put_char_id_table): Change interface.
698
699         * char-ucs.h (get_char_id_table): Change interface.
700         (charset_code_point): Modify for interface change of
701         `get_char_id_table'.
702         (encode_char_1): Likewise.
703
704 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
705
706         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
707         argument `ccs'.
708         (map_over_uint16_byte_table): Likewise.
709         (map_over_byte_table): Likewise.
710         (map_char_id_table): Add new argument `range' like
711         `map_char_table'.
712         (Fmap_char_attribute): Add new argument `range' like
713         `Fmap_char_table'.
714
715 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
716
717         * chartab.c (map_over_uint8_byte_table): Change interface of
718         mapping function to use struct chartab_range instead of Emchar.
719         (map_over_uint16_byte_table): Likewise.
720         (map_over_byte_table): Likewise.
721         (map_char_id_table): Likewise.
722         (struct slow_map_char_id_table_arg): Deleted.
723         (slow_map_char_id_table_fun): Deleted.
724         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
725         function `slow_map_char_table_fun' instead of struct
726         `slow_map_char_id_table_arg' and function
727         `slow_map_char_id_table_fun'.
728
729 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
730
731         * mule-charset.c: Move char-it-table related codes to chartab.c.
732         (Vutf_2000_version): Moved to chartab.c.
733         (Fdefine_char): Likewise.
734         (Ffind_char): Likewise.
735         (syms_of_mule_charset): Move types `uint8-byte-table',
736         `uint16-byte-table', `byte-table' and `char-id-table' to
737         chartab.c; move functions `char_attribute_list,
738         `find_char_attribute_table, `char_attribute_alist,
739         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
740         `map_char_attribute, `define_char, `find_char, `char_variants and
741         `get_composite_char to chartab.c; move symbols `=>ucs',
742         `->decomposition', `compat', `isolated', `initial', `medial',
743         `final', `vertical', `noBreak', `fraction', `super', `sub',
744         `circle', `square', `wide', `narrow', `small' and `font' to
745         chartab.c.
746         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
747         setting codes for `Vcharacter_composition_table' and
748         `Vcharacter_variant_table' to chartab.c.
749         (complex_vars_of_mule_charset): Move setting code for
750         `Vchar_attribute_hash_table' to chartab.c.
751
752         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
753         (make_char_id_table): New prototype.
754         (put_char_id_table): Likewise.
755         (Fget_char_attribute): Likewise.
756
757         * chartab.c: Move char-id-table related code from mule-charset.c.
758         (Vutf_2000_version): Moved from mule-charset.c.
759
760         * char-ucs.h (Qucs): New external variable.
761         (put_char_ccs_code_point): New prototype.
762         (remove_char_ccs): Likewise.
763
764 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
765
766         * mule-charset.c (Vcharset_ucs_jis): New variable.
767         (Qucs_jis): Likewise.
768         (syms_of_mule_charset): Add new symbol `ucs-jis'.
769         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
770
771         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
772
773 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
774
775         * mule-charset.c (map_over_uint8_byte_table): New function.
776         (map_over_uint16_byte_table): Likewise.
777         (map_over_byte_table): Likewise.
778         (map_char_id_table): Likewise.
779         (slow_map_char_id_table_fun): Likewise.
780         (Fmap_char_attribute): Likewise.
781         (syms_of_mule_charset): Add new function `map-char-attribute'.
782
783 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
784
785         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
786         (syms_of_mule_charset): Add new function `find-char'.
787
788 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
789
790         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
791         XEmacs UTF-2000.
792         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
793         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
794         XEmacs UTF-2000.
795         (complex_vars_of_mule_charset): Add new coded-charset
796         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
797         `ideograph-gt-pj-*'.
798
799         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
800
801 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
802
803         * mule-charset.c (encode_builtin_char_1): Purge codes about
804         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
805         {MIN|MAX}_CHAR_HEBREW.
806         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
807         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
808
809         * char-ucs.h (MIN_CHAR_GREEK): Purged.
810         (MAX_CHAR_GREEK): Purged.
811         (MIN_CHAR_CYRILLIC): Purged.
812         (MAX_CHAR_CYRILLIC): Purged.
813         (MIN_CHAR_HEBREW): Commented out.
814         (MAX_CHAR_HEBREW): Likewise.
815
816 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
817
818         * mule-charset.c (Qto_ucs): New variable.
819         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
820         (Fdefine_char): Likewise.
821         (syms_of_mule_charset): Add new symbol `=>ucs'.
822
823 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
824
825         * mule-charset.c (Fdecode_char): Fixed.
826
827 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
828
829         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
830         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
831         "tcvn5712-1".
832
833 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
834
835         * mule-charset.c (Vcharset_ucs_big5): New variable.
836         (Qucs_big5): Likewise.
837         (syms_of_mule_charset): Add new symbol `ucs-big5'.
838         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
839
840         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
841
842 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
843
844         * mule-charset.c (decode_builtin_char): Check Big5 code range
845         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
846
847 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
848
849         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
850         (Qchinese_gb12345): Likewise.
851         (Fdecode_builtin_char): Fixed.
852         (syms_of_mule_charset): Add `chinese-gb12345'.
853         (complex_vars_of_mule_charset): Add coded-charset
854         `chinese-gb12345'.
855
856         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
857         (LEADING_BYTE_CHINESE_GB12345): New macro.
858
859 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
860
861         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
862         and `latin-viscii-upper' for `latin-viscii'.
863
864 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
865
866         * mule-charset.c (Fdecode_builtin_char): Comment out
867         regularization code for ISO-IR GR representation.
868
869 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
870
871         * mule-charset.c (decode_builtin_char): New function; renamed from
872         `make_builtin_char'; return -1 instead of signal.
873         (Fdecode_builtin_char): Use `decode_builtin_char'.
874
875         * char-ucs.h (decode_builtin_char): New prototype; renamed from
876         `make_builtin_char'.
877         (DECODE_CHAR): Use `decode_builtin_char' instead of
878         `make_builtin_char'; use mapping table of `chinese-big5' for
879         `chinese-big5-{1,2}'.
880
881 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
882
883         * text-coding.c (char_encode_big5): New function.
884         (char_finish_big5): Likewise.
885         (reset_encoding_stream): Use `char_encode_big5' and
886         `char_finish_big5' for CODESYS_BIG5.
887         (mule_encode): Don't use `encode_coding_big5'.
888         (encode_coding_big5): Deleted.
889
890 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
891
892         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
893         0x81- in XEmacs UTF-2000.
894         (detect_coding_big5): Likewise.
895
896 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
897
898         * mule-charset.c (Fdefine_char): Don't use a CCS property to
899         generate character-id if the CCS property does not have
900         corresponding predefined character.
901         (make_builtin_char): Return -1 if corresponding predefined
902         character is not found.
903         (Fdecode_char): Return nil if corresponding character is not
904         found.
905         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
906         don't map to builtin ucs space.
907
908 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
909
910         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
911         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
912
913 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
914
915         * mule-charset.c (Vcharset_ideograph_gt): New variable.
916         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
917         (Qideograph_gt): Likewise.
918         (Qideograph_gt_pj_{1..11}): Likewise.
919         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
920         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
921         `ideograph-gt-pj-11'.
922         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
923         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
924         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
925
926         * char-ucs.h (LEADING_BYTE_GT): New macro.
927         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
928         (MIN_CHAR_GT): Likewise.
929         (MAX_CHAR_GT): Likewise.
930
931 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
932
933         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
934         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
935
936         * doprnt.c (unsigned_int_converters): Add `c'.
937         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
938
939         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
940         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
941         `MIN_CHAR_MOJIKYO'.
942         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
943         (MAX_CHAR_MOJIKYO_0): New macro.
944         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
945
946 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
947
948         * mule-charset.c (Fdefine_char): Delete cemented out code.
949         (encode_builtin_char_1): Modify for new allocation of builtin
950         Mojikyo characters.
951
952         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
953
954 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
955
956         * mule-charset.c (Vcharset_ucs_cns): New variable.
957         (Qucs_cns): New variable.
958         (syms_of_mule_charset): Add new symbol `ucs-cns'.
959         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
960
961 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
962
963         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
964
965 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
966
967         * search.c (search_buffer): Make `charset_base_code' as
968         character-id >> 6 to eliminate the corresponding last byte in
969         UTF-8 representation [I'm not sure it is right thing].
970         (boyer_moore): Likewise.
971
972 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
973
974         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
975         representation in MULE.
976
977 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
978
979         * text-coding.c (Fmake_coding_system): Use
980         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
981         `EXTERNAL_PROPERTY_LIST_LOOP'.
982
983 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
984
985         * text-coding.c (decode_output_utf8_partial_char): New function.
986         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
987
988 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
989
990         * text-coding.c (decode_coding_utf8): Output original byte
991         sequence if it is broken; change order of conditions.
992
993         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
994         of conditions.
995
996         * mb-multibyte.h (BYTE_ASCII_P):
997         Use bit ops for char-signedness safety.
998         (BYTE_C0_P): Use bit ops for char-signedness safety.
999         (BYTE_C1_P): Use bit ops for char-signedness safety.
1000
1001         * character.h: (XCHAR_OR_CHAR_INT):
1002         Always use inline function.
1003         Remove redundant type checking assert() - XINT will abort quite
1004         nicely.
1005
1006 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1007
1008         * text-coding.c: (Fencode_shift_jis_char):
1009         (Fencode_big5_char):
1010         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
1011         Replace 0 with '\0' when working with bytes.
1012         Replace initial "(" with "\(" in docstrings.
1013
1014         (Fmake_coding_system):
1015         When type is ccl and value is vector, register it with a proper
1016         symbol.  And checks whether the given ccl program is valid.
1017         (mule_decode): When calling ccl_driver, if src indicates
1018         NULL pointer, set an empty string instead.
1019         (mule_encode): Likewise.
1020
1021         (detect_eol_type):
1022         (detect_coding_sjis):
1023         (decode_coding_sjis):
1024         (detect_coding_big5):
1025         (decode_coding_big5):
1026         (detect_coding_ucs4):
1027         (decode_coding_ucs4):
1028         (detect_coding_utf8):
1029         (decode_coding_utf8):
1030         (detect_coding_iso2022):
1031         (decode_coding_iso2022):
1032         (decode_coding_no_conversion):
1033         (mule_decode):
1034         Make all detecting and decoding functions take an Extbyte * arg.
1035         (text_encode_generic):
1036         (encode_coding_big5):
1037         (encode_coding_no_conversion):
1038         (mule_encode):
1039         Make all encoding functions take a Bufbyte * arg.
1040         Use size_t instead of unsigned int for memory sizes.
1041         Only cast to unsigned char whenever dereferencing Extbyte *.
1042
1043         (struct lrecord_description fcd_description_1): Use countof.
1044         (complex_vars_of_file_coding):
1045         Use countof instead of sizeof.
1046         Use CHECK_NATNUM instead of CHECK_INT.
1047
1048 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1049
1050         * mule-charset.c (Fget_char_attribute): Add new optional argument
1051         `default-value'.
1052         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
1053         (remove_char_ccs): Likewise.
1054
1055 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1056
1057         * text-coding.c (char_encode_shift_jis): New implementation in
1058         UTF-2000.
1059         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
1060         ...)'.
1061
1062         * mule-charset.c (Vcharset_chinese_big5): New variable in
1063         UTF-2000.
1064         (Qchinese_big5): New variable in UTF-2000.
1065         (BIG5_SAME_ROW): New macro in UTF-2000.
1066         (make_builtin_char): Use builtin characters of
1067         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
1068         characters of `Vcharset_chinese_big5'.
1069         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
1070         (complex_vars_of_mule_charset): Add new coded-charset
1071         `chinese-big5' in UTF-2000.
1072
1073         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
1074         (Vcharset_chinese_big5): New external variable declaration.
1075         (Vcharset_japanese_jisx0208_1990): Likewise.
1076
1077 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1078
1079         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
1080         function.
1081         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
1082
1083 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1084
1085         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
1086         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
1087         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
1088         `mojikyo-pj-*'.
1089
1090 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1091
1092         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
1093
1094 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1095
1096         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1097         to 0.17.
1098
1099 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1100
1101         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
1102         for `CHARSET_BY_ATTRIBUTES'.
1103         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1104         `CHARSET_BY_ATTRIBUTES'.
1105
1106         * text-coding.c (struct decoding_stream): Rename member `CH' to
1107         `CPOS'.
1108         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
1109         (decode_coding_sjis): Likewise.
1110         (decode_coding_big5): Likewise.
1111         (decode_coding_ucs4): Likewise.
1112         (decode_coding_utf8): Likewise.
1113         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1114         `CHARSET_BY_ATTRIBUTES'.
1115         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
1116         `str->counter'; decode 3, 4 bytes sets.
1117         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
1118         sets.
1119         (decode_coding_no_conversion): Use `str->cpos' instead of
1120         `str->ch'.
1121
1122         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
1123         (Qmojikyo_2022_1): New variable.
1124         (make_charset): Don't use `CHARSET_TYPE_*'.
1125         (range_charset_code_point): Support coded-charset
1126         `mojikyo-2022-1'.
1127         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
1128         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
1129         `CHARSET_BY_ATTRIBUTES'.
1130         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
1131         `CHARSET_BY_ATTRIBUTES'.
1132         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
1133         (complex_vars_of_mule_charset): Add new coded-charset
1134         `mojikyo-2022-1'.
1135
1136         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
1137         interface; changed to inline function.
1138
1139         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
1140         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
1141         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
1142         (CHARSET_TYPE_94): Deleted.
1143         (CHARSET_TYPE_94X94): Deleted.
1144         (CHARSET_TYPE_96): Deleted.
1145         (CHARSET_TYPE_96X96): Deleted.
1146         (CHARSET_TYPE_128): Deleted.
1147         (CHARSET_TYPE_128X128): Deleted.
1148         (CHARSET_TYPE_256): Deleted.
1149         (CHARSET_TYPE_256X256): Deleted.
1150         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
1151         to inline function.
1152         (DECODE_MOJIKYO_2022): New inline function.
1153         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
1154         `Vcharset_mojikyo_2022_1'.
1155
1156 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1157
1158         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
1159         instead of `EQ'.
1160         (put_byte_table): Likewise.
1161         (char_id_table_equal): Use `get_byte_table' [new implementation].
1162
1163 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1164
1165         * mule-charset.c: Include <limits.h> in UTF-2000.
1166         (BT_UINT8_MIN): New macro in UTF-2000.
1167         (BT_UINT8_MAX): New macro in UTF-2000.
1168         (BT_UINT8_t): New macro in UTF-2000.
1169         (BT_UINT8_nil): New macro in UTF-2000.
1170         (BT_UINT8_unbound): New macro in UTF-2000.
1171         (INT_UINT8_P): New inline function in UTF-2000.
1172         (UINT8_VALUE_P): New inline function in UTF-2000.
1173         (UINT8_ENCODE): New inline function in UTF-2000.
1174         (UINT8_DECODE): New inline function in UTF-2000.
1175         (mark_uint8_byte_table): New function in UTF-2000.
1176         (print_uint8_byte_table): New function in UTF-2000.
1177         (uint8_byte_table_equal): New function in UTF-2000.
1178         (uint8_byte_table_hash): New function in UTF-2000.
1179         (make_uint8_byte_table): New function in UTF-2000.
1180         (uint8_byte_table_same_value_p): New function in UTF-2000.
1181         (BT_UINT16_MIN): New macro in UTF-2000.
1182         (BT_UINT16_MAX): New macro in UTF-2000.
1183         (BT_UINT16_t): New macro in UTF-2000.
1184         (BT_UINT16_nil): New macro in UTF-2000.
1185         (BT_UINT16_unbound): New macro in UTF-2000.
1186         (INT_UINT16_P): New inline function in UTF-2000.
1187         (UINT16_VALUE_P): New inline function in UTF-2000.
1188         (UINT16_ENCODE): New inline function in UTF-2000.
1189         (UINT16_DECODE): New inline function in UTF-2000.
1190         (UINT8_TO_UINT16): New inline function in UTF-2000.
1191         (mark_uint16_byte_table): New function in UTF-2000.
1192         (print_uint16_byte_table): New function in UTF-2000.
1193         (uint16_byte_table_equal): New function in UTF-2000.
1194         (uint16_byte_table_hash): New function in UTF-2000.
1195         (make_uint16_byte_table): New function in UTF-2000.
1196         (uint16_byte_table_same_value_p): New function in UTF-2000.
1197         (print_byte_table): New function in UTF-2000.
1198         (byte-table): Use `print_byte_table' as printer.
1199         (make_byte_table): Delete second argument `older'.
1200         (byte_table_same_value_p): New function in UTF-2000.
1201         (copy_byte_table): Deleted.
1202         (get_byte_table): New function in UTF-2000.
1203         (put_byte_table): New function in UTF-2000.
1204         (print_char_id_table): New function in UTF-2000.
1205         (char-id-table): Use `print_char_id_table' as printer.
1206         (make_char_id_table): Delete second argument `older'.
1207         (get_char_id_table): Use `get_byte_table [new implementation].
1208         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
1209         implementation].
1210         (Ffind_char_attribute_table): New function in UTF-2000.
1211         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
1212         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
1213         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
1214         (syms_of_mule_charset): Add new function
1215         `find-char-attribute-table' in UTF-2000.
1216
1217         * lrecord.h (enum lrecord_type): Add
1218         `lrecord_type_uint16_byte_table' and
1219         `lrecord_type_uint8_byte_table'.
1220
1221         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
1222         (Lisp_Uint8_Byte_Table): New type.
1223         (XUINT8_BYTE_TABLE): New macro.
1224         (XSETUINT8_BYTE_TABLE): New macro.
1225         (UINT8_BYTE_TABLE_P): New macro.
1226         (GC_UINT8_BYTE_TABLE_P): New macro.
1227         (struct Lisp_Uint16_Byte_Table): New structure.
1228         (Lisp_Uint16_Byte_Table): New type.
1229         (XUINT16_BYTE_TABLE): New macro.
1230         (XSETUINT16_BYTE_TABLE): New macro.
1231         (UINT16_BYTE_TABLE_P): New macro.
1232         (GC_UINT16_BYTE_TABLE_P): New macro.
1233
1234 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1235
1236         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
1237         (Vcharacter_ideographic_strokes_table): Deleted.
1238         (Vcharacter_total_strokes_table): Deleted.
1239         (Vcharacter_morohashi_daikanwa_table): Deleted.
1240         (Vcharacter_decomposition_table): Deleted.
1241         (Qname): Deleted because it is duplicated.
1242         (Qideographic_radical): Deleted.
1243         (Qideographic_strokes): Deleted.
1244         (Qtotal_strokes): Deleted.
1245         (Qmorohashi_daikanwa): Deleted.
1246         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
1247         `ideographic-radical', `ideographic-strokes', `total-strokes',
1248         `morohashi-daikanwa' and `->decomposition'.
1249         (Fget_char_attribute): Likewise.
1250         (Fput_char_attribute): Likewise; use `make-vector' instead of
1251         `make_older_vector' for `->decomposition' value.
1252         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
1253         `ideograph-daikanwa'.
1254         (syms_of_mule_charset): Delete builtin symbols `name',
1255         `ideographic-radical', `ideographic-strokes', `total-strokes' and
1256         `morohashi-daikanwa'.
1257         (vars_of_mule_charset): Don't setup
1258         `Vcharacter_ideographic_radical_table',
1259         `Vcharacter_ideographic_strokes_table',
1260         `Vcharacter_total_strokes_table',
1261         `Vcharacter_morohashi_daikanwa_table' and
1262         `Vcharacter_decomposition_table'.
1263
1264 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1265
1266         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
1267         `make_older_vector', `make_vector_newer_1' and
1268         `make_vector_newer'.
1269
1270         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
1271         `make_older_vector' and `make_vector_newer'.
1272
1273         * config.h.in (HAVE_GGC): New macro.
1274
1275 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1276
1277         * mule-charset.c (struct char_attribute_list_closure): New
1278         structure in UTF-2000.
1279         (add_char_attribute_to_list_mapper): New function in UTF-2000.
1280         (Fchar_attribute_list): Likewise.
1281         (Fset_charset_mapping_table): Use `make_vector_newer'.
1282         (Fdecode_builtin_char): New function in UTF-2000.
1283         (syms_of_mule_charset): Add new function `char-attribute-list' and
1284         `decode-builtin-char' in UTF-2000.
1285
1286         * lisp.h (make_vector_newer): New prototype.
1287
1288         * alloc.c (make_vector_newer_1): New function.
1289         (make_vector_newer): New function.
1290
1291 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1292
1293         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
1294         50100)'.
1295
1296 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1297
1298         * mule-charset.c (Vchar_attribute_hash_table): New variable.
1299         (Vcharacter_attribute_table): Deleted.
1300         (Vcharacter_name_table): Deleted.
1301         (put_char_attribute): Deleted.
1302         (remove_char_attribute): Deleted.
1303         (struct char_attribute_alist_closure): New structure.
1304         (add_char_attribute_alist_mapper): New function.
1305         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
1306         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
1307         (Fget_char_attribute): Likewise.
1308         (Fput_char_attribute): Likewise.
1309         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
1310         of `remove_char_attribute'.
1311         (Fdefine_char): Return character.
1312         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
1313         and `Vcharacter_name_table'.
1314         (complex_vars_of_mule_charset): Likewise
1315         `Vchar_attribute_hash_table'.
1316
1317 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1318
1319         * character.h (CHARC_CHARSET): New macro.
1320         (CHARC_CHARSET_ID): New macro.
1321         (CHARC_CODE_POINT): New macro.
1322         (CHARC_COLUMNS): New macro.
1323         (CHARC_TO_CHAR): New inline function.
1324         (CHARC_EQ): New inline function.
1325         (CHARC_ASCII_EQ): New inline function.
1326         (CHARC_IS_SPACE): New inline function.
1327         (ASCII_TO_CHARC): New inline function.
1328
1329         * char-ucs.h (encode_char_2): Deleted.
1330         (ENCODE_CHAR): Use `encode_char_1' again.
1331         (breakup_char_1): Likewise.
1332         (CHAR_TO_CHARC): New inline function.
1333
1334         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
1335
1336 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1337
1338         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
1339         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
1340         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
1341         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
1342         (create_string_text_block): Use `CHARC_ASCII_EQ' and
1343         `CHARC_IS_SPACE'.
1344         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
1345
1346         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
1347         `CHARC_CODE_POINT'.
1348         (x_output_display_block): Use `CHARC_CHARSET' and
1349         `CHARC_ASCII_EQ'.
1350
1351         * redisplay-tty.c (tty_output_display_block): Use
1352         `CHARC_ASCII_EQ'.
1353         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
1354
1355         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
1356
1357         * insdel.c (find_charsets_in_charc_string): Use
1358         `CHARC_CHARSET_ID'.
1359         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
1360         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
1361         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
1362         (convert_charc_string_into_malloced_string): Likewise.
1363
1364 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1365
1366         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
1367         instead of <Emchar_dynarr *> for buf; use
1368         `convert_bufbyte_string_into_charc_dynarr' instead of
1369         `convert_bufbyte_string_into_emchar_dynarr'; use
1370         `find_charsets_in_charc_string' instead of
1371         `find_charsets_in_emchar_string'.
1372
1373         * redisplay.h:
1374         - Include "character.h".
1375         (struct rune): New member `cglyph'; delete member `chr'.
1376
1377         * redisplay.c (redisplay_text_width_charc_string): New function;
1378         delete `redisplay_text_width_emchar_string'.
1379         (rtw_charc_dynarr): New variable; renamed from
1380         `rtw_emchar_dynarr'.
1381         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
1382         `rtw_emchar_dynarr'; use
1383         `convert_bufbyte_string_into_charc_dynarr' instead of
1384         `convert_bufbyte_string_into_emchar_dynarr'; use
1385         `redisplay_text_width_charc_string' instead of
1386         `redisplay_text_width_emchar_string'.
1387         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
1388         instead of `rtw_emchar_dynarr'; use
1389         `convert_bufbyte_string_into_charc_dynarr' instead of
1390         `convert_bufbyte_string_into_emchar_dynarr'.
1391         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
1392         `redisplay_text_width_charc_string' instead of
1393         `redisplay_text_width_emchar_string'.
1394         (create_text_block): Modify for <struct rune> change.
1395         (generate_formatted_string_db): Likewise.
1396         (create_string_text_block): Likewise.
1397         (pixel_to_glyph_translation): Likewise.
1398
1399         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
1400         instead of <const Emchar *>.
1401         (x_text_width): Likewise.
1402         (x_output_display_block): Use <Charc_dynarr *> instead
1403         <Emchar_dynarr *>; modify for <structure rune> change.
1404         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
1405         *>.
1406
1407         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
1408         <const Emchar *>; use `charc_string_displayed_columns' instead of
1409         `emchar_string_displayed_columns'.
1410         (tty_output_display_block): Use <Charc_dynarr *> instead of
1411         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
1412         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
1413         (tty_output_charc_dynarr_dynarr): New variable; renamed from
1414         `tty_output_emchar_dynarr_dynarr'.
1415         (tty_output_charc_dynarr): New function; delete
1416         `tty_output_charc_dynarr'.
1417
1418         * redisplay-output.c (compare_runes): Modify for `struct rune'.
1419         (redisplay_output_layout): Use <Charc_dynarr *> instead of
1420         <Emchar_dynarr *> for buf; use
1421         `convert_bufbyte_string_into_charc_dynarr' instead of
1422         `convert_bufbyte_string_into_emchar_dynarr'.
1423
1424         * frame.c (title_string_charc_dynarr): New variable; renamed from
1425         `title_string_emchar_dynarr'.
1426         (generate_title_string): Use `title_string_charc_dynarr' instead
1427         of `title_string_emchar_dynarr'; use
1428         `convert_charc_string_into_malloced_string' instead of
1429         `convert_emchar_string_into_malloced_string'.
1430         (init_frame): Use `title_string_charc_dynarr' instead of
1431         `title_string_emchar_dynarr'.
1432
1433         * console.h:
1434         - Include "character.h".
1435         (struct console_methods): Use <const Charc *> instead of <const
1436         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
1437         <Emchar_dynarr *> in output_string_method.
1438
1439         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
1440         <Emchar_dynarr *>.
1441
1442         * console-stream.c (stream_text_width): Use <const Charc *>
1443         instead of <const Emchar *>.
1444
1445         * character.h (Charc_dynarr): New type.
1446
1447         * char-ucs.h (structure Charc): New structure; define new type
1448         `Charc'.
1449
1450         * char-lb.h (DECODE_CHAR): New inline function.
1451         (encode_char_1): New inline function.
1452         (ENCODE_CHAR): New macro.
1453         (structure Charc): New structure; define new type `Charc'.
1454
1455         * char-1byte.h (Vcharset_control_1): New macro.
1456         (Vcharset_latin_iso8859_1): New macro.
1457         (DECODE_CHAR): New inline function.
1458         (encode_char_1): New inline function.
1459         (ENCODE_CHAR): New macro.
1460         (structure Charc): New structure; define new type `Charc'.
1461
1462         * insdel.c (find_charsets_in_charc_string): New function; delete
1463         `find_charsets_in_emchar_string'.
1464         (charc_string_displayed_columns): New function; delete
1465         `emchar_string_displayed_columns'.
1466         (convert_bufbyte_string_into_charc_dynarr): New function; delete
1467         `convert_bufbyte_string_into_emchar_dynarr'.
1468         (convert_charc_string_into_bufbyte_dynarr): New function; delete
1469         `convert_charc_string_into_bufbyte_dynarr'.
1470         (convert_charc_string_into_malloced_string): New function; delete
1471         `convert_charc_string_into_malloced_string'.
1472
1473         * buffer.h (find_charsets_in_charc_string): New prototype; delete
1474         `find_charsets_in_emchar_string'.
1475         (charc_string_displayed_columns): New prototype; delete
1476         `emchar_string_displayed_columns'.
1477         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
1478         `convert_charc_string_into_bufbyte_dynarr'.
1479         (convert_charc_string_into_malloced_string): New prototype; delete
1480         `convert_charc_string_into_malloced_string'.
1481
1482 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1483
1484         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
1485
1486 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1487
1488         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
1489
1490         * char-ucs.h: Use <short> for <Charset_ID>.
1491
1492         * mule-charset.h, char-1byte.h: Use <unsigned char> for
1493         <Charset_ID>.
1494
1495 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1496
1497         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1498         to 0.16.
1499
1500 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1501
1502         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
1503         variable.
1504         (Qmorohashi_daikanwa): New variable.
1505         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
1506         for `morohashi-daikanwa' attribute.
1507         (Fget_char_attribute): Likewise.
1508         (Fput_char_attribute): Likewise.
1509         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
1510         has the same value of `ideograph-daikanwa'.
1511         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
1512         (vars_of_mule_charset): Setup
1513         `Vcharacter_morohashi_daikanwa_table'.
1514
1515 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1516
1517         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
1518         attributes.
1519         (add_charset_to_list_mapper): Add `key' instead of
1520         `XCHARSET_NAME (value)' to return aliases.
1521
1522 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1523
1524         * mule-charset.c (Vcharacter_ideographic_radical_table): New
1525         variable.
1526         (Vcharacter_ideographic_strokes_table): New variable.
1527         (Qideographic_radical): New variable.
1528         (Qideographic_strokes): New variable.
1529         (Fchar_attribute_alist): Use
1530         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
1531         attribute; use `Vcharacter_ideographic_strokes_table' for
1532         `ideographic-strokes' attribute.
1533         (Fget_char_attribute): Likewise.
1534         (Fput_char_attribute): Likewise.
1535         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
1536         `ideographic-strokes'.
1537         (vars_of_mule_charset): Setup
1538         `Vcharacter_ideographic_radical_table' and
1539         `Vcharacter_ideographic_strokes_table'.
1540
1541 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1542
1543         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
1544         (Qtotal_strokes): New variable.
1545         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
1546         `total-strokes' attribute.
1547         (Fget_char_attribute): Likewise.
1548         (Fput_char_attribute): Likewise.
1549         (syms_of_mule_charset): Add new symbol `total-strokes'.
1550         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
1551
1552 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1553
1554         * mule-charset.c (Vcharacter_decomposition_table): New variable.
1555         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
1556         are found.
1557         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
1558         `->decomposition' attribute.
1559         (Fput_char_attribute): Likewise.
1560         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
1561
1562 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1563
1564         * mule-charset.c (decoding_table_check_elements): New function.
1565         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
1566
1567 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1568
1569         * mule-charset.c (Fset_charset_mapping_table): Use
1570         `put_char_ccs_code_point'.
1571
1572 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1573
1574         * mule-charset.c (decoding_table_put_char): New inline function.
1575         (put_char_ccs_code_point): Use `decoding_table_put_char'.
1576
1577 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1578
1579         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
1580         (XCHARSET_BYTE_SIZE): New macro.
1581         (decoding_table_remove_char): New inline function.
1582         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
1583         `decoding_table_remove_char'.
1584         (remove_char_ccs): Use `decoding_table_remove_char'.
1585         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
1586
1587 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1588
1589         * mule-charset.c (Vcharacter_name_table): New variable.
1590         (Qname): New variable.
1591         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
1592         attribute.
1593         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
1594         `Vcharacter_name_table' for `name' attribute.
1595         (Fremove_char_attribute): Use function `remove_char_ccs'.
1596         (put_char_ccs_code_point): New function.
1597         (remove_char_ccs): New function.
1598         (syms_of_mule_charset): Add new symbol `name'.
1599         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
1600
1601 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1602
1603         * mule-charset.c (make_byte_table): Add new argument `older'.
1604         (make_char_id_table): Likewise.
1605         (copy_char_id_table): Comment out because it is not used.
1606         (put_char_id_table): Modify for `make_byte_table'.
1607         (Fput_char_attribute): Make encoding_table as older object;
1608         inherit older bit of `Vcharacter_composition_table'.
1609         (mark_charset): Don't mark `cs->encoding_table'.
1610         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
1611         normal object; make `Vcharacter_composition_table' as an older
1612         object; delete staticpro for `Vcharacter_composition_table'; make
1613         `Vcharacter_variant_table' as a normal object.
1614
1615         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
1616         (mark_object): Don't check older object in UTF-2000.
1617
1618         * lrecord.h (struct lrecord_header): Add new member `older' in
1619         UTF-2000.
1620         (set_lheader_implementation): Setup `SLI_header->older' in
1621         UTF-2000.
1622         (set_lheader_older_implementation): New macro in UTF-2000.
1623         (OLDER_RECORD_P): New macro in UTF-2000.
1624         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
1625         (alloc_older_lcrecord): New prototype in UTF-2000.
1626         (alloc_older_lcrecord_type): New macro in UTF-2000.
1627
1628 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1629
1630         * mule-charset.c (byte_table_description): Use
1631         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
1632         (char_id_table_description): Delete bogus `, 1'.
1633         (Fget_char_attribute): Refer encoding_table of each coded-charset
1634         to get value of coded-charset attribute of a character.
1635         (Fput_char_attribute): Use `make_older_vector' instead of
1636         `make_vector'; use encoding_table of each coded-charset to store
1637         value of coded-charset attribute of a character.
1638         (Fremove_char_attribute): Use encoding_table of each coded-charset
1639         to store value of coded-charset attribute of a character.
1640         (mark_charset): Mark `cs->encoding_table'; don't mark
1641         `cs->decoding_table'.
1642         (charset_description): Add description of new member
1643         `encoding_table'.
1644         (make_charset): Initialize `encoding_table'.
1645
1646         * char-ucs.h (struct Lisp_Charset): Add new member
1647         `encoding_table'.
1648         (CHARSET_ENCODING_TABLE): New macro.
1649         (XCHARSET_ENCODING_TABLE): New macro.
1650         (charset_code_point): New implementation.
1651         (encode_char_1): Likewise.
1652
1653         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
1654         (disksave_object_finalization_1): Call finalizers of
1655         `all_older_lcrecords' in UTF-2000.
1656         (make_older_vector): New function in UTF-2000.
1657         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
1658         UTF-2000.
1659
1660         * lisp.h (make_older_vector): New prototype in UTF-2000.
1661
1662 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1663
1664         * lrecord.h (enum lrecord_type): Rename
1665         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
1666
1667         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
1668         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
1669         `get_char_code_table'.
1670
1671         * mule-charset.c (mark_char_id_table): Renamed from
1672         `mark_char_code_table'.
1673         (char_id_table_equal): Renamed from `char_code_table_equal'.
1674         (char_id_table_hash): Renamed from `char_code_table_hash'.
1675         (make_char_id_table): Renamed from `make_char_code_table'.
1676         (copy_char_id_table): Renamed from `copy_char_code_table'.
1677         (get_char_id_table): Renamed from `get_char_code_table'.
1678         (put_char_id_table): Renamed from `put_char_code_table'.
1679         (to_char_id): Renamed from `to_char_code'.
1680
1681         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
1682         `Lisp_Char_Code_Table'.
1683         (char_id_table): Renamed from `char_code_table'.
1684         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
1685         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
1686         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
1687         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
1688         (get_char_id_table): Renamed from `get_char_code_table'.
1689
1690 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1691
1692         * lrecord.h (enum lrecord_type): Rename
1693         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
1694
1695         * mule-charset.c (mark_byte_table): Renamed from
1696         `mark_char_byte_table'.
1697         (byte_table_equal): Renamed from `char_byte_table_equal'.
1698         (byte_table_hash): Renamed from `byte_table_hash'.
1699         (make_byte_table): Renamed from `make_byte_table'.
1700         (copy_byte_table): Renamed from `copy_char_byte_table'.
1701
1702         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
1703         `Lisp_Char_Byte_Table'.
1704         (byte_table): Renamed from `char_byte_table'.
1705         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
1706         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
1707         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
1708         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
1709
1710 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1711
1712         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
1713         (dfc_convert_to_internal_format): Likewise.
1714         
1715         * text-coding.c (Fcoding_system_canonical_name_p): New function.
1716         * text-coding.c (Fcoding_system_alias_p): New function.
1717         * text-coding.c (Fcoding_system_aliasee): New function.
1718         * text-coding.c (append_suffix_to_symbol): New function.
1719         * text-coding.c (dangling_coding_system_alias_p): New function.
1720         * text-coding.c (Ffind_coding_system):
1721         * text-coding.c (Fcopy_coding_system):
1722         * text-coding.c (encode_coding_no_conversion):
1723         * text-coding.c (syms_of_file_coding):
1724         * text-coding.c (vars_of_file_coding):
1725         Rewrite coding system alias code.
1726         Allow nested aliases, like symbolic links.
1727         Allow redefinition of coding system aliases.
1728         Prevent existence of dangling coding system aliases.
1729         Eliminate convert_to_external_format.
1730         Eliminate convert_to_internal_format.
1731         
1732         * text-coding.c: Change enum eol_type to eol_type_t.
1733
1734 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1735
1736         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
1737         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
1738
1739         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
1740         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
1741
1742 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1743
1744         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
1745         `ideograph-daikanwa'.
1746
1747         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
1748         (Vcharset_ucs_bmp): Likewise.
1749         (Vcharset_mojikyo): Add new extern variable definition.
1750         (Vcharset_latin_iso8859_2): Deleted because it is not used.
1751         (Vcharset_latin_iso8859_3): Likewise.
1752         (Vcharset_latin_iso8859_4): Likewise.
1753         (Vcharset_latin_iso8859_9): Likewise.
1754         (Vcharset_latin_viscii_lower): Likewise.
1755         (Vcharset_latin_viscii_upper): Likewise.
1756         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
1757         `mojikyo' code-point is used to decode.
1758         (encode_char_2): New function [to convert `mojikyo' code-point to
1759         Mojikyo font encoding].
1760         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
1761         (breakup_char_1): Likewise.
1762         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
1763
1764 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1765
1766         * text-coding.c (Fmake_coding_system): Add document about
1767         `disable-composition' property.
1768
1769 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1770
1771         * text-coding.c (Qdisable_composition): New variable; delete
1772         `Qcomposite'.
1773         (Fmake_coding_system): Add new property `disable-composite';
1774         delete property `composite'.
1775         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
1776         instead of `!CODING_SYSTEM_COMPOSITE'.
1777         (syms_of_file_coding): Add new symbol `disable-composition';
1778         delete symbol `composite'.
1779
1780         * file-coding.h (struct Lisp_Coding_System): Add
1781         `disable_composition'; delete `enable_composition'.
1782         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
1783         `CODING_SYSTEM_COMPOSITE'.
1784         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
1785         `XCODING_SYSTEM_COMPOSITE'.
1786
1787 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1788
1789         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1790         to 0.15.
1791
1792 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1793
1794         * text-coding.c (Qcomposite): New variable.
1795         (Fmake_coding_system): Add new property `composite'.
1796         (struct decoding_stream): Add `combined_char_count',
1797         `combined_chars' and `combining_table' in UTF-2000.
1798         (COMPOSE_FLUSH_CHARS): New macro.
1799         (COMPOSE_ADD_CHAR): New macro.
1800         (reset_decoding_stream): Reset `str->combined_char_count' and
1801         `str->combining_table' in UTF-2000.
1802         (decode_coding_iso2022): Modify for character-decomposition.
1803         (syms_of_file_coding): Add new symbol `composite'.
1804
1805 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1806
1807         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
1808         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
1809         of `Vcharacter_composition_table' if `->decomposition' property
1810         has only 1 element.
1811         (Qlatin_tcvn5712): New variable.
1812         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
1813         (complex_vars_of_mule_charset): Add new coded-charset
1814         `latin-tcvn5712'.
1815
1816         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
1817
1818 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1819
1820         * file-coding.h (struct Lisp_Coding_System): Add
1821         `enable_composition'.
1822         (CODING_SYSTEM_COMPOSITE): New macro.
1823         (XCODING_SYSTEM_COMPOSITE): New macro.
1824
1825 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
1826
1827         * mule-canna.c (c2mu): Fix problem with UTF-2000.
1828
1829 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
1830
1831         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
1832         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
1833
1834 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
1835
1836         * mule-charset.c (Vcharset_mojikyo): New variable.
1837         (Fdefine_char): Don't use coded-charset which does not have
1838         non-builtin character range to allocate character-id.
1839         (Qmojikyo): New variable.
1840         (syms_of_mule_charset): Add new symbol `mojikyo'.
1841         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
1842
1843         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
1844         (LEADING_BYTE_MOJIKYO): New macro.
1845         (MIN_CHAR_MOJIKYO): New macro.
1846         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
1847         (MAX_CHAR_MOJIKYO): New macro.
1848
1849 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
1850
1851         * mule-charset.c (remove_char_attribute): Fixed.
1852
1853 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
1854
1855         * mule-charset.c (remove_char_attribute): New function.
1856         (Fremove_char_attribute): New function.
1857         (encode_builtin_char_1): Comment out builtin-support for
1858         greek-iso8859-7 and cyrillic-iso8859-5.
1859         (Fdecode_char): Check `code' is an integer.
1860         (syms_of_mule_charset): Add `remove-char-attribute'.
1861         (MIN_CHAR_GREEK): Deleted.
1862         (MAX_CHAR_GREEK): Likewise.
1863         (MIN_CHAR_CYRILLIC): Likewise.
1864         (MAX_CHAR_CYRILLIC): Likewise.
1865         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
1866         MAX_CHAR_GREEK for `greek-iso8859-7'.
1867
1868         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
1869         (MAX_CHAR_GREEK): Likewise.
1870         (MIN_CHAR_CYRILLIC): Likewise.
1871         (MAX_CHAR_CYRILLIC): Likewise.
1872
1873 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
1874
1875         * mule-charset.c (Fdefine_char): Fix problem when new code-point
1876         format is used without `ucs' property.
1877         (Fdecode_char): Fix problem with GR representation.
1878         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
1879         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
1880
1881 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
1882
1883         * mule-charset.c (make_builtin_char): New function.
1884         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
1885         (Fset_charset_mapping_table): Modify for new representation of
1886         code-point.
1887         (Fdecode_char): New function.
1888         (syms_of_mule_charset): Add new builtin function `decode-char' in
1889         UTF-2000.
1890
1891         * char-ucs.h (make_builtin_char): New prototype.
1892         (DECODE_CHAR): New inline function.
1893         (MAKE_CHAR): Use `DECODE_CHAR'.
1894
1895 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
1896
1897         * text-coding.c (parse_charset_conversion_specs): Use
1898         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
1899         `XCHARSET_TYPE'.
1900         (iso2022_designate): Likewise.
1901
1902         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
1903         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
1904
1905         * mule-charset.c (Vcharset_ucs): New variable.
1906         (print_charset): Change design; use `CHARSET_CHARS' and
1907         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
1908         (make_charset): Change signature to specify `chars' and
1909         `dimension' instead of `type'.
1910         (range_charset_code_point): Modify for 256^n-set.
1911         (encode_builtin_char_1): Encode as `ucs' in default.
1912         (Fmake_charset): Modify for `make_charset'.
1913         (Fmake_reverse_direction_charset): Likewise.
1914         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
1915         UTF-2000.
1916         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
1917         for `make_charset'.
1918
1919         * char-ucs.h (Vcharset_ucs): New variable.
1920         (LEADING_BYTE_UCS): New macro.
1921         (struct Lisp_Charset): Delete `type'; change type of `dimension'
1922         and `chars' to `unsigned short' from `unsigned int'.
1923         (CHARSET_TYPE): Deleted.
1924         (XCHARSET_TYPE): Deleted.
1925
1926 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
1927
1928         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
1929
1930         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
1931         (ENCODE_CHAR): New macro.
1932
1933 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
1934
1935         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1936         to 0.14 (Kawachi-Katakami).
1937
1938 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
1939
1940         * text-coding.c (char_encode_shift_jis): Modify for
1941         `charset_code_point'.
1942         (char_encode_iso2022): Likewise.
1943
1944         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
1945         (integer) instead of list of <Lisp_Object>s (integers) as the
1946         format of code-point of a coded-charset.
1947         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
1948         (encode_builtin_char_1): New function; delete
1949         `split_builtin_char'.
1950         (charset_code_point): Return <int> instead of <Lisp_Object>.
1951         (Fsplit_char): Don't use `SPLIT_CHAR'.
1952
1953         * char-ucs.h (encode_builtin_char_1): New prototype; delete
1954         prototype for `split_builtin_char'.
1955         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
1956         (charset_code_point): Likewise.
1957         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
1958         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
1959
1960 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
1961
1962         * mule-charset.c (complex_vars_of_mule_charset): Don't define
1963         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
1964
1965 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
1966
1967         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
1968
1969         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
1970         (MAX_CHAR_OBS_94x94): Deleted.
1971
1972 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
1973
1974         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
1975
1976         * char-ucs.h (MAX_CHAR_BMP): New macro.
1977
1978 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
1979
1980         * text-coding.c: Sync with r21-2-24.
1981
1982 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
1983
1984         * file-coding.c: Modify for UTF-2000.
1985
1986 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
1987
1988         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1989         to 0.13 (Takaida).
1990
1991 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
1992
1993         * mule-charset.c (split_builtin_char): Delete builtin support for
1994         `katakana-jisx0201'.
1995         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
1996         BMP area in builtin representation.
1997
1998         * char-ucs.h (MAKE_CHAR): Delete builtin support for
1999         `Vcharset_katakana_jisx0201'.
2000
2001 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
2002
2003         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
2004         (Qisolated): New variable.
2005         (Qinitial): New variable.
2006         (Qmedial): New variable.
2007         (Qfinal): New variable.
2008         (Qvertical): New variable.
2009         (Qsmall): New variable.
2010         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
2011         `Qvertical' and `Qsmall'.
2012         (Qmojikyo_pj_[1 .. 21]): New variable.
2013         (syms_of_mule_charset): Add new symbols `isolated', `initial',
2014         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
2015         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
2016         .. 21]'.
2017
2018 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
2019
2020         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
2021         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
2022         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
2023
2024 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2025
2026         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
2027         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
2028         BMP.
2029         (Qjapanese_jisx0208_1990): New variable.
2030         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
2031         (complex_vars_of_mule_charset): Add new coded-charset
2032         `japanese-jisx0208-1990'.
2033
2034         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
2035         (MIN_CHAR_JIS_X0208_1990): New macro.
2036         (MAX_CHAR_JIS_X0208_1990): New macro.
2037
2038 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2039
2040         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
2041         coded-charset is not found.
2042
2043 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2044
2045         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
2046         (Fdefine_char): Use `Fmake_char'.
2047
2048 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2049
2050         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
2051         (Vcharset_hiragana_jisx0208): Deleted.
2052         (Vcharset_katakana_jisx0208): Deleted.
2053         (Qideograph_daikanwa): New variable.
2054         (Qhiragana_jisx0208): Deleted.
2055         (Qkatakana_jisx0208): Deleted.
2056         (split_builtin_char): Split `ideograph-daikanwa'.
2057         (Fsplit_char): New implementation for UTF-2000.
2058         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
2059         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
2060         (complex_vars_of_mule_charset): Add new coded-charset
2061         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
2062         `katakana-jisx0208'.
2063
2064         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
2065         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
2066         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
2067         (MIN_CHAR_DAIKANWA): New macro.
2068         (MAX_CHAR_DAIKANWA): New macro.
2069
2070 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2071
2072         * data.c (Fstring_to_number): Don't recognize floating point if
2073         base is not 10.
2074
2075 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2076
2077         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
2078
2079 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2080
2081         * mule-charset.c (Qsquare): New variable.
2082         (to_char_code): Add `Qsquare'.
2083         (syms_of_mule_charset): Add new symbol `square'.
2084
2085 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2086
2087         * mule-charset.c (Qcircle): New variable.
2088         (to_char_code): Add `Qcircle'.
2089         (syms_of_mule_charset): Add new symbol `circle'.
2090
2091 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2092
2093         * mule-charset.c (Qfont): New variable.
2094         (to_char_code): Add `Qfont'.
2095         (syms_of_mule_charset): Add new symbol `font'.
2096
2097 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2098
2099         * mule-charset.c (Qsub): New variable.
2100         (to_char_code): Add `Qsub'.
2101         (syms_of_mule_charset): Add new symbol `sub'.
2102
2103 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2104
2105         * mule-charset.c (Fput_char_attribute): Convert each element of
2106         VALUE to GL position if ATTRIBUTE is a GR-set,
2107
2108 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2109
2110         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
2111         coded-charset is a GR-set.
2112
2113 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2114
2115         * mule-charset.c (Fput_char_attribute): Check each element of
2116         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
2117
2118 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2119
2120         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
2121         UTF-2000.
2122         (Qethiopic_ucs): New variable in UTF-2000.
2123         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
2124         (complex_vars_of_mule_charset): Add new coded-charset
2125         `ethiopic-ucs' in UTF-2000.
2126
2127         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
2128         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2129         9)'.
2130         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2131         10)'.
2132         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
2133
2134 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
2135
2136         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
2137         `ascii'.
2138
2139 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2140
2141         * mule-charset.c (Vcharacter_variant_table): New variable.
2142         (Q_ucs): New variable.
2143         (Fchar_variants): New function.
2144         (Fput_char_attribute): Register `->ucs' value to
2145         `Vcharacter_variant_table'.
2146         (syms_of_mule_charset): Add new function `char-variants' and new
2147         symbol `->ucs'.
2148         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
2149
2150 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2151
2152         * mule-charset.c (get_char_code_table): Allow negative character
2153         code.
2154         (put_char_code_table): Likewise.
2155         (Vcharacter_composition_table): New variable.
2156         (Q_decomposition): New variable.
2157         (Qwide): New variable.
2158         (Qnarrow): New variable.
2159         (Qcompat): New variable.
2160         (QnoBreak): New variable.
2161         (Qsuper): New variable.
2162         (Qfraction): New variable.
2163         (to_char_code): New function.
2164         (Fget_composite_char): New function.
2165         (Fput_char_attribute): Register `->decomposition' value to
2166         `Vcharacter_composition_table'.
2167         (syms_of_mule_charset): Add new function `get-composite-char', new
2168         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
2169         `super' and `fraction'.
2170         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
2171
2172 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2173
2174         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
2175         character; copy the return value.
2176
2177 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2178
2179         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
2180
2181         * mule-charset.c (range_charset_code_point): Must use make_int.
2182         (split_builtin_char): New function.
2183
2184 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2185
2186         * mule-charset.c (char_byte_table): Change name from
2187         "char-code-table" to "char-byte-table".
2188         (mark_char_code_table): New function.
2189         (char_code_table_equal): New function.
2190         (char_code_table_hash): New function.
2191         (char_code_table_description): New constant.
2192         (char_code_table): New type.
2193         (make_char_code_table): New function.
2194         (copy_char_code_table): New function.
2195         (get_char_code_table): Modify for `char_code_table' type.
2196         (put_char_code_table): Likewise.
2197         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
2198         (Kashiwara).
2199
2200         * char-ucs.h (char_code_table): New type.
2201         (XCHAR_CODE_TABLE): New macro.
2202         (XSETCHAR_CODE_TABLE): New macro.
2203         (CHAR_CODE_TABLE_P): New macro.
2204         (GC_CHAR_CODE_TABLE_P): New macro.
2205         (struct Lisp_Char_Code_Table): New structure.
2206
2207 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2208
2209         * mule-charset.c (Fmake_charset): Setup byte_offset for
2210         {94|96}^n-set.
2211
2212 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2213
2214         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
2215         character.
2216
2217 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2218
2219         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
2220         is found.
2221
2222 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2223
2224         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
2225         charset, it is regarded as a charset.
2226         (put_char_attribute): New function in UTF-2000.
2227         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
2228         charset, mapping-table of the charset is modified.
2229         (Fdefine_char): New function in UTF-2000.
2230         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
2231         `Fput_char_attribute'.
2232         (syms_of_mule_charset): Add new function `define-char' and new
2233         symbol `ucs' in UTF-2000.
2234         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
2235
2236 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2237
2238         * mule-charset.c (Fcharset_name): Define `byte_offset' in
2239         non-UTF-2000 configuration.
2240
2241 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2242
2243         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
2244         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
2245
2246         * mule-charset.c (mark_charset): `cs->encoding_table' has been
2247         deleted.
2248         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
2249         (Fset_charset_mapping_table): Likewise.
2250
2251         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
2252         (CHARSET_ENCODING_TABLE): Delete.
2253         (XCHARSET_ENCODING_TABLE): Delete.
2254         (charset_code_point): New interface.
2255
2256 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2257
2258         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
2259         instead of `charset_get_byte1' and `charset_get_byte2'.
2260
2261         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
2262         (charset_get_byte2): Deleted.
2263
2264 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2265
2266         * char-ucs.h (SPLIT_CHAR): New inline function.
2267         (breakup_char_1): Use `SPLIT_CHAR'.
2268
2269         * mule-charset.c (range_charset_code_point): New function.
2270         (charset_code_point): New function.
2271
2272         * char-ucs.h (range_charset_code_point): New interface.
2273         (breakup_char_1): Use `range_charset_code_point'.
2274
2275 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2276
2277         * mule-charset.c (Fmake_charset): Delete unused local variable
2278         `code_offset'.
2279
2280         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
2281         (breakup_char_1): Find a charset and code-point in
2282         `Vcharacter_attribute_table'.
2283
2284 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2285
2286         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2287         to 0.10 (Yao).
2288
2289 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
2290
2291         * mule-charset.c (Vcharacter_attribute_table): New variable.
2292         (Fchar_attribute_alist): New function.
2293         (Fget_char_attribute): New function.
2294         (Fput_char_attribute): New function.
2295         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
2296         too.
2297         (syms_of_mule_charset): Add new function `char-attribute-alist',
2298         `get-char-attribute' and `put-char-attribute'.
2299         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
2300
2301 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
2302
2303         * mule-charset.c (Fmake_charset): Just use
2304         `get_unallocated_leading_byte'.
2305
2306         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
2307         sets; don't use final-byte based number for private sets.
2308
2309 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2310
2311         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
2312         integer.
2313
2314 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2315
2316         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2317         to 0.9.
2318
2319 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2320
2321         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
2322         of `CHAR_LEADING_BYTE' in UTF-2000.
2323
2324         * insdel.c (find_charsets_in_bufbyte_string): Use
2325         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2326         (find_charsets_in_emchar_string): Likewise.
2327
2328         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
2329         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2330
2331         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
2332         (CHAR_CHARSET_ID): New macro.
2333
2334 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2335
2336         * chartab.c (get_char_table): Don't use type `Charset_ID' for
2337         charset-id - MIN_LEADING_BYTE.
2338         (put_char_table): Likewise.
2339
2340 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2341
2342         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
2343         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
2344         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
2345         (CHARSET_ID_OFFSET): New macro.
2346         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
2347         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
2348         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
2349         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2350         4).
2351         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2352         5).
2353         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
2354         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
2355         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
2356         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
2357         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
2358
2359 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2360
2361         * mule-charset.c (next_allocated_leading_byte): New variable in
2362         UTF-2000.
2363         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
2364         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
2365         (get_unallocated_leading_byte): Simply use
2366         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
2367         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
2368         UTF-2000.
2369
2370         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
2371         (MAX_LEADING_BYTE_PRIVATE): New macro.
2372         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
2373         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
2374
2375 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2376
2377         * mule-charset.c (Fmake_charset): Allocate final-byte based
2378         charset-id for 94-set, 96-set and 94x94-set.
2379
2380 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2381
2382         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
2383         ambiguous `else'.
2384         (Fmake_charset): Likewise.
2385         (complex_vars_of_mule_charset): Modify the font registry of
2386         `ucs-bmp' not to match `Ethiopic-Unicode'.
2387
2388 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2389
2390         * mule-charset.c (complex_vars_of_mule_charset): Add font
2391         registory of `ucs-bmp'.
2392
2393 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2394
2395         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
2396         coded-charsets in `default-coded-charset-priority-list' when
2397         breaking up a character.
2398
2399         * mule-charset.c (Vcharset_latin_viscii): New variable.
2400         (Qlatin_viscii): New variable.
2401         (make_charset): Don't use `decoding_table'.
2402         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
2403         byte_offset.
2404         (Fset_charset_mapping_table): New implementation.
2405         (syms_of_mule_charset): Add new symbol `latin-viscii'.
2406         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
2407         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
2408         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
2409         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
2410         charset `latin_viscii'.
2411
2412         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
2413         (CHARSET_TYPE_94X94): Change to 1 from 2.
2414         (CHARSET_TYPE_96): Change to 2 from 1.
2415         (CHARSET_TYPE_128): New macro.
2416         (CHARSET_TYPE_128X128): Change to 5 from 4.
2417         (CHARSET_TYPE_256): New macro.
2418         (CHARSET_TYPE_256X256): Change to 7 from 5.
2419         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
2420
2421 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2422
2423         * text-coding.c (char_encode_shift_jis): Refer
2424         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
2425         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
2426
2427         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
2428         (char_byte_table_equal): New function in UTF-2000.
2429         (char_byte_table_hash): New function in UTF-2000.
2430         (char_byte_table_description): New constant in UTF-2000.
2431         (char_byte_table): New type in UTF-2000.
2432         (make_char_byte_table): New function in UTF-2000.
2433         (copy_char_byte_table): New function in UTF-2000.
2434         (make_char_code_table): New macro in UTF-2000.
2435         (get_char_code_table): New function in UTF-2000.
2436         (put_char_code_table): New function in UTF-2000.
2437         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2438         (charset_description): Add setting in UTF-2000.
2439         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
2440         `CHARSET_TO_BYTE1_TABLE(cs)'.
2441         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
2442         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
2443         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
2444         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
2445         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
2446         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
2447         `CHARSET_TO_BYTE2_TABLE(cs)'.
2448
2449         * char-ucs.h (char_byte_table): New type.
2450         (XCHAR_BYTE_TABLE): New macro.
2451         (XSETCHAR_BYTE_TABLE): New macro.
2452         (CHAR_BYTE_TABLE_P): New macro.
2453         (GC_CHAR_BYTE_TABLE_P): New macro.
2454         (struct Lisp_Char_Byte_Table): New structure.
2455         (get_char_code_table): New interface.
2456         (Emchar_to_byte_table): Deleted.
2457         (get_byte_from_character_table): Deleted.
2458         (struct Lisp_Charset): Add `encoding_table'; delete
2459         `to_byte1_table' and `to_byte2_table'.
2460         (CHARSET_ENCODING_TABLE): New macro.
2461         (CHARSET_TO_BYTE1_TABLE): Deleted.
2462         (CHARSET_TO_BYTE2_TABLE): Deleted.
2463         (XCHARSET_ENCODING_TABLE): New macro.
2464         (XCHARSET_TO_BYTE1_TABLE): Deleted.
2465         (XCHARSET_TO_BYTE2_TABLE): Deleted.
2466
2467 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2468
2469         * mule-charset.c (syms_of_mule_charset): Delete charset alias
2470         `vietnamese-viscii-*'.
2471
2472 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2473
2474         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
2475         (Qvietnamese_viscii_upper): New variable.
2476         (Fdefine_charset_alias): New function.
2477         (syms_of_mule_charset): Add new function `define-charset-alias'.
2478         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
2479         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
2480         `latin-viscii-*'.
2481
2482 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
2483
2484         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
2485         (MAX_CHAR_OBS_94x94): New macro.
2486         (breakup_char_1): Support obsolete XEmacs-UCS private code space
2487         for 94x94 sets.
2488
2489         * mule-charset.c (put_byte_from_character_table): Change unit size
2490         from 128 to 256.
2491         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
2492         not defined.
2493         (Fmake_reverse_direction_charset): Modify dummy argument of
2494         `make_charset' for non-UTF-2000 environment.
2495
2496 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2497
2498         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
2499
2500         * mule-charset.c (destroy_byte_from_character_table): New macro.
2501         (latin_jisx0201_to_ucs): Deleted.
2502         (latin_iso8859_2_to_ucs): Deleted.
2503         (latin_iso8859_3_to_ucs): Deleted.
2504         (latin_iso8859_4_to_ucs): Deleted.
2505         (latin_iso8859_9_to_ucs): Deleted.
2506         (latin_viscii_lower_to_ucs): Deleted.
2507         (latin_viscii_upper_to_ucs): Deleted.
2508         (mark_charset): Mark `cs->decoding_table'.
2509         (Fcharset_mapping_table): Fix DOC-string.
2510         (Fset_charset_mapping_table): New function.
2511         (syms_of_mule_charset): Add nwe function
2512         `set-charset-mapping-table'.
2513         (complex_vars_of_mule_charset): Don't setup and use
2514         `latin_*_to_ucs'.
2515
2516 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2517
2518         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
2519         charset.
2520
2521 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2522
2523         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
2524         (Vcharset_katakana_jisx0208): New variable.
2525         (Qhiragana_jisx0208): New variable.
2526         (Qkatakana_jisx0208): New variable.
2527         (make_charset): Add new argument `byte_offset'.
2528         (charset_get_byte1): Modify for new coded-charset definition; use
2529         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
2530         `XCHARSET_BYTE_OFFSET'.
2531         (Fmake_charset): Modify for `make_charset'.
2532         (Fmake_reverse_direction_charset): Likewise.
2533         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
2534         `katakana-jisx0208'.
2535         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
2536         `.'  in font registry of charset `katakana-jisx0201',
2537         `latin-jisx0201', `vietnamese-viscii-lower' and
2538         `vietnamese-viscii-upper'; modify DOC-string of charset
2539         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
2540         registry of charset `japanese-jisx0208' not to use font for JIS
2541         X0208:1990; add new charset `hiragana-jisx0208' and
2542         `katakana-jisx0208'.
2543
2544         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
2545         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
2546         (struct Lisp_Charset): Add `byte_offset'.
2547         (CHARSET_BYTE_OFFSET): New macro.
2548         (XCHARSET_UCS_MIN): New macro.
2549         (XCHARSET_UCS_MAX): New macro.
2550         (XCHARSET_CODE_OFFSET): New macro.
2551         (XCHARSET_BYTE_OFFSET): New macro.
2552         (MIN_CHAR_HIRAGANA): New macro.
2553         (MAX_CHAR_HIRAGANA): New macro.
2554         (MIN_CHAR_KATAKANA): New macro.
2555         (MAX_CHAR_KATAKANA): New macro.
2556         (MAKE_CHAR): Modify for new coded-charset definition; use
2557         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
2558         `XCHARSET_BYTE_OFFSET'.
2559
2560 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2561
2562         * mule-charset.c (CHAR96): Deleted.
2563         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
2564         <Lisp_Object>.
2565         (latin_iso8859_2_to_ucs): Likewise.
2566         (latin_iso8859_3_to_ucs): Likewise.
2567         (latin_iso8859_4_to_ucs): Likewise.
2568         (latin_iso8859_9_to_ucs): Likewise.
2569         (latin_viscii_lower_to_ucs): Likewise.
2570         (latin_viscii_upper_to_ucs): Likewise.
2571         (latin_tcvn5712_to_ucs): Commented out.
2572         (make_charset): Change type of argument `decoding_table' from
2573         <Emchar*> to <Lisp_Object> [vector of characters].
2574         (Fmake_charset): Modify for `make_charset'.
2575         (Fmake_reverse_direction_charset): Likewise.
2576         (Fcharset_mapping_table): New function in UTF-2000.
2577         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
2578         UTF-2000.
2579         (complex_vars_of_mule_charset): Modify for type change of
2580         `*_to_ucs'; modify for `make_charset'.
2581
2582         * char-ucs.h (struct Lisp_Charset): Change type of
2583         `decoding_table' from <Emchar*> to <Lisp_Object>.
2584         (MAKE_CHAR): Modify for new specification of `decoding_table'.
2585
2586 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
2587
2588         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
2589         error with non-UTF-2000-Mule.
2590
2591 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
2592
2593         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
2594         in lisp again].
2595         (Vcharset_chinese_cns11643_4): Likewise.
2596         (Vcharset_chinese_cns11643_5): Likewise.
2597         (Vcharset_chinese_cns11643_6): Likewise.
2598         (Vcharset_chinese_cns11643_7): Likewise.
2599         (Qchinese_cns11643_3): Likewise.
2600         (Qchinese_cns11643_4): Likewise.
2601         (Qchinese_cns11643_5): Likewise.
2602         (Qchinese_cns11643_6): Likewise.
2603         (Qchinese_cns11643_7): Likewise.
2604         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
2605         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
2606         and `chinese-cns11643-7' to lisp/mule/chinese.el.
2607         (complex_vars_of_mule_charset): Likewise.
2608
2609 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2610
2611         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
2612         96-set.
2613         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
2614         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
2615
2616 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
2617
2618         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
2619         0xFF60.
2620         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
2621         (breakup_char_1): Likewise.
2622
2623         * text-coding.c (char_encode_iso2022): Keep designated charsets if
2624         one of them includes the specified character.
2625
2626 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
2627
2628         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
2629
2630 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
2631
2632         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
2633
2634 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
2635
2636         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
2637         definition for non-UTF-2000 Mule.
2638         (latin_iso8859_3_to_ucs): Likewise.
2639         (latin_iso8859_4_to_ucs): Likewise.
2640         (latin_iso8859_9_to_ucs): Likewise.
2641         (latin_jisx0201_to_ucs): Likewise.
2642         (MIN_CHAR_THAI): Likewise.
2643         (MAX_CHAR_THAI): Likewise.
2644         (MIN_CHAR_GREEK): Likewise.
2645         (MAX_CHAR_GREEK): Likewise.
2646         (MIN_CHAR_HEBREW): Likewise.
2647         (MAX_CHAR_HEBREW): Likewise.
2648         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
2649         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
2650         (MIN_CHAR_CYRILLIC): Likewise.
2651         (MAX_CHAR_CYRILLIC): Likewise.
2652
2653 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
2654
2655         * char-ucs.h (breakup_char_1): Use
2656         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
2657         thai-tis620 and katakana-jisx0201 area.
2658
2659 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2660
2661         * char-ucs.h (breakup_char_1): Use
2662         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
2663         area.
2664
2665         * text-coding.c (reset_encoding_stream): Fixed.
2666         (char_encode_ucs4): Delete `& 255'.
2667
2668         * char-ucs.h (breakup_char_1): Use
2669         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
2670
2671 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2672
2673         * file-coding.c (Fmake_coding_system): Don't set up
2674         `codesys->fixed.size'.
2675         (encode_coding_no_conversion): Don't refer
2676         `str->codesys->fixed.size'.
2677
2678 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2679
2680         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
2681         (latin_a_char_to_byte1): Deleted.
2682         (latin_a_char_to_byte2): Deleted.
2683
2684 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2685
2686         * mule-charset.c (make_charset): Add new argument `ucs_min',
2687         `ucs_max' and `code_offset'.
2688         (charset_get_byte1): New implementation [delete specific charset
2689         depended implementations].
2690         (Fmake_charset): Modify for `make_charset'.
2691         (Fmake_reverse_direction_charset): Likewise.
2692         (complex_vars_of_mule_charset): Likewise.
2693
2694         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
2695         `code_offset'.
2696         (CHARSET_UCS_MIN): New macro.
2697         (CHARSET_UCS_MAX): New macro.
2698         (CHARSET_CODE_OFFSET): New macro.
2699         (MAKE_CHAR): Delete charset depended definitions [except
2700         katakana-jisx0201].
2701
2702 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
2703
2704         * char-ucs.h (breakup_char_1): Use
2705         `Vdefault_coded_charset_priority_list' for C0-Controls,
2706         Basic-Latin, C1-Controls and Latin-1-Supplement area.
2707
2708 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2709
2710         * char-ucs.h (charset_get_byte1): New function.
2711         (XCHARSET_GET_BYTE1): Deleted.
2712         (charset_get_byte2): New function.
2713         (XCHARSET_GET_BYTE2): Deleted.
2714         (Vdefault_coded_charset_priority_list): New external variable.
2715         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
2716         `Vdefault_preferred_coded_charset_list'.
2717
2718         * mule-charset.c (charset_get_byte1): New function.
2719         (charset_get_byte2): New function.
2720         (Vdefault_coded_charset_priority_list): New variable.
2721         (vars_of_mule_charset): Add new variable
2722         `default-coded-charset-priority-list'.
2723
2724 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2725
2726         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
2727         (XCHARSET_GET_BYTE2): New inline function.
2728         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
2729         `XCHARSET_GET_BYTE2'.
2730
2731 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2732
2733         * mule-charset.c (make_charset): Initialize
2734         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
2735         NULL if table is not defined.
2736
2737 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2738
2739         * text-coding.c (char_encode_shift_jis): Use
2740         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
2741         `ucs_to_latin_jisx0201'.
2742
2743         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
2744         (ucs_to_latin_iso8859_2): Deleted.
2745         (ucs_to_latin_iso8859_3): Deleted.
2746         (ucs_to_latin_iso8859_4): Deleted.
2747         (ucs_to_latin_iso8859_9): Deleted.
2748         (ucs_to_latin_viscii_lower): Deleted.
2749         (ucs_to_latin_viscii_upper): Deleted.
2750         (ucs_to_latin_tcvn5712): Deleted.
2751         (make_charset): Add new argument `decoding_table'; set up
2752         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
2753         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
2754         `decoding_table' is defined in UTF-2000.
2755         (Fmake_charset): Modify for `make_charset'.
2756         (Fmake_reverse_direction_charset): Likewise.
2757         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
2758         and `GENERATE_96_SET'.
2759
2760         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
2761         (ucs_to_latin_jisx0201): Deleted.
2762         (latin_iso8859_2_to_ucs): Deleted.
2763         (ucs_to_latin_iso8859_2): Deleted.
2764         (latin_iso8859_3_to_ucs): Deleted.
2765         (ucs_to_latin_iso8859_3): Deleted.
2766         (latin_iso8859_4_to_ucs): Deleted.
2767         (ucs_to_latin_iso8859_4): Deleted.
2768         (latin_iso8859_9_to_ucs): Deleted.
2769         (ucs_to_latin_iso8859_9): Deleted.
2770         (latin_viscii_lower_to_ucs): Deleted.
2771         (ucs_to_latin_viscii_lower): Deleted.
2772         (latin_viscii_upper_to_ucs): Deleted.
2773         (ucs_to_latin_viscii_upper): Deleted.
2774         (struct Lisp_Charset): Renamed `encoding_table' to
2775         `to_byte1_table'; add `to_byte2_table'.
2776         (CHARSET_DECODING_TABLE): New macro.
2777         (CHARSET_TO_BYTE1_TABLE): New macro.
2778         (CHARSET_TO_BYTE2_TABLE): New macro.
2779         (XCHARSET_DECODING_TABLE): New macro.
2780         (XCHARSET_TO_BYTE1_TABLE): New macro.
2781         (XCHARSET_TO_BYTE2_TABLE): New macro.
2782         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
2783         tables.
2784         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
2785         don't use `ucs_to_*' tables.
2786
2787 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2788
2789         * text-coding.c (Fmake_coding_system): Don't set up
2790         `codesys->fixed.size'.
2791         (encode_coding_no_conversion): Use `if' instead of `switch'.
2792
2793         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
2794
2795 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2796
2797         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
2798         (Fmake_charset): Modify for `make_charset'.
2799         (Fmake_reverse_direction_charset): Likewise.
2800         (complex_vars_of_mule_charset): Likewise.
2801
2802 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2803
2804         * text-coding.c (char_encode_shift_jis): Use table
2805         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
2806
2807 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2808
2809         * text-coding.c (text_encode_generic): Use `if' instead of
2810         `switch'.
2811         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
2812         decode JIS-Latin.
2813
2814 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2815
2816         * text-coding.c (encode_coding_sjis): Deleted.
2817         (char_encode_shift_jis): New function.
2818         (char_finish_shift_jis): New function.
2819         (reset_encoding_stream): Set up `encode_char' and `finish' for
2820         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
2821         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
2822         (char_encode_utf8): Treat `eol_type'.
2823
2824 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2825
2826         * file-coding.c (decode_coding_iso2022): Use
2827         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
2828
2829 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2830
2831         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2832         to 0.7 (Hirano).
2833
2834 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2835
2836         * char-lb.h (CHAR_COLUMNS): New macro.
2837
2838 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2839
2840         * text-coding.c (char_encode_ucs4): New function.
2841         (char_finish_ucs4): New function.
2842         (encode_coding_ucs4): Deleted.
2843         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
2844         (text_encode_generic): Delete local variable `charset' and `half'.
2845         (ucs_to_mule_table): Deleted.
2846         (mule_to_ucs_table): Deleted.
2847         (Fset_ucs_char): Deleted.
2848         (ucs_to_char): Deleted.
2849         (Fucs_char): Deleted.
2850         (Fset_char_ucs): Deleted.
2851         (Fchar_ucs): Deleted.
2852         (decode_ucs4): Deleted.
2853         (mule_char_to_ucs4): Deleted.
2854         (encode_ucs4): Deleted.
2855         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
2856         (decode_coding_utf8): Likewise.
2857         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
2858         (char_encode_iso2022): Fixed.
2859         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
2860         `Fset_char_ucs' and `Fchar_ucs'.
2861         (complex_vars_of_file_coding): Don't initialize
2862         `ucs_to_mule_table'.
2863
2864         * objects-tty.c (tty_initialize_font_instance): Don't use
2865         `XCHARSET_COLUMNS'.
2866
2867         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
2868         UTF-2000.
2869
2870         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
2871         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
2872
2873         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
2874         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
2875         (emchar_string_displayed_columns): Likewise.
2876
2877         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
2878         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
2879         (string_column_at_point): Likewise.
2880         (Fmove_to_column): Likewise.
2881
2882         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
2883         `encoding_table' and `decoding_table'.
2884         (CHARSET_REP_BYTES): Deleted.
2885         (XCHARSET_REP_BYTES): Deleted.
2886         (XCHARSET_COLUMNS): Deleted.
2887         (CHAR_COLUMNS): New macro.
2888         (lookup_composite_char): Deleted unconditionally.
2889         (composite_char_string): Likewise.
2890
2891 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2892
2893         * char-ucs.h (Emchar_to_byte_table): New type.
2894         (get_byte_from_character_table): New function interface.
2895         (Vcharset_latin_jisx0201): New variable.
2896         (latin_jisx0201_to_ucs): New variable.
2897         (ucs_to_latin_jisx0201): New variable.
2898         (Vcharset_latin_iso8859_2): New variable.
2899         (latin_iso8859_2_to_ucs): New variable.
2900         (ucs_to_latin_iso8859_2): New variable.
2901         (Vcharset_latin_iso8859_3): New variable.
2902         (latin_iso8859_3_to_ucs): New variable.
2903         (ucs_to_latin_iso8859_3): New variable.
2904         (Vcharset_latin_iso8859_4): New variable.
2905         (latin_iso8859_4_to_ucs): New variable.
2906         (ucs_to_latin_iso8859_4): New variable.
2907         (Vcharset_latin_iso8859_9): New variable.
2908         (latin_iso8859_9_to_ucs): New variable.
2909         (ucs_to_latin_iso8859_9): New variable.
2910         (Vcharset_latin_viscii_lower): New variable.
2911         (latin_viscii_lower_to_ucs): New variable.
2912         (ucs_to_latin_viscii_lower): New variable.
2913         (Vcharset_latin_viscii_upper): New variable.
2914         (latin_viscii_upper_to_ucs): New variable.
2915         (ucs_to_latin_viscii_upper): New variable.
2916         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
2917         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
2918         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
2919         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
2920         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
2921         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
2922         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
2923         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
2924         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
2925         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
2926
2927         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
2928         (Vcharset_latin_viscii_upper): New variable.
2929         (make_byte_from_character_table): New function.
2930         (put_byte_from_character_table): New function.
2931         (get_byte_from_character_table): New function.
2932         (CHAR96): New macro.
2933         (ucs_to_latin_jisx0201): New variable.
2934         (latin_jisx0201_to_ucs): New variable.
2935         (ucs_to_latin_iso8859_2): New variable.
2936         (latin_iso8859_2_to_ucs): New variable.
2937         (ucs_to_latin_iso8859_3): New variable.
2938         (latin_iso8859_3_to_ucs): New variable.
2939         (ucs_to_latin_iso8859_4): New variable.
2940         (latin_iso8859_4_to_ucs): New variable.
2941         (ucs_to_latin_iso8859_9): New variable.
2942         (latin_iso8859_9_to_ucs): New variable.
2943         (ucs_to_latin_viscii_lower): New variable.
2944         (latin_viscii_lower_to_ucs): New variable.
2945         (ucs_to_latin_viscii_upper): New variable.
2946         (latin_viscii_upper_to_ucs): New variable.
2947         (ucs_to_latin_tcvn5712): New variable.
2948         (latin_tcvn5712_to_ucs): New variable.
2949         (Qlatin_viscii_lower): New variable.
2950         (Qlatin_viscii_upper): New variable.
2951         (syms_of_mule_charset): Set up new symbol
2952         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
2953         (complex_vars_of_mule_charset): Set up new charset
2954         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
2955         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
2956         `ucs_to_<CHARSET>' tables.
2957
2958 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
2959
2960         * text-coding.c: New file.
2961
2962 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2963
2964         * mule-charset.c (Fmake_char): Fix problem of 256-set.
2965
2966         * char-ucs.h (Vcharset_ucs_bmp): New variable.
2967         (MAKE_CHAR): Modify for `ucs-bmp'.
2968         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
2969         non-MULE characters of BMP.
2970
2971 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
2972
2973         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2974         to 0.6.
2975
2976 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2977
2978         * lstream.h:
2979         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
2980         - Include character.h for `CHAR_ASCII_P'.
2981
2982         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
2983
2984         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
2985         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
2986
2987         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
2988         (BYTE_C0_P): Likewise.
2989         (BYTE_C1_P): Likewise.
2990         (Lstream_get_emchar_1): Likewise.
2991         (Lstream_fput_emchar): Likewise.
2992         (Lstream_funget_emchar): Likewise.
2993         (copy_internal_to_external): Likewise.
2994         (copy_external_to_internal): Likewise.
2995
2996         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
2997         (BYTE_C0_P): Likewise.
2998         (BYTE_C1_P): Likewise.
2999         (Lstream_get_emchar_1): Likewise.
3000         (Lstream_fput_emchar): Likewise.
3001         (Lstream_funget_emchar): Likewise.
3002         (copy_internal_to_external): Likewise.
3003         (copy_external_to_internal): Likewise.
3004
3005         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
3006         (REP_BYTES_BY_FIRST_BYTE): Likewise.
3007
3008         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
3009         (BYTE_ASCII_P): Moved to mb-1byte.h.
3010
3011 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3012
3013         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
3014
3015         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
3016         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
3017         (VALID_CHARPTR_P): Moved to mb-*byte.h.
3018         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3019         (VALIDATE_CHARPTR_FORWARD): Likewise.
3020         (simple_charptr_emchar): Moved to mb-multibyte.h.
3021         (simple_set_charptr_emchar): Likewise.
3022         (simple_charptr_copy_char): Likewise.
3023         (non_ascii_charptr_emchar): Likewise.
3024         (non_ascii_set_charptr_emchar): Likewise.
3025         (non_ascii_charptr_copy_char): Likewise.
3026         (charptr_emchar): Moved to mb-*byte.h.
3027         (set_charptr_emchar): Likewise.
3028         (charptr_copy_char): Likewise.
3029
3030         * mb-1byte.h, mb-multibyte.h: New files.
3031
3032 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3033
3034         * mb-utf-8.h (MULTIBYTE): New macro.
3035         (MAX_EMCHAR_LEN): Moved from buffer.h.
3036         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
3037
3038         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
3039
3040         * mb-lb.h, multibyte.h: New files.
3041
3042         * char-1byte.h (Charset_ID): Moved from buffer.h.
3043         (MIN_LEADING_BYTE): Likewise.
3044         (LEADING_BYTE_ASCII): Likewise.
3045         (NUM_LEADING_BYTES): Likewise.
3046         (CHARSETP): Likewise.
3047         (CHARSET_BY_LEADING_BYTE): Likewise.
3048         (XCHARSET_LEADING_BYTE): Likewise.
3049         (XCHARSET_GRAPHIC): Likewise.
3050         (XCHARSET_COLUMNS): Likewise.
3051         (XCHARSET_DIMENSION): Likewise.
3052         (CHAR_CHARSET): Likewise.
3053         (CHAR_LEADING_BYTE): Likewise.
3054         (BREAKUP_CHAR): Likewise.
3055         (Vcharset_ascii): Likewise.
3056
3057         * buffer.h: Include multibyte.h unconditionally.
3058         (VALID_CHARPTR_P): Moved to multibyte.h.
3059         (ASSERT_VALID_CHARPTR): Likewise.
3060         (REAL_INC_CHARPTR): Likewise.
3061         (REAL_INC_CHARBYTIND): Likewise.
3062         (REAL_DEC_CHARPTR): Likewise.
3063         (INC_CHARPTR): Likewise.
3064         (INC_CHARBYTIND): Likewise.
3065         (DEC_CHARPTR): Likewise.
3066         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3067         (VALIDATE_CHARPTR_FORWARD): Likewise.
3068         (charptr_n_addr): Likewise.
3069         (MAX_EMCHAR_LEN): Moved to mb-*.h.
3070         (simple_charptr_emchar): Moved to multibyte.h.
3071         (simple_set_charptr_emchar): Likewise.
3072         (simple_charptr_copy_char): Likewise.
3073         (non_ascii_charptr_emchar): Likewise.
3074         (non_ascii_set_charptr_emchar): Likewise.
3075         (non_ascii_charptr_copy_char): Likewise.
3076         (charptr_emchar): Likewise.
3077         (set_charptr_emchar): Likewise.
3078         (charptr_copy_char): Likewise.
3079         (charptr_emchar_n): Likewise.
3080         (Charset_ID): Moved to char-1byte.h.
3081         (Vcharset_ascii): Likewise.
3082         (CHAR_CHARSET): Likewise.
3083         (CHAR_LEADING_BYTE): Likewise.
3084         (LEADING_BYTE_ASCII): Likewise.
3085         (NUM_LEADING_BYTES): Likewise.
3086         (MIN_LEADING_BYTE): Likewise.
3087         (CHARSETP): Likewise.
3088         (CHARSET_BY_LEADING_BYTE): Likewise.
3089         (XCHARSET_LEADING_BYTE): Likewise.
3090         (XCHARSET_GRAPHIC): Likewise.
3091         (XCHARSET_COLUMNS): Likewise.
3092         (XCHARSET_DIMENSION): Likewise.
3093         (BREAKUP_CHAR): Likewise.
3094
3095 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3096
3097         * character.h: Add document about interface for characters.
3098
3099         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
3100         (MAKE_CHAR): Delete comment about
3101         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
3102         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
3103         (BREAKUP_CHAR): Modify name of arguments.
3104         (CHAR_CHARSET): Modify name of argument.
3105
3106         * buffer.h: Delete document about Emchar accessors.
3107
3108 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3109
3110         * character.h (CHAR_INTP): Moved from buffer.h
3111         (CHAR_OR_CHAR_INTP): Likewise.
3112         (XCHAR_OR_CHAR_INT): Likewise.
3113         (CHECK_CHAR_COERCE_INT): Likewise.
3114
3115         * buffer.h (CHAR_INTP): Moved to character.h
3116         (CHAR_OR_CHAR_INTP): Likewise.
3117         (XCHAR_OR_CHAR_INT): Likewise.
3118         (CHECK_CHAR_COERCE_INT): Likewise.
3119
3120 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3121
3122         * character.h:
3123         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
3124         - Include char-1byte.h, char-lb.h or char-ucs.h.
3125
3126         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
3127
3128         * buffer.h: Include character unconditionally.
3129         (valid_char_p): Moved to char-*.h.
3130         (non_ascii_valid_char_p): Moved to char-lb.h.
3131
3132         * char-1byte.h, char-lb.h, char-ucs.h: New files.
3133
3134 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3135
3136         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
3137         in UTF-2000 because it is not ported yet and not to use
3138         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
3139         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
3140         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
3141
3142         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
3143         (CHAR_ASCII_P): Moved from character.h.
3144
3145         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
3146         (CHAR_ASCII_P): Likewise.
3147         (CHAR_FIELD1_MASK): Deleted.
3148         (CHAR_FIELD2_MASK): Deleted.
3149         (CHAR_FIELD3_MASK): Deleted.
3150         (MAX_CHAR_BASIC_LATIN): New macro.
3151         (CHAR_FIELD1): Deleted.
3152         (CHAR_FIELD2_INTERNAL): Deleted.
3153         (CHAR_FIELD3_INTERNAL): Deleted.
3154         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
3155         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
3156         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
3157         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
3158         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
3159         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
3160         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
3161         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
3162         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
3163         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
3164         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
3165         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
3166         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
3167         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
3168         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
3169         (MIN_CHAR_COMPOSITION): Deleted.
3170         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
3171         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
3172
3173 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
3174
3175         * buffer.h: Include mb-utf-8.h in UTF-2000.
3176
3177         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
3178
3179         * mb-utf-8.h: New file.
3180
3181 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
3182
3183         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
3184         instead of `int'.
3185
3186         * mule-charset.h, buffer.h (Charset_ID): New type.
3187
3188 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
3189
3190         * mule-canna.c (c2mu): Use `MAKE_CHAR',
3191         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
3192         instead of `MULE_CHAR_PRIVATE_OFFSET',
3193         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
3194         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
3195         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
3196
3197         * character.h (Vcharset_japanese_jisx0212): New variable
3198         definition.
3199
3200 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
3201
3202         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
3203         (charset_by_attributes): Delete array about direction.
3204         (latin_a_char_to_charset): New variable in UTF-2000.
3205         (latin_a_char_to_byte1): New variable in UTF-2000.
3206         (latin_a_char_to_byte2): New variable in UTF-2000.
3207         (Qucs_bmp): New variable.
3208         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
3209         `Bufbyte'.
3210         (next_allocated_2_byte_leading_byte): Likewise.
3211         (non_ascii_set_charptr_emchar): Likewise.
3212         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
3213         `CHARSET_TYPE_256X256' in UTF-2000; modify for
3214         `charset_by_attributes'.
3215         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
3216         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
3217         and `CHARSET_BY_LEADING_BYTE'.
3218         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
3219         `utf-2000-version' to `vars_of_mule_charset'.
3220         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
3221         define `leading-code-private-11' in UTF-2000; move setting of
3222         `utf-2000-version' from `syms_of_mule_charset'.
3223         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
3224         UTF-2000.
3225
3226         * character.h (Charset_ID): New type.
3227         (LEADING_BYTE_UCS_BMP): New macro.
3228         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
3229         (CHARSET_ID_OFFSET_94): New macro.
3230         (MIN_CHARSET_ID_PRIVATE_94): New macro.
3231         (MAX_CHARSET_ID_PRIVATE_94): New macro.
3232         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
3233         final-byte.
3234         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
3235         (LEADING_BYTE_LATIN_JISX0201): Likewise.
3236         (CHARSET_ID_OFFSET_96): New macro.
3237         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
3238         CHARSET_ID_OFFSET_96 and final-byte.
3239         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
3240         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
3241         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
3242         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
3243         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
3244         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
3245         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
3246         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
3247         (LEADING_BYTE_THAI_TIS620): Likewise.
3248         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
3249         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
3250         (CHARSET_ID_OFFSET_94x94): New macro.
3251         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
3252         CHARSET_ID_OFFSET_94x94 and final-byte.
3253         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
3254         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
3255         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
3256         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
3257         (LEADING_BYTE_CHINESE_GB2312): Likewise.
3258         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
3259         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
3260         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
3261         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
3262         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
3263         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
3264         (CHARSET_TYPE_128X128): New macro.
3265         (CHARSET_TYPE_256X256): New macro.
3266         (XCHARSET_PRIVATE_P): Delete unconditionally.
3267         (charset_by_attributes): Delete array about direction.
3268         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
3269         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
3270         (MIN_CHAR_94): New macro.
3271         (MAX_CHAR_94): New macro.
3272         (MIN_CHAR_96): New macro.
3273         (MAX_CHAR_96): New macro.
3274         (MIN_CHAR_94x94): New macro.
3275         (MAX_CHAR_94x94): New macro.
3276         (MIN_CHAR_96x96): New macro.
3277         (MAX_CHAR_96x96): New macro.
3278         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
3279         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3280         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
3281         - 32)'.
3282         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
3283         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
3284         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
3285         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
3286         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
3287         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
3288         `XCHARSET_LEADING_BYTE' to make code-point.
3289         (latin_a_char_to_charset): New variable.
3290         (latin_a_char_to_byte1): New variable.
3291         (latin_a_char_to_byte2): New variable.
3292         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
3293         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
3294         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
3295
3296         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
3297         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
3298         (find_charsets_in_emchar_string): Likewise.
3299         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
3300
3301         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
3302         `int'.
3303         (decode_coding_iso2022): Likewise.
3304
3305         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
3306         of `unsigned char'.
3307
3308         * redisplay.c (redisplay_text_width_emchar_string): Use
3309         `Charset_ID' instead of `unsigned char'.
3310         (redisplay_frame_text_width_string): Likewise.
3311
3312         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
3313         `unsigned char'.
3314
3315         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
3316         instead of `unsigned char'.
3317         (face_cachel_charset_font_metric_info): Likewise.
3318
3319         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
3320         (get_non_ascii_char_table_value): Likewise.
3321         (get_char_table): Likewise.
3322         (put_char_table): Likewise.
3323         (map_over_other_charset): Likewise.
3324         (map_char_table): Likewise.
3325
3326         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
3327         instead of `unsigned char'.
3328
3329 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
3330
3331         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
3332         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
3333
3334         * mule-charset.c (leading_code_private_11): Don't define in
3335         UTF-2000.
3336
3337         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
3338         in UTF-2000 because it is not ported yet and not to use
3339         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
3340
3341 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
3342
3343         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
3344
3345 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3346
3347         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
3348         in UTF-2000.
3349
3350         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
3351         of unsigned char to store leading-byte.
3352
3353         * chartab.c (get_non_ascii_char_table_value): Don't use
3354         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
3355
3356         * file-coding.c (encode_coding_big5): Delete bogus implementation
3357         in UTF2000.
3358
3359         * character.h (LEADING_BYTE_*): Delete definition for
3360         non-UTF-2000.
3361         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
3362         (LEADING_BYTE_PREFIX_P): Deleted.
3363         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
3364         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
3365         (BUFBYTE_LEADING_BYTE_P): Deleted.
3366         (CHARSET_PRIVATE_P): Deleted unconditionally.
3367         (rep_bytes_by_first_byte): Deleted unconditionally.
3368         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
3369         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
3370         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3371         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
3372         (CHAR_FIELD2): Deleted.
3373         (CHAR_FIELD3): Deleted.
3374         (MAKE_CHAR): Delete definition for non-UTF-2000.
3375         (BREAKUP_CHAR_1_UNSAFE): Deleted.
3376         (breakup_char_1): New implementation.
3377         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
3378         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
3379
3380 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3381
3382         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
3383         condition.
3384
3385 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3386
3387         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
3388         (CHARSET_PRIVATE_P): Likewise.
3389         (XCHARSET_PRIVATE_P): Likewise.
3390         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
3391
3392         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
3393         UTF2000.
3394         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
3395
3396 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3397
3398         * character.h (LEADING_BYTE_*): Changed in UTF2000.
3399         (NUM_LEADING_BYTES): Changed from 128 to 256.
3400         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3401         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
3402         UTF2000.
3403         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3404
3405         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
3406         UTF2000.
3407         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
3408         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
3409         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
3410         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
3411         (Qchinese_cns11643_3): New variable in UTF2000.
3412         (Qchinese_cns11643_4): New variable in UTF2000.
3413         (Qchinese_cns11643_5): New variable in UTF2000.
3414         (Qchinese_cns11643_6): New variable in UTF2000.
3415         (Qchinese_cns11643_7): New variable in UTF2000.
3416         (syms_of_mule_charset): Define `chinese-cns11643-3',
3417         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3418         and `chinese-cns11643-7' in UTF2000.
3419         (vars_of_mule_charset): Initialize
3420         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
3421         + 1 in UTF2000.
3422         (complex_vars_of_mule_charset): Setup charset
3423         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
3424         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
3425
3426 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3427
3428         * mule-charset.c: Move setting for `leading-code-private-11' from
3429         `syms_of_mule_charset' to `vars_of_mule_charset'.
3430
3431 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3432
3433         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
3434         and `NUM_LEADING_BYTES' in assert.
3435
3436 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3437
3438         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
3439         instead of 128.
3440         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
3441         `NUM_LEADING_BYTES' instead of 128.
3442
3443 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3444
3445         * mule-charset.h (charset_by_leading_byte): Use
3446         `NUM_LEADING_BYTES' instead of 128.
3447         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
3448
3449         * mule-charset.c (charset_by_leading_byte): Use
3450         `NUM_LEADING_BYTES' instead of 128.
3451         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
3452
3453         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
3454         128.
3455
3456 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
3457
3458         * mule-charset.c (syms_of_mule_charset): Update to
3459         0.4 (Shin-Imamiya).
3460
3461 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
3462
3463         * file-coding.c (encode_coding_sjis): New implementation for
3464         UTF2000.  (decode_coding_sjis): Ditto.
3465
3466 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3467
3468         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
3469         Don't define in UTF2000.
3470
3471         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
3472         defined.
3473
3474         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3475         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
3476         MULE.
3477
3478 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3479
3480         * config.h.in (CHAR_IS_UCS4): New macro.
3481
3482         * mule-charset.c (rep_bytes_by_first_byte): Modify for
3483         conventional MULE representation.
3484         (syms_of_mule_charset): Update to 0.3 (Imamiya).
3485
3486         * mule-charset.h: Reverted to original.
3487
3488         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3489         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
3490         "mule-charset.h" if CHAR_IS_UCS4 is defined.
3491
3492         * character.h: New file.
3493
3494         * file-coding.c (Fmake_coding_system): Set 1 to
3495         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
3496         defined.
3497         (encode_coding_no_conversion): New implementation for UTF2000.
3498
3499         * file-coding.h (struct Lisp_Coding_System): Add new member
3500         `fixed.size'.
3501
3502 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
3503
3504         * file-coding.c (decode_coding_iso2022): Code-point arguments of
3505         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
3506         (encode_coding_iso2022): New implementation for UTF2000.
3507
3508 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3509
3510         * mule-canna.c (c2mu): New implementation for UTF2000.
3511         (m2c): Likewise.
3512
3513 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3514
3515         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
3516
3517 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3518
3519         * file-coding.c (reset_encoding_stream): Set 0 to
3520         `str->iso2022.current_char_boundary' in UTF2000.
3521         (encode_utf8): Don't define in UTF2000.
3522         (encode_coding_utf8): New implementation for UTF-8 representation
3523         of UTF2000.
3524         (complex_vars_of_file_coding): Define coding-system `utf-8'.
3525
3526 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3527
3528         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
3529
3530         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
3531         UTF2000.
3532         (REP_BYTES_BY_FIRST_BYTE): Likewise.
3533
3534         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
3535
3536         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
3537         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
3538         as UTF-8 in UTF2000.
3539         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
3540         (non_ascii_valid_char_p): Don't define in UTF2000.
3541         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
3542         (Lstream_get_emchar_1): Likewise.
3543         (utf-2000-version): New variable in UTF2000.
3544
3545         * lread.c (read_escape): Add new reader `u'.
3546
3547         * insdel.c (three_to_one_table): Don't define in UTF2000.
3548         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
3549         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
3550         UTF2000.
3551         (bytind_to_bufpos_func): Likewise.
3552         (buffer_mule_signal_inserted_region): Likewise.
3553         (vars_of_insdel): Don't initialize `three_to_one_table'.
3554         (init_buffer_text): Use `buf->text->mule_size' instead of
3555         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
3556         UTF2000.
3557
3558         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
3559         UTF-8 representation in UTF2000.
3560         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
3561         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
3562         (decode_coding_iso2022): Don't define local variable `lb' in
3563         UTF2000; don't use LEADING_BYTE in UTF2000; use
3564         `DECODE_ADD_UCS_CHAR' in UTF2000.
3565         (convert_to_external_format): Decode as UTF-8 in UTF2000.
3566
3567         * config.h.in (UTF2000): New macro.
3568
3569         * buffer.h (struct buffer_text): Add new member `mule_size' and
3570         don't add `mule_shifter' and `mule_three_p' in UTF2000.
3571         (valid_char_p): Return always 1 in UTF2000.
3572         (MAX_EMCHAR_LEN): 6 in UTF2000.
3573         (three_to_one_table): Don't define in UTF2000.
3574         (real_bufpos_to_bytind): Modify for UTF-8 representation in
3575         UTF2000.
3576         (real_bytind_to_bufpos): Likewise.
3577
3578         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
3579
3580 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3581
3582         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
3583         representation change.
3584         (Vutf_2000_version): New variable.
3585         (leading_code_private_11): New variable.
3586         (syms_of_mule_charset): Add new variables `utf-2000-version' and
3587         `leading-code-private-11'.
3588
3589         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
3590         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
3591         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
3592         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
3593         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
3594         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
3595         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
3596         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
3597         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
3598         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
3599         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
3600         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
3601         (MIN_CHAR_GREEK): New macro.
3602         (MAX_CHAR_GREEK): New macro.
3603         (MIN_CHAR_CYRILLIC): New macro.
3604         (MAX_CHAR_CYRILLIC): New macro.
3605         (MIN_CHAR_HEBREW): New macro.
3606         (MAX_CHAR_HEBREW): New macro.
3607         (MIN_CHAR_THAI): New macro.
3608         (MAX_CHAR_THAI): New macro.
3609         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
3610         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
3611         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
3612         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
3613         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
3614         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
3615         (CHAR_FIELD2): New inline function.
3616         (CHAR_FIELD3): New inline function.
3617         (MULE_CHAR_PRIVATE_OFFSET): New macro.
3618         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
3619         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
3620         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
3621         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
3622         (MIN_CHAR_COMPOSITION): Likewise.
3623         (CHAR_LEADING_BYTE): Modified for character representation change.
3624         (MAKE_CHAR): Likewise.
3625
3626         * lisp.h (Vcharset_latin_iso8859_1): New variable.
3627         (Vcharset_greek_iso8859_7): Likewise.
3628         (Vcharset_cyrillic_iso8859_5): Likewise.
3629         (Vcharset_hebrew_iso8859_8): Likewise.
3630         (Vcharset_thai_tis620): Likewise.
3631         (Vcharset_katakana_jisx0201): Likewise.
3632
3633 2001-01-26  Martin Buchholz <martin@xemacs.org>
3634
3635         * XEmacs 21.2.43 "Terspichore" is released.
3636
3637 2001-01-25  Martin Buchholz  <martin@xemacs.org>
3638
3639         Type fiddling for window_config.saved_windows_count
3640         * window.c (struct window_config): 
3641         Make saved_windows_count member unsigned.
3642         * window.c (sizeof_window_config_for_n_windows): 
3643         Make parameter unsigned.
3644         * window.c (mark_window_config):
3645         * window.c (window_config_equal):
3646         * window.c (free_window_configuration):
3647         * window.c (Fset_window_configuration):
3648         * window.c (count_windows):
3649         * window.c (Fcurrent_window_configuration):
3650         * window.c (reinit_vars_of_window):
3651         Update all callers and users.
3652
3653 2001-01-25  Martin Buchholz  <martin@xemacs.org>
3654
3655         Alignment correctness for flexible arrays.
3656         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
3657         Make alignment-correct. Add interesting comments.
3658         * alloc.c (size_vector):
3659         * alloc.c (make_vector_internal):
3660         * alloc.c (make_bit_vector_internal):
3661         * alloc.c (sweep_bit_vectors_1):
3662         * fns.c (size_bit_vector):
3663         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
3664         * window.c (sizeof_window_config_for_n_windows): 
3665         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
3666
3667 2001-01-24  Martin Buchholz  <martin@xemacs.org>
3668
3669         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
3670
3671 2001-01-23  Andy Piper  <andy@xemacs.org>
3672
3673         * select.c (Fown_selection_internal): pass owned_p
3674
3675         * select-msw.c (mswindows_own_selection): New Signature.
3676
3677         * console.h (struct console_methods): add owned_p to
3678         _own_selection.
3679
3680         * select-x.c (x_own_selection): pass owned_p
3681         (hack_motif_clipboard_selection): use owned_p
3682         (vars_of_select_x): new variable -
3683         x_selection_strict_motif_ownership.
3684
3685 2001-01-23  Martin Buchholz  <martin@xemacs.org>
3686
3687         * specifier.h (specifier_data_offset): Remove pointless parens.
3688         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
3689
3690 2001-01-24  Martin Buchholz  <martin@xemacs.org>
3691
3692         Make Lisp_Object sizeof methods be alignment-correct.
3693         pdump must restore objects to the same alignment as the C compiler
3694         assumes.  It really matters on SGIs.
3695         * lstream.c (aligned_sizeof_lstream): New.
3696         (sizeof_lstream): Use aligned_sizeof_lstream.
3697         (Lstream_new): Likewise.
3698         * opaque.c (aligned_sizeof_opaque): New.
3699         (sizeof_opaque): Use aligned_sizeof_opaque.
3700         (make_opaque): Likewise.
3701         * specifier.c (aligned_sizeof_specifier): New.
3702         (sizeof_specifier): Use aligned_sizeof_specifier.
3703         (make_specifier_internal): Likewise.
3704
3705 2001-01-23  Martin Buchholz  <martin@xemacs.org>
3706
3707         * lstream.h (struct lstream): Use max_align_t for trailing data.
3708         * specifier.h (struct Lisp_Specifier): Likewise.
3709
3710 2001-01-22  Martin Buchholz  <martin@xemacs.org>
3711
3712         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
3713         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
3714         (CCL_SUSPEND): Likewise.
3715         (CCL_INVALID_CMD): Likewise.
3716         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
3717         (ccl_driver): Likewise.
3718         (CCL_WRITE_CHAR): Macro hygiene.
3719         (CCL_WRITE_STRING): Macro hygiene.
3720
3721 2001-01-22  Martin Buchholz  <martin@xemacs.org>
3722
3723         Port "portable" dumper to SunOS 4 and HP-UX.
3724         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
3725         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
3726         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
3727
3728 2001-01-22  Martin Buchholz  <martin@xemacs.org>
3729
3730         * lisp.h (ALIGNOF): A better definition for C++.
3731
3732 2001-01-20  Martin Buchholz  <martin@xemacs.org>
3733
3734         Macro hygiene.
3735         Fix printf warnings: int format, long int arg.
3736         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
3737         (PUSH_FAILURE_POINT): Use correct printf formats.
3738         (POP_FAILURE_POINT): Use correct printf formats.  
3739         Use do {...} while (0)
3740
3741 2001-01-20  Martin Buchholz <martin@xemacs.org>
3742
3743         * XEmacs 21.2.42 "Poseidon" is released.
3744
3745 2001-01-20  Martin Buchholz  <martin@xemacs.org>
3746
3747         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
3748
3749 2001-01-19  Martin Buchholz  <martin@xemacs.org>
3750
3751         De-kludgify FIXED_TYPE free list frobbing.
3752         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
3753         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
3754         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
3755         * alloc.c (Lisp_Free): New pseudo lisp object definition.
3756         * alloc.c (LRECORD_FREE_P): New.
3757         * alloc.c (MARK_LRECORD_AS_FREE): New.
3758         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
3759         * alloc.c (STRUCT_FREE_P): Deleted.
3760         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
3761         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
3762         * alloc.c (STRING_CHARS_FREE_P): New.
3763         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
3764         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
3765         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
3766         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
3767         * alloc.c (resize_string): Use new definitions.
3768         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
3769         * alloc.c (verify_string_chars_integrity): Use new definitions.
3770         * alloc.c (compact_string_chars): Use new definitions.
3771         * alloc.c: Update monster comments.
3772         * lrecord.h (lrecord_type): Add some new lrecord types for
3773         alloc.c's use.
3774
3775 2001-01-18  Martin Buchholz  <martin@xemacs.org>
3776
3777         Improve alignment hackery.
3778         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
3779         (max_align_t): Moved from opaque.h - general purpose.
3780         (ALIGN_PTR): Use size_t, not long.
3781         * opaque.h (max_align_t): Move to lisp.h.
3782
3783 2001-01-18  Norbert Koch  <nk@LF.net>
3784
3785         * gui.h: Fix and add prototypes to fix build problems.
3786
3787 2001-01-18  Martin Buchholz  <martin@xemacs.org>
3788
3789         temacs is going away, so `dump-temacs' is now a bad name.
3790         * .dbxrc (dump-temacs): Rename to `dmp'.
3791         * .gdbinit (dump-temacs): Rename to `dmp'.
3792
3793 2001-01-17  Andy Piper  <andy@xemacs.org>
3794
3795         * glyphs.c (print_image_instance): comment to make martin happy.
3796
3797         * glyphs-x.c (x_redisplay_widget): update faces after a frame
3798         change.
3799
3800         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
3801         activation.
3802         (mswindows_tab_control_redisplay): warning suppression.
3803
3804         * glyphs-widget.c (widget_update): re-write to cope with updated
3805         items.
3806         (widget_instantiate): use new gui_item functions.
3807         (tab_control_update): deleted.
3808         (progress_gauge_update): deleted.
3809         (image_instantiator_progress_guage): take out update reference.
3810         (image_instantiator_tree_view): ditto.
3811         (image_instantiator_tab_control): ditto.
3812
3813         * gui.c (widget_gui_parse_item_keywords): new function. Do things
3814         Right the new way.
3815         (gui_item_add_keyval_pair): re-write to cope with descriptors and
3816         return whether anything was changed.
3817         (update_gui_item_keywords): as it sounds.
3818
3819         * gui.h: declare widget_gui_parse_item_keywords.
3820
3821         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
3822         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
3823
3824 2001-01-17  Martin Buchholz <martin@xemacs.org>
3825
3826         * XEmacs 21.2.41 "Polyhymnia" is released.
3827
3828 2001-01-16  Didier Verna  <didier@xemacs.org>
3829
3830         * glyphs.c (image_instantiate): don't use fallbacks when
3831         instantiating a face's background pixmap by inheritance.
3832
3833 2001-01-14  Mike Sperber <mike@xemacs.org>
3834
3835         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
3836         Conditionalize accordingly.
3837
3838 2001-01-16  Martin Buchholz  <martin@xemacs.org>
3839
3840         * dumper.c (pdump_file_get): Fix a compiler warning.
3841
3842 2001-01-15  Martin Buchholz  <martin@xemacs.org>
3843
3844         Make Purify happy when pdumping.
3845         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
3846         iniitalizing all bits of new lisp object memory.
3847         * symbols.c (Fmake_local_variable): Likewise.
3848         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
3849         * symbols.c (Fdefvaralias): Likewise.
3850         * mule-charset.c (vars_of_mule_charset): Likewise.
3851
3852 2001-01-15  Martin Buchholz  <martin@xemacs.org>
3853         Add the `-nd' flag when running pre-dump operations under the debugger.
3854         * .dbxrc (run-temacs): Add `-nd'.
3855         * .dbxrc (update-elc): Likewise.
3856         * .dbxrc (dump-temacs): Likewise.
3857         * .gdbinit (run-temacs): Likewise.
3858         * .gdbinit (check-temacs): Likewise.
3859         * .gdbinit (update-elc): Likewise.
3860         * .gdbinit (dump-temacs): Likewise.
3861
3862 2001-01-14  Martin Buchholz  <martin@xemacs.org>
3863
3864         Allow building 64-bit executables on AIX with GNU malloc, e.g.
3865         export OBJECT_MODE=64
3866         configure --pdump --use-union-type=no
3867         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
3868         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
3869
3870         * miscplay.c (sndcnv8U_2mono):
3871         Avoid two uses of `++' in the same expression.
3872         Suppresses a GCC warning.
3873
3874 2001-01-13  Martin Buchholz  <martin@xemacs.org>
3875
3876         Make sure future compilers don't miscompile alloc.c.
3877         * alloc.c:
3878         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
3879         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
3880
3881 2001-01-12  Martin Buchholz  <martin@xemacs.org>
3882
3883         * dumper.c: A little post-pdump-rename comment fixup.
3884
3885 2001-01-09  Jerry James  <james@eecs.ku.edu>
3886
3887         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
3888
3889 2001-01-13  Martin Buchholz  <martin@xemacs.org>
3890
3891         * *.[ch]: Globally rename symbols using the following `pdump-rename'
3892         script:
3893         #!/bin/sh
3894         replace_symbol () {
3895           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
3896         }
3897
3898         replace_symbol pdump_wire_lists pdump_weak_object_chains
3899         replace_symbol pdump_wire_list dump_add_weak_object_chain
3900
3901         replace_symbol pdump_wires pdump_root_objects
3902         replace_symbol pdump_wire dump_add_root_object
3903
3904         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
3905         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
3906
3907         replace_symbol dumpstructinfos pdump_root_struct_ptrs
3908         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
3909         replace_symbol dumpstructinfo pdump_root_struct_ptr
3910         replace_symbol dumpstruct dump_add_root_struct_ptr
3911
3912         replace_symbol dumpopaque dump_add_opaque
3913         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
3914         replace_symbol dumpopaqueinfos pdump_opaques
3915         replace_symbol dumpopaqueinfo pdump_opaque
3916
3917         replace_symbol nb_structdump nb_root_struct_ptrs
3918         replace_symbol nb_opaquedump nb_opaques
3919
3920         replace_symbol align_table pdump_align_table
3921         replace_symbol dump_header pdump_header
3922
3923         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
3924         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
3925
3926
3927 2001-01-12  Martin Buchholz  <martin@xemacs.org>
3928
3929         * s/aix4.h: Keep the C for AIX compiler from overaggressively
3930         optimizing bytecount_to_charcount().
3931
3932 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
3933
3934         * config.h.in:
3935         (HAVE_DLFCN_H): Removed.
3936         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
3937
3938 2001-01-06  Martin Buchholz  <martin@xemacs.org>
3939
3940         Portable dumper maintainability improvements.
3941         * alloc.c (staticpro):
3942         * alloc.c (staticpro_nodump):
3943         * alloc.c (garbage_collect_1):
3944         * alloc.c (reinit_alloc_once_early):
3945         * alloc.c (init_alloc_once_early):
3946         * alloc.c: Move dumper functions to alloc.c.
3947         * dumper.c (pdump_backtrace):
3948         * dumper.c (pdump_dump_structs):
3949         * dumper.c (pdump_dump_opaques):
3950         * dumper.c (pdump_dump_rtables):
3951         * dumper.c (pdump_dump_wired):
3952         * dumper.c (pdump):
3953         * dumper.c (pdump_load_check):
3954         * dumper.c (pdump_load_finish):
3955         * dumper.c (pdump_file_unmap):
3956         * dumper.c (pdump_file_get):
3957         * dumper.c (pdump_resource_free):
3958         * dumper.c (pdump_resource_get):
3959         * dumper.c (pdump_file_free):
3960         * dumper.c (pdump_file_try):
3961         * dumper.c (pdump_load):
3962         Remove fixed size limits on staticpro(), staticpro_nodump(),
3963         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
3964         Remove custom code for dumping lrecord_implementations_table - use
3965         dumpopaque instead.
3966         Remove (most of the) custom code for dumping staticpros - dump it
3967         like any other dynarr.
3968
3969         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
3970         * dumper.c: Moved functions from alloc.c.
3971         * alloc.c (dumpstruct): Moved to dumper.c.
3972         * alloc.c (dumpopaque): Likewise.
3973         * alloc.c (pdump_wire): Likewise.
3974         * alloc.c (pdump_wire_list): Likewise.
3975
3976         * lisp.h (Dynarr_sizeof): New.
3977         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
3978         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
3979         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
3980
3981         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
3982         * lisp.h (dumpopaque): ditto.
3983         * lisp.h (pdump_wire): ditto.
3984         * lisp.h (pdump_wire_list): ditto.
3985
3986 2001-01-09  Martin Buchholz  <martin@xemacs.org>
3987
3988         * make-src-depend (PrintPatternDeps):
3989         Use `sort' to make output independent of perl version.
3990
3991 2001-01-08  Martin Buchholz  <martin@xemacs.org>
3992
3993         Port to Netbsd 1.5.
3994         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
3995         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
3996
3997 2001-01-03  Didier Verna  <didier@xemacs.org>
3998
3999         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
4000         that `focus_frame' is alive before thinking of calling
4001         `redisplay_redraw_cursor' on it.
4002
4003 2001-01-08  Martin Buchholz <martin@xemacs.org>
4004
4005         * XEmacs 21.2.40 is released.
4006
4007 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
4008
4009         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
4010
4011 2001-01-06  Martin Buchholz  <martin@xemacs.org>
4012
4013         * alloc.c (dbg_valmask): Make const.
4014         * alloc.c (dbg_typemask): Make const.
4015         * alloc.c (dbg_USE_UNION_TYPE): Make const.
4016         * alloc.c (dbg_valbits): Make const.
4017         * alloc.c (dbg_gctypebits): Make const.
4018
4019 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
4020
4021         * redisplay-x.c (x_bevel_area):
4022         redisplay.h (struct rune):
4023         Typo fixes in comments.
4024
4025 2001-01-05  Andy Piper  <andy@xemacs.org>
4026
4027         * glyphs-x.c (x_redisplay_widget): use size changed for offset
4028         adjustment.
4029
4030         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
4031
4032 2001-01-05  Martin Buchholz  <martin@xemacs.org>
4033
4034         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
4035
4036         * mule-ccl.c (stack_idx_of_map_multiple):
4037         Non const global data must not be initialized!
4038         Found by MIYASHITA Hisashi.
4039
4040 2001-01-02  Andy Piper  <andy@xemacs.org>
4041
4042         * frame.c (change_frame_size): make sure frame size is always
4043         marked as changed.
4044
4045         * glyphs.c (image_instance_layout): minor code reuse.
4046
4047         * window.c (Fcurrent_window_configuration): revert previous
4048         change.
4049
4050 2001-01-02  Martin Buchholz  <martin@xemacs.org>
4051
4052         * glyphs.h:
4053         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
4054
4055 2000-12-31  Andy Piper  <andy@xemacs.org>
4056
4057         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
4058         when widget gets unmapped.
4059
4060         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
4061         function. Make sure widgets losing focus don't just drop it.
4062         (handle_focus_event_1): record the widget with focus.
4063
4064 2000-12-31  Andy Piper  <andy@xemacs.org>
4065
4066         * window.c (allocate_window): use
4067         make_image_instance_cache_hash_table.
4068         (make_dummy_parent): ditto.
4069         (Fset_window_configuration): ditto.
4070
4071         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
4072
4073         * glyphs.c (process_image_string_instantiator): use
4074         INSTANTIATOR_TYPE.
4075         (get_image_instantiator_governing_domain): ditto.
4076         (normalize_image_instantiator): ditto.
4077         (instantiate_image_instantiator): ditto.
4078         (make_image_instance_1): ditto.
4079         (image_instantiate): ditto. Key on glyph *and* instantiator type.
4080         (instantiator_eq_equal): new function for use with instance hash
4081         tables.
4082         (instantiator_eq_hash): ditto.
4083         (make_image_instance_cache_hash_table): create a suitable hash
4084         table for storing image instances.
4085
4086         * elhash.h (hash_table_weakness): new internal weakness type
4087         HASH_TABLE_KEY_CAR_VALUE_WEAK.
4088         declare new functions.
4089
4090         * elhash.c (finish_marking_weak_hash_tables): introduce yet
4091         another weakness type for glyphs.
4092         (make_standard_lisp_hash_table): new function split out from
4093         make_general_lisp_hash_table.
4094         (make_lisp_hash_table): call make_standard_lisp_hash_table.
4095         (hash_table_instantiate): ditto.
4096         (Fmake_hash_table): ditto.
4097
4098 2000-12-31  Martin Buchholz <martin@xemacs.org>
4099
4100         * XEmacs 21.2.39 is released.
4101
4102 2000-12-29  Andy Piper  <andy@xemacs.org>
4103
4104         * menubar.c (menubar_visible_p_changed): signal the frame changed.
4105
4106         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
4107         the frame has changed so that we pick up geometry changes such as
4108         menubar visibility.
4109
4110 2000-12-28  Andy Piper  <andy@xemacs.org>
4111
4112         * lastfile.c (my_ebss): make a char array so we can pad the
4113         bss. Fixes cygwin unexec.
4114
4115         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
4116
4117 2000-12-26  Andy Piper  <andy@xemacs.org>
4118
4119         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
4120         comments and try and be more precise about a non-/SIGIO world.
4121         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
4122         SIGIO.
4123
4124         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
4125         we don't normalize to zero width or height.
4126
4127 2000-12-24  Andy Piper  <andy@xemacs.org>
4128
4129         * Makefile.in.in (ldflags): add -mwindows when appropriate.
4130
4131 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
4132
4133         * s/sco5.h: SCO 5 has pty support.
4134
4135 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
4136
4137         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
4138         input-method-xlib.c contains whole contents of input-method-xfs.c,
4139         so we can use input-method-xlib.c's code for USE_XFONTSET
4140         using #ifdefs.
4141         * input-method-xfs.c: removed.
4142
4143 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
4144
4145         * file-coding.h (enum coding_category_type): reorder enumerators to
4146         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
4147         (now one greater than largest real coding_category_type enumerator).
4148         * file-coding.c (coding_category_symbol, coding_category_by_priority,
4149         coding_category_system, fcd_descriptihon_1, decode_coding_category,
4150         Fcoding_category_list, Fset_coding_priority_list,
4151         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
4152         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
4153
4154 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
4155
4156         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
4157         * redisplay-output.c (redisplay_output_window): Clear top of window
4158         when face is changed.
4159         * redisplay-x.c (x_redraw_exposed_window): Call
4160         redisplay_clear_top_of_window.
4161         * redisplay.h: Publish redisplay_clear_top_of_window.
4162
4163 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
4164
4165         * buffer.c (Fkill_buffer): Map over all devices.
4166         * window.c (window_loop): Remove UNSHOW_BUFFER code.
4167         (list_windows): New function.
4168         (list_all_windows): Ditto.
4169         (Freplace_buffer_in_windows): Use them.
4170
4171 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4172
4173         * database.c (berkdb_subtype): Recognize new subtype `queue'.
4174         (Fopen_database): Use `db_create' instead of `db_open'.
4175         (syms_of_database): Initialize Qqueue.
4176
4177 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
4178
4179         * buffer.c (common_init_complex_vars_of_buffer): Initialize
4180         buffer_local_face_property.
4181         * buffer.h (struct buffer): New member buffer_local_face_property.
4182         * window.c (Fset_window_buffer):  Mark window's face as changed
4183         when buffer has buffer local face.
4184         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
4185         * objects.c (color_after_change): Set buffer_local_face_property
4186         when locale of face specifier is buffer.
4187         * objects.c (font_after_change): Ditto.
4188         * objects.c (face_boolean_after_change): Ditto.
4189         * glyphs.c (image_after_change): Ditto.
4190
4191 2000-12-09  Dan Holmsand  <dan@eyebee.com>
4192
4193         * nt.c (mswindows_fstat): Report file permissions, volume serial
4194         number, etc. Code adapted from FSF Emacs 20.7.
4195
4196 2000-12-09  Dan Holmsand  <dan@eyebee.com>
4197
4198         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
4199         of stat when we don't have symbolic links, to make sure
4200         mswindows_stat is called on mswindows.
4201
4202 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
4203
4204         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
4205
4206 2000-12-12  Martin Buchholz  <martin@xemacs.org>
4207
4208         * doprnt.c (emacs_doprnt_1): More printing fixes.
4209         Make printing of numbers compatible with libc and FSF Emacs.
4210         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
4211         Use the system printf to do most of the hard work of formatting,
4212         instead of doprnt_1().
4213         Calculate memory to allocate for format string.
4214         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
4215         (doprnt_1): Cleaner code and documentation.
4216
4217 2000-12-01  Jerry James  <james@eecs.ukans.edu>
4218
4219         * Makefile.in.in: Use the loop variable to install headers.
4220
4221 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4222
4223         * window.c (Fsplit_window): Don't invalidate face cache.
4224
4225 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4226
4227         * minibuf.c (Fall_completions): Undo the previous change
4228         which removed checking elements start with space.
4229
4230 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
4231
4232         * mule-canna.c: Didier suppression.
4233
4234 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
4235
4236         * mule-canna.c: rename static unsigned char buf[] to key_buffer
4237         (warning suppression).  Add English comment translations.
4238
4239 2000-12-05  Martin Buchholz  <martin@xemacs.org>
4240
4241         * unexelfsgi.c (unexec): Better test for mmap failure.
4242
4243 2000-12-05  Martin Buchholz <martin@xemacs.org>
4244
4245         * XEmacs 21.2.38 is released.
4246
4247 2000-12-05  Martin Buchholz  <martin@xemacs.org>
4248
4249         * redisplay.c (bar-cursor): Make a user variable.
4250
4251         * symsinit.h: Add init_postgresql_from_environment.
4252
4253 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4254
4255         * regex.c: Convert to clean C.
4256
4257 2000-12-05  Dan Holmsand  <dan@eyebee.com>
4258
4259         * realpath.c:
4260         Don't #include sysfile.h. Revert to duplicating PATH_MAX
4261         initialization.
4262         (sys_readlink): renamed to system_readlink to avoid conflict with
4263         the other sys_readlink.
4264
4265 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
4266
4267         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
4268
4269 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
4270
4271         * postgresql.c (init_postgresql_from_environment): new function.
4272         (vars_of_postgresql): Move code initializing Lisp variables out and
4273         into init_postgresql_from_environment.
4274         emacs.c (main_1): Call init_postgresql_from_environment if and only
4275         if running a dumped XEmacs.
4276
4277 2000-08-31  Dan Holmsand  <dan@eyebee.com>
4278
4279         * buffer.c: Make find-file-compare-truenames default to true on
4280         windows.
4281
4282         * realpath.c (win32_abs_start):
4283         (cygwin_readlink):
4284         (win32_readlink): New functions.
4285         (xrealpath): Return really real filenames on windows.
4286
4287         * fileio.c (Ffile_truename): Make file-truename work on windows.
4288
4289 2000-11-29  Didier Verna  <didier@xemacs.org>
4290
4291         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
4292         * faces.c (update_face_cachel_data): use it.
4293         * faces.c (add_face_cachel): use it. Complete background pixmap
4294         frobbing in face cache if `update_face_cachel_data' has not done so.
4295
4296 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
4297
4298         * search.c (string_match_1): Don't set last_thing_searched
4299         when search failed.
4300
4301 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
4302
4303         * buffer.c: Include casetab.h
4304         (common_init_complex_vars_of_buffer): Use new case-table object.
4305         * buffer.h: Include casetab.h
4306         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
4307         (DOWNCASE_TABLE_OF): Ditto.
4308         * bufslots.h: Remove char-tables and add case-table.
4309         * casetab.c: Include casetab.h
4310         (CASE_TABLE_P): Removed.
4311         (mark_case_table): New function.
4312         (allocate_case_table): New function.
4313         (Fcase_table_p): Use new case-table.
4314         (case_table_char): New function.
4315         (Fget_case_table): Ditto.
4316         (Fput_case_table): Ditto.
4317         (Fput_case_table_pair): Ditto.
4318         (Fcopy_case_table): Ditto.
4319         (Fcurrent_case_table): Return case-table.
4320         (Fstandard_case_table): Return case-table.
4321         (Fset_case_table): Fix doc-string.
4322         (set_case_table): Use case-table
4323         (syms_of_casetab): DEFSUBR new functions.
4324         (complex_vars_of_casetab): Set up standard case-table.
4325         * casetab.h: New file.
4326         * editfns.c: Include casetab.h
4327         (Fcompare_buffer_substrings): Use case-table.
4328         * inline.c: Include casetab.h
4329         * lisp.h: Remove bogus extern.
4330         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
4331         * search.c: Include casetab.h
4332         (TRANSLATE_ASCII): Removed.
4333         (TRANSLATE): Unconditionally translate character.
4334         (looking_at_1): Use case-table.
4335         (string_match_1): Ditto.
4336         (fast_string_match): Ditto.
4337         (search_command): Ditto.
4338         (search_buffer): Separate boyer_moore.  Check whether
4339         boyer_moore is possible.
4340         (simple_search): New function.
4341         (boyer_moore): Separated from search_buffer. Translate char.
4342
4343 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
4344
4345         * regex.c (RE_TR_ASCII): Removed.
4346         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
4347         (PATFETCH): Call PATFETCH_RAW.
4348         (PATFETCH_RAW): Fetch Emchar.
4349         (PATUNFETCH): Decrement charptr.
4350         (GET_BUFFER_SPACE): Rename b to buf_end.
4351         (BUF_PUSH): Ditto.
4352         (BUF_PUSH_2): Ditto.
4353         (BUF_PUSH_3): Ditto.
4354         (EXTEND_BUFFER): Ditto.
4355         (SET_LIST_BIT): Ditto.
4356         (regex_compile): Ditto.  Translate non ASCII char.
4357         (compile_range): Ditto.
4358         (re_search_2): Ditto.
4359         (re_match_2_internal): Compare Emchar.
4360         (bcmp_translate): Ditto.
4361
4362 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
4363
4364         * lisp.h (basic char/int typedefs):  comment improvement.
4365
4366 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
4367
4368         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
4369         unstomp inhibit_site_lisp.  Improve comments.
4370
4371 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
4372
4373         * mule-charset.c (Fcharset_property):  improve type checking, comments.
4374
4375 2000-11-28  Andy Piper  <andy@xemacs.org>
4376
4377         * redisplay-output.c (redisplay_output_subwindow): make sure we do
4378         clipped display for windows in the gutter also.
4379         (redisplay_display_boxes_in_window_p): change semantics of return
4380         codes to be more intuitive.
4381
4382         * gutter.h: declare display_boxes_in_gutter_p.
4383
4384         * gutter.c (display_boxes_in_gutter_p): new function for
4385         redisplay.
4386
4387 2000-11-22  Andy Piper  <andy@xemacs.org>
4388
4389         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
4390         autodetect domain.
4391
4392 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
4393
4394         * callproc.c (Fold_call_process_internal):
4395         * gpm.c (Freceive_gpm_event):
4396         (tty_get_foreign_selection): Might be just warning supression.
4397         * fileio.c (Fwrite_region_internal):
4398         (Fset_visited_file_modtime):
4399         * keymap.c (event_matches_key_specifier_p):
4400         Initialize GCPROed variable.
4401
4402         * menubar-x.c (command_builder_find_menu_accelerator):
4403         Initialize before use.
4404
4405 2000-11-23  Andy Piper  <andy@xemacs.org>
4406
4407         * unexcw.c (unexec): make the resulting executable executable.
4408
4409 2000-11-21  Martin Buchholz  <martin@xemacs.org>
4410
4411         * doc.c (get_doc_string):
4412         Use size_t, not int, for result of XSTRING_LENGTH.
4413
4414         * cmds.c (Fdelete_char):
4415         * cmds.c (Fpoint_at_eol):
4416         * cmds.c (Fself_insert_command):
4417         Use EMACS_INT, not int, for result of XINT.
4418         Someday, someone will want to insert more than 2**31 identical characters.
4419
4420         * cmds.c (Fdelete_char):
4421         * cmds.c (Fdelete_backward_char):
4422         * syntax.c (Fforward_word):
4423         * syntax.c (Fforward_comment):
4424         Make COUNT argument optional, for consistency with forward-char et al.
4425
4426 2000-11-22  Martin Buchholz  <martin@xemacs.org>
4427
4428         * lisp.h:
4429         * print.c (long_to_string):
4430         Return a useful value: the pointer at end of data written.
4431
4432         * doprnt.c:
4433         Use `static const char * const' for constant strings.
4434         (union printf_arg): Delete `i', `ui' members.
4435         (get_doprnt_args):
4436         (emacs_doprnt_1):
4437         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
4438         Do all printf-ing via the `l' specifier.
4439         Use EMACS_INT instead of int.
4440         Optimize.
4441
4442 2000-11-20  Didier Verna  <didier@xemacs.org>
4443
4444         * faces.c (update_face_cachel_data): don't frob the background
4445         pixmap when the window is being created. The face is needed but
4446         does not exist yet.
4447
4448 2000-11-20  Andy Piper  <andy@xemacs.org>
4449
4450         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
4451         messing with a debug environment.
4452
4453 2000-11-20  Martin Buchholz  <martin@xemacs.org>
4454
4455         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
4456
4457 2000-11-20  Martin Buchholz  <martin@xemacs.org>
4458
4459         * casetab.c (Fcase_table_p): Fix compile error and crash.
4460
4461 2000-11-18  Philip Aston  <philipa@mail.com>
4462
4463         * s/cygwin32.h: Cygwin has SVR4-like pty support.
4464
4465 2000-11-18  Martin Buchholz  <martin@xemacs.org>
4466
4467         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
4468         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
4469
4470 2000-11-17  Martin Buchholz  <martin@xemacs.org>
4471
4472         * config.h.in: Define HAVE_ELF_H if elf.h exists.
4473         * unexelf.c: Use HAVE_ELF_H.
4474         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
4475         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
4476         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
4477         Greg Harrington <greg_harrington@hotmail.com> provided a machine
4478         for testing.
4479         So this is an unexelfsgi.c from a different line of development.
4480
4481 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
4482
4483         * regex.c (RE_TR_ASCII): New function.
4484         (RE_TRANSLATE): Call it.
4485
4486 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
4487
4488         * buffer.h (TRT_TABLE_OF): Remove assert.
4489         (IN_TRT_TABLE_DOMAIN): Removed.
4490
4491 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
4492
4493         * free-hook.c (log_gcpro):
4494         (show_gcprohist): Add support for GCPRO5.
4495
4496 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
4497
4498         * emacs.c (main_1): Improve -sd error message when --pdump=no.
4499
4500 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
4501
4502         * symeval.h: Declare flush_all_buffer_local_cache.
4503
4504         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
4505         (flush_buffer_local_cache): Added.
4506         (flush_all_buffer_local_cache): Added.
4507
4508         * lrecord.h: Remove unused XD_LO_RESET_NIL.
4509
4510         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
4511         (pdump_dump_data): Ditto.
4512         (pdump_reloc_one): Ditto.
4513         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
4514         before dumping.
4515
4516
4517 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
4518
4519         * buffer.c: Remove if 0'ed entry.
4520         * buffer.h: Rewrite TRT to use char-table.
4521         * bufslots.h: Remove mirror tables.
4522         * casetab.c: Remove mirror tables.
4523         (CASE_TABLE_P): New macro.
4524         (Fcase_table_p): Element of a case table is string or char-table.
4525         (make_mirror_trt_table): Removed.
4526         (set_case_table): Setup char-table from strings for backward
4527         compatibility.
4528         * dired.c (Fdirectory_files):
4529         * dired-msw.c: (mswindows_get_files):
4530         * lisp.h: Change prototype of re_pattern_buffer.
4531         * regex.c: (RE_TRANSLATE): New macro.
4532         (TRANSLATE_P): Ditto.
4533         Change translate to type RE_TRANSLATE_TYPE.
4534         * regex.h: Define RE_TRANSLATE_TYPE
4535         * search.c (TRANSLATE): New macro.
4536         (TRANSLATE_ASCII): New macro.
4537         Translate table is changed to Lisp_Object.
4538         (signal_failure): Inhibit return.
4539
4540 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
4541
4542         * device-msw.c:
4543         * eldap.c:
4544         * event-Xt.c:
4545         * event-stream.c:
4546         * print.c:
4547         Do UNGCPRO before return.
4548
4549 2000-11-14  Martin Buchholz <martin@xemacs.org>
4550
4551         * XEmacs 21.2.37 is released.
4552
4553 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
4554
4555         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
4556         Add comments about discarded return value.
4557
4558 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
4559
4560         * callint.c:
4561         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
4562
4563 2000-10-27  Andy Piper  <andy@xemacs.org>
4564
4565         * gutter.c (Fset_default_gutter_position): default left and right
4566         gutters to visible.
4567         (calculate_gutter_size): calculate resonable heuristic for left
4568         and right gutter sizes.
4569         (specifier_vars_of_gutter): change left and right gutter sizes to
4570         autodetect.
4571         (calculate_gutter_size_from_display_lines): new function.
4572         (output_gutter): check for resizing on left and right gutters.
4573         (clear_gutter): don't special case top and left gutters.
4574         (specifier_vars_of_gutter): use new signature for
4575         set_specifier_caching.
4576
4577         * glyphs-x.c (x_redisplay_widget): spelling fix.
4578         * glyphs.c (specifier_vars_of_glyphs):
4579         * menubar.c (specifier_vars_of_menubar):
4580         * redisplay.c (specifier_vars_of_redisplay):
4581         * toolbar.c (specifier_vars_of_toolbar):
4582         * window.c (specifier_vars_of_window):
4583         * scrollbar.c (specifier_vars_of_scrollbar):
4584         (complex_vars_of_scrollbar): use new signature for
4585         set_specifier_caching.
4586
4587         * specifier.c (set_specifier_caching): include recompute flag.
4588         (recompute_one_cached_specifier_in_window): always recompute if
4589         flag set.
4590         (recompute_one_cached_specifier_in_frame): ditto.
4591
4592         * specifier.h (struct specifier_caching): add recompute flag.
4593
4594 2000-10-24  Andy Piper  <andy@xemacs.org>
4595
4596         * unexcw.c (copy_executable_and_dump_data_section): add new
4597         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
4598         5.0 happy.
4599
4600 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
4601
4602         * console-x.h (x_device): New member modifier_release_time.
4603         * event-Xt.c (x_handle_sticky_modifiers):
4604         Bound interval modifier keys are sticky.
4605         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
4606         * events.h: extern it.
4607
4608 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
4609
4610         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
4611
4612 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
4613
4614         * event-stream.c (execute_command_event): Preserve current_events
4615         and the like when event is misc-user-event.
4616         Inhibit quit during the call to maybe_echo_keys.
4617
4618 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
4619
4620         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
4621         symlink when buffer is killed.
4622         (inhibit_clash_detection): New variable.
4623
4624 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
4625
4626         * console.c (Fset_input_method): Trigger redisplay on tty.
4627
4628 2000-11-07  Martin Buchholz  <martin@xemacs.org>
4629
4630         * process.c (Fprocess_status): Revert to previous behavior:
4631         (process-status "nosuchprocess") ==> nil
4632
4633 2000-11-06  Martin Buchholz  <martin@xemacs.org>
4634
4635         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
4636         Work around another GCC 2.95.2 optimizer bug.
4637
4638 2000-11-02  Martin Buchholz  <martin@xemacs.org>
4639
4640         * process.c (Fget_process): Use LIST_LOOP_2.
4641         (kill_buffer_processes): Use LIST_LOOP_2.
4642
4643         * minibuf.c (Fall_completions):
4644         Delete old non-functional code for FSF fourth argument.
4645
4646         * frame.c (frame_matches_frame_spec):
4647         Renamed from `frame_matches_frametype'.  Update all callers.
4648         (device_matches_device_spec):
4649         Renamed from 'device_matches_console_spec'.  Update all callers.
4650
4651         * doc.c (Fsubstitute_command_keys):
4652         Remove buffer overflow crash.  Small code cleanups.
4653
4654         * casetab.c (check_case_table): Simpler code.
4655
4656         * window.c (Freplace_buffer_in_windows):
4657         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
4658         (and similar implementation) as Fdelete_windows_on.
4659         Update all callers.
4660
4661         * alloc.c (Fmake_list):
4662         * alloc.c (make_vector):
4663         * alloc.c (Fmake_vector):
4664         * alloc.c (make_bit_vector):
4665         * alloc.c (Fmake_bit_vector):
4666         * alloc.c (Fbit_vector):
4667         * alloc.c (Fmake_string):
4668         * alloc.c (Fpurecopy):
4669         * alloc.c (Fmemory_limit):
4670         * buffer.c:
4671         * buffer.c (Fget_buffer):
4672         * buffer.c (Fkill_buffer):
4673         * buffer.c (complex_vars_of_buffer):
4674         * bytecode.c (Fcompiled_function_stack_depth):
4675         * callint.c (Fprefix_numeric_value):
4676         * event-stream.c:
4677         * event-stream.c (Fread_key_sequence):
4678         * casetab.c:
4679         * casetab.c (Fcase_table_p):
4680         * casetab.c (check_case_table):
4681         * casetab.c (Fset_case_table):
4682         * casetab.c (Fset_standard_case_table):
4683         * chartab.c:
4684         * chartab.c (Fchar_table_type):
4685         * chartab.c (Freset_char_table):
4686         * chartab.c (Fget_char_table):
4687         * chartab.c (Fget_range_char_table):
4688         * chartab.c (Fput_char_table):
4689         * chartab.c (Fmap_char_table):
4690         * chartab.c (Fcategory_table_p):
4691         * chartab.c (Fcheck_category_at):
4692         * chartab.c (Fchar_in_category_p):
4693         * chartab.c (Fcategory_table):
4694         * chartab.c (Fcopy_category_table):
4695         * chartab.c (Fset_category_table):
4696         * chartab.c (Fcategory_designator_p):
4697         * chartab.c (Fcategory_table_value_p):
4698         * cmds.c (Fdelete_char):
4699         * cmds.c (Fdelete_backward_char):
4700         * cmds.c (Fself_insert_command):
4701         * cmds.c (Fself_insert_internal):
4702         * console.c (Fvalid_console_type_p):
4703         * console.c (Fcdfw_console):
4704         * console.c (Fconsole_type):
4705         * console.c (Fconsole_name):
4706         * console.c (Fconsole_device_list):
4707         * console.c (Fconsole_on_window_system_p):
4708         * data.c:
4709         * data.c (Feq):
4710         * data.c (Fold_eq):
4711         * data.c (Fsubr_interactive):
4712         * data.c (Fchar_to_int):
4713         * data.c (Fint_to_char):
4714         * data.c (Fsetcar):
4715         * data.c (Fsetcdr):
4716         * data.c (Fnumber_to_string):
4717         * data.c (Fstring_to_number):
4718         * data.c (Frem):
4719         * database.c (mark_database):
4720         * database.c (finalize_database):
4721         * database.c (Fdatabase_live_p):
4722         * database.c (Fdatabasep):
4723         * device-x.c (Fx_get_resource):
4724         * device.c (Fdfw_device):
4725         * dired.c:
4726         * dired.c (Ffile_name_completion):
4727         * dired.c (Ffile_name_all_completions):
4728         * dired.c (Fuser_name_completion):
4729         * dired.c (Fuser_name_completion_1):
4730         * dired.c (Fuser_name_all_completions):
4731         * doc.c (Fdocumentation):
4732         * doc.c (Fdocumentation_property):
4733         * doc.c (Fsubstitute_command_keys):
4734         * editfns.c:
4735         * editfns.c (Fchar_to_string):
4736         * editfns.c (Fstring_to_char):
4737         * editfns.c (Ftemp_directory):
4738         * editfns.c (Finsert_char):
4739         * editfns.c (Fbuffer_substring_no_properties):
4740         * editfns.c (Fnarrow_to_region):
4741         * editfns.c (Fchar_equal):
4742         * editfns.c (Fchar_Equal):
4743         * editfns.c (Ftranspose_regions):
4744         * emacs.c (Fdump_emacs):
4745         * eval.c (Fthrow):
4746         * eval.c (Fcommand_execute):
4747         * eval.c (Fautoload):
4748         * eval.c (Fbacktrace):
4749         * eval.c (Fbacktrace_frame):
4750         * events.c:
4751         * events.c (Fcopy_event):
4752         * events.c (Fcharacter_to_event):
4753         * events.c (Fevent_button):
4754         * events.c (Fevent_process):
4755         * extents.c:
4756         * extents.c (Fnext_extent_change):
4757         * extents.c (Fextent_property):
4758         * faces.c (Ffacep):
4759         * faces.c (Fmake_face):
4760         * file-coding.c:
4761         * file-coding.c (Fencode_shift_jis_char):
4762         * file-coding.c (Fencode_big5_char):
4763         * fileio.c (Ffile_name_directory):
4764         * fileio.c (Ffile_name_nondirectory):
4765         * fileio.c (Ffile_name_as_directory):
4766         * fileio.c (Fdirectory_file_name):
4767         * fileio.c (Ffile_truename):
4768         * fileio.c (Fsubstitute_in_file_name):
4769         * fileio.c (Ffile_modes):
4770         * fileio.c (Fset_file_modes):
4771         * fileio.c (Fset_default_file_modes):
4772         * fileio.c (Fverify_visited_file_modtime):
4773         * floatfns.c (Facos):
4774         * floatfns.c (Fasin):
4775         * floatfns.c (Fatan):
4776         * floatfns.c (Fcos):
4777         * floatfns.c (Fsin):
4778         * floatfns.c (Ftan):
4779         * floatfns.c (Fbessel_j0):
4780         * floatfns.c (Fbessel_j1):
4781         * floatfns.c (Fbessel_jn):
4782         * floatfns.c (Fbessel_y0):
4783         * floatfns.c (Fbessel_y1):
4784         * floatfns.c (Fbessel_yn):
4785         * floatfns.c (Ferf):
4786         * floatfns.c (Ferfc):
4787         * floatfns.c (Flog_gamma):
4788         * floatfns.c (Fexp):
4789         * floatfns.c (Fexpt):
4790         * floatfns.c (Flog):
4791         * floatfns.c (Flog10):
4792         * floatfns.c (Fsqrt):
4793         * floatfns.c (Fcube_root):
4794         * floatfns.c (Facosh):
4795         * floatfns.c (Fasinh):
4796         * floatfns.c (Fatanh):
4797         * floatfns.c (Fcosh):
4798         * floatfns.c (Fsinh):
4799         * floatfns.c (Ftanh):
4800         * floatfns.c (Fabs):
4801         * floatfns.c (Ffloat):
4802         * floatfns.c (Flogb):
4803         * floatfns.c (Fceiling):
4804         * floatfns.c (Ffloor):
4805         * floatfns.c (Fround):
4806         * floatfns.c (Ftruncate):
4807         * floatfns.c (Ffceiling):
4808         * floatfns.c (Fffloor):
4809         * floatfns.c (Ffround):
4810         * floatfns.c (Fftruncate):
4811         * fns.c (Fstring_equal):
4812         * fns.c (Fstring_lessp):
4813         * fns.c (concat2):
4814         * fns.c (concat3):
4815         * fns.c (vconcat2):
4816         * fns.c (vconcat3):
4817         * fns.c (Fsubstring):
4818         * fns.c (Fassoc):
4819         * fns.c (Fold_assoc):
4820         * fns.c (assoc_no_quit):
4821         * fns.c (Fassq):
4822         * fns.c (Fold_assq):
4823         * fns.c (assq_no_quit):
4824         * fns.c (Frassoc):
4825         * fns.c (Fold_rassoc):
4826         * fns.c (Frassq):
4827         * fns.c (Fold_rassq):
4828         * fns.c (rassq_no_quit):
4829         * fns.c (Fremassoc):
4830         * fns.c (remassoc_no_quit):
4831         * fns.c (Fremassq):
4832         * fns.c (remassq_no_quit):
4833         * fns.c (Fremrassoc):
4834         * fns.c (Fremrassq):
4835         * fns.c (remrassq_no_quit):
4836         * fns.c (Fsort):
4837         * fns.c (Fplist_get):
4838         * fns.c (Fplist_put):
4839         * fns.c (Fplist_remprop):
4840         * fns.c (Fplist_member):
4841         * fns.c (Flax_plist_get):
4842         * fns.c (Flax_plist_put):
4843         * fns.c (Flax_plist_remprop):
4844         * fns.c (Flax_plist_member):
4845         * fns.c (Fequal):
4846         * fns.c (Fold_equal):
4847         * fns.c (Frequire):
4848         * fns.c (Fbase64_encode_region):
4849         * fns.c (Fbase64_encode_string):
4850         * fns.c (Fbase64_decode_region):
4851         * frame.c:
4852         * frame.c (frame_matches_frame_spec):
4853         * frame.c (device_matches_device_spec):
4854         * frame.c (next_frame):
4855         * frame.c (previous_frame):
4856         * frame.c (Fnext_frame):
4857         * frame.c (Fprevious_frame):
4858         * frame.c (Fframe_property):
4859         * frame.c (Fset_frame_height):
4860         * frame.c (Fset_frame_size):
4861         * frame.h:
4862         * glyphs.c:
4863         * glyphs.c (if):
4864         * glyphs.c (decode_error_behavior_flag):
4865         * glyphs.c (Fmake_image_instance):
4866         * indent.c (Findent_to):
4867         * intl.c (Fignore_defer_gettext):
4868         * keymap.c (Fkeymapp):
4869         * keymap.c (Flookup_key):
4870         * lread.c:
4871         * lread.c (Fload_internal):
4872         * lread.c (Feval_buffer):
4873         * lread.c (Feval_region):
4874         * macros.c (Fexecute_kbd_macro):
4875         * marker.c (set_marker_internal):
4876         * marker.c (Fset_marker):
4877         * marker.c (set_marker_restricted):
4878         * marker.c (Fcopy_marker):
4879         * marker.c (noseeum_copy_marker):
4880         * menubar.c:
4881         * menubar.c (Fpopup_menu):
4882         * minibuf.c:
4883         * mule-charset.c (Fcharset_name):
4884         * mule-charset.c (Fchar_charset):
4885         * mule-charset.c (Fchar_octet):
4886         * mule-charset.c (Fsplit_char):
4887         * mule-wnnfns.c (Fwnn_open):
4888         * mule-wnnfns.c (Fwnn_dict_comment):
4889         * mule-wnnfns.c (Fwnn_quit_henkan):
4890         * mule-wnnfns.c (Fwnn_word_toroku):
4891         * mule-wnnfns.c (Fwnn_word_sakujo):
4892         * mule-wnnfns.c (Fwnn_word_use):
4893         * mule-wnnfns.c (Fwnn_hindo_set):
4894         * objects.c:
4895         * objects.c (Fmake_color_instance):
4896         * objects.c (Fmake_font_instance):
4897         * print.c (Fwrite_char):
4898         * process.c:
4899         * process.c (mark_process):
4900         * process.c (print_process):
4901         * process.c (get_process_from_usid):
4902         * process.c (Fprocessp):
4903         * process.c (Fprocess_live_p):
4904         * process.c (Fget_process):
4905         * process.c (Fget_buffer_process):
4906         * process.c (get_process):
4907         * process.c (Fprocess_id):
4908         * process.c (Fprocess_name):
4909         * process.c (Fprocess_command):
4910         * process.c (init_process_io_handles):
4911         * process.c (start_process_unwind):
4912         * process.c (Fstart_process_internal):
4913         * process.c (Fopen_multicast_group_internal):
4914         * process.c (Fset_process_window_size):
4915         * process.c (read_process_output):
4916         * process.c (send_process):
4917         * process.c (Fprocess_tty_name):
4918         * process.c (Fset_process_buffer):
4919         * process.c (Fprocess_buffer):
4920         * process.c (Fprocess_mark):
4921         * process.c (set_process_filter):
4922         * process.c (Fset_process_filter):
4923         * process.c (Fprocess_filter):
4924         * process.c (Fprocess_send_region):
4925         * process.c (Fprocess_send_string):
4926         * process.c (exec_sentinel):
4927         * process.c (Fset_process_sentinel):
4928         * process.c (Fprocess_sentinel):
4929         * process.c (status_notify):
4930         * process.c (Fprocess_status):
4931         * process.c (Fprocess_exit_status):
4932         * process.c (process_send_signal):
4933         * process.c (Fprocess_send_eof):
4934         * process.c (deactivate_process):
4935         * process.c (remove_process):
4936         * process.c (Fdelete_process):
4937         * process.c (kill_buffer_processes):
4938         * process.c (Fprocess_kill_without_query):
4939         * process.c (Fprocess_kill_without_query_p):
4940         * rangetab.c:
4941         * rangetab.c (Fget_range_table):
4942         * rangetab.c (Fput_range_table):
4943         * rangetab.c (Fremove_range_table):
4944         * rangetab.c (Fclear_range_table):
4945         * search.c:
4946         * search.c (Fskip_chars_forward):
4947         * search.c (Fskip_chars_backward):
4948         * search.c (Fskip_syntax_forward):
4949         * search.c (Fskip_syntax_backward):
4950         * search.c (search_command):
4951         * search.c (Freplace_match):
4952         * search.c (Fregexp_quote):
4953         * select.c (Fown_selection_internal):
4954         * select.c (Fselection_owner_p):
4955         * select.c (Fselection_exists_p):
4956         * select.c (Fget_selection_internal):
4957         * specifier.c:
4958         * symbols.c:
4959         * symbols.c (Fintern):
4960         * symbols.c (Fintern_soft):
4961         * symbols.c (Funintern):
4962         * symbols.c (Fapropos_internal):
4963         * symbols.c (Fset_default):
4964         * syntax.c:
4965         * syntax.c (Fsyntax_table_p):
4966         * syntax.c (Fcopy_syntax_table):
4967         * syntax.c (Fset_syntax_table):
4968         * syntax.c (Fchar_syntax):
4969         * syntax.c (syntax_match):
4970         * syntax.c (Fmatching_paren):
4971         * syntax.c (Fforward_word):
4972         * syntax.c (scan_lists):
4973         * syntax.c (Fscan_lists):
4974         * syntax.c (Fscan_sexps):
4975         * syntax.c (Fparse_partial_sexp):
4976         * toolbar.c (Fcheck_toolbar_button_syntax):
4977         * tooltalk.doc:
4978         * window.c:
4979         * window.c (Fwindowp):
4980         * window.c (Fwindow_live_p):
4981         * window.c (Fwindow_point):
4982         * window.c (Fdelete_window):
4983         * window.c (Fnext_window):
4984         * window.c (Fprevious_window):
4985         * window.c (Fother_window):
4986         * window.c (window_loop):
4987         * window.c (Fget_lru_window):
4988         * window.c (Fsplit_window):
4989         * window.c (Fenlarge_window):
4990         * window.c (Fenlarge_window_pixels):
4991         * window.c (Fshrink_window):
4992         * window.c (Fshrink_window_pixels):
4993         * window.c (change_window_height):
4994         * window.c (Fwindow_configuration_p):
4995         * window.c (Fcurrent_window_configuration):
4996         * window.h:
4997         * casefiddle.c (casify_object):
4998         * casefiddle.c (Fupcase):
4999         * casefiddle.c (Fdowncase):
5000         * casefiddle.c (Fcapitalize):
5001         * casefiddle.c (Fupcase_initials):
5002         * casefiddle.c (casify_region_internal):
5003         * casefiddle.c (casify_region):
5004         * casefiddle.c (Fupcase_region):
5005         * casefiddle.c (Fdowncase_region):
5006         * casefiddle.c (Fcapitalize_region):
5007         * casefiddle.c (Fupcase_initials_region):
5008         * casefiddle.c (Fupcase_word):
5009         * casefiddle.c (Fdowncase_word):
5010         * casefiddle.c (Fcapitalize_word):
5011         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
5012         Replace 0 with '\0' when working with bytes.
5013         Replace initial "(" with "\(" in docstrings.
5014
5015 2000-11-01  Martin Buchholz  <martin@xemacs.org>
5016
5017         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
5018
5019         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
5020
5021 2000-10-31  Martin Buchholz  <martin@xemacs.org>
5022
5023         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
5024
5025 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5026
5027         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
5028         correctly.
5029
5030 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5031
5032         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
5033         (inhibit_auto_save_session): New variable.
5034         (vars_of_fileio): Declare and initialize them.
5035         * fileio.c (Fdo_auto_save): Don't create session file if
5036         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
5037
5038 2000-10-31  Martin Buchholz  <martin@xemacs.org>
5039
5040         * sgiplay.c (play_internal): C++ compilability.
5041         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
5042         * callproc.c (Fold_call_process_internal):
5043         Remove unused vars `env', `first'.
5044         * scrollbar.c (update_scrollbar_instance):
5045         #### unused var `current_window'.
5046         * redisplay-tty.c: Put currently unused vars insert_mode_on,
5047         etc. within #ifdef NOT_YET.
5048         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
5049         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
5050         * specifier.c (specifier_instance):
5051         #### unused var `tag'.
5052         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
5053
5054 2000-10-27  Martin Buchholz  <martin@xemacs.org>
5055
5056         * fns.c (Fbutlast):
5057         * fns.c (list_sort):
5058         * fns.c (Ffillarray):
5059         * fns.c (bytecode_nconc2):
5060         * fns.c (Fnconc):
5061         * fns.c (mapcar1):
5062         * fns.c (Fmapconcat):
5063         Be pedantically 64-bit correct.  For the time when someone will
5064         want to have a list with length > 2**32.
5065
5066         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
5067         Work around MIPSpro compiler bug.
5068
5069         * process-unix.c (unix_kill_child_process): Add snarky comment.
5070         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
5071
5072         * config.h.in: Oops, _getpt ==> _getpty
5073
5074 2000-10-26  Martin Buchholz  <martin@xemacs.org>
5075
5076         * config.h.in:
5077         * regex.c:
5078         Use void*, not char*, as return type of alloca().
5079
5080         * alloc.c (free_marker): Side effect inside assert expression!
5081
5082 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
5083
5084         * mule-charset.c (Fset_charset_ccl_program): To check
5085         if the given ccl program is valid, use setup_ccl_program()
5086         instead of CHECK_VECTOR().
5087         (Fmake_charset): Likewise.
5088
5089 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
5090
5091         * faces.c (get_extent_fragment_face_cache_index):
5092         Fix cachel.merged_faces memory leak.
5093
5094 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
5095
5096         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
5097         Reset MSB of octets obtained by DECODE_SJIS
5098         because of the incompatibility with Emacs.
5099         (ccl_driver)<CCL_ENCODE_SJIS>:
5100         Set MSB of octets before passing them to
5101         ENCODE_SJIS because of the incompatibility
5102         with Emacs.
5103
5104 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
5105
5106         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
5107         (DECLARE_LRECORD): Undo the last change.
5108         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
5109
5110 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
5111
5112         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
5113         the implementation to lrecord_implementations_table.
5114
5115 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
5116
5117         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
5118         initial value of `lrecord_type_##c_name' and
5119         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
5120         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
5121         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
5122         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
5123         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
5124
5125 2000-10-17  Martin Buchholz  <martin@xemacs.org>
5126
5127         * miscplay.c (sndcnv8S_2mono):
5128         (sndcnv2monounsigned):
5129         (sndcnvULaw_2linear):
5130         (sndcnv16swap):
5131         Remove implementation-defined behavior.
5132
5133 2000-10-12  Martin Buchholz  <martin@xemacs.org>
5134
5135         * input-method-xlib.c: Warning suppression.
5136
5137 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
5138
5139         * mule-ccl.c: Sync up with Emacs 21.0.90.
5140         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
5141         Do nothing.
5142         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
5143         Likewise.
5144         (ccl_driver[WriteMultibyteChar2]): Bug fix.
5145         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
5146         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
5147         leading char belongs to official 2-dimensional charset.
5148         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
5149         write the given character as is.  Otherwise,
5150         if it is a multibyte char, convert it by
5151         non_ascii_set_charptr_emchar, then write it.
5152         (CCL_WRITE_STRING): Likewise.
5153         (ccl_get_compiled_code): New function.
5154         (setup_ccl_program): When ccl_prog is invalid,
5155         return -1.
5156         (Fregister_code_conversion_map): New function.
5157         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
5158
5159         * mule-ccl.h: Sync up with Emacs 21.0.90.
5160         (Fregister_ccl_program): export it.
5161
5162         * redisplay-msw.c (separate_textual_runs):
5163         If ccl program is not valid, don't do ccl conversion.
5164
5165         * redisplay-x.c (separate_textual_runs): Ditto.
5166
5167         * file-coding.c (Fmake_coding_system):
5168         When type is ccl and value is vector, register it
5169         with a proper symbol.  And checks whether the
5170         given ccl program is valid.
5171         (mule_decode): When calling ccl_driver, if src indicates
5172         NULL pointer, set an empty string instead.
5173         (mule_encode): Likewise.
5174
5175 2000-10-11  Martin Buchholz  <martin@xemacs.org>
5176
5177         The following large batch of changes gets us back to a state of
5178         C++ compilability.  Extbyte is now a char, which means that
5179         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
5180
5181         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
5182
5183         * sound.c (Fplay_sound): Type correctness.
5184
5185         * select-x.c (hack_motif_clipboard_selection): Type correctness.
5186         (x_get_window_property): Type correctness.
5187         (receive_incremental_selection): unsigned char ==> Extbyte
5188         (selection_data_to_lisp_data): unsigned char ==> Extbyte
5189         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
5190         (Fx_store_cutbuffer_internal): Type correctness.
5191
5192         * process-unix.c (try_to_initialize_subtty): Type correctness.
5193
5194         * objects-x.c (x_print_color_instance): Type correctness.
5195         (x_print_font_instance): Type correctness.
5196         (x_list_fonts): SExtbyte ==> Extbyte.
5197         (valid_x_font_name_p): SExtbyte ==> Extbyte.
5198         (x_find_charset_font): SExtbyte ==> Extbyte.
5199         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
5200         (truename_via_XListFonts): SExtbyte ==> Extbyte.
5201         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
5202         Use bufbyte_strcmp.
5203
5204         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
5205         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
5206         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
5207         (BYTE_C0_P): Use bit ops for char-signedness safety.
5208         (BYTE_C1_P): Use bit ops for char-signedness safety.
5209         (CHARSET_BY_LEADING_BYTE):
5210         (CHARSET_BY_ATTRIBUTES):
5211         Always use inline function.
5212         Use type_checking_assert.
5213         Hide chlook.
5214
5215         * mule-charset.c (non_ascii_charptr_copy_char):
5216         Modify to work with both ASCII and non-ASCII characters.
5217         Improve docs and variable names.
5218         Replace over-clever fall-through switch with a simple loop.
5219         (Lstream_get_emchar_1):
5220         Replace over-clever fall-through switch with a simple loop.
5221
5222         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
5223         Warning suppression.
5224
5225         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
5226         the return value of Lstream_getc, which could be EOF as well.
5227
5228         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
5229
5230         * lisp.h: Make Extbyte a char, not unsigned char, so that external
5231         APIs can be used on Extbytes without casts.  Risky!
5232         (SExtbyte): Remove.
5233         (UExtbyte): Remove.
5234
5235         * input-method-xlib.c (XIM_init_device):
5236         Use Xlib.h instead of IntrinsicP.h.
5237         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
5238         which will break in X11R7.
5239         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
5240         to call XRegisterIMInstantiateCallback with correct types.
5241
5242         * gui-x.c (button_item_to_widget_value): Type correctness.
5243
5244         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
5245
5246         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
5247         (xbm_instantiate_1): Type correctness.
5248         (BUILD_GLYPH_INST):  Type correctness.
5249
5250         * fileio.c (Fsubstitute_in_file_name): Type correctness.
5251
5252         * file-coding.c:
5253         (decode_coding_sjis):
5254         (decode_coding_big5):
5255         (decode_coding_ucs4):
5256         (decode_coding_utf8):
5257         (decode_coding_iso2022):
5258         (decode_coding_no_conversion):
5259         Make all decoding functions take an Extbyte * arg.
5260         (encode_coding_sjis):
5261         (encode_coding_big5):
5262         (encode_coding_ucs4):
5263         (encode_coding_utf8):
5264         (encode_coding_iso2022):
5265         (encode_coding_no_conversion):
5266         Make all encoding functions take a Bufbyte * arg.
5267         Use size_t instead of unsigned int for memory sizes.
5268         Only cast to unsigned char whenever dereferencing Extbyte *.
5269
5270         * doc.c (unparesseuxify_doc_string): Type correctness.
5271
5272         * console-x.c (split_up_display_spec):
5273         Rewrite without using details of internal string representation.
5274         (x_semi_canonicalize_device_connection): Type correctness.
5275
5276         * config.h.in:
5277         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
5278         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
5279         (HAVE_XFREE386): Removed.
5280
5281         * buffer.h (DEC_CHARPTR): `const' correctness.
5282         (bufbyte_strcmp): New.
5283         (bufbyte_memcmp): New.
5284
5285         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
5286
5287         * buffer.h (XCHAR_OR_CHAR_INT):
5288         Always use inline function.
5289         Remove redundant type checking assert() - XINT will abort quite nicely.
5290
5291 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
5292
5293         * search.c (Freplace_match): Set newtext to an empty string.
5294
5295 2000-10-10  Martin Buchholz  <martin@xemacs.org>
5296
5297         * s/decosf1-3.h: Remove #include of stropts.h
5298         * s/ptx.h: Remove #include of stropts.h
5299         * s/usg5-4.h: Remove #include of stropts.h
5300         * sysproc.h:
5301         * config.h.in:
5302         Use stropts.h, not sys/stropts.h.
5303         Use strtio.h, not sys/strtio.h.
5304
5305 2000-10-04  Martin Buchholz <martin@xemacs.org>
5306
5307         * XEmacs 21.2.36 is released.
5308
5309 2000-09-21  Andy Piper  <andy@xemacs.org>
5310
5311         * glyphs-x.c (x_redisplay_widget): make sure non-structural
5312         changes still involve copying the widget tree.
5313         (update_widget_face): make sure a change is register in the widget
5314         tree. Call update_tab_widget_face appropriately.
5315         (update_tab_widget_face): ditto.
5316         (x_tab_control_redisplay): make sure non-structural changes still
5317         involve copying the widget tree.
5318
5319 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
5320
5321         * lread.c (locate_file): Check the path element is non-nil.
5322
5323 2000-10-02  Martin Buchholz  <martin@xemacs.org>
5324
5325         * lisp.h: Warning suppression for SCO compilers.
5326
5327         * redisplay-tty.c (reset_tty_modes): Fix crash.
5328         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
5329
5330 2000-09-27  Martin Buchholz  <martin@xemacs.org>
5331
5332         Big signal/process handling overhaul.  Bugs fixed:
5333         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
5334         M-x comint-kill-subjob should work for both values nil and t of
5335         process-connection-type. It was broken on most platforms.
5336         Testing on Irix and Cygwin still needed.  Other plaforms tested.
5337         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
5338         * process-unix.c: Signal/Process handling overhaul.
5339         (pty_name): make 64 bytes, as `expect' does, for paranoia.
5340         (allocate_pty): Use all available modern methods of allocating
5341         ptys, falling back to old style BSD allocation as a last resort.
5342         Use allegedly more secure Unix98 pty allocation by default.
5343         (allocate_pty_the_old_fashioned_way): New. the last resort.
5344         (unix_create_process): Push ptem, ldterm, ttcompat where
5345         available.  Autoconfiscate.
5346         (try_to_initialize_subtty): New.
5347         (unix_kill_child_process): Proper signal handling for ptys on most
5348         platforms, using special knowledge of AIX, BSD, etc...
5349         (unix_create_process): Always disconnect_controlling_terminal() for
5350         subprocesses, whether using ptys or not.
5351         * process.h: Remove old getpt-dependent PTY code.
5352         * process.c (Fprocess_send_signal): New, obvious generic function.
5353         (decode_signal): New.
5354         (Finterrupt_process):
5355         (Fkill_process):
5356         (Fquit_process):
5357         (Fstop_process):
5358         (Fcontinue_process):
5359         (Fsignal_process): Use decode_signal.
5360         (process_send_signal):
5361         Many docstring corrections.
5362         Allow any signal to be sent to a process object.
5363         * config.h.in: Add symbols for big signal/process overhaul.
5364         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
5365         * sysproc.h: Include process-related headers, where available:
5366         sys/stropts.h sys/strtio.h pty.h libutil.h
5367         * s/irix4-0.h:
5368         * s/irix5-0.h:
5369         * s/cygwin32.h:
5370         * s/gnu.h:
5371         * s/linux.h:
5372         * s/hpux.h:
5373         * s/aix3-1.h:
5374         Remove old S&M pty stuff.
5375         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
5376         * systty.h: Simplify cpp hackery, improve comments.
5377         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
5378
5379         * editfns.c (Fformat_time_string):
5380         Be a little more paranoid with the return value of ctime.
5381
5382         * fileio.c (check_executable):
5383         (check_writable):
5384         Use symbolic constants X_OK, W_OK.
5385
5386         * console-x.c (split_up_display_spec): Fix a warning.
5387
5388 2000-10-02  Martin Buchholz  <martin@xemacs.org>
5389
5390         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
5391         * ntproc.c (sys_spawnve): make_string ==> build_string
5392         Small clarity improvements.
5393
5394 2000-09-30  Martin Buchholz  <martin@xemacs.org>
5395
5396         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
5397
5398         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
5399
5400         * config.h.in (HAVE_STRCASECMP): Remove.
5401
5402 2000-09-29  Martin Buchholz  <martin@xemacs.org>
5403
5404         * redisplay-output.c (redisplay_output_pixmap):
5405         Cleaner and possibly more 64-bit correct code.
5406
5407 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
5408
5409         * dumper.c (pdump_load_finish): move restoration of
5410         `noninteractive1' to emacs.c (main_1).
5411         * emacs.c (main_1): protect LISP-visible command-line flags
5412         from pdump_load().
5413
5414 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
5415
5416         * Makefile.in.in (versionclean):  Use EXE_TARGET and
5417         DUMP_TARGET instead of literal program names.
5418
5419 2000-09-20  Martin Buchholz  <martin@xemacs.org>
5420
5421         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
5422
5423 2000-09-19  Martin Buchholz  <martin@xemacs.org>
5424
5425         * *: Spelling mega-patch
5426
5427 2000-09-19  Martin Buchholz  <martin@xemacs.org>
5428
5429         * fns.c (bad_bad_turtle):
5430         Delete "Eek!" comment, since we fixed the bug to which it refers.
5431
5432 2000-09-16  Martin Buchholz  <martin@xemacs.org>
5433
5434         * alloca.c: Replace REGISTER with register.
5435
5436 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
5437
5438         * file-coding.c (ucs_to_char): Use countof.
5439
5440 2000-09-16  Martin Buchholz  <martin@xemacs.org>
5441
5442         * file-coding.c: (ucs_to_char):
5443         (complex_vars_of_file_coding):
5444         Use countof instead of sizeof.
5445         Use CHECK_NATNUM instead of CHECK_INT.
5446
5447         * sysdep.c (strcasecmp): Remove.
5448         * device-x.c (ascii_strcasecmp): New.
5449         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
5450         Avoid using non-standard non-portable strcasecmp.
5451
5452 2000-09-16  Martin Buchholz  <martin@xemacs.org>
5453
5454         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
5455         * font-lock.c: remove reference to emacsfns.h.
5456         * search.c: small doc improvement.
5457         * event-Xt.c: correct file names in comments.
5458         * console-x.h Correct file names in comments.
5459         * frame.c: Correct file names in comments.
5460         * event-stream.c: remove Energize from comments.
5461
5462 2000-09-15  Martin Buchholz  <martin@xemacs.org>
5463
5464         * symeval.h (DEFERROR_STANDARD):
5465         (DEFERROR):
5466         (DEFSYMBOL):
5467         (DEFSYMBOL_NO_DUMP):
5468         (DEFSYMBOL_MULTIWORD_PREDICATE):
5469         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
5470         (DEFKEYWORD):
5471         The construct &##name is not sensible C.
5472         Fixes compilation errors with Unixware native compiler.
5473
5474 2000-09-14  Martin Buchholz  <martin@xemacs.org>
5475
5476         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
5477         (next_frame_internal): Removed.  We now just have next_frame.
5478         (next_frame):
5479         Write a simpler and cleaner one-pass algorithm.
5480         Remove called_from_delete_device arg and #ifdefed-out code.
5481         (previous_frame):
5482         Renamed from prev_frame.  Update callers.
5483         Cleaned up to have an analogous implementation to next_frame.
5484         (other_visible_frames_internal): Remove the
5485         called_from_delete_device bogus arg, and hence, remove this
5486         function.  Just use other_visible_frames().
5487
5488         * window.c (Fnext_window):
5489         Prettify docstring.
5490         Since next_frame() is guaranteed to return a frame, remove check
5491         for nil inserted in previous patch.
5492         (Fprevious_window):
5493         Prettify docstring.
5494         Make code look more like Fnext_window.
5495         (window_loop):
5496         Respect the `console' arg when iterating through windows.
5497         Fixes bug: (get-buffer-window buffer t device) not respecting
5498         the `device' arg.
5499         This function needs more work, as others have pointed out.
5500
5501         * frame.h: Rename prev_frame to previous_frame.
5502         device_matches_console_spec no longer takes a `frame' arg.
5503
5504         * s/gnu.h:
5505         * s/linux.h:
5506         * s/hpux.h:
5507         Use EMACS_BLOCK_SIGNAL instead of sigblock.
5508         From "Golubev I. N." <gin@mo.msk.ru>.
5509
5510         * make-src-depend: Fix typo.
5511
5512 2000-09-13  Martin Buchholz  <martin@xemacs.org>
5513
5514         * window.c (Fnext_window):
5515         next_frame() might return nil, not a frame.
5516         Fixes this crash:
5517         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
5518
5519         * frame.c (next_frame_internal):
5520         We've passed a frame if we've passed its device.
5521         Fixes this crash:
5522         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
5523 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
5524
5525 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
5526
5527         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
5528         Allow option to suppress accelerators in menu/dialog items.
5529         (populate_or_checksum_helper): Pass dialog title through above.
5530
5531 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
5532
5533         * event-msw.c (mswindows_key_to_emacs_keysym):
5534         Add "pause" key, fix "menu" key.
5535
5536 2000-09-09  Martin Buchholz  <martin@xemacs.org>
5537
5538         * eval.c (reinit_vars_of_eval):
5539         Increase max_lisp_eval_depth to 1000,
5540         required for thai-xtis.el to byte-compile under some circumstances.
5541
5542 2000-09-04  Martin Buchholz  <martin@xemacs.org>
5543
5544         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
5545         From Kenichi Handa.
5546
5547 2000-09-01  Martin Buchholz  <martin@xemacs.org>
5548
5549         * make-src-depend: Make the generated Makefiles smaller.
5550
5551         * s/hpux.h (SETUP_SLAVE_PTY):
5552         Provide a %d in the format string for the errno argument.
5553
5554         * editfns.c (Ftemp_directory):
5555         Warning fix.
5556         Avoid buffer overrun on very long file name.
5557
5558         * input-method-xlib.c (XIM_init_device):
5559         6th parameter of XRegisterIMInstantiateCallback has different
5560         pointer types on different OSes, so simply cast to (void *).
5561
5562         * unexhp9k800.c: Warning fixes.  Fiddly changes.
5563
5564         * sysdll.c (dll_open):
5565         shl_load will hang hard if passed a NULL filename.
5566         Simply return NULL for compatibility with dlopen.
5567         * sysdll.c: Conform to XEmacs coding standards.
5568
5569         * sysdep.c (get_pty_max_bytes):
5570         Support pty input lines longer than 512 bytes on HP-UX 10.20.
5571
5572 2000-08-31  Martin Buchholz  <martin@xemacs.org>
5573
5574         * tooltalk.c: Add #include <syssignal.h>
5575
5576 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
5577
5578         * s/hpux.h: Don't use undefined function sigunblock().
5579
5580 2000-08-31  Martin Buchholz  <martin@xemacs.org>
5581
5582         * config.h.in: Add HAVE_BALLOON_HELP.
5583         * emacs.c: Use HAVE_BALLOON_HELP.
5584         * Makefile.in.in (x_objs):
5585         Make Balloon Help conditional on finding shape.h.
5586
5587 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
5588
5589         * syntax.c (regex_emacs_buffer_p): New variable.
5590         * syntax.h (regex_emacs_buffer_p): extern.
5591         * search.c (looking_at_1):
5592         (string_match_1):
5593         (fast_string_match):
5594         (search_buffer): Set regex_emacs_buffer_p.
5595         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
5596         when before_dot, at_dot, after_dot.
5597
5598 2000-08-23  Andy Piper  <andy@xemacs.org>
5599
5600         * gui-x.c (popup_selection_callback): Only set action_occurred
5601         when we really have an image instance.
5602         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
5603
5604 2000-08-23  Andy Piper  <andy@xemacs.org>
5605
5606         * gui-msw.c (mswindows_handle_gui_wm_command): set
5607         action_occurred.
5608         * gui-x.c (popup_selection_callback): ditto.
5609
5610         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
5611         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
5612         (struct Lisp_Image_Instance): add action_occurred flag.
5613
5614         * glyphs.c (redisplay_subwindow): use action_occurred flag.
5615         (image_instance_changed): ditto.
5616         (reset_frame_subwindow_instance_cache): only unmap windows - do
5617         not remove them from the cache also.
5618
5619         * glyphs-widget.c (tab_control_update): better debug.
5620         (progress_gauge_update): ditto.
5621         (layout_update): ditto.
5622         (layout_instantiate): ditto.
5623         (tab_control_order_only_changed): cope with null pending items.
5624
5625         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
5626         debug. Force selection of an item when an action occurred. Cope
5627         with null pending_items.
5628         (mswindows_progress_gauge_redisplay): better debug.
5629         * glyphs-x.c (x_tab_control_redisplay): ditto.
5630
5631         * redisplay.c (redisplay_frame): reset the frame cache if the
5632         frame is garbaged.
5633
5634         * window.c (Fset_window_configuration): potentially re-enable
5635         frame cache reset.
5636         (window_unmap_subwindows): need to finalize instances here since
5637         it is only used in mark_window_as_deleted.
5638
5639 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
5640
5641         * nas.c (SndOpenDataForReading):
5642         nas.c (WaveOpenDataForReading):
5643         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
5644         Somehow escaped from the 2000-08-14 patch.
5645
5646 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5647
5648         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
5649         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
5650
5651 2000-08-21  Andy Piper  <andy@xemacs.org>
5652
5653         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
5654         window if it is not already displayed.
5655
5656         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
5657         it is not already displayed.
5658
5659         * window.c (Fset_window_configuration): don't reset the frame
5660         cache.
5661
5662         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
5663         instances from the frame cache if we are actually finalizing them.
5664         (reset_frame_subwindow_instance_cache): reset frame cache only
5665         after unmapping everything.
5666         (map_subwindow): set displayed flag after mapping.
5667
5668 2000-08-21  Martin Buchholz  <martin@xemacs.org>
5669
5670         * data.c (indirect_function):
5671         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
5672
5673         * eval.c (function_argcount):
5674         Use original function when signaling errors.
5675
5676 2000-08-18  Andy Piper  <andy@xemacs.org>
5677
5678         * frame.c (delete_frame_internal): use new
5679         free_frame_subwindow_instances name.
5680
5681         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
5682         (add_tab_item): make return type correct.
5683         (mswindows_tab_control_instantiate): assert index of tab.
5684         (mswindows_tab_control_redisplay): Re-code to use
5685         gui_item_equal_sans_selected and gui_item_list_find_selected.
5686
5687         * glyphs-widget.c (tab_control_update): Correct comment.
5688
5689         * window.c (window_unmap_subwindows): use new
5690         unmap_subwindow_instance_cache_mapper.
5691         (window_unmap_subwindows_cache_mapper): deleted.
5692         (Fset_window_configuration): comparisons should now be with
5693         EQ. Preserve the subwindow instance cache across configuration
5694         changes.
5695         (allocate_window): ditto.
5696         (make_dummy_parent): ditto.
5697
5698         * glyphs.c (free_frame_subwindow_instances): rename from
5699         free_frame_subwindow_instance_cache. finalize all instances rather
5700         than just those in the display cache.
5701         (finalize_all_subwindow_instances): walk windows unmapping and
5702         finalizing subwindows.
5703         (unmap_subwindow_instance_cache_mapper): moved from
5704         window.c. Allow finalization as well as unmapping.
5705
5706         * gui.c (gui_item_list_find_selected): new function.
5707
5708         * gui.h (gui_item_list_find_selected): declare.
5709
5710         * glyphs-x.c (x_tab_control_redisplay): pick tab
5711         explicitly. Re-code to use gui_item_equal_sans_selected and
5712         gui_item_list_find_selected.
5713
5714         * glyphs-x.h: add lwlib-utils.h
5715
5716         * buffer.c (Frecord_buffer): undo previous change.
5717
5718 2000-08-09  Vin Shelton  <acs@xemacs.org>
5719
5720         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
5721         possible.  Create temporary files more securely.  The patch was
5722         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
5723         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
5724         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
5725         for details.
5726
5727 2000-08-07  Ben Wing  <ben@xemacs.org>
5728
5729         * getloadavg.c: remove duplicate (and windows-breaking)
5730         includes of fcntl.h and sys/file.h.
5731
5732         * nt.c: remove duplicate getloadavg() definition.
5733
5734         * sysdll.h (Qdll_filename_encoding): add missing stand-in
5735         encodings.
5736
5737 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
5738
5739         * eval.c (function_argcount): If function needs to be autoloaded
5740         actually use the loaded definition.
5741         GCPRO function.
5742
5743 2000-08-05  Ben Wing  <ben@xemacs.org>
5744
5745         * getloadavg.c: add prototype for getloadavg().  remove
5746         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
5747         of the code).  remove duplicate header includes.
5748
5749         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
5750
5751         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
5752         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
5753         useful load average.
5754
5755         * alloc.c (reinit_alloc_once_early): removed references to
5756         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
5757         the lisp vars are the only things referencing the malloc_sbrk_*
5758         vars, and they were already if 0'd out.  these vars only exist
5759         in the older malloc.c, which is basically unused, and they're
5760         only for informational purposes.
5761
5762         * m\*.h: removed useless VIRT_ADDR_VARIES.
5763
5764         * m\powerpc.h: removed stray NO_ARG_ARRAY.
5765
5766 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
5767
5768         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
5769         color if the image is a mono pixmap.
5770
5771 2000-07-30  Ben Wing  <ben@xemacs.org>
5772
5773         * Makefile.in.in (release):
5774         Remove stray @.
5775
5776         * buffer.c (directory_is_current_directory):
5777         * dired-msw.c (mswindows_get_files):
5778         * dired.c:
5779         * dired.c (Fdirectory_files):
5780         * dired.c (file_name_completion_stat):
5781         * dired.c (Ffile_attributes):
5782         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
5783         preprocessor tricks, to avoid problems on some machines
5784         (e.g. SCO).
5785
5786         * callproc.c (egetenv): GC docs.
5787
5788         * console-msw.h:
5789         * console-msw.h (struct mswindows_dialog_id):
5790         * lrecord.h (lrecord_type):
5791         New object for use with MSW dialogs.
5792
5793         * console.h (struct console_methods):
5794         New enable/disable frame methods, for proper modal dialogs.
5795
5796         * device-msw.c (msprinter_default_printer): Fix to follow
5797         proper Mule conventions.
5798
5799         * device-msw.c:
5800         * device-msw.c (signal_open_printer_error):
5801         * device-msw.c (msprinter_init_device):
5802         * device-msw.c (ensure_not_printing):
5803         * device-msw.c (plist_get_margin):
5804         * device-msw.c (Fmsprinter_select_settings):
5805         * device-msw.c (finalize_devmode):
5806         * device-msw.c (Fmsprinter_settings_despecialize):
5807         * device-msw.c (signal_enum_priner_error):
5808         * extents.c (decode_extent):
5809         * extents.c (decode_map_extents_flags):
5810         * extents.c (decode_extent_at_flag):
5811         * extents.c (Fextent_at):
5812         * extents.c (Fextents_at):
5813         * extents.c (symbol_to_glyph_layout):
5814         [[[[2]]]] Use structured errors.
5815
5816         * dialog-msw.c:
5817         * dialog-msw.c (mswindows_is_dialog_msg):
5818         * dialog-msw.c (mark_mswindows_dialog_id):
5819         * dialog-msw.c (dialog_proc):
5820         * dialog-msw.c (handle_question_dialog_box):
5821         * dialog-msw.c (syms_of_dialog_mswindows):
5822         Define new object to clean up marking; use it as a dialog identifier.
5823         Call new delete-dialog-box-hook.
5824
5825         * dialog-x.c (dbox_selection_callback):
5826         * dialog-x.c (dbox_descriptor_to_widget_value):
5827         * dialog-x.c (x_make_dialog_box_internal):
5828         Call new delete-dialog-box-hook.
5829         Return an id.
5830
5831         * dialog.c:
5832         * dialog.c (syms_of_dialog):
5833         * dialog.c (vars_of_dialog):
5834         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
5835
5836         * eval.c:
5837         * eval.c (signal_call_debugger):
5838         when noninteractive, output stack traces on the console instead
5839         of in a (never-seen) buffer.
5840
5841         * eval.c (signal_type_error):
5842         * eval.c (invalid_argument_2):
5843         * lisp.h:
5844         new funs for use w/structured errors.
5845
5846         * event-Xt.c:
5847         * event-Xt.c (x_to_emacs_keysym):
5848         * event-Xt.c (describe_event):
5849         * event-Xt.c (emacs_Xt_event_handler):
5850         * event-Xt.c (vars_of_event_Xt):
5851         * event-msw.c:
5852         * event-msw.c (mswindows_wnd_proc):
5853         * event-msw.c (vars_of_event_mswindows):
5854         rename {x,mswindows}-debug-events to debug-{}-events for
5855         consistency with other debug-foo variables.
5856
5857         * event-stream.c:
5858         document next-event more clearly.
5859
5860         * fileio.c (Ffile_name_directory):
5861         * fileio.c (Ffile_name_nondirectory):
5862         * fileio.c (Funhandled_file_name_directory):
5863         * fileio.c (file_name_as_directory):
5864         * fileio.c (Ffile_name_as_directory):
5865         * fileio.c (directory_file_name):
5866         * fileio.c (Fdirectory_file_name):
5867         * fileio.c (Fmake_temp_name):
5868         * fileio.c (Ffile_truename):
5869         * fileio.c (Fsubstitute_in_file_name):
5870         * fileio.c (expand_and_dir_to_file):
5871         * fileio.c (barf_or_query_if_file_exists):
5872         * fileio.c (check_executable):
5873         * fileio.c (Ffile_exists_p):
5874         * fileio.c (Ffile_writable_p):
5875         * fileio.c (Ffile_directory_p):
5876         * fileio.c (Ffile_regular_p):
5877         * fileio.c (Ffile_modes):
5878         * fileio.c (Ffile_newer_than_file_p):
5879         * fileio.c (Fverify_visited_file_modtime):
5880         * fileio.c (Fset_visited_file_modtime):
5881         * fileio.c (auto_save_1):
5882         (1). (2).
5883         fix up gcpro's.
5884
5885         * frame-msw.c:
5886         * frame-msw.c (mswindows_init_frame_1):
5887         * frame-msw.c (mswindows_enable_frame):
5888         * frame-msw.c (error_frame_unsizable):
5889         * frame-msw.c (msprinter_init_frame_1):
5890         * frame-msw.c (msprinter_init_frame_3):
5891         * frame-msw.c (console_type_create_frame_mswindows):
5892         (2).
5893         implement new enable/disable frame methods.
5894
5895         * frame-x.c:
5896         * frame-x.c (x_enable_frame):
5897         * frame-x.c (console_type_create_frame_x):
5898         implement new enable/disable frame methods.
5899
5900         * frame.c:
5901         * frame.c (Fdisable_frame):
5902         * frame.c (syms_of_frame):
5903         * frame.h (struct frame):
5904         implement new enable/disable frame methods/functions.
5905
5906         * general-slots.h:
5907         add initial-focus.
5908
5909         * glyphs-msw.c (mswindows_widget_instantiate):
5910         comment that initial-focus should be implemented.
5911
5912         * glyphs-widget.c:
5913         * glyphs-widget.c (check_valid_instantiator):
5914         * glyphs-widget.c (check_valid_orientation):
5915         * glyphs-widget.c (check_valid_tab_orientation):
5916         * glyphs-widget.c (check_valid_justification):
5917         * glyphs-widget.c (check_valid_border):
5918         * glyphs-widget.c (check_valid_callback):
5919         * glyphs-widget.c (check_valid_int_or_function):
5920         * glyphs-widget.c (check_valid_string_or_vector):
5921         * glyphs-widget.c (check_valid_item_list_1):
5922         * glyphs-widget.c (widget_validate):
5923         * glyphs-widget.c (combo_box_validate):
5924         * glyphs-widget.c (widget_instantiate):
5925         * glyphs-widget.c (syms_of_glyphs_widget):
5926         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
5927         * glyphs-widget.c (image_instantiator_combo_box):
5928         * glyphs-widget.c (image_instantiator_scrollbar):
5929         * glyphs-widget.c (image_instantiator_tab_control):
5930         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
5931         (2).
5932         support (unimplemented) keyword initial-focus.
5933         reindent long macros.
5934
5935         * glyphs-x.c (x_redisplay_widget):
5936         * glyphs-x.c (x_button_instantiate):
5937         * glyphs-x.c (x_button_redisplay):
5938         * glyphs-x.c (x_progress_gauge_instantiate):
5939         * glyphs-x.c (x_edit_field_instantiate):
5940         * glyphs-x.c (x_combo_box_instantiate):
5941         * glyphs-x.c (x_tab_control_instantiate):
5942         * glyphs-x.c (x_label_instantiate):
5943         * gui-x.c:
5944         * gui-x.c (button_item_to_widget_value):
5945         * gui-x.c (gui_items_to_widget_values_1):
5946         * gui-x.c (gui_item_children_to_widget_values):
5947         * gui-x.c (gui_items_to_widget_values):
5948         * gui-x.h:
5949         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
5950         add new flag to gui-parsing routines to indicate whether
5951         accelerator specs should be supported.
5952
5953         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
5954
5955         * glyphs.h (struct Lisp_Image_Instance):
5956         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
5957         add initial-focus flag.
5958
5959         * gui.c:
5960         * gui.c (syms_of_gui):
5961         * gui.c (vars_of_gui):
5962         clean up menu-no-selection-hook.
5963
5964         * gui.h:
5965         support delete-dialog-box-hook.
5966
5967         * lread.c (Fload_internal):
5968         * lread.c (locate_file_in_directory_mapper):
5969         (1).
5970
5971         * lrecord.h:
5972         * lrecord.h (struct toolbar_button):
5973         * lrecord.h (syms_of_toolbar):
5974         document how to create a new object.
5975
5976         * menubar-msw.c (mswindows_char_is_accelerator):
5977         may be called on frames w/o menus.
5978
5979         * menubar.c (vars_of_menubar):
5980         clean up :filter docs.
5981
5982         * nt.c (readdir):
5983         * ntproc.c:
5984         (1).
5985
5986         * process-nt.c:
5987         * process-nt.c (validate_signal_number):
5988         * process-nt.c (signal_cannot_launch):
5989         * process-nt.c (nt_create_process):
5990         * process-nt.c (nt_send_process):
5991         * process-nt.c (nt_kill_child_process):
5992         * process-nt.c (nt_open_network_stream):
5993         * process-nt.c (syms_of_process_nt):
5994         (2).
5995         delete quote-handling.  call new lisp code that does it better.
5996
5997         * process-unix.c (connect_to_file_descriptor):
5998         * process-unix.c (allocate_pty):
5999         * process-unix.c (unix_send_process):
6000         * process-unix.c (unix_kill_child_process):
6001         * process-unix.c (unix_open_network_stream):
6002         * process-unix.c (unix_open_multicast_group):
6003         (1). (2).
6004
6005         * process.c:
6006         * process.c (Fstart_process_internal):
6007         (2).  need to canonicalize process path even if absolute.
6008
6009         * select-msw.c (symbol_to_ms_cf):
6010         * select-msw.c (ms_cf_to_symbol):
6011         * select-msw.c (cf_is_autofreed):
6012         * select-msw.c (mswindows_destroy_selection):
6013         * select.c:
6014         * select.c (syms_of_select):
6015         * select.h:
6016         support dibv5, fix bugs. (from Mike Alexander)
6017
6018         * select.c (Fget_selection_internal):
6019         * select.c (select_convert_out):
6020
6021         * sysdep.c:
6022         * sysdep.c (xemacs_stat):
6023         renamed.
6024
6025         * sysdep.c (mkdir):
6026         * sysdep.c (rmdir):
6027         but keep original stat() here because we provide encapsulation
6028         around these funs.
6029
6030         * sysfile.h:
6031         * sysfile.h (fstat):
6032         remove stat garbage.
6033
6034         * syswindows.h:
6035         fix X/MSW conflict.
6036         don't include tchar.h.  it's inappropriate because it makes
6037         compile-time distinctions when we want runtime distinctions.
6038         (we provide our own tchar replacements)
6039
6040         * toolbar.c:
6041         use default object printer for toolbar-button.
6042
6043         * unexcw.c:
6044         make sure we don't encapsulate.
6045
6046         * window.c (vars_of_window):
6047         emphasize that temp-buffer-show-hook is obsolete.
6048
6049 2000-08-05  Martin Buchholz  <martin@xemacs.org>
6050
6051         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
6052         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
6053
6054         * events.c (Fevent_timestamp_lessp):
6055         Not 64-bit clean.  Use EMACS_INT, not int.
6056
6057 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
6058
6059         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
6060         unsigned int and changed the last enum to
6061         lrecord_type_last_built_in_type.
6062         (lrecord_implementations_table): changed prototype to know how
6063         long the array is supposed to be.
6064         (lrecord_type_count): new unsigned int to keep track of the
6065         current number of lisp lrecord types.
6066         (DEFINE_EXTERNAL_LRECORD):
6067         (DECLARE_EXTERNAL_LRECORD): Added these two for external
6068         dynamic-modules to declare new lisp types. They are the same
6069         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
6070         int for each new type, and increment lrecord_type_count by 1.
6071
6072         * alloc.c (lrecord_implementations_table): Changed to reference
6073         lrecord_type_last_built_in_type for the size of the array.
6074         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
6075
6076 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
6077
6078         * glyphs.h (check_valid_item_list): Renamed from
6079         check_valid_item_list_1.
6080
6081 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
6082
6083         * select.c (Qselect_coerce): New.
6084         * select.c (Vselection_coercion_alist): New.
6085         * select.c (syms_of_select): Declare.
6086         * select.c (get-selection-internal): Use it.
6087         Use the new select-coerce functionality.
6088
6089         * select.c (select_coerce): New.
6090         * select.h (select_coerce): Declare.
6091         New function to coerce one type of data into another.
6092
6093 2000-08-03  Martin Buchholz  <martin@xemacs.org>
6094
6095         * callproc.c (Fcall_process_internal):
6096         (Fcall_process_internal):
6097         * process-unix.c (unix_create_process):
6098         Save and restore the value of errno, so that error messages are accurate.
6099
6100 2000-08-01  Martin Buchholz  <martin@xemacs.org>
6101
6102         * elhash.c (print_hash_table):
6103         Fix printing of hash tables to also use `key-and-value' instead of `t'.
6104         Prettify docstrings and indentation.
6105
6106 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
6107
6108         * window.c (Fwindow_pixel_edges): Subtract frame border and
6109         gutter size.
6110
6111 2000-07-31  Andy Piper  <andy@xemacs.org>
6112
6113         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
6114         will acknowledge the change.
6115
6116         * glyphs.h: declare tab_control_order_only_changed.
6117
6118         * glyphs-x.c (x_tab_control_redisplay): use
6119         tab_control_order_only_changed.
6120
6121         * glyphs-widget.c (tab_control_order_only_changed): new function.
6122
6123         * glyphs-msw.c (mswindows_tab_control_redisplay): use
6124         tab_control_order_only_changed.
6125
6126         * gui.c (gui_item_equal_sans_selected): new function.
6127         (gui_item_equal): use it.
6128
6129         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
6130         :properties in favor of :items..
6131
6132         * glyphs-widget.c (check_valid_item_list): rename from
6133         check_valid_item_list_1.
6134         (check_valid_item_list_1): renamed.
6135         (combo_box_validate): deprecate :properties in favor of :items.
6136         (widget_instantiate): ditto.
6137         (tab_control_update): ditto.
6138         (image_instantiator_combo_box): ditto.
6139         (image_instantiator_tree_view): ditto.
6140         (image_instantiator_tab_control): ditto.
6141         (layout_post_instantiate): remove dead code.
6142
6143         * print.c (debug_print_no_newline): only write to debugger if in
6144         WIN32_NATIVE.
6145
6146         * elhash.c (Fmake_hash_table): update doc string.
6147
6148         * event-msw.c (mswindows_wnd_proc): don't allow processing of
6149         messages whilst in GC. This at least stops XEmacs crashing but has
6150         the potential for wierd behaviour.
6151
6152 2000-07-31  Martin Buchholz  <martin@xemacs.org>
6153
6154         * config.h.in:
6155         Make existence of s&m files optional.
6156
6157         * s/bsd386.h: Remove HAVE_GETLOADAVG.
6158         * s/freebsd.h: Remove HAVE_GETLOADAVG.
6159         * s/gnu.h: Remove HAVE_GETLOADAVG.
6160         * s/netbsd.h: Remove HAVE_GETLOADAVG.
6161         * s/sol2.h: Remove HAVE_GETLOADAVG.
6162         * lisp.h: Remove getloadavg() declaration.
6163         * fns.c:
6164         Include <sys/loadavg.h> if available.
6165         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
6166         * config.h.in:  Group together getloadavg()-related macros.
6167         Use only configure-time tests to detect getloadavg().
6168
6169 2000-07-30  Martin Buchholz  <martin@xemacs.org>
6170
6171         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
6172
6173 2000-07-25  Andy Piper  <andy@xemacs.org>
6174
6175         * syswindows.h: add tchar.h for native builds.
6176
6177         * frame.c (syms_of_frame): remove set-glyph-image.
6178
6179         * general-slots.h: add Qset_glyph_image.
6180
6181         * glyphs-widget.c (layout_update): add domain arg to
6182         set-glyph-image.
6183         (syms_of_glyphs_widget): remove set-glyph-image.
6184
6185 2000-07-23  Ben Wing  <ben@xemacs.org>
6186
6187         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
6188         Vpopup_frame_list.
6189
6190 2000-07-22  Andy Piper  <andy@xemacs.org>
6191
6192         * symsinit.h: add syms_of_win32().
6193
6194         * gui-msw.c (syms_of_gui_mswindows): remove
6195         Fmswindows_shell_execute.
6196         (Fmswindows_shell_execute): moved to win32.c.
6197
6198         * emacs.c (main_1): add syms_of_win32 ().
6199
6200         * win32.c (init_potentially_nonexistent_functions): rewrite in
6201         compiler-friendly terms.
6202         (Fmswindows_shell_execute): move here from gui-msw.c.
6203         (syms_of_win32): new.
6204
6205         * device-msw.c (Fmswindows_printer_list): clean up args to
6206         EnumPrinters.
6207         Don't include tchar under cygwin or mingw.
6208         (msprinter_default_printer): make cygwin-friendly.
6209
6210 2000-07-21  Andy Piper  <andy@xemacs.org>
6211
6212         * glyphs-widget.c (image_instantiator_tree_view): use tab
6213         control's update function.
6214         (layout_property): new function. Retrieve items.
6215
6216         * glyphs-msw.c (mswindows_tree_view_redisplay): new
6217         function. Re-populate the tree view from the pending items.
6218
6219         * glyphs.c (instantiate_image_instantiator): Make sure the domain
6220         is designated the parent if the domain is an image instance. This
6221         is needed so that dirtiness can be cascade up the hierarchy and
6222         thus for layout children to be redisplayed correctly.
6223         (allocate_image_instance): rename glyph -> parent.
6224
6225         * redisplay.h: change redisplay_output_layout signature.
6226
6227         * redisplay-msw.c (mswindows_output_display_block): use domain
6228         arg.
6229
6230         * redisplay-x.c (x_output_display_block): use domain arg.
6231
6232 2000-07-10  Andy Piper  <andy@xemacs.org>
6233
6234         * window.c (Fset_window_configuration): add comment.
6235
6236         * redisplay-output.c (compare_runes):
6237         (redisplay_output_subwindow): redisplay rather than update subwindow.
6238         (redisplay_output_layout): ditto.
6239
6240         * redisplay-msw.c (mswindows_frame_output_end):
6241         (mswindows_frame_output_end): make defer window pos optional.
6242
6243         * lisp.h: add Flast.
6244
6245         * glyphs.h (struct image_instantiator_methods): add dest_mask top
6246         normalize method. Change update method to be for changed
6247         instantiators. Add redisplay method. Change signature of layout
6248         method.
6249         (struct Lisp_Image_Instance): add instantiator.
6250         (IMAGE_INSTANCE_INSTANTIATOR): new.
6251         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
6252         (XIMAGE_INSTANCE_INSTANTIATOR): new.
6253         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
6254
6255         * glyphs.c:
6256         (find_instantiator_differences): new function.
6257         (Fset_instantiator_property): new convenience function.
6258         (check_image_instance_structure): strictly check for vector
6259         instantiators.
6260         (normalize_image_instantiator): make non-static.
6261         (instantiate_image_instantiator): pass on dest_mask and use new
6262         signatures for image_instance_layout and friends.
6263         (mark_image_instance): mark the instantiator. Mark the subwindow
6264         face not the widget face.
6265         (image_instance_equal): add instantiator.
6266         (image_instance_hash): ditto.
6267         (allocate_image_instance): ditto.
6268         (Fset_image_instance_property): removed.
6269         (Fimage_instance_file_name): ditto.
6270         (Fcolorize_image_instance): ditto.
6271         (image_instance_layout): add offsets to be set.
6272         (update_image_instance): new function. update an image instance
6273         from its changed instantiator.
6274         (inherit_normalize): add dest_mask.
6275         (xbm_normalize): ditto.
6276         (xface_normalize): ditto.
6277         (xpm_normalize): ditto.
6278         (text_update): set_property -> update.
6279         (image_instantiate): use the glyph identity as a hash key, not the
6280         instantiator.
6281         (glyph_width): use new image_instance_layout signature.
6282         (glyph_ascent): ditto.
6283         (glyph_descent): ditto.
6284         (glyph_height): ditto.
6285         (glyph_query_geometry): ressurrect.
6286         (glyph_layout): ditto.
6287         (redisplay_subwindow): update -> redisplay.
6288         (syms_of_glyphs): add Fset_instantiator_property.
6289         (image_instantiator_format_create): set_property -> update.
6290
6291         * glyphs-x.c:
6292         (autodetect_normalize): add dest_maks to signature.
6293         (x_redisplay_subwindow): update -> redisplay.
6294         (x_redisplay_widget): ditto.
6295         (x_button_redisplay): ditto.
6296         (x_progress_gauge_redisplay): ditto.
6297         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
6298         stacking order.
6299         (console_type_create_glyphs_x): update -> redisplay.
6300         (image_instantiator_format_create_glyphs_x): ditto.
6301
6302         * glyphs-widget.c:
6303         (check_valid_instantiator): disallow glyphs in the instantiator,
6304         they must now be vectors.
6305         (check_valid_instantiator_list): ditto.
6306         (glyph_instantiator_to_glyph): use internal symbol rather than
6307         intern.
6308         (widget_update): renamed from widget_set_property. Call cascaded
6309         update methods.
6310         (redisplay_widget): renamed from update_widget.
6311         (widget_layout): image_instance_layout now takes position as well
6312         as size.
6313         (widget_normalize): ditto.
6314         (widget_instantiate): ditto.
6315         (tab_control_query_geometry) ditto.:
6316         (tab_control_update): renamed from tab_control_set_property.
6317         (progress_gauge_update): set_property -> update.
6318         (layout_normalize): rewrite so that child instantiators are
6319         normalized also.
6320         (layout_update): new function. Create glyphs from the normalized
6321         children and cope with any other layout keywords. We do not
6322         instantiate children here that will be take care of by
6323         redisplay_output_layout.
6324         (layout_instantiate): call layout_update and not much else.
6325         (layout_post_instantiate): not sure whether this is needed
6326         anymore.
6327         (layout_query_geometry): query glyph geometry rather than
6328         image_instance geometry.
6329         (layout_layout): set offsets from pass in parameters. Use glyph
6330         geometry and layout functions rather than image instance ones.
6331         (native_layout_layout): ditto.
6332         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
6333         (image_instantiator_widget): set_property -> update.
6334         (image_instantiator_buttons): ditto.
6335         (image_instantiator_progress_guage): ditto.
6336         (image_instantiator_tab_control): ditto.
6337         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
6338         (image_instantiator_layout): add update method.
6339
6340         * glyphs-msw.c (bmp_normalize):
6341         (mswindows_resource_normalize): add dest_mask so that it can be
6342         proprogated by layout_normalize.
6343         (begin_defer_window_pos): make optional because it may not be the
6344         right thing to do and it introduces differences with X.
6345         (mswindows_unmap_subwindow): ditto.
6346         (mswindows_map_subwindow): ditto.
6347         (mswindows_redisplay_subwindow): renamed from
6348         mswindows_update_subwindow.
6349         (mswindows_redisplay_widget): ditto.
6350         (mswindows_button_redisplay): renamed from
6351         mswindows_button_update. Update is now what the instantiation
6352         function does for a changed instantiator.
6353         (mswindows_progress_gauge_instantiate): set the progress value
6354         here if appropriate.
6355         (mswindows_tab_control_redisplay): cope with re-ordering of the
6356         members of the tab widget by simply selecting the new top
6357         widget. This makes things appear ok if you click on a tab.
6358         (mswindows_combo_box_instantiate): image_instance_layout now takes
6359         position as well as size.
6360         (mswindows_progress_gauge_redisplay): renamed from
6361         mswindows_progress_gauge_update.
6362         (console_type_create_glyphs_mswindows): fix update -> redisplay.
6363         (image_instantiator_format_create_glyphs_mswindows): ditto.
6364
6365         * glyphs-eimage.c (jpeg_normalize):
6366         (gif_normalize):
6367         (png_normalize):
6368         (tiff_normalize): add dest_mask so that it can be proprogated by
6369         layout_normalize.
6370
6371         * elhash.c:
6372         (print_hash_table):
6373         (hash_table_weakness_validate):
6374         (decode_hash_table_weakness):
6375         (Fhash_table_weakness):
6376         (Fhash_table_type):
6377         (syms_of_elhash): use Ben's naming scheme for hashtable types..
6378
6379         * console.h (struct console_methods): move update_* to
6380         redisplay_*.
6381
6382 2000-07-20  Ben Wing  <ben@xemacs.org>
6383
6384         * *.[ch] (XSETOBJ): remove unused middle argument.
6385         lisp-disunion.h: correct wrap_object() to one argument.
6386
6387 2000-07-15  Ben Wing  <ben@xemacs.org>
6388
6389         * s/cygwin32.h:
6390         * s/cygwin32.h (CYGWIN_CONV_PATH):
6391         Add missing logb prototype for v1.1.
6392         Use post-b20 names and alias to pre-b20 names when pre-b20.
6393
6394         * s/windowsnt.h: [5].
6395
6396 2000-07-15  Ben Wing  <ben@xemacs.org>
6397
6398         * Makefile.in.in (x_objs):
6399         * Makefile.in.in (sheap_objs):
6400         * Makefile.in.in (objs):
6401         added win32.o, cosmetic cleanups.
6402
6403         * alloc.c (Fmake_byte_code):
6404         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
6405         etc. macros which declare their own args now.
6406
6407         * alloc.c (syms_of_alloc):
6408         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
6409
6410         * buffer.c:
6411         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
6412
6413         * buffer.c (Fget_file_buffer):
6414         Fixed GCPRO problem.
6415
6416         * buffer.c (get_truename_buffer):
6417         Fixed comment about GC checking.
6418
6419         * buffer.c (syms_of_buffer):
6420         Undeclared those dedicated frame funs.
6421         [2].
6422
6423         * buffer.h:
6424         Define convenience macros for internal/external conversions.
6425         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
6426         and Qenvironment_variable_encoding for cleaner code.
6427
6428         * bufslots.h:
6429         Remove dedicated-frame; in lisp.
6430
6431         * bytecode.c (funcall_compiled_function):
6432         [1].
6433
6434         * bytecode.c (syms_of_bytecode):
6435         [2].
6436
6437         * console-msw.c:
6438         * console-msw.c (mswindows_show_console): Rewrote.
6439
6440         * console-msw.c (Fmswindows_debugging_output): New.
6441         Sends to OutputDebugString (special MSWin debugger interface).
6442
6443         * console-msw.c (Fmswindows_message_box):
6444         Fixed stupid bugs so it works when called from kill-emacs.
6445
6446         * console-msw.c (syms_of_console_mswindows):
6447         Declare Fmswindows_debugging_output.
6448
6449         * console-msw.h:
6450         New MSWin prototypes.
6451
6452         * console-msw.h (struct mswindows_frame):
6453         New entry last-click-mods for improved button-modifier support.
6454
6455         * console-msw.h (FRAME_MSWINDOWS_POPUP):
6456         New struct entry `popup' with corresponding accessor.
6457
6458         * console-x.c:
6459         * console-x.c (split_up_display_spec):
6460         * console-x.c (get_display_arg_connection):
6461         * console-x.c (x_semi_canonicalize_console_connection):
6462         * console-x.c (x_canonicalize_device_connection):
6463         [[[6]]]: Change char to more specific type.
6464         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
6465
6466         * console-x.c (x_semi_canonicalize_console_connection):
6467         * console-x.c (x_canonicalize_device_connection):
6468         [[[9]]]: Fix up error signalling to use new structured error system.
6469
6470         * console-x.h:
6471         [[[4]]]: Define codesys aliases:
6472         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
6473         Qx_color_name_encoding, Qx_display_name_encoding.
6474
6475         * console.h (struct console_methods):
6476         New method make_dialog_box_internal supersedes older
6477         popup_dialog_box method.
6478
6479         * data.c:
6480         Define many new errors, part of new structured errors.
6481
6482         * data.c (init_errors_once_early):
6483         * data.c (syms_of_data):
6484         [2].
6485
6486         * device-msw.c (mswindows_init_device):
6487         [[[5]]]: Cleanup to support NT 3.51.
6488
6489         * device-msw.c (decode_devmode): Cleanup.
6490
6491         * device-msw.c (mswindows_handle_print_setup_dialog_box):
6492         * device-msw.c (mswindows_handle_print_dialog_box):
6493         * device-msw.c (mswindows_handle_page_setup_dialog_box):
6494         * device-msw.c (syms_of_device_mswindows):
6495         Delete the dialog box primitives recently introduced by Kirill and
6496         instead interface to general dialog box interface.
6497
6498         * device-x.c:
6499         * device-x.c (compute_x_app_name):
6500         * device-x.c (x_init_device):
6501         * device-x.c (Fx_valid_keysym_name_p):
6502         * device-x.c (Fx_set_font_path):
6503         [6].
6504         [7].
6505
6506         * device.h (wrap_device): New.
6507         First of its kind; meant to replace XSETDEVICE.
6508
6509         * dialog-msw.c: Many file-dialog symbols.
6510
6511         * dialog-msw.c (mswindows_register_popup_frame): New.
6512         * dialog-msw.c (mswindows_is_dialog_msg): New.
6513         For supporting kbd traversal in dialog boxes.
6514
6515         * dialog-msw.c (dialog_proc):
6516         Support hitting ESC in dialogs.
6517
6518         * dialog-msw.c (struct):
6519         Common dialog box errors.
6520
6521         * dialog-msw.c (handle_file_dialog_box): New.
6522         Add file dialog code.
6523
6524         * dialog-msw.c (handle_question_dialog_box):
6525         Redo existing code to support new question dialog syntax.
6526
6527         * dialog-msw.c (console_type_create_dialog_mswindows):
6528         We support new dialog console method.
6529
6530         * dialog-msw.c (syms_of_dialog_mswindows):
6531         * dialog-msw.c (vars_of_dialog_mswindows):
6532         New file dialog symbols, vars.
6533
6534         * dialog-x.c:
6535         * dialog-x.c (maybe_run_dbox_text_callback):
6536         * dialog-x.c (dbox_descriptor_to_widget_value):
6537         * dialog-x.c (x_make_dialog_box_internal):
6538         * dialog-x.c (console_type_create_dialog_x):
6539         Mule-ize entire file.
6540         Redo to support question dialog syntax.
6541         [6].
6542
6543         * dialog.c:
6544         * dialog.c (Fmake_dialog_box_internal):
6545         * dialog.c (syms_of_dialog):
6546         Kill old popup-dialog-box, replace with new primitive.
6547         Just call device method or signal error.
6548
6549         * eldap.c (Fldap_open):
6550         * eldap.c (Fldap_search_basic):
6551         * eldap.c (Fldap_add):
6552         * eldap.c (Fldap_modify):
6553         [1].
6554         [7].
6555
6556         * emacs.c:
6557         * emacs.c (make_arg_list_1):
6558         * emacs.c (make_arg_list):
6559         Mule-ize call to dll_init().
6560         [6].
6561         [8].
6562
6563         * emacs.c (make_argc_argv):
6564         * emacs.c (free_argc_argv):
6565         * emacs.c (init_cmdargs):
6566         * emacs.c (main_1):
6567         * emacs.c (Fkill_emacs):
6568         * emacs.c (Fdump_emacs):
6569         Update comments about what can be used in syms_* etc.
6570         Call init_win32() when necessary.
6571         Fix up MS Win dialog box in kill-buffer to actually work right.
6572         [7].
6573
6574         * eval.c:
6575         * eval.c (For):
6576         * eval.c (Fand):
6577         * eval.c (Fprogn):
6578         * eval.c (Fprog1):
6579         * eval.c (Fprog2):
6580         * eval.c (FletX):
6581         * eval.c (Flet):
6582         * eval.c (condition_case_3):
6583         * eval.c (Feval):
6584         * eval.c (function_argcount):
6585         * eval.c (funcall_lambda):
6586         [1].
6587
6588         * eval.c (type_error): New.
6589         * eval.c (maybe_type_error): New.
6590         * eval.c (continuable_type_error): New.
6591         * eval.c (maybe_continuable_type_error): New.
6592         * eval.c (type_error_with_frob): New.
6593         * eval.c (maybe_type_error_with_frob): New.
6594         * eval.c (continuable_type_error_with_frob): New.
6595         * eval.c (maybe_continuable_type_error_with_frob): New.
6596         New functions for use with structured errors.
6597
6598         * event-Xt.c:
6599         * event-Xt.c (x_event_to_emacs_event):
6600         Buttons are now modifiers too.
6601
6602         * event-Xt.c (emacs_Xt_current_event_timestamp):
6603         Implement new event method.
6604         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
6605
6606         * event-msw.c:
6607         * event-msw.c (ntpipe_shove_writer): [5].
6608         * event-msw.c (mswindows_enqueue_mouse_button_event):
6609         * event-msw.c (mswindows_drain_windows_queue):
6610         * event-msw.c (mswindows_wnd_proc): [7].
6611         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
6612         * event-msw.c (mswindows_modifier_state):
6613         Throughout: support new button modifiers.
6614
6615         * event-msw.c (emacs_mswindows_current_event_timestamp):
6616         Implement new event method.
6617         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
6618
6619         * event-stream.c:
6620         * event-stream.c (event_stream_current_event_timestamp): New.
6621         * event-stream.c (maybe_kbd_translate): New functionality.
6622         * event-stream.c (vars_of_event_stream):
6623         Document new kbd-translate-table functionality.
6624
6625         * event-stream.c (Fcurrent_event_timestamp): New.
6626         New primitive for use in fabricated events.
6627         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
6628
6629         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
6630
6631         * events.c:
6632         * events.c (Fmake_event):
6633         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
6634         [1].
6635         [9].
6636
6637         * events.c (format_event_object): fix gcc warnings.
6638
6639         * events.c (Fevent_timestamp): Document new primitives.
6640
6641         * events.c (TIMESTAMP_HALFSPACE): New.
6642
6643         * events.c (Fevent_timestamp_lessp): New.  New primitive for
6644         comparing timestamps correctly (half-space algorithm).
6645
6646         * events.c (Fevent_modifier_bits): Doc fix.
6647
6648         * events.c (Fevent_modifiers): Major doc addition.
6649         * events.c (event_x_y_pixel_internal): Typo fix.
6650         * events.c (syms_of_events): Declare new primitives.
6651
6652         * events.h:
6653         Update long comment for button modifiers, timestamps.
6654
6655         * events.h (struct event_stream):
6656         New current_event_timestamp method.
6657
6658         * extents.c:
6659         * extents.c (extent_in_region_p):
6660         * extents.c (decode_extent):
6661         * extents.c (Fset_extent_parent):
6662         * extents.c (decode_map_extents_flags):
6663         Fix gcc warnings.
6664         [9].
6665
6666         * extents.c (struct extent_at_arg):
6667         * extents.c (decode_extent_at_flag):
6668         * extents.c (extent_at_mapper):
6669         * extents.c (extent_at_bytind):
6670         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
6671         * extents.c (Fextents_at): New primitive. [9].
6672         * extents.c (symbol_to_glyph_layout): [9].
6673         Support new primitive `extents-at'.
6674
6675
6676         * extents.c (get_text_property_bytind):
6677         extent_at_bytind has another arg.
6678         [9].
6679
6680         * extents.c (syms_of_extents): New primitive.
6681
6682         * file-coding.c (Fmake_coding_system): [1].
6683         * file-coding.c (subsidiary_coding_system): fix gcc warning
6684         * file-coding.c (syms_of_file_coding): [2].
6685
6686         * fileio.c (Fexpand_file_name):
6687         * fileio.c (Fsysnetunam):
6688         * fileio.c (Ffile_exists_p):
6689         * fileio.c (Ffile_executable_p):
6690         * fileio.c (Fverify_visited_file_modtime):
6691         Clean up GCPROing.
6692
6693         * fileio.c (syms_of_fileio): [2].
6694
6695         * filelock.c (lock_file_1):
6696         * filelock.c (current_lock_owner):
6697         * filelock.c (lock_if_free):
6698         * filelock.c (lock_file):
6699         * filelock.c (unlock_file):
6700         Clean up GCPROing.
6701
6702         * fns.c (concat): Fix gcc warning.
6703
6704         * fns.c (Fmember):
6705         * fns.c (Fold_member):
6706         * fns.c (Fmemq):
6707         * fns.c (Fold_memq):
6708         * fns.c (memq_no_quit):
6709         * fns.c (Fassoc):
6710         * fns.c (Fold_assoc):
6711         * fns.c (Fassq):
6712         * fns.c (Fold_assq):
6713         * fns.c (assq_no_quit):
6714         * fns.c (Frassoc):
6715         * fns.c (Fold_rassoc):
6716         * fns.c (Frassq):
6717         * fns.c (Fold_rassq):
6718         * fns.c (rassq_no_quit):
6719         * fns.c (Fdelete):
6720         * fns.c (Fold_delete):
6721         * fns.c (Fdelq):
6722         * fns.c (Fold_delq):
6723         * fns.c (delq_no_quit):
6724         * fns.c (Fremassoc):
6725         * fns.c (Fremassq):
6726         * fns.c (remassq_no_quit):
6727         * fns.c (Fremrassoc):
6728         * fns.c (Fremrassq):
6729         * fns.c (remrassq_no_quit):
6730         * fns.c (Freverse):
6731         * fns.c (mapcar1):
6732         [1].
6733
6734         * frame-msw.c (mswindows_init_frame_1):
6735         * frame-msw.c (mswindows_delete_frame):
6736         Register popups with dialog code so keyboard traversing works.
6737
6738         * frame-tty.c (tty_raise_frame_no_select): [1].
6739
6740         * frame-x.c:
6741         * frame-x.c (x_set_frame_text_value):
6742         * frame-x.c (x_set_frame_properties):
6743         * frame-x.c (x_create_widgets):
6744         [7].
6745
6746         * frame.c:
6747         * frame.c (Fmouse_pixel_position): Minor doc fixes.
6748
6749         * frame.h (wrap_frame): New.
6750         Macro like wrap_device.
6751
6752         * general.c:
6753         * general.c (SYMBOL):
6754         * general.c (syms_of_general):
6755         Major reorg.  This is now just a wrapper and symbols themselves
6756         are listed in general-slots.h.
6757
6758         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
6759         * glyphs-msw.c (mswindows_resource_instantiate): [5].
6760
6761         * glyphs-msw.c (mswindows_native_layout_instantiate):
6762         Add DS_CONTROL so keyboard traversal will work.
6763
6764         * glyphs-widget.c:
6765         * glyphs-widget.c (syms_of_glyphs_widget):
6766         Move some symbols to general-slots.h.
6767
6768         * glyphs-x.c:
6769         * glyphs-x.c (xbm_instantiate_1):
6770         * glyphs-x.c (x_xbm_instantiate):
6771         * glyphs-x.c (x_xface_instantiate):
6772         * glyphs-x.c (autodetect_instantiate):
6773         * glyphs-x.c (cursor_font_instantiate):
6774         * glyphs-x.c (x_update_widget):
6775         * glyphs-x.c (x_widget_instantiate):
6776         * glyphs.c (bitmap_to_lisp_data):
6777         * glyphs.c (pixmap_to_lisp_data):
6778         [7].
6779
6780         * glyphs.c (syms_of_glyphs):
6781         [2].
6782
6783         * gui-x.c:
6784         * gui-x.c (print_widget_value):
6785         * gui-x.c (menu_separator_style_and_to_external):
6786         * gui-x.c (add_accel_and_to_external):
6787         * gui-x.c (button_item_to_widget_value):
6788         * gui-x.c (gui_items_to_widget_values_1):
6789         * gui-x.c (gui_items_to_widget_values):
6790         * gui-x.c (syms_of_gui_x):
6791         * gui-x.c (vars_of_gui_x):
6792         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
6793         [9].
6794
6795         * gui-x.h:
6796         Muleize, prototype changes matching gui-x.c.
6797
6798         * gui.c:
6799         * gui.c (separator_string_p):
6800         * gui.c (gui_item_add_keyval_pair):
6801         * gui.c (make_gui_item_from_keywords_internal):
6802         * gui.c (signal_too_long_error):
6803         * gui.c (parse_gui_item_tree_item):
6804         * gui.c (syms_of_gui):
6805         * gui.c (vars_of_gui):
6806         * gui.h:
6807         menu-no-selection-hook moved here (used by MSWin).
6808         Move some symbols to general-slots.h.
6809         [6].
6810         [9].
6811
6812         * insdel.c (get_buffer_pos_char):
6813         * insdel.c (get_buffer_range_char):
6814         Add GC comments.
6815
6816         * keymap.c (keymap_lookup_directly):
6817         * keymap.c (keymap_store):
6818         * keymap.c (ensure_meta_prefix_char_keymapp):
6819         * keymap.c (describe_map):
6820         * keymap.h:
6821         Support new button modifiers.
6822
6823         * lisp-disunion.h (wrap_object):
6824         * lisp-disunion.h (XSETOBJ):
6825         Rename make_obj to wrap_object.
6826
6827         * lisp-union.h:
6828         * lisp-union.h (make_int):
6829         * lisp-union.h (make_char):
6830         Support wrap_object.
6831
6832         * lisp.h:
6833         * lisp.h (LIST_LOOP):
6834         * lisp.h (EXTERNAL_LIST_LOOP):
6835         * lisp.h (LIST_LOOP_2):
6836         * lisp.h (EXTERNAL_LIST_LOOP_1):
6837         * lisp.h (EXTERNAL_LIST_LOOP_2):
6838         * lisp.h (EXTERNAL_LIST_LOOP_3):
6839         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
6840         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
6841         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
6842         * lisp.h (EXTERNAL_ALIST_LOOP_5):
6843         * lisp.h (EXTERNAL_ALIST_LOOP_6):
6844         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
6845         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
6846         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
6847         * lisp.h (struct Lisp_Symbol):
6848         * lisp.h (maybe_continuable_error_with_frob):
6849         Fix up section comments.
6850         Add new types for char to indicate usage.
6851         Delete symbols auto-generated from general-slots.h.
6852         Add prototypes for structured error functions.
6853         Add long comments describing looping macros and change interface
6854         so that lvalues are automatically declared.
6855         Add NO_DECLARE macro in case callers want to declare lvalues
6856         themselves.
6857
6858         * lread.c (read_syntax_error):
6859         * lread.c (continuable_read_syntax_error):
6860         * lread.c (read_structure):
6861         * lread.c (sequence_reader):
6862         * lread.c (read_list_conser):
6863         * lread.c (read_compiled_function):
6864         Rename syntax_error and continuable_syntax_error to avoid clash
6865         with same-named structured error functions.
6866
6867         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
6868         * menubar-msw.c (populate_menu_add_item):
6869         * menubar-msw.c (populate_or_checksum_helper):
6870         [5].
6871         [9].
6872
6873         * menubar-x.c:
6874         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
6875         Mule-ize whole file.
6876
6877         * menubar.c (Fnormalize_menu_item_name): Add optimization.
6878
6879         * mule-charset.c (Fmake_charset):
6880         * mule-wnnfns.c (Fwnn_set_param):
6881         [1].
6882
6883         * ntproc.c (create_child):
6884         * ntproc.c (Fwin32_set_current_locale):
6885         Add comments portending doom.
6886
6887         * objects-msw.c:
6888         * objects-msw.c (old_font_enum_callback_2):
6889         * objects-msw.c (font_enum_callback_1):
6890         * objects-msw.c (mswindows_enumerate_fonts):
6891         [5].
6892
6893         * objects-x.c:
6894         * objects-x.c (allocate_nearest_color):
6895         * objects-x.c (x_parse_nearest_color):
6896         * objects-x.c (x_initialize_color_instance):
6897         * objects-x.c (x_print_color_instance):
6898         * objects-x.c (x_finalize_color_instance):
6899         * objects-x.c (x_valid_color_name_p):
6900         * objects-x.c (x_initialize_font_instance):
6901         * objects-x.c (x_print_font_instance):
6902         * objects-x.c (valid_x_font_name_p):
6903         * objects-x.c (truename_via_FONT_prop):
6904         * objects-x.c (truename_via_random_props):
6905         * objects-x.c (truename_via_XListFonts):
6906         * objects-x.c (x_font_truename):
6907         * objects-x.c (x_font_instance_truename):
6908         * objects-x.c (x_font_instance_properties):
6909         * objects-x.c (x_list_fonts):
6910         * objects-x.c (x_find_charset_font):
6911         Mule-ize entire file.
6912         [7].
6913
6914         * objects-x.h:
6915         Mule-verify.
6916
6917         * print.c:
6918         * print.c (std_handle_out_external):
6919         * print.c (debug_print_no_newline):
6920         * print.c (syms_of_print):
6921         Output to all debugger kinds in debug-print.
6922         Fix console-output code under MSWin to actually work.
6923
6924         * process-nt.c (send_signal):
6925         * process-nt.c (nt_create_process):
6926         Use newer Unicode macros.
6927
6928         * process-unix.c (unix_create_process):
6929         * process-unix.c (unix_canonicalize_host_name):
6930         * process-unix.c (unix_open_network_stream):
6931         [7].
6932
6933         * scrollbar-x.c:
6934         Mule-verify.
6935
6936         * search.c (syms_of_search):
6937         [2].
6938
6939         * select-msw.c (mswindows_destroy_selection):
6940         Use LIST_LOOP_2.
6941
6942         * select-x.c (symbol_to_x_atom):
6943         [7].
6944
6945         * select.c (syms_of_select):
6946         [2].
6947
6948         * sound.c (Fplay_sound_file):
6949         [7].
6950
6951         * specifier.c:
6952         * specifier.c (decode_specifier_type):
6953         * specifier.c (Fvalid_specifier_locale_type_p):
6954         * specifier.c (check_valid_locale_or_locale_type):
6955         * specifier.c (decode_locale):
6956         * specifier.c (decode_locale_type):
6957         * specifier.c (decode_locale_list):
6958         * specifier.c (check_valid_domain):
6959         * specifier.c (decode_specifier_tag_set):
6960         * specifier.c (Fcanonicalize_tag_set):
6961         * specifier.c (Fdefine_specifier_tag):
6962         * specifier.c (Fspecifier_tag_predicate):
6963         * specifier.c (check_valid_inst_list):
6964         * specifier.c (check_valid_spec_list):
6965         * specifier.c (decode_how_to_add_specification):
6966         * specifier.c (check_modifiable_specifier):
6967         * specifier.c (specifier_add_spec):
6968         * specifier.c (boolean_validate):
6969         * specifier.c (display_table_validate):
6970         [9].
6971
6972         * specifier.c (syms_of_specifier):
6973         Move some symbols to general-slots.h.
6974         [2].
6975
6976         * symbols.c:
6977         * symbols.c (Fmapatoms):
6978         * symbols.c (Fapropos_internal):
6979         Add GCPROs.
6980
6981         * symbols.c (set_default_buffer_slot_variable):
6982         * symbols.c (set_default_console_slot_variable):
6983         [1].
6984
6985         * symbols.c (defsymbol_massage_name_1):
6986         * symbols.c (defkeyword_massage_name):
6987         * symbols.c (deferror_1):
6988         * symbols.c (deferror):
6989         * symbols.c (deferror_massage_name_and_message):
6990         * symeval.h:
6991         * symeval.h (DEFSYMBOL):
6992         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
6993
6994         * symbols.c (syms_of_symbols):
6995         [2].
6996
6997         * symsinit.h:
6998         * symsinit.h (init_win32): New.
6999         Also new is syms_of_dialog_mswindows.
7000
7001         * syswindows.h:
7002         Add new Unicode macros, missing Cygwin wide-char functions,
7003         convenience conversion macros for Qmswindows_tstr, macros for
7004         encapsulating required MSWin <-> Cygwin filename conversions,
7005         prototype for dynamically-extracted (not in NT 3.51) functions.
7006
7007         * toolbar-x.c:
7008         Mule-verify.
7009
7010         * tooltalk.c (Fadd_tooltalk_message_arg):
7011         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
7012         * tooltalk.c (Fadd_tooltalk_pattern_arg):
7013         [7].
7014
7015         * tooltalk.c (syms_of_tooltalk):
7016         [2].
7017
7018         * unexnt.c:
7019         * unexnt.c (unexec):
7020         Fix up headers, declaration of unexec() to be more standard.
7021
7022 2000-07-20  Martin Buchholz  <martin@xemacs.org>
7023
7024         * offix.h: Revert change to guard macros - they're used in offix.c!
7025
7026 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7027
7028         * lisp.h: Defsubred Fdelete.
7029
7030         * console-msw.h:  (msprinter_default_printer): Added.
7031
7032         * console-msw.c (msprinter_canonicalize_console_connection):
7033         (msprinter_canonicalize_device_connection): Added.
7034
7035         * device-msw.c (msprinter_default_printer):
7036         (Fmswingows_get_default_printer):
7037         (signal_enum_priner_error):
7038         (Fmswingows_printer_list): Added.
7039
7040 2000-07-19  Martin Buchholz <martin@xemacs.org>
7041
7042         * XEmacs 21.2.35 is released.
7043
7044 2000-07-19  Martin Buchholz  <martin@xemacs.org>
7045
7046         * select-x.c (x_handle_selection_request):
7047         Text selected in xemacs and pasted into xterm failed to appear.
7048         Spelling fixes and cosmetic changes.
7049
7050 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7051
7052         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
7053         XEmacs frame (fix for doubling chars in dialog boxes).
7054
7055 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7056
7057         * select.c (select_convert_in, select_convert_out):
7058         Don't call intern() every time.
7059
7060         * select.c (Qselect_convert_in, Qselect_convert_out): New.
7061         * select.c (vars_of_select): Initialise them.
7062
7063 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7064
7065         * select.c (selection-coercible-types): New.
7066
7067         * select.c (own-selection-internal):
7068         * select.c (get-selection-internal):
7069         MULE bug fix - these should default to COMPOUND_TEXT and not
7070         STRING for MULE. I think.
7071
7072         * select.c (select_convert_out): Use selection-coercible-types
7073         to find types that we can attempt to perform coercions on.
7074
7075 2000-07-18  Martin Buchholz  <martin@xemacs.org>
7076
7077         * mule-wnnfns.c:
7078         * mule-canna.c:
7079         Add coding: cookie to identify encoding.
7080
7081         * mule-canna.c (CANNA_mode_keys): make static.
7082         Use proper prototypes, even for functions of no arguments.
7083         Remove external prototype for Fding().
7084
7085         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
7086
7087         * select.c (syms_of_select): Add missing DEFSUBR.
7088
7089 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7090
7091         * select.c (get_selection_internal, own_selection_internal):
7092         Make the type default to STRING, rather than placing a nil type
7093         into Vselection_alist.
7094
7095 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7096
7097         * gpmevent.c (tty_selection_exists_p):
7098         * gpmevent.c (tty_own_selection):
7099         Updated parameter lists.
7100
7101 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
7102
7103         * select.h (selection-alist): Removed declaration.
7104
7105         * select.h (get_local_selection):
7106         * select.c (get_local_selection):
7107         Made static.
7108
7109         * select.h (convert_selection): Removed declaration.
7110         * select.c (convert_selection): Removed.
7111         This function belongs in Lisp.
7112
7113         * select.h (select_convert_in): Declare.
7114         * select.h (select_convert_out): Declare.
7115         * select.c (select_convert_in): New.
7116         * select.c (select_convert_out): New.
7117         New conversion functions for other files to call.
7118
7119         * select.h (select_notify_buffer_kill): Declare.
7120         * select.c (select_notify_buffer_kill): New.
7121         New functions that get called from kill-buffer.
7122
7123         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
7124         X-specific lisp code.
7125
7126         * select.h: Declare some of the lisp-visible functions for
7127         external use.
7128
7129         * select.c (clean_local_selection_data): Removed. This was
7130         a disgusting function, and previously should have been in
7131         select-x.c in any case. The functionality is now provided
7132         in select-convert-from-integer (select.el).
7133
7134         * select.c (available-selection-types): Fixed stupidity where
7135         INTEGER and ATOM got added twice. Also add STRING when we see an
7136         extent.
7137
7138         * select.c (get-selection-internal): Removed symbol stripping. No
7139         longer causes conversion when data comes from the internal cache.
7140
7141         * select.c (syms_of_select): Added new functions.
7142
7143         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
7144         error checking - previously this called abort!
7145
7146         * select-x.c (x_own_selection): Changed comment.
7147
7148         * select-x.c (x_handle_selection_request): Use select_convert_out.
7149         Don't mess with selection-alist; it's an internal variable of select.c.
7150
7151         * select-x.c (x_get_foreign_selection): Use select_convert_in.
7152
7153         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
7154         rather than messing with selection-alist.
7155
7156         * select-msw.c (mswindows_get_foreign_selection):
7157         Use TO_INTERNAL_FORMAT rather than hacking.
7158
7159 2000-07-14  Martin Buchholz  <martin@xemacs.org>
7160
7161         * process-unix.c (unix_open_multicast_group):
7162         (unix_open_multicast_group): Remove useless casts.
7163
7164 2000-07-13  Martin Buchholz  <martin@xemacs.org>
7165
7166         * sound.c (Fplay_sound): Fix `unused variable' warning.
7167
7168         * emacs.c (main): Use correct type for _environ on SCO5.
7169
7170 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
7171
7172         * console.h (own_selection_method):
7173         * console.h (selection_exists_p_method):
7174         * console.h (available_selection_types_method): New.
7175         * console.h (register_selection_data_type_method): New.
7176         * console.h (selection_data_type_name): New.
7177
7178         * console-msw.h (mswindows_destroy_selection): Declare it.  New
7179         function & alist to track GlobalAlloc()'d handles that need
7180         releasing when the clipboard data gets replaced or emptied.
7181
7182         * event-msw.c (mswindows_wnd_proc): Call it.
7183
7184         * lisp.h, general.c (Qappend): New symbol representing a
7185         `how-to-add' mode.
7186
7187         * select.c (own-selection-internal):
7188         * select.c (selection-exists-p):
7189         * select.c (available-selection-types): New.
7190         * select.c (register-selection-data-type): New.
7191         * select.c (selection-data-type-name): New.  New functions to deal
7192         with device-specific selection data formats.
7193         * select.c (selection-converter-out-alist): Renamed.
7194         * select.c (selection-converter-in-alist): New.
7195         * select.c (selection-appender-alist): New.  Added new alists.
7196         * select.c (syms_of_select, vars_of_select): Added new symbols &
7197         variables.
7198         * select.c (get_local_selection): Split.
7199         * select.c: Removed spurious type checking - selections may now be
7200         of any type, not just strings.
7201         * select.c (own-selection-internal):
7202
7203         * select.h, select.c (convert_selection): New. Created
7204         convert_selection() function based on get_local_selection().
7205         * select.h, select.c (QCF_*): New symbols representing mswindows
7206         clipboard formats.
7207         * select.h, select.c (Qreplace_all, Qreplace_existing): New
7208         symbols representing `how-to-add' modes.
7209
7210         * select-msw.c (x_sym_p): New.
7211         * select-msw.c (symbol_to_ms_cf): New.
7212         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
7213         symbols & clipboard formats. Can also handle string names.
7214         * select-msw.c (mswindows_own_selection):
7215         * select-msw.c (mswindows_selection_exists_p):
7216         Added `data-type' parameter. Use it.
7217         * select-msw.c (mswindows_available_selection_types): New.
7218         * select-msw.c (mswindows_register_selection_data_type): New.
7219         * select-msw.c (mswindows_selection_data_type_name): New.
7220         * select-msw.c (mswindows_own_selection):
7221         * select-msw.c (mswindows_get_foreign_selection):
7222         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
7223         * select-msw.c (console_create_select_mswindows): Added new methods.
7224         * select-msw.c (mswindows_destroy_selection): New.
7225         * select-msw.c (Vhandle_alist): New list.
7226         * select-msw.c (mswindows_own_selection):
7227
7228         * select-x.c (x_own_selection):
7229         * select-x.c (x_selection_exists_p):
7230         * select-x.c: Added some comments about maybe using new
7231         functionality.
7232         * select-x.c (x_own_selection):
7233
7234         * specifier.c: Remove definition of Qappend (now in general.c)
7235         * specifier.c (syms_of_specifier): Remove Qappend.
7236
7237 2000-07-12  Martin Buchholz  <martin@xemacs.org>
7238
7239         * config.h.in: Add socklen_t.
7240
7241         * s/decosf4-0.h: No special compiler flags needed or desired.
7242         In particular, undefine _BSD for DEC OSF 4.0.
7243
7244 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7245
7246         * redisplay-msw.c (msprinter_frame_output_end): Added.
7247         (console_type_create_redisplay_mswindows): Referred the above.
7248
7249         * frame.c (setup_frame_without_minibuffer): Do not create a
7250         default minibuffer frame on a printer device.
7251
7252         * frame-msw.c (apply_dc_geometry): Added.
7253         (msprinter_start_page):
7254         (msprinter_init_frame_3):
7255         (msprinter_eject_page): Use it.
7256
7257         * console-msw.h (struct msprinter_frame): Added pix_left and top,
7258         and removed residual duplex and orientation properties.
7259
7260 2000-07-11  Martin Buchholz  <martin@xemacs.org>
7261
7262         * eval.c (function_argcount): Work around a DEC CC compiler bug.
7263
7264         * unexalpha.c: Remove system prototypes from C sources!
7265
7266 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
7267
7268         * eval.c: Remove references to M-x edit-options in DEFUNs for
7269         `defvar' and `defconst'.
7270
7271 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7272
7273         * config.h.in: Remove SMART_INCLUDE hackery.
7274
7275         PostgreSQL hacking:
7276         * config.h.in: Don't use SMART_INCLUDE.
7277
7278         * postgresql.h: Include libpq-fe.h here.  Fix typo.
7279         * inline.c: Simply #include "postgresql.h"
7280         * postgresql.c:
7281         - Don't use SMART_INCLUDE
7282         - Use simply "const".
7283         - Use standard doc string conventions.
7284         - Use correct type for result of PQstatus.
7285
7286 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7287
7288         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
7289
7290         C++ compilation changes.
7291         * config.h.in (EXTERN_C): Define.
7292         * config.h.in (not): This is also a C++ keyword.
7293         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
7294         * cm.c: Use EXTERN_C.
7295         * redisplay-tty.c: Use EXTERN_C.
7296         * sysdep.c: Use EXTERN_C.  Remove Gould support.
7297
7298 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7299
7300         * general.c: Remove duplicate definition for Qfunction.
7301
7302 2000-07-08  Ben Wing  <ben@xemacs.org>
7303
7304         * device-msw.c (msprinter_init_device):
7305         * device-msw.c (sync_printer_with_devmode):
7306         * device-msw.c (handle_devmode_changes):
7307         * device-msw.c (print_dialog_worker):
7308         * device-msw.c (Fmsprinter_apply_settings):
7309         * device-msw.c (hash_devmode):
7310         * device-msw.c (Fmsprinter_settings_despecialize):
7311         use Qmswindows_tstr, not Qctext.
7312
7313         * vm-limit.c (check_memory_limits):
7314         avoid infinite loop printing warning messages.
7315
7316 2000-07-05  Craig Lanning  <lanning@scra.org>
7317
7318         * Makefile.in.in: Add support for including the Windows resources
7319         when building with the cygwin and mingw targets.
7320
7321         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
7322         not set or not correct.
7323         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
7324         (init_initial_directory): Don't try to use $PWD on the
7325         WIN32_NATIVE target.
7326
7327         * s\cygwin32.h:
7328         [[Add -mwindows to eliminate console window.]] not required --ben
7329         (HAVE_NATIVE_SOUND): removed; now handled by configure.
7330         (MAIL_USE_POP): removed; now handled by configure.
7331
7332         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
7333         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
7334         (HAVE_NATIVE_SOUND): removed; now handled by configure.
7335         (MAIL_USE_POP): removed; now handled by configure.
7336         (ENCAPSULATE_STAT): from Dan Holmsand, added.
7337         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
7338         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
7339         constant string.
7340         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
7341         up from <winsock.h> via systime.h.
7342         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
7343         (getpagesize): from Dan Holmsand, added.
7344         Added #endif which was left dangling by Ben's mega patch; added
7345         comment to help prevent this in the future.
7346
7347         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
7348
7349 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7350
7351         * console-msw.h (struct mswindows_device): Removed unnecessary
7352         cached device geometry values.
7353         Added update_tick and an accessor macro.
7354         (Lisp_Devmode): Added lrecord declaration.
7355         (struct msprinter_device): Contain devmode as a Lisp object.
7356         Added mswindows_get_selected_frame_hwnd();
7357
7358         * console.h (struct console_methods): Indentation nitpicking.
7359
7360         * device-msw.c (mswindows_init_device): Do not initialize geometry
7361         cache. Initialize update tick.
7362         (mswindows_device_system_metrics): Ask the device for its geometry.
7363         (global_free_2_maybe):
7364         (devmode_to_hglobal):
7365         (handle_printer_changes):
7366         (ensure_not_printing):
7367         (print_dialog_worker):
7368         (Fmsprinter_print_setup_dialog):
7369         (Fmsprinter_print_dialog):
7370         (plist_get_margin):
7371         (plist_set_margin):
7372         (Fmsprinter_page_setup_dialog): Added functions.
7373         (sync_printer_with_devmode):
7374         (handle_devmode_changes):
7375         (Fmsprinter_get_settings):
7376         (Fmsprinter_select_settings):
7377         (Fmsprinter_apply_settings):
7378         (allocate_devmode):
7379         (Fmsprinter_settings_copy):
7380         (Fmsprinter_settings_despecialize):
7381         (print_devmode):
7382         (finalize_devmode):
7383         (equal_devmode):
7384         (hash_devmode): Added functions
7385         (syms_of_device_mswindows): Init devmode lrecord class.
7386
7387         * device.h: Added an exfun for find-device.
7388
7389         * event-msw.c (mswindows_wnd_proc): Do not update the cached
7390         geometry; although, recreate the device compatible DC.
7391
7392         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
7393         (msprinter_init_frame_3):
7394         (msprinter_frame_property):
7395         (msprinter_internal_frame_property_p):
7396         (msprinter_frame_properties):
7397         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
7398         print job properties (will move to device settings).
7399
7400         * lisp.h: Added symbols.
7401
7402         * general.c (syms_of_general): Declared them.
7403
7404         * hash.c (string_hash): Added.
7405
7406         * lrecord.h (lrecord_type): Added devmode lrecord type.
7407
7408 2000-07-02  Mike Sperber <mike@xemacs.org>
7409
7410         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
7411         FreeBSD 4.0.
7412
7413 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
7414
7415         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
7416         integer.
7417
7418 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
7419
7420         * data.c (Fstring_to_number): Don't recognize floating point if
7421         base is not 10.
7422
7423 2000-06-22  Martin Buchholz  <martin@xemacs.org>
7424
7425         * glyphs-widget.c (tab_control_query_geometry):
7426         (widget_query_geometry):
7427         (button_query_geometry):
7428         * glyphs.c (text_query_geometry):
7429         Enforce type correctness.
7430
7431 2000-06-18  Martin Buchholz  <martin@xemacs.org>
7432
7433         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
7434         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
7435
7436 2000-06-17  Martin Buchholz  <martin@xemacs.org>
7437
7438         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
7439         conflicts with gcc's fixincluded version of FOO.h.
7440
7441         * glyphs.h (image_instance_geometry): Remove trailing `,'
7442
7443 2000-06-08  Mike Alexander  <mta@arbortext.com>
7444
7445         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
7446         (shove_thread): Don't write the same output twice
7447         (make_ntpipe_output_stream): Increase priority of shove thread
7448         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
7449         chance to run
7450         (ntpipe_shove_closer): Don't delete the pipe until we're done with
7451         it.
7452
7453 2000-06-12  Ben Wing  <ben@xemacs.org>
7454
7455         * s\mingw32.h (sigset):
7456         * s\windowsnt.h (sigset):
7457         rename msw_ to mswindows_ for consistency with general convention.
7458
7459 2000-06-12  Ben Wing  <ben@xemacs.org>
7460
7461         * console-msw.c:
7462         * console-msw.c (mswindows_get_console_hwnd):
7463         * console-msw.c (mswindows_ensure_console_allocated):
7464         * console-msw.c (mswindows_hide_console):
7465         * console-msw.c (mswindows_show_console):
7466         * console-msw.c (mswindows_ensure_console_buffered):
7467         * console-msw.c (mswindows_output_console_string):
7468         * console-msw.c (mswindows_windows9x_p):
7469         * console-msw.h:
7470         * device-msw.c (mswindows_get_workspace_coords):
7471         * device-msw.c (mswindows_device_system_metrics):
7472         * dialog-msw.c (mswindows_popup_dialog_box):
7473         * event-msw.c (mswindows_wnd_proc):
7474         * frame-msw.c (mswindows_size_frame_internal):
7475         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
7476         * menubar-msw.c (displayable_menu_item):
7477         * menubar-msw.c (mswindows_char_is_accelerator):
7478         * nt.c:
7479         * nt.c (mswindows_sigset):
7480         * nt.c (mswindows_sigrelse):
7481         * nt.c (mswindows_sigpause):
7482         * nt.c (mswindows_raise):
7483         * nt.c (timer_proc):
7484         * ntproc.c:
7485         * ntproc.c (find_child_console):
7486         * ntproc.c (sys_kill):
7487         * print.c:
7488         * print.c (std_handle_out_external):
7489         * process-nt.c (find_child_console):
7490         * process-nt.c (send_signal_the_95_way):
7491         * process-nt.c (ensure_console_window_exists):
7492         * process-nt.c (nt_create_process):
7493         * syssignal.h:
7494         rename msw_ to mswindows_ for consistency with general convention.
7495
7496         * emacs.c:
7497         * dumper.c:
7498         include nt.h, not syswindows.h.
7499
7500         * nt.c (mswindows_fstat):
7501         * nt.c (mswindows_stat):
7502         prefix mswindows_ instead of attempting to directly override the
7503         library functions.  fix declarations.
7504
7505         * nt.h:
7506         include syswindows.h.  move some sysdep.h stuff here.
7507
7508         * ntheap.h:
7509         include syswindows.h, not <windows.h>.
7510
7511         * ntplay.c:
7512         clean up headers.
7513
7514         * sysdep.c:
7515         clean up headers.
7516
7517         * sysdep.c (sys_fstat):
7518         * sysdep.c (sys_stat):
7519         call mswindows versions when appropriate.
7520
7521         * sysdep.h:
7522         move mswin decls to nt.h.
7523
7524         * syswindows.h:
7525         add long comment describing appropriate use of the various windows
7526         headers.
7527
7528 2000-06-11  Ben Wing  <ben@xemacs.org>
7529
7530         * device-x.c: Correct doc string for sixth arg of x-get-resource.
7531
7532 2000-06-10  Ben Wing  <ben@xemacs.org>
7533
7534         * Makefile.in.in (release):
7535         Correction to make sure xemacs.exe always dumped when correct.
7536
7537         * alloca.c:
7538         * balloon_help.c:
7539         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
7540
7541         * buffer.c (set_buffer_internal):
7542         [[[[2]]]]: Remove HAVE_FEP code.
7543
7544         * buffer.c (init_initial_directory):
7545         [3].
7546
7547         * bytecode.c:
7548         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
7549         individual files.
7550
7551         * callproc.c:
7552         * callproc.c (call_process_cleanup):
7553         * callproc.c (Fold_call_process_internal):
7554         * callproc.c (child_setup):
7555         * callproc.c (getenv_internal):
7556         * callproc.c (init_callproc):
7557         * callproc.c (vars_of_callproc):
7558         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
7559         __CYGWIN32__ -> CYGWIN.
7560         DOS_NT -> WIN32_NATIVE.
7561         Remove MSDOS support/references, converting to WIN32_NATIVE
7562           where correct.
7563         __MINGW32__ -> MINGW.
7564         Fix windows.h includes.
7565         Remove bogus HAVE_NTGUI.
7566
7567         * config.h.in:
7568         [2].
7569
7570         * console-msw.c:
7571         mswindows_message_outputted added for use in allowing startup
7572         errors on the console to be seen.
7573
7574         * console-msw.c (msw_ensure_console_allocated):
7575         * console-msw.c (msw_output_console_string):
7576         * console-msw.c (DHEADER):
7577         * console-msw.c (DOPAQUE_DATA):
7578         * console-msw.c (DEVENT):
7579         * console-msw.c (DCONS):
7580         * console-msw.c (DCONSCDR):
7581         * console-msw.c (DSTRING):
7582         * console-msw.c (DVECTOR):
7583         * console-msw.c (DSYMBOL):
7584         * console-msw.c (DSYMNAME):
7585         Fix warnings.
7586
7587         * console-stream.c (stream_init_console):
7588         Fix text/binary problems.
7589
7590         * device-msw.c:
7591         * device-msw.c (mswindows_finish_init_device):
7592         * device-msw.c (mswindows_delete_device):
7593         [1].
7594
7595         * device.c (handle_asynch_device_change):
7596         [3].
7597
7598         * dgif_lib.c:
7599         * dgif_lib.c (DGifOpenFileName):
7600         * dgif_lib.c (DGifOpenFileHandle):
7601         * dgif_lib.c (DGifGetLine):
7602         * dgif_lib.c (DGifGetPixel):
7603         Added config.h/lisp.h, fix up includes.
7604         [1].
7605
7606         * dired-msw.c:
7607         [4].
7608
7609         * dired.c:
7610         * dired.c (file_name_completion):
7611         * dired.c (Ffile_attributes):
7612         * dired.c (syms_of_dired):
7613         [1].
7614
7615         * dumper.c:
7616         * dumper.c (pdump_file_unmap):
7617         * dumper.c (pdump_load):
7618         [1].
7619
7620         * editfns.c:
7621         * editfns.c (Ftemp_directory):
7622         * editfns.c (user_login_name):
7623         * editfns.c (Fuser_real_login_name):
7624         * editfns.c (get_home_directory):
7625         [1].
7626
7627         * elhash.c (finish_marking_weak_hash_tables):
7628         [[[[5]]]]: Fix GCC warnings.
7629
7630         * emacs.c:
7631         * emacs.c (mswindows_handle_hardware_exceptions):
7632         * emacs.c (make_arg_list_1):
7633         * emacs.c (main_1):
7634         * emacs.c (Fkill_emacs):
7635         * emacs.c (Fdump_emacs):
7636         [1].
7637         Fix problems with nested crashes, add long comment.
7638
7639         * event-Xt.c (init_event_Xt_late):
7640         [1].
7641
7642         * event-msw.c:
7643         * event-msw.c (mswindows_dde_callback):
7644         * event-msw.c (mswindows_handle_sticky_modifiers):
7645         * event-msw.c (mswindows_wnd_proc):
7646         [1].
7647         [5].
7648
7649         * events.c (character_to_event):
7650         [1].
7651
7652         * fileio.c:
7653         * fileio.c (Ffile_name_directory):
7654         * fileio.c (Ffile_name_nondirectory):
7655         * fileio.c (directory_file_name):
7656         * fileio.c (Fexpand_file_name):
7657         * fileio.c (Fsubstitute_in_file_name):
7658         * fileio.c (Ffile_name_absolute_p):
7659         * fileio.c (check_executable):
7660         * fileio.c (Ffile_readable_p):
7661         * fileio.c (Ffile_accessible_directory_p):
7662         * fileio.c (Ffile_modes):
7663         * fileio.c (Funix_sync):
7664         * fileio.c (vars_of_fileio):
7665         [1]. [4].
7666
7667         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
7668
7669         Expand getdefdir defn.
7670         Fix bogus rename() comment.
7671
7672         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
7673         to use standard XEmacs include files, e.g. sysfile.h, rather
7674         than system-specific includes.
7675
7676         * fns.c:
7677         * fns.c (Fsubseq):
7678         [5]. [6].
7679
7680         * frame.c (vars_of_frame):
7681         [1].
7682
7683         * getloadavg.c:
7684         * getloadavg.c (getloadavg):
7685         [1]. [6].
7686         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
7687         (We don't use it elsewhere in the code; just add a comment.)
7688
7689         * gif_io.c:
7690         [6].
7691         Add config.h.
7692
7693         * glyphs-msw.c:
7694         * glyphs-msw.c (mswindows_resource_instantiate):
7695         [1].
7696
7697         * glyphs-x.c (x_native_layout_instantiate):
7698         [5].
7699
7700         * gui-msw.c (Fmswindows_shell_execute):
7701         [1].
7702
7703         * insdel.c:
7704         [4].
7705
7706         * lisp.h:
7707         [4]. [5].
7708
7709         * lread.c (locate_file_in_directory_mapper):
7710         [1].
7711
7712         * lstream.c:
7713         [4].
7714
7715         * mem-limits.h:
7716         * mem-limits.h (get_lim_data):
7717         [1].
7718
7719         * menubar-msw.c:
7720         [4].
7721
7722         * ndir.h:
7723         [1].
7724
7725         * nt.c:
7726         * nt.c (getwd):
7727         * nt.c (closedir):
7728         * nt.c (rva_to_section):
7729         * nt.c (mswindows_executable_type):
7730         [1]. [6].
7731         Fix closedir() defn.
7732
7733         * nt.h:
7734         [[[[8]]]]: *_OK defs moved to sysfile.h.
7735
7736         * ntproc.c:
7737         [6]. [7].
7738
7739         * objects-x.c:
7740         [4].
7741
7742         * print.c:
7743         * print.c (std_handle_out_external):
7744         [1]. [4].
7745
7746         * process-nt.c:
7747         * process-nt.c (nt_create_process):
7748         [6].
7749         try to fix process quoting somewhat.
7750
7751         * process-unix.c (unix_create_process):
7752         [1].
7753
7754         * process.c:
7755         * process.c (vars_of_process):
7756         Add Vnull_device.
7757
7758         * process.h:
7759         [1].
7760
7761         * realpath.c:
7762         * realpath.c (xrealpath):
7763         [1].
7764
7765         * redisplay-tty.c (init_tty_for_redisplay):
7766         [3].
7767
7768         * redisplay.c:
7769         [4]. [6].
7770
7771         * scrollbar-msw.c:
7772         [4].
7773
7774         * sheap.c:
7775         * sheap.c (more_static_core):
7776         * sheap.c (report_sheap_usage):
7777         [5]. [6].
7778
7779         * signal.c:
7780         * signal.c (alarm_signal):
7781         [1]. [6].
7782
7783         * sound.c:
7784         [6].
7785
7786         * strftime.c:
7787         * strftime.c (zone_name):
7788         [1]. [5].
7789
7790         * symsinit.h (init_sunpro):
7791         [1].
7792
7793         * syscommctrl.h:
7794         commctrl.h not in Cygwin b20.1.
7795
7796         * sysdep.c:
7797         * sysdep.c (endif):
7798         * sysdep.c (sys_subshell):
7799         * sysdep.c (init_baud_rate):
7800         * sysdep.c (emacs_get_tty):
7801         * sysdep.c (emacs_set_tty):
7802         * sysdep.c (tty_init_sys_modes_on_device):
7803         * sysdep.c (init_system_name):
7804         * sysdep.c (sys_open):
7805         * sysdep.c (interruptible_open):
7806         * sysdep.c (sys_fopen):
7807         * sysdep.c (sys_mkdir):
7808         * sysdep.c (sys_rename):
7809         * sysdep.c (get_process_times_1):
7810         [1]. [6].
7811
7812         * sysdep.h:
7813         [1].
7814
7815         * sysdir.h:
7816         * sysdir.h (DIRENTRY_NONEMPTY):
7817         [1]. [6].
7818
7819         * sysdll.c (dll_init):
7820         * sysdll.h:
7821         [1].
7822
7823         * sysfile.h:
7824         [1]. [6]. [8].
7825         added text/binary defs.
7826
7827         * sysfloat.h:
7828         [1].
7829
7830         * sysproc.h:
7831         * sysproc.h (EDESTADDRREQ):
7832         * sysproc.h (poll_fds_for_input):
7833         [1]. [6].
7834
7835         * syspwd.h:
7836         [6].
7837
7838         * syssignal.h:
7839         [1].
7840
7841         * systime.h:
7842         [1]. [6].
7843
7844         * systty.h:
7845         [1].
7846
7847         * syswindows.h:
7848         [1].
7849         Always define WIN32_LEAN_AND_MEAN.
7850
7851         * unexcw.c (unexec):
7852         [5].
7853
7854         * unexec.c:
7855         * unexec.c (copy_text_and_data):
7856         * unexec.c (adjust_lnnoptrs):
7857         [1].
7858
7859         * unexnt.c:
7860         * unexnt.c (_start):
7861         [1].
7862
7863 2000-06-07  Ben Wing  <ben@xemacs.org>
7864
7865         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
7866         was used only as a model.  We've long since extracted any useful
7867         logic or code out of this. (I just did an exhaustive search.)
7868
7869         * s\msdos.h: Removed.
7870
7871         * s\windows95.h: Removed.
7872
7873 2000-06-10  Ben Wing  <ben@xemacs.org>
7874
7875         * s\cygwin32.h:
7876         [1]. [5].
7877         Don't use extern with fun defs.
7878
7879         * s\mingw32.h:
7880         [1]. [7].
7881         Remove nt\inc include.
7882         Remove getdisk, getdefdir. (The former is unused, the latter
7883         expanded in fileio.h.)
7884
7885         * s\windowsnt.h:
7886         * s\windowsnt.h (WIN32_NATIVE):
7887         * s\windowsnt.h (HAVE_STRCASECMP):
7888         [1]. [7].
7889         Add long comment about preprocessor changes.
7890         Remove getdisk, getdefdir. (The former is unused, the latter
7891         expanded in fileio.h.)
7892
7893 2000-06-10  Ben Wing  <ben@xemacs.org>
7894
7895         * m\arm.h:
7896         * m\delta.h:
7897         * m\intel386.h:
7898         * m\sequent.h:
7899         * m\template.h:
7900         * m\windowsnt.h:
7901         [1].
7902         Remove bogus/unused NO_SOCK_SIGIO.
7903
7904 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
7905
7906         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
7907         not an Emchar.
7908
7909 2000-06-04  Mike Sperber <mike@xemacs.org>
7910
7911         * casetab.c (set_case_table): For `set-standard-case-table',
7912         actually deposit the new case tables where the rest of XEmacs can
7913         see them.
7914
7915 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
7916
7917         * data.c (Faset): Don't cast XCHAR() to unsigned char.
7918
7919 2000-06-05  Ben Wing  <ben@xemacs.org>
7920
7921         * callproc.c (child_setup): Don't do close_load_descs() under
7922         MS Windows.  Put in a comment explaining why.
7923
7924 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
7925
7926         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
7927         Toolkit shell" which breaks `kill-compilation' on Windows NT
7928         native, retaining STDERR handling improvements.
7929
7930 2000-06-01  Andreas Jaeger  <aj@suse.de>
7931
7932         * s/s390.h: Support for S390, based on a patch by Martin
7933         Schwidefsky <schwidefsky@de.ibm.com>.
7934
7935 2000-05-30  Andy Piper  <andy@xemacs.org>
7936
7937         * window.c (allocate_window):
7938         (make_dummy_parent):
7939         (Fset_window_configuration): use new hashtable type.
7940
7941         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
7942         (struct image_instantiator_methods):
7943         (struct Lisp_Image_Instance): make instance geometry signed.
7944
7945         * glyphs.c (instantiate_image_instantiator):
7946         (image_instance_query_geometry):
7947         (image_instance_layout):
7948         (image_instance_layout):
7949         (query_string_geometry):
7950         (text_query_geometry):
7951         (image_instantiate):
7952         (image_instantiate):
7953         (cache_subwindow_instance_in_frame_maybe):
7954         (subwindow_query_geometry): make instance geometry signed.
7955
7956         * glyphs-widget.c (widget_query_geometry):
7957         (widget_layout):
7958         (button_query_geometry):
7959         (tree_view_query_geometry):
7960         (tab_control_query_geometry):
7961         (layout_query_geometry):
7962         (layout_layout):
7963         (native_layout_layout): make instance geometry signed.
7964
7965 2000-05-29  Olivier Galibert  <galibert@pobox.com>
7966
7967         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
7968         constant.
7969
7970         * general.c (syms_of_general): Add Qfull_assoc symbol.
7971
7972         * data.c (finish_marking_weak_lists): Mark full-assoc lists
7973         correctly.
7974         (decode_weak_list_type): Decode full-assoc type.
7975         (encode_weak_list_type): Encode full-assoc type.
7976         (Fmake_weak_list): Update doc string.
7977
7978 2000-05-30  Andy Piper  <andy@xemacs.org>
7979
7980         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
7981
7982         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
7983         (decode_hash_table_weakness): ditto.
7984         (Fhash_table_weakness): ditto.
7985         (Fhash_table_type): ditto.
7986         (finish_marking_weak_hash_tables): ditto.
7987         (hash_table_weakness_validate): ditto.
7988         (syms_of_elhash): ditto.
7989
7990 2000-05-28  Martin Buchholz <martin@xemacs.org>
7991
7992         * XEmacs 21.2.34 is released.
7993
7994 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
7995
7996         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
7997         start cache.
7998         (updating_line_start_cache): Gone.
7999         (regenerate_window): Replace resetting of VERTICAL_CLIP by
8000         generic code to force a minimum of 1 line laid out in the
8001         CMOTION_DISP case.
8002
8003 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
8004
8005         * glyphs.c (instantiate_image_instantiator): Check for initialized
8006         height & width no longer special cases IMAGE_NOTHING.
8007         (nothing_instantiate): Set height and width of instance.
8008
8009 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
8010
8011         * unexelf.c (unexec): Search for ".data" section.
8012         Initialize new_data2_offset from old_data_index.
8013         Remove redundant check for ElfW.
8014
8015 2000-05-23  Andy Piper  <andy@xemacs.org>
8016
8017         * glyphs.c (get_image_instantiator_governing_domain): allow more
8018         specific domains as the governing domain rather than expecting an
8019         exact match. This fixes problems with layouts.
8020
8021 2000-05-22  Andy Piper  <andy@xemacs.org>
8022
8023         * redisplay-output.c (compare_runes): check for non-images
8024
8025         * glyphs.c (set_glyph_dirty_p): ditto.
8026         (update_glyph_cachel_data): ditto.
8027
8028         * glyphs-widget.c (layout_post_instantiate): ditto.
8029         (layout_post_instantiate): ditto.
8030
8031         * event-msw.c (mswindows_wnd_proc): warning removal.
8032
8033 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
8034
8035         * s\mingw32.h: Added #undef for CLASH_DETECTION.
8036
8037         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
8038
8039         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
8040
8041         * nt.c (rva_to_section): mingw32 needs rva_to_section.
8042         (mswindows_executable_type): mingw32 now has enough headers for
8043         this to work.
8044
8045 2000-05-20  Andy Piper  <andy@xemacs.org>
8046
8047         * console-msw.c (mswindows_output_last_error): ; -> ,
8048
8049 2000-05-12  Andy Piper  <andy@xemacs.org>
8050
8051         * console-msw.c (FROB): compare ints with ints.
8052
8053 2000-05-11  Andy Piper  <andy@xemacs.org>
8054
8055         * glyphs-x.c (x_finalize_image_instance): make minimal build
8056         happy.
8057
8058 2000-05-20  Ben Wing  <ben@xemacs.org>
8059
8060         * event-Xt.c:
8061         * event-Xt.c (vars_of_event_Xt):
8062         move modifier-keys-are-sticky to event-stream.c.
8063
8064         * event-msw.c:
8065         * event-msw.c (mswindows_enqueue_mouse_button_event):
8066         * event-msw.c (key_needs_default_processing_p):
8067         * event-msw.c (XEMSW_LCONTROL):
8068         * event-msw.c (mswindows_handle_sticky_modifiers):
8069         * event-msw.c (FROB):
8070         * event-msw.c (clear_sticky_modifiers):
8071         * event-msw.c (output_modifier_keyboard_state):
8072         * event-msw.c (output_alt_keyboard_state):
8073         * event-msw.c (mswindows_wnd_proc):
8074         * event-msw.c (mswindows_modifier_state):
8075         * event-msw.c (emacs_mswindows_handle_magic_event):
8076         implement sticky modifiers.
8077
8078         * event-stream.c:
8079         * event-stream.c (vars_of_event_stream):
8080         move modifier-keys-are-sticky here.
8081
8082         * lisp.h:
8083         add CHECK_FUNCTION.
8084
8085         * rangetab.c:
8086         implement map-range-table.
8087
8088
8089 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
8090
8091         * redisplay-tty.c (reset_tty_modes):
8092         (tty_redisplay_shutdown): Adjust argument type to
8093         tty_frame_output_end.
8094
8095 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8096
8097         * eval.c (Fbacktrace): Don't output a line with only right
8098         parenthesis.
8099
8100 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
8101
8102         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
8103         (Fpq_reset_poll): Ditto.
8104
8105 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
8106
8107         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
8108
8109 2000-05-16  Ben Wing  <ben@xemacs.org>
8110
8111         * buffer.c:
8112         * buffer.c (dfc_convert_to/from_internal_format):
8113         * buffer.c (reinit_vars_of_buffer):
8114         Fix conversion functions to allow reentrancy.
8115
8116         * console-msw.c:
8117         * console-msw.c (mswindows_output_last_error):
8118         New fun, generally useful -- output a human-readable
8119         version of GetLastError() on the console.
8120
8121         * console-msw.h:
8122         * console-msw.h (struct mswindows_frame):
8123         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
8124
8125         * console-stream.c (stream_output_begin):
8126         * console-stream.c (stream_output_end):
8127         * console-stream.c (stream_output_vertical_divider):
8128         * console-stream.c (stream_clear_region):
8129         * console-stream.c (stream_flash):
8130         * console-stream.c (console_type_create_stream):
8131         Delete blank stream methods, not needed.
8132
8133         * console.h (struct console_methods):
8134         Split begin/end methods into window and frame.
8135
8136         * event-msw.c:
8137         * event-msw.c (mswindows_handle_paint):
8138         * event-msw.c (output_alt_keyboard_state):
8139         * event-msw.c (mswindows_wnd_proc):
8140         * event-msw.c (vars_of_event_mswindows):
8141         Comment about problems with ignored-expose.
8142         Define mswindows-debug-events; not really implemented.
8143
8144         * frame-msw.c (mswindows_init_frame_1):
8145         random cleanups.
8146
8147         * glyphs-msw.c:
8148         * glyphs-msw.c (begin_defer_window_pos):
8149         * glyphs-msw.c (mswindows_unmap_subwindow):
8150         * glyphs-msw.c (mswindows_map_subwindow):
8151         * glyphs-msw.c (mswindows_resize_subwindow):
8152         Use DeferWindowPos to reduce flashing when mapping/unmapping.
8153
8154         * glyphs.c (make_image_instance_1):
8155         Fix crash.
8156
8157         * gutter.c (Fredisplay_gutter_area):
8158         Use new begin/end methods.
8159
8160         * lisp.h (Dynarr_new2):
8161         New creation fun.
8162
8163         * redisplay-msw.c:
8164         * redisplay-msw.c (mswindows_frame_output_begin):
8165         * redisplay-msw.c (mswindows_frame_output_end):
8166         * redisplay-msw.c (console_type_create_redisplay_mswindows):
8167         New begin/end methods -- handle DeferWindowPos.
8168
8169         * redisplay-output.c (redisplay_move_cursor):
8170         * redisplay-output.c (redraw_cursor_in_window):
8171         * redisplay-output.c (redisplay_update_line):
8172         * redisplay-output.c (redisplay_output_window):
8173         New begin/end methods.
8174
8175         * redisplay-tty.c:
8176         * redisplay-tty.c (tty_frame_output_begin):
8177         * redisplay-tty.c (tty_frame_output_end):
8178         * redisplay-tty.c (console_type_create_redisplay_tty):
8179         New begin/end methods.
8180
8181         * redisplay-x.c:
8182         * redisplay-x.c (x_window_output_begin):
8183         * redisplay-x.c (x_window_output_end):
8184         * redisplay-x.c (console_type_create_redisplay_x):
8185         New begin/end methods.
8186
8187         * redisplay.c (redisplay_frame):
8188         * redisplay.c (Fredisplay_echo_area):
8189         New begin/end methods.
8190         use MAYBE_DEVMETH for clear_frame; it may not exist.
8191
8192         * window.h (WINDOW_XFRAME):
8193         WINDOW_XFOO macros -- get locale and decode struct pointer.
8194
8195
8196 2000-05-12  Ben Wing  <ben@xemacs.org>
8197
8198         * emacs.c:
8199         * emacs.c (ensure_no_quitting_from_now_on):
8200         * emacs.c (fatal_error_signal):
8201         * emacs.c (mswindows_handle_hardware_exceptions):
8202         * emacs.c (main):
8203         * emacs.c (Fkill_emacs):
8204         * emacs.c (shut_down_emacs):
8205         * emacs.c (assert_failed):
8206         various improvements in fatal error handling.
8207
8208         * eval.c:
8209         move preparing_for_armageddon to emacs.c.
8210
8211         * lisp.h:
8212         declare fatal_error_in_progress.
8213
8214         * print.c:
8215         * print.c (std_handle_out_external):
8216         * print.c (std_handle_out_va):
8217         * print.c (stderr_out):
8218         * print.c (stdout_out):
8219         use console under mswin when no standard output.
8220         don't do code conversion during fatal error.
8221
8222         * scrollbar.c (Fscrollbar_page_up):
8223         * scrollbar.c (Fscrollbar_page_down):
8224         fix missing else.  reindent.
8225
8226 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
8227
8228         Emergency fix.
8229
8230         * glyphs.h (GLYPH_CACHEL_DESCENT):
8231         (GLYPH_CACHEL_DESCENT):
8232         (GLYPH_CACHEL_DESCENT):
8233         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
8234         used in case these are inline functions.
8235         Use more absurd values to error check.
8236
8237         include window.h for error check functions.
8238
8239 2000-05-11  Ben Wing  <ben@xemacs.org>
8240
8241         * cmdloop.c (Freally_early_error_handler):
8242         Display message box under windows; otherwise, message will disappear
8243         before it can be viewed.
8244
8245         * console-msw.c:
8246         * console-msw.c (Fmswindows_message_box):
8247         * console-msw.c (FROB):
8248         * console-msw.c (syms_of_console_mswindows):
8249         Define new fun `mswindows-message-box'.
8250         #### I will merge this into `popup-dialog-box'; just give me
8251         a bit of time.
8252
8253         * general.c:
8254         * general.c (syms_of_general):
8255         Some new symbols used in `mswindows-message-box'.
8256
8257         * glyphs.c:
8258         * glyphs.c (Fset_image_instance_property):
8259         put warning in this fun.
8260
8261         * glyphs.h:
8262         * glyphs.h (GLYPH_CACHEL_WIDTH):
8263         * glyphs.h (GLYPH_CACHEL_ASCENT):
8264         * glyphs.h (GLYPH_CACHEL):
8265         * glyphs.h (GLYPH_CACHEL_GLYPH):
8266         define error-checking versions to try to catch a bug i've seen --
8267         redisplay gets in an infinite loop because the glyph width of the
8268         continuation glyph is 65535.
8269
8270         * lisp.h:
8271         Extern message-box stuff.
8272
8273         * window.c (allocate_window):
8274         * window.c (make_dummy_parent):
8275         * window.c (Fset_window_configuration):
8276         Use EQUAL not EQ for subwindow caches to make them work a bit
8277         better. (Something is still very broken.)
8278
8279
8280 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8281
8282         * glyphs.c (image_instantiate): Suppress gcc warnings.
8283         (Fmake_image_instance): Fix doc string.
8284         * specifier.c (Fmake_specifier): Ditto.
8285
8286 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
8287
8288         * paths.h.in (PATH_LOCK): Removed.
8289         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
8290         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
8291
8292 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
8293
8294         * fns.c (Ffeaturep): Update e-mail address in doc-string.
8295         Document (featurep '(and xemacs 21.02)).
8296
8297 2000-05-09  Ben Wing  <ben@xemacs.org>
8298
8299         * buffer.c (complex_vars_of_buffer):
8300         update modeline-format doc.
8301
8302         * device.h:
8303         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
8304
8305         * emacs.c:
8306         timeline of all released versions of Emacs, for use in creating
8307         authorship comments and in synching up.
8308
8309         * glyphs-widget.c (image_instantiator_buttons):
8310         * glyphs-widget.c (image_instantiator_edit_fields):
8311         * glyphs-widget.c (image_instantiator_combo_box):
8312         * glyphs-widget.c (image_instantiator_scrollbar):
8313         * glyphs-widget.c (image_instantiator_progress_guage):
8314         * glyphs-widget.c (image_instantiator_tree_view):
8315         * glyphs-widget.c (image_instantiator_tab_control):
8316         * glyphs-widget.c (image_instantiator_labels):
8317         * glyphs-widget.c (image_instantiator_layout):
8318         * glyphs-widget.c (image_instantiator_native_layout):
8319         rename decode_domain method to governing_domain.
8320
8321         * glyphs.c:
8322         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
8323         * glyphs.c (add_entry_to_device_ii_format_list):
8324         make sure we don't put an entry more than once into the list.
8325         * glyphs.c (check_instance_cache_mapper):
8326         *************************************************************
8327         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
8328         HAVE BEEN GETTING.
8329         *************************************************************
8330         * glyphs.c (get_image_instantiator_governing_domain):
8331         clean up, expand on new concept of governing domain.
8332         * glyphs.c (instantiate_image_instantiator):
8333         * glyphs.c (allocate_image_instance):
8334         use governing_domain instead of cache_domain in naming.
8335         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
8336         * glyphs.c (make_image_instance_1):
8337         * glyphs.c (Fmake_image_instance):
8338         allow for any domain (not just device), and process the
8339         governing domain correctly.  very big doc fix.
8340         * glyphs.c (Fimage_instance_domain):
8341         new primitive, to retrieve the governing domain of an image instance.
8342         * glyphs.c (image_instantiate):
8343         use new governing_domain stuff.  this fixes a crash you could get
8344         by instantiating certain widget glyphs in frame locales. (should
8345         signal an error instead of crashing.)
8346         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
8347         * glyphs.c (Fglyphp): clean up doc.
8348         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
8349         * glyphs.c (syms_of_glyphs):
8350         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
8351         * glyphs.c (image_instantiator_format_create): add some comments about
8352         bogus code.
8353         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
8354         for current-display-table. (Apparently Hrjove implemented in 1998 a
8355         design I wrote up in 1996, but didn't update the doc string.)
8356
8357         * glyphs.h: clean up a doc string.
8358         * glyphs.h (governing_domain):
8359         * glyphs.h (struct image_instantiator_methods):
8360         changes for governing_domain stuff.
8361
8362         * gutter.c:
8363         * gutter.c (Fgutter_specifier_p):
8364         * gutter.c (Fgutter_size_specifier_p):
8365         * gutter.c (Fgutter_visible_specifier_p):
8366         * objects.c:
8367         * objects.c (Fcolor_specifier_p):
8368         * objects.c (Ffont_specifier_p):
8369         * objects.c (Fface_boolean_specifier_p):
8370         doc strings moved to make-*-specifier.
8371
8372         * redisplay.c (add_disp_table_entry_runes_1):
8373         * redisplay.c (generate_fstring_runes):
8374         * redisplay.c (screen):
8375         add random comments and doc strings.
8376
8377         * specifier.c:
8378         * specifier.c (Fmake_specifier):
8379         major overhaul of this doc string.
8380
8381         * specifier.c (Fvalid_specifier_domain_p):
8382         comment about the bogosity of image instances being domains.
8383         * specifier.c (decode_domain):
8384         now non-static, used in glyphs.c.
8385         * specifier.c (specifier_instance):
8386         comment about the bogosity of image instances being domains.
8387         * specifier.c (Fgeneric_specifier_p):
8388         move doc string to make-generic-specifier.
8389         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
8390         rebackslashify.
8391
8392         * specifier.h:
8393         * specifier.h (DOMAIN_FRAME):
8394         * specifier.h (DOMAIN_LIVE_P):
8395         * specifier.h (DOMAIN_XDEVICE):
8396         rebackslashify.
8397         add comments about problems with these macros.
8398         prototype for decode_domain.
8399
8400         * toolbar.c:
8401         * toolbar.c (Ftoolbar_specifier_p):
8402         move doc string to `make-toolbar-specifier'.
8403
8404         * window.c (window_unmap_subwindows_cache_mapper):
8405         *************************************************************
8406         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
8407         HAVE BEEN GETTING.
8408         *************************************************************
8409
8410 2000-05-09  Andy Piper  <andy@xemacs.org>
8411
8412         * glyphs.h: declare reset_frame_subwindow_instance_cache.
8413
8414         * window.c (Fset_window_configuration): reset the frame subwindow
8415         cache and re-initialize the window subwindow caches.
8416
8417         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
8418
8419 2000-05-09  Ben Wing  <ben@xemacs.org>
8420
8421         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
8422         DWORD.
8423
8424 2000-04-26  Mike Woolley  <mike@bulsara.com>
8425
8426         * ntheap.c: Changed recreate_heap to limit the amount reserved
8427         for the heap to that which is actually available. Also now
8428         displays a message box (with some dignostics) in the event that
8429         it still can't start.
8430
8431 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
8432
8433         * callproc.c (Fold_call_process_internal): GCPRO path
8434
8435 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
8436
8437         Patch by Bill Perry.
8438
8439         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
8440         back data instead of #ifdef.
8441         (Fscrollbar_page_down): ditto.
8442
8443 2000-05-07  Ben Wing  <ben@xemacs.org>
8444
8445         * buffer.h:
8446         Kludge for defining Qmswindows_tstr.
8447
8448         * nt.c:
8449         * nt.c (open_input_file):
8450         * nt.c (open_output_file):
8451         * nt.c (rva_to_section):
8452         * nt.c (mswindows_executable_type):
8453         Move all memory-mapped-file routines here (some were in unexnt.c,
8454         which is bad because they are used by process-nt.c, and unexnt
8455         won't be around when portable dumping).  Synched the above routines
8456         with FSF 20.6.
8457
8458         * nt.h:
8459         Removed ifdef'd out bogus code.
8460         Fixed some prototypes.
8461
8462         * nt.h (file_data):
8463         * nt.h (OFFSET_TO_RVA):
8464         * nt.h (RVA_TO_OFFSET):
8465         * nt.h (RVA_TO_PTR):
8466         Moved the memory-mapped-file structures, macros and prototypes
8467         here, to parallel nt.c.  ntheap.h should really be removed
8468         entirely, and it's a non-portable-dumper specific file.
8469
8470         * ntheap.h (round_to_next):
8471         Moved the memory-mapped-file structures, macros and prototypes
8472         to nt.h.
8473
8474         * ntproc.c (compare_env):
8475         Moved rva_to_section and mswindows_executable_type to nt.c.
8476         Moved compare_env to process-nt.c.
8477         ntproc.c will die, one day.
8478
8479         * ntproc.c (sys_spawnve):
8480         Account for win32_ -> mswindows_.
8481
8482         * process-nt.c:
8483         * process-nt.c (struct nt_process_data):
8484         * process-nt.c (ensure_console_window_exists):
8485         * process-nt.c (compare_env):
8486         * process-nt.c (nt_create_process):
8487         * process-nt.c (nt_kill_process_by_pid):
8488         * process-nt.c (syms_of_process_nt):
8489         * process-nt.c (vars_of_process_nt):
8490         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
8491         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
8492         changes).  Eliminate our old `nt-quote-process-args' mechanism.
8493         Synch up nt_create_process with FSF 20.6 sys_spawnve.
8494         Move compare_env here from ntproc.c.
8495
8496         * process.c (Fprocess_send_region):
8497         Takes an optional fourth argument, BUFFER, which should fix some
8498         problems with call-process.
8499
8500         * syscommctrl.h:
8501         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
8502
8503         * syswindows.h:
8504         Move ICC_BAR_CLASSES to syscommctrl.h.
8505         Add preliminary macros for MSWindows/Mule.  More to come.
8506
8507         * unexnt.c:
8508         * unexnt.c (unexec):
8509         open_output_file moved to nt.c.
8510
8511
8512 2000-05-05  Andy Piper  <andy@xemacs.org>
8513
8514         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
8515         instance from the frame cache also since GC may catch up too late
8516         to make frame deletion sane.
8517
8518 2000-05-04  Andy Piper  <andy@xemacs.org>
8519
8520         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
8521         (x_finalize_image_instance): ungcpro on deletion.
8522
8523         * glyphs.c (image_instantiator_format_create): give pointers a
8524         query geometry method so that the geometry is at least set.
8525
8526         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
8527         initialize layouts if using widgets.
8528
8529 2000-05-03  Andy Piper  <andy@xemacs.org>
8530
8531         * nt.c: remove bogus reference to sysmmsystem.h
8532
8533         * gui-x.c (popup_selection_callback): fix no selection abort.
8534
8535 2000-05-02  Andy Piper  <andy@xemacs.org>
8536
8537         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
8538         (mswindows_widget_instantiate): ditto.
8539
8540         * glyphs-widget.c (initialize_widget_image_instance): initialize
8541         children correctly.
8542         (widget_instantiate): cope with children and items in the same
8543         instance.
8544
8545         * glyphs.c (mark_image_instance): cope with children as a first
8546         class member.
8547         (image_instance_equal): ditto.
8548         (image_instance_hash): ditto.
8549         (image_instance_changed): ditto.
8550
8551 2000-04-30  Andy Piper  <andy@xemacs.org>
8552
8553         * glyphs.c (subwindow_query_geometry): new function. Return some
8554         defaults.
8555         (subwindow_instantiate): don't assign dimensions if none have been
8556         given.
8557         (image_instantiator_format_create): add subwindow_query_geometry.
8558         (print_image_instance): cope with layouts as widgets.
8559
8560 2000-04-29  Andy Piper  <andy@xemacs.org>
8561
8562         * frame.c (delete_frame_internal): call
8563         free_frame_subwindow_instance_cache so that all subwindows are
8564         finalized before their parent.
8565         (mark_frame): remove subwindow_cachels.
8566         (Fmake_frame): remove subwindow_cachel manipulation.
8567         (allocate_frame_core): subwindow_instance_cache is a weak list.
8568         (delete_frame_internal): set subwindow_instance_cache to nil.
8569
8570         * glyphs-msw.c (mswindows_finalize_image_instance): make double
8571         finalization safe.
8572         (mswindows_finalize_image_instance): use the device
8573         not the domain as the domain may have died already.
8574
8575         * glyphs-x.c (x_finalize_image_instance): ditto.
8576         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
8577         HEIGHT.
8578
8579         * redisplay-output.c (redisplay_unmap_subwindows): update for
8580         subwindow instance cache as a weak list.
8581         (redisplay_unmap_subwindows_maybe): ditto.
8582         (redisplay_unmap_subwindows_except_us): ditto.
8583
8584         * glyphs.c (unmap_subwindow): error checking will check the domain
8585         so don't deal with it here. Don't use cachels anymore.
8586         (map_subwindow): ditto.
8587         (update_subwindow_cachel_data): remove old accessor names.
8588         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
8589         (Fresize_subwindow): don't update cachel.
8590         (mark_subwindow_cachels):
8591         (update_subwindow_cachel_data):
8592         (add_subwindow_cachel):
8593         (get_subwindow_cachel_index):
8594         (update_subwindow_cachel):
8595         (reset_subwindow_cachels):
8596         (mark_subwindow_cachels_as_not_updated): deleted.
8597         (cache_subwindow_instance_in_frame_maybe): new function. Add a
8598         subwindow instance to the frame cache.
8599         (find_matching_subwindow): update for subwindow instance cache as
8600         a weak list.
8601         (update_widget_instances): ditto.
8602         (image_instance_type_to_mask):inlined.
8603         (free_frame_subwindow_instance_cache): new function. finalize all
8604         subwindows that are instantiated.
8605
8606         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
8607         of cachel information.
8608         (IMAGE_INSTANCE_DISPLAY_X):
8609         (IMAGE_INSTANCE_DISPLAY_Y):
8610         (IMAGE_INSTANCE_DISPLAY_WIDTH):
8611         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
8612         (XIMAGE_INSTANCE_DISPLAY_X):
8613         (XIMAGE_INSTANCE_DISPLAY_Y):
8614         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
8615         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
8616         remove subwindow_cachel structure and function references.
8617         (image_instance_type_to_mask): inline from glyphs.c
8618
8619         * redisplay.c (redisplay_frame): remove subwindow_cachel
8620         references.
8621
8622         * frame.h (struct frame): remove subwindow_cachels.
8623         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
8624
8625         * frameslots.h: add subwindow_instance_cache.
8626
8627         * window.c (replace_window): check subwindow cache of replacement.
8628         (window_unmap_subwindows_cache_mapper):
8629         (window_unmap_subwindows): new functions. Unmap all subwindows
8630         cached on this window.
8631         (mark_window_as_deleted): unmap all subwindows.
8632
8633 2000-04-27  Andy Piper  <andy@xemacs.org>
8634
8635         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
8636
8637         * glyphs-widget.c (widget_layout): return something.
8638         (layout_layout): return something. Fail if not initialized.
8639         (layout_query_geometry): ditto.
8640         (image_instantiator_native_layout): new function. Initialized the
8641         native layout type.
8642         (widget_instantiate): don't do layout stuff here.
8643
8644         * glyphs.c (instantiate_image_instantiator): reorded calling or
8645         instantiate and post_instantiate with layout in between.
8646         (image_instance_layout): be more selective about deciding whether
8647         the layout has been done or not.
8648
8649         * glyphs.h (struct image_instantiator_methods): return a value
8650         from layout_method.
8651
8652 2000-04-26  Andy Piper  <andy@xemacs.org>
8653
8654         * glyphs.c (allocate_image_instance): make initial width and
8655         height unspecified. Set initialized to 0.
8656
8657         * syscommctrl.h new file. Encapsulates commctrl.h.
8658
8659         * syswindows.h new file. Encapsulates windows.h.
8660
8661         * ntplay.c: use new syswindows.h and syscommctrl.h header.
8662         * nt.c: ditto.
8663         * console-msw.h: ditto.
8664
8665         * redisplay-tty.c (tty_output_display_block): remove layout references.
8666
8667         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
8668         window handle rather than just the frame.
8669
8670         * glyphs.c (mark_image_instance): remove layout references.
8671         (print_image_instance): ditto.
8672         (image_instance_equal): ditto.
8673         (image_instance_hash): ditto.
8674         (decode_image_instance_type): ditto.
8675         (encode_image_instance_type): ditto.
8676         (image_instantiate): ditto.
8677         (allocate_glyph): ditto.
8678         (Fimage_instance_height): ditto.
8679         (Fimage_instance_width): ditto.
8680         (update_subwindow): ditto.
8681
8682         * redisplay-x.c (x_output_display_block): recode for layouts as
8683         widgets.
8684
8685         * redisplay-output.c (redisplay_output_layout): recode for layouts
8686         as widgets.
8687         (compare_runes): remove layout references.
8688
8689         * redisplay-msw.c (mswindows_output_display_block): recode for
8690         layouts as widgets.
8691
8692         * glyphs-widget.c (image_instantiator_layout): remove
8693         layout_possible_dest_types.
8694         (layout_possible_dest_types): deleted.
8695
8696         * glyphs.h (image_instance_type): remove layout references.
8697         (struct Lisp_Image_Instance): ditto. Add initialized flag.
8698         (IMAGE_INSTANCE_INITIALIZED): new accessor.
8699         (XIMAGE_INSTANCE_INITIALIZED): ditto.
8700
8701 2000-04-25  Andy Piper  <andy@xemacs.org>
8702
8703         * glyphs-widget.c (image_instantiator_buttons):
8704         (image_instantiator_edit_fields):
8705         (image_instantiator_combo_box):
8706         (image_instantiator_scrollbar):
8707         (image_instantiator_progress_guage):
8708         (image_instantiator_tree_view):
8709         (image_instantiator_tab_control):
8710         (image_instantiator_labels):
8711         (image_instantiator_layout): call default post_instantiate method.
8712         (widget_post_instantiate): new function. Simply lays out the
8713         widgets.
8714
8715         * glyphs.h (struct image_instantiator_methods): add
8716         post_instantiate method.
8717
8718         * glyphs.c (instantiate_image_instantiator): add post_instantiate
8719         method calls.
8720
8721 2000-04-23  Andy Piper  <andy@xemacs.org>
8722
8723         * glyphs.h (struct image_instantiator_methods): add
8724         decode_domain_method.
8725         (struct Lisp_Image_Instance): remove subwindow frame - it can be
8726         derived from the domain.
8727         (IMAGE_INSTANCE_FRAME): new accessor.
8728         (XIMAGE_INSTANCE_FRAME): ditto.
8729
8730         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
8731         instead of _SUBWINDOW_FRAME.
8732         (finalize_image_instance): ditto.
8733         (Fimage_instance_foreground): ditto.
8734         (Fimage_instance_background): ditto.
8735         (image_instantiate): ditto.
8736         (update_subwindow_cachel): ditto.
8737         (update_subwindow): ditto.
8738         (unmap_subwindow): ditto.
8739         (map_subwindow): ditto
8740         (subwindow_instantiate): ditto.
8741         * glyphs-msw.c (mswindows_update_widget): ditto.
8742         (mswindows_progress_gauge_instantiate): ditto.
8743         (mswindows_tab_control_update): ditto.
8744         * glyphs-x.c (x_update_widget): ditto.
8745         (x_widget_instantiate): ditto.
8746         (x_tab_control_instantiate): ditto.
8747         (x_tab_control_update): ditto.
8748         * event-msw.c (mswindows_wnd_proc): ditto
8749
8750         * glyphs-widget.c (image_instantiator_layout): use
8751         subwindow_decode_domain.
8752         (image_instantiator_buttons): ditto.
8753         (image_instantiator_edit_fields): ditto.
8754         (image_instantiator_combo_box): ditto.
8755         (image_instantiator_scrollbar): ditto.
8756         (image_instantiator_progress_guage): ditto.
8757         (image_instantiator_tree_view): ditto.
8758         (image_instantiator_tab_control): ditto.
8759         (image_instantiator_labels): ditto.
8760         (image_instantiator_layout): ditto.
8761
8762         * glyphs.c: add instance error checking to many functions.
8763         (instantiate_image_instantiator): decode device from cache_domain.
8764         (image_instantiate): partially rewrite by using
8765         decode_image_instantiator_domain to determine what domain the
8766         instance needs to be cached in.
8767         (decode_image_instantiator_domain): new function. Determine what
8768         domain the image needs to be cached in.
8769         (check_window_subwindow_cache): new error checking function.
8770         (check_instance_cache_mapper): ditto.
8771         (check_image_instance_structure): ditto.
8772         (subwindow_decode_domain): new function. Encodes a window as a
8773         subwindow's cache domain.
8774         (image_instantiator_format_create): use it for text and
8775         subwindows.
8776
8777 2000-04-21  Andy Piper  <andy@xemacs.org>
8778
8779         * glyphs.c (image_instance_device): new function.
8780         (image_instance_frame): new function.
8781         (image_instance_window): new function.
8782         (image_instance_live_p): new function.
8783
8784         * window.c (mark_window_as_deleted): reset the subwindow_instance_
8785         cache to nil.
8786
8787         * glyphs.h (struct Lisp_Image_Instance): device->domain.
8788         (IMAGE_INSTANCE_DOMAIN): new accessor.
8789         (XIMAGE_INSTANCE_DOMAIN): ditto.
8790
8791         * glyphs-x.c (x_finalize_image_instance): device->domain.
8792
8793         * glyphs-msw.c (init_image_instance_geometry): device->domain.
8794         (mswindows_finalize_image_instance): ditto.
8795
8796         * glyphs-eimage.c (jpeg_instantiate): device->domain.
8797         (gif_instantiate): ditto.
8798         (png_instantiate): ditto.
8799         (tiff_instantiate): ditto.
8800
8801         * glyphs.c (instantiate_image_instantiator): use domain rather
8802         than device.
8803         (mark_image_instance): device -> domain.
8804         (print_image_instance): ditto.
8805         (finalize_image_instance): ditto.
8806         (image_instance_equal): ditto.
8807         (allocate_image_instance): ditto.
8808         (Fcolorize_image_instance): ditto.
8809         (query_string_geometry): ditto.
8810         (image_instantiate): ditto
8811         (query_string_font): ditto.
8812         (image_instantiate): ditto.
8813         (update_subwindow): ditto.
8814         (unmap_subwindow): ditto.
8815         (map_subwindow): ditto.
8816         (subwindow_instantiate): ditto.
8817
8818         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
8819         (DOMAIN_FRAME): ditto.
8820         (DOMAIN_WINDOW): ditto.
8821         (DOMAIN_LIVE_P): ditto.
8822         (XDOMAIN_DEVICE): ditto.
8823         (XDOMAIN_FRAME): ditto.
8824         (XDOMAIN_WINDOW): ditto.
8825
8826         * specifier.c (Fvalid_specifier_domain_p): add image instances as
8827         a valid specifier domain.
8828
8829 2000-04-19  Andy Piper  <andy@xemacs.org>
8830
8831         * glyphs-widget.c (syms_of_glyphs_widget): remove
8832         widget-callback-current-channel.
8833         (vars_of_glyphs_widget): ditto.
8834         * glyphs.h: ditto
8835
8836         * gui.c (get_gui_callback): revert to previous behaviour.
8837
8838 2000-04-18  Andy Piper  <andy@xemacs.org>
8839
8840         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
8841         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
8842         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
8843
8844         * glyphs.c (image_instance_equal): add margin_width.
8845         (image_instance_hash): ditto.
8846
8847         * glyphs-widget.c (widget_instantiate): deal with margin-width.
8848         (layout_query_geometry): ditto.
8849         (layout_layout): ditto.
8850         (syms_of_glyphs_widget): add margin-width.
8851         (image_instantiator_layout): allow margin-width.
8852
8853         * glyphs.c (update_widget_instances): make a normal function.
8854         (syms_of_glyphs): remove Qupdate_widget_instances.
8855         * glyphs.h: ditto.
8856
8857         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
8858         so that we don't corrupt ideas about the last event or
8859         command. Remove widget-callback-current-channel fiddling.
8860         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
8861
8862 2000-05-01  Martin Buchholz <martin@xemacs.org>
8863
8864         * XEmacs 21.2.33 is released.
8865
8866 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
8867
8868         * make-src-depend: Allow dots in header file name.
8869
8870 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
8871
8872         * mule-charset.h (struct charset_lookup): Add
8873         next_allocated_1_byte_leading_byte and
8874         next_allocated_2_byte_leading_byte.
8875         * mule-charset.c: Move above two variables so that those values
8876         will be dumped.
8877
8878 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
8879
8880         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
8881         when string length is zero.
8882         (find_charsets_in_emchar_string): Ditto.
8883
8884 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
8885
8886         * lisp.h: extern Qdialog and Qmenubar.
8887
8888         * gui-x.c: added events.h.
8889                 also fixed typo which made the file uncompilable.
8890
8891         * general.c: Added Qmenubar and Qdialog
8892
8893 2000-04-28  Ben Wing  <ben@xemacs.org>
8894
8895         * frame-msw.c (mswindows_init_frame_1):
8896         * frame-msw.c (mswindows_mark_frame):
8897         * event-msw.c (mswindows_enqueue_dispatch_event):
8898         * console-msw.h:
8899         * console-msw.h (struct mswindows_frame):
8900         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
8901         there are now three hash tables for callbacks.
8902         mswindows_enqueue_dispatch_event is no longer static.
8903
8904         * dialog-x.c (maybe_run_dbox_text_callback):
8905         * dialog-x.c (dbox_descriptor_to_widget_value):
8906         switch to new cons3 form for callbacks.
8907
8908         * glyphs-msw.c (mswindows_register_gui_item):
8909         * glyphs-msw.c (mswindows_widget_instantiate):
8910         * glyphs-msw.c (add_tree_item):
8911         * glyphs-msw.c (add_tab_item):
8912         new image instance parameter, so it can be passed to callback-ex.
8913         respect :callback-ex as well as :callback.
8914
8915         * glyphs-widget.c (VALID_GUI_KEYWORDS):
8916         add :callback-ex.
8917
8918         * glyphs.c (print_image_instance):
8919         prettify, e.g. now prints widget type.
8920
8921         * gui-x.h:
8922         certain funs have new image instance parameter.
8923
8924         * gui.c:
8925         * gui.c (get_gui_callback):
8926         * gui.c (gui_item_add_keyval_pair):
8927         * gui.c (gui_item_init):
8928         * gui.c (gui_add_item_keywords_to_plist):
8929         * gui.c (mark_gui_item):
8930         * gui.c (gui_item_hash):
8931         * gui.c (gui_item_equal):
8932         * gui.c (copy_gui_item):
8933         * gui.c (syms_of_gui):
8934         recognize callback-ex in a number of places.
8935         also, fix the annoying "can't get out of yes-no dialog" bug.
8936
8937         * gui.h:
8938         * gui.h (struct Lisp_Gui_Item):
8939         recognize callback-ex in a number of places.
8940
8941         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
8942         new parameter in button_item_to_widget_value.
8943
8944         * glyphs-x.c (x_update_widget):
8945         * glyphs-x.c (x_button_instantiate):
8946         * glyphs-x.c (x_button_update):
8947         * glyphs-x.c (x_progress_gauge_instantiate):
8948         * glyphs-x.c (x_edit_field_instantiate):
8949         * glyphs-x.c (x_combo_box_instantiate):
8950         * glyphs-x.c (x_tab_control_instantiate):
8951         * glyphs-x.c (x_label_instantiate):
8952         new image instance parameter in various places.
8953
8954         * event-Xt.c:
8955         * event-Xt.c (enqueue_Xt_dispatch_event):
8956         this fun gets exported.
8957
8958         * gui-msw.c:
8959         * gui-msw.c (mswindows_handle_gui_wm_command):
8960         handle both :callback and :callback-ex, and generate our own
8961         event because it's one of the callback-ex arguments.
8962
8963         * gui-x.c:
8964         * gui-x.c (popup_selection_callback):
8965         handle both :callback and :callback-ex, and generate our own
8966         event because it's one of the callback-ex arguments.
8967         * gui-x.c (button_item_to_widget_value):
8968         * gui-x.c (gui_items_to_widget_values_1):
8969         * gui-x.c (gui_item_children_to_widget_values):
8970         * gui-x.c (gui_items_to_widget_values):
8971         new image instance parameter in various places.
8972
8973         * fns.c (Freplace_list):
8974         fix small typo in doc string.
8975
8976         * lisp.h:
8977         declare enqueue_Xt_dispatch_event.
8978
8979 2000-04-28  Ben Wing  <ben@xemacs.org>
8980
8981         * buffer.c:
8982         * buffer.c (Frecord_buffer):
8983         * buffer.c (syms_of_buffer):
8984         delete record-buffer-hook.
8985
8986         * fns.c:
8987         * fns.c (Freplace_list):
8988         * fns.c (syms_of_fns):
8989         new primitive replace-list.
8990
8991         * frameslots.h:
8992         slot for old buffer-alist.
8993
8994         * lisp.h:
8995         exfun replace-list.
8996
8997         * redisplay.c:
8998         * redisplay.c (redisplay_frame):
8999         * redisplay.c (syms_of_redisplay):
9000         * redisplay.c (vars_of_redisplay):
9001         new hook buffer-list-changed-hook.
9002         call it.
9003
9004 2000-04-27  Ben Wing  <ben@xemacs.org>
9005
9006         * extents.h: extern in_modeline_generation.
9007
9008         * redisplay.c (generate_formatted_string_db): set
9009         in_modeline_generation.
9010
9011         * extents.c (extent_changed_for_redisplay): don't mark redisplay
9012         flags if in modeline generation.  otherwise frame-modified-tick
9013         is ticked far too often.
9014         Declare in_modeline_generation.
9015
9016 2000-04-26  Ben Wing  <ben@xemacs.org>
9017
9018         * emacs.c (vars_of_emacs): document quick-build "error-checking"
9019         option.
9020         (vars_of_emacs): add quick-build as an error-checking option.
9021         A bit kludgy, but there doesn't seem much point in creating
9022         a real var for this.
9023
9024         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
9025
9026 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9027
9028         * redisplay.h (struct display_line): Add a new variable,
9029         line_continuation.
9030
9031         * redisplay.c (create_text_block): Set dl->line_continuation if
9032         the line continues.
9033         (create_string_text_block): Ditto.
9034         (regenerate_window_incrementally): Use line_continuation instead
9035         of searching continuation glyph.
9036         (add_margin_runes): Call add_glyph_rune.
9037         (add_glyph_rune): Handle margin glyph.
9038
9039 2000-04-20  Martin Buchholz  <martin@xemacs.org>
9040
9041         * filelock.c (fill_in_lock_file_name):
9042         ANSIfy.
9043         Check for IS_ANY_SEP instead of '/'.
9044         (lock_file_1):
9045         Avoid generating gratuitous garbage.  Call user_login_name() directly.
9046         Never check errno without first seeing that system call failed.
9047         (unlock_file): Add GCPRO.
9048         (Flock_buffer): Fix docstring.
9049         (Ffile_locked_p): Fix docstring.  Add GCPRO.
9050
9051 2000-04-19  Martin Buchholz  <martin@xemacs.org>
9052
9053         * sysdep.c (get_pty_max_bytes):
9054         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
9055         strings longer than 252 bytes.
9056
9057         * md5.c: Unconditionally include ANSI header <limits.h>
9058
9059         * glyphs-x.c (convert_EImage_to_XImage):
9060         * lisp-union.h (union Lisp_Object):
9061         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
9062
9063 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9064
9065         * filelock.c (current_lock_owner): Remove unused variable o, p.
9066
9067 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
9068
9069         * callint.c: Remove multiply defined symbol Qlet
9070         (syms_of_callint): ditto.
9071
9072 2000-04-14  Andy Piper  <andy@xemacs.org>
9073
9074         * general.c (syms_of_general): add last-command, this-command, let
9075         and funcall.
9076
9077         * lisp.h: declare various symbols.
9078
9079         * glyphs.h: declare Qwidget_callback_current_channel;
9080
9081         * glyphs-widget.c (syms_of_glyphs_widget): add
9082         Qgui_callback_current_channel.
9083         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
9084
9085         * gui-msw.c (mswindows_handle_gui_wm_command): bind
9086         widget-callback-current-channel when invoking the interactive
9087         arg. Also bind last-command and next-command when invoking the
9088         widget updates.
9089         * gui-x.c (popup_selection_callback): ditto.
9090
9091         * gui.c (get_gui_callback): massage args so that we are always
9092         calling eval. This allows us to add our own variable bindings
9093         outside.
9094
9095         * glyphs-x.c (x_button_instantiate): use
9096         gui_items_to_widget_values since this is GC safe.
9097         (x_progress_gauge_instantiate): ditto.
9098         (x_edit_field_instantiate): ditto.
9099         (x_label_instantiate): ditto.
9100
9101         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
9102         (emacs_Xt_event_widget_focus_out): new function
9103         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
9104         focus.
9105         (emacs_Xt_event_add_widget_actions): new function. add focus
9106         functions as actions.
9107         (init_event_Xt_late): use it.
9108
9109 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
9110
9111         * event-stream.c (Fdispatch_event): Doc fix.
9112
9113 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
9114
9115         * postgresql.c: Remove all references to PQsetenv*.
9116
9117         * postgresql.h: Remove references to PGsetenvHandler object.
9118         * lrecord.h (lrecord_type): Ditto.
9119
9120 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
9121
9122         * glyphs-msw.h (struct mswindows_image_instance_data): Added
9123         real_heigh and real_width members, and accessor macros for these.
9124
9125         * glyphs-msw.c (init_image_instance_geometry): New function.
9126         (init_image_instance_from_dibitmap): Use it.
9127         (mswindows_resource_instantiate): Use it.
9128         (init_image_instance_from_xbm_inline): Use it.
9129         (mswindows_initialize_image_instance_mask): Use real bitmap
9130         geometry.
9131         (mswindows_create_resized_bitmap): Ditto.
9132         (mswindows_create_resized_mask): Ditto.
9133
9134         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
9135         and bitmap to their surface size.
9136
9137 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
9138
9139         * process-unix.c (unix_send_process): Guard against process MIA
9140         after Faccept_process_output.
9141
9142 2000-04-11  Ben Wing  <ben@xemacs.org>
9143
9144         * eval.c (unbind_to_hairy): fix brokenness introduced by
9145         nanosecond speed improvements.
9146
9147 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
9148
9149         * sunplay.c (init_device): To play sounds correctly, the device
9150         apparently needs to be initialized at least once by XEmacs.  Make
9151         it so.
9152
9153 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9154
9155         * redisplay.c (add_margin_runes): Add text image glyph
9156           handling.
9157
9158 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
9159
9160         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
9161         gcc is newer than 2.5.
9162
9163 2000-04-06  Colin Rafferty  <colin@xemacs.org>
9164
9165         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
9166
9167         * fns.c (size_bit_vector):
9168         * alloc.c (size_vector):
9169         (make_vector_internal):
9170         (make_bit_vector_internal):
9171         (sweep_bit_vectors_1):
9172         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
9173
9174 2000-04-06  Andy Piper  <andy@xemacs.org>
9175
9176         * gmalloc.c (malloc): undo previous change.
9177         (malloc): ditto.
9178         (free): ditto.
9179         (realloc): ditto.
9180
9181 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
9182
9183         * line-number.c (buffer_line_number): Revert to former version.
9184
9185 2000-04-06  Andy Piper  <andy@xemacs.org>
9186
9187         * gmalloc.c (malloc): add error checking.
9188         (malloc): ditto.
9189         (free): ditto.
9190         (realloc): ditto.
9191
9192         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
9193         button_item_to_widget_value arg.
9194
9195         * glyphs-x.c (x_button_instantiate): add extra
9196         button_item_to_widget_value arg.
9197         (x_progress_gauge_instantiate): ditto.
9198         (x_edit_field_instantiate): ditto.
9199         (x_label_instantiate): ditto.
9200
9201         * gui-x.c (gui_items_to_widget_values_1): add extra
9202         button_item_to_widget_value arg.
9203         (button_item_to_widget_value): add extra menu_item_p arg.
9204
9205         * gui-x.h: change signature of button_item_to_widget_value.
9206
9207         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
9208         button_item_to_widget_value arg.
9209
9210 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9211
9212         * buffer.h (struct buffer): auto_save_modified should be long.
9213
9214 2000-04-05  Andy Piper  <andy@xemacs.org>
9215
9216         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
9217         type.
9218         (button_query_geometry): give a little more room so that athena
9219         buttons fit.
9220
9221 2000-04-05  Andy Piper  <andy@xemacs.org>
9222
9223         * faces.c (complex_vars_of_faces): The widget face should inherit
9224         the font of the gui-element face.
9225
9226 2000-04-04  Andy Piper  <andy@xemacs.org>
9227
9228         * glyphs-x.c (x_button_update): new function. unconditionally
9229         update a button's state when the instance is dirty.
9230         (image_instantiator_format_create_glyphs_x): add x_button_update.
9231         (x_widget_instantiate): remove old resize cruft.
9232
9233 2000-04-02  Andy Piper  <andy@xemacs.org>
9234
9235         * frame.c (change_frame_size_1): The introduction of gutters means
9236         that we need to allow 0 as a potential frame dimension.
9237
9238 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9239
9240         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
9241         image glyph if allow_cursor.
9242         (add_hscroll_rune): Don't allow cursor to border glyph.
9243         (create_text_block): Ditto.
9244
9245         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
9246         text not in buffer.
9247         (redisplay_output_layout): Call ensure_face_cachel_complete for
9248         text image glyph.
9249
9250
9251 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9252
9253         * redisplay.c (add_glyph_rune): Adding text image as text runes.
9254
9255         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
9256         not in buffer
9257
9258         * redisplay-tty.c (tty_output_display_block): Delete the routine
9259         for text image glyph
9260         * redisplay-x.c (x_output_display_block): ditto
9261         * redisplay-msw.c (mswindows_output_display_block): ditto
9262
9263 2000-02-02  Mike Alexander  <mta@arbortext.com>
9264
9265         Note: Some of these were committed by accident as part of other
9266         patches.
9267
9268         * regex.c (regex_compile): Avoid compiler warnings.
9269
9270         * ntproc.c (sys_spawnve): Avoid compiler warnings.
9271
9272         * nt.h: Declare term_ntproc correctly.
9273
9274         * nt.c: Remove incorrect declaration of get_home_directory which
9275         is declared correctly in lisp.h.
9276
9277         * keymap.c (get_keyelt): Avoid compiler warnings.
9278         (raw_lookup_key_mapper): Avoid compiler warnings.
9279
9280         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
9281
9282         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
9283
9284         * filemode.c (mode_string): Avoid compiler warnings.
9285
9286         * file-coding.c (Fcoding_system_aliasee): Add return statement to
9287         avoid warning.
9288
9289         * events-mod.h: Undef some things that winuser.h defines differently.
9290
9291         * data.c (Faset): Avoid compiler warnings.
9292
9293         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
9294
9295 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
9296
9297         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
9298         Fall through to simple beep on error.
9299         Replace "extern" by real header file.
9300
9301         * linuxplay.c: Use nativesound.h
9302         (play_sound_data): Return error code. Be less verbose on error.
9303
9304         * sunplay.c: Use nativesound.h
9305         (play_sound_data): Return error code. Be less verbose on error.
9306
9307         * ntplay.c: Use nativesound.h
9308         (play_sound_data): Return fake error code
9309
9310         * sgiplay.c: Use nativesound.h
9311         (play_sound_data): Return error code
9312
9313         * hpplay.c: Use nativesound.h, partially implement
9314         new error code. Break compilation until finished.
9315         (play_sound_data): error code.
9316
9317         * nativesound.h (play_sound_file):
9318           (play_sound_data): Prototype in new header.
9319
9320 2000-03-31  Andy Piper  <andy@xemacs.org>
9321
9322         * glyphs-widget.c: (button_query_geometry): new function. Adjust
9323         for toggle and radio buttons.
9324         (image_instantiator_buttons): use it.
9325
9326 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
9327
9328         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
9329         (x_update_horizontal_scrollbar_callback): Return if no mirror was
9330         found. Scrollbar event probably belonged to some old config.
9331
9332 2000-03-31  Andy Piper  <andy@xemacs.org>
9333
9334         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
9335         than 1.
9336         (initialize_widget_image_instance): default layout to
9337         LAYOUT_HORIZONTAL rather than 0.
9338         (widget_instantiate): reverse the item list at the end rather than
9339         every iteration.
9340         (layout_layout): re-code for the border text at the front of the
9341         item list rather than at the end.
9342         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
9343         provided by the user.
9344         (widget_query_geometry): comment.
9345
9346 2000-03-30  Andy Piper  <andy@xemacs.org>
9347
9348         * glyphs-widget.c (image_instantiator_layout): allow standard
9349         widget keywords in layouts.
9350
9351         * gutter.c (output_gutter): cope with nil gutter contents.
9352
9353         * frame.c (Fset_frame_properties): add gutter docs.
9354
9355 2000-03-29  Andy Piper  <andy@xemacs.org>
9356
9357         * toolbar-msw.c (TBSTYLE_FLAT): add.
9358         (mswindows_output_toolbar): minor fiddling.
9359
9360 2000-03-29  Andy Piper  <andy@xemacs.org>
9361
9362         * gutter.c (output_gutter): force gutter size recalculation if
9363         what we are trying to display won't fit.
9364         (update_gutter_geometry): new function. A per-gutter version of
9365         update_frame_gutter_geometry.
9366         (update_frame_gutter_geometry): use it.
9367         (redraw_exposed_gutter): add extra debugging output.
9368
9369 2000-03-28  Mike Alexander  <mta@arbortext.com>
9370
9371         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
9372         (pdump_file_unmap): Implement it on Windows
9373         (pdump_file_get): Save alocated handles for pdump_file_unmap
9374
9375 2000-03-28  Andy Piper  <andy@xemacs.org>
9376
9377         * gui.c (get_gui_callback): treat Quit specially.
9378
9379 2000-03-27  Andy Piper  <andy@xemacs.org>
9380
9381         * glyphs.c (image_instantiate): be careful to check in the same
9382         way we assigned.
9383
9384 2000-03-27  Didier Verna  <didier@xemacs.org>
9385
9386         * config.h.in: define the proper SMART_INCLUDE macro.
9387         handle renaming of `foo_h_path' to `foo_h_file'.
9388
9389         * database.c: ditto.
9390
9391         * emacs.c: ditto.
9392
9393         * linuxplay.c: ditto.
9394
9395         * terminfo.c: ditto.
9396
9397         * tooltalk.h: ditto.
9398
9399 2000-03-27  Andy Piper  <andy@xemacs.org>
9400
9401         * glyphs-msw.c (mswindows_update_widget): make sure the widget
9402         gets updated whenever the face might have changed.
9403
9404 2000-03-26  Mike Alexander  <mta@arbortext.com>
9405
9406         * dumper.c (pdump_resource_free): Fix the comment.
9407
9408 2000-03-21  Olivier Galibert  <galibert@pobox.com>
9409
9410         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
9411
9412 2000-03-22  Mike Alexander  <mta@arbortext.com>
9413
9414         * dumper.c: Include Windows headers on Windows
9415         (pdump_resource_free): Add a body to the function
9416         (pdump_load): exe_name -> exe_path and add some comments.
9417
9418 2000-03-25  Mike Alexander  <mta@arbortext.com>
9419
9420         * gui.c (copy_gui_item_tree): Return a value in all cases
9421
9422 2000-03-21  Didier Verna  <didier@xemacs.org>
9423
9424         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
9425         lwlib/config.h.in.
9426         (SMART_INCLUDE): new macro.
9427         (POSTGRES_INCLUDE): new macro to include postgresql headers from
9428         the proper location.
9429
9430         * postgresql.c: use it.
9431
9432         * inline.c: ditto.
9433
9434 2000-03-24  Andy Piper  <andy@xemacs.org>
9435
9436         * gutter.c (redraw_exposed_gutters): must be "in display" when we
9437         do this.
9438
9439 2000-03-24  Andy Piper  <andy@xemacs.org>
9440
9441         * redisplay-output.c (compare_runes): use image_instance_changed
9442         to detect changes. Do not depend on glyphs_changed, only depend on
9443         dirtiness.
9444          (redisplay_output_layout): add debug messages.
9445         (compare_runes): ditto.
9446
9447         * glyphs.h: declare new functions.
9448         (struct Lisp_Image_Instance): remove percent and associated
9449         accessors.
9450
9451         * gui.h: declare new copying functions.
9452
9453         * gui.c (copy_gui_item_tree): new function.
9454         (copy_gui_item): new function.
9455         (gui_item_id_hash): revert to standard hash.
9456         (gui_item_hash): ditto.
9457         (gui_item_hash_internal): deleted.
9458         (mark_gui_item): mark value.
9459         (gui_item_add_keyval_pair): add value.
9460         (gui_item_init): ditto.
9461         (gui_add_item_keywords_to_plist): ditto.
9462         (gui_item_equal): ditto.
9463         (syms_of_gui): add Q_value.
9464
9465         * glyphs-x.c (x_progress_gauge_update): use pending items and
9466         value for setting the state.
9467         (x_update_widget): don't set items from pending here.
9468
9469         * glyphs-widget.c (update_widget): update items here.
9470         (progress_gauge_set_property): use items for storing value. Put
9471         new value in pending items.
9472
9473         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
9474         items for new value. Convert percent -> value.
9475         (mswindows_tab_control_update): don't update items here.
9476
9477         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
9478         (update_subwindow): ditto.
9479         (image_instance_changed): new function. Compare hash values and
9480         past and present widget items.
9481         (image_instantiate): We more careful about where we instantiate
9482         things.
9483         (image_instantiate): add error checking.
9484
9485         * gutter.c (syms_of_gutter): use -hook.
9486
9487 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
9488
9489         * console-tty.c (Fset_console_tty_input_coding_system): Use
9490         Qkeyboard.
9491         (Fset_console_tty_output_coding_system): Use Qterminal.
9492         (tty_init_console): Use Qkeyboard and Qterminal.
9493
9494 2000-03-21  Ben Wing  <ben@xemacs.org>
9495
9496         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
9497         From Mike Alexander <mta@arbortext.com>.
9498
9499 2000-03-21  Ben Wing  <ben@xemacs.org>
9500
9501         * event-msw.c (mswindows_need_event): Horrible kludge to fix
9502         process brokenness.  Proper implementation to come.
9503         * callproc.c:
9504         Rename call-process-internal to old-call-process-internal.
9505         New impl. in process.el.
9506
9507 2000-03-21  Martin Buchholz  <martin@xemacs.org>
9508
9509         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
9510
9511 2000-03-20  Andy Piper  <andy@xemacs.org>
9512
9513         * glyphs.c (full_list_hash): make hashes of the same elements in
9514         different orders return different values.
9515
9516 2000-03-20  Martin Buchholz <martin@xemacs.org>
9517
9518         * XEmacs 21.2.32 is released.
9519
9520 2000-03-20  Martin Buchholz  <martin@xemacs.org>
9521
9522         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
9523         (DFC_MALLOC_USE_CONVERTED_DATA):
9524         Add aliasing-safe casts to allow use with char* or unsigned char*
9525         lvalues.
9526
9527         * eldap.c (Fldap_open):
9528         (Fldap_search_basic):
9529         (Fldap_add):
9530         (Fldap_modify):
9531         Make C++-compilable.
9532         Make sure GCPRO'ed variables are initialized.
9533         Use temp variables to avoid repeated calls to Flength.
9534
9535 2000-03-16  Martin Buchholz  <martin@xemacs.org>
9536
9537         * sysfile.h:
9538         Make sure PATH_MAX is always defined.
9539         Include limits.h for PATH_MAX.
9540         Deprecate use of MAXPATHLEN.
9541
9542 2000-03-10  Martin Buchholz  <martin@xemacs.org>
9543
9544         * emacs.c: Add reinit_vars_of_fileio.
9545         * symsinit.h: Add reinit_vars_of_fileio.
9546         * fileio.c (reinit_vars_of_fileio): New.
9547         * fileio.c (Fmake_temp_name):
9548         Initialize temp_name random number from microseconds to make
9549         collisions even less likely.  Initialize always at process startup
9550         time.  (make-temp-name) used to return the same file name twice in
9551         a row when PDUMP.
9552         Random stylistic fiddling.
9553         Comment fixes.
9554
9555 2000-03-20  Andy Piper  <andy@xemacs.org>
9556
9557         * glyphs.c (image_instantiate): allow text glyphs to be
9558         instantiated in the minibuffer window.
9559
9560 2000-03-19  Andy Piper  <andy@xemacs.org>
9561
9562         * glyphs.c (image_instance_hash): be careful about which items we
9563         hash on.
9564
9565         * glyphs-widget.c (tab_control_set_property): record into pending
9566         items rather than the actual items.
9567
9568         * glyphs-x.c (x_update_widget): use pending items to update with.
9569
9570         * glyphs-msw.c (mswindows_tab_control_update): use pending items
9571         to update with.
9572
9573         * glyphs.c (mark_image_instance): mark pending items.
9574
9575         * window.c (Fset_window_configuration): record the buffer.
9576         (Fselect_window): totally revert previous change which breaks many
9577         things.
9578
9579 2000-03-18  Andy Piper  <andy@xemacs.org>
9580
9581         * glyphs-msw.c (mswindows_tab_control_update): force selected
9582         item.
9583
9584         * glyphs.c (image_instantiate): don't allow the minibuffer as a
9585         window domain cache, otherwise we get inconsistencies at
9586         startup. There is something fishy at startup which can lead to the
9587         minibuffer being the selected window when the gutter content is
9588         instantiated.
9589
9590         * gui.c (parse_gui_item_tree_list): add probably unnecessary
9591         gcpros.
9592         (parse_gui_item_tree_children): ditto.
9593         (parse_gui_item_tree_item): ditto.
9594
9595         * glyphs.c (Fupdate_widget_instances): return something.
9596
9597 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9598
9599         * window.c (Fselect_window): Undo 2000-03-17 change.
9600
9601 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
9602
9603         * postgresql.c (Fpq_setenv): Remove this turkey when linking
9604         against v7.0 libraries.  Insta-coredump city until the postgres
9605         folks fix it.
9606
9607 2000-03-17  Andy Piper  <andy@xemacs.org>
9608
9609         * faces.c (complex_vars_of_faces): don't give the widget face an
9610         inherited background pixmap.
9611
9612         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
9613         selected item.
9614
9615         * event-stream.c (Fdispatch_non_command_events): return something.
9616
9617         * gutter.c (output_gutter): use widget face.
9618         (clear_gutter): ditto.
9619
9620         * NEWS: adjust again.
9621
9622         * window.c (Fselect_window): make sure this runs to completion to
9623         avoid oddities with Fset_window_configuration.
9624         (Fcurrent_window_configuration): in general do not save the
9625         minibuffer as the selected window.
9626
9627         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
9628
9629 2000-03-16  Olivier Galibert  <galibert@pobox.com>
9630
9631         * emacs.c (Frunning_temacs_p): Revert previous patch.
9632         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
9633
9634 2000-03-16  Andy Piper  <andy@xemacs.org>
9635
9636         * glyphs-x.c (x_tab_control_update): if no widget values then
9637         return.
9638
9639         * NEWS: update for new features.
9640
9641         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
9642         synthetic event to the native system.
9643         (reinit_vars_of_event_Xt): set force_event_pending to
9644         emacs_Xt_force_event_pending.
9645
9646         * events.h (struct event_stream): add force_event_pending.
9647
9648         * specifier.c (recompute_one_cached_specifier_in_window): add
9649         comment.
9650
9651         * redisplay.c (redisplay_frame): don't call
9652         update_frame_subwindows. Reset subwindow cachels when
9653         subwindows_changed, removing this was an optimization too far.
9654
9655         * redisplay-output.c (compare_runes): reorganize so that we catch
9656         glyph changes when we want them. Set optimize_output when this
9657         would help layouts.
9658         (redisplay_output_layout): remove frame_really_changed, use
9659         optimize_output instead.
9660
9661         * redisplay-msw.c (mswindows_output_display_block): reset
9662         optimize_output after outputting a glyph.
9663         * redisplay-x.c (x_output_display_block): ditto.
9664         * redisplay-tty.c (tty_output_display_block): ditto.
9665
9666         * gutter.c: (specifier_vars_of_gutter): use new spec changed
9667         functions.
9668         (gutter_specs_changed): do specific gutter positions.
9669         (top_gutter_specs_changed): new function. Only update the
9670         specified gutter specs.
9671         (bottom_gutter_specs_changed): ditto.
9672         (left_gutter_specs_changed): ditto.
9673         (right_gutter_specs_changed): ditto.
9674
9675         * gui.c (gui_item_hash_internal): new function, does a real hash.
9676         (gui_item_id_hash): use it.
9677         (gui_item_hash): hash the eval'ed gui_item.
9678
9679         * gui-x.c (popup_selection_callback): send an eval event to call
9680         Fupdate_widget_instances.
9681
9682         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
9683         to call Fupdate_widget_instances.
9684
9685         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
9686         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
9687
9688         * glyphs.c: (update_frame_subwindows): deleted.
9689         (Fupdate_widget_instances): new function for updating the dirty
9690         state of widgets that might have changed.
9691         (syms_of_glyphs): add Qupdate_widget_instances.
9692         (full_list_hash): hash a list completely.
9693         (image_instance_hash): use it for items and properties.
9694
9695         * frame-msw.c (mswindows_size_frame_internal): remove unused
9696         variable.
9697
9698         * faces.h (struct face_cachel): fix comment.
9699
9700         * event-stream.c (Fdispatch_non_command_events): new
9701         function. Process non-command events, forcing an event cycle
9702         beforehand.
9703         (syms_of_event_stream): declare.
9704         (event_stream_force_event_pending): new function. Force an event
9705         on the native event queue so that an event cycle will occur next
9706         time we check.
9707
9708         * event-msw.c:
9709         (struct ntpipe_shove_stream):
9710         (mswindows_enqueue_dispatch_event):
9711         (mswindows_dequeue_dispatch_event):
9712         (mswindows_cancel_dispatch_event):
9713         (mswindows_pump_outstanding_events):
9714         (mswindows_drain_windows_queue):
9715         (mswindows_handle_paint):
9716         (mswindows_wnd_proc):
9717         (mswindows_key_to_emacs_keysym):
9718         (get_process_input_waitable):
9719         (emacs_mswindows_delete_stream_pair): re-indent file.
9720         (mswindows_need_event): do not process further fds if the windows
9721         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
9722         fixes the 100% cpu problem.
9723         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
9724
9725 2000-03-15  Olivier Galibert  <galibert@pobox.com>
9726
9727         * alloc.h: New.
9728         * dumper.h: New.
9729         * dumper.c: New.
9730
9731         * emacs.c: Moved dump file searching to dumper.c.
9732         (Frunning_temacs_p): Fixed.
9733
9734         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
9735         last_lrecord_type_index_assigned.
9736
9737 2000-02-20  Olivier Galibert  <galibert@pobox.com>
9738
9739         * symsinit.h: Added reinit parameter to init_console_stream
9740         declaration.
9741
9742         * lisp.h: Added file parameter to pdump_load declaration.
9743
9744         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
9745         support.  Added dump file searching.
9746
9747         * config.h.in: Added EMACS_PROGNAME.
9748
9749         * console-stream.c (init_console_stream): Fix reinitialisation
9750         when running from temacs.
9751
9752         * alloc.c (pdump): Add id support.
9753         (pdump_load): Add file parameter and signature/id support.
9754
9755         * Makefile.in.in: Add full pdump support.
9756
9757 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
9758
9759         * postgresql.c: Update documentation to reflect latest code
9760         status.
9761         (print_result): Show tuple counts in printed representation when
9762         appropriate.
9763         (Fpq_put_nbytes): MULE-ize.
9764         (Fpq_get_line_async): Ditto.
9765
9766 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
9767
9768         * postgresql.c (Fpq_lo_import): Fix return value.
9769         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
9770
9771 2000-03-13  Ben Wing  <ben@xemacs.org>
9772
9773         * alloc.c (pdump_load):
9774         Fix compile warning under mswin.
9775
9776 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
9777
9778         * postgresql.c: Mule-ization, bug fixes.
9779         Use PG_CODING to encapsulate coding system name changes.
9780         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
9781         (pg-coding-system): Create.
9782
9783         (Fpq_conn_defaults): Mule-ize.
9784         (Fpq_connectdb): Mule-ize & bug fix.
9785         (Fpq_connect_start): Mule-ize.
9786         (Fpq_set_client_encoding): Mule-ize.
9787         (Fpq_finish): Document `DEAD' connection status.
9788         (Fpq_clear): Ditto.
9789         (Fpq_pgconn): Mule-ize.
9790         (Fpq_exec): Mule-ize & bug fix.
9791         (Fpq_send_query): Ditto.
9792         (Fpq_get_result): Ditto.
9793         (Fpq_res_status): Mule-ize.
9794         (Fpq_result_error_message): Mule-ize.
9795         (Fpq_ntuples): fix comments.
9796         (Fpq_fname): Mule-ize.
9797         (Fpq_fnumber): Mule-ize.
9798         (Fpq_ftype): fix comments.
9799         (Fpq_get_value): Mule-ize.
9800         (Fpq_cmd_status): Ditto.
9801         (Fpq_cmd_tuples): Ditto.
9802         (Fpq_oid_value): Ditto.
9803         (Fpq_notifies): Ditto.
9804         (Fpq_lo_import): Ditto.
9805         (Fpq_lo_export): Ditto.
9806         (Fpq_get_line): Ditto.
9807         (Fpq_put_line): Mule-ize and bug fix.
9808         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
9809
9810 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
9811
9812         * postgresql.c (vars_of_postgresql): Mule-ize.
9813         (Fpq_conn_defaults): Ditto.
9814
9815 2000-03-12  Ben Wing  <ben@xemacs.org>
9816
9817         * alloc.c (Fmake_byte_code):
9818         * alloc.c (debug_string_purity_print):
9819         * alloc.c (pdump_backtrace):
9820         * alloc.c (pdump_get_indirect_count):
9821         * alloc.c (pdump_register_sub):
9822         * alloc.c (pdump_register_object):
9823         * alloc.c (pdump_register_struct):
9824         * alloc.c (pdump_dump_data):
9825         * alloc.c (pdump_reloc_one):
9826         Minor cleanups.
9827
9828         * console-msw.c:
9829         * console-msw.c (GetConsoleHwnd):
9830         * console-msw.c (msw_hide_console):
9831         * console-msw.c (msw_show_console):
9832         * console-msw.c (msw_ensure_console_buffered):
9833         * console-msw.c (msw_output_console_string):
9834         * console-msw.c (console_type_create_mswindows):
9835
9836         a) Added functions to manipulate the console window for use with
9837         shell support.
9838
9839         b) Added support for writing text to the console, which is now
9840         used under Windows when xemacs is not being run non-interactively,
9841         to write text that would otherwise be destined for stdout because
9842         under these circumstances, text written to stdout tends to
9843         disappear and not be seen.
9844
9845         * console-msw.h:
9846         * event-Xt.c:
9847         * event-Xt.c (x_event_to_emacs_event):
9848         * event-Xt.c (describe_event_window):
9849         * events-mod.h (XEMACS_MOD_CONTROL):
9850         * events.c:
9851         * events.c (Fmake_event):
9852         * events.c (character_to_event):
9853         * events.c (event_to_character):
9854         * events.c (format_event_object):
9855         * events.c (Fevent_modifiers):
9856         * events.h:
9857         * events.h (struct key_data):
9858         * events.h (struct button_data):
9859         * events.h (struct misc_user_data):
9860         * frame-x.c (Fcde_start_drag_internal):
9861         * frame-x.c (Foffix_start_drag_internal):
9862         * gpmevent.c (Freceive_gpm_event):
9863         * keymap.c:
9864         * keymap.c (bucky_sym_to_bucky_bit):
9865         * keymap.c (control_meta_superify):
9866         * keymap.c (make_key_description):
9867         * keymap.c (keymap_lookup_directly):
9868         * keymap.c (create_bucky_submap):
9869         * keymap.c (keymap_store):
9870         * keymap.c (define_key_check_and_coerce_keysym):
9871         * keymap.c (define_key_parser):
9872         * keymap.c (define_key_alternate_name):
9873         * keymap.c (Fdefine_key):
9874         * keymap.c (raw_lookup_key_mapper):
9875         * keymap.c (struct map_keymap_unsorted_closure):
9876         * keymap.c (map_keymap_unsorted_mapper):
9877         * keymap.c (map_keymap_sort_predicate):
9878         * keymap.c (map_keymap_sorted):
9879         * keymap.c (accessible_keymaps_mapper_1):
9880         * keymap.c (where_is_recursive_mapper):
9881         * keymap.c (describe_map_mapper):
9882         * keymap.c (describe_map_sort_predicate):
9883         * keymap.c (describe_map):
9884         * keymap.c (complex_vars_of_keymap):
9885         And a number of other files, the key modifier preprocessor
9886         constants that xemacs uses have names that conflict with constants
9887         defined under MS Windows for other purposes, so they were renamed
9888         to begin with the prefix XEMACS_. The variables that hold such
9889         modifiers were changed to consistently be of type int to fix
9890         various compile warnings.
9891
9892         * console.c (complex_vars_of_console):
9893         * device.c:
9894         * device-msw.c:
9895         * device-msw.c (mswindows_finish_init_device):
9896         * device-msw.c (msw_get_workspace_coords):
9897         * device-msw.c (mswindows_device_system_metrics):
9898         and various other files, added support for a new
9899         device property called offset-workspace which returns the position
9900         of the upper left corner of the workspace area and goes along with
9901         the existing size-workspace property.
9902
9903         * dialog-msw.c:
9904         * dialog-msw.c (push_bufbyte_string_as_unicode):
9905         * dialog-msw.c (mswindows_popup_dialog_box):
9906         Added support for XEmacs-style accelerator specifications in
9907         button text.  Note: I didn't add support for this under X Windows,
9908         and somebody needs to do this.
9909
9910         * dialog.c:
9911         * dialog.c (Fpopup_dialog_box):
9912         Documented the support for accelerators that was just mentioned.
9913
9914         editfns.c (get_home_directory): Changed behavior under Windows
9915         when HOME not defined; former behavior was irretrievably broken.
9916
9917         * emacs.c:
9918         * emacs.c (main_1):
9919         * emacs.c (main):
9920         * minibuf.c (clear_echo_area_internal):
9921         * minibuf.c (echo_area_append):
9922         * print.c:
9923         * print.c (std_handle_out_external):
9924         * print.c (std_handle_out_va):
9925         * print.c (fatal):
9926         * print.c (write_string_to_stdio_stream):
9927         * print.c (output_string):
9928         * print.c (debug_print):
9929         * print.c (debug_backtrace):
9930         * print.c (debug_short_backtrace):
9931         Cleaned up the code that prints text to stdout so that this can be
9932         changed to output into a console window instead under MS Windows,
9933         as described above.
9934
9935         * eval.c:
9936         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
9937         * eval.c (internal_catch):
9938         * eval.c (unwind_to_catch):
9939         * eval.c (throw_or_bomb_out):
9940         * eval.c (condition_case_1):
9941         * eval.c (signal_1):
9942         * eval.c (check_error_state_sanity):
9943         * eval.c (call_with_suspended_errors_1):
9944         * eval.c (call_with_suspended_errors):
9945         * eval.c (reinit_vars_of_eval):
9946         Added code to catch throw loops and check for a pesky bug that may
9947         be gone now.
9948
9949         * event-msw.c:
9950         * event-msw.c (key_needs_default_processing_p):
9951         * event-msw.c (mswindows_wnd_proc):
9952         * event-msw.c (mswindows_modifier_state):
9953         * event-msw.c (emacs_mswindows_quit_p):
9954         * event-msw.c (vars_of_event_mswindows):
9955         a) Added support for using the alt key to select menu items as is
9956         standard under MS Windows.  This is controlled using the variable
9957         menu-accelerator-enabled, just like under X Windows.  There is an
9958         option on the options menu to turn this support on.  I really
9959         think that it should be on by default under Windows, but I'm not
9960         going to make this change yet.
9961
9962         b)  Added support for dynamic display size changes under Windows.
9963
9964         * event-stream.c:
9965         * event-stream.c (maybe_echo_keys):
9966         * event-stream.c (Fnext_event):
9967         * event-stream.c (command_builder_find_leaf):
9968         * event-stream.c (lookup_command_event):
9969         * event-stream.c (execute_command_event):
9970         * event-stream.c (pre_command_hook):
9971         * event-stream.c (post_command_hook):
9972         * event-stream.c (syms_of_event_stream):
9973         * event-stream.c (vars_of_event_stream):
9974         * event-stream.c (complex_vars_of_event_stream):
9975         * events.h (struct command_builder):
9976
9977         a) Tried to clean up a little bit the horribly written x-specific
9978         accelerator code that crept into this file.  I moved this code
9979         into menubar-x.c where it belongs. I also needed to move the
9980         command builder structure into the file events.h because it is
9981         accessed directly by this accelerator code.  What I didn't do, but
9982         which should be done at some point, is to properly abstract this
9983         code using device methods instead of the kludgy way that it
9984         currently hooks into the event code.
9985
9986         b) Added the lisp variables this-command-properties and
9987         last-command- properties, which should be used to synchronize two
9988         adjacent commands in preference to playing games with the variable
9989         this-command, which is typically what happens.
9990
9991         c) Added some slightly nasty code to hook into the lisp support
9992         for shifted- motion-key selection.  This is actually necessary for
9993         somewhat complicated reasons, which are described in
9994         simple.el. (NB: I think the proper thing would be to have the code
9995         that calls the pre and post command hooks also call out to generic
9996         lisp functions in simple.el, where all built-in stuff could be
9997         added.  I will think about this more.)
9998
9999         * event-unixoid.c (poll_fds_for_input):
10000         * lread.c (readchar):
10001         * redisplay-tty.c (tty_clear_frame):
10002         * redisplay-x.c (x_get_gc):
10003         * signal.c (interrupt_signal):
10004         And a whole bunch of other files: fixed up places that printed
10005         directly to stderr to instead call the function stderr_out so that
10006         the changes I made under Windows work correctly.
10007
10008         * filemode.c (mode_string):
10009         Warning fixes.
10010
10011         * frame-msw.c:
10012         * frame-msw.c (mswindows_size_frame_internal):
10013         Fixed the computation of frame size and position to keep the frame
10014         within the workspace area, rather than within the physical
10015         dimensions of the screen, so that the frame doesn't overlap window
10016         manager decorations, such as the start menu and toolbar, typically
10017         at the bottom of the screen.
10018
10019         * frame.c (vars_of_frame):
10020         Changed the default frame title format under MS Windows to consist
10021         of buffername-XEmacs, which is standard under MS Windows.  I think
10022         it might be a good idea to change this everywhere because I think
10023         it is superior to the current frame title format, but this is the
10024         kind of change that is likely to cause some people to get annoyed,
10025         so I'm not making it.
10026
10027         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
10028
10029         * gui-msw.c (mswindows_handle_gui_wm_command):
10030         Fixed compile warnings.
10031
10032         * gui-x.c:
10033         * gui-x.c (strdup_and_add_accel):
10034         * gui-x.c (button_item_to_widget_value):
10035         * gui-x.h:
10036         Added code to automatically put an accelerator onto the beginning
10037         of menu items that don't have one as is now the standard, and is
10038         described more later.  Also fixed things so that the menu item
10039         name can be an evaluated expression, again a new standard.
10040
10041         * gui.c:
10042         * gui.c (gui_item_add_keyval_pair):
10043         * gui.c (make_gui_item_from_keywords_internal):
10044         * gui.c (gui_add_item_keywords_to_plist):
10045         * gui.c (gui_item_accelerator):
10046         * gui.c (gui_name_accelerator):
10047         * gui.c (gui_item_included_p):
10048         * gui.c (gui_item_display_flush_left):
10049         * gui.c (gui_item_display_flush_right):
10050         * gui.c (parse_gui_item_tree_item):
10051         * gui.c (parse_gui_item_tree_children):
10052         * gui.c (parse_gui_item_tree_list):
10053         Mule-ized.  Cleanup.  GCPRO addition.
10054
10055         * line-number.c (buffer_line_number):
10056         * lisp.h:
10057         * lisp.h (EMACS_INT_MAX):
10058         Added the manifest constant EMACS_INT_MIN corresponding to the
10059         existing constant EMACS_INT_MAX.  This is partially to fix compile
10060         warnings under Windows, and partly for cleanliness.
10061
10062         * menubar-msw.c:
10063         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
10064         * menubar-msw.c (msw_translate_menu_or_dialog_item):
10065         * menubar-msw.c (displayable_menu_item):
10066         * menubar-msw.c (populate_menu_add_item):
10067         * menubar-msw.c (populate_or_checksum_helper):
10068         * menubar-msw.c (populate_menu):
10069         * menubar-msw.c (update_frame_menubar_maybe):
10070         * menubar-msw.c (prune_menubar):
10071         * menubar-msw.c (msw_char_is_accelerator):
10072         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
10073         * menubar-msw.c (mswindows_handle_wm_command):
10074         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
10075         * menubar-msw.c (mswindows_handle_wm_initmenu):
10076         * menubar-msw.c (mswindows_update_frame_menubars):
10077         * menubar-msw.c (mswindows_free_frame_menubars):
10078         * menubar-msw.c (mswindows_popup_menu):
10079         Fixed a bug in handling accelerators where an extra character
10080         would be displayed in the menu item.  Also generalized the
10081         function displayable_menu_item because it is now used by the
10082         dialog box code as well.  And finally, added code in the functions
10083         that create the menubar to extract a list of accelerators for the
10084         top level menubar, which is used in the event code to determine
10085         whether a particular alt-key combination should be used to invoke
10086         a menu item, or should be passed through to access the standard
10087         XEmacs keymap binding for this key combination.
10088
10089         Much needed GCPROing.
10090
10091         * menubar-x.c:
10092         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10093         * menubar-x.c (menu_item_descriptor_to_widget_value):
10094         * menubar-x.c (restore_in_menu_callback):
10095         * menubar-x.c (x_popup_menu):
10096         * menubar-x.c (menu_move_up):
10097         * menubar-x.c (menu_move_down):
10098         * menubar-x.c (menu_move_left):
10099         * menubar-x.c (menu_move_right):
10100         * menubar-x.c (menu_select_item):
10101         * menubar-x.c (command_builder_operate_menu_accelerator):
10102         * menubar-x.c (menu_accelerator_junk_on_error):
10103         * menubar-x.c (command_builder_find_menu_accelerator):
10104         * menubar-x.c (Faccelerate_menu):
10105         * menubar.h:
10106         Moved a whole bunch of code here that was previously in
10107         event-stream.c as described above.  There is also code connected
10108         to the new standard of adding an accelerator to the beginning of
10109         menu items that don't have one as described above and below.
10110
10111         * menubar.c:
10112         * menubar.c (menu_parse_submenu_keywords):
10113         * menubar.c (Fmenu_find_real_submenu):
10114         * menubar.c (Fnormalize_menu_item_name):
10115         * menubar.c (syms_of_menubar):
10116         * menubar.c (vars_of_menubar):
10117         * menubar.c (complex_vars_of_menubar):
10118
10119         a) Cleaned up a bunch of documentation and improved it.
10120
10121         b) XEmacs now automatically adds an accelerator onto the beginning
10122         of any menu items that don't have one.  I did this because there
10123         will inevitably be some menu items on the main menubar that don't
10124         have accelerators on them because the package that adds that
10125         particular menu item hasn't yet been fixed up to have accelerators
10126         in them and it looked rather strange to have some items with and
10127         some items without accelerators, especially since even in items
10128         without accelerators, you can, at least under windows, still
10129         access the item through an accelerator corresponding to the first
10130         character in the item's name.  If people don't like this behavior,
10131         I can add a variable to turn it off optionally, but I'm not sure
10132         this is a good idea because we really do need to have accelerators
10133         on all of the menu items, and if a package doesn't like the
10134         accelerators being put on the first character, then it should put
10135         the accelerators where they belong.
10136
10137         c) I made a behavior change, which is that the descriptor that
10138         specifies the text of the menu item, which formerly was just a
10139         string, can now also be an evaluated expression.  This makes this
10140         descriptor parallel with all of the others, which could also be
10141         evaluated expressions.  This also obviates the need for the
10142         keyword :label, which was previously listed in the documentation
10143         as unimplemented, and which was for the same purpose.
10144
10145         d) GCPROing.
10146
10147         * ntproc.c:
10148         * ntproc.c (new_child):
10149         * ntproc.c (sys_spawnve):
10150         * ntproc.c (find_child_console):
10151         * ntproc.c (sys_kill):
10152         Fixed compile warnings.  By the way, this file should really go
10153         away entirely, and this will happen as soon as Kirill makes his
10154         final round of process cleanups, which affect the function
10155         call-process.
10156
10157         * process-nt.c:
10158         * process-nt.c (struct nt_process_data):
10159         * process-nt.c (find_process_from_pid):
10160         * process-nt.c (send_signal_the_nt_way):
10161         * process-nt.c (enable_child_signals):
10162         * process-nt.c (find_child_console):
10163         * process-nt.c (send_signal_the_95_way):
10164         * process-nt.c (nt_finalize_process_data):
10165         * process-nt.c (ensure_console_window_exists):
10166         * process-nt.c (nt_create_process):
10167         * process-nt.c (nt_kill_child_process):
10168         * process-nt.c (nt_kill_process_by_pid):
10169         * process-nt.c (nt_open_network_stream):
10170         * process-nt.c (vars_of_process_nt):
10171         Copied over code from Emacs 20.5 to correctly send signals to sub-
10172         processes under Windows 95.  Also added code to automatically
10173         create and hide console window when a sub-process is created under
10174         Windows 95, which obviates the need for the separate runemacs.exe
10175         executable, and finally implemented some variables that were
10176         implemented in Emacs 20.5, but previously not in XEmacs.  These
10177         include mswindows- start-process-share-console and
10178         mswindows-start-process-inherit-error-mode. (Both of these only
10179         apply to Windows 95.)
10180
10181         * regex.c (regex_compile): Fixed a compile warning.
10182
10183         * select-msw.c:
10184         * select-msw.c (mswindows_own_selection):
10185         * select-msw.c (mswindows_get_foreign_selection):
10186         * select-msw.c (mswindows_disown_selection):
10187         * select-msw.c (console_type_create_select_mswindows):
10188         * select-msw.c (syms_of_select_mswindows):
10189         Cleaned up the file and implemented the device method
10190         selection_exists_p, which had accidentally been left out.  Also
10191         removed four lisp functions that were remnants from before the
10192         time when the selection code was properly device abstracted.
10193         These functions are no longer needed because there are generic
10194         equivalents, and because they were added recently and don't exist
10195         in FSF Emacs, I don't think there's any problem with just deleting
10196         them.
10197
10198         * sysdep.c:
10199         * sysdep.c (sys_subshell):
10200         Fixed a compile warning, although in this case there's probably
10201         something wrong with this code, and it ought to be looked into
10202         more thoroughly by somebody who understands it.
10203
10204         * window.c:
10205         * window.c (Fwindow_text_area_height):
10206         * window.c (Fwindow_width):
10207         * window.c (Fwindow_full_width):
10208         * window.c (Fwindow_pixel_width):
10209         * window.c (debug_print_window):
10210         * window.c (syms_of_window):
10211         Added functions window-text-area-height and window-full-width,
10212         which are functions for returning various width and height
10213         characteristics of a window. (One of these functions is necessary
10214         for making the file dialog box work correctly, and the other one
10215         was added for completeness.)  Also added a table to the
10216         documentation for window-height which describes the entire scheme
10217         for accessing width and height characteristics of a window.
10218
10219 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10220
10221         * nt.c (fstat): Added a comment for another problem with
10222         non-encapsulated [f]stat(), reported by Adrian Aichner
10223         <aichner@ecf.teradyne.com>.
10224
10225 2000-03-11  Andy Piper  <andy@xemacs.org>
10226
10227         * window.c (make_dummy_parent): initialize subwindow instance
10228         cache.
10229         (Fset_window_configuration): zero extent_modiff.
10230
10231 2000-03-10  Andy Piper  <andy@xemacs.org>
10232
10233         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
10234         more changes can be triggered.
10235         (Fredisplay_frame): ditto.
10236         (Fredraw_device): ditto.
10237         (Fredisplay_device): ditto.
10238         (redisplay_frame): make non-static.
10239         (redisplay_frame): call update_frame_gutter_geometry outside of
10240         display proper.
10241
10242         * gutter.h: declare update_frame_gutter_geometry.
10243
10244         * redisplay.h: declare redisplay_frame.
10245
10246         * gutter.c (update_frame_gutter_geometry): move geometry changes
10247         in update_frame_gutters here. Geometry changes can only occur
10248         outside of redisplay.
10249         (update_frame_gutters): remove geometry change code.
10250         (Fredisplay_gutter_area): make sure that we are in display when we
10251         update and that we have flushed any size changes.
10252
10253 2000-03-11  Andy Piper  <andy@xemacs.org>
10254
10255         * alloc.c (pdump_dump_data): remove i & count shadows.
10256
10257 2000-02-27  Mike Alexander  <mta@arbortext.com>
10258
10259         * sysdep.h: Declare pdump_read_file
10260
10261         * sysdep.c (pdump_read_file): New function
10262
10263         * alloc.c (pdump_load): Call pdump_read_file to get the portable
10264         dump data
10265
10266 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
10267
10268         * lrecord.h: add `lrecord_type_pgsetenv'.
10269
10270 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
10271
10272         * symsinit.h: declare (vars|syms)_of* functions.
10273         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
10274
10275 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
10276
10277         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
10278
10279         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
10280         GCCs.
10281
10282         * emacs.c (main_1): Call postgres initialization code.
10283
10284         * postgresql.h: New file.  PostgreSQL RDBMS support.
10285         * postgresql.c: New file.
10286
10287 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
10288
10289         * redisplay-output.c (redisplay_output_display_block): Disable
10290         redundant code.
10291
10292 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10293
10294         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
10295         (Fcanna_henkan_next): Ditto.
10296         (Fcanna_bunsetu_henkou): Ditto.
10297         (Fcanna_henkan_kakutei): Ditto.
10298         (Fcanna_henkan_end): Ditto.
10299         (Fcanna_henkan_quit): Ditto.
10300         (Fcanna_henkan_next): Set retun value correctly.
10301         (c2mu): Use unsigned char instead of signed char.
10302
10303 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10304
10305         * emacs.c (main_1): Always call syms_of_gui.
10306         * inline.c: include gui.h
10307
10308 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10309
10310         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
10311         converted to Lisp_Object.
10312         (Qtop_bottom): New variable.
10313         (syms_of_redisplay): Initialize it.
10314         * redisplay.h (Vvisible_bell): Ditto.
10315         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
10316         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
10317         only flash top and bottom.
10318
10319 2000-03-08  Andy Piper  <andy@xemacs.org>
10320
10321         * buffer.c (Frename_buffer): record new buffer name the right way.
10322
10323 2000-03-08  Andy Piper  <andy@xemacs.org>
10324
10325         * glyphs.c (update_subwindow): increase hash depth so that widget
10326         items get picked up properly.
10327
10328         * redisplay-output.c (compare_runes): increase hash depth so that
10329         widget items get picked up properly.
10330
10331 2000-03-08  Andy Piper  <andy@xemacs.org>
10332
10333         * gutter.c (output_gutter): add some debug.
10334
10335         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
10336         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
10337         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
10338
10339         * redisplay-output.c (compare_runes): use display_hash to
10340         determine if glyphs really are not the same.
10341
10342         * glyphs.c (update_subwindow): check display_hash to see if
10343         anything really needs to be updated. If not then do
10344         nothing. Record the display_hash after updating.
10345         (image_instance_equal): compare the image_instance face also.
10346
10347 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
10348
10349         * redisplay.h: Fix comment style.
10350
10351 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10352
10353         * consle-msw.h (struct mswindows_frame):
10354         Added new member paint_pending to indicate whether a WM_PAINT
10355         magic event has been queued for this frame.
10356
10357         * event-msw.c (mswindows_drain_windows_queue):
10358         Don't queue a WM_PAINT magic event if one is already queued.
10359         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
10360
10361         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
10362
10363 2000-03-07  Didier Verna  <didier@xemacs.org>
10364
10365         * dired.c: #include `regex.h' after `sysfile.h'.
10366
10367 2000-03-06  Martin Buchholz  <martin@xemacs.org>
10368
10369         * sound.c (init_nas_sound): Fix compiler warning.
10370
10371         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
10372         (FREE_STRUCT_P):
10373         (MARK_STRUCT_AS_FREE):
10374         (MARK_STRUCT_AS_NOT_FREE):
10375         Make `gcc -fstrict-aliasing' work properly.
10376
10377 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10378
10379         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
10380         (mswindows_delete_device): Call CoUnnitialize().
10381
10382         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
10383
10384 2000-02-25    <CraigL@DyCon.com>
10385
10386         * process-nt.c: MinGW now has <shellapi.h>, but still needs
10387         <errno.h>.
10388
10389         * sysdep.c: This extern declaration for environ prevents MinGW
10390         from finding the variable in CRTDLL.DLL.
10391
10392         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
10393         windows headers.
10394         (SHGFI_EXETYPE): ..
10395         (WM_MOUSEWHEEL): ..
10396         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
10397         definitions.
10398         (MMRESULT): Removed, now defined in cygwin's windows headers.
10399         (TIMECAPS): ..
10400         (uid_t,gid_t,pid_t,ssize_t): ..
10401         (_timeb): Removed, MinGW defines both _timeb and timeb.
10402         (HAVE_H_ERRNO): Added.
10403         (HAVE_TZNAME): Added, configure is not detecting this.
10404
10405 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
10406
10407         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
10408         * syntax.c (syntax_match): Use it.
10409
10410         * cmds.c: Import auto-fill-chars from FSF Emacs.
10411         (Vauto_fill_chars): New variables.
10412         (internal_self_insert): Check Vauto_fill_chars.
10413         (vars_of_cmds):
10414         Declare auto-fill-chars as a Lisp variable and initialize it.
10415
10416 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10417
10418         * fileio.c (Fmake_symbolic_link):
10419         (Ffile_symlink_p):
10420         Run handlers even if local machine doesn't have symlinks.
10421
10422 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10423
10424         * event-msw.c (mswindows_drain_windows_queue):
10425         Don't generate paint magic events for non-XEmacs frames.
10426
10427 2000-03-05  Andy Piper  <andy@xemacs.org>
10428
10429         * redisplay.c (redisplay_frame): generate_displayable_area and
10430         friends assumes that we are not in GC, we therefore have to make
10431         sure that this doesn't happen.
10432
10433         * gutter.c (calculate_gutter_size): generate_displayable_area
10434         assumes that we are not in GC, we therefore have to make sure that
10435         this doesn't happen.
10436
10437 2000-03-05  Martin Buchholz  <martin@xemacs.org>
10438
10439         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
10440
10441 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
10442
10443         * redisplay.c (regenerate_window): Make sure we set a sane value
10444         for end_pos even if we jump out of the loop.
10445         (regenerate_window): Answer Ben's question :-).
10446         (start_end_of_last_line): Add may_error argument.
10447         (start_of_last_line):
10448         (end_of_last_line): Pass may_error = 0.
10449         (end_of_last_line_may_error): New function.
10450         (pixel_to_glyph_translation): Use it, so we don't crash in
10451         event_to_glyph.
10452
10453 2000-03-04  Andy Piper  <andy@xemacs.org>
10454
10455         * window.h (struct window): add gutter_extent_modiff.
10456
10457         * window.c (allocate_window): zero out gutter_extent_modiff.
10458
10459         * redisplay.h: declare sync_display_line_structs.
10460
10461         * redisplay.c (add_glyph_rune): add a better comment.
10462
10463         * redisplay-output.c (sync_display_line_structs): made non-static.
10464         (compare_runes): remove unneccesary glyph cachel access.
10465
10466         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
10467
10468         * gutter.c (output_gutter): don't output the gutter if extent
10469         changes only involve extents in buffers. use 4 sets of display
10470         lines.
10471         (gutter_extent_signal_changed_region_maybe): new function. Mark
10472         extents in gutters as changed.
10473         (update_frame_gutters): use 4 sets of display lines.
10474         (reset_gutter_display_lines): ditto.
10475         (free_frame_gutters): ditto.
10476         (redraw_exposed_gutter): force output of gutters.
10477
10478         * frame.h (struct frame): add 4 sets of gutter display lines.
10479
10480         * extents.c: (extent_changed_for_redisplay): signal changes to
10481         extents in strings in the gutter as well as extents in buffers.
10482
10483 2000-03-02  Andy Piper  <andy@xemacs.org>
10484
10485         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
10486
10487         * frame.c (Fmake_frame): make sure the gutters get initialized
10488         after the frame is visible.
10489         (set_frame_selected_window): re-arrange compilation macros a
10490         little.
10491         (change_frame_size_1): mark gutters changed.
10492
10493         * device.c (Fset_device_class): mark gutters changed.
10494
10495 2000-03-01  Andy Piper  <andy@xemacs.org>
10496
10497         * window.c (window_top_frame_gutter_height): deleted.
10498         (window_bottom_frame_gutter_height): ditto.
10499         (window_left_frame_gutter_height): ditto.
10500         (window_right_frame_gutter_height): ditto.
10501         (window_top_gutter_height): don't use them.
10502         (window_bottom_gutter_height): ditto.
10503         (window_left_gutter_width): ditto.
10504         (window_right_gutter_width): ditto.
10505         (Fsplit_window): ditto.
10506         (Fwindow_pixel_edges): don't use border dimensions here.
10507
10508         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
10509         (update_scrollbar_instance): ditto.
10510
10511         * redisplay.c (generate_modeline): don't take gutters into account.
10512         (generate_modeline): ditto.
10513         (redisplay_frame): small gutter display optimization.
10514
10515         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
10516
10517         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
10518         gutters into account.
10519
10520         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
10521         for window position and type.
10522
10523         * gutter.c (get_gutter_coords): fix for frame gutters.
10524         (update_frame_gutters): update frame geometry if the gutters have
10525         changed.
10526         (init_frame_gutters): record current gutter geometries.
10527
10528         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
10529         var.
10530         (mswindows_widget_instantiate): ditto.
10531
10532         * frame.h (struct frame): add current_gutter_bounds.
10533
10534         * frame.c (change_frame_size_1): position window and minibuffer
10535         appropriately taking into account the frame gutters.
10536
10537         * frame-x.c: (x_initialize_frame_size): take into account the
10538         frame gutters.
10539
10540 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
10541
10542         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
10543
10544 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
10545
10546         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
10547
10548 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
10549
10550         * file-coding.c (reset_decoding_stream): Clear previous
10551         detection state when autodetect.
10552
10553 2000-02-29  Didier Verna  <didier@xemacs.org>
10554
10555         * extents.c (set_extent_glyph_1): don't require extents to be
10556         attached.
10557
10558 2000-02-27  Andy Piper  <andy@xemacs.org>
10559
10560         * gutter.c (Fset_default_gutter_position): don't default left and
10561         right gutter visibility to t.
10562         (Fset_default_gutter_position): run
10563         default-gutter-position-changed-hook.
10564         (syms_of_gutter): add default-gutter-position-changed-hook.
10565
10566 2000-02-26  Andy Piper  <andy@xemacs.org>
10567
10568         * specifier.c (Fmake_specifier): add gutter references.
10569
10570         * gutter.h (RAW_WINDOW_GUTTER): new macro.
10571
10572         * lisp.h: declare Fvalid_plist_p.
10573
10574         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
10575         as changed.
10576         (default_gutter_visible_p_changed_in_window): invalidate gutter as
10577         well as its visibility so that it gets reconstructed.
10578         (construct_window_gutter_spec): new function. Construct a string
10579         to be displayed in the gutter from a plist of strings. Take care
10580         to only use elements that are declared as visible.
10581         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
10582         WINDOW_GUTTER.
10583         (gutter_validate): allow plists of strings in the specifier.
10584         (gutter_specs_changed): construct the real_gutter from the gutter
10585         specs using construct_window_gutter_spec.
10586         (gutter_visible_validate): gutter-visible is a new specifier type.
10587         (Fgutter_visible_specifier_p): new function for the new specifier.
10588         (syms_of_gutter): declare gutter-visible and
10589         Fgutter_visible_specifier_p.
10590         (specifier_type_create_gutter): intitalize new gutter-visible
10591         specifier.
10592         (reinit_specifier_type_create_gutter): ditto.
10593         (specifier_vars_of_gutter): use new specifier type for gutter
10594         visibility.
10595         (init_frame_gutters): construct real_gutter correctly.
10596         (Fgutter_specifier_p): beef up documentation.
10597         (Fgutter_size_specifier_p): ditto.
10598
10599         * winslots.h: add real_gutter slots.
10600
10601 2000-02-25  Andy Piper  <andy@xemacs.org>
10602
10603         * device-msw.c: Be kind to older cygwin versions. From Raymond
10604         Toy <toy@rtp.ericsson.se>.
10605
10606         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
10607         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
10608
10609 2000-02-25  Martin Buchholz  <martin@xemacs.org>
10610
10611         * elhash.c (MARK_OBJ): Practice macro hygiene.
10612
10613 2000-02-24  Martin Buchholz  <martin@xemacs.org>
10614
10615         * miscplay.c: s/__inline__/inline/g;
10616         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
10617         (get_device_compdc): INLINE ==> static inline
10618         * *.[ch]: Change INLINE to INLINE_HEADER globally.
10619         find -name '*.h' | \
10620         xargs global-replace \
10621         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
10622
10623 2000-02-25  Andy Piper  <andy@xemacs.org>
10624
10625         * window.c (window_top_frame_gutter_height): new function.
10626         (window_top_window_gutter_height): ditto.
10627         (window_top_gutter_height): use them.
10628         (window_bottom_frame_gutter_height): new function.
10629         (window_bottom_window_gutter_height): ditto.
10630         (window_bottom_gutter_height): use them.
10631         (window_left_window_gutter_width): new function.
10632         (window_left_frame_gutter_width): ditto.
10633         (window_left_gutter_width): use them.
10634         (window_right_window_gutter_width): new function.
10635         (window_right_frame_gutter_width): ditto.
10636         (window_right_gutter_width): use them.
10637         (window_pixel_height): new function. calulate window pixel height
10638         with frame gutter involvement.
10639         (Fsplit_window): calculate new sizes taking frame gutters into
10640         account.
10641         (window_char_height_to_pixel_height): don't include frame gutters.
10642         (window_char_height): use window_pixel_height.
10643         (window_pixheight): rename from window_pixel_height.
10644         (change_window_height): use it.
10645         (window_pixel_height_to_char_height): don't include frame gutters.
10646         (window_char_width_to_pixel_width): ditto.
10647
10648 2000-02-25  Andy Piper  <andy@xemacs.org>
10649
10650         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
10651         if it is.
10652
10653 2000-02-24  Martin Buchholz  <martin@xemacs.org>
10654
10655         * alloc.c (staticpro):
10656         (staticpro_nodump):
10657         (dumpstruct):
10658         (dumpopaque):
10659         (pdump_wire):
10660         (pdump_wire_list):
10661         (compact_string_chars):
10662         (pdump_dump_wired):
10663         Convert:  if (foo) abort();  ==>  assert (! foo);
10664
10665         * eldap.c (Fldap_search_basic):
10666         (Fldap_add):
10667         (Fldap_modify):
10668         (Fldap_delete):
10669         Fix compiler warnings, and possible crashes if (random) return
10670         value were to be used.
10671
10672 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10673
10674         * device-msw.c: Workaround ResetDC failure.
10675
10676         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
10677         applying a devmode.
10678
10679         * redisplay-msw.c (get_frame_dc): Added start_page_p.
10680         (mswindows_text_width): Do not start printer page.
10681
10682         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
10683
10684         * glyphs-msw.c: Added image methods to msprinter console and
10685         msprinter-specific image instantiation.
10686
10687 2000-02-20  Mike Alexander  <mta@arbortext.com>
10688
10689         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
10690         to avoid crashes when selection-sets-clipboard is on
10691         (mswindows_own_selection): ditto
10692
10693 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10694
10695         * glyphs-msw.c:
10696         * redisplay-msw.c (get_frame_dc):
10697         (get_frame_compdc):
10698         * console-msw.h:
10699         * device-msw.c (mswindows_init_device):
10700         (mswindows_delete_device):
10701         (msprinter_init_device):
10702         (msprinter_delete_device):
10703         * frame-msw.c (mswindows_init_frame_1):
10704         (mswindows_delete_frame):
10705         (msprinter_init_frame_3):
10706         (msprinter_delete_frame): Move compatible DC to device object from
10707         frame object, for both mswindows and msprinter. Only one at a time
10708         is needed, it is a real waste to have one per frame!
10709
10710 2000-02-23  Andy Piper  <andy@xemacs.org>
10711
10712         * glyphs.c: add dynamic width and height elements.
10713         (image_instance_equal): ditto.
10714
10715         * glyphs-widget.c (widget_query_geometry): calculate width and
10716         height dynamically if required.
10717         (initialize_widget_image_instance): initialize dynamic dimensions.
10718         (widget_instantiate): pick-up dynamic dimensions.
10719
10720         * glyphs.h (struct Lisp_Image_Instance): add width and height for
10721         dynamic determination. Add appropriate macros.
10722
10723         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
10724         dimensions safe.
10725         (WINDOW_GUTTER_SIZE): ditto.
10726         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
10727
10728         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
10729         inline.
10730         (get_frame_dc): ditto.
10731
10732         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
10733         here.
10734
10735 2000-02-23  Martin Buchholz <martin@xemacs.org>
10736
10737         * XEmacs 21.2.31 is released.
10738
10739 2000-02-22  Ben Wing <ben@xemacs.org>
10740
10741         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
10742
10743 2000-02-22  Andy Piper  <andy@xemacs.org>
10744
10745         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
10746
10747 2000-02-21  Mike Sperber <mike@xemacs.org>
10748
10749         * .dbxrc:
10750         * .gdbinit:
10751         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
10752         variables.
10753
10754 2000-02-21  Mike Sperber <mike@xemacs.org>
10755
10756         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
10757
10758 2000-02-21  Martin Buchholz <martin@xemacs.org>
10759
10760         * XEmacs 21.2.30 is released.
10761
10762 2000-02-20  Martin Buchholz  <martin@xemacs.org>
10763
10764         Performance hacking.
10765         * *.c (syms_of_*):
10766         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
10767         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
10768         * emacs.c (main_1):
10769         * lisp.h (DEFUN):
10770         * console.c (DEFVAR_CONSOLE_LOCAL_1):
10771         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
10772         * symeval.h (DEFVAR_SYMVAL_FWD):
10773         * symbols.c (guts_of_unbound_marker):
10774         Make all c_readonly objects also lisp_readonly and marked for life.
10775         * lrecord.h (struct lrecord_implementation):
10776         Document flags better.
10777         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
10778         * lrecord.h (DECLARE_LRECORD):
10779         * lrecord.h (XSETRECORD):
10780         * lrecord.h (RECORDP):
10781         * lrecord.h (RECORD_TYPEP):
10782         * lrecord.h (RECORD_MARKER): New.
10783         * lrecord.h (error_check_*):
10784         * lrecord.h (CONCHECK_NONRECORD):
10785         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
10786         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
10787         * lrecord.h (set_lheader_implementation):
10788         * lrecord.h (enum lrecord_type): New.
10789         * symeval.h (SYMBOL_VALUE_MAGIC_P):
10790         * alloc.c (disksave_object_finalization_1):
10791         * alloc.c (mark_object):
10792         * alloc.c (lrecord_type_index):
10793         * alloc.c (tick_lcrecord_stats):
10794         * alloc.c (Fgarbage_collect):
10795         * alloc.c (init_alloc_once_early):
10796         * alloc.c (pdump_load):
10797         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
10798         * alloc.c (lrecord_type_index): Delete.
10799         Make lisp object type indexes be constant.
10800           Makes (byte-compile) 5% faster.
10801         Put all marker functions into their own array.
10802           Makes (garbage-collect) 5% faster.
10803         Optimize SYMBOL_VALUE_MAGIC_P.
10804           Makes (byte-compile) 2-3% faster.
10805         * config.h.in (gc_checking_assert): New.
10806         * alloc.c: Use gc_checking_assert().
10807         * .dbxrc: Make compatible with new object type implementation.
10808         * .gdbinit: Make compatible with new object type implementation.
10809         * alloc.c: Delete all symbols defined only for debugging, such as
10810         Lisp_Type_Vector and lrecord_charset.
10811
10812 2000-02-21  Andy Piper  <andy@xemacs.org>
10813
10814         * gui-msw.c (Fmswindows_shell_execute): fix file location
10815         problems.
10816
10817         * buffer.c (Fkill_buffer): remove buffer from alist buffer
10818         unshowing so that set_window_buffer doesn't undo
10819         kill_buffer_hook's hard work.
10820
10821         * glyphs-widget.c (tab_control_query_geometry): don't count the
10822         first item when calculating geometry.
10823
10824         * glyphs.c (map_subwindow): remove redundant code.
10825         (update_frame_subwindows): be more circumspect about when to
10826         update subwindows.
10827
10828         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
10829         when items haven't changed. Update faces if faces have changed as
10830         well as just the widget face.
10831         (x_tab_control_update): Update faces if faces have changed as well
10832         as just the widget face.
10833
10834 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10835
10836         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
10837         registration.
10838         (build_syscolor_string): Use mswindows_color_to_string to try to
10839         get a named color.
10840         (mswindows_device_system_metrics): Reverse the foreground and
10841         background colors so that they match the documentation.
10842
10843         * objects-msw.c: (mswindows_X_color_map): tweak some values so
10844         they match the default Windows palette.
10845         (mswindows_color_to_string): New function.
10846
10847 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10848
10849         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
10850
10851 2000-02-18  Olivier Galibert  <galibert@pobox.com>
10852
10853         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
10854         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
10855
10856         * symbols.c (init_symbols_once_early): Removed obsolete
10857         DATA_SEG_BITS related kludge.
10858         (defvar_magic): Ditto.
10859
10860         * malloc.c: Removed obsolete DATA_SEG_BITS
10861         * ralloc.c: Ditto.
10862         * mem-limits.h: Ditto.
10863
10864         * Makefile.in.in: Removed obsolete HAVE_SHM
10865         * emacs.c: Ditto.
10866
10867 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10868
10869         *  device-msw.c (mswindows_delete_device): Free DDE string
10870         handles.
10871
10872 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10873
10874         * keymap.c (get_keyelt):
10875         * unexnt.c (unexec):
10876         * vm-limit.c (memory_warnings):
10877         * ntheap.c (recreate_heap):
10878         * ntheap.h (UNINIT_PTR):
10879         * select-msw.c (Fmswindows_get_clipboard):
10880         (Fmswindows_set_clipboard):
10881         * objects-msw.h (MSWINDOWS_BAD_HFONT):
10882         * objects-msw.c:
10883         * menubar-msw.c (displayable_menu_item):
10884         * glyphs-msw.c:
10885         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
10886         * sysdep.c (sys_subshell):
10887         * process-nt.c (nt_create_process):
10888         * nt.c (normalize_filename):
10889         (dostounix_filename):
10890         (unixtodos_filename):
10891         * ntproc.c (win32_executable_type):
10892         * ntplay.c (play_sound_data_1):
10893         (play_sound_file):
10894         * editfns.c (get_home_directory):
10895         * event-msw.c (struct winsock_stream):
10896         (mswindows_dde_callback):
10897         * device-msw.c (msprinter_init_device):
10898         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
10899
10900         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
10901         mswindows_clear_toolbar were swapped!
10902
10903         * objects-msw.c:(colormap_t):
10904         (fontmap_t):
10905         * emacs.c (struct standard_args): Fixed const jumble.
10906
10907         * glyphs-widget.c (update_widget): Fixed comparison notation.
10908
10909         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
10910
10911         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
10912         __declspec(noreturn) syntax.
10913
10914 2000-02-19  Martin Buchholz  <martin@xemacs.org>
10915
10916         * eldap.c (Fldap_open):
10917         (Fldap_search_basic):
10918         (Fldap_add):
10919         (Fldap_modify):
10920         Use new coding system conversion macros.
10921
10922 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
10923
10924         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
10925
10926 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
10927
10928         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
10929         (Fldap_add, Fldap_modify, Fldap_delete): New functions
10930
10931         * eldap.c (Qadd, Qreplace): New constant symbols
10932         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
10933         interruptions by XEmacs signals
10934         Remove unnecessary calls to slow_down_interrupts and
10935         speed_up_interrupts
10936         (Fldap_search_basic): Renamed from Fldap_search_internal
10937         Added new optional parameter VERBOSE that triggers the
10938         display of progress messages
10939         Remove unnecessary calls to slow_down_interrupts and
10940         speed_up_interrupts
10941         LDAP result code analysis rewritten
10942         (Fldap_add, Fldap_modify, Fldap_delete): New functions
10943         (syms_of_eldap): Define the new symbols and functions
10944
10945
10946 2000-02-17  Martin Buchholz  <martin@xemacs.org>
10947
10948         * realpath.c: Determine PATH_MAX maximally portably.
10949
10950         * insdel.c (bytecount_to_charcount): Optimize.
10951         The function used to be optimized for entirely ASCII sequences.
10952         Now it is optimized for successive characters from the same
10953         charset.  This also wins big for _mostly_ ASCII sequences.
10954
10955         * fileio.c (Ffile_truename): convert return from realpath() using
10956         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
10957         - Rewrite GCPROing slightly.
10958
10959         * sysdep.c (sys_open): Do filename conversion, like all other
10960         sys_* functions.  Fixes bug:
10961         (let ((file-name-coding-system 'iso-8859-2))
10962            (write-region x y latin2-name))
10963         ==> writes filename using internal encoding.
10964
10965 2000-02-18  Martin Buchholz  <martin@xemacs.org>
10966
10967         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
10968         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
10969         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
10970         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
10971         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
10972         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
10973         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
10974         (CONST_IF_NOT_DEBUG): Delete.
10975         * alloc.c (this_one_is_unmarkable): Delete.
10976         (mark_object): Don't check for this_one_is_unmarkable. Use the
10977         c_readonly flag instead.
10978         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
10979
10980 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10981
10982         * event-msw.c (mswindows_drain_windows_queue):
10983         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
10984         away redundant repaint events.
10985
10986 2000-02-17  Andy Piper  <andy@xemacs.org>
10987
10988         * redisplay.h: declare mark_redisplay_structs.
10989
10990         * redisplay.c (redisplay_window):
10991         (redisplay_frame): don't check subwindows_state_changed.
10992         (mark_redisplay): mark gutters here.
10993
10994         * glyphs.c: (instantiate_image_instantiator): always layout if we
10995         haven't done so already.
10996         (allocate_image_instance): don't mark as dirty.
10997         (update_subwindow): bind inhibit_quit.
10998
10999         * gutter.c (mark_gutters): new function.
11000
11001         * glyphs-x.c (x_update_widget): Always resize to get round a
11002         widget bug.
11003
11004         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
11005         breaking absolutely everything.
11006
11007         * gutter.h: declare mark_gutters.
11008
11009 2000-02-16  Martin Buchholz <martin@xemacs.org>
11010
11011         * XEmacs 21.2.29 is released.
11012
11013 2000-02-15  Olivier Galibert  <galibert@pobox.com>
11014
11015         * fns.c (size_bit_vector): Fix computation of the size.
11016
11017 2000-02-15  Martin Buchholz  <martin@xemacs.org>
11018
11019         * *.[ch]: Change CONST to const globally.
11020         find -name '*.[ch]' | \
11021         xargs global-replace \
11022         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
11023         - Remove vestigial references to CONST_IS_LOSING
11024
11025 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11026
11027         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
11028         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
11029         events instead of dispatching them directly.
11030         (mswindows_handle_paint): New function to do repainting.
11031         (mswindows_wnd_proc):
11032         (emacs_mswindows_handle_magic_event): Call above function.
11033
11034 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11035
11036         * objects-msw.c (mswindows_create_font_variant): Return the new
11037         font handle.
11038         (initialize_font_instance): Get font metrics from the underlined
11039         variant of the font to cope with the case where the underlined
11040         font has a bigger descent.
11041
11042 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
11043
11044         * gui.c (gui_item_accelerator): Return the first underlined
11045         character in item name.
11046
11047 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11048
11049         * lisp.h: Added Qprinter.
11050
11051         * general.c (syms_of_general): Initialized it.
11052
11053         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
11054         (get_frame_dc):
11055         (get_frame_compdc): Made inline.
11056
11057         * console.h (struct console_methods): Added eject_page method.
11058
11059         * frame.h: Added FRAME_DISPLAY_P and friends.
11060         Aligned backslahes in many macros in more readable fashion.
11061         Added page_number to struct frame, and an accessor macro
11062         for it.
11063
11064         * defice.h: Added DEVICE_DISPLAY_P and friends.
11065
11066         * device.c (Fdevice_printer_p): Used these.
11067
11068         * frame.c (allocate_frame_core): Initialize page number.
11069         (Fprint_job_page_number):
11070         (Fprint_job_eject_page): Implemented.
11071
11072         * frame-msw.c (msprinter_eject_page): Added method.
11073         (msprinter_start_page): Added.
11074
11075         * window.c (Fwindow_truncated_p): Fixed docstring.
11076         (Fwindow_last_line_visible_height): Implemented.
11077
11078 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
11079
11080         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
11081
11082 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11083
11084         * syntax.c (scan_words): Always advance at least one character.
11085
11086 2000-02-13  Andy Piper  <andy@xemacs.org>
11087
11088         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
11089         to make sure the glyph is in the cachels.
11090
11091         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
11092         global image instance flag.
11093         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
11094         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
11095
11096         * glyphs.c (allocate_image_instance): set dirty bits correctly.
11097         (Fset_image_instance_property): mark layout as changed.
11098         (invalidate_glyph_geometry_maybe): mark layout as changed.
11099         (glyph_width): use new NEEDS_LAYOUT macro.
11100         (glyph_ascent): ditto.
11101         (glyph_descent): ditto.
11102         (glyph_height): ditto.
11103         (image_instance_layout): mark layout as clean after laying out.
11104         (update_subwindow): don't mark layout as clean here.
11105
11106         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
11107         should no longer be needed.
11108
11109         * glyphs-x.c (x_update_widget): sanitize asserts.
11110         (x_finalize_image_instance): sanitize assignment to widgets.
11111
11112         * glyphs-widget.c (widget_instantiate): don't need to clear the
11113         layout flag here.
11114
11115 2000-02-13  Martin Buchholz  <martin@xemacs.org>
11116
11117         * sysdep.c (getcwd): Use standard prototype.
11118         * sysdep.h (getcwd): Use standard prototype.
11119
11120         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
11121         (sequence, start, end).
11122         Remove redundant type checking.
11123         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
11124         view of `caller-protects') to avoid a crash where the real fix was
11125         found elsewhere.
11126
11127 2000-02-12  Martin Buchholz  <martin@xemacs.org>
11128
11129         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
11130
11131         * s/sol2.h: Remove feature macro initialization.
11132
11133         * alloc.c (alloc_lcrecord): Add more type checking assertions.
11134         (vector_hash): New.  Code from internal_hash.
11135         * lrecord.h:
11136         Fix up allocation subsystem comments.
11137
11138         * config.h.in: Add __EXTENSIONS__ for Solaris.
11139
11140         * systime.h (EMACS_GETTIMEOFDAY): New.
11141         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
11142         Remove Solaris-specific code.
11143         Use void* for the (ignored) second arg for gettimeofday().
11144
11145         * elhash.c (hash_table_hash): Implement it, finally.
11146         * elhash.c:  Use hashcode_t.
11147
11148         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
11149         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
11150
11151         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
11152         * fns.c (size_bit_vector):
11153         * alloc.c (size_vector):
11154         (make_vector_internal):
11155         (make_bit_vector_internal):
11156         (sweep_bit_vectors_1):
11157         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
11158
11159 2000-02-10  Martin Buchholz  <martin@xemacs.org>
11160
11161         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
11162         Include strings.h to avoid warnings for bzero and strcasecmp.
11163
11164 2000-02-10  Olivier Galibert  <galibert@pobox.com>
11165
11166         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
11167         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
11168
11169         * fns.c (size_bit_vector): New.  Declare bit vectors as a
11170         sequence.
11171
11172 2000-02-10  Olivier Galibert  <galibert@pobox.com>
11173
11174         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
11175         use a value field instead.
11176         (symbol_value_forward_forward): Use value field.
11177         (DEFVAR_SYMVAL_FWD): Use value field.
11178         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
11179         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
11180         (DEFVAR_CONST_INT): Ditto.
11181         (DEFVAR_BOOL): Ditto.
11182         (DEFVAR_CONST_BOOL): Ditto.
11183         (DEFVAR_INT_MAGIC): Ditto.
11184         (DEFVAR_BOOL_MAGIC): Ditto.
11185
11186         * symbols.c (guts_of_unbound_marker): Use value field.
11187         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
11188         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
11189
11190         * lisp.h: Declare dumpopaque and noninteractive1.
11191
11192         * alloc.c (dumpopaque): Added.
11193         (pdump_dump_opaquevec): Added.
11194         (pdump): Call pdump_dump_opaquevec to dump opaque data.
11195         (pdump_load): Reload opaque data.  Sync noninteractive1 with
11196         noninteractive.
11197
11198 2000-02-10  Andy Piper  <andy@xemacs.org>
11199
11200         * glyphs.c (image_instance_layout): if the size changes, mark it
11201         as such.
11202
11203         * redisplay-output.c (redisplay_output_layout): Update the
11204         subwindow here.
11205         (redisplay_output_subwindow): ditto.
11206
11207         * glyphs.c (update_subwindow): make sure we reset flags for
11208         layouts as well as everything else.
11209
11210         * glyphs-widget.c (layout_layout): don't need to set the instances
11211         dimensions here.
11212
11213 2000-02-09  Martin Buchholz  <martin@xemacs.org>
11214
11215         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
11216         not HAVE_DLOPEN, which is a lower-level thing.
11217
11218         * .cvsignore: Ignore gmon.out
11219
11220 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
11221
11222         * .cvsignore: Ignore portable dumper xemacs.dmp file
11223
11224 2000-02-09  Andy Piper  <andy@xemacs.org>
11225
11226         * redisplay-output.c (redisplay_output_layout): be more clever
11227         about when we output based on the changed flags.
11228
11229         * glyphs.h (struct image_instantiator_methods): add update_method.
11230         (struct Lisp_Image_Instance): add changed flags. Declare new
11231         macros for manipulating them.
11232
11233         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
11234         (image_instance_parent_glyph): find an image_instance's parent
11235         glyph or image_instance.
11236         (image_instance_layout): mark the size as changed.
11237         (set_image_instance_dirty_p): new function. mark an image
11238         instance, plus all of its parents, as dirty.
11239         (Fset_image_instance_property): use it.
11240         (Fglyph_animated_timeout_handler): use it.
11241         (update_subwindow): call update_widget and device methods for
11242         update_subwindow. Mark all changed flags as clean.
11243         (Fresize_subwindow): mark size as changed.
11244
11245         * glyphs-x.c (x_finalize_image_instance): try and detect gc
11246         failures.
11247         (x_update_subwindow): only resize subwindows here.
11248         (x_update_widget): new function. Update all changed properties of
11249         a widget.
11250         (x_resize_subwindow): deleted.
11251         (x_widget_set_property): deleted.
11252         (x_progress_gauge_set_property): deleted.
11253         (x_progress_gauge_update): new function. Implement recorded
11254         changes.
11255         (x_tab_control_update): ditto.
11256         (x_tab_control_set_property): deleted.
11257         (console_type_create_glyphs_x): declare new functions.
11258         (image_instantiator_format_create_glyphs_x): ditto.
11259
11260         * glyphs-widget.c (widget_set_property): mark text changed.
11261         (update_widget): new function. Update properties of a widget.
11262         (widget_instantiate): for layouts make sure we set their
11263         children's parent correctly.
11264         (tab_control_set_property): new function. Record changes that will
11265         take place under redisplay's control.
11266         (progress_gauge_set_property): ditto.
11267         (image_instantiator_progress_guage): declare new functions.
11268         (image_instantiator_tab_control): ditto.
11269
11270         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
11271         now.
11272         (mswindows_update_widget): new function. Update all properties on
11273         a widget that have changed.
11274         (mswindows_button_update): new function. Update a button's set
11275         state.
11276         (mswindows_tab_control_update): new function. Update the items in
11277         a tab.
11278         (mswindows_tab_control_set_property): deleted.
11279         (mswindows_progress_gauge_update): new function. Update the
11280         progress gauge's progress.
11281         (mswindows_widget_set_property): deleted. This is all done
11282         asynchronously now.
11283         (mswindows_progress_gauge_set_property): ditto.
11284         (console_type_create_glyphs_mswindows): declare new methods.
11285         (image_instantiator_format_create_glyphs_mswindows): ditto.
11286
11287         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
11288         (msprinter_set_frame_properties): ditto.
11289
11290         * console.h (struct console_methods): Add update_widget_method.
11291
11292 2000-02-09  Andy Piper  <andy@xemacs.org>
11293
11294         * gui-msw.c (Fmswindows_shell_execute): Make
11295         mswindows-shell-execute industrial strength.
11296
11297 2000-02-08  Martin Buchholz  <martin@xemacs.org>
11298
11299         * lrecord.h: Make macro argument `props' match member function `plist'.
11300         * fns.c (Fget):
11301         * fns.c (Fput):
11302         * fns.c (Fremprop):
11303         * fns.c (Fobject_plist):
11304         * alloc.c:
11305         * symbols.c:
11306         Object property list frobbing cleanup.
11307         - Allow any lisp object (compared with `eq'), not just symbols, as
11308           keys in object plists.
11309         - Move symbol plist frobbing into symbols.c, where it belongs.
11310         - Move string plist frobbing into alloc.c, where it belongs.
11311         - Everything's an lrecord now, so no need to test for symbolp, etc.
11312         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
11313
11314         * extents.c: Reorder code to remove declarations.
11315
11316         * frame.h (store_in_alist): Remove useless declaration.
11317
11318 2000-02-07  Martin Buchholz  <martin@xemacs.org>
11319
11320         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
11321         * config.h.in: Add HAVE_XCONVERTCASE.
11322
11323 2000-02-07  Andy Piper  <andy@xemacs.org>
11324
11325         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
11326         it breaks many things.
11327
11328 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
11329
11330         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
11331         actually can start a common comment type.
11332         * src/syntax.h (SYNTAX_END_P): ditto for end.
11333
11334 2000-02-07  Martin Buchholz <martin@xemacs.org>
11335
11336         * XEmacs 21.2.28 is released.
11337
11338 2000-02-06  Martin Buchholz  <martin@xemacs.org>
11339
11340         * event-Xt.c (x_keysym_to_character): New.
11341         (maybe_define_x_key_as_self_inserting_character): New.
11342         (x_has_keysym): New.
11343         Auto-define all keys on the keyboard as self-insert-key.
11344
11345 2000-02-02  Martin Buchholz  <martin@xemacs.org>
11346
11347         * menubar.c (vars_of_menubar): A small code simplification.
11348
11349         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
11350
11351         * ExternalShell.c:
11352         * ExternalClient.c:
11353         * EmacsShell-sub.c:
11354         * EmacsManager.c:
11355         * EmacsFrame.c:
11356         Use consistent style for specifying X resources.
11357
11358         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
11359         This makes (dontusethis-set-symbol-value-handler) actually usable.
11360
11361         * lrecord.h (lrecord_decription_type):
11362         * alloc.c (pdump_register_sub):
11363         (pdump_dump_data):
11364         (pdump_reloc_one):
11365         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
11366         Comply with XEmacs coding style.
11367         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
11368         args, and XD_LISP_OBJECT_ARRAY with 3 args.
11369
11370         * keymap.c (Faccessible_keymaps):
11371         Make (accessible-keymaps map "\C-h") do the Right Thing.
11372         Make (accessible-keymaps map []) do the Right Thing.
11373         Make (accessible-keymaps map "") do the Right Thing.
11374         (check_keymap_definition_loop): New function.
11375         (keymap_store_internal): Keep luser from shooting self in foot,
11376           via (define-key ctl-x-4-map "p" global-map).
11377         Remove fullness slot from struct Lisp_Keymap, since hash tables
11378         are now reliable.
11379         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
11380
11381 2000-01-30  Martin Buchholz  <martin@xemacs.org>
11382
11383         * redisplay.c (init_redisplay): Fix small memory leak.
11384         * elhash.h:
11385         * elhash.c (pdump_reorganize_hash_table):
11386         Rename from reorganize_hash_table. Change prototype.
11387         Reuse the original memory for hentries.  Save 100k.
11388         * alloc.c (PDUMP_READ): new macro.
11389         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
11390         * alloc.c: No need to #ifndef before #undef.
11391
11392         * print.c: Allow debug_print() to print readably by modifying
11393         debug_print_readably.  Use consistent variable names.
11394
11395         * .dbxrc: Try to get things to work even if stopped in a function
11396         without source available by explicitly specifying source files.
11397 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11398
11399         * unexnt.c (_start): Removed bogus code which caused loading heap
11400         from differrent executable file.
11401         Removed bogus assignment to _fmode, which caused inconsistencies.
11402
11403 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11404
11405         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
11406         Have spawnve encapsulation regard DONT_ENCAPSULATE.
11407         Do not preliminary `#define signal sigset'.
11408
11409         * systime.h: Do not prototype environ on windows nt and cygwin,
11410         this conflicts with system header.
11411
11412         * syssignal.h: Use correct define for WINDOWSNT
11413
11414         * sysdep.h: Do not prototype environ on windows nt, this conflicts
11415         with system header.
11416
11417         * sysdep.c (near start of file): Fixed commentary and rearranged
11418         ifdefs in readable order.
11419         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
11420         (start_of_text):
11421         (end_of_text):
11422         (end_of_data): Do not compile in if using PDUMP.
11423
11424         * symsinit.h: Prototyped vars_of_nt().
11425
11426         * ntproc.c (windows9x_p): Added, instead of os_subtype.
11427         (find_child_console): Use it.
11428         (sys_kill): Use it.
11429
11430         * ntheap.h: Do not extern os_subtype.
11431
11432         * ntheap.c (cache_system_info): Do not cache unneeded:
11433         nt_major_version, nt_minor_version and os_subtype.
11434         (recreate_heap): Do not compile in when PDUMPing.
11435
11436         * nt.c (geteuid and friends): Use the new varibale
11437         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
11438         (init_user_info): Removed the above mentioned hackery.
11439         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
11440         stat has been fixed in the C runtime.
11441         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
11442
11443         * file-coding.c (struct file_coding_dump): Do not define
11444         ucs_to_mule_table in the struct if not MULE.
11445         (struct struct lrecord_description fcd_description_1): Do not dump
11446         the above.
11447
11448         * emacs.c (main_1): Call vars_of_nt().
11449         (right before Fdump_emacs_data): Don't need lastfile if using both
11450         portabe dumper and system malloc.
11451
11452         * alloc.c (Fmemory_limit): Conditionalized out.
11453         (pdump): Use OPEN_BINARY for the portable dump file.
11454         (pdump_load): Ditto.
11455
11456 2000-02-02  Mike Alexander  <mta@arbortext.com>
11457
11458         * nt.c (convert_time): Set tm_isdst before calling mktime and
11459         avoid calling it at all if the compiler supports 64 bit integers.
11460         Also initialize utc_base_ft before using it.
11461
11462 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
11463
11464         * frame.c (change_frame_size_1): Take f->internal_border_width
11465         into consideration when calculating the width of the frame.
11466
11467 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11468
11469         * window.c (frame_min_height):
11470         (frame_size_valid_p):
11471         (frame_pixsize_valid_p): Added.
11472         (check_frame_size): Generalized.
11473
11474         * window.h: Prototyped the above.
11475
11476         * lisp.h:
11477         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
11478         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
11479         Deleted Vwin32_* and Vbinary_process_* unused variables.
11480
11481         * device-msw.c (msprinter_init_device): Do not get printer font
11482         list; Added DEVMODE functions.
11483
11484         * frame-msw.c: Added lots of printer code.
11485
11486         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
11487         general.c.
11488
11489         * console-msw.h: Added more msprinter device private slots.
11490
11491 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11492
11493         * event-msw.c (key_needs_default_processing_p): Added.
11494         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
11495
11496 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11497
11498         * glyphs.c (image_instance_layout): Mark image instance as clean
11499         after layout.
11500         (glyph_dirty_p): Removed redundant function.
11501         (invalidate_glyph_geometry_maybe): Added.
11502         (update_glyph_cachel_data): Call it.
11503
11504         * glyphs.h: Prototyped it.
11505
11506         * redisplay.c (add_glyph_rune): Call it.
11507         (redisplay_window): Reset glyphs cachels when frame faces have
11508         changed, thus forcing recomputation of built-in border glyphs.
11509
11510 2000-01-30  Martin Buchholz  <martin@xemacs.org>
11511
11512         * Makefile.in.in: Make portable dumper and purify play well together.
11513         Add imperfect, but better than nothing, support for pdump.
11514         Remove xemacs.dmp when temacs is re-generated.
11515         Don't ignore errors when dumping xemacs.
11516
11517         * symbols.c (maybe_call_magic_handler): Remove one magic number.
11518
11519 2000-01-28  Andy Piper  <andy@xemacs.org>
11520
11521         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
11522         (setup_normal_frame): ditto.
11523         (setup_frame_without_minibuffer): ditto.
11524         (setup_minibuffer_frame): ditto.
11525         (delete_frame_internal): ditto.
11526         (Fmake_frame_invisible): ditto.
11527         (Ficonify_frame): ditto.
11528
11529         * window.h: change Fset_window_buffer signature.
11530
11531         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
11532         (Fset_window_buffer): allow recording of buffer if the window is
11533         the selected window.
11534         (window_loop): Use new Fset_window signature.
11535
11536 2000-01-23  Daniel Pittman  <daniel@danann.net>
11537
11538         * config.h.in: Added template for `HAVE_ATHENA_3D'
11539
11540 2000-01-29  Andy Piper  <andy@xemacs.org>
11541
11542         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
11543
11544         * gutter.c (output_gutter): Don't output if the window isn't live.
11545
11546 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11547
11548         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
11549         of 01/12/00: Moved SetFocus back here where it belongs.
11550
11551 2000-01-23  Andy Piper  <andy@xemacs.org>
11552
11553         * s/cygwin32.h: declare printer things.
11554
11555 2000-01-26  Andy Piper  <andy@xemacs.org>
11556
11557         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
11558         Alexander.
11559
11560 2000-01-24  Andy Piper  <andy@xemacs.org>
11561
11562         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
11563         (mswindows_button_instantiate): Make sure glyph is a pixmap.
11564
11565         * glyphs-widget.c (widget_instantiate): Avoid shadows.
11566
11567         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
11568
11569         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
11570
11571         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
11572         (mswindows_output_display_block): Avoid local shadows.
11573
11574         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
11575         (mswindows_enqueue_mouse_button_event): ditto.
11576         (mswindows_handle_gui_wm_command): remove declaration.
11577
11578         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
11579         warnings.
11580
11581         * console-msw.h: Avoid shadows.
11582         (mswindows_get_toolbar_button_text):
11583         (emacs_mswindows_create_stream_pair):
11584         (emacs_mswindows_delete_stream_pair):
11585         (mswindows_handle_toolbar_wm_command): declare.
11586
11587         * device-msw.c (build_syscolor_string): Avoid shadows.
11588
11589 2000-01-23  Andy Piper  <andy@xemacs.org>
11590
11591         * glyphs-widget.c (widget_instantiate): reverse the items for
11592         layouts so that children are in the expected order.
11593
11594 2000-01-28  Martin Buchholz  <martin@xemacs.org>
11595
11596         * ralloc.c: safe_bcopy ==> memmove
11597         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
11598         * s/msdos.h: Remove BCOPY macros.
11599         * insdel.c (gap_right): Remove BCOPY conditional code.
11600         * insdel.c (gap_left): Remove BCOPY conditional code.
11601         XEmacs demands a working ANSI C compiler - hence memmove.
11602
11603         * regex.c (regex_compile): Remove accidental use of trigraphs.
11604
11605 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11606
11607         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
11608         event timestamp.
11609
11610 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11611
11612         * event-msw.c (mswindows_drain_windows_queue): Added the
11613         parameter.
11614         (mswindows_need_event): Commented the call to
11615         mswindows_drain_windows_queue().
11616         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
11617         only.
11618
11619         * console-msw.h: Moved a few function prototypes here from
11620         event-msw.c.
11621
11622         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
11623         parameter from unsigned short to unsigned long.
11624         (Fmswindows_shell_execute): Added return value.
11625
11626 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
11627
11628         * sysdep.c (init_system_name):
11629           process-unix.c (unix_canonicalized_host_name):
11630         Don't call freeaddrinfo() if getaddrinfo() fails.
11631
11632         * process-unix.c (unix_open_unix_network_stream):
11633         Moved the code to get a port # into address loop.
11634
11635 2000-01-27  Martin Buchholz  <martin@xemacs.org>
11636
11637         * buffer.c (reinit_vars_of_buffer):
11638         The right place to initialize conversion_in_dynarr and
11639         conversion_out_dynarr.
11640
11641         * alloc.c (pdump): Use the real open() till sys_open() is functional.
11642
11643         * process-unix.c (unix_canonicalize_host_name): Muleize.
11644         (unix_open_network_stream): Muleize.
11645
11646         * buffer.h: Fix up prototypes for ralloc.c functions.
11647
11648 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
11649         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
11650         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
11651                 instead of gethostbyname()
11652         * process-unix.c: In unix_canonicalize_host_name() and
11653                 unix_open_network_stream(), add code to use getaddrinfo()
11654                 instead of gethostbyname().
11655
11656 2000-01-27  Daniel Pittman <daniel@danann.net>
11657
11658         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
11659         libs when built with flat Athena.
11660
11661 2000-01-27  Martin Buchholz  <martin@xemacs.org>
11662
11663         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
11664         Use coding standards for function prototypes.
11665
11666 2000-01-25  Martin Buchholz  <martin@xemacs.org>
11667
11668         * dialog-msw.c (push_lisp_string_as_unicode):
11669         * doc.c (unparesseuxify_doc_string):
11670         * dired.c (Fuser_name_completion_1):
11671         * dired.c (Fuser_name_all_completions):
11672         * dired.c (free_user_cache):
11673         * dired.c (user_name_completion):
11674         * console-x.c (get_display_arg_connection):
11675         * minibuf.c (clear_echo_area_internal):
11676         * minibuf.c (echo_area_append):
11677         * eldap.c (Fldap_open):
11678         * eldap.c (Fldap_search_internal):
11679         * frame-x.c (x_set_frame_text_value):
11680         * frame-x.c (x_set_frame_properties):
11681         * frame-x.c (x_create_widgets):
11682         * redisplay-tty.c (term_get_fkeys_1):
11683         * objects-x.c (x_parse_nearest_color):
11684         * objects-x.c (x_valid_color_name_p):
11685         * objects-x.c (x_initialize_font_instance):
11686         * objects-x.c (x_list_fonts):
11687         * objects-x.c (x_find_charset_font):
11688         * tooltalk.c (Fadd_tooltalk_message_arg):
11689         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
11690         * tooltalk.c (Fadd_tooltalk_pattern_arg):
11691         * process-unix.c (unix_create_process):
11692         * ntproc.c (sys_spawnve):
11693         * sound.c (Fplay_sound_file):
11694         * sound.c (Fplay_sound):
11695         * buffer.c (init_initial_directory):
11696         * buffer.c (init_buffer):
11697         * editfns.c (init_editfns):
11698         * editfns.c (Ftemp_directory):
11699         * editfns.c (Fuser_full_name):
11700         * editfns.c (uncache_home_directory):
11701         * editfns.c (get_home_directory):
11702         * editfns.c (Fuser_home_directory):
11703         * editfns.c (Fformat_time_string):
11704         * editfns.c (Fcurrent_time_string):
11705         * gui-x.c (button_item_to_widget_value):
11706         * database.c (Fopen_database):
11707         * event-Xt.c (x_to_emacs_keysym):
11708         * event-Xt.c (x_event_to_emacs_event):
11709         * event-Xt.c (describe_event_window):
11710         * event-msw.c (mswindows_wnd_proc):
11711         * glyphs-eimage.c (jpeg_instantiate):
11712         * glyphs-eimage.c (gif_instantiate):
11713         * glyphs-eimage.c (png_instantiate):
11714         * glyphs-eimage.c (tiff_instantiate):
11715         * glyphs-x.c (xbm_instantiate_1):
11716         * glyphs-x.c (x_xbm_instantiate):
11717         * glyphs-x.c (x_xface_instantiate):
11718         * glyphs-x.c (autodetect_instantiate):
11719         * glyphs-x.c (cursor_font_instantiate):
11720         * glyphs-x.c (x_widget_instantiate):
11721         * glyphs-x.c (x_widget_set_property):
11722         * glyphs-x.c (x_widget_property):
11723         * glyphs-x.c (BUILD_GLYPH_INST):
11724         * print.c (write_string_to_stdio_stream):
11725         * print.c (output_string):
11726         * print.c (Falternate_debugging_output):
11727         * print.c (Fexternal_debugging_output):
11728         * glyphs-msw.c (extract_xpm_color_names):
11729         * glyphs-msw.c (mswindows_xpm_instantiate):
11730         * glyphs-msw.c (bmp_instantiate):
11731         * glyphs-msw.c (resource_name_to_resource):
11732         * glyphs-msw.c (mswindows_resource_instantiate):
11733         * glyphs-msw.c (xbm_instantiate_1):
11734         * glyphs-msw.c (mswindows_xbm_instantiate):
11735         * glyphs-msw.c (mswindows_xface_instantiate):
11736         * glyphs-msw.c (mswindows_widget_instantiate):
11737         * glyphs-msw.c (add_tree_item):
11738         * glyphs-msw.c (add_tab_item):
11739         * glyphs-msw.c (mswindows_combo_box_instantiate):
11740         * glyphs-msw.c (mswindows_widget_property):
11741         * glyphs-msw.c (mswindows_combo_box_property):
11742         * glyphs-msw.c (mswindows_widget_set_property):
11743         * console.c (stuff_buffered_input):
11744         * objects-msw.c (mswindows_initialize_color_instance):
11745         * objects-msw.c (mswindows_valid_color_name_p):
11746         * objects-msw.c (mswindows_list_fonts):
11747         * objects-msw.c (mswindows_font_instance_truename):
11748         * bytecode.c (optimize_compiled_function):
11749         * select-x.c (symbol_to_x_atom):
11750         * select-x.c (x_atom_to_symbol):
11751         * select-x.c (hack_motif_clipboard_selection):
11752         * select-x.c (selection_data_to_lisp_data):
11753         * select-x.c (lisp_data_to_selection_data):
11754         * select-x.c (Fx_get_cutbuffer_internal):
11755         * select-x.c (Fx_store_cutbuffer_internal):
11756         * buffer.h (TO_EXTERNAL_FORMAT): New function.
11757         * buffer.h (TO_INTERNAL_FORMAT): New function.
11758         * emacs.c (make_arg_list_1):
11759         * emacs.c (make_argc_argv):
11760         * emacs.c (main_1):
11761         * emacs.c (Fdump_emacs):
11762         * emacs.c (split_string_by_emchar_1):
11763         * file-coding.h:
11764         * lisp.h:
11765         * lstream.h:
11766         * symsinit.h:
11767         * device-x.c (x_init_device):
11768         * device-x.c (Fx_valid_keysym_name_p):
11769         * device-x.c (Fx_get_font_path):
11770         * device-x.c (Fx_set_font_path):
11771         * glyphs.c (bitmap_to_lisp_data):
11772         * glyphs.c (pixmap_to_lisp_data):
11773         * alloc.c (make_ext_string): Use coding system arguments.  Update
11774         all callers.
11775         * alloc.c (build_string):
11776         * callproc.c (child_setup):
11777         * callproc.c (init_callproc):
11778         * fileio.c (lisp_strerror):
11779         * fileio.c (directory_file_name):
11780         * fileio.c (Fexpand_file_name):
11781         * fileio.c (Ffile_truename):
11782         * fileio.c (Fsysnetunam):
11783         * fileio.c (Fdo_auto_save):
11784         * sysdep.c (sys_readdir):
11785         * tests.c: New file.  Allow adding C tests.
11786         Replace GET_* macros with a more comprehensible and flexible
11787         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
11788         Modify all calls.
11789         Any coding system can be used to do format conversion.
11790         Eliminate enum external_data_format.
11791         Eliminate convert_to_external_format.
11792         Eliminate convert_to_internal_format.
11793         Make sure file-name, keyboard, terminal, and ctext are always
11794         defined as coding systems or aliases.  Make
11795         file-name-coding-system, terminal-coding-system, and
11796         keyboard-coding-system magical variables that are equivalent to
11797         defining the corresponding coding system aliases.
11798
11799         * file-coding.c (Fcoding_system_canonical_name_p): New function.
11800         * file-coding.c (Fcoding_system_alias_p): New function.
11801         * file-coding.c (Fcoding_system_aliasee): New function.
11802         * file-coding.c (append_suffix_to_symbol): New function.
11803         * file-coding.c (dangling_coding_system_alias_p): New function.
11804         * file-coding.c (Ffind_coding_system):
11805         * file-coding.c (Fcopy_coding_system):
11806         * file-coding.c (encode_coding_no_conversion):
11807         * file-coding.c (syms_of_file_coding):
11808         * file-coding.c (vars_of_file_coding):
11809         Rewrite coding system alias code.
11810         Allow nested aliases, like symbolic links.
11811         Allow redefinition of coding system aliases.
11812         Prevent existence of dangling coding system aliases.
11813
11814         * dired.c (Fuser_name_completion_1):
11815         * dired.c (Fuser_name_all_completions):
11816         A crash would happen if user did QUIT in the middle of building
11817         user_name_cache.  Remove redundant code in mainline and unwind_protect.
11818
11819         * lisp.h:
11820         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
11821
11822         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
11823         an unsigned char *.  Update all callers.
11824
11825 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11826
11827         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
11828
11829 2000-01-25  Martin Buchholz  <martin@xemacs.org>
11830
11831         * elhash.c (hentry_description): Use more portable definition.
11832         (resize_hash_table): Initialize new hentries using
11833         xnew_array_and_zero, thereby simplifying the code.
11834
11835         * mule-charset.c (make_charset): Make sure entire object is
11836         initialized, to avoid Purify warnings.
11837
11838         * alloc.c (resize_string): Fix unlikely crash with big strings.
11839
11840 2000-01-24  Martin Buchholz  <martin@xemacs.org>
11841
11842         * realpath.c (xrealpath):
11843         Don't call getwd().
11844
11845 2000-01-25  Martin Buchholz  <martin@xemacs.org>
11846
11847         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
11848
11849 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
11850
11851         * unexelfsgi.c (unexec): Change the way we decide which segment
11852         should be extended.
11853
11854         Assumption that .bss section should be outside the PT_LOADable
11855         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
11856         it's present) is inside the 'data' segment. This would fail the
11857         test which was used to find a segment to grow and cover new
11858         heap. Instead of this assumption, I created another one - on IRIX
11859         the segment to grow should start below .bss and it's address
11860         should extent above the end of .bss. Once this segment is
11861         identified, it's grown to accommodate the new heap and new
11862         zero-length .bss section is added at the end of .data2.
11863
11864 2000-01-25  Martin Buchholz  <martin@xemacs.org>
11865
11866         * eval.c (Feval): Wrong number of arguments should use original
11867         function, not the indirect_function version of it.
11868
11869 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
11870
11871         * glyphs-x.c (x_button_instantiate): Don't add image if
11872         it is not a pixmap.
11873         (x_locate_pixmap_file): Call Fexpand_file_name when file name
11874         is relative.
11875
11876 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
11877
11878         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
11879         declaration.
11880         (DEFVAR_INT_MAGIC): Ditto.
11881         (DEFVAR_BOOL_MAGIC): Ditto.
11882         * glyphs.h: Reindent backslash.
11883
11884 2000-01-24  Martin Buchholz  <martin@xemacs.org>
11885
11886         * glyphs-widget.c (layout_query_geometry):
11887         (layout_layout): Use correct types for gheight, gwidth.
11888
11889 2000-01-24  Martin Buchholz  <martin@xemacs.org>
11890
11891         * EmacsManager.c (QueryGeometry): Purified.
11892
11893 2000-01-23  Martin Buchholz  <martin@xemacs.org>
11894
11895         * alloc.c (make_float): Make sure entire object is initialized, to
11896         avoid Purify warnings.
11897         (pdump_register_sub): Remove useless assignment.
11898         (pdump): Use xmalloc, not malloc.
11899         (pdump_load): Use xmalloc, not malloc.
11900
11901 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11902
11903         * callproc.c:
11904         * dired-msw.c:
11905         * fileio.c:
11906         * process-nt.c:
11907         * redisplay-msw.c:
11908         * sysdep.c: Removed redundant #include <windows.h>
11909
11910 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11911
11912         * frame.c (delete_frame_internal): Do not delete device when its
11913         implementation so declares.
11914         (delete_frame_internal): Set device selected frame to nil when
11915         last frame goes away.
11916
11917         * device-msw.c (msprinter_device_system_metrics): Implemented.
11918         (mswindows_device_system_metrics): Added 'device-dpi property.
11919
11920         * device.c: (Fdevice_printer_p): Added.
11921         Added 'offset-workspace device metric.
11922
11923         * console.h (device_metrics): Declared DM_offset_workspace.
11924
11925 2000-01-23  Martin Buchholz  <martin@xemacs.org>
11926
11927         * fileio.c (Ffile_truename): Remove pointless and confusing
11928         initialization of elen.
11929
11930         * glyphs-widget.c: Compiler warning fixes.
11931
11932 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
11933
11934         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
11935         instead of a Lisp_Object as argument to make it consistent with
11936         the other LIVE_P macros.
11937         (CHECK_LIVE_PROCESS): New macro.
11938
11939         * process.c: Declare Qprocess_live_p.
11940         (Fprocess_live_p): New function.
11941         (create_process): Use PROCESS_LIVE_P.
11942         (read_process_output): Ditto.
11943         (set_process_filter): Ditto.
11944         (Fdelete_process): Ditto.
11945         (kill_buffer_processes): Ditto
11946         (process_send_signal): Use CHECK_LIVE_PROCESS.
11947         (Fprocess_input_coding_system): Check whether process is still
11948         alive (fix PR#1061).
11949         (Fprocess_output_coding_system): Ditto.
11950         (Fprocess_coding_system): Ditto.
11951         (Fset_process_input_coding_system): Ditto.
11952         (Fset_process_output_coding_system): Ditto.
11953
11954 2000-01-23  Andy Piper  <andy@xemacs.org>
11955
11956         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
11957         layout and widget.
11958
11959         * glyphs.c (mark_image_instance): take into account changed
11960         image_instance format.
11961         (image_instance_equal): ditto.
11962         (image_instance_hash): ditto.
11963
11964         * glyphs-widget.c (widget_instantiate): Incorporate layout
11965         instantiation here. Delay layout of the layout until later.
11966         (layout_instantiate): deleted.
11967         (layout_query_geometry): new function. get the geometry of a
11968         layout.
11969         (layout_layout): layout a layout dynamically.
11970         (image_instantiator_widget): New function - splitting up
11971         image_instantiator_format_create_glyphs_widget for netwinder
11972         compilation.
11973         (image_instantiator_buttons):
11974         (image_instantiator_edit_fields):
11975         (image_instantiator_combo_box):
11976         (image_instantiator_scrollbar):
11977         (image_instantiator_progress_guage):
11978         (image_instantiator_tree_view):
11979         (image_instantiator_tab_control):
11980         (image_instantiator_labels):
11981         (image_instantiator_layout): ditto.
11982         (image_instantiator_format_create_glyphs_widget): Call preceding
11983         functions.
11984
11985 2000-01-22  Martin Buchholz  <martin@xemacs.org>
11986
11987         * process.c (Fset_process_coding_system):
11988         * device-x.c (Fx_keysym_hash_table):
11989         Docstring fixes.
11990
11991         * lstream.c (Lstream_write): Return documented value, not 0.
11992
11993         * fileio.c (directory_file_name):
11994         (Fsubstitute_in_file_name):
11995         (Fsubstitute_insert_file_contents_internal):
11996         (Fwrite_region_internal):
11997         * emacs.c:
11998         * sysdep.c:
11999         * getloadavg.c:
12000         * systty.h:
12001         Remove vestigial APOLLO-conditional code.
12002
12003 2000-01-21  Martin Buchholz  <martin@xemacs.org>
12004
12005         * getpagesize.h: Add guard macros.
12006         * libsst.h: Add guard macros.
12007         * libst.h: Add guard macros.
12008         * line-number.h: Add guard macros.
12009         * ndir.h: Add guard macros.
12010         * sysfloat.h: Add guard macros.
12011         * sysfile.h: Add guard macros.
12012         * sysproc.h: Add guard macros.
12013         * syswait.h: Add guard macros.
12014         * xintrinsic.h: Add guard macros.
12015         * xintrinsicp.h: Add guard macros.
12016         * xmmanager.h: Add guard macros.
12017         * xmmanagerp.h: Add guard macros.
12018         * xmprimitive.h: Add guard macros.
12019         * xmu.h: Add guard macros.
12020         * gpmevent.h: Add copyright statement. Add guard macros.
12021         * miscplay.h: Add guard macros.
12022         * *.h: Use consistent C-standards-approved guard macro names.
12023
12024         * opaque.c (make_opaque): Switch parameter order.
12025         * opaque.h (make_opaque): Switch parameter order.
12026         Update all callers.
12027         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
12028
12029         * config.h.in (type_checking_assert): Added.
12030         (bufpos_checking_assert): Added.
12031
12032 2000-01-21  Martin Buchholz  <martin@xemacs.org>
12033
12034         * alloc.c: Harmless pdump changes.
12035         - Use countof().
12036         - spell alignment correctly.
12037         * sysdep.c: Use countof()
12038
12039 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12040
12041         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
12042         initially_selected_for_input() console method, default to 0.
12043         (semi_canonicalize_console_connection): Try to delegate to
12044         canonicalize_console_connection if no such console method.
12045         (canonicalize_console_connection): Vice versa.
12046         (print_console): Do not print nil connection.
12047
12048         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
12049         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
12050         (XDEVIMPF_FRAMELESS_OK): Added.
12051         (CONSOLE_INHERITS_METHOD): Added.
12052
12053         * console-msw.c (mswindows_canonicalize_console_connection):
12054         Added.
12055         (mswindows_canonicalize_device_connection): Added.
12056
12057         * console-msw.h (struct msprinter_device): Added this struct and
12058         accessor macros.
12059         (mswindows_device): Made fontlist a lisp object.
12060
12061         * device.c (semi_canonicalize_device_connection):  Try to delegate
12062         to canonicalize_device_connection if no such console method.
12063         (canonicalize_device_connection): Vice versa.
12064         (print_device): Do not print nil connection.
12065
12066         * device-msw.c (mswindows_init_device): Call InitCommonControls
12067         when have widgets.
12068         (mswindows_delete_device): Removed fontlist deallocation.
12069         (mswindows_mark_device): Added.
12070
12071         * events.c (event_equal): Added abort() at unreached code.
12072         (event_hash): Ditto.
12073
12074         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
12075         fallback tags of Windows devices.
12076
12077         * general.c (syms_of_general): Initialized Qmsprinter.
12078
12079         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
12080         of fallback tags of Windows devices.
12081
12082         * lisp.h: Declared Qmsprinter.
12083
12084         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
12085         of strings.
12086         (mswindows_list_fonts): Ditto.
12087         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
12088         that it can be used by both mswindows and msprinter devices.
12089         (initialize_font_instance): Added.
12090         (mswindows_initialize_font_instance): Use it.
12091         (msprinter_initialize_font_instance): Added.
12092
12093         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
12094         and implementation flags check.
12095         (redisplay_without_hooks): Changed the call to the above.
12096         (Fredraw_device): Ditto.
12097         (Fredisplay_device): Ditto.
12098
12099         * redisplay-msw.c (get_frame_dc): Implemented.
12100         (get_frame_compdc): Implemented.
12101         (many functions): Use the two functions above to get device
12102         contexts, ether for a window or a printer.
12103
12104 2000-01-21  Olivier Galibert  <galibert@pobox.com>
12105
12106         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
12107         initialization here.
12108         (init_symbols_once_early): Call it.
12109         * emacs.c (main_1): Call it.
12110         * symsinit.h: Declare it.
12111
12112 2000-01-19  Olivier Galibert  <galibert@pobox.com>
12113
12114         * alloc.c: Use a lrecord_header * in the backtrace instead of a
12115         Lisp_Object.
12116         (pdump_backtrace): Ditto.
12117         (pdump_register_object): Ditto.  Cleanup use of the pointers.
12118         (pdump_get_entry): Abort if trying to register a null pointer.
12119         (pdump_dump_data): Cleanup types when relocating.
12120         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
12121         (pdump_dump_rtables): Remove bad casts.
12122         (pdump_load): Cleanup relocation w.r.t union type.  Use a
12123         Lisp_Object instead of a EMACS_INT for the hashtable
12124         reorganization.
12125
12126 2000-01-20  Martin Buchholz  <martin@xemacs.org>
12127
12128         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
12129
12130         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
12131
12132         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
12133
12134         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
12135
12136 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12137
12138         * faces.h (FACE_STRIKETHRU_P): Added.
12139
12140         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
12141         of font variants.
12142
12143         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
12144         (mswindows_set_dc_font): New function, aware of font variants,
12145         separated from mswindows_update_dc.
12146
12147         * objects-msw.h (struct mswindows_font_instance_data): Added
12148         definition.
12149
12150         * objects-msw.c (mswindows_finalize_font_instance): Delete all
12151         cached fonts and the data structure.
12152         (mswindows_initialize_font_instance): Added creation of font data
12153         structure.
12154         (mswindows_print_font_instance): Print at least something.
12155         (mswindows_create_font_variant): Implemented.
12156         (mswindows_get_hfont): Implemented.
12157
12158 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
12159
12160         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
12161         prototyping problem with msvc.
12162
12163         * emacs.c (main_1): added syms_of_gui_mswindows() call
12164
12165         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
12166         syms_of_gui_mswindows() function
12167
12168         * symsinit.h: added the prototype for syms_of_gui_mswindows()
12169
12170 2000-01-18  Martin Buchholz <martin@xemacs.org>
12171
12172         * XEmacs 21.2.27 is released.
12173
12174 2000-01-18  Martin Buchholz  <martin@xemacs.org>
12175
12176         * glyphs-eimage.c (struct tiff_error_struct):
12177         (tiff_error_func):
12178         (tiff_warning_func):
12179         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
12180
12181         * unexmips.c:
12182         * unexhp9k3.c:
12183         * unexfreebsd.c:
12184         * unexec.c: Remove vestigial Lucid C code.
12185         * unexalpha.c:
12186         * unexaix.c:
12187         * termcap.c:
12188         * libsst.c: Ansify.
12189         Remove declarations of errno and strerror().
12190
12191         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
12192
12193         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
12194
12195 2000-01-16  Martin Buchholz  <martin@xemacs.org>
12196
12197         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
12198         Optimize.
12199
12200 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12201
12202         * md5.c:
12203         * file-coding.c:
12204         * file-coding.h:
12205         Change enum eol_type to eol_type_t.
12206
12207 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12208
12209         * gui.c (get_gui_callback): Check cons before accessing car.
12210
12211 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12212
12213         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
12214         (XSETSPECIFIER_TYPE): Ditto.
12215
12216 2000-01-17  Didier Verna  <didier@xemacs.org>
12217
12218         * redisplay.c (generate_fstring_runes): compute string size in
12219         characters, not bytes.
12220
12221 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
12222
12223         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
12224
12225 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
12226
12227         * print.c (print_error_message): Call print_prepare().
12228
12229 2000-01-14  Martin Buchholz  <martin@xemacs.org>
12230
12231         * .dbxrc: Renamed from dbxrc.
12232
12233         * events.c (event_to_character):
12234         Use `assert (foo)' instead of `if (!foo) abort()'
12235
12236         * .gdbinit (xtype): Add documentation.
12237         * .gdbinit (check-temacs): New function.
12238         * .gdbinit (check-xemacs): New function.
12239         * dbxrc (check-xemacs): New function.
12240         * dbxrc (check-xemacs): New function.
12241
12242 2000-01-14  Andy Piper  <andy@xemacs.org>
12243
12244         * glyphs-widget.c (widget_query_geometry): Make sure that we
12245         calculate default dimensions correctly.
12246
12247 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12248
12249         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
12250
12251         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
12252         pdump_wire'd variable.
12253
12254         * emacs.c: (main_1): Conditionalized calls to
12255         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
12256
12257 2000-01-13  Martin Buchholz  <martin@xemacs.org>
12258
12259         * window.c (Fset_window_configuration):
12260         * sysdep.c (_start):
12261         * input-method-motif.c (res):
12262         * event-Xt.c (Xt_process_to_emacs_event):
12263         Simple compiler warning fixes.
12264
12265         * bytecode.c (funcall_compiled_function): Use the original
12266         function symbol on the backtrace list in preference to the
12267         compiled_function object in error messages.
12268
12269 2000-01-13  Andy Piper  <andy@xemacs.org>
12270
12271         * glyphs-x.c (update_widget_face): Make sure we update the widget
12272         background as well as foreground.
12273
12274 2000-01-13  Andy Piper  <andy@xemacs.org>
12275
12276         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
12277         fields to subwindow.
12278         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
12279         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
12280         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
12281         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
12282
12283         * glyphs-widget.c (check_valid_tab_orientation): new function.
12284         (initialize_widget_image_instance): zero orientation and
12285         justification.
12286         (widget_instantiate): pick up orientation.
12287         (tab_control_query_geometry): return appropriate values for
12288         vertical tabs.
12289
12290         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
12291         appropriate creation flags for left, right and bottom tabs.
12292
12293         * s/cygwin32.h: add tab definitions.
12294
12295 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12296
12297         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
12298         frame upon hiding a subwindow.
12299         (mswindows_button_instantiate): Changed the push button style to
12300         BS_PUSHBUTTON.
12301         (mswindows_button_instantiate): Removed button BS_NOTIFY
12302         style.
12303         (mswindows_button_instantiate): Removed redundant check for
12304         a disabled gui item.
12305         (mswindows_button_instantiate): Made use of WS_TABSTOP
12306         consistent: "operable" controls (edit, button, tree, scroll) have
12307         this style, "display-only" ones (static, progress gauge) do
12308         not. This style is currently ignored by XEmacs though. Also,
12309         removed the WS_EX_CONTROLPARENT style - it is not for children,
12310         it is for their parents!
12311         (mswindows_edit_field_instantiate): Ditto.
12312         (mswindows_progress_gauge_instantiate): Ditto.
12313         (mswindows_tree_view_instantiate): Ditto.
12314         (mswindows_tab_control_instantiate): Ditto.
12315         (mswindows_scrollbar_instantiate): Ditto.
12316         (mswindows_combo_box_instantiate): Ditto.
12317         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
12318         style to the "clip" window.
12319         (mswindows_button_instantiate): Removed compilation warning by
12320         equally typing terms of the ?: operator.
12321
12322 2000-01-12  Didier Verna  <didier@xemacs.org>
12323
12324         * redisplay.c (generate_fstring_runes): new parameter holding the
12325         last modeline-format extent.
12326         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
12327         extent, fill the glyph block with it.
12328         (generate_fstring_runes): handle these parameters.
12329         (generate_formatted_string_db): ditto.
12330
12331         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
12332         glyphs'extents in the modeline.
12333
12334 1999-01-11  Mike Woolley  <mike@bulsara.com>
12335
12336         * ntheap.c: Reduced the reserved heap space from 1Gb down to
12337         256Mb, as a workaround for the non-starting problem many people
12338         have experienced.
12339
12340 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12341
12342         * console-tty.c (Fset_console_tty_output_coding_system):
12343         Force redrawing tty frame.
12344
12345 2000-01-10  Didier Verna  <didier@xemacs.org>
12346
12347         * redisplay.c (generate_fstring_runes): fix size computation bug.
12348
12349 2000-01-09  William M. Perry <wmperry@aventail.com>
12350
12351         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
12352
12353 2000-01-09  Andy Piper  <andy@xemacs.org>
12354
12355         * glyphs-msw.c: index -> i to avoid shadows.
12356         (xbm_create_bitmap_from_data): make static.
12357         (check_valid_string_or_int): deleted.
12358         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
12359
12360         * glyphs-x.c (x_update_subwindow): remove unused args.
12361
12362         * glyphs.c (glyph_image_instance): return the thing. Don't set the
12363         back pointer - this is done in allocate_image_instance.
12364         (query_string_font): return Qnil to make the compiler happy.
12365         (unmap_subwindow): set to ~0 to make the compiler happy.
12366         (glyph_query_geometry): comment out until used.
12367         (glyph_layout): ditto.
12368
12369 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
12370
12371         * insdel.c (signal_after_change): Remove extraneous unbind_to().