Fixed.
[chise/xemacs-chise.git] / src / ChangeLog
1 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * mule-charset.c (put_char_ccs_code_point): Modify for
4         `decoding_table_remove_char' and `decoding_table_put_char'.
5         (remove_char_ccs): Modify for `decoding_table_remove_char'.
6
7         * char-ucs.h (decoding_table_remove_char): Change arguments to
8         hide decoding_table vector.
9         (decoding_table_put_char): Likewise.
10
11 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
12
13         * mule-charset.c (decoding_table_remove_char): Moved to
14         char-ucs.h.
15         (decoding_table_put_char): Likewise.
16
17         * char-ucs.h (decoding_table_check_elements): New prototype [moved
18         from mule-charset.c].
19         (decoding_table_remove_char): New inline function [moved from
20         mule-charset.c].
21         (decoding_table_put_char): Likewise.
22
23 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
24
25         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
26         extension.
27
28 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
29
30         * mule-charset.c (decode_builtin_char): Support mother charsets.
31
32 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
33
34         * mule-charset.c (Q94x94x60): New variable.
35         (charset_code_point): Support conversion `94x94x60'.
36         (Fmake_charset): Likewise.
37         (syms_of_mule_charset): Add new symbol `94x94x60'.
38
39         * char-ucs.h (CONVERSION_94x94x60): New macro.
40
41 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
42
43         * mule-charset.c (charset_code_point): Unify code about
44         `code-offset'.
45
46 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
47
48         * mule-charset.c (charset_code_point): Merge code about builtin
49         characters into code about mother charsets; don't use
50         `range_charset_code_point'.
51         (range_charset_code_point): Deleted.
52
53 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
54
55         * mule-charset.c (Qcode_offset): New variable.
56         (Fmake_charset): Use `XUINT' to get value of `min-code' and
57         `max-code'; accept new property `code-offset'.
58         (syms_of_mule_charset): Add new symbol `code-offset'.
59
60 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
61
62         * mule-charset.c (range_charset_code_point): Fixed.
63
64 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
65
66         * mule-charset.c (decode_builtin_char): Change semantics of
67         code-offset of coded-charset.
68         (charset_code_point): Likewise.
69         (range_charset_code_point): Likewise.
70         (complex_vars_of_mule_charset): Modify for the change.
71
72 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
73
74         * mule-charset.c (Fencode_char): Reverse arguments.
75
76         * mule-charset.c (charset_code_point): Fixed.
77
78 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
79
80         * mule-charset.c (Vcharset_mojikyo): Deleted.
81         (Vcharset_mojikyo_2022_1): Deleted.
82         (Vcharset_mojikyo_pj_{1..21}): Deleted.
83         (Qmin_code): New variable in UTF-2000.
84         (Qmax_code): Likewise.
85         (Qmother): Likewise.
86         (Qconversion): Likewise.
87         (Q94x60): Likewise.
88         (Qmojikyo): Deleted.
89         (Qmojikyo_2022_1): Deleted.
90         (Qmojikyo_pj_{1..22}): Deleted.
91         (mark_charset): Mark `cs->mother'.
92         (charset_description): Add description for `mother'.
93         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
94         new arguments `mother' and `conversion'; use
95         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
96         (charset_code_point): Moved from char-ucs.h; support `mother'
97         charset feature.
98         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
99         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
100         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
101         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
102         allow 2 as the value of `graphic' in UTF-2000; add new properties
103         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
104         require `final' in UTF-2000; modify for `make_charset'.
105         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
106         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
107         (Fcharset_property): Support `mother', `min-code' and `max-code'.
108         (Fencode_char): New function.
109         (syms_of_mule_charset): Add new builtin function `encode-char' in
110         UTF-2000; add new symbols `min-code', `max-code', `mother',
111         `conversion' and `94x60'; delete symbols `mojikyo',
112         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
113         (complex_vars_of_mule_charset): Modify for `make_charset' change;
114         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
115         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
116
117         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
118         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
119
120         * char-ucs.h (Vcharset_mojikyo): Deleted.
121         (Vcharset_mojikyo_2022_1): Deleted.
122         (LEADING_BYTE_MOJIKYO): Deleted.
123         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
124         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
125         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
126         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
127         add new member `mother'; add new member `conversion'.
128         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
129         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
130         (CHARSET_MOTHER): New macro.
131         (CHARSET_CONVERSION): New macro.
132         (CONVERSION_IDENTICAL): New macro.
133         (CONVERSION_94x60): New macro.
134         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
135         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
136         (XCHARSET_MOTHER): New macro.
137         (XCHARSET_CONVERSION): New macro.
138         (MIN_CHAR_MOJIKYO): Deleted.
139         (MAX_CHAR_MOJIKYO): Deleted.
140         (DECODE_MOJIKYO_2022): Deleted.
141         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
142         (charset_code_point): Changed to non-inline function.
143         (encode_char_1): Use `charset_code_point'.
144         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
145
146 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
147
148         * lread.c (read_compiled_function): Fix prototype.
149         (read_vector): Likewise.
150
151 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
152
153         * lrecord.h (struct lrecord_header): Delete `older'.
154         (set_lheader_implementation): Delete code for `older'.
155         (set_lheader_older_implementation): Deleted.
156         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
157         (OLDER_RECORD_P): Deleted.
158         (OLDER_RECORD_HEADER_P): Deleted.
159         (alloc_older_lcrecord): Deleted.
160         (alloc_older_lcrecord_type): Deleted.
161
162         * alloc.c (all_older_lcrecords): Deleted.
163         (alloc_older_lcrecord): Deleted.
164         (disksave_object_finalization_1): Delete code for older objects.
165         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
166         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
167
168 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
169
170         * mule-charset.c (decoding_table_put_char): Use `make_vector'
171         instead of `make_older_vector'.
172         (put_char_ccs_code_point): Likewise.
173         (mark_charset): Mark `cs->decoding_table'.
174         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
175
176         * lisp.h (make_older_vector): Deleted.
177         (make_vector_newer): Deleted.
178
179         * config.h.in (HAVE_GGC): Deleted.
180
181         * alloc.c (make_older_vector): Deleted.
182         (make_vector_newer_1): Deleted.
183         (make_vector_newer): Deleted.
184
185 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
186
187         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
188         (Qideograph_daikanwa_2): New variable.
189         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
190         (complex_vars_of_mule_charset): Add new coded-charset
191         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
192         `LEADING_BYTE_DAIKANWA'.
193
194         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
195         (LEADING_BYTE_DAIKANWA_1): New macro.
196         (LEADING_BYTE_DAIKANWA_2): New macro.
197         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
198
199 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
200
201         * mule-charset.c (complex_vars_of_mule_charset): Change
202         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
203         the second revised version.
204
205 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
206
207         * mule-charset.c (Vcharset_ucs_smp): New variable.
208         (Vcharset_ucs_sip): New variable.
209         (Qucs_smp): New variable.
210         (Qucs_sip): New variable.
211         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
212         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
213         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
214         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
215         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
216         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
217
218         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
219         (LEADING_BYTE_UCS_SIP): New macro.
220         (MIN_CHAR_SMP): New macro.
221         (MAX_CHAR_SMP): New macro.
222         (MIN_CHAR_SIP): New macro.
223         (MAX_CHAR_SIP): New macro.
224
225 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
226
227         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
228         utf-2000.
229
230 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
231
232         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
233         value; don't store value into `encoding_table' of `Lisp_Charset'.
234         (mark_charset): `encoding_table' was deleted.
235         (charset_description): Likewise.
236         (make_charset): Likewise.
237         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
238         `put_char_ccs_code_point'.
239
240         * chartab.h (Fput_char_attribute): New EXFUN.
241
242         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
243         is unified with normal symbol space.
244         (Fget_char_attribute): Likewise.
245         (Fput_char_attribute): Likewise; behavior of
246         `put_char_ccs_code_point' is changed.
247
248         * char-ucs.h: Include "elhash.h".
249         (Vchar_attribute_hash_table): New external variable.
250         (struct Lisp_Charset): Delete `encoding_table'.
251         (CHARSET_ENCODING_TABLE): New implementation; refer
252         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
253         `Lisp_Charset'.
254
255 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
256
257         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
258         (cs) == 0.
259
260 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
261
262         * text-coding.c (char_encode_big5): Prefer charset-g1 than
263         `chinese-big5'.
264
265 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
266
267         * chartab.c (uint8_byte_table_description): New constant.
268         (uint8-byte-table): Use `uint8_byte_table_description'.
269         (uint16_byte_table_description): New constant.
270         (uint16-byte-table): Use `uint16_byte_table_description'.
271
272 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
273
274         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
275         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
276
277 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
278
279         * mule-charset.c (Vcharset_ucs_ks): New variable.
280         (Qucs_ks): New variable.
281         (syms_of_mule_charset): Add new symbol `ucs-ks'.
282         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
283
284         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
285
286 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
287
288         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
289         (Fdecode_char): Likewise.
290
291         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
292         chartab.h.
293         (Fdefine_char): Modify for Fdecode_char.
294         (Ffind_char): Likewise.
295
296         * mule-charset.c (Fdecode_char): Add new optional argument
297         `defined-only'.
298         (Fdecode_builtin_char): Modify for `Fdecode_char'.
299
300 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
301
302         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
303         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
304         (allocate_coding_system): Initialize initial-charsets of
305         CODESYS_BIG5 in XEmacs UTF-2000.
306         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
307         CODESYS_BIG5 in XEmacs UTF-2000.
308         (decode_coding_big5): Use initial-charset-g0 and -g1 of
309         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
310
311         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
312         variables.
313         (Qideograph_hanziku_{1 .. 12}): Likewise.
314         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
315         .. 12}'.
316         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
317         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
318         `ideograph-hanziku-{1 .. 12}'.
319
320         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
321         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
322         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
323         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
324         (DECODE_DEFINED_CHAR): New inline function.
325         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
326
327 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
328
329         * mule-charset.c (Vcharset_china3_jef): Renamed from
330         `Vcharset_japanese_jef_china3'.
331         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
332         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
333         `{MIN|MAX}_CHAR_JEF_CHINA3'..
334         (syms_of_mule_charset): Rename `china3-jef' from
335         `japanese-jef-china3'.
336         (complex_vars_of_mule_charset): Likewise; rename
337         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
338
339         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
340         `LEADING_BYTE_JEF_CHINA3'.
341         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
342         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
343
344 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
345
346         * mule-charset.c (encode_builtin_char_1): Comment out special code
347         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
348
349         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
350         (MAX_CHAR_MOJIKYO_0): Comment out.
351         (MIN_CHAR_CBETA): Changed to 0x00E20000.
352         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
353         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
354         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
355
356 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
357
358         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
359         (Qideograph_cbeta): New variable.
360         (encode_builtin_char_1): Comment out special code for
361         coded-charset `mojikyo' and `japanese-jef-china3'.
362         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
363         (complex_vars_of_mule_charset): Add new coded-charset
364         `ideograph-cbeta'.
365
366         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
367         (MIN_CHAR_CBETA): New macro.
368         (MAX_CHAR_CBETA): New macro.
369
370 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
371
372         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
373         (LEADING_BYTE_JEF_CHINA3): New macro.
374         (MIN_CHAR_JEF_CHINA3): New macro.
375         (MAX_CHAR_JEF_CHINA3): Likewise.
376         (DECODE_CHAR): Fixed.
377
378 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
379
380         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
381         (Qjapanese_jef_china3): New variable.
382         (encode_builtin_char_1): Support `japanese-jef-china3'.
383         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
384         (complex_vars_of_mule_charset): Add new coded-charset
385         `japanese-jef-china3'.
386
387 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
388
389         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
390         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
391         94^4, 96^3, 96^4, 128^n and 256^n set.
392         (put_char_table): Use `XCHARSET_CELL_RANGE'.
393         (map_char_table): Likewise.
394
395 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
396
397         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
398         UTF-2000.
399
400 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
401
402         * chartab.h (get_char_id_table): New inline function.
403
404         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
405         function.
406
407 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
408
409         * chartab.h (decode_char_table_range): New prototype in XEmacs
410         UTF-2000.
411         (put_char_id_table): New inline function in XEmacs UTF-2000.
412
413         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
414         function.
415         (decode_char_table_range): Delete static declaration in XEmacs
416         UTF-2000.
417
418 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
419
420         * chartab.c (put_char_id_table): Use `put_char_table'.
421
422 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
423
424         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
425         (map_over_uint16_byte_table): Likewise.
426         (map_over_byte_table): Likewise.
427         (map_char_table): Modify for `map_over_uint8_byte_table',
428         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
429         UTF-2000.
430
431 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
432
433         * chartab.c (struct map_char_table_for_charset_arg): New
434         structure.
435         (map_char_table_for_charset_fun): New function.
436         (map_char_table): Use `map_char_table' for encoding_table of
437         `range->charset'.
438
439 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
440
441         * chartab.c (map_char_table): Check a character is found in
442         range->charset instead of non default value is defined in
443         char-table when range is CHARTAB_RANGE_ROW.
444
445 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
446
447         * chartab.c (map_char_id_table): Deleted.
448         (Fmap_char_attribute): Use `map_char_table' instead of
449         `map_char_id_table'.
450
451 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
452
453         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
454         UTF-2000.
455         (update_syntax_table): Deleted in XEmacs UTF-2000.
456
457         * syntax.c (find_defun_start): Use `syntax_table' instead of
458         `mirror_syntax_table' in XEmacs UTF-2000.
459         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
460         UTF-2000.
461         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
462         XEmacs UTF-2000.
463         (Fmatching_paren): Likewise.
464         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
465         in XEmacs UTF-2000.
466         (find_start_of_comment): Likewise.
467         (find_end_of_comment): Likewise.
468         (Fforward_comment): Likewise.
469         (scan_lists): Likewise.
470         (char_quoted): Likewise.
471         (Fbackward_prefix_chars): Likewise.
472         (scan_sexps_forward): Likewise.
473         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
474         (update_syntax_table): Likewise.
475
476         * search.c (skip_chars): Use `syntax_table' instead of
477         `mirror_syntax_table' in XEmacs UTF-2000.
478         (wordify): Likewise.
479         (Freplace_match): Likewise.
480
481         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
482         `mirror_syntax_table' in XEmacs UTF-2000.
483         (WORDCHAR_P_UNSAFE): Likewise.
484         (re_match_2_internal): Likewise.
485
486         * font-lock.c (find_context): Use `buf->syntax_table' instead of
487         `buf->mirror_syntax_table' in XEmacs UTF-2000.
488
489         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
490         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
491
492         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
493         XEmacs UTF-2000.
494
495         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
496         UTF-2000.
497         (print_char_table): Print `default_value' in XEmacs UTF-2000.
498         (char_table_description): Delete `mirror_table' in XEmacs
499         UTF-2000.
500         (fill_char_table): Don't call `update_syntax_table' in XEmacs
501         UTF-2000.
502         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
503         (Fcopy_char_table): Likewise.
504         (put_char_table): Don't call `update_syntax_table' in XEmacs
505         UTF-2000.
506
507         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
508         `buf->mirror_syntax_table' in XEmacs UTF-2000.
509         (casify_region_internal): Likewise.
510
511         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
512
513         * buffer.c (common_init_complex_vars_of_buffer): Don't use
514         `mirror_syntax_table' in XEmacs UTF-2000.
515
516         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
517         `buf->mirror_syntax_table' in XEmacs UTF-2000.
518         (Fexpand_abbrev): Likewise.
519
520 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
521
522         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
523
524 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
525
526         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
527         (map_over_uint16_byte_table): Likewise.
528         (map_over_byte_table): Likewise.
529         (get_char_id_table): Refer `cit->default_value'.
530         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
531         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
532         of character-id ranges.
533         (mark_char_table): Mark `ct->default_value'.
534         (char_table_description): Add `default_value'.
535         (fill_char_table): Use `default_value'.
536         (decode_char_table_range): Decode `nil' as
537         `CHARTAB_RANGE_DEFAULT'.
538         (get_char_id_table): Refer `cit->default_value'.
539         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
540         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
541         temporary hack; check value of char-table is bound or not.
542         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
543
544         * chartab.h (struct Lisp_Char_Table): Add new member
545         `default_value' in XEmacs UTF-2000.
546         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
547         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
548         UTF-2000.
549
550 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
551
552         * chartab.h (Lisp_Char_ID_Table): Deleted.
553
554         * chartab.c (char_table_description): Fix typo.
555         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
556         `Lisp_Char_ID_Table'.
557
558 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
559
560         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
561         `CHAR_ID_TABLE_P'.
562
563         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
564         `CHAR_ID_TABLE_P'.
565
566         * chartab.h (XCHAR_ID_TABLE): Deleted.
567         (XSETCHAR_ID_TABLE): Deleted.
568         (CHAR_ID_TABLE_P): Deleted.
569
570         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
571         `CHAR_ID_TABLE_P'.
572         (Fget_composite_char): Likewise.
573         (put_char_table): Likewise.
574         (add_char_attribute_alist_mapper): Fixed.
575         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
576         `CHAR_ID_TABLE_P'.
577         (Fget_char_attribute): Likewise.
578         (Fget_char_attribute): Likewise.
579         (Fmap_char_attribute): Likewise.
580
581         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
582         `CHAR_ID_TABLE_P'.
583         (encode_char_1): Likewise.
584
585 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
586
587         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
588         `XCHAR_ID_TABLE'.
589
590         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
591         instead of `XCHAR_ID_TABLE'.
592         (remove_char_ccs): Likewise.
593
594         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
595         `XCHAR_ID_TABLE'.
596         (Fget_composite_char): Likewise.
597         (Fchar_variants): Likewise.
598         (put_char_table): Likewise.
599         (add_char_attribute_alist_mapper): Likewise.
600         (Fchar_attribute_alist): Likewise.
601         (Fget_char_attribute): Likewise.
602         (Fput_char_attribute): Likewise.
603         (Fmap_char_attribute): Likewise.
604         (Fmap_char_attribute): Likewise.
605
606         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
607         `XCHAR_ID_TABLE'.
608         (encode_char_1): Likewise.
609
610 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
611
612         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
613         `Lisp_Char_ID_Table'.
614         (mark_char_id_table): Deleted.
615         (print_char_id_table): Likewise.
616         (char_id_table_equal): Likewise.
617         (char_id_table_hash): Likewise.
618         (char_id_table_description): Likewise.
619         (char_id_table): Likewise.
620         (make_char_id_table): Use `Fmake_char_table' and
621         `fill_char_table'.
622         (get_char_id_table): Use `Lisp_Char_Table' instead of
623         `Lisp_Char_ID_Table'.
624         (put_char_id_table): Likewise.
625         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
626         `XCHAR_ID_TABLE'.
627         (Fremove_char_attribute): Likewise.
628         (syms_of_chartab): Don't define type `char-id-table'.
629
630         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
631         (char_id_table): Likewise.
632         (GC_CHAR_ID_TABLE_P): Likewise.
633         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
634         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
635         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
636         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
637         (get_char_id_table): Use `Lisp_Char_Table' instead of
638         `Lisp_Char_ID_Table'.
639         (put_char_id_table_0): Likewise.
640         (put_char_id_table): Likewise.
641
642 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
643
644         * chartab.h: Lisp_Byte_Table related codes are moved from
645         chartab.h.
646
647         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
648
649 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
650
651         * chartab.h: Don't include "chartab.h".
652         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
653         (Lisp_Char_ID_Table): Likewise.
654         (char_id_table): Likewise.
655         (XCHAR_ID_TABLE): Likewise.
656         (XSETCHAR_ID_TABLE): Likewise.
657         (CHAR_ID_TABLE_P): Likewise.
658         (GC_CHAR_ID_TABLE_P): Likewise.
659         (get_char_id_table): Likewise.
660
661         * char-ucs.h: Include "chartab.h".
662         (struct Lisp_Char_ID_Table): Moved to chartab.h.
663         (Lisp_Char_ID_Table): Likewise.
664         (char_id_table): Likewise.
665         (XCHAR_ID_TABLE): Likewise.
666         (XSETCHAR_ID_TABLE): Likewise.
667         (CHAR_ID_TABLE_P): Likewise.
668         (GC_CHAR_ID_TABLE_P): Likewise.
669         (get_char_id_table): Likewise.
670
671 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
672
673         * chartab.c (copy_uint8_byte_table): New function.
674         (copy_uint16_byte_table): New function.
675         (copy_byte_table): New function.
676         (map_over_uint8_byte_table): Modify to avoid huge numbers of
677         characters to call.
678         (map_over_uint16_byte_table): Likewise.
679         (map_over_byte_table): Likewise.
680         (get_byte_table): Move prototype to chartab.h.
681         (put_byte_table): Likewise.
682         (put_char_id_table_0): Moved to chartab.h.
683         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
684         (char_table_entry_equal): Likewise.
685         (char_table_entry_hash): Likewise.
686         (char_table_entry_description): Likewise.
687         (char_table_entry): Likewise.
688         (make_char_table_entry): Likewise.
689         (copy_char_table_entry): Likewise.
690         (get_non_ascii_char_table_value): Likewise.
691         (map_over_charset_ascii): Likewise.
692         (map_over_charset_control_1): Likewise.
693         (map_over_charset_row): Likewise.
694         (map_over_other_charset): Likewise.
695         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
696         (print_char_table): Likewise.
697         (char_table_equal): Likewise.
698         (char_table_hash): Likewise.
699         (char_table_description): Likewise.
700         (fill_char_table): Likewise.
701         (Fcopy_char_table): Likewise.
702         (get_char_table): Likewise.
703         (Fget_range_char_table): Likewise.
704         (put_char_table): Likewise.
705         (map_char_table): Likewise.
706         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
707         UTF-2000.
708
709 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
710
711         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
712         `Vauto_fill_chars' in XEmacs UTF-2000.
713
714         * chartab.h (get_byte_table): New prototype [moved from
715         chartab.c].
716         (put_byte_table): Likewise [moved from chartab.c].
717         (put_char_id_table_0): New inline function [moved from chartab.c].
718         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
719         (Lisp_Char_Table_Entry): Likewise.
720         (char_table_entry): Likewise.
721         (XCHAR_TABLE_ENTRY): Likewise.
722         (XSETCHAR_TABLE_ENTRY): Likewise.
723         (CHAR_TABLE_ENTRYP): Likewise.
724         (CHECK_CHAR_TABLE_ENTRY): Likewise.
725         (NUM_ASCII_CHARS): Likewise.
726         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
727         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
728
729 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
730
731         * chartab.c (get_char_id_table): Change interface.
732         (put_char_id_table_0): New function.
733         (put_char_id_table): Change interface; new implementation.
734         (Fget_composite_char): Modify for interface change of
735         `get_char_id_table'.
736         (Fchar_variants): Likewise.
737         (add_char_attribute_alist_mapper): Likewise.
738         (Fchar_attribute_alist): Likewise.
739         (Fget_char_attribute): Likewise.
740         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
741         as same as character as the first argument like `put-char-table';
742         modify for interface change of `put_char_id_table'.
743         (Fremove_char_attribute): Modify for interface change of
744         `put_char_id_table'.
745
746 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
747
748         * text-coding.c: Sync up with XEmacs 21.2.41.
749         (COMPOSE_ADD_CHAR): Modify for interface change of
750         `get_char_id_table'.
751
752         * mule-charset.c (put_char_ccs_code_point): Modify for interface
753         change of `put_char_id_table'.
754         (remove_char_ccs): Likewise.
755
756         * chartab.h (put_char_id_table): Change interface.
757
758         * char-ucs.h (get_char_id_table): Change interface.
759         (charset_code_point): Modify for interface change of
760         `get_char_id_table'.
761         (encode_char_1): Likewise.
762
763 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
764
765         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
766         argument `ccs'.
767         (map_over_uint16_byte_table): Likewise.
768         (map_over_byte_table): Likewise.
769         (map_char_id_table): Add new argument `range' like
770         `map_char_table'.
771         (Fmap_char_attribute): Add new argument `range' like
772         `Fmap_char_table'.
773
774 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
775
776         * chartab.c (map_over_uint8_byte_table): Change interface of
777         mapping function to use struct chartab_range instead of Emchar.
778         (map_over_uint16_byte_table): Likewise.
779         (map_over_byte_table): Likewise.
780         (map_char_id_table): Likewise.
781         (struct slow_map_char_id_table_arg): Deleted.
782         (slow_map_char_id_table_fun): Deleted.
783         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
784         function `slow_map_char_table_fun' instead of struct
785         `slow_map_char_id_table_arg' and function
786         `slow_map_char_id_table_fun'.
787
788 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
789
790         * mule-charset.c: Move char-it-table related codes to chartab.c.
791         (Vutf_2000_version): Moved to chartab.c.
792         (Fdefine_char): Likewise.
793         (Ffind_char): Likewise.
794         (syms_of_mule_charset): Move types `uint8-byte-table',
795         `uint16-byte-table', `byte-table' and `char-id-table' to
796         chartab.c; move functions `char_attribute_list,
797         `find_char_attribute_table, `char_attribute_alist,
798         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
799         `map_char_attribute, `define_char, `find_char, `char_variants and
800         `get_composite_char to chartab.c; move symbols `=>ucs',
801         `->decomposition', `compat', `isolated', `initial', `medial',
802         `final', `vertical', `noBreak', `fraction', `super', `sub',
803         `circle', `square', `wide', `narrow', `small' and `font' to
804         chartab.c.
805         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
806         setting codes for `Vcharacter_composition_table' and
807         `Vcharacter_variant_table' to chartab.c.
808         (complex_vars_of_mule_charset): Move setting code for
809         `Vchar_attribute_hash_table' to chartab.c.
810
811         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
812         (make_char_id_table): New prototype.
813         (put_char_id_table): Likewise.
814         (Fget_char_attribute): Likewise.
815
816         * chartab.c: Move char-id-table related code from mule-charset.c.
817         (Vutf_2000_version): Moved from mule-charset.c.
818
819         * char-ucs.h (Qucs): New external variable.
820         (put_char_ccs_code_point): New prototype.
821         (remove_char_ccs): Likewise.
822
823 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
824
825         * mule-charset.c (Vcharset_ucs_jis): New variable.
826         (Qucs_jis): Likewise.
827         (syms_of_mule_charset): Add new symbol `ucs-jis'.
828         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
829
830         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
831
832 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
833
834         * mule-charset.c (map_over_uint8_byte_table): New function.
835         (map_over_uint16_byte_table): Likewise.
836         (map_over_byte_table): Likewise.
837         (map_char_id_table): Likewise.
838         (slow_map_char_id_table_fun): Likewise.
839         (Fmap_char_attribute): Likewise.
840         (syms_of_mule_charset): Add new function `map-char-attribute'.
841
842 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
843
844         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
845         (syms_of_mule_charset): Add new function `find-char'.
846
847 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
848
849         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
850         XEmacs UTF-2000.
851         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
852         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
853         XEmacs UTF-2000.
854         (complex_vars_of_mule_charset): Add new coded-charset
855         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
856         `ideograph-gt-pj-*'.
857
858         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
859
860 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
861
862         * mule-charset.c (encode_builtin_char_1): Purge codes about
863         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
864         {MIN|MAX}_CHAR_HEBREW.
865         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
866         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
867
868         * char-ucs.h (MIN_CHAR_GREEK): Purged.
869         (MAX_CHAR_GREEK): Purged.
870         (MIN_CHAR_CYRILLIC): Purged.
871         (MAX_CHAR_CYRILLIC): Purged.
872         (MIN_CHAR_HEBREW): Commented out.
873         (MAX_CHAR_HEBREW): Likewise.
874
875 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
876
877         * mule-charset.c (Qto_ucs): New variable.
878         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
879         (Fdefine_char): Likewise.
880         (syms_of_mule_charset): Add new symbol `=>ucs'.
881
882 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
883
884         * mule-charset.c (Fdecode_char): Fixed.
885
886 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
887
888         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
889         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
890         "tcvn5712-1".
891
892 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
893
894         * mule-charset.c (Vcharset_ucs_big5): New variable.
895         (Qucs_big5): Likewise.
896         (syms_of_mule_charset): Add new symbol `ucs-big5'.
897         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
898
899         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
900
901 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
902
903         * mule-charset.c (decode_builtin_char): Check Big5 code range
904         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
905
906 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
907
908         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
909         (Qchinese_gb12345): Likewise.
910         (Fdecode_builtin_char): Fixed.
911         (syms_of_mule_charset): Add `chinese-gb12345'.
912         (complex_vars_of_mule_charset): Add coded-charset
913         `chinese-gb12345'.
914
915         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
916         (LEADING_BYTE_CHINESE_GB12345): New macro.
917
918 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
919
920         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
921         and `latin-viscii-upper' for `latin-viscii'.
922
923 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
924
925         * mule-charset.c (Fdecode_builtin_char): Comment out
926         regularization code for ISO-IR GR representation.
927
928 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
929
930         * mule-charset.c (decode_builtin_char): New function; renamed from
931         `make_builtin_char'; return -1 instead of signal.
932         (Fdecode_builtin_char): Use `decode_builtin_char'.
933
934         * char-ucs.h (decode_builtin_char): New prototype; renamed from
935         `make_builtin_char'.
936         (DECODE_CHAR): Use `decode_builtin_char' instead of
937         `make_builtin_char'; use mapping table of `chinese-big5' for
938         `chinese-big5-{1,2}'.
939
940 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
941
942         * text-coding.c (char_encode_big5): New function.
943         (char_finish_big5): Likewise.
944         (reset_encoding_stream): Use `char_encode_big5' and
945         `char_finish_big5' for CODESYS_BIG5.
946         (mule_encode): Don't use `encode_coding_big5'.
947         (encode_coding_big5): Deleted.
948
949 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
950
951         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
952         0x81- in XEmacs UTF-2000.
953         (detect_coding_big5): Likewise.
954
955 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
956
957         * mule-charset.c (Fdefine_char): Don't use a CCS property to
958         generate character-id if the CCS property does not have
959         corresponding predefined character.
960         (make_builtin_char): Return -1 if corresponding predefined
961         character is not found.
962         (Fdecode_char): Return nil if corresponding character is not
963         found.
964         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
965         don't map to builtin ucs space.
966
967 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
968
969         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
970         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
971
972 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
973
974         * mule-charset.c (Vcharset_ideograph_gt): New variable.
975         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
976         (Qideograph_gt): Likewise.
977         (Qideograph_gt_pj_{1..11}): Likewise.
978         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
979         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
980         `ideograph-gt-pj-11'.
981         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
982         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
983         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
984
985         * char-ucs.h (LEADING_BYTE_GT): New macro.
986         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
987         (MIN_CHAR_GT): Likewise.
988         (MAX_CHAR_GT): Likewise.
989
990 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
991
992         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
993         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
994
995         * doprnt.c (unsigned_int_converters): Add `c'.
996         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
997
998         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
999         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
1000         `MIN_CHAR_MOJIKYO'.
1001         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
1002         (MAX_CHAR_MOJIKYO_0): New macro.
1003         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
1004
1005 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1006
1007         * mule-charset.c (Fdefine_char): Delete cemented out code.
1008         (encode_builtin_char_1): Modify for new allocation of builtin
1009         Mojikyo characters.
1010
1011         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
1012
1013 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1014
1015         * mule-charset.c (Vcharset_ucs_cns): New variable.
1016         (Qucs_cns): New variable.
1017         (syms_of_mule_charset): Add new symbol `ucs-cns'.
1018         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
1019
1020 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1021
1022         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
1023
1024 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1025
1026         * search.c (search_buffer): Make `charset_base_code' as
1027         character-id >> 6 to eliminate the corresponding last byte in
1028         UTF-8 representation [I'm not sure it is right thing].
1029         (boyer_moore): Likewise.
1030
1031 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1032
1033         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
1034         representation in MULE.
1035
1036 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1037
1038         * text-coding.c (Fmake_coding_system): Use
1039         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
1040         `EXTERNAL_PROPERTY_LIST_LOOP'.
1041
1042 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1043
1044         * text-coding.c (decode_output_utf8_partial_char): New function.
1045         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
1046
1047 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1048
1049         * text-coding.c (decode_coding_utf8): Output original byte
1050         sequence if it is broken; change order of conditions.
1051
1052         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
1053         of conditions.
1054
1055         * mb-multibyte.h (BYTE_ASCII_P):
1056         Use bit ops for char-signedness safety.
1057         (BYTE_C0_P): Use bit ops for char-signedness safety.
1058         (BYTE_C1_P): Use bit ops for char-signedness safety.
1059
1060         * character.h: (XCHAR_OR_CHAR_INT):
1061         Always use inline function.
1062         Remove redundant type checking assert() - XINT will abort quite
1063         nicely.
1064
1065 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1066
1067         * text-coding.c: (Fencode_shift_jis_char):
1068         (Fencode_big5_char):
1069         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
1070         Replace 0 with '\0' when working with bytes.
1071         Replace initial "(" with "\(" in docstrings.
1072
1073         (Fmake_coding_system):
1074         When type is ccl and value is vector, register it with a proper
1075         symbol.  And checks whether the given ccl program is valid.
1076         (mule_decode): When calling ccl_driver, if src indicates
1077         NULL pointer, set an empty string instead.
1078         (mule_encode): Likewise.
1079
1080         (detect_eol_type):
1081         (detect_coding_sjis):
1082         (decode_coding_sjis):
1083         (detect_coding_big5):
1084         (decode_coding_big5):
1085         (detect_coding_ucs4):
1086         (decode_coding_ucs4):
1087         (detect_coding_utf8):
1088         (decode_coding_utf8):
1089         (detect_coding_iso2022):
1090         (decode_coding_iso2022):
1091         (decode_coding_no_conversion):
1092         (mule_decode):
1093         Make all detecting and decoding functions take an Extbyte * arg.
1094         (text_encode_generic):
1095         (encode_coding_big5):
1096         (encode_coding_no_conversion):
1097         (mule_encode):
1098         Make all encoding functions take a Bufbyte * arg.
1099         Use size_t instead of unsigned int for memory sizes.
1100         Only cast to unsigned char whenever dereferencing Extbyte *.
1101
1102         (struct lrecord_description fcd_description_1): Use countof.
1103         (complex_vars_of_file_coding):
1104         Use countof instead of sizeof.
1105         Use CHECK_NATNUM instead of CHECK_INT.
1106
1107 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1108
1109         * mule-charset.c (Fget_char_attribute): Add new optional argument
1110         `default-value'.
1111         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
1112         (remove_char_ccs): Likewise.
1113
1114 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1115
1116         * text-coding.c (char_encode_shift_jis): New implementation in
1117         UTF-2000.
1118         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
1119         ...)'.
1120
1121         * mule-charset.c (Vcharset_chinese_big5): New variable in
1122         UTF-2000.
1123         (Qchinese_big5): New variable in UTF-2000.
1124         (BIG5_SAME_ROW): New macro in UTF-2000.
1125         (make_builtin_char): Use builtin characters of
1126         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
1127         characters of `Vcharset_chinese_big5'.
1128         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
1129         (complex_vars_of_mule_charset): Add new coded-charset
1130         `chinese-big5' in UTF-2000.
1131
1132         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
1133         (Vcharset_chinese_big5): New external variable declaration.
1134         (Vcharset_japanese_jisx0208_1990): Likewise.
1135
1136 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1137
1138         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
1139         function.
1140         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
1141
1142 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1143
1144         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
1145         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
1146         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
1147         `mojikyo-pj-*'.
1148
1149 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1150
1151         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
1152
1153 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1154
1155         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1156         to 0.17.
1157
1158 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1159
1160         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
1161         for `CHARSET_BY_ATTRIBUTES'.
1162         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1163         `CHARSET_BY_ATTRIBUTES'.
1164
1165         * text-coding.c (struct decoding_stream): Rename member `CH' to
1166         `CPOS'.
1167         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
1168         (decode_coding_sjis): Likewise.
1169         (decode_coding_big5): Likewise.
1170         (decode_coding_ucs4): Likewise.
1171         (decode_coding_utf8): Likewise.
1172         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1173         `CHARSET_BY_ATTRIBUTES'.
1174         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
1175         `str->counter'; decode 3, 4 bytes sets.
1176         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
1177         sets.
1178         (decode_coding_no_conversion): Use `str->cpos' instead of
1179         `str->ch'.
1180
1181         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
1182         (Qmojikyo_2022_1): New variable.
1183         (make_charset): Don't use `CHARSET_TYPE_*'.
1184         (range_charset_code_point): Support coded-charset
1185         `mojikyo-2022-1'.
1186         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
1187         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
1188         `CHARSET_BY_ATTRIBUTES'.
1189         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
1190         `CHARSET_BY_ATTRIBUTES'.
1191         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
1192         (complex_vars_of_mule_charset): Add new coded-charset
1193         `mojikyo-2022-1'.
1194
1195         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
1196         interface; changed to inline function.
1197
1198         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
1199         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
1200         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
1201         (CHARSET_TYPE_94): Deleted.
1202         (CHARSET_TYPE_94X94): Deleted.
1203         (CHARSET_TYPE_96): Deleted.
1204         (CHARSET_TYPE_96X96): Deleted.
1205         (CHARSET_TYPE_128): Deleted.
1206         (CHARSET_TYPE_128X128): Deleted.
1207         (CHARSET_TYPE_256): Deleted.
1208         (CHARSET_TYPE_256X256): Deleted.
1209         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
1210         to inline function.
1211         (DECODE_MOJIKYO_2022): New inline function.
1212         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
1213         `Vcharset_mojikyo_2022_1'.
1214
1215 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1216
1217         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
1218         instead of `EQ'.
1219         (put_byte_table): Likewise.
1220         (char_id_table_equal): Use `get_byte_table' [new implementation].
1221
1222 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1223
1224         * mule-charset.c: Include <limits.h> in UTF-2000.
1225         (BT_UINT8_MIN): New macro in UTF-2000.
1226         (BT_UINT8_MAX): New macro in UTF-2000.
1227         (BT_UINT8_t): New macro in UTF-2000.
1228         (BT_UINT8_nil): New macro in UTF-2000.
1229         (BT_UINT8_unbound): New macro in UTF-2000.
1230         (INT_UINT8_P): New inline function in UTF-2000.
1231         (UINT8_VALUE_P): New inline function in UTF-2000.
1232         (UINT8_ENCODE): New inline function in UTF-2000.
1233         (UINT8_DECODE): New inline function in UTF-2000.
1234         (mark_uint8_byte_table): New function in UTF-2000.
1235         (print_uint8_byte_table): New function in UTF-2000.
1236         (uint8_byte_table_equal): New function in UTF-2000.
1237         (uint8_byte_table_hash): New function in UTF-2000.
1238         (make_uint8_byte_table): New function in UTF-2000.
1239         (uint8_byte_table_same_value_p): New function in UTF-2000.
1240         (BT_UINT16_MIN): New macro in UTF-2000.
1241         (BT_UINT16_MAX): New macro in UTF-2000.
1242         (BT_UINT16_t): New macro in UTF-2000.
1243         (BT_UINT16_nil): New macro in UTF-2000.
1244         (BT_UINT16_unbound): New macro in UTF-2000.
1245         (INT_UINT16_P): New inline function in UTF-2000.
1246         (UINT16_VALUE_P): New inline function in UTF-2000.
1247         (UINT16_ENCODE): New inline function in UTF-2000.
1248         (UINT16_DECODE): New inline function in UTF-2000.
1249         (UINT8_TO_UINT16): New inline function in UTF-2000.
1250         (mark_uint16_byte_table): New function in UTF-2000.
1251         (print_uint16_byte_table): New function in UTF-2000.
1252         (uint16_byte_table_equal): New function in UTF-2000.
1253         (uint16_byte_table_hash): New function in UTF-2000.
1254         (make_uint16_byte_table): New function in UTF-2000.
1255         (uint16_byte_table_same_value_p): New function in UTF-2000.
1256         (print_byte_table): New function in UTF-2000.
1257         (byte-table): Use `print_byte_table' as printer.
1258         (make_byte_table): Delete second argument `older'.
1259         (byte_table_same_value_p): New function in UTF-2000.
1260         (copy_byte_table): Deleted.
1261         (get_byte_table): New function in UTF-2000.
1262         (put_byte_table): New function in UTF-2000.
1263         (print_char_id_table): New function in UTF-2000.
1264         (char-id-table): Use `print_char_id_table' as printer.
1265         (make_char_id_table): Delete second argument `older'.
1266         (get_char_id_table): Use `get_byte_table [new implementation].
1267         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
1268         implementation].
1269         (Ffind_char_attribute_table): New function in UTF-2000.
1270         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
1271         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
1272         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
1273         (syms_of_mule_charset): Add new function
1274         `find-char-attribute-table' in UTF-2000.
1275
1276         * lrecord.h (enum lrecord_type): Add
1277         `lrecord_type_uint16_byte_table' and
1278         `lrecord_type_uint8_byte_table'.
1279
1280         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
1281         (Lisp_Uint8_Byte_Table): New type.
1282         (XUINT8_BYTE_TABLE): New macro.
1283         (XSETUINT8_BYTE_TABLE): New macro.
1284         (UINT8_BYTE_TABLE_P): New macro.
1285         (GC_UINT8_BYTE_TABLE_P): New macro.
1286         (struct Lisp_Uint16_Byte_Table): New structure.
1287         (Lisp_Uint16_Byte_Table): New type.
1288         (XUINT16_BYTE_TABLE): New macro.
1289         (XSETUINT16_BYTE_TABLE): New macro.
1290         (UINT16_BYTE_TABLE_P): New macro.
1291         (GC_UINT16_BYTE_TABLE_P): New macro.
1292
1293 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1294
1295         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
1296         (Vcharacter_ideographic_strokes_table): Deleted.
1297         (Vcharacter_total_strokes_table): Deleted.
1298         (Vcharacter_morohashi_daikanwa_table): Deleted.
1299         (Vcharacter_decomposition_table): Deleted.
1300         (Qname): Deleted because it is duplicated.
1301         (Qideographic_radical): Deleted.
1302         (Qideographic_strokes): Deleted.
1303         (Qtotal_strokes): Deleted.
1304         (Qmorohashi_daikanwa): Deleted.
1305         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
1306         `ideographic-radical', `ideographic-strokes', `total-strokes',
1307         `morohashi-daikanwa' and `->decomposition'.
1308         (Fget_char_attribute): Likewise.
1309         (Fput_char_attribute): Likewise; use `make-vector' instead of
1310         `make_older_vector' for `->decomposition' value.
1311         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
1312         `ideograph-daikanwa'.
1313         (syms_of_mule_charset): Delete builtin symbols `name',
1314         `ideographic-radical', `ideographic-strokes', `total-strokes' and
1315         `morohashi-daikanwa'.
1316         (vars_of_mule_charset): Don't setup
1317         `Vcharacter_ideographic_radical_table',
1318         `Vcharacter_ideographic_strokes_table',
1319         `Vcharacter_total_strokes_table',
1320         `Vcharacter_morohashi_daikanwa_table' and
1321         `Vcharacter_decomposition_table'.
1322
1323 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1324
1325         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
1326         `make_older_vector', `make_vector_newer_1' and
1327         `make_vector_newer'.
1328
1329         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
1330         `make_older_vector' and `make_vector_newer'.
1331
1332         * config.h.in (HAVE_GGC): New macro.
1333
1334 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1335
1336         * mule-charset.c (struct char_attribute_list_closure): New
1337         structure in UTF-2000.
1338         (add_char_attribute_to_list_mapper): New function in UTF-2000.
1339         (Fchar_attribute_list): Likewise.
1340         (Fset_charset_mapping_table): Use `make_vector_newer'.
1341         (Fdecode_builtin_char): New function in UTF-2000.
1342         (syms_of_mule_charset): Add new function `char-attribute-list' and
1343         `decode-builtin-char' in UTF-2000.
1344
1345         * lisp.h (make_vector_newer): New prototype.
1346
1347         * alloc.c (make_vector_newer_1): New function.
1348         (make_vector_newer): New function.
1349
1350 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1351
1352         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
1353         50100)'.
1354
1355 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1356
1357         * mule-charset.c (Vchar_attribute_hash_table): New variable.
1358         (Vcharacter_attribute_table): Deleted.
1359         (Vcharacter_name_table): Deleted.
1360         (put_char_attribute): Deleted.
1361         (remove_char_attribute): Deleted.
1362         (struct char_attribute_alist_closure): New structure.
1363         (add_char_attribute_alist_mapper): New function.
1364         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
1365         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
1366         (Fget_char_attribute): Likewise.
1367         (Fput_char_attribute): Likewise.
1368         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
1369         of `remove_char_attribute'.
1370         (Fdefine_char): Return character.
1371         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
1372         and `Vcharacter_name_table'.
1373         (complex_vars_of_mule_charset): Likewise
1374         `Vchar_attribute_hash_table'.
1375
1376 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1377
1378         * character.h (CHARC_CHARSET): New macro.
1379         (CHARC_CHARSET_ID): New macro.
1380         (CHARC_CODE_POINT): New macro.
1381         (CHARC_COLUMNS): New macro.
1382         (CHARC_TO_CHAR): New inline function.
1383         (CHARC_EQ): New inline function.
1384         (CHARC_ASCII_EQ): New inline function.
1385         (CHARC_IS_SPACE): New inline function.
1386         (ASCII_TO_CHARC): New inline function.
1387
1388         * char-ucs.h (encode_char_2): Deleted.
1389         (ENCODE_CHAR): Use `encode_char_1' again.
1390         (breakup_char_1): Likewise.
1391         (CHAR_TO_CHARC): New inline function.
1392
1393         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
1394
1395 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1396
1397         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
1398         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
1399         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
1400         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
1401         (create_string_text_block): Use `CHARC_ASCII_EQ' and
1402         `CHARC_IS_SPACE'.
1403         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
1404
1405         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
1406         `CHARC_CODE_POINT'.
1407         (x_output_display_block): Use `CHARC_CHARSET' and
1408         `CHARC_ASCII_EQ'.
1409
1410         * redisplay-tty.c (tty_output_display_block): Use
1411         `CHARC_ASCII_EQ'.
1412         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
1413
1414         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
1415
1416         * insdel.c (find_charsets_in_charc_string): Use
1417         `CHARC_CHARSET_ID'.
1418         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
1419         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
1420         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
1421         (convert_charc_string_into_malloced_string): Likewise.
1422
1423 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1424
1425         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
1426         instead of <Emchar_dynarr *> for buf; use
1427         `convert_bufbyte_string_into_charc_dynarr' instead of
1428         `convert_bufbyte_string_into_emchar_dynarr'; use
1429         `find_charsets_in_charc_string' instead of
1430         `find_charsets_in_emchar_string'.
1431
1432         * redisplay.h:
1433         - Include "character.h".
1434         (struct rune): New member `cglyph'; delete member `chr'.
1435
1436         * redisplay.c (redisplay_text_width_charc_string): New function;
1437         delete `redisplay_text_width_emchar_string'.
1438         (rtw_charc_dynarr): New variable; renamed from
1439         `rtw_emchar_dynarr'.
1440         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
1441         `rtw_emchar_dynarr'; use
1442         `convert_bufbyte_string_into_charc_dynarr' instead of
1443         `convert_bufbyte_string_into_emchar_dynarr'; use
1444         `redisplay_text_width_charc_string' instead of
1445         `redisplay_text_width_emchar_string'.
1446         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
1447         instead of `rtw_emchar_dynarr'; use
1448         `convert_bufbyte_string_into_charc_dynarr' instead of
1449         `convert_bufbyte_string_into_emchar_dynarr'.
1450         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
1451         `redisplay_text_width_charc_string' instead of
1452         `redisplay_text_width_emchar_string'.
1453         (create_text_block): Modify for <struct rune> change.
1454         (generate_formatted_string_db): Likewise.
1455         (create_string_text_block): Likewise.
1456         (pixel_to_glyph_translation): Likewise.
1457
1458         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
1459         instead of <const Emchar *>.
1460         (x_text_width): Likewise.
1461         (x_output_display_block): Use <Charc_dynarr *> instead
1462         <Emchar_dynarr *>; modify for <structure rune> change.
1463         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
1464         *>.
1465
1466         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
1467         <const Emchar *>; use `charc_string_displayed_columns' instead of
1468         `emchar_string_displayed_columns'.
1469         (tty_output_display_block): Use <Charc_dynarr *> instead of
1470         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
1471         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
1472         (tty_output_charc_dynarr_dynarr): New variable; renamed from
1473         `tty_output_emchar_dynarr_dynarr'.
1474         (tty_output_charc_dynarr): New function; delete
1475         `tty_output_charc_dynarr'.
1476
1477         * redisplay-output.c (compare_runes): Modify for `struct rune'.
1478         (redisplay_output_layout): Use <Charc_dynarr *> instead of
1479         <Emchar_dynarr *> for buf; use
1480         `convert_bufbyte_string_into_charc_dynarr' instead of
1481         `convert_bufbyte_string_into_emchar_dynarr'.
1482
1483         * frame.c (title_string_charc_dynarr): New variable; renamed from
1484         `title_string_emchar_dynarr'.
1485         (generate_title_string): Use `title_string_charc_dynarr' instead
1486         of `title_string_emchar_dynarr'; use
1487         `convert_charc_string_into_malloced_string' instead of
1488         `convert_emchar_string_into_malloced_string'.
1489         (init_frame): Use `title_string_charc_dynarr' instead of
1490         `title_string_emchar_dynarr'.
1491
1492         * console.h:
1493         - Include "character.h".
1494         (struct console_methods): Use <const Charc *> instead of <const
1495         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
1496         <Emchar_dynarr *> in output_string_method.
1497
1498         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
1499         <Emchar_dynarr *>.
1500
1501         * console-stream.c (stream_text_width): Use <const Charc *>
1502         instead of <const Emchar *>.
1503
1504         * character.h (Charc_dynarr): New type.
1505
1506         * char-ucs.h (structure Charc): New structure; define new type
1507         `Charc'.
1508
1509         * char-lb.h (DECODE_CHAR): New inline function.
1510         (encode_char_1): New inline function.
1511         (ENCODE_CHAR): New macro.
1512         (structure Charc): New structure; define new type `Charc'.
1513
1514         * char-1byte.h (Vcharset_control_1): New macro.
1515         (Vcharset_latin_iso8859_1): New macro.
1516         (DECODE_CHAR): New inline function.
1517         (encode_char_1): New inline function.
1518         (ENCODE_CHAR): New macro.
1519         (structure Charc): New structure; define new type `Charc'.
1520
1521         * insdel.c (find_charsets_in_charc_string): New function; delete
1522         `find_charsets_in_emchar_string'.
1523         (charc_string_displayed_columns): New function; delete
1524         `emchar_string_displayed_columns'.
1525         (convert_bufbyte_string_into_charc_dynarr): New function; delete
1526         `convert_bufbyte_string_into_emchar_dynarr'.
1527         (convert_charc_string_into_bufbyte_dynarr): New function; delete
1528         `convert_charc_string_into_bufbyte_dynarr'.
1529         (convert_charc_string_into_malloced_string): New function; delete
1530         `convert_charc_string_into_malloced_string'.
1531
1532         * buffer.h (find_charsets_in_charc_string): New prototype; delete
1533         `find_charsets_in_emchar_string'.
1534         (charc_string_displayed_columns): New prototype; delete
1535         `emchar_string_displayed_columns'.
1536         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
1537         `convert_charc_string_into_bufbyte_dynarr'.
1538         (convert_charc_string_into_malloced_string): New prototype; delete
1539         `convert_charc_string_into_malloced_string'.
1540
1541 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1542
1543         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
1544
1545 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1546
1547         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
1548
1549         * char-ucs.h: Use <short> for <Charset_ID>.
1550
1551         * mule-charset.h, char-1byte.h: Use <unsigned char> for
1552         <Charset_ID>.
1553
1554 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1555
1556         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1557         to 0.16.
1558
1559 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1560
1561         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
1562         variable.
1563         (Qmorohashi_daikanwa): New variable.
1564         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
1565         for `morohashi-daikanwa' attribute.
1566         (Fget_char_attribute): Likewise.
1567         (Fput_char_attribute): Likewise.
1568         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
1569         has the same value of `ideograph-daikanwa'.
1570         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
1571         (vars_of_mule_charset): Setup
1572         `Vcharacter_morohashi_daikanwa_table'.
1573
1574 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1575
1576         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
1577         attributes.
1578         (add_charset_to_list_mapper): Add `key' instead of
1579         `XCHARSET_NAME (value)' to return aliases.
1580
1581 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1582
1583         * mule-charset.c (Vcharacter_ideographic_radical_table): New
1584         variable.
1585         (Vcharacter_ideographic_strokes_table): New variable.
1586         (Qideographic_radical): New variable.
1587         (Qideographic_strokes): New variable.
1588         (Fchar_attribute_alist): Use
1589         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
1590         attribute; use `Vcharacter_ideographic_strokes_table' for
1591         `ideographic-strokes' attribute.
1592         (Fget_char_attribute): Likewise.
1593         (Fput_char_attribute): Likewise.
1594         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
1595         `ideographic-strokes'.
1596         (vars_of_mule_charset): Setup
1597         `Vcharacter_ideographic_radical_table' and
1598         `Vcharacter_ideographic_strokes_table'.
1599
1600 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1601
1602         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
1603         (Qtotal_strokes): New variable.
1604         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
1605         `total-strokes' attribute.
1606         (Fget_char_attribute): Likewise.
1607         (Fput_char_attribute): Likewise.
1608         (syms_of_mule_charset): Add new symbol `total-strokes'.
1609         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
1610
1611 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1612
1613         * mule-charset.c (Vcharacter_decomposition_table): New variable.
1614         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
1615         are found.
1616         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
1617         `->decomposition' attribute.
1618         (Fput_char_attribute): Likewise.
1619         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
1620
1621 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1622
1623         * mule-charset.c (decoding_table_check_elements): New function.
1624         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
1625
1626 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1627
1628         * mule-charset.c (Fset_charset_mapping_table): Use
1629         `put_char_ccs_code_point'.
1630
1631 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1632
1633         * mule-charset.c (decoding_table_put_char): New inline function.
1634         (put_char_ccs_code_point): Use `decoding_table_put_char'.
1635
1636 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1637
1638         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
1639         (XCHARSET_BYTE_SIZE): New macro.
1640         (decoding_table_remove_char): New inline function.
1641         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
1642         `decoding_table_remove_char'.
1643         (remove_char_ccs): Use `decoding_table_remove_char'.
1644         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
1645
1646 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1647
1648         * mule-charset.c (Vcharacter_name_table): New variable.
1649         (Qname): New variable.
1650         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
1651         attribute.
1652         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
1653         `Vcharacter_name_table' for `name' attribute.
1654         (Fremove_char_attribute): Use function `remove_char_ccs'.
1655         (put_char_ccs_code_point): New function.
1656         (remove_char_ccs): New function.
1657         (syms_of_mule_charset): Add new symbol `name'.
1658         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
1659
1660 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1661
1662         * mule-charset.c (make_byte_table): Add new argument `older'.
1663         (make_char_id_table): Likewise.
1664         (copy_char_id_table): Comment out because it is not used.
1665         (put_char_id_table): Modify for `make_byte_table'.
1666         (Fput_char_attribute): Make encoding_table as older object;
1667         inherit older bit of `Vcharacter_composition_table'.
1668         (mark_charset): Don't mark `cs->encoding_table'.
1669         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
1670         normal object; make `Vcharacter_composition_table' as an older
1671         object; delete staticpro for `Vcharacter_composition_table'; make
1672         `Vcharacter_variant_table' as a normal object.
1673
1674         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
1675         (mark_object): Don't check older object in UTF-2000.
1676
1677         * lrecord.h (struct lrecord_header): Add new member `older' in
1678         UTF-2000.
1679         (set_lheader_implementation): Setup `SLI_header->older' in
1680         UTF-2000.
1681         (set_lheader_older_implementation): New macro in UTF-2000.
1682         (OLDER_RECORD_P): New macro in UTF-2000.
1683         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
1684         (alloc_older_lcrecord): New prototype in UTF-2000.
1685         (alloc_older_lcrecord_type): New macro in UTF-2000.
1686
1687 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1688
1689         * mule-charset.c (byte_table_description): Use
1690         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
1691         (char_id_table_description): Delete bogus `, 1'.
1692         (Fget_char_attribute): Refer encoding_table of each coded-charset
1693         to get value of coded-charset attribute of a character.
1694         (Fput_char_attribute): Use `make_older_vector' instead of
1695         `make_vector'; use encoding_table of each coded-charset to store
1696         value of coded-charset attribute of a character.
1697         (Fremove_char_attribute): Use encoding_table of each coded-charset
1698         to store value of coded-charset attribute of a character.
1699         (mark_charset): Mark `cs->encoding_table'; don't mark
1700         `cs->decoding_table'.
1701         (charset_description): Add description of new member
1702         `encoding_table'.
1703         (make_charset): Initialize `encoding_table'.
1704
1705         * char-ucs.h (struct Lisp_Charset): Add new member
1706         `encoding_table'.
1707         (CHARSET_ENCODING_TABLE): New macro.
1708         (XCHARSET_ENCODING_TABLE): New macro.
1709         (charset_code_point): New implementation.
1710         (encode_char_1): Likewise.
1711
1712         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
1713         (disksave_object_finalization_1): Call finalizers of
1714         `all_older_lcrecords' in UTF-2000.
1715         (make_older_vector): New function in UTF-2000.
1716         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
1717         UTF-2000.
1718
1719         * lisp.h (make_older_vector): New prototype in UTF-2000.
1720
1721 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1722
1723         * lrecord.h (enum lrecord_type): Rename
1724         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
1725
1726         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
1727         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
1728         `get_char_code_table'.
1729
1730         * mule-charset.c (mark_char_id_table): Renamed from
1731         `mark_char_code_table'.
1732         (char_id_table_equal): Renamed from `char_code_table_equal'.
1733         (char_id_table_hash): Renamed from `char_code_table_hash'.
1734         (make_char_id_table): Renamed from `make_char_code_table'.
1735         (copy_char_id_table): Renamed from `copy_char_code_table'.
1736         (get_char_id_table): Renamed from `get_char_code_table'.
1737         (put_char_id_table): Renamed from `put_char_code_table'.
1738         (to_char_id): Renamed from `to_char_code'.
1739
1740         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
1741         `Lisp_Char_Code_Table'.
1742         (char_id_table): Renamed from `char_code_table'.
1743         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
1744         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
1745         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
1746         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
1747         (get_char_id_table): Renamed from `get_char_code_table'.
1748
1749 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1750
1751         * lrecord.h (enum lrecord_type): Rename
1752         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
1753
1754         * mule-charset.c (mark_byte_table): Renamed from
1755         `mark_char_byte_table'.
1756         (byte_table_equal): Renamed from `char_byte_table_equal'.
1757         (byte_table_hash): Renamed from `byte_table_hash'.
1758         (make_byte_table): Renamed from `make_byte_table'.
1759         (copy_byte_table): Renamed from `copy_char_byte_table'.
1760
1761         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
1762         `Lisp_Char_Byte_Table'.
1763         (byte_table): Renamed from `char_byte_table'.
1764         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
1765         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
1766         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
1767         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
1768
1769 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1770
1771         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
1772         (dfc_convert_to_internal_format): Likewise.
1773         
1774         * text-coding.c (Fcoding_system_canonical_name_p): New function.
1775         * text-coding.c (Fcoding_system_alias_p): New function.
1776         * text-coding.c (Fcoding_system_aliasee): New function.
1777         * text-coding.c (append_suffix_to_symbol): New function.
1778         * text-coding.c (dangling_coding_system_alias_p): New function.
1779         * text-coding.c (Ffind_coding_system):
1780         * text-coding.c (Fcopy_coding_system):
1781         * text-coding.c (encode_coding_no_conversion):
1782         * text-coding.c (syms_of_file_coding):
1783         * text-coding.c (vars_of_file_coding):
1784         Rewrite coding system alias code.
1785         Allow nested aliases, like symbolic links.
1786         Allow redefinition of coding system aliases.
1787         Prevent existence of dangling coding system aliases.
1788         Eliminate convert_to_external_format.
1789         Eliminate convert_to_internal_format.
1790         
1791         * text-coding.c: Change enum eol_type to eol_type_t.
1792
1793 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1794
1795         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
1796         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
1797
1798         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
1799         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
1800
1801 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1802
1803         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
1804         `ideograph-daikanwa'.
1805
1806         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
1807         (Vcharset_ucs_bmp): Likewise.
1808         (Vcharset_mojikyo): Add new extern variable definition.
1809         (Vcharset_latin_iso8859_2): Deleted because it is not used.
1810         (Vcharset_latin_iso8859_3): Likewise.
1811         (Vcharset_latin_iso8859_4): Likewise.
1812         (Vcharset_latin_iso8859_9): Likewise.
1813         (Vcharset_latin_viscii_lower): Likewise.
1814         (Vcharset_latin_viscii_upper): Likewise.
1815         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
1816         `mojikyo' code-point is used to decode.
1817         (encode_char_2): New function [to convert `mojikyo' code-point to
1818         Mojikyo font encoding].
1819         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
1820         (breakup_char_1): Likewise.
1821         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
1822
1823 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1824
1825         * text-coding.c (Fmake_coding_system): Add document about
1826         `disable-composition' property.
1827
1828 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1829
1830         * text-coding.c (Qdisable_composition): New variable; delete
1831         `Qcomposite'.
1832         (Fmake_coding_system): Add new property `disable-composite';
1833         delete property `composite'.
1834         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
1835         instead of `!CODING_SYSTEM_COMPOSITE'.
1836         (syms_of_file_coding): Add new symbol `disable-composition';
1837         delete symbol `composite'.
1838
1839         * file-coding.h (struct Lisp_Coding_System): Add
1840         `disable_composition'; delete `enable_composition'.
1841         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
1842         `CODING_SYSTEM_COMPOSITE'.
1843         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
1844         `XCODING_SYSTEM_COMPOSITE'.
1845
1846 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1847
1848         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1849         to 0.15.
1850
1851 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1852
1853         * text-coding.c (Qcomposite): New variable.
1854         (Fmake_coding_system): Add new property `composite'.
1855         (struct decoding_stream): Add `combined_char_count',
1856         `combined_chars' and `combining_table' in UTF-2000.
1857         (COMPOSE_FLUSH_CHARS): New macro.
1858         (COMPOSE_ADD_CHAR): New macro.
1859         (reset_decoding_stream): Reset `str->combined_char_count' and
1860         `str->combining_table' in UTF-2000.
1861         (decode_coding_iso2022): Modify for character-decomposition.
1862         (syms_of_file_coding): Add new symbol `composite'.
1863
1864 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1865
1866         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
1867         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
1868         of `Vcharacter_composition_table' if `->decomposition' property
1869         has only 1 element.
1870         (Qlatin_tcvn5712): New variable.
1871         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
1872         (complex_vars_of_mule_charset): Add new coded-charset
1873         `latin-tcvn5712'.
1874
1875         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
1876
1877 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1878
1879         * file-coding.h (struct Lisp_Coding_System): Add
1880         `enable_composition'.
1881         (CODING_SYSTEM_COMPOSITE): New macro.
1882         (XCODING_SYSTEM_COMPOSITE): New macro.
1883
1884 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
1885
1886         * mule-canna.c (c2mu): Fix problem with UTF-2000.
1887
1888 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
1889
1890         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
1891         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
1892
1893 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
1894
1895         * mule-charset.c (Vcharset_mojikyo): New variable.
1896         (Fdefine_char): Don't use coded-charset which does not have
1897         non-builtin character range to allocate character-id.
1898         (Qmojikyo): New variable.
1899         (syms_of_mule_charset): Add new symbol `mojikyo'.
1900         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
1901
1902         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
1903         (LEADING_BYTE_MOJIKYO): New macro.
1904         (MIN_CHAR_MOJIKYO): New macro.
1905         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
1906         (MAX_CHAR_MOJIKYO): New macro.
1907
1908 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
1909
1910         * mule-charset.c (remove_char_attribute): Fixed.
1911
1912 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
1913
1914         * mule-charset.c (remove_char_attribute): New function.
1915         (Fremove_char_attribute): New function.
1916         (encode_builtin_char_1): Comment out builtin-support for
1917         greek-iso8859-7 and cyrillic-iso8859-5.
1918         (Fdecode_char): Check `code' is an integer.
1919         (syms_of_mule_charset): Add `remove-char-attribute'.
1920         (MIN_CHAR_GREEK): Deleted.
1921         (MAX_CHAR_GREEK): Likewise.
1922         (MIN_CHAR_CYRILLIC): Likewise.
1923         (MAX_CHAR_CYRILLIC): Likewise.
1924         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
1925         MAX_CHAR_GREEK for `greek-iso8859-7'.
1926
1927         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
1928         (MAX_CHAR_GREEK): Likewise.
1929         (MIN_CHAR_CYRILLIC): Likewise.
1930         (MAX_CHAR_CYRILLIC): Likewise.
1931
1932 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
1933
1934         * mule-charset.c (Fdefine_char): Fix problem when new code-point
1935         format is used without `ucs' property.
1936         (Fdecode_char): Fix problem with GR representation.
1937         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
1938         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
1939
1940 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
1941
1942         * mule-charset.c (make_builtin_char): New function.
1943         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
1944         (Fset_charset_mapping_table): Modify for new representation of
1945         code-point.
1946         (Fdecode_char): New function.
1947         (syms_of_mule_charset): Add new builtin function `decode-char' in
1948         UTF-2000.
1949
1950         * char-ucs.h (make_builtin_char): New prototype.
1951         (DECODE_CHAR): New inline function.
1952         (MAKE_CHAR): Use `DECODE_CHAR'.
1953
1954 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
1955
1956         * text-coding.c (parse_charset_conversion_specs): Use
1957         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
1958         `XCHARSET_TYPE'.
1959         (iso2022_designate): Likewise.
1960
1961         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
1962         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
1963
1964         * mule-charset.c (Vcharset_ucs): New variable.
1965         (print_charset): Change design; use `CHARSET_CHARS' and
1966         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
1967         (make_charset): Change signature to specify `chars' and
1968         `dimension' instead of `type'.
1969         (range_charset_code_point): Modify for 256^n-set.
1970         (encode_builtin_char_1): Encode as `ucs' in default.
1971         (Fmake_charset): Modify for `make_charset'.
1972         (Fmake_reverse_direction_charset): Likewise.
1973         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
1974         UTF-2000.
1975         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
1976         for `make_charset'.
1977
1978         * char-ucs.h (Vcharset_ucs): New variable.
1979         (LEADING_BYTE_UCS): New macro.
1980         (struct Lisp_Charset): Delete `type'; change type of `dimension'
1981         and `chars' to `unsigned short' from `unsigned int'.
1982         (CHARSET_TYPE): Deleted.
1983         (XCHARSET_TYPE): Deleted.
1984
1985 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
1986
1987         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
1988
1989         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
1990         (ENCODE_CHAR): New macro.
1991
1992 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
1993
1994         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1995         to 0.14 (Kawachi-Katakami).
1996
1997 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
1998
1999         * text-coding.c (char_encode_shift_jis): Modify for
2000         `charset_code_point'.
2001         (char_encode_iso2022): Likewise.
2002
2003         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
2004         (integer) instead of list of <Lisp_Object>s (integers) as the
2005         format of code-point of a coded-charset.
2006         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2007         (encode_builtin_char_1): New function; delete
2008         `split_builtin_char'.
2009         (charset_code_point): Return <int> instead of <Lisp_Object>.
2010         (Fsplit_char): Don't use `SPLIT_CHAR'.
2011
2012         * char-ucs.h (encode_builtin_char_1): New prototype; delete
2013         prototype for `split_builtin_char'.
2014         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2015         (charset_code_point): Likewise.
2016         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
2017         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
2018
2019 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
2020
2021         * mule-charset.c (complex_vars_of_mule_charset): Don't define
2022         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
2023
2024 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2025
2026         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
2027
2028         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
2029         (MAX_CHAR_OBS_94x94): Deleted.
2030
2031 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2032
2033         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
2034
2035         * char-ucs.h (MAX_CHAR_BMP): New macro.
2036
2037 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2038
2039         * text-coding.c: Sync with r21-2-24.
2040
2041 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
2042
2043         * file-coding.c: Modify for UTF-2000.
2044
2045 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2046
2047         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2048         to 0.13 (Takaida).
2049
2050 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
2051
2052         * mule-charset.c (split_builtin_char): Delete builtin support for
2053         `katakana-jisx0201'.
2054         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
2055         BMP area in builtin representation.
2056
2057         * char-ucs.h (MAKE_CHAR): Delete builtin support for
2058         `Vcharset_katakana_jisx0201'.
2059
2060 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
2061
2062         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
2063         (Qisolated): New variable.
2064         (Qinitial): New variable.
2065         (Qmedial): New variable.
2066         (Qfinal): New variable.
2067         (Qvertical): New variable.
2068         (Qsmall): New variable.
2069         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
2070         `Qvertical' and `Qsmall'.
2071         (Qmojikyo_pj_[1 .. 21]): New variable.
2072         (syms_of_mule_charset): Add new symbols `isolated', `initial',
2073         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
2074         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
2075         .. 21]'.
2076
2077 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
2078
2079         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
2080         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
2081         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
2082
2083 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2084
2085         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
2086         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
2087         BMP.
2088         (Qjapanese_jisx0208_1990): New variable.
2089         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
2090         (complex_vars_of_mule_charset): Add new coded-charset
2091         `japanese-jisx0208-1990'.
2092
2093         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
2094         (MIN_CHAR_JIS_X0208_1990): New macro.
2095         (MAX_CHAR_JIS_X0208_1990): New macro.
2096
2097 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2098
2099         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
2100         coded-charset is not found.
2101
2102 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2103
2104         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
2105         (Fdefine_char): Use `Fmake_char'.
2106
2107 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2108
2109         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
2110         (Vcharset_hiragana_jisx0208): Deleted.
2111         (Vcharset_katakana_jisx0208): Deleted.
2112         (Qideograph_daikanwa): New variable.
2113         (Qhiragana_jisx0208): Deleted.
2114         (Qkatakana_jisx0208): Deleted.
2115         (split_builtin_char): Split `ideograph-daikanwa'.
2116         (Fsplit_char): New implementation for UTF-2000.
2117         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
2118         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
2119         (complex_vars_of_mule_charset): Add new coded-charset
2120         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
2121         `katakana-jisx0208'.
2122
2123         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
2124         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
2125         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
2126         (MIN_CHAR_DAIKANWA): New macro.
2127         (MAX_CHAR_DAIKANWA): New macro.
2128
2129 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2130
2131         * data.c (Fstring_to_number): Don't recognize floating point if
2132         base is not 10.
2133
2134 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2135
2136         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
2137
2138 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2139
2140         * mule-charset.c (Qsquare): New variable.
2141         (to_char_code): Add `Qsquare'.
2142         (syms_of_mule_charset): Add new symbol `square'.
2143
2144 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2145
2146         * mule-charset.c (Qcircle): New variable.
2147         (to_char_code): Add `Qcircle'.
2148         (syms_of_mule_charset): Add new symbol `circle'.
2149
2150 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2151
2152         * mule-charset.c (Qfont): New variable.
2153         (to_char_code): Add `Qfont'.
2154         (syms_of_mule_charset): Add new symbol `font'.
2155
2156 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2157
2158         * mule-charset.c (Qsub): New variable.
2159         (to_char_code): Add `Qsub'.
2160         (syms_of_mule_charset): Add new symbol `sub'.
2161
2162 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2163
2164         * mule-charset.c (Fput_char_attribute): Convert each element of
2165         VALUE to GL position if ATTRIBUTE is a GR-set,
2166
2167 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2168
2169         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
2170         coded-charset is a GR-set.
2171
2172 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2173
2174         * mule-charset.c (Fput_char_attribute): Check each element of
2175         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
2176
2177 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2178
2179         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
2180         UTF-2000.
2181         (Qethiopic_ucs): New variable in UTF-2000.
2182         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
2183         (complex_vars_of_mule_charset): Add new coded-charset
2184         `ethiopic-ucs' in UTF-2000.
2185
2186         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
2187         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2188         9)'.
2189         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2190         10)'.
2191         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
2192
2193 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
2194
2195         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
2196         `ascii'.
2197
2198 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2199
2200         * mule-charset.c (Vcharacter_variant_table): New variable.
2201         (Q_ucs): New variable.
2202         (Fchar_variants): New function.
2203         (Fput_char_attribute): Register `->ucs' value to
2204         `Vcharacter_variant_table'.
2205         (syms_of_mule_charset): Add new function `char-variants' and new
2206         symbol `->ucs'.
2207         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
2208
2209 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2210
2211         * mule-charset.c (get_char_code_table): Allow negative character
2212         code.
2213         (put_char_code_table): Likewise.
2214         (Vcharacter_composition_table): New variable.
2215         (Q_decomposition): New variable.
2216         (Qwide): New variable.
2217         (Qnarrow): New variable.
2218         (Qcompat): New variable.
2219         (QnoBreak): New variable.
2220         (Qsuper): New variable.
2221         (Qfraction): New variable.
2222         (to_char_code): New function.
2223         (Fget_composite_char): New function.
2224         (Fput_char_attribute): Register `->decomposition' value to
2225         `Vcharacter_composition_table'.
2226         (syms_of_mule_charset): Add new function `get-composite-char', new
2227         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
2228         `super' and `fraction'.
2229         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
2230
2231 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2232
2233         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
2234         character; copy the return value.
2235
2236 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2237
2238         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
2239
2240         * mule-charset.c (range_charset_code_point): Must use make_int.
2241         (split_builtin_char): New function.
2242
2243 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2244
2245         * mule-charset.c (char_byte_table): Change name from
2246         "char-code-table" to "char-byte-table".
2247         (mark_char_code_table): New function.
2248         (char_code_table_equal): New function.
2249         (char_code_table_hash): New function.
2250         (char_code_table_description): New constant.
2251         (char_code_table): New type.
2252         (make_char_code_table): New function.
2253         (copy_char_code_table): New function.
2254         (get_char_code_table): Modify for `char_code_table' type.
2255         (put_char_code_table): Likewise.
2256         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
2257         (Kashiwara).
2258
2259         * char-ucs.h (char_code_table): New type.
2260         (XCHAR_CODE_TABLE): New macro.
2261         (XSETCHAR_CODE_TABLE): New macro.
2262         (CHAR_CODE_TABLE_P): New macro.
2263         (GC_CHAR_CODE_TABLE_P): New macro.
2264         (struct Lisp_Char_Code_Table): New structure.
2265
2266 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2267
2268         * mule-charset.c (Fmake_charset): Setup byte_offset for
2269         {94|96}^n-set.
2270
2271 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2272
2273         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
2274         character.
2275
2276 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2277
2278         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
2279         is found.
2280
2281 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2282
2283         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
2284         charset, it is regarded as a charset.
2285         (put_char_attribute): New function in UTF-2000.
2286         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
2287         charset, mapping-table of the charset is modified.
2288         (Fdefine_char): New function in UTF-2000.
2289         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
2290         `Fput_char_attribute'.
2291         (syms_of_mule_charset): Add new function `define-char' and new
2292         symbol `ucs' in UTF-2000.
2293         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
2294
2295 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2296
2297         * mule-charset.c (Fcharset_name): Define `byte_offset' in
2298         non-UTF-2000 configuration.
2299
2300 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2301
2302         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
2303         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
2304
2305         * mule-charset.c (mark_charset): `cs->encoding_table' has been
2306         deleted.
2307         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
2308         (Fset_charset_mapping_table): Likewise.
2309
2310         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
2311         (CHARSET_ENCODING_TABLE): Delete.
2312         (XCHARSET_ENCODING_TABLE): Delete.
2313         (charset_code_point): New interface.
2314
2315 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2316
2317         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
2318         instead of `charset_get_byte1' and `charset_get_byte2'.
2319
2320         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
2321         (charset_get_byte2): Deleted.
2322
2323 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2324
2325         * char-ucs.h (SPLIT_CHAR): New inline function.
2326         (breakup_char_1): Use `SPLIT_CHAR'.
2327
2328         * mule-charset.c (range_charset_code_point): New function.
2329         (charset_code_point): New function.
2330
2331         * char-ucs.h (range_charset_code_point): New interface.
2332         (breakup_char_1): Use `range_charset_code_point'.
2333
2334 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2335
2336         * mule-charset.c (Fmake_charset): Delete unused local variable
2337         `code_offset'.
2338
2339         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
2340         (breakup_char_1): Find a charset and code-point in
2341         `Vcharacter_attribute_table'.
2342
2343 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2344
2345         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2346         to 0.10 (Yao).
2347
2348 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
2349
2350         * mule-charset.c (Vcharacter_attribute_table): New variable.
2351         (Fchar_attribute_alist): New function.
2352         (Fget_char_attribute): New function.
2353         (Fput_char_attribute): New function.
2354         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
2355         too.
2356         (syms_of_mule_charset): Add new function `char-attribute-alist',
2357         `get-char-attribute' and `put-char-attribute'.
2358         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
2359
2360 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
2361
2362         * mule-charset.c (Fmake_charset): Just use
2363         `get_unallocated_leading_byte'.
2364
2365         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
2366         sets; don't use final-byte based number for private sets.
2367
2368 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2369
2370         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
2371         integer.
2372
2373 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2374
2375         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2376         to 0.9.
2377
2378 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2379
2380         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
2381         of `CHAR_LEADING_BYTE' in UTF-2000.
2382
2383         * insdel.c (find_charsets_in_bufbyte_string): Use
2384         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2385         (find_charsets_in_emchar_string): Likewise.
2386
2387         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
2388         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2389
2390         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
2391         (CHAR_CHARSET_ID): New macro.
2392
2393 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2394
2395         * chartab.c (get_char_table): Don't use type `Charset_ID' for
2396         charset-id - MIN_LEADING_BYTE.
2397         (put_char_table): Likewise.
2398
2399 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2400
2401         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
2402         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
2403         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
2404         (CHARSET_ID_OFFSET): New macro.
2405         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
2406         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
2407         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
2408         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2409         4).
2410         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2411         5).
2412         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
2413         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
2414         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
2415         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
2416         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
2417
2418 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2419
2420         * mule-charset.c (next_allocated_leading_byte): New variable in
2421         UTF-2000.
2422         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
2423         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
2424         (get_unallocated_leading_byte): Simply use
2425         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
2426         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
2427         UTF-2000.
2428
2429         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
2430         (MAX_LEADING_BYTE_PRIVATE): New macro.
2431         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
2432         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
2433
2434 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2435
2436         * mule-charset.c (Fmake_charset): Allocate final-byte based
2437         charset-id for 94-set, 96-set and 94x94-set.
2438
2439 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2440
2441         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
2442         ambiguous `else'.
2443         (Fmake_charset): Likewise.
2444         (complex_vars_of_mule_charset): Modify the font registry of
2445         `ucs-bmp' not to match `Ethiopic-Unicode'.
2446
2447 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2448
2449         * mule-charset.c (complex_vars_of_mule_charset): Add font
2450         registory of `ucs-bmp'.
2451
2452 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2453
2454         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
2455         coded-charsets in `default-coded-charset-priority-list' when
2456         breaking up a character.
2457
2458         * mule-charset.c (Vcharset_latin_viscii): New variable.
2459         (Qlatin_viscii): New variable.
2460         (make_charset): Don't use `decoding_table'.
2461         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
2462         byte_offset.
2463         (Fset_charset_mapping_table): New implementation.
2464         (syms_of_mule_charset): Add new symbol `latin-viscii'.
2465         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
2466         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
2467         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
2468         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
2469         charset `latin_viscii'.
2470
2471         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
2472         (CHARSET_TYPE_94X94): Change to 1 from 2.
2473         (CHARSET_TYPE_96): Change to 2 from 1.
2474         (CHARSET_TYPE_128): New macro.
2475         (CHARSET_TYPE_128X128): Change to 5 from 4.
2476         (CHARSET_TYPE_256): New macro.
2477         (CHARSET_TYPE_256X256): Change to 7 from 5.
2478         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
2479
2480 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2481
2482         * text-coding.c (char_encode_shift_jis): Refer
2483         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
2484         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
2485
2486         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
2487         (char_byte_table_equal): New function in UTF-2000.
2488         (char_byte_table_hash): New function in UTF-2000.
2489         (char_byte_table_description): New constant in UTF-2000.
2490         (char_byte_table): New type in UTF-2000.
2491         (make_char_byte_table): New function in UTF-2000.
2492         (copy_char_byte_table): New function in UTF-2000.
2493         (make_char_code_table): New macro in UTF-2000.
2494         (get_char_code_table): New function in UTF-2000.
2495         (put_char_code_table): New function in UTF-2000.
2496         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2497         (charset_description): Add setting in UTF-2000.
2498         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
2499         `CHARSET_TO_BYTE1_TABLE(cs)'.
2500         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
2501         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
2502         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
2503         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
2504         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
2505         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
2506         `CHARSET_TO_BYTE2_TABLE(cs)'.
2507
2508         * char-ucs.h (char_byte_table): New type.
2509         (XCHAR_BYTE_TABLE): New macro.
2510         (XSETCHAR_BYTE_TABLE): New macro.
2511         (CHAR_BYTE_TABLE_P): New macro.
2512         (GC_CHAR_BYTE_TABLE_P): New macro.
2513         (struct Lisp_Char_Byte_Table): New structure.
2514         (get_char_code_table): New interface.
2515         (Emchar_to_byte_table): Deleted.
2516         (get_byte_from_character_table): Deleted.
2517         (struct Lisp_Charset): Add `encoding_table'; delete
2518         `to_byte1_table' and `to_byte2_table'.
2519         (CHARSET_ENCODING_TABLE): New macro.
2520         (CHARSET_TO_BYTE1_TABLE): Deleted.
2521         (CHARSET_TO_BYTE2_TABLE): Deleted.
2522         (XCHARSET_ENCODING_TABLE): New macro.
2523         (XCHARSET_TO_BYTE1_TABLE): Deleted.
2524         (XCHARSET_TO_BYTE2_TABLE): Deleted.
2525
2526 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2527
2528         * mule-charset.c (syms_of_mule_charset): Delete charset alias
2529         `vietnamese-viscii-*'.
2530
2531 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2532
2533         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
2534         (Qvietnamese_viscii_upper): New variable.
2535         (Fdefine_charset_alias): New function.
2536         (syms_of_mule_charset): Add new function `define-charset-alias'.
2537         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
2538         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
2539         `latin-viscii-*'.
2540
2541 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
2542
2543         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
2544         (MAX_CHAR_OBS_94x94): New macro.
2545         (breakup_char_1): Support obsolete XEmacs-UCS private code space
2546         for 94x94 sets.
2547
2548         * mule-charset.c (put_byte_from_character_table): Change unit size
2549         from 128 to 256.
2550         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
2551         not defined.
2552         (Fmake_reverse_direction_charset): Modify dummy argument of
2553         `make_charset' for non-UTF-2000 environment.
2554
2555 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2556
2557         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
2558
2559         * mule-charset.c (destroy_byte_from_character_table): New macro.
2560         (latin_jisx0201_to_ucs): Deleted.
2561         (latin_iso8859_2_to_ucs): Deleted.
2562         (latin_iso8859_3_to_ucs): Deleted.
2563         (latin_iso8859_4_to_ucs): Deleted.
2564         (latin_iso8859_9_to_ucs): Deleted.
2565         (latin_viscii_lower_to_ucs): Deleted.
2566         (latin_viscii_upper_to_ucs): Deleted.
2567         (mark_charset): Mark `cs->decoding_table'.
2568         (Fcharset_mapping_table): Fix DOC-string.
2569         (Fset_charset_mapping_table): New function.
2570         (syms_of_mule_charset): Add nwe function
2571         `set-charset-mapping-table'.
2572         (complex_vars_of_mule_charset): Don't setup and use
2573         `latin_*_to_ucs'.
2574
2575 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2576
2577         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
2578         charset.
2579
2580 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2581
2582         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
2583         (Vcharset_katakana_jisx0208): New variable.
2584         (Qhiragana_jisx0208): New variable.
2585         (Qkatakana_jisx0208): New variable.
2586         (make_charset): Add new argument `byte_offset'.
2587         (charset_get_byte1): Modify for new coded-charset definition; use
2588         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
2589         `XCHARSET_BYTE_OFFSET'.
2590         (Fmake_charset): Modify for `make_charset'.
2591         (Fmake_reverse_direction_charset): Likewise.
2592         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
2593         `katakana-jisx0208'.
2594         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
2595         `.'  in font registry of charset `katakana-jisx0201',
2596         `latin-jisx0201', `vietnamese-viscii-lower' and
2597         `vietnamese-viscii-upper'; modify DOC-string of charset
2598         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
2599         registry of charset `japanese-jisx0208' not to use font for JIS
2600         X0208:1990; add new charset `hiragana-jisx0208' and
2601         `katakana-jisx0208'.
2602
2603         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
2604         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
2605         (struct Lisp_Charset): Add `byte_offset'.
2606         (CHARSET_BYTE_OFFSET): New macro.
2607         (XCHARSET_UCS_MIN): New macro.
2608         (XCHARSET_UCS_MAX): New macro.
2609         (XCHARSET_CODE_OFFSET): New macro.
2610         (XCHARSET_BYTE_OFFSET): New macro.
2611         (MIN_CHAR_HIRAGANA): New macro.
2612         (MAX_CHAR_HIRAGANA): New macro.
2613         (MIN_CHAR_KATAKANA): New macro.
2614         (MAX_CHAR_KATAKANA): New macro.
2615         (MAKE_CHAR): Modify for new coded-charset definition; use
2616         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
2617         `XCHARSET_BYTE_OFFSET'.
2618
2619 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2620
2621         * mule-charset.c (CHAR96): Deleted.
2622         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
2623         <Lisp_Object>.
2624         (latin_iso8859_2_to_ucs): Likewise.
2625         (latin_iso8859_3_to_ucs): Likewise.
2626         (latin_iso8859_4_to_ucs): Likewise.
2627         (latin_iso8859_9_to_ucs): Likewise.
2628         (latin_viscii_lower_to_ucs): Likewise.
2629         (latin_viscii_upper_to_ucs): Likewise.
2630         (latin_tcvn5712_to_ucs): Commented out.
2631         (make_charset): Change type of argument `decoding_table' from
2632         <Emchar*> to <Lisp_Object> [vector of characters].
2633         (Fmake_charset): Modify for `make_charset'.
2634         (Fmake_reverse_direction_charset): Likewise.
2635         (Fcharset_mapping_table): New function in UTF-2000.
2636         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
2637         UTF-2000.
2638         (complex_vars_of_mule_charset): Modify for type change of
2639         `*_to_ucs'; modify for `make_charset'.
2640
2641         * char-ucs.h (struct Lisp_Charset): Change type of
2642         `decoding_table' from <Emchar*> to <Lisp_Object>.
2643         (MAKE_CHAR): Modify for new specification of `decoding_table'.
2644
2645 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
2646
2647         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
2648         error with non-UTF-2000-Mule.
2649
2650 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
2651
2652         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
2653         in lisp again].
2654         (Vcharset_chinese_cns11643_4): Likewise.
2655         (Vcharset_chinese_cns11643_5): Likewise.
2656         (Vcharset_chinese_cns11643_6): Likewise.
2657         (Vcharset_chinese_cns11643_7): Likewise.
2658         (Qchinese_cns11643_3): Likewise.
2659         (Qchinese_cns11643_4): Likewise.
2660         (Qchinese_cns11643_5): Likewise.
2661         (Qchinese_cns11643_6): Likewise.
2662         (Qchinese_cns11643_7): Likewise.
2663         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
2664         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
2665         and `chinese-cns11643-7' to lisp/mule/chinese.el.
2666         (complex_vars_of_mule_charset): Likewise.
2667
2668 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2669
2670         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
2671         96-set.
2672         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
2673         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
2674
2675 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
2676
2677         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
2678         0xFF60.
2679         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
2680         (breakup_char_1): Likewise.
2681
2682         * text-coding.c (char_encode_iso2022): Keep designated charsets if
2683         one of them includes the specified character.
2684
2685 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
2686
2687         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
2688
2689 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
2690
2691         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
2692
2693 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
2694
2695         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
2696         definition for non-UTF-2000 Mule.
2697         (latin_iso8859_3_to_ucs): Likewise.
2698         (latin_iso8859_4_to_ucs): Likewise.
2699         (latin_iso8859_9_to_ucs): Likewise.
2700         (latin_jisx0201_to_ucs): Likewise.
2701         (MIN_CHAR_THAI): Likewise.
2702         (MAX_CHAR_THAI): Likewise.
2703         (MIN_CHAR_GREEK): Likewise.
2704         (MAX_CHAR_GREEK): Likewise.
2705         (MIN_CHAR_HEBREW): Likewise.
2706         (MAX_CHAR_HEBREW): Likewise.
2707         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
2708         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
2709         (MIN_CHAR_CYRILLIC): Likewise.
2710         (MAX_CHAR_CYRILLIC): Likewise.
2711
2712 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
2713
2714         * char-ucs.h (breakup_char_1): Use
2715         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
2716         thai-tis620 and katakana-jisx0201 area.
2717
2718 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2719
2720         * char-ucs.h (breakup_char_1): Use
2721         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
2722         area.
2723
2724         * text-coding.c (reset_encoding_stream): Fixed.
2725         (char_encode_ucs4): Delete `& 255'.
2726
2727         * char-ucs.h (breakup_char_1): Use
2728         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
2729
2730 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2731
2732         * file-coding.c (Fmake_coding_system): Don't set up
2733         `codesys->fixed.size'.
2734         (encode_coding_no_conversion): Don't refer
2735         `str->codesys->fixed.size'.
2736
2737 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2738
2739         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
2740         (latin_a_char_to_byte1): Deleted.
2741         (latin_a_char_to_byte2): Deleted.
2742
2743 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2744
2745         * mule-charset.c (make_charset): Add new argument `ucs_min',
2746         `ucs_max' and `code_offset'.
2747         (charset_get_byte1): New implementation [delete specific charset
2748         depended implementations].
2749         (Fmake_charset): Modify for `make_charset'.
2750         (Fmake_reverse_direction_charset): Likewise.
2751         (complex_vars_of_mule_charset): Likewise.
2752
2753         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
2754         `code_offset'.
2755         (CHARSET_UCS_MIN): New macro.
2756         (CHARSET_UCS_MAX): New macro.
2757         (CHARSET_CODE_OFFSET): New macro.
2758         (MAKE_CHAR): Delete charset depended definitions [except
2759         katakana-jisx0201].
2760
2761 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
2762
2763         * char-ucs.h (breakup_char_1): Use
2764         `Vdefault_coded_charset_priority_list' for C0-Controls,
2765         Basic-Latin, C1-Controls and Latin-1-Supplement area.
2766
2767 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2768
2769         * char-ucs.h (charset_get_byte1): New function.
2770         (XCHARSET_GET_BYTE1): Deleted.
2771         (charset_get_byte2): New function.
2772         (XCHARSET_GET_BYTE2): Deleted.
2773         (Vdefault_coded_charset_priority_list): New external variable.
2774         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
2775         `Vdefault_preferred_coded_charset_list'.
2776
2777         * mule-charset.c (charset_get_byte1): New function.
2778         (charset_get_byte2): New function.
2779         (Vdefault_coded_charset_priority_list): New variable.
2780         (vars_of_mule_charset): Add new variable
2781         `default-coded-charset-priority-list'.
2782
2783 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2784
2785         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
2786         (XCHARSET_GET_BYTE2): New inline function.
2787         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
2788         `XCHARSET_GET_BYTE2'.
2789
2790 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2791
2792         * mule-charset.c (make_charset): Initialize
2793         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
2794         NULL if table is not defined.
2795
2796 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2797
2798         * text-coding.c (char_encode_shift_jis): Use
2799         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
2800         `ucs_to_latin_jisx0201'.
2801
2802         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
2803         (ucs_to_latin_iso8859_2): Deleted.
2804         (ucs_to_latin_iso8859_3): Deleted.
2805         (ucs_to_latin_iso8859_4): Deleted.
2806         (ucs_to_latin_iso8859_9): Deleted.
2807         (ucs_to_latin_viscii_lower): Deleted.
2808         (ucs_to_latin_viscii_upper): Deleted.
2809         (ucs_to_latin_tcvn5712): Deleted.
2810         (make_charset): Add new argument `decoding_table'; set up
2811         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
2812         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
2813         `decoding_table' is defined in UTF-2000.
2814         (Fmake_charset): Modify for `make_charset'.
2815         (Fmake_reverse_direction_charset): Likewise.
2816         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
2817         and `GENERATE_96_SET'.
2818
2819         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
2820         (ucs_to_latin_jisx0201): Deleted.
2821         (latin_iso8859_2_to_ucs): Deleted.
2822         (ucs_to_latin_iso8859_2): Deleted.
2823         (latin_iso8859_3_to_ucs): Deleted.
2824         (ucs_to_latin_iso8859_3): Deleted.
2825         (latin_iso8859_4_to_ucs): Deleted.
2826         (ucs_to_latin_iso8859_4): Deleted.
2827         (latin_iso8859_9_to_ucs): Deleted.
2828         (ucs_to_latin_iso8859_9): Deleted.
2829         (latin_viscii_lower_to_ucs): Deleted.
2830         (ucs_to_latin_viscii_lower): Deleted.
2831         (latin_viscii_upper_to_ucs): Deleted.
2832         (ucs_to_latin_viscii_upper): Deleted.
2833         (struct Lisp_Charset): Renamed `encoding_table' to
2834         `to_byte1_table'; add `to_byte2_table'.
2835         (CHARSET_DECODING_TABLE): New macro.
2836         (CHARSET_TO_BYTE1_TABLE): New macro.
2837         (CHARSET_TO_BYTE2_TABLE): New macro.
2838         (XCHARSET_DECODING_TABLE): New macro.
2839         (XCHARSET_TO_BYTE1_TABLE): New macro.
2840         (XCHARSET_TO_BYTE2_TABLE): New macro.
2841         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
2842         tables.
2843         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
2844         don't use `ucs_to_*' tables.
2845
2846 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2847
2848         * text-coding.c (Fmake_coding_system): Don't set up
2849         `codesys->fixed.size'.
2850         (encode_coding_no_conversion): Use `if' instead of `switch'.
2851
2852         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
2853
2854 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2855
2856         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
2857         (Fmake_charset): Modify for `make_charset'.
2858         (Fmake_reverse_direction_charset): Likewise.
2859         (complex_vars_of_mule_charset): Likewise.
2860
2861 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2862
2863         * text-coding.c (char_encode_shift_jis): Use table
2864         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
2865
2866 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2867
2868         * text-coding.c (text_encode_generic): Use `if' instead of
2869         `switch'.
2870         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
2871         decode JIS-Latin.
2872
2873 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2874
2875         * text-coding.c (encode_coding_sjis): Deleted.
2876         (char_encode_shift_jis): New function.
2877         (char_finish_shift_jis): New function.
2878         (reset_encoding_stream): Set up `encode_char' and `finish' for
2879         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
2880         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
2881         (char_encode_utf8): Treat `eol_type'.
2882
2883 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2884
2885         * file-coding.c (decode_coding_iso2022): Use
2886         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
2887
2888 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2889
2890         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2891         to 0.7 (Hirano).
2892
2893 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2894
2895         * char-lb.h (CHAR_COLUMNS): New macro.
2896
2897 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2898
2899         * text-coding.c (char_encode_ucs4): New function.
2900         (char_finish_ucs4): New function.
2901         (encode_coding_ucs4): Deleted.
2902         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
2903         (text_encode_generic): Delete local variable `charset' and `half'.
2904         (ucs_to_mule_table): Deleted.
2905         (mule_to_ucs_table): Deleted.
2906         (Fset_ucs_char): Deleted.
2907         (ucs_to_char): Deleted.
2908         (Fucs_char): Deleted.
2909         (Fset_char_ucs): Deleted.
2910         (Fchar_ucs): Deleted.
2911         (decode_ucs4): Deleted.
2912         (mule_char_to_ucs4): Deleted.
2913         (encode_ucs4): Deleted.
2914         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
2915         (decode_coding_utf8): Likewise.
2916         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
2917         (char_encode_iso2022): Fixed.
2918         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
2919         `Fset_char_ucs' and `Fchar_ucs'.
2920         (complex_vars_of_file_coding): Don't initialize
2921         `ucs_to_mule_table'.
2922
2923         * objects-tty.c (tty_initialize_font_instance): Don't use
2924         `XCHARSET_COLUMNS'.
2925
2926         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
2927         UTF-2000.
2928
2929         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
2930         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
2931
2932         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
2933         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
2934         (emchar_string_displayed_columns): Likewise.
2935
2936         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
2937         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
2938         (string_column_at_point): Likewise.
2939         (Fmove_to_column): Likewise.
2940
2941         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
2942         `encoding_table' and `decoding_table'.
2943         (CHARSET_REP_BYTES): Deleted.
2944         (XCHARSET_REP_BYTES): Deleted.
2945         (XCHARSET_COLUMNS): Deleted.
2946         (CHAR_COLUMNS): New macro.
2947         (lookup_composite_char): Deleted unconditionally.
2948         (composite_char_string): Likewise.
2949
2950 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2951
2952         * char-ucs.h (Emchar_to_byte_table): New type.
2953         (get_byte_from_character_table): New function interface.
2954         (Vcharset_latin_jisx0201): New variable.
2955         (latin_jisx0201_to_ucs): New variable.
2956         (ucs_to_latin_jisx0201): New variable.
2957         (Vcharset_latin_iso8859_2): New variable.
2958         (latin_iso8859_2_to_ucs): New variable.
2959         (ucs_to_latin_iso8859_2): New variable.
2960         (Vcharset_latin_iso8859_3): New variable.
2961         (latin_iso8859_3_to_ucs): New variable.
2962         (ucs_to_latin_iso8859_3): New variable.
2963         (Vcharset_latin_iso8859_4): New variable.
2964         (latin_iso8859_4_to_ucs): New variable.
2965         (ucs_to_latin_iso8859_4): New variable.
2966         (Vcharset_latin_iso8859_9): New variable.
2967         (latin_iso8859_9_to_ucs): New variable.
2968         (ucs_to_latin_iso8859_9): New variable.
2969         (Vcharset_latin_viscii_lower): New variable.
2970         (latin_viscii_lower_to_ucs): New variable.
2971         (ucs_to_latin_viscii_lower): New variable.
2972         (Vcharset_latin_viscii_upper): New variable.
2973         (latin_viscii_upper_to_ucs): New variable.
2974         (ucs_to_latin_viscii_upper): New variable.
2975         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
2976         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
2977         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
2978         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
2979         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
2980         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
2981         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
2982         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
2983         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
2984         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
2985
2986         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
2987         (Vcharset_latin_viscii_upper): New variable.
2988         (make_byte_from_character_table): New function.
2989         (put_byte_from_character_table): New function.
2990         (get_byte_from_character_table): New function.
2991         (CHAR96): New macro.
2992         (ucs_to_latin_jisx0201): New variable.
2993         (latin_jisx0201_to_ucs): New variable.
2994         (ucs_to_latin_iso8859_2): New variable.
2995         (latin_iso8859_2_to_ucs): New variable.
2996         (ucs_to_latin_iso8859_3): New variable.
2997         (latin_iso8859_3_to_ucs): New variable.
2998         (ucs_to_latin_iso8859_4): New variable.
2999         (latin_iso8859_4_to_ucs): New variable.
3000         (ucs_to_latin_iso8859_9): New variable.
3001         (latin_iso8859_9_to_ucs): New variable.
3002         (ucs_to_latin_viscii_lower): New variable.
3003         (latin_viscii_lower_to_ucs): New variable.
3004         (ucs_to_latin_viscii_upper): New variable.
3005         (latin_viscii_upper_to_ucs): New variable.
3006         (ucs_to_latin_tcvn5712): New variable.
3007         (latin_tcvn5712_to_ucs): New variable.
3008         (Qlatin_viscii_lower): New variable.
3009         (Qlatin_viscii_upper): New variable.
3010         (syms_of_mule_charset): Set up new symbol
3011         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
3012         (complex_vars_of_mule_charset): Set up new charset
3013         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
3014         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
3015         `ucs_to_<CHARSET>' tables.
3016
3017 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3018
3019         * text-coding.c: New file.
3020
3021 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3022
3023         * mule-charset.c (Fmake_char): Fix problem of 256-set.
3024
3025         * char-ucs.h (Vcharset_ucs_bmp): New variable.
3026         (MAKE_CHAR): Modify for `ucs-bmp'.
3027         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
3028         non-MULE characters of BMP.
3029
3030 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
3031
3032         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3033         to 0.6.
3034
3035 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3036
3037         * lstream.h:
3038         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
3039         - Include character.h for `CHAR_ASCII_P'.
3040
3041         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
3042
3043         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
3044         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
3045
3046         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
3047         (BYTE_C0_P): Likewise.
3048         (BYTE_C1_P): Likewise.
3049         (Lstream_get_emchar_1): Likewise.
3050         (Lstream_fput_emchar): Likewise.
3051         (Lstream_funget_emchar): Likewise.
3052         (copy_internal_to_external): Likewise.
3053         (copy_external_to_internal): Likewise.
3054
3055         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
3056         (BYTE_C0_P): Likewise.
3057         (BYTE_C1_P): Likewise.
3058         (Lstream_get_emchar_1): Likewise.
3059         (Lstream_fput_emchar): Likewise.
3060         (Lstream_funget_emchar): Likewise.
3061         (copy_internal_to_external): Likewise.
3062         (copy_external_to_internal): Likewise.
3063
3064         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
3065         (REP_BYTES_BY_FIRST_BYTE): Likewise.
3066
3067         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
3068         (BYTE_ASCII_P): Moved to mb-1byte.h.
3069
3070 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3071
3072         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
3073
3074         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
3075         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
3076         (VALID_CHARPTR_P): Moved to mb-*byte.h.
3077         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3078         (VALIDATE_CHARPTR_FORWARD): Likewise.
3079         (simple_charptr_emchar): Moved to mb-multibyte.h.
3080         (simple_set_charptr_emchar): Likewise.
3081         (simple_charptr_copy_char): Likewise.
3082         (non_ascii_charptr_emchar): Likewise.
3083         (non_ascii_set_charptr_emchar): Likewise.
3084         (non_ascii_charptr_copy_char): Likewise.
3085         (charptr_emchar): Moved to mb-*byte.h.
3086         (set_charptr_emchar): Likewise.
3087         (charptr_copy_char): Likewise.
3088
3089         * mb-1byte.h, mb-multibyte.h: New files.
3090
3091 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3092
3093         * mb-utf-8.h (MULTIBYTE): New macro.
3094         (MAX_EMCHAR_LEN): Moved from buffer.h.
3095         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
3096
3097         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
3098
3099         * mb-lb.h, multibyte.h: New files.
3100
3101         * char-1byte.h (Charset_ID): Moved from buffer.h.
3102         (MIN_LEADING_BYTE): Likewise.
3103         (LEADING_BYTE_ASCII): Likewise.
3104         (NUM_LEADING_BYTES): Likewise.
3105         (CHARSETP): Likewise.
3106         (CHARSET_BY_LEADING_BYTE): Likewise.
3107         (XCHARSET_LEADING_BYTE): Likewise.
3108         (XCHARSET_GRAPHIC): Likewise.
3109         (XCHARSET_COLUMNS): Likewise.
3110         (XCHARSET_DIMENSION): Likewise.
3111         (CHAR_CHARSET): Likewise.
3112         (CHAR_LEADING_BYTE): Likewise.
3113         (BREAKUP_CHAR): Likewise.
3114         (Vcharset_ascii): Likewise.
3115
3116         * buffer.h: Include multibyte.h unconditionally.
3117         (VALID_CHARPTR_P): Moved to multibyte.h.
3118         (ASSERT_VALID_CHARPTR): Likewise.
3119         (REAL_INC_CHARPTR): Likewise.
3120         (REAL_INC_CHARBYTIND): Likewise.
3121         (REAL_DEC_CHARPTR): Likewise.
3122         (INC_CHARPTR): Likewise.
3123         (INC_CHARBYTIND): Likewise.
3124         (DEC_CHARPTR): Likewise.
3125         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3126         (VALIDATE_CHARPTR_FORWARD): Likewise.
3127         (charptr_n_addr): Likewise.
3128         (MAX_EMCHAR_LEN): Moved to mb-*.h.
3129         (simple_charptr_emchar): Moved to multibyte.h.
3130         (simple_set_charptr_emchar): Likewise.
3131         (simple_charptr_copy_char): Likewise.
3132         (non_ascii_charptr_emchar): Likewise.
3133         (non_ascii_set_charptr_emchar): Likewise.
3134         (non_ascii_charptr_copy_char): Likewise.
3135         (charptr_emchar): Likewise.
3136         (set_charptr_emchar): Likewise.
3137         (charptr_copy_char): Likewise.
3138         (charptr_emchar_n): Likewise.
3139         (Charset_ID): Moved to char-1byte.h.
3140         (Vcharset_ascii): Likewise.
3141         (CHAR_CHARSET): Likewise.
3142         (CHAR_LEADING_BYTE): Likewise.
3143         (LEADING_BYTE_ASCII): Likewise.
3144         (NUM_LEADING_BYTES): Likewise.
3145         (MIN_LEADING_BYTE): Likewise.
3146         (CHARSETP): Likewise.
3147         (CHARSET_BY_LEADING_BYTE): Likewise.
3148         (XCHARSET_LEADING_BYTE): Likewise.
3149         (XCHARSET_GRAPHIC): Likewise.
3150         (XCHARSET_COLUMNS): Likewise.
3151         (XCHARSET_DIMENSION): Likewise.
3152         (BREAKUP_CHAR): Likewise.
3153
3154 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3155
3156         * character.h: Add document about interface for characters.
3157
3158         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
3159         (MAKE_CHAR): Delete comment about
3160         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
3161         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
3162         (BREAKUP_CHAR): Modify name of arguments.
3163         (CHAR_CHARSET): Modify name of argument.
3164
3165         * buffer.h: Delete document about Emchar accessors.
3166
3167 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3168
3169         * character.h (CHAR_INTP): Moved from buffer.h
3170         (CHAR_OR_CHAR_INTP): Likewise.
3171         (XCHAR_OR_CHAR_INT): Likewise.
3172         (CHECK_CHAR_COERCE_INT): Likewise.
3173
3174         * buffer.h (CHAR_INTP): Moved to character.h
3175         (CHAR_OR_CHAR_INTP): Likewise.
3176         (XCHAR_OR_CHAR_INT): Likewise.
3177         (CHECK_CHAR_COERCE_INT): Likewise.
3178
3179 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3180
3181         * character.h:
3182         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
3183         - Include char-1byte.h, char-lb.h or char-ucs.h.
3184
3185         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
3186
3187         * buffer.h: Include character unconditionally.
3188         (valid_char_p): Moved to char-*.h.
3189         (non_ascii_valid_char_p): Moved to char-lb.h.
3190
3191         * char-1byte.h, char-lb.h, char-ucs.h: New files.
3192
3193 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3194
3195         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
3196         in UTF-2000 because it is not ported yet and not to use
3197         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
3198         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
3199         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
3200
3201         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
3202         (CHAR_ASCII_P): Moved from character.h.
3203
3204         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
3205         (CHAR_ASCII_P): Likewise.
3206         (CHAR_FIELD1_MASK): Deleted.
3207         (CHAR_FIELD2_MASK): Deleted.
3208         (CHAR_FIELD3_MASK): Deleted.
3209         (MAX_CHAR_BASIC_LATIN): New macro.
3210         (CHAR_FIELD1): Deleted.
3211         (CHAR_FIELD2_INTERNAL): Deleted.
3212         (CHAR_FIELD3_INTERNAL): Deleted.
3213         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
3214         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
3215         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
3216         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
3217         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
3218         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
3219         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
3220         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
3221         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
3222         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
3223         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
3224         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
3225         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
3226         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
3227         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
3228         (MIN_CHAR_COMPOSITION): Deleted.
3229         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
3230         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
3231
3232 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
3233
3234         * buffer.h: Include mb-utf-8.h in UTF-2000.
3235
3236         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
3237
3238         * mb-utf-8.h: New file.
3239
3240 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
3241
3242         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
3243         instead of `int'.
3244
3245         * mule-charset.h, buffer.h (Charset_ID): New type.
3246
3247 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
3248
3249         * mule-canna.c (c2mu): Use `MAKE_CHAR',
3250         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
3251         instead of `MULE_CHAR_PRIVATE_OFFSET',
3252         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
3253         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
3254         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
3255
3256         * character.h (Vcharset_japanese_jisx0212): New variable
3257         definition.
3258
3259 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
3260
3261         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
3262         (charset_by_attributes): Delete array about direction.
3263         (latin_a_char_to_charset): New variable in UTF-2000.
3264         (latin_a_char_to_byte1): New variable in UTF-2000.
3265         (latin_a_char_to_byte2): New variable in UTF-2000.
3266         (Qucs_bmp): New variable.
3267         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
3268         `Bufbyte'.
3269         (next_allocated_2_byte_leading_byte): Likewise.
3270         (non_ascii_set_charptr_emchar): Likewise.
3271         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
3272         `CHARSET_TYPE_256X256' in UTF-2000; modify for
3273         `charset_by_attributes'.
3274         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
3275         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
3276         and `CHARSET_BY_LEADING_BYTE'.
3277         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
3278         `utf-2000-version' to `vars_of_mule_charset'.
3279         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
3280         define `leading-code-private-11' in UTF-2000; move setting of
3281         `utf-2000-version' from `syms_of_mule_charset'.
3282         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
3283         UTF-2000.
3284
3285         * character.h (Charset_ID): New type.
3286         (LEADING_BYTE_UCS_BMP): New macro.
3287         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
3288         (CHARSET_ID_OFFSET_94): New macro.
3289         (MIN_CHARSET_ID_PRIVATE_94): New macro.
3290         (MAX_CHARSET_ID_PRIVATE_94): New macro.
3291         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
3292         final-byte.
3293         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
3294         (LEADING_BYTE_LATIN_JISX0201): Likewise.
3295         (CHARSET_ID_OFFSET_96): New macro.
3296         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
3297         CHARSET_ID_OFFSET_96 and final-byte.
3298         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
3299         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
3300         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
3301         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
3302         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
3303         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
3304         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
3305         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
3306         (LEADING_BYTE_THAI_TIS620): Likewise.
3307         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
3308         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
3309         (CHARSET_ID_OFFSET_94x94): New macro.
3310         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
3311         CHARSET_ID_OFFSET_94x94 and final-byte.
3312         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
3313         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
3314         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
3315         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
3316         (LEADING_BYTE_CHINESE_GB2312): Likewise.
3317         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
3318         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
3319         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
3320         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
3321         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
3322         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
3323         (CHARSET_TYPE_128X128): New macro.
3324         (CHARSET_TYPE_256X256): New macro.
3325         (XCHARSET_PRIVATE_P): Delete unconditionally.
3326         (charset_by_attributes): Delete array about direction.
3327         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
3328         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
3329         (MIN_CHAR_94): New macro.
3330         (MAX_CHAR_94): New macro.
3331         (MIN_CHAR_96): New macro.
3332         (MAX_CHAR_96): New macro.
3333         (MIN_CHAR_94x94): New macro.
3334         (MAX_CHAR_94x94): New macro.
3335         (MIN_CHAR_96x96): New macro.
3336         (MAX_CHAR_96x96): New macro.
3337         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
3338         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3339         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
3340         - 32)'.
3341         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
3342         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
3343         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
3344         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
3345         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
3346         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
3347         `XCHARSET_LEADING_BYTE' to make code-point.
3348         (latin_a_char_to_charset): New variable.
3349         (latin_a_char_to_byte1): New variable.
3350         (latin_a_char_to_byte2): New variable.
3351         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
3352         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
3353         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
3354
3355         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
3356         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
3357         (find_charsets_in_emchar_string): Likewise.
3358         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
3359
3360         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
3361         `int'.
3362         (decode_coding_iso2022): Likewise.
3363
3364         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
3365         of `unsigned char'.
3366
3367         * redisplay.c (redisplay_text_width_emchar_string): Use
3368         `Charset_ID' instead of `unsigned char'.
3369         (redisplay_frame_text_width_string): Likewise.
3370
3371         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
3372         `unsigned char'.
3373
3374         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
3375         instead of `unsigned char'.
3376         (face_cachel_charset_font_metric_info): Likewise.
3377
3378         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
3379         (get_non_ascii_char_table_value): Likewise.
3380         (get_char_table): Likewise.
3381         (put_char_table): Likewise.
3382         (map_over_other_charset): Likewise.
3383         (map_char_table): Likewise.
3384
3385         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
3386         instead of `unsigned char'.
3387
3388 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
3389
3390         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
3391         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
3392
3393         * mule-charset.c (leading_code_private_11): Don't define in
3394         UTF-2000.
3395
3396         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
3397         in UTF-2000 because it is not ported yet and not to use
3398         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
3399
3400 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
3401
3402         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
3403
3404 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3405
3406         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
3407         in UTF-2000.
3408
3409         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
3410         of unsigned char to store leading-byte.
3411
3412         * chartab.c (get_non_ascii_char_table_value): Don't use
3413         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
3414
3415         * file-coding.c (encode_coding_big5): Delete bogus implementation
3416         in UTF2000.
3417
3418         * character.h (LEADING_BYTE_*): Delete definition for
3419         non-UTF-2000.
3420         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
3421         (LEADING_BYTE_PREFIX_P): Deleted.
3422         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
3423         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
3424         (BUFBYTE_LEADING_BYTE_P): Deleted.
3425         (CHARSET_PRIVATE_P): Deleted unconditionally.
3426         (rep_bytes_by_first_byte): Deleted unconditionally.
3427         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
3428         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
3429         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3430         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
3431         (CHAR_FIELD2): Deleted.
3432         (CHAR_FIELD3): Deleted.
3433         (MAKE_CHAR): Delete definition for non-UTF-2000.
3434         (BREAKUP_CHAR_1_UNSAFE): Deleted.
3435         (breakup_char_1): New implementation.
3436         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
3437         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
3438
3439 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3440
3441         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
3442         condition.
3443
3444 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3445
3446         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
3447         (CHARSET_PRIVATE_P): Likewise.
3448         (XCHARSET_PRIVATE_P): Likewise.
3449         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
3450
3451         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
3452         UTF2000.
3453         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
3454
3455 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3456
3457         * character.h (LEADING_BYTE_*): Changed in UTF2000.
3458         (NUM_LEADING_BYTES): Changed from 128 to 256.
3459         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3460         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
3461         UTF2000.
3462         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3463
3464         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
3465         UTF2000.
3466         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
3467         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
3468         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
3469         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
3470         (Qchinese_cns11643_3): New variable in UTF2000.
3471         (Qchinese_cns11643_4): New variable in UTF2000.
3472         (Qchinese_cns11643_5): New variable in UTF2000.
3473         (Qchinese_cns11643_6): New variable in UTF2000.
3474         (Qchinese_cns11643_7): New variable in UTF2000.
3475         (syms_of_mule_charset): Define `chinese-cns11643-3',
3476         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3477         and `chinese-cns11643-7' in UTF2000.
3478         (vars_of_mule_charset): Initialize
3479         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
3480         + 1 in UTF2000.
3481         (complex_vars_of_mule_charset): Setup charset
3482         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
3483         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
3484
3485 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3486
3487         * mule-charset.c: Move setting for `leading-code-private-11' from
3488         `syms_of_mule_charset' to `vars_of_mule_charset'.
3489
3490 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3491
3492         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
3493         and `NUM_LEADING_BYTES' in assert.
3494
3495 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3496
3497         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
3498         instead of 128.
3499         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
3500         `NUM_LEADING_BYTES' instead of 128.
3501
3502 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3503
3504         * mule-charset.h (charset_by_leading_byte): Use
3505         `NUM_LEADING_BYTES' instead of 128.
3506         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
3507
3508         * mule-charset.c (charset_by_leading_byte): Use
3509         `NUM_LEADING_BYTES' instead of 128.
3510         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
3511
3512         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
3513         128.
3514
3515 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
3516
3517         * mule-charset.c (syms_of_mule_charset): Update to
3518         0.4 (Shin-Imamiya).
3519
3520 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
3521
3522         * file-coding.c (encode_coding_sjis): New implementation for
3523         UTF2000.  (decode_coding_sjis): Ditto.
3524
3525 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3526
3527         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
3528         Don't define in UTF2000.
3529
3530         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
3531         defined.
3532
3533         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3534         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
3535         MULE.
3536
3537 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3538
3539         * config.h.in (CHAR_IS_UCS4): New macro.
3540
3541         * mule-charset.c (rep_bytes_by_first_byte): Modify for
3542         conventional MULE representation.
3543         (syms_of_mule_charset): Update to 0.3 (Imamiya).
3544
3545         * mule-charset.h: Reverted to original.
3546
3547         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3548         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
3549         "mule-charset.h" if CHAR_IS_UCS4 is defined.
3550
3551         * character.h: New file.
3552
3553         * file-coding.c (Fmake_coding_system): Set 1 to
3554         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
3555         defined.
3556         (encode_coding_no_conversion): New implementation for UTF2000.
3557
3558         * file-coding.h (struct Lisp_Coding_System): Add new member
3559         `fixed.size'.
3560
3561 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
3562
3563         * file-coding.c (decode_coding_iso2022): Code-point arguments of
3564         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
3565         (encode_coding_iso2022): New implementation for UTF2000.
3566
3567 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3568
3569         * mule-canna.c (c2mu): New implementation for UTF2000.
3570         (m2c): Likewise.
3571
3572 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3573
3574         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
3575
3576 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3577
3578         * file-coding.c (reset_encoding_stream): Set 0 to
3579         `str->iso2022.current_char_boundary' in UTF2000.
3580         (encode_utf8): Don't define in UTF2000.
3581         (encode_coding_utf8): New implementation for UTF-8 representation
3582         of UTF2000.
3583         (complex_vars_of_file_coding): Define coding-system `utf-8'.
3584
3585 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3586
3587         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
3588
3589         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
3590         UTF2000.
3591         (REP_BYTES_BY_FIRST_BYTE): Likewise.
3592
3593         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
3594
3595         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
3596         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
3597         as UTF-8 in UTF2000.
3598         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
3599         (non_ascii_valid_char_p): Don't define in UTF2000.
3600         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
3601         (Lstream_get_emchar_1): Likewise.
3602         (utf-2000-version): New variable in UTF2000.
3603
3604         * lread.c (read_escape): Add new reader `u'.
3605
3606         * insdel.c (three_to_one_table): Don't define in UTF2000.
3607         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
3608         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
3609         UTF2000.
3610         (bytind_to_bufpos_func): Likewise.
3611         (buffer_mule_signal_inserted_region): Likewise.
3612         (vars_of_insdel): Don't initialize `three_to_one_table'.
3613         (init_buffer_text): Use `buf->text->mule_size' instead of
3614         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
3615         UTF2000.
3616
3617         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
3618         UTF-8 representation in UTF2000.
3619         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
3620         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
3621         (decode_coding_iso2022): Don't define local variable `lb' in
3622         UTF2000; don't use LEADING_BYTE in UTF2000; use
3623         `DECODE_ADD_UCS_CHAR' in UTF2000.
3624         (convert_to_external_format): Decode as UTF-8 in UTF2000.
3625
3626         * config.h.in (UTF2000): New macro.
3627
3628         * buffer.h (struct buffer_text): Add new member `mule_size' and
3629         don't add `mule_shifter' and `mule_three_p' in UTF2000.
3630         (valid_char_p): Return always 1 in UTF2000.
3631         (MAX_EMCHAR_LEN): 6 in UTF2000.
3632         (three_to_one_table): Don't define in UTF2000.
3633         (real_bufpos_to_bytind): Modify for UTF-8 representation in
3634         UTF2000.
3635         (real_bytind_to_bufpos): Likewise.
3636
3637         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
3638
3639 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3640
3641         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
3642         representation change.
3643         (Vutf_2000_version): New variable.
3644         (leading_code_private_11): New variable.
3645         (syms_of_mule_charset): Add new variables `utf-2000-version' and
3646         `leading-code-private-11'.
3647
3648         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
3649         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
3650         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
3651         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
3652         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
3653         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
3654         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
3655         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
3656         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
3657         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
3658         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
3659         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
3660         (MIN_CHAR_GREEK): New macro.
3661         (MAX_CHAR_GREEK): New macro.
3662         (MIN_CHAR_CYRILLIC): New macro.
3663         (MAX_CHAR_CYRILLIC): New macro.
3664         (MIN_CHAR_HEBREW): New macro.
3665         (MAX_CHAR_HEBREW): New macro.
3666         (MIN_CHAR_THAI): New macro.
3667         (MAX_CHAR_THAI): New macro.
3668         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
3669         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
3670         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
3671         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
3672         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
3673         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
3674         (CHAR_FIELD2): New inline function.
3675         (CHAR_FIELD3): New inline function.
3676         (MULE_CHAR_PRIVATE_OFFSET): New macro.
3677         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
3678         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
3679         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
3680         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
3681         (MIN_CHAR_COMPOSITION): Likewise.
3682         (CHAR_LEADING_BYTE): Modified for character representation change.
3683         (MAKE_CHAR): Likewise.
3684
3685         * lisp.h (Vcharset_latin_iso8859_1): New variable.
3686         (Vcharset_greek_iso8859_7): Likewise.
3687         (Vcharset_cyrillic_iso8859_5): Likewise.
3688         (Vcharset_hebrew_iso8859_8): Likewise.
3689         (Vcharset_thai_tis620): Likewise.
3690         (Vcharset_katakana_jisx0201): Likewise.
3691
3692 2001-02-08  Martin Buchholz <martin@xemacs.org>
3693
3694         * XEmacs 21.2.44 "Thalia" is released.
3695
3696 2001-02-06  Martin Buchholz  <martin@xemacs.org>
3697
3698         Fixes crashes in kill-emacs on some systems.
3699         * process-unix.c (unix_kill_child_process):
3700         It's OK for kill() to fail with ESRCH.
3701
3702 2001-02-07  Martin Buchholz  <martin@xemacs.org>
3703
3704         Contortions to make .gdbinit tricks work on most systems.
3705         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
3706         * alloc.c (dbg_valmask): Make non-const.
3707         * alloc.c (dbg_typemask): Make non-const.
3708         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
3709         * alloc.c (dbg_valbits): Make non-const.
3710         * alloc.c (dbg_gctypebits): Make non-const.
3711         * .gdbinit (decode_object): Make it work with AIX cc.
3712
3713 2001-02-06  Martin Buchholz  <martin@xemacs.org>
3714
3715         * elhash.c (make_general_lisp_hash_table):
3716         Use simpler and more efficient calloc to clear entries.
3717
3718 2001-02-07  Martin Buchholz  <martin@xemacs.org>
3719
3720         * window.c (window_scroll): Work around an AIX C compiler bug.
3721         Fixes 'scroll-up' does nothing problem with xlC.
3722
3723 2001-02-05  Martin Buchholz  <martin@xemacs.org>
3724
3725         * .gdbinit: Remove obsolete comment.
3726
3727 2001-01-31  Mike Alexander  <mta@arbortext.com>
3728
3729         * select.c (Fown_selection_internal): Set owned_p for device
3730         method correctly.
3731
3732 2001-02-01  Martin Buchholz  <martin@xemacs.org>
3733
3734         Port to g++ 2.97.
3735         "not" cannot be used as a macro name as it is an operator in C++
3736         * config.h.in: Stop #defining `not'.
3737         * chartab.c (check_category_char): not ==> not_p
3738         * chartab.h: Likewise.
3739         * regex.c (re_match_2_internal): Likewise.
3740
3741 2001-02-02  Martin Buchholz  <martin@xemacs.org>
3742
3743         * lisp-disunion.h: Fix up comments.
3744
3745 2001-01-31  Martin Buchholz  <martin@xemacs.org>
3746
3747         * keymap.c (define_key_check_and_coerce_keysym):
3748         (syms_of_keymap):
3749         Support mouse-6 and mouse-7 bindings in the obvious way.
3750
3751 2001-02-01  Martin Buchholz  <martin@xemacs.org>
3752
3753         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
3754
3755 2001-01-30  Martin Buchholz  <martin@xemacs.org>
3756
3757         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
3758         Previous patch missed DEFVAR_INT_MAGIC.
3759         Make sure future DEFVAR_foo use correct types.
3760         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
3761         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
3762         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
3763         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
3764         * (DEFVAR_INT): Likewise.
3765         * redisplay.c (vertical_clip): Should be of type Fixnum.
3766         * redisplay.c (horizontal_clip): Likewise.
3767         * lisp.h (dump_add_opaque_int): New.
3768         (dump_add_opaque_fixnum): New.
3769
3770 2001-01-29  Andy Piper  <andy@xemacs.org>
3771
3772         * glyphs-widget.c (check_valid_int_or_function): allow symbols
3773         since they can be eval'ed
3774
3775 2001-01-29  Martin Buchholz  <martin@xemacs.org>
3776
3777         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
3778         Oops, XEmacs redefines `class'.  Use `typename' instead.
3779
3780 2001-01-28  Martin Buchholz  <martin@xemacs.org>
3781
3782         * dumper.c: Fix C++ compile errors.
3783
3784 2001-01-29  Martin Buchholz  <martin@xemacs.org>
3785
3786         * tparam.c: Use correct prototypes.
3787
3788 2001-01-28  Martin Buchholz  <martin@xemacs.org>
3789
3790         * sysproc.h: #include util.h for NetBSD's openpty.
3791
3792 2001-01-27  Martin Buchholz  <martin@xemacs.org>
3793
3794         More 64-bit correctness.
3795         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
3796         Use a typedef `fixnum' for the type used for DEFVAR_INT.
3797         Fix up comments.
3798         This finally finishes the 64-bit SGI port.
3799         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
3800         * symbols.c: Fix up comments and type casts.
3801         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
3802         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
3803         * symeval.h (Fixnum): New type.
3804         * symeval.h (symbol_value_type): Fix up comment.
3805
3806         * commands.h:
3807         * nt.c:
3808         * emacs.c:
3809         * data.c:
3810         * redisplay.c:
3811         * abbrev.c:
3812         * dired-msw.c:
3813         * event-Xt.c:
3814         * eldap.c:
3815         * window.c:
3816         * sound.c:
3817         * event-stream.c:
3818         * eval.c:
3819         * buffer.c:
3820         * mule-canna.c: A million DEFVAR_INTs here...
3821         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
3822         * extents.c:
3823         * cmdloop.c:
3824         * lisp.h:
3825         * select-x.c:
3826         * console-x.h:
3827         * event-msw.c:
3828         * mule-wnnfns.c:
3829         * hpplay.c:
3830         * ralloc.c:
3831         * alloc.c:
3832         * keymap.c:
3833         * profile.c:
3834         s/int/Fixnum/g in DEFVAR_INT declarations.
3835
3836 2001-01-26  Martin Buchholz  <martin@xemacs.org>
3837
3838         Port pdump to SGI alignment-sensitive environment.
3839         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
3840         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
3841         properly aligned.
3842         Define and use aligned reading and writing macros.
3843         Use buffered stdio instead of posix i/o for faster dumping.
3844         Eliminate kludgy 256 byte space for header.
3845         Read and write from dump file using structs for alignment safety.
3846         * dumper.c (pdump_align_stream): New.
3847         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
3848         * dumper.c (PDUMP_READ_ALIGNED): New.
3849         * dumper.c (PDUMP_WRITE_ALIGNED): New.
3850         * dumper.c (pdump_static_Lisp_Object): New struct.
3851         * dumper.c (pdump_static_pointer): New struct.
3852         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
3853         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
3854         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
3855         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
3856
3857         * dumper.c (pdump_backtrace):
3858         * dumper.c (pdump_get_indirect_count):
3859         * dumper.c (pdump_register_object):
3860         * dumper.c (pdump_register_struct):
3861         * dumper.c (pdump_reloc_one):
3862         * dumper.c (pdump_scan_by_alignment):
3863         * dumper.c (pdump_dump_from_root_struct_ptrs):
3864         * dumper.c (pdump_dump_opaques):
3865         * dumper.c (pdump_dump_rtables):
3866         * dumper.c (pdump_dump_from_root_objects):
3867         * dumper.c (pdump):
3868         * dumper.c (pdump_load_finish):
3869         Use aligned reading and writing.
3870
3871         * dumper.c (pdump_free): Make static.
3872         * dumper.c (pdump_hFile): Likewise.
3873         * dumper.c (pdump_hMap): Likewise.
3874
3875 2001-01-26  Martin Buchholz <martin@xemacs.org>
3876
3877         * XEmacs 21.2.43 "Terspichore" is released.
3878
3879 2001-01-25  Martin Buchholz  <martin@xemacs.org>
3880
3881         Type fiddling for window_config.saved_windows_count
3882         * window.c (struct window_config): 
3883         Make saved_windows_count member unsigned.
3884         * window.c (sizeof_window_config_for_n_windows): 
3885         Make parameter unsigned.
3886         * window.c (mark_window_config):
3887         * window.c (window_config_equal):
3888         * window.c (free_window_configuration):
3889         * window.c (Fset_window_configuration):
3890         * window.c (count_windows):
3891         * window.c (Fcurrent_window_configuration):
3892         * window.c (reinit_vars_of_window):
3893         Update all callers and users.
3894
3895 2001-01-25  Martin Buchholz  <martin@xemacs.org>
3896
3897         Alignment correctness for flexible arrays.
3898         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
3899         Make alignment-correct. Add interesting comments.
3900         * alloc.c (size_vector):
3901         * alloc.c (make_vector_internal):
3902         * alloc.c (make_bit_vector_internal):
3903         * alloc.c (sweep_bit_vectors_1):
3904         * fns.c (size_bit_vector):
3905         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
3906         * window.c (sizeof_window_config_for_n_windows): 
3907         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
3908
3909 2001-01-24  Martin Buchholz  <martin@xemacs.org>
3910
3911         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
3912
3913 2001-01-23  Andy Piper  <andy@xemacs.org>
3914
3915         * select.c (Fown_selection_internal): pass owned_p
3916
3917         * select-msw.c (mswindows_own_selection): New Signature.
3918
3919         * console.h (struct console_methods): add owned_p to
3920         _own_selection.
3921
3922         * select-x.c (x_own_selection): pass owned_p
3923         (hack_motif_clipboard_selection): use owned_p
3924         (vars_of_select_x): new variable -
3925         x_selection_strict_motif_ownership.
3926
3927 2001-01-23  Martin Buchholz  <martin@xemacs.org>
3928
3929         * specifier.h (specifier_data_offset): Remove pointless parens.
3930         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
3931
3932 2001-01-24  Martin Buchholz  <martin@xemacs.org>
3933
3934         Make Lisp_Object sizeof methods be alignment-correct.
3935         pdump must restore objects to the same alignment as the C compiler
3936         assumes.  It really matters on SGIs.
3937         * lstream.c (aligned_sizeof_lstream): New.
3938         (sizeof_lstream): Use aligned_sizeof_lstream.
3939         (Lstream_new): Likewise.
3940         * opaque.c (aligned_sizeof_opaque): New.
3941         (sizeof_opaque): Use aligned_sizeof_opaque.
3942         (make_opaque): Likewise.
3943         * specifier.c (aligned_sizeof_specifier): New.
3944         (sizeof_specifier): Use aligned_sizeof_specifier.
3945         (make_specifier_internal): Likewise.
3946
3947 2001-01-23  Martin Buchholz  <martin@xemacs.org>
3948
3949         * lstream.h (struct lstream): Use max_align_t for trailing data.
3950         * specifier.h (struct Lisp_Specifier): Likewise.
3951
3952 2001-01-22  Martin Buchholz  <martin@xemacs.org>
3953
3954         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
3955         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
3956         (CCL_SUSPEND): Likewise.
3957         (CCL_INVALID_CMD): Likewise.
3958         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
3959         (ccl_driver): Likewise.
3960         (CCL_WRITE_CHAR): Macro hygiene.
3961         (CCL_WRITE_STRING): Macro hygiene.
3962
3963 2001-01-22  Martin Buchholz  <martin@xemacs.org>
3964
3965         Port "portable" dumper to SunOS 4 and HP-UX.
3966         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
3967         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
3968         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
3969
3970 2001-01-22  Martin Buchholz  <martin@xemacs.org>
3971
3972         * lisp.h (ALIGNOF): A better definition for C++.
3973
3974 2001-01-20  Martin Buchholz  <martin@xemacs.org>
3975
3976         Macro hygiene.
3977         Fix printf warnings: int format, long int arg.
3978         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
3979         (PUSH_FAILURE_POINT): Use correct printf formats.
3980         (POP_FAILURE_POINT): Use correct printf formats.  
3981         Use do {...} while (0)
3982
3983 2001-01-20  Martin Buchholz <martin@xemacs.org>
3984
3985         * XEmacs 21.2.42 "Poseidon" is released.
3986
3987 2001-01-20  Martin Buchholz  <martin@xemacs.org>
3988
3989         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
3990
3991 2001-01-19  Martin Buchholz  <martin@xemacs.org>
3992
3993         De-kludgify FIXED_TYPE free list frobbing.
3994         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
3995         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
3996         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
3997         * alloc.c (Lisp_Free): New pseudo lisp object definition.
3998         * alloc.c (LRECORD_FREE_P): New.
3999         * alloc.c (MARK_LRECORD_AS_FREE): New.
4000         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
4001         * alloc.c (STRUCT_FREE_P): Deleted.
4002         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
4003         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
4004         * alloc.c (STRING_CHARS_FREE_P): New.
4005         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
4006         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
4007         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
4008         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
4009         * alloc.c (resize_string): Use new definitions.
4010         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
4011         * alloc.c (verify_string_chars_integrity): Use new definitions.
4012         * alloc.c (compact_string_chars): Use new definitions.
4013         * alloc.c: Update monster comments.
4014         * lrecord.h (lrecord_type): Add some new lrecord types for
4015         alloc.c's use.
4016
4017 2001-01-18  Martin Buchholz  <martin@xemacs.org>
4018
4019         Improve alignment hackery.
4020         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
4021         (max_align_t): Moved from opaque.h - general purpose.
4022         (ALIGN_PTR): Use size_t, not long.
4023         * opaque.h (max_align_t): Move to lisp.h.
4024
4025 2001-01-18  Norbert Koch  <nk@LF.net>
4026
4027         * gui.h: Fix and add prototypes to fix build problems.
4028
4029 2001-01-18  Martin Buchholz  <martin@xemacs.org>
4030
4031         temacs is going away, so `dump-temacs' is now a bad name.
4032         * .dbxrc (dump-temacs): Rename to `dmp'.
4033         * .gdbinit (dump-temacs): Rename to `dmp'.
4034
4035 2001-01-17  Andy Piper  <andy@xemacs.org>
4036
4037         * glyphs.c (print_image_instance): comment to make martin happy.
4038
4039         * glyphs-x.c (x_redisplay_widget): update faces after a frame
4040         change.
4041
4042         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
4043         activation.
4044         (mswindows_tab_control_redisplay): warning suppression.
4045
4046         * glyphs-widget.c (widget_update): re-write to cope with updated
4047         items.
4048         (widget_instantiate): use new gui_item functions.
4049         (tab_control_update): deleted.
4050         (progress_gauge_update): deleted.
4051         (image_instantiator_progress_guage): take out update reference.
4052         (image_instantiator_tree_view): ditto.
4053         (image_instantiator_tab_control): ditto.
4054
4055         * gui.c (widget_gui_parse_item_keywords): new function. Do things
4056         Right the new way.
4057         (gui_item_add_keyval_pair): re-write to cope with descriptors and
4058         return whether anything was changed.
4059         (update_gui_item_keywords): as it sounds.
4060
4061         * gui.h: declare widget_gui_parse_item_keywords.
4062
4063         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
4064         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
4065
4066 2001-01-17  Martin Buchholz <martin@xemacs.org>
4067
4068         * XEmacs 21.2.41 "Polyhymnia" is released.
4069
4070 2001-01-16  Didier Verna  <didier@xemacs.org>
4071
4072         * glyphs.c (image_instantiate): don't use fallbacks when
4073         instantiating a face's background pixmap by inheritance.
4074
4075 2001-01-14  Mike Sperber <mike@xemacs.org>
4076
4077         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
4078         Conditionalize accordingly.
4079
4080 2001-01-16  Martin Buchholz  <martin@xemacs.org>
4081
4082         * dumper.c (pdump_file_get): Fix a compiler warning.
4083
4084 2001-01-15  Martin Buchholz  <martin@xemacs.org>
4085
4086         Make Purify happy when pdumping.
4087         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
4088         iniitalizing all bits of new lisp object memory.
4089         * symbols.c (Fmake_local_variable): Likewise.
4090         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
4091         * symbols.c (Fdefvaralias): Likewise.
4092         * mule-charset.c (vars_of_mule_charset): Likewise.
4093
4094 2001-01-15  Martin Buchholz  <martin@xemacs.org>
4095         Add the `-nd' flag when running pre-dump operations under the debugger.
4096         * .dbxrc (run-temacs): Add `-nd'.
4097         * .dbxrc (update-elc): Likewise.
4098         * .dbxrc (dump-temacs): Likewise.
4099         * .gdbinit (run-temacs): Likewise.
4100         * .gdbinit (check-temacs): Likewise.
4101         * .gdbinit (update-elc): Likewise.
4102         * .gdbinit (dump-temacs): Likewise.
4103
4104 2001-01-14  Martin Buchholz  <martin@xemacs.org>
4105
4106         Allow building 64-bit executables on AIX with GNU malloc, e.g.
4107         export OBJECT_MODE=64
4108         configure --pdump --use-union-type=no
4109         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
4110         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
4111
4112         * miscplay.c (sndcnv8U_2mono):
4113         Avoid two uses of `++' in the same expression.
4114         Suppresses a GCC warning.
4115
4116 2001-01-13  Martin Buchholz  <martin@xemacs.org>
4117
4118         Make sure future compilers don't miscompile alloc.c.
4119         * alloc.c:
4120         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
4121         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
4122
4123 2001-01-12  Martin Buchholz  <martin@xemacs.org>
4124
4125         * dumper.c: A little post-pdump-rename comment fixup.
4126
4127 2001-01-09  Jerry James  <james@eecs.ku.edu>
4128
4129         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
4130
4131 2001-01-13  Martin Buchholz  <martin@xemacs.org>
4132
4133         * *.[ch]: Globally rename symbols using the following `pdump-rename'
4134         script:
4135         #!/bin/sh
4136         replace_symbol () {
4137           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
4138         }
4139
4140         replace_symbol pdump_wire_lists pdump_weak_object_chains
4141         replace_symbol pdump_wire_list dump_add_weak_object_chain
4142
4143         replace_symbol pdump_wires pdump_root_objects
4144         replace_symbol pdump_wire dump_add_root_object
4145
4146         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
4147         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
4148
4149         replace_symbol dumpstructinfos pdump_root_struct_ptrs
4150         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
4151         replace_symbol dumpstructinfo pdump_root_struct_ptr
4152         replace_symbol dumpstruct dump_add_root_struct_ptr
4153
4154         replace_symbol dumpopaque dump_add_opaque
4155         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
4156         replace_symbol dumpopaqueinfos pdump_opaques
4157         replace_symbol dumpopaqueinfo pdump_opaque
4158
4159         replace_symbol nb_structdump nb_root_struct_ptrs
4160         replace_symbol nb_opaquedump nb_opaques
4161
4162         replace_symbol align_table pdump_align_table
4163         replace_symbol dump_header pdump_header
4164
4165         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
4166         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
4167
4168
4169 2001-01-12  Martin Buchholz  <martin@xemacs.org>
4170
4171         * s/aix4.h: Keep the C for AIX compiler from overaggressively
4172         optimizing bytecount_to_charcount().
4173
4174 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
4175
4176         * config.h.in:
4177         (HAVE_DLFCN_H): Removed.
4178         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
4179
4180 2001-01-06  Martin Buchholz  <martin@xemacs.org>
4181
4182         Portable dumper maintainability improvements.
4183         * alloc.c (staticpro):
4184         * alloc.c (staticpro_nodump):
4185         * alloc.c (garbage_collect_1):
4186         * alloc.c (reinit_alloc_once_early):
4187         * alloc.c (init_alloc_once_early):
4188         * alloc.c: Move dumper functions to alloc.c.
4189         * dumper.c (pdump_backtrace):
4190         * dumper.c (pdump_dump_structs):
4191         * dumper.c (pdump_dump_opaques):
4192         * dumper.c (pdump_dump_rtables):
4193         * dumper.c (pdump_dump_wired):
4194         * dumper.c (pdump):
4195         * dumper.c (pdump_load_check):
4196         * dumper.c (pdump_load_finish):
4197         * dumper.c (pdump_file_unmap):
4198         * dumper.c (pdump_file_get):
4199         * dumper.c (pdump_resource_free):
4200         * dumper.c (pdump_resource_get):
4201         * dumper.c (pdump_file_free):
4202         * dumper.c (pdump_file_try):
4203         * dumper.c (pdump_load):
4204         Remove fixed size limits on staticpro(), staticpro_nodump(),
4205         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
4206         Remove custom code for dumping lrecord_implementations_table - use
4207         dumpopaque instead.
4208         Remove (most of the) custom code for dumping staticpros - dump it
4209         like any other dynarr.
4210
4211         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
4212         * dumper.c: Moved functions from alloc.c.
4213         * alloc.c (dumpstruct): Moved to dumper.c.
4214         * alloc.c (dumpopaque): Likewise.
4215         * alloc.c (pdump_wire): Likewise.
4216         * alloc.c (pdump_wire_list): Likewise.
4217
4218         * lisp.h (Dynarr_sizeof): New.
4219         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
4220         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
4221         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
4222
4223         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
4224         * lisp.h (dumpopaque): ditto.
4225         * lisp.h (pdump_wire): ditto.
4226         * lisp.h (pdump_wire_list): ditto.
4227
4228 2001-01-09  Martin Buchholz  <martin@xemacs.org>
4229
4230         * make-src-depend (PrintPatternDeps):
4231         Use `sort' to make output independent of perl version.
4232
4233 2001-01-08  Martin Buchholz  <martin@xemacs.org>
4234
4235         Port to Netbsd 1.5.
4236         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
4237         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
4238
4239 2001-01-03  Didier Verna  <didier@xemacs.org>
4240
4241         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
4242         that `focus_frame' is alive before thinking of calling
4243         `redisplay_redraw_cursor' on it.
4244
4245 2001-01-08  Martin Buchholz <martin@xemacs.org>
4246
4247         * XEmacs 21.2.40 is released.
4248
4249 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
4250
4251         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
4252
4253 2001-01-06  Martin Buchholz  <martin@xemacs.org>
4254
4255         * alloc.c (dbg_valmask): Make const.
4256         * alloc.c (dbg_typemask): Make const.
4257         * alloc.c (dbg_USE_UNION_TYPE): Make const.
4258         * alloc.c (dbg_valbits): Make const.
4259         * alloc.c (dbg_gctypebits): Make const.
4260
4261 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
4262
4263         * redisplay-x.c (x_bevel_area):
4264         redisplay.h (struct rune):
4265         Typo fixes in comments.
4266
4267 2001-01-05  Andy Piper  <andy@xemacs.org>
4268
4269         * glyphs-x.c (x_redisplay_widget): use size changed for offset
4270         adjustment.
4271
4272         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
4273
4274 2001-01-05  Martin Buchholz  <martin@xemacs.org>
4275
4276         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
4277
4278         * mule-ccl.c (stack_idx_of_map_multiple):
4279         Non const global data must not be initialized!
4280         Found by MIYASHITA Hisashi.
4281
4282 2001-01-02  Andy Piper  <andy@xemacs.org>
4283
4284         * frame.c (change_frame_size): make sure frame size is always
4285         marked as changed.
4286
4287         * glyphs.c (image_instance_layout): minor code reuse.
4288
4289         * window.c (Fcurrent_window_configuration): revert previous
4290         change.
4291
4292 2001-01-02  Martin Buchholz  <martin@xemacs.org>
4293
4294         * glyphs.h:
4295         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
4296
4297 2000-12-31  Andy Piper  <andy@xemacs.org>
4298
4299         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
4300         when widget gets unmapped.
4301
4302         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
4303         function. Make sure widgets losing focus don't just drop it.
4304         (handle_focus_event_1): record the widget with focus.
4305
4306 2000-12-31  Andy Piper  <andy@xemacs.org>
4307
4308         * window.c (allocate_window): use
4309         make_image_instance_cache_hash_table.
4310         (make_dummy_parent): ditto.
4311         (Fset_window_configuration): ditto.
4312
4313         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
4314
4315         * glyphs.c (process_image_string_instantiator): use
4316         INSTANTIATOR_TYPE.
4317         (get_image_instantiator_governing_domain): ditto.
4318         (normalize_image_instantiator): ditto.
4319         (instantiate_image_instantiator): ditto.
4320         (make_image_instance_1): ditto.
4321         (image_instantiate): ditto. Key on glyph *and* instantiator type.
4322         (instantiator_eq_equal): new function for use with instance hash
4323         tables.
4324         (instantiator_eq_hash): ditto.
4325         (make_image_instance_cache_hash_table): create a suitable hash
4326         table for storing image instances.
4327
4328         * elhash.h (hash_table_weakness): new internal weakness type
4329         HASH_TABLE_KEY_CAR_VALUE_WEAK.
4330         declare new functions.
4331
4332         * elhash.c (finish_marking_weak_hash_tables): introduce yet
4333         another weakness type for glyphs.
4334         (make_standard_lisp_hash_table): new function split out from
4335         make_general_lisp_hash_table.
4336         (make_lisp_hash_table): call make_standard_lisp_hash_table.
4337         (hash_table_instantiate): ditto.
4338         (Fmake_hash_table): ditto.
4339
4340 2000-12-31  Martin Buchholz <martin@xemacs.org>
4341
4342         * XEmacs 21.2.39 is released.
4343
4344 2000-12-29  Andy Piper  <andy@xemacs.org>
4345
4346         * menubar.c (menubar_visible_p_changed): signal the frame changed.
4347
4348         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
4349         the frame has changed so that we pick up geometry changes such as
4350         menubar visibility.
4351
4352 2000-12-28  Andy Piper  <andy@xemacs.org>
4353
4354         * lastfile.c (my_ebss): make a char array so we can pad the
4355         bss. Fixes cygwin unexec.
4356
4357         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
4358
4359 2000-12-26  Andy Piper  <andy@xemacs.org>
4360
4361         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
4362         comments and try and be more precise about a non-/SIGIO world.
4363         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
4364         SIGIO.
4365
4366         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
4367         we don't normalize to zero width or height.
4368
4369 2000-12-24  Andy Piper  <andy@xemacs.org>
4370
4371         * Makefile.in.in (ldflags): add -mwindows when appropriate.
4372
4373 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
4374
4375         * s/sco5.h: SCO 5 has pty support.
4376
4377 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
4378
4379         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
4380         input-method-xlib.c contains whole contents of input-method-xfs.c,
4381         so we can use input-method-xlib.c's code for USE_XFONTSET
4382         using #ifdefs.
4383         * input-method-xfs.c: removed.
4384
4385 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
4386
4387         * file-coding.h (enum coding_category_type): reorder enumerators to
4388         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
4389         (now one greater than largest real coding_category_type enumerator).
4390         * file-coding.c (coding_category_symbol, coding_category_by_priority,
4391         coding_category_system, fcd_descriptihon_1, decode_coding_category,
4392         Fcoding_category_list, Fset_coding_priority_list,
4393         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
4394         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
4395
4396 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
4397
4398         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
4399         * redisplay-output.c (redisplay_output_window): Clear top of window
4400         when face is changed.
4401         * redisplay-x.c (x_redraw_exposed_window): Call
4402         redisplay_clear_top_of_window.
4403         * redisplay.h: Publish redisplay_clear_top_of_window.
4404
4405 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
4406
4407         * buffer.c (Fkill_buffer): Map over all devices.
4408         * window.c (window_loop): Remove UNSHOW_BUFFER code.
4409         (list_windows): New function.
4410         (list_all_windows): Ditto.
4411         (Freplace_buffer_in_windows): Use them.
4412
4413 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4414
4415         * database.c (berkdb_subtype): Recognize new subtype `queue'.
4416         (Fopen_database): Use `db_create' instead of `db_open'.
4417         (syms_of_database): Initialize Qqueue.
4418
4419 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
4420
4421         * buffer.c (common_init_complex_vars_of_buffer): Initialize
4422         buffer_local_face_property.
4423         * buffer.h (struct buffer): New member buffer_local_face_property.
4424         * window.c (Fset_window_buffer):  Mark window's face as changed
4425         when buffer has buffer local face.
4426         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
4427         * objects.c (color_after_change): Set buffer_local_face_property
4428         when locale of face specifier is buffer.
4429         * objects.c (font_after_change): Ditto.
4430         * objects.c (face_boolean_after_change): Ditto.
4431         * glyphs.c (image_after_change): Ditto.
4432
4433 2000-12-09  Dan Holmsand  <dan@eyebee.com>
4434
4435         * nt.c (mswindows_fstat): Report file permissions, volume serial
4436         number, etc. Code adapted from FSF Emacs 20.7.
4437
4438 2000-12-09  Dan Holmsand  <dan@eyebee.com>
4439
4440         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
4441         of stat when we don't have symbolic links, to make sure
4442         mswindows_stat is called on mswindows.
4443
4444 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
4445
4446         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
4447
4448 2000-12-12  Martin Buchholz  <martin@xemacs.org>
4449
4450         * doprnt.c (emacs_doprnt_1): More printing fixes.
4451         Make printing of numbers compatible with libc and FSF Emacs.
4452         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
4453         Use the system printf to do most of the hard work of formatting,
4454         instead of doprnt_1().
4455         Calculate memory to allocate for format string.
4456         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
4457         (doprnt_1): Cleaner code and documentation.
4458
4459 2000-12-01  Jerry James  <james@eecs.ukans.edu>
4460
4461         * Makefile.in.in: Use the loop variable to install headers.
4462
4463 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4464
4465         * window.c (Fsplit_window): Don't invalidate face cache.
4466
4467 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4468
4469         * minibuf.c (Fall_completions): Undo the previous change
4470         which removed checking elements start with space.
4471
4472 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
4473
4474         * mule-canna.c: Didier suppression.
4475
4476 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
4477
4478         * mule-canna.c: rename static unsigned char buf[] to key_buffer
4479         (warning suppression).  Add English comment translations.
4480
4481 2000-12-05  Martin Buchholz  <martin@xemacs.org>
4482
4483         * unexelfsgi.c (unexec): Better test for mmap failure.
4484
4485 2000-12-05  Martin Buchholz <martin@xemacs.org>
4486
4487         * XEmacs 21.2.38 is released.
4488
4489 2000-12-05  Martin Buchholz  <martin@xemacs.org>
4490
4491         * redisplay.c (bar-cursor): Make a user variable.
4492
4493         * symsinit.h: Add init_postgresql_from_environment.
4494
4495 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4496
4497         * regex.c: Convert to clean C.
4498
4499 2000-12-05  Dan Holmsand  <dan@eyebee.com>
4500
4501         * realpath.c:
4502         Don't #include sysfile.h. Revert to duplicating PATH_MAX
4503         initialization.
4504         (sys_readlink): renamed to system_readlink to avoid conflict with
4505         the other sys_readlink.
4506
4507 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
4508
4509         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
4510
4511 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
4512
4513         * postgresql.c (init_postgresql_from_environment): new function.
4514         (vars_of_postgresql): Move code initializing Lisp variables out and
4515         into init_postgresql_from_environment.
4516         emacs.c (main_1): Call init_postgresql_from_environment if and only
4517         if running a dumped XEmacs.
4518
4519 2000-08-31  Dan Holmsand  <dan@eyebee.com>
4520
4521         * buffer.c: Make find-file-compare-truenames default to true on
4522         windows.
4523
4524         * realpath.c (win32_abs_start):
4525         (cygwin_readlink):
4526         (win32_readlink): New functions.
4527         (xrealpath): Return really real filenames on windows.
4528
4529         * fileio.c (Ffile_truename): Make file-truename work on windows.
4530
4531 2000-11-29  Didier Verna  <didier@xemacs.org>
4532
4533         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
4534         * faces.c (update_face_cachel_data): use it.
4535         * faces.c (add_face_cachel): use it. Complete background pixmap
4536         frobbing in face cache if `update_face_cachel_data' has not done so.
4537
4538 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
4539
4540         * search.c (string_match_1): Don't set last_thing_searched
4541         when search failed.
4542
4543 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
4544
4545         * buffer.c: Include casetab.h
4546         (common_init_complex_vars_of_buffer): Use new case-table object.
4547         * buffer.h: Include casetab.h
4548         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
4549         (DOWNCASE_TABLE_OF): Ditto.
4550         * bufslots.h: Remove char-tables and add case-table.
4551         * casetab.c: Include casetab.h
4552         (CASE_TABLE_P): Removed.
4553         (mark_case_table): New function.
4554         (allocate_case_table): New function.
4555         (Fcase_table_p): Use new case-table.
4556         (case_table_char): New function.
4557         (Fget_case_table): Ditto.
4558         (Fput_case_table): Ditto.
4559         (Fput_case_table_pair): Ditto.
4560         (Fcopy_case_table): Ditto.
4561         (Fcurrent_case_table): Return case-table.
4562         (Fstandard_case_table): Return case-table.
4563         (Fset_case_table): Fix doc-string.
4564         (set_case_table): Use case-table
4565         (syms_of_casetab): DEFSUBR new functions.
4566         (complex_vars_of_casetab): Set up standard case-table.
4567         * casetab.h: New file.
4568         * editfns.c: Include casetab.h
4569         (Fcompare_buffer_substrings): Use case-table.
4570         * inline.c: Include casetab.h
4571         * lisp.h: Remove bogus extern.
4572         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
4573         * search.c: Include casetab.h
4574         (TRANSLATE_ASCII): Removed.
4575         (TRANSLATE): Unconditionally translate character.
4576         (looking_at_1): Use case-table.
4577         (string_match_1): Ditto.
4578         (fast_string_match): Ditto.
4579         (search_command): Ditto.
4580         (search_buffer): Separate boyer_moore.  Check whether
4581         boyer_moore is possible.
4582         (simple_search): New function.
4583         (boyer_moore): Separated from search_buffer. Translate char.
4584
4585 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
4586
4587         * regex.c (RE_TR_ASCII): Removed.
4588         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
4589         (PATFETCH): Call PATFETCH_RAW.
4590         (PATFETCH_RAW): Fetch Emchar.
4591         (PATUNFETCH): Decrement charptr.
4592         (GET_BUFFER_SPACE): Rename b to buf_end.
4593         (BUF_PUSH): Ditto.
4594         (BUF_PUSH_2): Ditto.
4595         (BUF_PUSH_3): Ditto.
4596         (EXTEND_BUFFER): Ditto.
4597         (SET_LIST_BIT): Ditto.
4598         (regex_compile): Ditto.  Translate non ASCII char.
4599         (compile_range): Ditto.
4600         (re_search_2): Ditto.
4601         (re_match_2_internal): Compare Emchar.
4602         (bcmp_translate): Ditto.
4603
4604 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
4605
4606         * lisp.h (basic char/int typedefs):  comment improvement.
4607
4608 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
4609
4610         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
4611         unstomp inhibit_site_lisp.  Improve comments.
4612
4613 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
4614
4615         * mule-charset.c (Fcharset_property):  improve type checking, comments.
4616
4617 2000-11-28  Andy Piper  <andy@xemacs.org>
4618
4619         * redisplay-output.c (redisplay_output_subwindow): make sure we do
4620         clipped display for windows in the gutter also.
4621         (redisplay_display_boxes_in_window_p): change semantics of return
4622         codes to be more intuitive.
4623
4624         * gutter.h: declare display_boxes_in_gutter_p.
4625
4626         * gutter.c (display_boxes_in_gutter_p): new function for
4627         redisplay.
4628
4629 2000-11-22  Andy Piper  <andy@xemacs.org>
4630
4631         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
4632         autodetect domain.
4633
4634 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
4635
4636         * callproc.c (Fold_call_process_internal):
4637         * gpm.c (Freceive_gpm_event):
4638         (tty_get_foreign_selection): Might be just warning supression.
4639         * fileio.c (Fwrite_region_internal):
4640         (Fset_visited_file_modtime):
4641         * keymap.c (event_matches_key_specifier_p):
4642         Initialize GCPROed variable.
4643
4644         * menubar-x.c (command_builder_find_menu_accelerator):
4645         Initialize before use.
4646
4647 2000-11-23  Andy Piper  <andy@xemacs.org>
4648
4649         * unexcw.c (unexec): make the resulting executable executable.
4650
4651 2000-11-21  Martin Buchholz  <martin@xemacs.org>
4652
4653         * doc.c (get_doc_string):
4654         Use size_t, not int, for result of XSTRING_LENGTH.
4655
4656         * cmds.c (Fdelete_char):
4657         * cmds.c (Fpoint_at_eol):
4658         * cmds.c (Fself_insert_command):
4659         Use EMACS_INT, not int, for result of XINT.
4660         Someday, someone will want to insert more than 2**31 identical characters.
4661
4662         * cmds.c (Fdelete_char):
4663         * cmds.c (Fdelete_backward_char):
4664         * syntax.c (Fforward_word):
4665         * syntax.c (Fforward_comment):
4666         Make COUNT argument optional, for consistency with forward-char et al.
4667
4668 2000-11-22  Martin Buchholz  <martin@xemacs.org>
4669
4670         * lisp.h:
4671         * print.c (long_to_string):
4672         Return a useful value: the pointer at end of data written.
4673
4674         * doprnt.c:
4675         Use `static const char * const' for constant strings.
4676         (union printf_arg): Delete `i', `ui' members.
4677         (get_doprnt_args):
4678         (emacs_doprnt_1):
4679         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
4680         Do all printf-ing via the `l' specifier.
4681         Use EMACS_INT instead of int.
4682         Optimize.
4683
4684 2000-11-20  Didier Verna  <didier@xemacs.org>
4685
4686         * faces.c (update_face_cachel_data): don't frob the background
4687         pixmap when the window is being created. The face is needed but
4688         does not exist yet.
4689
4690 2000-11-20  Andy Piper  <andy@xemacs.org>
4691
4692         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
4693         messing with a debug environment.
4694
4695 2000-11-20  Martin Buchholz  <martin@xemacs.org>
4696
4697         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
4698
4699 2000-11-20  Martin Buchholz  <martin@xemacs.org>
4700
4701         * casetab.c (Fcase_table_p): Fix compile error and crash.
4702
4703 2000-11-18  Philip Aston  <philipa@mail.com>
4704
4705         * s/cygwin32.h: Cygwin has SVR4-like pty support.
4706
4707 2000-11-18  Martin Buchholz  <martin@xemacs.org>
4708
4709         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
4710         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
4711
4712 2000-11-17  Martin Buchholz  <martin@xemacs.org>
4713
4714         * config.h.in: Define HAVE_ELF_H if elf.h exists.
4715         * unexelf.c: Use HAVE_ELF_H.
4716         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
4717         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
4718         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
4719         Greg Harrington <greg_harrington@hotmail.com> provided a machine
4720         for testing.
4721         So this is an unexelfsgi.c from a different line of development.
4722
4723 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
4724
4725         * regex.c (RE_TR_ASCII): New function.
4726         (RE_TRANSLATE): Call it.
4727
4728 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
4729
4730         * buffer.h (TRT_TABLE_OF): Remove assert.
4731         (IN_TRT_TABLE_DOMAIN): Removed.
4732
4733 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
4734
4735         * free-hook.c (log_gcpro):
4736         (show_gcprohist): Add support for GCPRO5.
4737
4738 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
4739
4740         * emacs.c (main_1): Improve -sd error message when --pdump=no.
4741
4742 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
4743
4744         * symeval.h: Declare flush_all_buffer_local_cache.
4745
4746         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
4747         (flush_buffer_local_cache): Added.
4748         (flush_all_buffer_local_cache): Added.
4749
4750         * lrecord.h: Remove unused XD_LO_RESET_NIL.
4751
4752         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
4753         (pdump_dump_data): Ditto.
4754         (pdump_reloc_one): Ditto.
4755         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
4756         before dumping.
4757
4758
4759 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
4760
4761         * buffer.c: Remove if 0'ed entry.
4762         * buffer.h: Rewrite TRT to use char-table.
4763         * bufslots.h: Remove mirror tables.
4764         * casetab.c: Remove mirror tables.
4765         (CASE_TABLE_P): New macro.
4766         (Fcase_table_p): Element of a case table is string or char-table.
4767         (make_mirror_trt_table): Removed.
4768         (set_case_table): Setup char-table from strings for backward
4769         compatibility.
4770         * dired.c (Fdirectory_files):
4771         * dired-msw.c: (mswindows_get_files):
4772         * lisp.h: Change prototype of re_pattern_buffer.
4773         * regex.c: (RE_TRANSLATE): New macro.
4774         (TRANSLATE_P): Ditto.
4775         Change translate to type RE_TRANSLATE_TYPE.
4776         * regex.h: Define RE_TRANSLATE_TYPE
4777         * search.c (TRANSLATE): New macro.
4778         (TRANSLATE_ASCII): New macro.
4779         Translate table is changed to Lisp_Object.
4780         (signal_failure): Inhibit return.
4781
4782 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
4783
4784         * device-msw.c:
4785         * eldap.c:
4786         * event-Xt.c:
4787         * event-stream.c:
4788         * print.c:
4789         Do UNGCPRO before return.
4790
4791 2000-11-14  Martin Buchholz <martin@xemacs.org>
4792
4793         * XEmacs 21.2.37 is released.
4794
4795 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
4796
4797         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
4798         Add comments about discarded return value.
4799
4800 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
4801
4802         * callint.c:
4803         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
4804
4805 2000-10-27  Andy Piper  <andy@xemacs.org>
4806
4807         * gutter.c (Fset_default_gutter_position): default left and right
4808         gutters to visible.
4809         (calculate_gutter_size): calculate resonable heuristic for left
4810         and right gutter sizes.
4811         (specifier_vars_of_gutter): change left and right gutter sizes to
4812         autodetect.
4813         (calculate_gutter_size_from_display_lines): new function.
4814         (output_gutter): check for resizing on left and right gutters.
4815         (clear_gutter): don't special case top and left gutters.
4816         (specifier_vars_of_gutter): use new signature for
4817         set_specifier_caching.
4818
4819         * glyphs-x.c (x_redisplay_widget): spelling fix.
4820         * glyphs.c (specifier_vars_of_glyphs):
4821         * menubar.c (specifier_vars_of_menubar):
4822         * redisplay.c (specifier_vars_of_redisplay):
4823         * toolbar.c (specifier_vars_of_toolbar):
4824         * window.c (specifier_vars_of_window):
4825         * scrollbar.c (specifier_vars_of_scrollbar):
4826         (complex_vars_of_scrollbar): use new signature for
4827         set_specifier_caching.
4828
4829         * specifier.c (set_specifier_caching): include recompute flag.
4830         (recompute_one_cached_specifier_in_window): always recompute if
4831         flag set.
4832         (recompute_one_cached_specifier_in_frame): ditto.
4833
4834         * specifier.h (struct specifier_caching): add recompute flag.
4835
4836 2000-10-24  Andy Piper  <andy@xemacs.org>
4837
4838         * unexcw.c (copy_executable_and_dump_data_section): add new
4839         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
4840         5.0 happy.
4841
4842 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
4843
4844         * console-x.h (x_device): New member modifier_release_time.
4845         * event-Xt.c (x_handle_sticky_modifiers):
4846         Bound interval modifier keys are sticky.
4847         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
4848         * events.h: extern it.
4849
4850 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
4851
4852         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
4853
4854 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
4855
4856         * event-stream.c (execute_command_event): Preserve current_events
4857         and the like when event is misc-user-event.
4858         Inhibit quit during the call to maybe_echo_keys.
4859
4860 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
4861
4862         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
4863         symlink when buffer is killed.
4864         (inhibit_clash_detection): New variable.
4865
4866 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
4867
4868         * console.c (Fset_input_method): Trigger redisplay on tty.
4869
4870 2000-11-07  Martin Buchholz  <martin@xemacs.org>
4871
4872         * process.c (Fprocess_status): Revert to previous behavior:
4873         (process-status "nosuchprocess") ==> nil
4874
4875 2000-11-06  Martin Buchholz  <martin@xemacs.org>
4876
4877         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
4878         Work around another GCC 2.95.2 optimizer bug.
4879
4880 2000-11-02  Martin Buchholz  <martin@xemacs.org>
4881
4882         * process.c (Fget_process): Use LIST_LOOP_2.
4883         (kill_buffer_processes): Use LIST_LOOP_2.
4884
4885         * minibuf.c (Fall_completions):
4886         Delete old non-functional code for FSF fourth argument.
4887
4888         * frame.c (frame_matches_frame_spec):
4889         Renamed from `frame_matches_frametype'.  Update all callers.
4890         (device_matches_device_spec):
4891         Renamed from 'device_matches_console_spec'.  Update all callers.
4892
4893         * doc.c (Fsubstitute_command_keys):
4894         Remove buffer overflow crash.  Small code cleanups.
4895
4896         * casetab.c (check_case_table): Simpler code.
4897
4898         * window.c (Freplace_buffer_in_windows):
4899         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
4900         (and similar implementation) as Fdelete_windows_on.
4901         Update all callers.
4902
4903         * alloc.c (Fmake_list):
4904         * alloc.c (make_vector):
4905         * alloc.c (Fmake_vector):
4906         * alloc.c (make_bit_vector):
4907         * alloc.c (Fmake_bit_vector):
4908         * alloc.c (Fbit_vector):
4909         * alloc.c (Fmake_string):
4910         * alloc.c (Fpurecopy):
4911         * alloc.c (Fmemory_limit):
4912         * buffer.c:
4913         * buffer.c (Fget_buffer):
4914         * buffer.c (Fkill_buffer):
4915         * buffer.c (complex_vars_of_buffer):
4916         * bytecode.c (Fcompiled_function_stack_depth):
4917         * callint.c (Fprefix_numeric_value):
4918         * event-stream.c:
4919         * event-stream.c (Fread_key_sequence):
4920         * casetab.c:
4921         * casetab.c (Fcase_table_p):
4922         * casetab.c (check_case_table):
4923         * casetab.c (Fset_case_table):
4924         * casetab.c (Fset_standard_case_table):
4925         * chartab.c:
4926         * chartab.c (Fchar_table_type):
4927         * chartab.c (Freset_char_table):
4928         * chartab.c (Fget_char_table):
4929         * chartab.c (Fget_range_char_table):
4930         * chartab.c (Fput_char_table):
4931         * chartab.c (Fmap_char_table):
4932         * chartab.c (Fcategory_table_p):
4933         * chartab.c (Fcheck_category_at):
4934         * chartab.c (Fchar_in_category_p):
4935         * chartab.c (Fcategory_table):
4936         * chartab.c (Fcopy_category_table):
4937         * chartab.c (Fset_category_table):
4938         * chartab.c (Fcategory_designator_p):
4939         * chartab.c (Fcategory_table_value_p):
4940         * cmds.c (Fdelete_char):
4941         * cmds.c (Fdelete_backward_char):
4942         * cmds.c (Fself_insert_command):
4943         * cmds.c (Fself_insert_internal):
4944         * console.c (Fvalid_console_type_p):
4945         * console.c (Fcdfw_console):
4946         * console.c (Fconsole_type):
4947         * console.c (Fconsole_name):
4948         * console.c (Fconsole_device_list):
4949         * console.c (Fconsole_on_window_system_p):
4950         * data.c:
4951         * data.c (Feq):
4952         * data.c (Fold_eq):
4953         * data.c (Fsubr_interactive):
4954         * data.c (Fchar_to_int):
4955         * data.c (Fint_to_char):
4956         * data.c (Fsetcar):
4957         * data.c (Fsetcdr):
4958         * data.c (Fnumber_to_string):
4959         * data.c (Fstring_to_number):
4960         * data.c (Frem):
4961         * database.c (mark_database):
4962         * database.c (finalize_database):
4963         * database.c (Fdatabase_live_p):
4964         * database.c (Fdatabasep):
4965         * device-x.c (Fx_get_resource):
4966         * device.c (Fdfw_device):
4967         * dired.c:
4968         * dired.c (Ffile_name_completion):
4969         * dired.c (Ffile_name_all_completions):
4970         * dired.c (Fuser_name_completion):
4971         * dired.c (Fuser_name_completion_1):
4972         * dired.c (Fuser_name_all_completions):
4973         * doc.c (Fdocumentation):
4974         * doc.c (Fdocumentation_property):
4975         * doc.c (Fsubstitute_command_keys):
4976         * editfns.c:
4977         * editfns.c (Fchar_to_string):
4978         * editfns.c (Fstring_to_char):
4979         * editfns.c (Ftemp_directory):
4980         * editfns.c (Finsert_char):
4981         * editfns.c (Fbuffer_substring_no_properties):
4982         * editfns.c (Fnarrow_to_region):
4983         * editfns.c (Fchar_equal):
4984         * editfns.c (Fchar_Equal):
4985         * editfns.c (Ftranspose_regions):
4986         * emacs.c (Fdump_emacs):
4987         * eval.c (Fthrow):
4988         * eval.c (Fcommand_execute):
4989         * eval.c (Fautoload):
4990         * eval.c (Fbacktrace):
4991         * eval.c (Fbacktrace_frame):
4992         * events.c:
4993         * events.c (Fcopy_event):
4994         * events.c (Fcharacter_to_event):
4995         * events.c (Fevent_button):
4996         * events.c (Fevent_process):
4997         * extents.c:
4998         * extents.c (Fnext_extent_change):
4999         * extents.c (Fextent_property):
5000         * faces.c (Ffacep):
5001         * faces.c (Fmake_face):
5002         * file-coding.c:
5003         * file-coding.c (Fencode_shift_jis_char):
5004         * file-coding.c (Fencode_big5_char):
5005         * fileio.c (Ffile_name_directory):
5006         * fileio.c (Ffile_name_nondirectory):
5007         * fileio.c (Ffile_name_as_directory):
5008         * fileio.c (Fdirectory_file_name):
5009         * fileio.c (Ffile_truename):
5010         * fileio.c (Fsubstitute_in_file_name):
5011         * fileio.c (Ffile_modes):
5012         * fileio.c (Fset_file_modes):
5013         * fileio.c (Fset_default_file_modes):
5014         * fileio.c (Fverify_visited_file_modtime):
5015         * floatfns.c (Facos):
5016         * floatfns.c (Fasin):
5017         * floatfns.c (Fatan):
5018         * floatfns.c (Fcos):
5019         * floatfns.c (Fsin):
5020         * floatfns.c (Ftan):
5021         * floatfns.c (Fbessel_j0):
5022         * floatfns.c (Fbessel_j1):
5023         * floatfns.c (Fbessel_jn):
5024         * floatfns.c (Fbessel_y0):
5025         * floatfns.c (Fbessel_y1):
5026         * floatfns.c (Fbessel_yn):
5027         * floatfns.c (Ferf):
5028         * floatfns.c (Ferfc):
5029         * floatfns.c (Flog_gamma):
5030         * floatfns.c (Fexp):
5031         * floatfns.c (Fexpt):
5032         * floatfns.c (Flog):
5033         * floatfns.c (Flog10):
5034         * floatfns.c (Fsqrt):
5035         * floatfns.c (Fcube_root):
5036         * floatfns.c (Facosh):
5037         * floatfns.c (Fasinh):
5038         * floatfns.c (Fatanh):
5039         * floatfns.c (Fcosh):
5040         * floatfns.c (Fsinh):
5041         * floatfns.c (Ftanh):
5042         * floatfns.c (Fabs):
5043         * floatfns.c (Ffloat):
5044         * floatfns.c (Flogb):
5045         * floatfns.c (Fceiling):
5046         * floatfns.c (Ffloor):
5047         * floatfns.c (Fround):
5048         * floatfns.c (Ftruncate):
5049         * floatfns.c (Ffceiling):
5050         * floatfns.c (Fffloor):
5051         * floatfns.c (Ffround):
5052         * floatfns.c (Fftruncate):
5053         * fns.c (Fstring_equal):
5054         * fns.c (Fstring_lessp):
5055         * fns.c (concat2):
5056         * fns.c (concat3):
5057         * fns.c (vconcat2):
5058         * fns.c (vconcat3):
5059         * fns.c (Fsubstring):
5060         * fns.c (Fassoc):
5061         * fns.c (Fold_assoc):
5062         * fns.c (assoc_no_quit):
5063         * fns.c (Fassq):
5064         * fns.c (Fold_assq):
5065         * fns.c (assq_no_quit):
5066         * fns.c (Frassoc):
5067         * fns.c (Fold_rassoc):
5068         * fns.c (Frassq):
5069         * fns.c (Fold_rassq):
5070         * fns.c (rassq_no_quit):
5071         * fns.c (Fremassoc):
5072         * fns.c (remassoc_no_quit):
5073         * fns.c (Fremassq):
5074         * fns.c (remassq_no_quit):
5075         * fns.c (Fremrassoc):
5076         * fns.c (Fremrassq):
5077         * fns.c (remrassq_no_quit):
5078         * fns.c (Fsort):
5079         * fns.c (Fplist_get):
5080         * fns.c (Fplist_put):
5081         * fns.c (Fplist_remprop):
5082         * fns.c (Fplist_member):
5083         * fns.c (Flax_plist_get):
5084         * fns.c (Flax_plist_put):
5085         * fns.c (Flax_plist_remprop):
5086         * fns.c (Flax_plist_member):
5087         * fns.c (Fequal):
5088         * fns.c (Fold_equal):
5089         * fns.c (Frequire):
5090         * fns.c (Fbase64_encode_region):
5091         * fns.c (Fbase64_encode_string):
5092         * fns.c (Fbase64_decode_region):
5093         * frame.c:
5094         * frame.c (frame_matches_frame_spec):
5095         * frame.c (device_matches_device_spec):
5096         * frame.c (next_frame):
5097         * frame.c (previous_frame):
5098         * frame.c (Fnext_frame):
5099         * frame.c (Fprevious_frame):
5100         * frame.c (Fframe_property):
5101         * frame.c (Fset_frame_height):
5102         * frame.c (Fset_frame_size):
5103         * frame.h:
5104         * glyphs.c:
5105         * glyphs.c (if):
5106         * glyphs.c (decode_error_behavior_flag):
5107         * glyphs.c (Fmake_image_instance):
5108         * indent.c (Findent_to):
5109         * intl.c (Fignore_defer_gettext):
5110         * keymap.c (Fkeymapp):
5111         * keymap.c (Flookup_key):
5112         * lread.c:
5113         * lread.c (Fload_internal):
5114         * lread.c (Feval_buffer):
5115         * lread.c (Feval_region):
5116         * macros.c (Fexecute_kbd_macro):
5117         * marker.c (set_marker_internal):
5118         * marker.c (Fset_marker):
5119         * marker.c (set_marker_restricted):
5120         * marker.c (Fcopy_marker):
5121         * marker.c (noseeum_copy_marker):
5122         * menubar.c:
5123         * menubar.c (Fpopup_menu):
5124         * minibuf.c:
5125         * mule-charset.c (Fcharset_name):
5126         * mule-charset.c (Fchar_charset):
5127         * mule-charset.c (Fchar_octet):
5128         * mule-charset.c (Fsplit_char):
5129         * mule-wnnfns.c (Fwnn_open):
5130         * mule-wnnfns.c (Fwnn_dict_comment):
5131         * mule-wnnfns.c (Fwnn_quit_henkan):
5132         * mule-wnnfns.c (Fwnn_word_toroku):
5133         * mule-wnnfns.c (Fwnn_word_sakujo):
5134         * mule-wnnfns.c (Fwnn_word_use):
5135         * mule-wnnfns.c (Fwnn_hindo_set):
5136         * objects.c:
5137         * objects.c (Fmake_color_instance):
5138         * objects.c (Fmake_font_instance):
5139         * print.c (Fwrite_char):
5140         * process.c:
5141         * process.c (mark_process):
5142         * process.c (print_process):
5143         * process.c (get_process_from_usid):
5144         * process.c (Fprocessp):
5145         * process.c (Fprocess_live_p):
5146         * process.c (Fget_process):
5147         * process.c (Fget_buffer_process):
5148         * process.c (get_process):
5149         * process.c (Fprocess_id):
5150         * process.c (Fprocess_name):
5151         * process.c (Fprocess_command):
5152         * process.c (init_process_io_handles):
5153         * process.c (start_process_unwind):
5154         * process.c (Fstart_process_internal):
5155         * process.c (Fopen_multicast_group_internal):
5156         * process.c (Fset_process_window_size):
5157         * process.c (read_process_output):
5158         * process.c (send_process):
5159         * process.c (Fprocess_tty_name):
5160         * process.c (Fset_process_buffer):
5161         * process.c (Fprocess_buffer):
5162         * process.c (Fprocess_mark):
5163         * process.c (set_process_filter):
5164         * process.c (Fset_process_filter):
5165         * process.c (Fprocess_filter):
5166         * process.c (Fprocess_send_region):
5167         * process.c (Fprocess_send_string):
5168         * process.c (exec_sentinel):
5169         * process.c (Fset_process_sentinel):
5170         * process.c (Fprocess_sentinel):
5171         * process.c (status_notify):
5172         * process.c (Fprocess_status):
5173         * process.c (Fprocess_exit_status):
5174         * process.c (process_send_signal):
5175         * process.c (Fprocess_send_eof):
5176         * process.c (deactivate_process):
5177         * process.c (remove_process):
5178         * process.c (Fdelete_process):
5179         * process.c (kill_buffer_processes):
5180         * process.c (Fprocess_kill_without_query):
5181         * process.c (Fprocess_kill_without_query_p):
5182         * rangetab.c:
5183         * rangetab.c (Fget_range_table):
5184         * rangetab.c (Fput_range_table):
5185         * rangetab.c (Fremove_range_table):
5186         * rangetab.c (Fclear_range_table):
5187         * search.c:
5188         * search.c (Fskip_chars_forward):
5189         * search.c (Fskip_chars_backward):
5190         * search.c (Fskip_syntax_forward):
5191         * search.c (Fskip_syntax_backward):
5192         * search.c (search_command):
5193         * search.c (Freplace_match):
5194         * search.c (Fregexp_quote):
5195         * select.c (Fown_selection_internal):
5196         * select.c (Fselection_owner_p):
5197         * select.c (Fselection_exists_p):
5198         * select.c (Fget_selection_internal):
5199         * specifier.c:
5200         * symbols.c:
5201         * symbols.c (Fintern):
5202         * symbols.c (Fintern_soft):
5203         * symbols.c (Funintern):
5204         * symbols.c (Fapropos_internal):
5205         * symbols.c (Fset_default):
5206         * syntax.c:
5207         * syntax.c (Fsyntax_table_p):
5208         * syntax.c (Fcopy_syntax_table):
5209         * syntax.c (Fset_syntax_table):
5210         * syntax.c (Fchar_syntax):
5211         * syntax.c (syntax_match):
5212         * syntax.c (Fmatching_paren):
5213         * syntax.c (Fforward_word):
5214         * syntax.c (scan_lists):
5215         * syntax.c (Fscan_lists):
5216         * syntax.c (Fscan_sexps):
5217         * syntax.c (Fparse_partial_sexp):
5218         * toolbar.c (Fcheck_toolbar_button_syntax):
5219         * tooltalk.doc:
5220         * window.c:
5221         * window.c (Fwindowp):
5222         * window.c (Fwindow_live_p):
5223         * window.c (Fwindow_point):
5224         * window.c (Fdelete_window):
5225         * window.c (Fnext_window):
5226         * window.c (Fprevious_window):
5227         * window.c (Fother_window):
5228         * window.c (window_loop):
5229         * window.c (Fget_lru_window):
5230         * window.c (Fsplit_window):
5231         * window.c (Fenlarge_window):
5232         * window.c (Fenlarge_window_pixels):
5233         * window.c (Fshrink_window):
5234         * window.c (Fshrink_window_pixels):
5235         * window.c (change_window_height):
5236         * window.c (Fwindow_configuration_p):
5237         * window.c (Fcurrent_window_configuration):
5238         * window.h:
5239         * casefiddle.c (casify_object):
5240         * casefiddle.c (Fupcase):
5241         * casefiddle.c (Fdowncase):
5242         * casefiddle.c (Fcapitalize):
5243         * casefiddle.c (Fupcase_initials):
5244         * casefiddle.c (casify_region_internal):
5245         * casefiddle.c (casify_region):
5246         * casefiddle.c (Fupcase_region):
5247         * casefiddle.c (Fdowncase_region):
5248         * casefiddle.c (Fcapitalize_region):
5249         * casefiddle.c (Fupcase_initials_region):
5250         * casefiddle.c (Fupcase_word):
5251         * casefiddle.c (Fdowncase_word):
5252         * casefiddle.c (Fcapitalize_word):
5253         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
5254         Replace 0 with '\0' when working with bytes.
5255         Replace initial "(" with "\(" in docstrings.
5256
5257 2000-11-01  Martin Buchholz  <martin@xemacs.org>
5258
5259         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
5260
5261         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
5262
5263 2000-10-31  Martin Buchholz  <martin@xemacs.org>
5264
5265         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
5266
5267 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5268
5269         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
5270         correctly.
5271
5272 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5273
5274         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
5275         (inhibit_auto_save_session): New variable.
5276         (vars_of_fileio): Declare and initialize them.
5277         * fileio.c (Fdo_auto_save): Don't create session file if
5278         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
5279
5280 2000-10-31  Martin Buchholz  <martin@xemacs.org>
5281
5282         * sgiplay.c (play_internal): C++ compilability.
5283         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
5284         * callproc.c (Fold_call_process_internal):
5285         Remove unused vars `env', `first'.
5286         * scrollbar.c (update_scrollbar_instance):
5287         #### unused var `current_window'.
5288         * redisplay-tty.c: Put currently unused vars insert_mode_on,
5289         etc. within #ifdef NOT_YET.
5290         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
5291         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
5292         * specifier.c (specifier_instance):
5293         #### unused var `tag'.
5294         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
5295
5296 2000-10-27  Martin Buchholz  <martin@xemacs.org>
5297
5298         * fns.c (Fbutlast):
5299         * fns.c (list_sort):
5300         * fns.c (Ffillarray):
5301         * fns.c (bytecode_nconc2):
5302         * fns.c (Fnconc):
5303         * fns.c (mapcar1):
5304         * fns.c (Fmapconcat):
5305         Be pedantically 64-bit correct.  For the time when someone will
5306         want to have a list with length > 2**32.
5307
5308         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
5309         Work around MIPSpro compiler bug.
5310
5311         * process-unix.c (unix_kill_child_process): Add snarky comment.
5312         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
5313
5314         * config.h.in: Oops, _getpt ==> _getpty
5315
5316 2000-10-26  Martin Buchholz  <martin@xemacs.org>
5317
5318         * config.h.in:
5319         * regex.c:
5320         Use void*, not char*, as return type of alloca().
5321
5322         * alloc.c (free_marker): Side effect inside assert expression!
5323
5324 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
5325
5326         * mule-charset.c (Fset_charset_ccl_program): To check
5327         if the given ccl program is valid, use setup_ccl_program()
5328         instead of CHECK_VECTOR().
5329         (Fmake_charset): Likewise.
5330
5331 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
5332
5333         * faces.c (get_extent_fragment_face_cache_index):
5334         Fix cachel.merged_faces memory leak.
5335
5336 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
5337
5338         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
5339         Reset MSB of octets obtained by DECODE_SJIS
5340         because of the incompatibility with Emacs.
5341         (ccl_driver)<CCL_ENCODE_SJIS>:
5342         Set MSB of octets before passing them to
5343         ENCODE_SJIS because of the incompatibility
5344         with Emacs.
5345
5346 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
5347
5348         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
5349         (DECLARE_LRECORD): Undo the last change.
5350         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
5351
5352 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
5353
5354         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
5355         the implementation to lrecord_implementations_table.
5356
5357 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
5358
5359         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
5360         initial value of `lrecord_type_##c_name' and
5361         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
5362         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
5363         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
5364         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
5365         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
5366
5367 2000-10-17  Martin Buchholz  <martin@xemacs.org>
5368
5369         * miscplay.c (sndcnv8S_2mono):
5370         (sndcnv2monounsigned):
5371         (sndcnvULaw_2linear):
5372         (sndcnv16swap):
5373         Remove implementation-defined behavior.
5374
5375 2000-10-12  Martin Buchholz  <martin@xemacs.org>
5376
5377         * input-method-xlib.c: Warning suppression.
5378
5379 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
5380
5381         * mule-ccl.c: Sync up with Emacs 21.0.90.
5382         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
5383         Do nothing.
5384         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
5385         Likewise.
5386         (ccl_driver[WriteMultibyteChar2]): Bug fix.
5387         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
5388         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
5389         leading char belongs to official 2-dimensional charset.
5390         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
5391         write the given character as is.  Otherwise,
5392         if it is a multibyte char, convert it by
5393         non_ascii_set_charptr_emchar, then write it.
5394         (CCL_WRITE_STRING): Likewise.
5395         (ccl_get_compiled_code): New function.
5396         (setup_ccl_program): When ccl_prog is invalid,
5397         return -1.
5398         (Fregister_code_conversion_map): New function.
5399         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
5400
5401         * mule-ccl.h: Sync up with Emacs 21.0.90.
5402         (Fregister_ccl_program): export it.
5403
5404         * redisplay-msw.c (separate_textual_runs):
5405         If ccl program is not valid, don't do ccl conversion.
5406
5407         * redisplay-x.c (separate_textual_runs): Ditto.
5408
5409         * file-coding.c (Fmake_coding_system):
5410         When type is ccl and value is vector, register it
5411         with a proper symbol.  And checks whether the
5412         given ccl program is valid.
5413         (mule_decode): When calling ccl_driver, if src indicates
5414         NULL pointer, set an empty string instead.
5415         (mule_encode): Likewise.
5416
5417 2000-10-11  Martin Buchholz  <martin@xemacs.org>
5418
5419         The following large batch of changes gets us back to a state of
5420         C++ compilability.  Extbyte is now a char, which means that
5421         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
5422
5423         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
5424
5425         * sound.c (Fplay_sound): Type correctness.
5426
5427         * select-x.c (hack_motif_clipboard_selection): Type correctness.
5428         (x_get_window_property): Type correctness.
5429         (receive_incremental_selection): unsigned char ==> Extbyte
5430         (selection_data_to_lisp_data): unsigned char ==> Extbyte
5431         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
5432         (Fx_store_cutbuffer_internal): Type correctness.
5433
5434         * process-unix.c (try_to_initialize_subtty): Type correctness.
5435
5436         * objects-x.c (x_print_color_instance): Type correctness.
5437         (x_print_font_instance): Type correctness.
5438         (x_list_fonts): SExtbyte ==> Extbyte.
5439         (valid_x_font_name_p): SExtbyte ==> Extbyte.
5440         (x_find_charset_font): SExtbyte ==> Extbyte.
5441         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
5442         (truename_via_XListFonts): SExtbyte ==> Extbyte.
5443         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
5444         Use bufbyte_strcmp.
5445
5446         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
5447         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
5448         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
5449         (BYTE_C0_P): Use bit ops for char-signedness safety.
5450         (BYTE_C1_P): Use bit ops for char-signedness safety.
5451         (CHARSET_BY_LEADING_BYTE):
5452         (CHARSET_BY_ATTRIBUTES):
5453         Always use inline function.
5454         Use type_checking_assert.
5455         Hide chlook.
5456
5457         * mule-charset.c (non_ascii_charptr_copy_char):
5458         Modify to work with both ASCII and non-ASCII characters.
5459         Improve docs and variable names.
5460         Replace over-clever fall-through switch with a simple loop.
5461         (Lstream_get_emchar_1):
5462         Replace over-clever fall-through switch with a simple loop.
5463
5464         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
5465         Warning suppression.
5466
5467         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
5468         the return value of Lstream_getc, which could be EOF as well.
5469
5470         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
5471
5472         * lisp.h: Make Extbyte a char, not unsigned char, so that external
5473         APIs can be used on Extbytes without casts.  Risky!
5474         (SExtbyte): Remove.
5475         (UExtbyte): Remove.
5476
5477         * input-method-xlib.c (XIM_init_device):
5478         Use Xlib.h instead of IntrinsicP.h.
5479         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
5480         which will break in X11R7.
5481         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
5482         to call XRegisterIMInstantiateCallback with correct types.
5483
5484         * gui-x.c (button_item_to_widget_value): Type correctness.
5485
5486         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
5487
5488         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
5489         (xbm_instantiate_1): Type correctness.
5490         (BUILD_GLYPH_INST):  Type correctness.
5491
5492         * fileio.c (Fsubstitute_in_file_name): Type correctness.
5493
5494         * file-coding.c:
5495         (decode_coding_sjis):
5496         (decode_coding_big5):
5497         (decode_coding_ucs4):
5498         (decode_coding_utf8):
5499         (decode_coding_iso2022):
5500         (decode_coding_no_conversion):
5501         Make all decoding functions take an Extbyte * arg.
5502         (encode_coding_sjis):
5503         (encode_coding_big5):
5504         (encode_coding_ucs4):
5505         (encode_coding_utf8):
5506         (encode_coding_iso2022):
5507         (encode_coding_no_conversion):
5508         Make all encoding functions take a Bufbyte * arg.
5509         Use size_t instead of unsigned int for memory sizes.
5510         Only cast to unsigned char whenever dereferencing Extbyte *.
5511
5512         * doc.c (unparesseuxify_doc_string): Type correctness.
5513
5514         * console-x.c (split_up_display_spec):
5515         Rewrite without using details of internal string representation.
5516         (x_semi_canonicalize_device_connection): Type correctness.
5517
5518         * config.h.in:
5519         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
5520         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
5521         (HAVE_XFREE386): Removed.
5522
5523         * buffer.h (DEC_CHARPTR): `const' correctness.
5524         (bufbyte_strcmp): New.
5525         (bufbyte_memcmp): New.
5526
5527         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
5528
5529         * buffer.h (XCHAR_OR_CHAR_INT):
5530         Always use inline function.
5531         Remove redundant type checking assert() - XINT will abort quite nicely.
5532
5533 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
5534
5535         * search.c (Freplace_match): Set newtext to an empty string.
5536
5537 2000-10-10  Martin Buchholz  <martin@xemacs.org>
5538
5539         * s/decosf1-3.h: Remove #include of stropts.h
5540         * s/ptx.h: Remove #include of stropts.h
5541         * s/usg5-4.h: Remove #include of stropts.h
5542         * sysproc.h:
5543         * config.h.in:
5544         Use stropts.h, not sys/stropts.h.
5545         Use strtio.h, not sys/strtio.h.
5546
5547 2000-10-04  Martin Buchholz <martin@xemacs.org>
5548
5549         * XEmacs 21.2.36 is released.
5550
5551 2000-09-21  Andy Piper  <andy@xemacs.org>
5552
5553         * glyphs-x.c (x_redisplay_widget): make sure non-structural
5554         changes still involve copying the widget tree.
5555         (update_widget_face): make sure a change is register in the widget
5556         tree. Call update_tab_widget_face appropriately.
5557         (update_tab_widget_face): ditto.
5558         (x_tab_control_redisplay): make sure non-structural changes still
5559         involve copying the widget tree.
5560
5561 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
5562
5563         * lread.c (locate_file): Check the path element is non-nil.
5564
5565 2000-10-02  Martin Buchholz  <martin@xemacs.org>
5566
5567         * lisp.h: Warning suppression for SCO compilers.
5568
5569         * redisplay-tty.c (reset_tty_modes): Fix crash.
5570         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
5571
5572 2000-09-27  Martin Buchholz  <martin@xemacs.org>
5573
5574         Big signal/process handling overhaul.  Bugs fixed:
5575         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
5576         M-x comint-kill-subjob should work for both values nil and t of
5577         process-connection-type. It was broken on most platforms.
5578         Testing on Irix and Cygwin still needed.  Other plaforms tested.
5579         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
5580         * process-unix.c: Signal/Process handling overhaul.
5581         (pty_name): make 64 bytes, as `expect' does, for paranoia.
5582         (allocate_pty): Use all available modern methods of allocating
5583         ptys, falling back to old style BSD allocation as a last resort.
5584         Use allegedly more secure Unix98 pty allocation by default.
5585         (allocate_pty_the_old_fashioned_way): New. the last resort.
5586         (unix_create_process): Push ptem, ldterm, ttcompat where
5587         available.  Autoconfiscate.
5588         (try_to_initialize_subtty): New.
5589         (unix_kill_child_process): Proper signal handling for ptys on most
5590         platforms, using special knowledge of AIX, BSD, etc...
5591         (unix_create_process): Always disconnect_controlling_terminal() for
5592         subprocesses, whether using ptys or not.
5593         * process.h: Remove old getpt-dependent PTY code.
5594         * process.c (Fprocess_send_signal): New, obvious generic function.
5595         (decode_signal): New.
5596         (Finterrupt_process):
5597         (Fkill_process):
5598         (Fquit_process):
5599         (Fstop_process):
5600         (Fcontinue_process):
5601         (Fsignal_process): Use decode_signal.
5602         (process_send_signal):
5603         Many docstring corrections.
5604         Allow any signal to be sent to a process object.
5605         * config.h.in: Add symbols for big signal/process overhaul.
5606         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
5607         * sysproc.h: Include process-related headers, where available:
5608         sys/stropts.h sys/strtio.h pty.h libutil.h
5609         * s/irix4-0.h:
5610         * s/irix5-0.h:
5611         * s/cygwin32.h:
5612         * s/gnu.h:
5613         * s/linux.h:
5614         * s/hpux.h:
5615         * s/aix3-1.h:
5616         Remove old S&M pty stuff.
5617         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
5618         * systty.h: Simplify cpp hackery, improve comments.
5619         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
5620
5621         * editfns.c (Fformat_time_string):
5622         Be a little more paranoid with the return value of ctime.
5623
5624         * fileio.c (check_executable):
5625         (check_writable):
5626         Use symbolic constants X_OK, W_OK.
5627
5628         * console-x.c (split_up_display_spec): Fix a warning.
5629
5630 2000-10-02  Martin Buchholz  <martin@xemacs.org>
5631
5632         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
5633         * ntproc.c (sys_spawnve): make_string ==> build_string
5634         Small clarity improvements.
5635
5636 2000-09-30  Martin Buchholz  <martin@xemacs.org>
5637
5638         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
5639
5640         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
5641
5642         * config.h.in (HAVE_STRCASECMP): Remove.
5643
5644 2000-09-29  Martin Buchholz  <martin@xemacs.org>
5645
5646         * redisplay-output.c (redisplay_output_pixmap):
5647         Cleaner and possibly more 64-bit correct code.
5648
5649 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
5650
5651         * dumper.c (pdump_load_finish): move restoration of
5652         `noninteractive1' to emacs.c (main_1).
5653         * emacs.c (main_1): protect LISP-visible command-line flags
5654         from pdump_load().
5655
5656 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
5657
5658         * Makefile.in.in (versionclean):  Use EXE_TARGET and
5659         DUMP_TARGET instead of literal program names.
5660
5661 2000-09-20  Martin Buchholz  <martin@xemacs.org>
5662
5663         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
5664
5665 2000-09-19  Martin Buchholz  <martin@xemacs.org>
5666
5667         * *: Spelling mega-patch
5668
5669 2000-09-19  Martin Buchholz  <martin@xemacs.org>
5670
5671         * fns.c (bad_bad_turtle):
5672         Delete "Eek!" comment, since we fixed the bug to which it refers.
5673
5674 2000-09-16  Martin Buchholz  <martin@xemacs.org>
5675
5676         * alloca.c: Replace REGISTER with register.
5677
5678 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
5679
5680         * file-coding.c (ucs_to_char): Use countof.
5681
5682 2000-09-16  Martin Buchholz  <martin@xemacs.org>
5683
5684         * file-coding.c: (ucs_to_char):
5685         (complex_vars_of_file_coding):
5686         Use countof instead of sizeof.
5687         Use CHECK_NATNUM instead of CHECK_INT.
5688
5689         * sysdep.c (strcasecmp): Remove.
5690         * device-x.c (ascii_strcasecmp): New.
5691         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
5692         Avoid using non-standard non-portable strcasecmp.
5693
5694 2000-09-16  Martin Buchholz  <martin@xemacs.org>
5695
5696         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
5697         * font-lock.c: remove reference to emacsfns.h.
5698         * search.c: small doc improvement.
5699         * event-Xt.c: correct file names in comments.
5700         * console-x.h Correct file names in comments.
5701         * frame.c: Correct file names in comments.
5702         * event-stream.c: remove Energize from comments.
5703
5704 2000-09-15  Martin Buchholz  <martin@xemacs.org>
5705
5706         * symeval.h (DEFERROR_STANDARD):
5707         (DEFERROR):
5708         (DEFSYMBOL):
5709         (DEFSYMBOL_NO_DUMP):
5710         (DEFSYMBOL_MULTIWORD_PREDICATE):
5711         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
5712         (DEFKEYWORD):
5713         The construct &##name is not sensible C.
5714         Fixes compilation errors with Unixware native compiler.
5715
5716 2000-09-14  Martin Buchholz  <martin@xemacs.org>
5717
5718         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
5719         (next_frame_internal): Removed.  We now just have next_frame.
5720         (next_frame):
5721         Write a simpler and cleaner one-pass algorithm.
5722         Remove called_from_delete_device arg and #ifdefed-out code.
5723         (previous_frame):
5724         Renamed from prev_frame.  Update callers.
5725         Cleaned up to have an analogous implementation to next_frame.
5726         (other_visible_frames_internal): Remove the
5727         called_from_delete_device bogus arg, and hence, remove this
5728         function.  Just use other_visible_frames().
5729
5730         * window.c (Fnext_window):
5731         Prettify docstring.
5732         Since next_frame() is guaranteed to return a frame, remove check
5733         for nil inserted in previous patch.
5734         (Fprevious_window):
5735         Prettify docstring.
5736         Make code look more like Fnext_window.
5737         (window_loop):
5738         Respect the `console' arg when iterating through windows.
5739         Fixes bug: (get-buffer-window buffer t device) not respecting
5740         the `device' arg.
5741         This function needs more work, as others have pointed out.
5742
5743         * frame.h: Rename prev_frame to previous_frame.
5744         device_matches_console_spec no longer takes a `frame' arg.
5745
5746         * s/gnu.h:
5747         * s/linux.h:
5748         * s/hpux.h:
5749         Use EMACS_BLOCK_SIGNAL instead of sigblock.
5750         From "Golubev I. N." <gin@mo.msk.ru>.
5751
5752         * make-src-depend: Fix typo.
5753
5754 2000-09-13  Martin Buchholz  <martin@xemacs.org>
5755
5756         * window.c (Fnext_window):
5757         next_frame() might return nil, not a frame.
5758         Fixes this crash:
5759         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
5760
5761         * frame.c (next_frame_internal):
5762         We've passed a frame if we've passed its device.
5763         Fixes this crash:
5764         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
5765 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
5766
5767 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
5768
5769         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
5770         Allow option to suppress accelerators in menu/dialog items.
5771         (populate_or_checksum_helper): Pass dialog title through above.
5772
5773 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
5774
5775         * event-msw.c (mswindows_key_to_emacs_keysym):
5776         Add "pause" key, fix "menu" key.
5777
5778 2000-09-09  Martin Buchholz  <martin@xemacs.org>
5779
5780         * eval.c (reinit_vars_of_eval):
5781         Increase max_lisp_eval_depth to 1000,
5782         required for thai-xtis.el to byte-compile under some circumstances.
5783
5784 2000-09-04  Martin Buchholz  <martin@xemacs.org>
5785
5786         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
5787         From Kenichi Handa.
5788
5789 2000-09-01  Martin Buchholz  <martin@xemacs.org>
5790
5791         * make-src-depend: Make the generated Makefiles smaller.
5792
5793         * s/hpux.h (SETUP_SLAVE_PTY):
5794         Provide a %d in the format string for the errno argument.
5795
5796         * editfns.c (Ftemp_directory):
5797         Warning fix.
5798         Avoid buffer overrun on very long file name.
5799
5800         * input-method-xlib.c (XIM_init_device):
5801         6th parameter of XRegisterIMInstantiateCallback has different
5802         pointer types on different OSes, so simply cast to (void *).
5803
5804         * unexhp9k800.c: Warning fixes.  Fiddly changes.
5805
5806         * sysdll.c (dll_open):
5807         shl_load will hang hard if passed a NULL filename.
5808         Simply return NULL for compatibility with dlopen.
5809         * sysdll.c: Conform to XEmacs coding standards.
5810
5811         * sysdep.c (get_pty_max_bytes):
5812         Support pty input lines longer than 512 bytes on HP-UX 10.20.
5813
5814 2000-08-31  Martin Buchholz  <martin@xemacs.org>
5815
5816         * tooltalk.c: Add #include <syssignal.h>
5817
5818 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
5819
5820         * s/hpux.h: Don't use undefined function sigunblock().
5821
5822 2000-08-31  Martin Buchholz  <martin@xemacs.org>
5823
5824         * config.h.in: Add HAVE_BALLOON_HELP.
5825         * emacs.c: Use HAVE_BALLOON_HELP.
5826         * Makefile.in.in (x_objs):
5827         Make Balloon Help conditional on finding shape.h.
5828
5829 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
5830
5831         * syntax.c (regex_emacs_buffer_p): New variable.
5832         * syntax.h (regex_emacs_buffer_p): extern.
5833         * search.c (looking_at_1):
5834         (string_match_1):
5835         (fast_string_match):
5836         (search_buffer): Set regex_emacs_buffer_p.
5837         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
5838         when before_dot, at_dot, after_dot.
5839
5840 2000-08-23  Andy Piper  <andy@xemacs.org>
5841
5842         * gui-x.c (popup_selection_callback): Only set action_occurred
5843         when we really have an image instance.
5844         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
5845
5846 2000-08-23  Andy Piper  <andy@xemacs.org>
5847
5848         * gui-msw.c (mswindows_handle_gui_wm_command): set
5849         action_occurred.
5850         * gui-x.c (popup_selection_callback): ditto.
5851
5852         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
5853         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
5854         (struct Lisp_Image_Instance): add action_occurred flag.
5855
5856         * glyphs.c (redisplay_subwindow): use action_occurred flag.
5857         (image_instance_changed): ditto.
5858         (reset_frame_subwindow_instance_cache): only unmap windows - do
5859         not remove them from the cache also.
5860
5861         * glyphs-widget.c (tab_control_update): better debug.
5862         (progress_gauge_update): ditto.
5863         (layout_update): ditto.
5864         (layout_instantiate): ditto.
5865         (tab_control_order_only_changed): cope with null pending items.
5866
5867         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
5868         debug. Force selection of an item when an action occurred. Cope
5869         with null pending_items.
5870         (mswindows_progress_gauge_redisplay): better debug.
5871         * glyphs-x.c (x_tab_control_redisplay): ditto.
5872
5873         * redisplay.c (redisplay_frame): reset the frame cache if the
5874         frame is garbaged.
5875
5876         * window.c (Fset_window_configuration): potentially re-enable
5877         frame cache reset.
5878         (window_unmap_subwindows): need to finalize instances here since
5879         it is only used in mark_window_as_deleted.
5880
5881 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
5882
5883         * nas.c (SndOpenDataForReading):
5884         nas.c (WaveOpenDataForReading):
5885         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
5886         Somehow escaped from the 2000-08-14 patch.
5887
5888 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5889
5890         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
5891         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
5892
5893 2000-08-21  Andy Piper  <andy@xemacs.org>
5894
5895         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
5896         window if it is not already displayed.
5897
5898         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
5899         it is not already displayed.
5900
5901         * window.c (Fset_window_configuration): don't reset the frame
5902         cache.
5903
5904         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
5905         instances from the frame cache if we are actually finalizing them.
5906         (reset_frame_subwindow_instance_cache): reset frame cache only
5907         after unmapping everything.
5908         (map_subwindow): set displayed flag after mapping.
5909
5910 2000-08-21  Martin Buchholz  <martin@xemacs.org>
5911
5912         * data.c (indirect_function):
5913         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
5914
5915         * eval.c (function_argcount):
5916         Use original function when signaling errors.
5917
5918 2000-08-18  Andy Piper  <andy@xemacs.org>
5919
5920         * frame.c (delete_frame_internal): use new
5921         free_frame_subwindow_instances name.
5922
5923         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
5924         (add_tab_item): make return type correct.
5925         (mswindows_tab_control_instantiate): assert index of tab.
5926         (mswindows_tab_control_redisplay): Re-code to use
5927         gui_item_equal_sans_selected and gui_item_list_find_selected.
5928
5929         * glyphs-widget.c (tab_control_update): Correct comment.
5930
5931         * window.c (window_unmap_subwindows): use new
5932         unmap_subwindow_instance_cache_mapper.
5933         (window_unmap_subwindows_cache_mapper): deleted.
5934         (Fset_window_configuration): comparisons should now be with
5935         EQ. Preserve the subwindow instance cache across configuration
5936         changes.
5937         (allocate_window): ditto.
5938         (make_dummy_parent): ditto.
5939
5940         * glyphs.c (free_frame_subwindow_instances): rename from
5941         free_frame_subwindow_instance_cache. finalize all instances rather
5942         than just those in the display cache.
5943         (finalize_all_subwindow_instances): walk windows unmapping and
5944         finalizing subwindows.
5945         (unmap_subwindow_instance_cache_mapper): moved from
5946         window.c. Allow finalization as well as unmapping.
5947
5948         * gui.c (gui_item_list_find_selected): new function.
5949
5950         * gui.h (gui_item_list_find_selected): declare.
5951
5952         * glyphs-x.c (x_tab_control_redisplay): pick tab
5953         explicitly. Re-code to use gui_item_equal_sans_selected and
5954         gui_item_list_find_selected.
5955
5956         * glyphs-x.h: add lwlib-utils.h
5957
5958         * buffer.c (Frecord_buffer): undo previous change.
5959
5960 2000-08-09  Vin Shelton  <acs@xemacs.org>
5961
5962         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
5963         possible.  Create temporary files more securely.  The patch was
5964         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
5965         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
5966         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
5967         for details.
5968
5969 2000-08-07  Ben Wing  <ben@xemacs.org>
5970
5971         * getloadavg.c: remove duplicate (and windows-breaking)
5972         includes of fcntl.h and sys/file.h.
5973
5974         * nt.c: remove duplicate getloadavg() definition.
5975
5976         * sysdll.h (Qdll_filename_encoding): add missing stand-in
5977         encodings.
5978
5979 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
5980
5981         * eval.c (function_argcount): If function needs to be autoloaded
5982         actually use the loaded definition.
5983         GCPRO function.
5984
5985 2000-08-05  Ben Wing  <ben@xemacs.org>
5986
5987         * getloadavg.c: add prototype for getloadavg().  remove
5988         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
5989         of the code).  remove duplicate header includes.
5990
5991         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
5992
5993         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
5994         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
5995         useful load average.
5996
5997         * alloc.c (reinit_alloc_once_early): removed references to
5998         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
5999         the lisp vars are the only things referencing the malloc_sbrk_*
6000         vars, and they were already if 0'd out.  these vars only exist
6001         in the older malloc.c, which is basically unused, and they're
6002         only for informational purposes.
6003
6004         * m\*.h: removed useless VIRT_ADDR_VARIES.
6005
6006         * m\powerpc.h: removed stray NO_ARG_ARRAY.
6007
6008 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
6009
6010         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
6011         color if the image is a mono pixmap.
6012
6013 2000-07-30  Ben Wing  <ben@xemacs.org>
6014
6015         * Makefile.in.in (release):
6016         Remove stray @.
6017
6018         * buffer.c (directory_is_current_directory):
6019         * dired-msw.c (mswindows_get_files):
6020         * dired.c:
6021         * dired.c (Fdirectory_files):
6022         * dired.c (file_name_completion_stat):
6023         * dired.c (Ffile_attributes):
6024         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
6025         preprocessor tricks, to avoid problems on some machines
6026         (e.g. SCO).
6027
6028         * callproc.c (egetenv): GC docs.
6029
6030         * console-msw.h:
6031         * console-msw.h (struct mswindows_dialog_id):
6032         * lrecord.h (lrecord_type):
6033         New object for use with MSW dialogs.
6034
6035         * console.h (struct console_methods):
6036         New enable/disable frame methods, for proper modal dialogs.
6037
6038         * device-msw.c (msprinter_default_printer): Fix to follow
6039         proper Mule conventions.
6040
6041         * device-msw.c:
6042         * device-msw.c (signal_open_printer_error):
6043         * device-msw.c (msprinter_init_device):
6044         * device-msw.c (ensure_not_printing):
6045         * device-msw.c (plist_get_margin):
6046         * device-msw.c (Fmsprinter_select_settings):
6047         * device-msw.c (finalize_devmode):
6048         * device-msw.c (Fmsprinter_settings_despecialize):
6049         * device-msw.c (signal_enum_priner_error):
6050         * extents.c (decode_extent):
6051         * extents.c (decode_map_extents_flags):
6052         * extents.c (decode_extent_at_flag):
6053         * extents.c (Fextent_at):
6054         * extents.c (Fextents_at):
6055         * extents.c (symbol_to_glyph_layout):
6056         [[[[2]]]] Use structured errors.
6057
6058         * dialog-msw.c:
6059         * dialog-msw.c (mswindows_is_dialog_msg):
6060         * dialog-msw.c (mark_mswindows_dialog_id):
6061         * dialog-msw.c (dialog_proc):
6062         * dialog-msw.c (handle_question_dialog_box):
6063         * dialog-msw.c (syms_of_dialog_mswindows):
6064         Define new object to clean up marking; use it as a dialog identifier.
6065         Call new delete-dialog-box-hook.
6066
6067         * dialog-x.c (dbox_selection_callback):
6068         * dialog-x.c (dbox_descriptor_to_widget_value):
6069         * dialog-x.c (x_make_dialog_box_internal):
6070         Call new delete-dialog-box-hook.
6071         Return an id.
6072
6073         * dialog.c:
6074         * dialog.c (syms_of_dialog):
6075         * dialog.c (vars_of_dialog):
6076         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
6077
6078         * eval.c:
6079         * eval.c (signal_call_debugger):
6080         when noninteractive, output stack traces on the console instead
6081         of in a (never-seen) buffer.
6082
6083         * eval.c (signal_type_error):
6084         * eval.c (invalid_argument_2):
6085         * lisp.h:
6086         new funs for use w/structured errors.
6087
6088         * event-Xt.c:
6089         * event-Xt.c (x_to_emacs_keysym):
6090         * event-Xt.c (describe_event):
6091         * event-Xt.c (emacs_Xt_event_handler):
6092         * event-Xt.c (vars_of_event_Xt):
6093         * event-msw.c:
6094         * event-msw.c (mswindows_wnd_proc):
6095         * event-msw.c (vars_of_event_mswindows):
6096         rename {x,mswindows}-debug-events to debug-{}-events for
6097         consistency with other debug-foo variables.
6098
6099         * event-stream.c:
6100         document next-event more clearly.
6101
6102         * fileio.c (Ffile_name_directory):
6103         * fileio.c (Ffile_name_nondirectory):
6104         * fileio.c (Funhandled_file_name_directory):
6105         * fileio.c (file_name_as_directory):
6106         * fileio.c (Ffile_name_as_directory):
6107         * fileio.c (directory_file_name):
6108         * fileio.c (Fdirectory_file_name):
6109         * fileio.c (Fmake_temp_name):
6110         * fileio.c (Ffile_truename):
6111         * fileio.c (Fsubstitute_in_file_name):
6112         * fileio.c (expand_and_dir_to_file):
6113         * fileio.c (barf_or_query_if_file_exists):
6114         * fileio.c (check_executable):
6115         * fileio.c (Ffile_exists_p):
6116         * fileio.c (Ffile_writable_p):
6117         * fileio.c (Ffile_directory_p):
6118         * fileio.c (Ffile_regular_p):
6119         * fileio.c (Ffile_modes):
6120         * fileio.c (Ffile_newer_than_file_p):
6121         * fileio.c (Fverify_visited_file_modtime):
6122         * fileio.c (Fset_visited_file_modtime):
6123         * fileio.c (auto_save_1):
6124         (1). (2).
6125         fix up gcpro's.
6126
6127         * frame-msw.c:
6128         * frame-msw.c (mswindows_init_frame_1):
6129         * frame-msw.c (mswindows_enable_frame):
6130         * frame-msw.c (error_frame_unsizable):
6131         * frame-msw.c (msprinter_init_frame_1):
6132         * frame-msw.c (msprinter_init_frame_3):
6133         * frame-msw.c (console_type_create_frame_mswindows):
6134         (2).
6135         implement new enable/disable frame methods.
6136
6137         * frame-x.c:
6138         * frame-x.c (x_enable_frame):
6139         * frame-x.c (console_type_create_frame_x):
6140         implement new enable/disable frame methods.
6141
6142         * frame.c:
6143         * frame.c (Fdisable_frame):
6144         * frame.c (syms_of_frame):
6145         * frame.h (struct frame):
6146         implement new enable/disable frame methods/functions.
6147
6148         * general-slots.h:
6149         add initial-focus.
6150
6151         * glyphs-msw.c (mswindows_widget_instantiate):
6152         comment that initial-focus should be implemented.
6153
6154         * glyphs-widget.c:
6155         * glyphs-widget.c (check_valid_instantiator):
6156         * glyphs-widget.c (check_valid_orientation):
6157         * glyphs-widget.c (check_valid_tab_orientation):
6158         * glyphs-widget.c (check_valid_justification):
6159         * glyphs-widget.c (check_valid_border):
6160         * glyphs-widget.c (check_valid_callback):
6161         * glyphs-widget.c (check_valid_int_or_function):
6162         * glyphs-widget.c (check_valid_string_or_vector):
6163         * glyphs-widget.c (check_valid_item_list_1):
6164         * glyphs-widget.c (widget_validate):
6165         * glyphs-widget.c (combo_box_validate):
6166         * glyphs-widget.c (widget_instantiate):
6167         * glyphs-widget.c (syms_of_glyphs_widget):
6168         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
6169         * glyphs-widget.c (image_instantiator_combo_box):
6170         * glyphs-widget.c (image_instantiator_scrollbar):
6171         * glyphs-widget.c (image_instantiator_tab_control):
6172         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
6173         (2).
6174         support (unimplemented) keyword initial-focus.
6175         reindent long macros.
6176
6177         * glyphs-x.c (x_redisplay_widget):
6178         * glyphs-x.c (x_button_instantiate):
6179         * glyphs-x.c (x_button_redisplay):
6180         * glyphs-x.c (x_progress_gauge_instantiate):
6181         * glyphs-x.c (x_edit_field_instantiate):
6182         * glyphs-x.c (x_combo_box_instantiate):
6183         * glyphs-x.c (x_tab_control_instantiate):
6184         * glyphs-x.c (x_label_instantiate):
6185         * gui-x.c:
6186         * gui-x.c (button_item_to_widget_value):
6187         * gui-x.c (gui_items_to_widget_values_1):
6188         * gui-x.c (gui_item_children_to_widget_values):
6189         * gui-x.c (gui_items_to_widget_values):
6190         * gui-x.h:
6191         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
6192         add new flag to gui-parsing routines to indicate whether
6193         accelerator specs should be supported.
6194
6195         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
6196
6197         * glyphs.h (struct Lisp_Image_Instance):
6198         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
6199         add initial-focus flag.
6200
6201         * gui.c:
6202         * gui.c (syms_of_gui):
6203         * gui.c (vars_of_gui):
6204         clean up menu-no-selection-hook.
6205
6206         * gui.h:
6207         support delete-dialog-box-hook.
6208
6209         * lread.c (Fload_internal):
6210         * lread.c (locate_file_in_directory_mapper):
6211         (1).
6212
6213         * lrecord.h:
6214         * lrecord.h (struct toolbar_button):
6215         * lrecord.h (syms_of_toolbar):
6216         document how to create a new object.
6217
6218         * menubar-msw.c (mswindows_char_is_accelerator):
6219         may be called on frames w/o menus.
6220
6221         * menubar.c (vars_of_menubar):
6222         clean up :filter docs.
6223
6224         * nt.c (readdir):
6225         * ntproc.c:
6226         (1).
6227
6228         * process-nt.c:
6229         * process-nt.c (validate_signal_number):
6230         * process-nt.c (signal_cannot_launch):
6231         * process-nt.c (nt_create_process):
6232         * process-nt.c (nt_send_process):
6233         * process-nt.c (nt_kill_child_process):
6234         * process-nt.c (nt_open_network_stream):
6235         * process-nt.c (syms_of_process_nt):
6236         (2).
6237         delete quote-handling.  call new lisp code that does it better.
6238
6239         * process-unix.c (connect_to_file_descriptor):
6240         * process-unix.c (allocate_pty):
6241         * process-unix.c (unix_send_process):
6242         * process-unix.c (unix_kill_child_process):
6243         * process-unix.c (unix_open_network_stream):
6244         * process-unix.c (unix_open_multicast_group):
6245         (1). (2).
6246
6247         * process.c:
6248         * process.c (Fstart_process_internal):
6249         (2).  need to canonicalize process path even if absolute.
6250
6251         * select-msw.c (symbol_to_ms_cf):
6252         * select-msw.c (ms_cf_to_symbol):
6253         * select-msw.c (cf_is_autofreed):
6254         * select-msw.c (mswindows_destroy_selection):
6255         * select.c:
6256         * select.c (syms_of_select):
6257         * select.h:
6258         support dibv5, fix bugs. (from Mike Alexander)
6259
6260         * select.c (Fget_selection_internal):
6261         * select.c (select_convert_out):
6262
6263         * sysdep.c:
6264         * sysdep.c (xemacs_stat):
6265         renamed.
6266
6267         * sysdep.c (mkdir):
6268         * sysdep.c (rmdir):
6269         but keep original stat() here because we provide encapsulation
6270         around these funs.
6271
6272         * sysfile.h:
6273         * sysfile.h (fstat):
6274         remove stat garbage.
6275
6276         * syswindows.h:
6277         fix X/MSW conflict.
6278         don't include tchar.h.  it's inappropriate because it makes
6279         compile-time distinctions when we want runtime distinctions.
6280         (we provide our own tchar replacements)
6281
6282         * toolbar.c:
6283         use default object printer for toolbar-button.
6284
6285         * unexcw.c:
6286         make sure we don't encapsulate.
6287
6288         * window.c (vars_of_window):
6289         emphasize that temp-buffer-show-hook is obsolete.
6290
6291 2000-08-05  Martin Buchholz  <martin@xemacs.org>
6292
6293         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
6294         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
6295
6296         * events.c (Fevent_timestamp_lessp):
6297         Not 64-bit clean.  Use EMACS_INT, not int.
6298
6299 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
6300
6301         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
6302         unsigned int and changed the last enum to
6303         lrecord_type_last_built_in_type.
6304         (lrecord_implementations_table): changed prototype to know how
6305         long the array is supposed to be.
6306         (lrecord_type_count): new unsigned int to keep track of the
6307         current number of lisp lrecord types.
6308         (DEFINE_EXTERNAL_LRECORD):
6309         (DECLARE_EXTERNAL_LRECORD): Added these two for external
6310         dynamic-modules to declare new lisp types. They are the same
6311         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
6312         int for each new type, and increment lrecord_type_count by 1.
6313
6314         * alloc.c (lrecord_implementations_table): Changed to reference
6315         lrecord_type_last_built_in_type for the size of the array.
6316         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
6317
6318 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
6319
6320         * glyphs.h (check_valid_item_list): Renamed from
6321         check_valid_item_list_1.
6322
6323 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
6324
6325         * select.c (Qselect_coerce): New.
6326         * select.c (Vselection_coercion_alist): New.
6327         * select.c (syms_of_select): Declare.
6328         * select.c (get-selection-internal): Use it.
6329         Use the new select-coerce functionality.
6330
6331         * select.c (select_coerce): New.
6332         * select.h (select_coerce): Declare.
6333         New function to coerce one type of data into another.
6334
6335 2000-08-03  Martin Buchholz  <martin@xemacs.org>
6336
6337         * callproc.c (Fcall_process_internal):
6338         (Fcall_process_internal):
6339         * process-unix.c (unix_create_process):
6340         Save and restore the value of errno, so that error messages are accurate.
6341
6342 2000-08-01  Martin Buchholz  <martin@xemacs.org>
6343
6344         * elhash.c (print_hash_table):
6345         Fix printing of hash tables to also use `key-and-value' instead of `t'.
6346         Prettify docstrings and indentation.
6347
6348 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
6349
6350         * window.c (Fwindow_pixel_edges): Subtract frame border and
6351         gutter size.
6352
6353 2000-07-31  Andy Piper  <andy@xemacs.org>
6354
6355         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
6356         will acknowledge the change.
6357
6358         * glyphs.h: declare tab_control_order_only_changed.
6359
6360         * glyphs-x.c (x_tab_control_redisplay): use
6361         tab_control_order_only_changed.
6362
6363         * glyphs-widget.c (tab_control_order_only_changed): new function.
6364
6365         * glyphs-msw.c (mswindows_tab_control_redisplay): use
6366         tab_control_order_only_changed.
6367
6368         * gui.c (gui_item_equal_sans_selected): new function.
6369         (gui_item_equal): use it.
6370
6371         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
6372         :properties in favor of :items..
6373
6374         * glyphs-widget.c (check_valid_item_list): rename from
6375         check_valid_item_list_1.
6376         (check_valid_item_list_1): renamed.
6377         (combo_box_validate): deprecate :properties in favor of :items.
6378         (widget_instantiate): ditto.
6379         (tab_control_update): ditto.
6380         (image_instantiator_combo_box): ditto.
6381         (image_instantiator_tree_view): ditto.
6382         (image_instantiator_tab_control): ditto.
6383         (layout_post_instantiate): remove dead code.
6384
6385         * print.c (debug_print_no_newline): only write to debugger if in
6386         WIN32_NATIVE.
6387
6388         * elhash.c (Fmake_hash_table): update doc string.
6389
6390         * event-msw.c (mswindows_wnd_proc): don't allow processing of
6391         messages whilst in GC. This at least stops XEmacs crashing but has
6392         the potential for wierd behaviour.
6393
6394 2000-07-31  Martin Buchholz  <martin@xemacs.org>
6395
6396         * config.h.in:
6397         Make existence of s&m files optional.
6398
6399         * s/bsd386.h: Remove HAVE_GETLOADAVG.
6400         * s/freebsd.h: Remove HAVE_GETLOADAVG.
6401         * s/gnu.h: Remove HAVE_GETLOADAVG.
6402         * s/netbsd.h: Remove HAVE_GETLOADAVG.
6403         * s/sol2.h: Remove HAVE_GETLOADAVG.
6404         * lisp.h: Remove getloadavg() declaration.
6405         * fns.c:
6406         Include <sys/loadavg.h> if available.
6407         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
6408         * config.h.in:  Group together getloadavg()-related macros.
6409         Use only configure-time tests to detect getloadavg().
6410
6411 2000-07-30  Martin Buchholz  <martin@xemacs.org>
6412
6413         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
6414
6415 2000-07-25  Andy Piper  <andy@xemacs.org>
6416
6417         * syswindows.h: add tchar.h for native builds.
6418
6419         * frame.c (syms_of_frame): remove set-glyph-image.
6420
6421         * general-slots.h: add Qset_glyph_image.
6422
6423         * glyphs-widget.c (layout_update): add domain arg to
6424         set-glyph-image.
6425         (syms_of_glyphs_widget): remove set-glyph-image.
6426
6427 2000-07-23  Ben Wing  <ben@xemacs.org>
6428
6429         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
6430         Vpopup_frame_list.
6431
6432 2000-07-22  Andy Piper  <andy@xemacs.org>
6433
6434         * symsinit.h: add syms_of_win32().
6435
6436         * gui-msw.c (syms_of_gui_mswindows): remove
6437         Fmswindows_shell_execute.
6438         (Fmswindows_shell_execute): moved to win32.c.
6439
6440         * emacs.c (main_1): add syms_of_win32 ().
6441
6442         * win32.c (init_potentially_nonexistent_functions): rewrite in
6443         compiler-friendly terms.
6444         (Fmswindows_shell_execute): move here from gui-msw.c.
6445         (syms_of_win32): new.
6446
6447         * device-msw.c (Fmswindows_printer_list): clean up args to
6448         EnumPrinters.
6449         Don't include tchar under cygwin or mingw.
6450         (msprinter_default_printer): make cygwin-friendly.
6451
6452 2000-07-21  Andy Piper  <andy@xemacs.org>
6453
6454         * glyphs-widget.c (image_instantiator_tree_view): use tab
6455         control's update function.
6456         (layout_property): new function. Retrieve items.
6457
6458         * glyphs-msw.c (mswindows_tree_view_redisplay): new
6459         function. Re-populate the tree view from the pending items.
6460
6461         * glyphs.c (instantiate_image_instantiator): Make sure the domain
6462         is designated the parent if the domain is an image instance. This
6463         is needed so that dirtiness can be cascade up the hierarchy and
6464         thus for layout children to be redisplayed correctly.
6465         (allocate_image_instance): rename glyph -> parent.
6466
6467         * redisplay.h: change redisplay_output_layout signature.
6468
6469         * redisplay-msw.c (mswindows_output_display_block): use domain
6470         arg.
6471
6472         * redisplay-x.c (x_output_display_block): use domain arg.
6473
6474 2000-07-10  Andy Piper  <andy@xemacs.org>
6475
6476         * window.c (Fset_window_configuration): add comment.
6477
6478         * redisplay-output.c (compare_runes):
6479         (redisplay_output_subwindow): redisplay rather than update subwindow.
6480         (redisplay_output_layout): ditto.
6481
6482         * redisplay-msw.c (mswindows_frame_output_end):
6483         (mswindows_frame_output_end): make defer window pos optional.
6484
6485         * lisp.h: add Flast.
6486
6487         * glyphs.h (struct image_instantiator_methods): add dest_mask top
6488         normalize method. Change update method to be for changed
6489         instantiators. Add redisplay method. Change signature of layout
6490         method.
6491         (struct Lisp_Image_Instance): add instantiator.
6492         (IMAGE_INSTANCE_INSTANTIATOR): new.
6493         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
6494         (XIMAGE_INSTANCE_INSTANTIATOR): new.
6495         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
6496
6497         * glyphs.c:
6498         (find_instantiator_differences): new function.
6499         (Fset_instantiator_property): new convenience function.
6500         (check_image_instance_structure): strictly check for vector
6501         instantiators.
6502         (normalize_image_instantiator): make non-static.
6503         (instantiate_image_instantiator): pass on dest_mask and use new
6504         signatures for image_instance_layout and friends.
6505         (mark_image_instance): mark the instantiator. Mark the subwindow
6506         face not the widget face.
6507         (image_instance_equal): add instantiator.
6508         (image_instance_hash): ditto.
6509         (allocate_image_instance): ditto.
6510         (Fset_image_instance_property): removed.
6511         (Fimage_instance_file_name): ditto.
6512         (Fcolorize_image_instance): ditto.
6513         (image_instance_layout): add offsets to be set.
6514         (update_image_instance): new function. update an image instance
6515         from its changed instantiator.
6516         (inherit_normalize): add dest_mask.
6517         (xbm_normalize): ditto.
6518         (xface_normalize): ditto.
6519         (xpm_normalize): ditto.
6520         (text_update): set_property -> update.
6521         (image_instantiate): use the glyph identity as a hash key, not the
6522         instantiator.
6523         (glyph_width): use new image_instance_layout signature.
6524         (glyph_ascent): ditto.
6525         (glyph_descent): ditto.
6526         (glyph_height): ditto.
6527         (glyph_query_geometry): ressurrect.
6528         (glyph_layout): ditto.
6529         (redisplay_subwindow): update -> redisplay.
6530         (syms_of_glyphs): add Fset_instantiator_property.
6531         (image_instantiator_format_create): set_property -> update.
6532
6533         * glyphs-x.c:
6534         (autodetect_normalize): add dest_maks to signature.
6535         (x_redisplay_subwindow): update -> redisplay.
6536         (x_redisplay_widget): ditto.
6537         (x_button_redisplay): ditto.
6538         (x_progress_gauge_redisplay): ditto.
6539         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
6540         stacking order.
6541         (console_type_create_glyphs_x): update -> redisplay.
6542         (image_instantiator_format_create_glyphs_x): ditto.
6543
6544         * glyphs-widget.c:
6545         (check_valid_instantiator): disallow glyphs in the instantiator,
6546         they must now be vectors.
6547         (check_valid_instantiator_list): ditto.
6548         (glyph_instantiator_to_glyph): use internal symbol rather than
6549         intern.
6550         (widget_update): renamed from widget_set_property. Call cascaded
6551         update methods.
6552         (redisplay_widget): renamed from update_widget.
6553         (widget_layout): image_instance_layout now takes position as well
6554         as size.
6555         (widget_normalize): ditto.
6556         (widget_instantiate): ditto.
6557         (tab_control_query_geometry) ditto.:
6558         (tab_control_update): renamed from tab_control_set_property.
6559         (progress_gauge_update): set_property -> update.
6560         (layout_normalize): rewrite so that child instantiators are
6561         normalized also.
6562         (layout_update): new function. Create glyphs from the normalized
6563         children and cope with any other layout keywords. We do not
6564         instantiate children here that will be take care of by
6565         redisplay_output_layout.
6566         (layout_instantiate): call layout_update and not much else.
6567         (layout_post_instantiate): not sure whether this is needed
6568         anymore.
6569         (layout_query_geometry): query glyph geometry rather than
6570         image_instance geometry.
6571         (layout_layout): set offsets from pass in parameters. Use glyph
6572         geometry and layout functions rather than image instance ones.
6573         (native_layout_layout): ditto.
6574         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
6575         (image_instantiator_widget): set_property -> update.
6576         (image_instantiator_buttons): ditto.
6577         (image_instantiator_progress_guage): ditto.
6578         (image_instantiator_tab_control): ditto.
6579         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
6580         (image_instantiator_layout): add update method.
6581
6582         * glyphs-msw.c (bmp_normalize):
6583         (mswindows_resource_normalize): add dest_mask so that it can be
6584         proprogated by layout_normalize.
6585         (begin_defer_window_pos): make optional because it may not be the
6586         right thing to do and it introduces differences with X.
6587         (mswindows_unmap_subwindow): ditto.
6588         (mswindows_map_subwindow): ditto.
6589         (mswindows_redisplay_subwindow): renamed from
6590         mswindows_update_subwindow.
6591         (mswindows_redisplay_widget): ditto.
6592         (mswindows_button_redisplay): renamed from
6593         mswindows_button_update. Update is now what the instantiation
6594         function does for a changed instantiator.
6595         (mswindows_progress_gauge_instantiate): set the progress value
6596         here if appropriate.
6597         (mswindows_tab_control_redisplay): cope with re-ordering of the
6598         members of the tab widget by simply selecting the new top
6599         widget. This makes things appear ok if you click on a tab.
6600         (mswindows_combo_box_instantiate): image_instance_layout now takes
6601         position as well as size.
6602         (mswindows_progress_gauge_redisplay): renamed from
6603         mswindows_progress_gauge_update.
6604         (console_type_create_glyphs_mswindows): fix update -> redisplay.
6605         (image_instantiator_format_create_glyphs_mswindows): ditto.
6606
6607         * glyphs-eimage.c (jpeg_normalize):
6608         (gif_normalize):
6609         (png_normalize):
6610         (tiff_normalize): add dest_mask so that it can be proprogated by
6611         layout_normalize.
6612
6613         * elhash.c:
6614         (print_hash_table):
6615         (hash_table_weakness_validate):
6616         (decode_hash_table_weakness):
6617         (Fhash_table_weakness):
6618         (Fhash_table_type):
6619         (syms_of_elhash): use Ben's naming scheme for hashtable types..
6620
6621         * console.h (struct console_methods): move update_* to
6622         redisplay_*.
6623
6624 2000-07-20  Ben Wing  <ben@xemacs.org>
6625
6626         * *.[ch] (XSETOBJ): remove unused middle argument.
6627         lisp-disunion.h: correct wrap_object() to one argument.
6628
6629 2000-07-15  Ben Wing  <ben@xemacs.org>
6630
6631         * s/cygwin32.h:
6632         * s/cygwin32.h (CYGWIN_CONV_PATH):
6633         Add missing logb prototype for v1.1.
6634         Use post-b20 names and alias to pre-b20 names when pre-b20.
6635
6636         * s/windowsnt.h: [5].
6637
6638 2000-07-15  Ben Wing  <ben@xemacs.org>
6639
6640         * Makefile.in.in (x_objs):
6641         * Makefile.in.in (sheap_objs):
6642         * Makefile.in.in (objs):
6643         added win32.o, cosmetic cleanups.
6644
6645         * alloc.c (Fmake_byte_code):
6646         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
6647         etc. macros which declare their own args now.
6648
6649         * alloc.c (syms_of_alloc):
6650         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
6651
6652         * buffer.c:
6653         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
6654
6655         * buffer.c (Fget_file_buffer):
6656         Fixed GCPRO problem.
6657
6658         * buffer.c (get_truename_buffer):
6659         Fixed comment about GC checking.
6660
6661         * buffer.c (syms_of_buffer):
6662         Undeclared those dedicated frame funs.
6663         [2].
6664
6665         * buffer.h:
6666         Define convenience macros for internal/external conversions.
6667         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
6668         and Qenvironment_variable_encoding for cleaner code.
6669
6670         * bufslots.h:
6671         Remove dedicated-frame; in lisp.
6672
6673         * bytecode.c (funcall_compiled_function):
6674         [1].
6675
6676         * bytecode.c (syms_of_bytecode):
6677         [2].
6678
6679         * console-msw.c:
6680         * console-msw.c (mswindows_show_console): Rewrote.
6681
6682         * console-msw.c (Fmswindows_debugging_output): New.
6683         Sends to OutputDebugString (special MSWin debugger interface).
6684
6685         * console-msw.c (Fmswindows_message_box):
6686         Fixed stupid bugs so it works when called from kill-emacs.
6687
6688         * console-msw.c (syms_of_console_mswindows):
6689         Declare Fmswindows_debugging_output.
6690
6691         * console-msw.h:
6692         New MSWin prototypes.
6693
6694         * console-msw.h (struct mswindows_frame):
6695         New entry last-click-mods for improved button-modifier support.
6696
6697         * console-msw.h (FRAME_MSWINDOWS_POPUP):
6698         New struct entry `popup' with corresponding accessor.
6699
6700         * console-x.c:
6701         * console-x.c (split_up_display_spec):
6702         * console-x.c (get_display_arg_connection):
6703         * console-x.c (x_semi_canonicalize_console_connection):
6704         * console-x.c (x_canonicalize_device_connection):
6705         [[[6]]]: Change char to more specific type.
6706         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
6707
6708         * console-x.c (x_semi_canonicalize_console_connection):
6709         * console-x.c (x_canonicalize_device_connection):
6710         [[[9]]]: Fix up error signalling to use new structured error system.
6711
6712         * console-x.h:
6713         [[[4]]]: Define codesys aliases:
6714         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
6715         Qx_color_name_encoding, Qx_display_name_encoding.
6716
6717         * console.h (struct console_methods):
6718         New method make_dialog_box_internal supersedes older
6719         popup_dialog_box method.
6720
6721         * data.c:
6722         Define many new errors, part of new structured errors.
6723
6724         * data.c (init_errors_once_early):
6725         * data.c (syms_of_data):
6726         [2].
6727
6728         * device-msw.c (mswindows_init_device):
6729         [[[5]]]: Cleanup to support NT 3.51.
6730
6731         * device-msw.c (decode_devmode): Cleanup.
6732
6733         * device-msw.c (mswindows_handle_print_setup_dialog_box):
6734         * device-msw.c (mswindows_handle_print_dialog_box):
6735         * device-msw.c (mswindows_handle_page_setup_dialog_box):
6736         * device-msw.c (syms_of_device_mswindows):
6737         Delete the dialog box primitives recently introduced by Kirill and
6738         instead interface to general dialog box interface.
6739
6740         * device-x.c:
6741         * device-x.c (compute_x_app_name):
6742         * device-x.c (x_init_device):
6743         * device-x.c (Fx_valid_keysym_name_p):
6744         * device-x.c (Fx_set_font_path):
6745         [6].
6746         [7].
6747
6748         * device.h (wrap_device): New.
6749         First of its kind; meant to replace XSETDEVICE.
6750
6751         * dialog-msw.c: Many file-dialog symbols.
6752
6753         * dialog-msw.c (mswindows_register_popup_frame): New.
6754         * dialog-msw.c (mswindows_is_dialog_msg): New.
6755         For supporting kbd traversal in dialog boxes.
6756
6757         * dialog-msw.c (dialog_proc):
6758         Support hitting ESC in dialogs.
6759
6760         * dialog-msw.c (struct):
6761         Common dialog box errors.
6762
6763         * dialog-msw.c (handle_file_dialog_box): New.
6764         Add file dialog code.
6765
6766         * dialog-msw.c (handle_question_dialog_box):
6767         Redo existing code to support new question dialog syntax.
6768
6769         * dialog-msw.c (console_type_create_dialog_mswindows):
6770         We support new dialog console method.
6771
6772         * dialog-msw.c (syms_of_dialog_mswindows):
6773         * dialog-msw.c (vars_of_dialog_mswindows):
6774         New file dialog symbols, vars.
6775
6776         * dialog-x.c:
6777         * dialog-x.c (maybe_run_dbox_text_callback):
6778         * dialog-x.c (dbox_descriptor_to_widget_value):
6779         * dialog-x.c (x_make_dialog_box_internal):
6780         * dialog-x.c (console_type_create_dialog_x):
6781         Mule-ize entire file.
6782         Redo to support question dialog syntax.
6783         [6].
6784
6785         * dialog.c:
6786         * dialog.c (Fmake_dialog_box_internal):
6787         * dialog.c (syms_of_dialog):
6788         Kill old popup-dialog-box, replace with new primitive.
6789         Just call device method or signal error.
6790
6791         * eldap.c (Fldap_open):
6792         * eldap.c (Fldap_search_basic):
6793         * eldap.c (Fldap_add):
6794         * eldap.c (Fldap_modify):
6795         [1].
6796         [7].
6797
6798         * emacs.c:
6799         * emacs.c (make_arg_list_1):
6800         * emacs.c (make_arg_list):
6801         Mule-ize call to dll_init().
6802         [6].
6803         [8].
6804
6805         * emacs.c (make_argc_argv):
6806         * emacs.c (free_argc_argv):
6807         * emacs.c (init_cmdargs):
6808         * emacs.c (main_1):
6809         * emacs.c (Fkill_emacs):
6810         * emacs.c (Fdump_emacs):
6811         Update comments about what can be used in syms_* etc.
6812         Call init_win32() when necessary.
6813         Fix up MS Win dialog box in kill-buffer to actually work right.
6814         [7].
6815
6816         * eval.c:
6817         * eval.c (For):
6818         * eval.c (Fand):
6819         * eval.c (Fprogn):
6820         * eval.c (Fprog1):
6821         * eval.c (Fprog2):
6822         * eval.c (FletX):
6823         * eval.c (Flet):
6824         * eval.c (condition_case_3):
6825         * eval.c (Feval):
6826         * eval.c (function_argcount):
6827         * eval.c (funcall_lambda):
6828         [1].
6829
6830         * eval.c (type_error): New.
6831         * eval.c (maybe_type_error): New.
6832         * eval.c (continuable_type_error): New.
6833         * eval.c (maybe_continuable_type_error): New.
6834         * eval.c (type_error_with_frob): New.
6835         * eval.c (maybe_type_error_with_frob): New.
6836         * eval.c (continuable_type_error_with_frob): New.
6837         * eval.c (maybe_continuable_type_error_with_frob): New.
6838         New functions for use with structured errors.
6839
6840         * event-Xt.c:
6841         * event-Xt.c (x_event_to_emacs_event):
6842         Buttons are now modifiers too.
6843
6844         * event-Xt.c (emacs_Xt_current_event_timestamp):
6845         Implement new event method.
6846         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
6847
6848         * event-msw.c:
6849         * event-msw.c (ntpipe_shove_writer): [5].
6850         * event-msw.c (mswindows_enqueue_mouse_button_event):
6851         * event-msw.c (mswindows_drain_windows_queue):
6852         * event-msw.c (mswindows_wnd_proc): [7].
6853         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
6854         * event-msw.c (mswindows_modifier_state):
6855         Throughout: support new button modifiers.
6856
6857         * event-msw.c (emacs_mswindows_current_event_timestamp):
6858         Implement new event method.
6859         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
6860
6861         * event-stream.c:
6862         * event-stream.c (event_stream_current_event_timestamp): New.
6863         * event-stream.c (maybe_kbd_translate): New functionality.
6864         * event-stream.c (vars_of_event_stream):
6865         Document new kbd-translate-table functionality.
6866
6867         * event-stream.c (Fcurrent_event_timestamp): New.
6868         New primitive for use in fabricated events.
6869         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
6870
6871         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
6872
6873         * events.c:
6874         * events.c (Fmake_event):
6875         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
6876         [1].
6877         [9].
6878
6879         * events.c (format_event_object): fix gcc warnings.
6880
6881         * events.c (Fevent_timestamp): Document new primitives.
6882
6883         * events.c (TIMESTAMP_HALFSPACE): New.
6884
6885         * events.c (Fevent_timestamp_lessp): New.  New primitive for
6886         comparing timestamps correctly (half-space algorithm).
6887
6888         * events.c (Fevent_modifier_bits): Doc fix.
6889
6890         * events.c (Fevent_modifiers): Major doc addition.
6891         * events.c (event_x_y_pixel_internal): Typo fix.
6892         * events.c (syms_of_events): Declare new primitives.
6893
6894         * events.h:
6895         Update long comment for button modifiers, timestamps.
6896
6897         * events.h (struct event_stream):
6898         New current_event_timestamp method.
6899
6900         * extents.c:
6901         * extents.c (extent_in_region_p):
6902         * extents.c (decode_extent):
6903         * extents.c (Fset_extent_parent):
6904         * extents.c (decode_map_extents_flags):
6905         Fix gcc warnings.
6906         [9].
6907
6908         * extents.c (struct extent_at_arg):
6909         * extents.c (decode_extent_at_flag):
6910         * extents.c (extent_at_mapper):
6911         * extents.c (extent_at_bytind):
6912         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
6913         * extents.c (Fextents_at): New primitive. [9].
6914         * extents.c (symbol_to_glyph_layout): [9].
6915         Support new primitive `extents-at'.
6916
6917
6918         * extents.c (get_text_property_bytind):
6919         extent_at_bytind has another arg.
6920         [9].
6921
6922         * extents.c (syms_of_extents): New primitive.
6923
6924         * file-coding.c (Fmake_coding_system): [1].
6925         * file-coding.c (subsidiary_coding_system): fix gcc warning
6926         * file-coding.c (syms_of_file_coding): [2].
6927
6928         * fileio.c (Fexpand_file_name):
6929         * fileio.c (Fsysnetunam):
6930         * fileio.c (Ffile_exists_p):
6931         * fileio.c (Ffile_executable_p):
6932         * fileio.c (Fverify_visited_file_modtime):
6933         Clean up GCPROing.
6934
6935         * fileio.c (syms_of_fileio): [2].
6936
6937         * filelock.c (lock_file_1):
6938         * filelock.c (current_lock_owner):
6939         * filelock.c (lock_if_free):
6940         * filelock.c (lock_file):
6941         * filelock.c (unlock_file):
6942         Clean up GCPROing.
6943
6944         * fns.c (concat): Fix gcc warning.
6945
6946         * fns.c (Fmember):
6947         * fns.c (Fold_member):
6948         * fns.c (Fmemq):
6949         * fns.c (Fold_memq):
6950         * fns.c (memq_no_quit):
6951         * fns.c (Fassoc):
6952         * fns.c (Fold_assoc):
6953         * fns.c (Fassq):
6954         * fns.c (Fold_assq):
6955         * fns.c (assq_no_quit):
6956         * fns.c (Frassoc):
6957         * fns.c (Fold_rassoc):
6958         * fns.c (Frassq):
6959         * fns.c (Fold_rassq):
6960         * fns.c (rassq_no_quit):
6961         * fns.c (Fdelete):
6962         * fns.c (Fold_delete):
6963         * fns.c (Fdelq):
6964         * fns.c (Fold_delq):
6965         * fns.c (delq_no_quit):
6966         * fns.c (Fremassoc):
6967         * fns.c (Fremassq):
6968         * fns.c (remassq_no_quit):
6969         * fns.c (Fremrassoc):
6970         * fns.c (Fremrassq):
6971         * fns.c (remrassq_no_quit):
6972         * fns.c (Freverse):
6973         * fns.c (mapcar1):
6974         [1].
6975
6976         * frame-msw.c (mswindows_init_frame_1):
6977         * frame-msw.c (mswindows_delete_frame):
6978         Register popups with dialog code so keyboard traversing works.
6979
6980         * frame-tty.c (tty_raise_frame_no_select): [1].
6981
6982         * frame-x.c:
6983         * frame-x.c (x_set_frame_text_value):
6984         * frame-x.c (x_set_frame_properties):
6985         * frame-x.c (x_create_widgets):
6986         [7].
6987
6988         * frame.c:
6989         * frame.c (Fmouse_pixel_position): Minor doc fixes.
6990
6991         * frame.h (wrap_frame): New.
6992         Macro like wrap_device.
6993
6994         * general.c:
6995         * general.c (SYMBOL):
6996         * general.c (syms_of_general):
6997         Major reorg.  This is now just a wrapper and symbols themselves
6998         are listed in general-slots.h.
6999
7000         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
7001         * glyphs-msw.c (mswindows_resource_instantiate): [5].
7002
7003         * glyphs-msw.c (mswindows_native_layout_instantiate):
7004         Add DS_CONTROL so keyboard traversal will work.
7005
7006         * glyphs-widget.c:
7007         * glyphs-widget.c (syms_of_glyphs_widget):
7008         Move some symbols to general-slots.h.
7009
7010         * glyphs-x.c:
7011         * glyphs-x.c (xbm_instantiate_1):
7012         * glyphs-x.c (x_xbm_instantiate):
7013         * glyphs-x.c (x_xface_instantiate):
7014         * glyphs-x.c (autodetect_instantiate):
7015         * glyphs-x.c (cursor_font_instantiate):
7016         * glyphs-x.c (x_update_widget):
7017         * glyphs-x.c (x_widget_instantiate):
7018         * glyphs.c (bitmap_to_lisp_data):
7019         * glyphs.c (pixmap_to_lisp_data):
7020         [7].
7021
7022         * glyphs.c (syms_of_glyphs):
7023         [2].
7024
7025         * gui-x.c:
7026         * gui-x.c (print_widget_value):
7027         * gui-x.c (menu_separator_style_and_to_external):
7028         * gui-x.c (add_accel_and_to_external):
7029         * gui-x.c (button_item_to_widget_value):
7030         * gui-x.c (gui_items_to_widget_values_1):
7031         * gui-x.c (gui_items_to_widget_values):
7032         * gui-x.c (syms_of_gui_x):
7033         * gui-x.c (vars_of_gui_x):
7034         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
7035         [9].
7036
7037         * gui-x.h:
7038         Muleize, prototype changes matching gui-x.c.
7039
7040         * gui.c:
7041         * gui.c (separator_string_p):
7042         * gui.c (gui_item_add_keyval_pair):
7043         * gui.c (make_gui_item_from_keywords_internal):
7044         * gui.c (signal_too_long_error):
7045         * gui.c (parse_gui_item_tree_item):
7046         * gui.c (syms_of_gui):
7047         * gui.c (vars_of_gui):
7048         * gui.h:
7049         menu-no-selection-hook moved here (used by MSWin).
7050         Move some symbols to general-slots.h.
7051         [6].
7052         [9].
7053
7054         * insdel.c (get_buffer_pos_char):
7055         * insdel.c (get_buffer_range_char):
7056         Add GC comments.
7057
7058         * keymap.c (keymap_lookup_directly):
7059         * keymap.c (keymap_store):
7060         * keymap.c (ensure_meta_prefix_char_keymapp):
7061         * keymap.c (describe_map):
7062         * keymap.h:
7063         Support new button modifiers.
7064
7065         * lisp-disunion.h (wrap_object):
7066         * lisp-disunion.h (XSETOBJ):
7067         Rename make_obj to wrap_object.
7068
7069         * lisp-union.h:
7070         * lisp-union.h (make_int):
7071         * lisp-union.h (make_char):
7072         Support wrap_object.
7073
7074         * lisp.h:
7075         * lisp.h (LIST_LOOP):
7076         * lisp.h (EXTERNAL_LIST_LOOP):
7077         * lisp.h (LIST_LOOP_2):
7078         * lisp.h (EXTERNAL_LIST_LOOP_1):
7079         * lisp.h (EXTERNAL_LIST_LOOP_2):
7080         * lisp.h (EXTERNAL_LIST_LOOP_3):
7081         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
7082         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
7083         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
7084         * lisp.h (EXTERNAL_ALIST_LOOP_5):
7085         * lisp.h (EXTERNAL_ALIST_LOOP_6):
7086         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
7087         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
7088         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
7089         * lisp.h (struct Lisp_Symbol):
7090         * lisp.h (maybe_continuable_error_with_frob):
7091         Fix up section comments.
7092         Add new types for char to indicate usage.
7093         Delete symbols auto-generated from general-slots.h.
7094         Add prototypes for structured error functions.
7095         Add long comments describing looping macros and change interface
7096         so that lvalues are automatically declared.
7097         Add NO_DECLARE macro in case callers want to declare lvalues
7098         themselves.
7099
7100         * lread.c (read_syntax_error):
7101         * lread.c (continuable_read_syntax_error):
7102         * lread.c (read_structure):
7103         * lread.c (sequence_reader):
7104         * lread.c (read_list_conser):
7105         * lread.c (read_compiled_function):
7106         Rename syntax_error and continuable_syntax_error to avoid clash
7107         with same-named structured error functions.
7108
7109         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
7110         * menubar-msw.c (populate_menu_add_item):
7111         * menubar-msw.c (populate_or_checksum_helper):
7112         [5].
7113         [9].
7114
7115         * menubar-x.c:
7116         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
7117         Mule-ize whole file.
7118
7119         * menubar.c (Fnormalize_menu_item_name): Add optimization.
7120
7121         * mule-charset.c (Fmake_charset):
7122         * mule-wnnfns.c (Fwnn_set_param):
7123         [1].
7124
7125         * ntproc.c (create_child):
7126         * ntproc.c (Fwin32_set_current_locale):
7127         Add comments portending doom.
7128
7129         * objects-msw.c:
7130         * objects-msw.c (old_font_enum_callback_2):
7131         * objects-msw.c (font_enum_callback_1):
7132         * objects-msw.c (mswindows_enumerate_fonts):
7133         [5].
7134
7135         * objects-x.c:
7136         * objects-x.c (allocate_nearest_color):
7137         * objects-x.c (x_parse_nearest_color):
7138         * objects-x.c (x_initialize_color_instance):
7139         * objects-x.c (x_print_color_instance):
7140         * objects-x.c (x_finalize_color_instance):
7141         * objects-x.c (x_valid_color_name_p):
7142         * objects-x.c (x_initialize_font_instance):
7143         * objects-x.c (x_print_font_instance):
7144         * objects-x.c (valid_x_font_name_p):
7145         * objects-x.c (truename_via_FONT_prop):
7146         * objects-x.c (truename_via_random_props):
7147         * objects-x.c (truename_via_XListFonts):
7148         * objects-x.c (x_font_truename):
7149         * objects-x.c (x_font_instance_truename):
7150         * objects-x.c (x_font_instance_properties):
7151         * objects-x.c (x_list_fonts):
7152         * objects-x.c (x_find_charset_font):
7153         Mule-ize entire file.
7154         [7].
7155
7156         * objects-x.h:
7157         Mule-verify.
7158
7159         * print.c:
7160         * print.c (std_handle_out_external):
7161         * print.c (debug_print_no_newline):
7162         * print.c (syms_of_print):
7163         Output to all debugger kinds in debug-print.
7164         Fix console-output code under MSWin to actually work.
7165
7166         * process-nt.c (send_signal):
7167         * process-nt.c (nt_create_process):
7168         Use newer Unicode macros.
7169
7170         * process-unix.c (unix_create_process):
7171         * process-unix.c (unix_canonicalize_host_name):
7172         * process-unix.c (unix_open_network_stream):
7173         [7].
7174
7175         * scrollbar-x.c:
7176         Mule-verify.
7177
7178         * search.c (syms_of_search):
7179         [2].
7180
7181         * select-msw.c (mswindows_destroy_selection):
7182         Use LIST_LOOP_2.
7183
7184         * select-x.c (symbol_to_x_atom):
7185         [7].
7186
7187         * select.c (syms_of_select):
7188         [2].
7189
7190         * sound.c (Fplay_sound_file):
7191         [7].
7192
7193         * specifier.c:
7194         * specifier.c (decode_specifier_type):
7195         * specifier.c (Fvalid_specifier_locale_type_p):
7196         * specifier.c (check_valid_locale_or_locale_type):
7197         * specifier.c (decode_locale):
7198         * specifier.c (decode_locale_type):
7199         * specifier.c (decode_locale_list):
7200         * specifier.c (check_valid_domain):
7201         * specifier.c (decode_specifier_tag_set):
7202         * specifier.c (Fcanonicalize_tag_set):
7203         * specifier.c (Fdefine_specifier_tag):
7204         * specifier.c (Fspecifier_tag_predicate):
7205         * specifier.c (check_valid_inst_list):
7206         * specifier.c (check_valid_spec_list):
7207         * specifier.c (decode_how_to_add_specification):
7208         * specifier.c (check_modifiable_specifier):
7209         * specifier.c (specifier_add_spec):
7210         * specifier.c (boolean_validate):
7211         * specifier.c (display_table_validate):
7212         [9].
7213
7214         * specifier.c (syms_of_specifier):
7215         Move some symbols to general-slots.h.
7216         [2].
7217
7218         * symbols.c:
7219         * symbols.c (Fmapatoms):
7220         * symbols.c (Fapropos_internal):
7221         Add GCPROs.
7222
7223         * symbols.c (set_default_buffer_slot_variable):
7224         * symbols.c (set_default_console_slot_variable):
7225         [1].
7226
7227         * symbols.c (defsymbol_massage_name_1):
7228         * symbols.c (defkeyword_massage_name):
7229         * symbols.c (deferror_1):
7230         * symbols.c (deferror):
7231         * symbols.c (deferror_massage_name_and_message):
7232         * symeval.h:
7233         * symeval.h (DEFSYMBOL):
7234         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
7235
7236         * symbols.c (syms_of_symbols):
7237         [2].
7238
7239         * symsinit.h:
7240         * symsinit.h (init_win32): New.
7241         Also new is syms_of_dialog_mswindows.
7242
7243         * syswindows.h:
7244         Add new Unicode macros, missing Cygwin wide-char functions,
7245         convenience conversion macros for Qmswindows_tstr, macros for
7246         encapsulating required MSWin <-> Cygwin filename conversions,
7247         prototype for dynamically-extracted (not in NT 3.51) functions.
7248
7249         * toolbar-x.c:
7250         Mule-verify.
7251
7252         * tooltalk.c (Fadd_tooltalk_message_arg):
7253         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
7254         * tooltalk.c (Fadd_tooltalk_pattern_arg):
7255         [7].
7256
7257         * tooltalk.c (syms_of_tooltalk):
7258         [2].
7259
7260         * unexnt.c:
7261         * unexnt.c (unexec):
7262         Fix up headers, declaration of unexec() to be more standard.
7263
7264 2000-07-20  Martin Buchholz  <martin@xemacs.org>
7265
7266         * offix.h: Revert change to guard macros - they're used in offix.c!
7267
7268 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7269
7270         * lisp.h: Defsubred Fdelete.
7271
7272         * console-msw.h:  (msprinter_default_printer): Added.
7273
7274         * console-msw.c (msprinter_canonicalize_console_connection):
7275         (msprinter_canonicalize_device_connection): Added.
7276
7277         * device-msw.c (msprinter_default_printer):
7278         (Fmswingows_get_default_printer):
7279         (signal_enum_priner_error):
7280         (Fmswingows_printer_list): Added.
7281
7282 2000-07-19  Martin Buchholz <martin@xemacs.org>
7283
7284         * XEmacs 21.2.35 is released.
7285
7286 2000-07-19  Martin Buchholz  <martin@xemacs.org>
7287
7288         * select-x.c (x_handle_selection_request):
7289         Text selected in xemacs and pasted into xterm failed to appear.
7290         Spelling fixes and cosmetic changes.
7291
7292 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7293
7294         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
7295         XEmacs frame (fix for doubling chars in dialog boxes).
7296
7297 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7298
7299         * select.c (select_convert_in, select_convert_out):
7300         Don't call intern() every time.
7301
7302         * select.c (Qselect_convert_in, Qselect_convert_out): New.
7303         * select.c (vars_of_select): Initialise them.
7304
7305 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7306
7307         * select.c (selection-coercible-types): New.
7308
7309         * select.c (own-selection-internal):
7310         * select.c (get-selection-internal):
7311         MULE bug fix - these should default to COMPOUND_TEXT and not
7312         STRING for MULE. I think.
7313
7314         * select.c (select_convert_out): Use selection-coercible-types
7315         to find types that we can attempt to perform coercions on.
7316
7317 2000-07-18  Martin Buchholz  <martin@xemacs.org>
7318
7319         * mule-wnnfns.c:
7320         * mule-canna.c:
7321         Add coding: cookie to identify encoding.
7322
7323         * mule-canna.c (CANNA_mode_keys): make static.
7324         Use proper prototypes, even for functions of no arguments.
7325         Remove external prototype for Fding().
7326
7327         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
7328
7329         * select.c (syms_of_select): Add missing DEFSUBR.
7330
7331 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7332
7333         * select.c (get_selection_internal, own_selection_internal):
7334         Make the type default to STRING, rather than placing a nil type
7335         into Vselection_alist.
7336
7337 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7338
7339         * gpmevent.c (tty_selection_exists_p):
7340         * gpmevent.c (tty_own_selection):
7341         Updated parameter lists.
7342
7343 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
7344
7345         * select.h (selection-alist): Removed declaration.
7346
7347         * select.h (get_local_selection):
7348         * select.c (get_local_selection):
7349         Made static.
7350
7351         * select.h (convert_selection): Removed declaration.
7352         * select.c (convert_selection): Removed.
7353         This function belongs in Lisp.
7354
7355         * select.h (select_convert_in): Declare.
7356         * select.h (select_convert_out): Declare.
7357         * select.c (select_convert_in): New.
7358         * select.c (select_convert_out): New.
7359         New conversion functions for other files to call.
7360
7361         * select.h (select_notify_buffer_kill): Declare.
7362         * select.c (select_notify_buffer_kill): New.
7363         New functions that get called from kill-buffer.
7364
7365         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
7366         X-specific lisp code.
7367
7368         * select.h: Declare some of the lisp-visible functions for
7369         external use.
7370
7371         * select.c (clean_local_selection_data): Removed. This was
7372         a disgusting function, and previously should have been in
7373         select-x.c in any case. The functionality is now provided
7374         in select-convert-from-integer (select.el).
7375
7376         * select.c (available-selection-types): Fixed stupidity where
7377         INTEGER and ATOM got added twice. Also add STRING when we see an
7378         extent.
7379
7380         * select.c (get-selection-internal): Removed symbol stripping. No
7381         longer causes conversion when data comes from the internal cache.
7382
7383         * select.c (syms_of_select): Added new functions.
7384
7385         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
7386         error checking - previously this called abort!
7387
7388         * select-x.c (x_own_selection): Changed comment.
7389
7390         * select-x.c (x_handle_selection_request): Use select_convert_out.
7391         Don't mess with selection-alist; it's an internal variable of select.c.
7392
7393         * select-x.c (x_get_foreign_selection): Use select_convert_in.
7394
7395         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
7396         rather than messing with selection-alist.
7397
7398         * select-msw.c (mswindows_get_foreign_selection):
7399         Use TO_INTERNAL_FORMAT rather than hacking.
7400
7401 2000-07-14  Martin Buchholz  <martin@xemacs.org>
7402
7403         * process-unix.c (unix_open_multicast_group):
7404         (unix_open_multicast_group): Remove useless casts.
7405
7406 2000-07-13  Martin Buchholz  <martin@xemacs.org>
7407
7408         * sound.c (Fplay_sound): Fix `unused variable' warning.
7409
7410         * emacs.c (main): Use correct type for _environ on SCO5.
7411
7412 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
7413
7414         * console.h (own_selection_method):
7415         * console.h (selection_exists_p_method):
7416         * console.h (available_selection_types_method): New.
7417         * console.h (register_selection_data_type_method): New.
7418         * console.h (selection_data_type_name): New.
7419
7420         * console-msw.h (mswindows_destroy_selection): Declare it.  New
7421         function & alist to track GlobalAlloc()'d handles that need
7422         releasing when the clipboard data gets replaced or emptied.
7423
7424         * event-msw.c (mswindows_wnd_proc): Call it.
7425
7426         * lisp.h, general.c (Qappend): New symbol representing a
7427         `how-to-add' mode.
7428
7429         * select.c (own-selection-internal):
7430         * select.c (selection-exists-p):
7431         * select.c (available-selection-types): New.
7432         * select.c (register-selection-data-type): New.
7433         * select.c (selection-data-type-name): New.  New functions to deal
7434         with device-specific selection data formats.
7435         * select.c (selection-converter-out-alist): Renamed.
7436         * select.c (selection-converter-in-alist): New.
7437         * select.c (selection-appender-alist): New.  Added new alists.
7438         * select.c (syms_of_select, vars_of_select): Added new symbols &
7439         variables.
7440         * select.c (get_local_selection): Split.
7441         * select.c: Removed spurious type checking - selections may now be
7442         of any type, not just strings.
7443         * select.c (own-selection-internal):
7444
7445         * select.h, select.c (convert_selection): New. Created
7446         convert_selection() function based on get_local_selection().
7447         * select.h, select.c (QCF_*): New symbols representing mswindows
7448         clipboard formats.
7449         * select.h, select.c (Qreplace_all, Qreplace_existing): New
7450         symbols representing `how-to-add' modes.
7451
7452         * select-msw.c (x_sym_p): New.
7453         * select-msw.c (symbol_to_ms_cf): New.
7454         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
7455         symbols & clipboard formats. Can also handle string names.
7456         * select-msw.c (mswindows_own_selection):
7457         * select-msw.c (mswindows_selection_exists_p):
7458         Added `data-type' parameter. Use it.
7459         * select-msw.c (mswindows_available_selection_types): New.
7460         * select-msw.c (mswindows_register_selection_data_type): New.
7461         * select-msw.c (mswindows_selection_data_type_name): New.
7462         * select-msw.c (mswindows_own_selection):
7463         * select-msw.c (mswindows_get_foreign_selection):
7464         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
7465         * select-msw.c (console_create_select_mswindows): Added new methods.
7466         * select-msw.c (mswindows_destroy_selection): New.
7467         * select-msw.c (Vhandle_alist): New list.
7468         * select-msw.c (mswindows_own_selection):
7469
7470         * select-x.c (x_own_selection):
7471         * select-x.c (x_selection_exists_p):
7472         * select-x.c: Added some comments about maybe using new
7473         functionality.
7474         * select-x.c (x_own_selection):
7475
7476         * specifier.c: Remove definition of Qappend (now in general.c)
7477         * specifier.c (syms_of_specifier): Remove Qappend.
7478
7479 2000-07-12  Martin Buchholz  <martin@xemacs.org>
7480
7481         * config.h.in: Add socklen_t.
7482
7483         * s/decosf4-0.h: No special compiler flags needed or desired.
7484         In particular, undefine _BSD for DEC OSF 4.0.
7485
7486 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7487
7488         * redisplay-msw.c (msprinter_frame_output_end): Added.
7489         (console_type_create_redisplay_mswindows): Referred the above.
7490
7491         * frame.c (setup_frame_without_minibuffer): Do not create a
7492         default minibuffer frame on a printer device.
7493
7494         * frame-msw.c (apply_dc_geometry): Added.
7495         (msprinter_start_page):
7496         (msprinter_init_frame_3):
7497         (msprinter_eject_page): Use it.
7498
7499         * console-msw.h (struct msprinter_frame): Added pix_left and top,
7500         and removed residual duplex and orientation properties.
7501
7502 2000-07-11  Martin Buchholz  <martin@xemacs.org>
7503
7504         * eval.c (function_argcount): Work around a DEC CC compiler bug.
7505
7506         * unexalpha.c: Remove system prototypes from C sources!
7507
7508 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
7509
7510         * eval.c: Remove references to M-x edit-options in DEFUNs for
7511         `defvar' and `defconst'.
7512
7513 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7514
7515         * config.h.in: Remove SMART_INCLUDE hackery.
7516
7517         PostgreSQL hacking:
7518         * config.h.in: Don't use SMART_INCLUDE.
7519
7520         * postgresql.h: Include libpq-fe.h here.  Fix typo.
7521         * inline.c: Simply #include "postgresql.h"
7522         * postgresql.c:
7523         - Don't use SMART_INCLUDE
7524         - Use simply "const".
7525         - Use standard doc string conventions.
7526         - Use correct type for result of PQstatus.
7527
7528 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7529
7530         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
7531
7532         C++ compilation changes.
7533         * config.h.in (EXTERN_C): Define.
7534         * config.h.in (not): This is also a C++ keyword.
7535         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
7536         * cm.c: Use EXTERN_C.
7537         * redisplay-tty.c: Use EXTERN_C.
7538         * sysdep.c: Use EXTERN_C.  Remove Gould support.
7539
7540 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7541
7542         * general.c: Remove duplicate definition for Qfunction.
7543
7544 2000-07-08  Ben Wing  <ben@xemacs.org>
7545
7546         * device-msw.c (msprinter_init_device):
7547         * device-msw.c (sync_printer_with_devmode):
7548         * device-msw.c (handle_devmode_changes):
7549         * device-msw.c (print_dialog_worker):
7550         * device-msw.c (Fmsprinter_apply_settings):
7551         * device-msw.c (hash_devmode):
7552         * device-msw.c (Fmsprinter_settings_despecialize):
7553         use Qmswindows_tstr, not Qctext.
7554
7555         * vm-limit.c (check_memory_limits):
7556         avoid infinite loop printing warning messages.
7557
7558 2000-07-05  Craig Lanning  <lanning@scra.org>
7559
7560         * Makefile.in.in: Add support for including the Windows resources
7561         when building with the cygwin and mingw targets.
7562
7563         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
7564         not set or not correct.
7565         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
7566         (init_initial_directory): Don't try to use $PWD on the
7567         WIN32_NATIVE target.
7568
7569         * s\cygwin32.h:
7570         [[Add -mwindows to eliminate console window.]] not required --ben
7571         (HAVE_NATIVE_SOUND): removed; now handled by configure.
7572         (MAIL_USE_POP): removed; now handled by configure.
7573
7574         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
7575         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
7576         (HAVE_NATIVE_SOUND): removed; now handled by configure.
7577         (MAIL_USE_POP): removed; now handled by configure.
7578         (ENCAPSULATE_STAT): from Dan Holmsand, added.
7579         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
7580         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
7581         constant string.
7582         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
7583         up from <winsock.h> via systime.h.
7584         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
7585         (getpagesize): from Dan Holmsand, added.
7586         Added #endif which was left dangling by Ben's mega patch; added
7587         comment to help prevent this in the future.
7588
7589         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
7590
7591 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7592
7593         * console-msw.h (struct mswindows_device): Removed unnecessary
7594         cached device geometry values.
7595         Added update_tick and an accessor macro.
7596         (Lisp_Devmode): Added lrecord declaration.
7597         (struct msprinter_device): Contain devmode as a Lisp object.
7598         Added mswindows_get_selected_frame_hwnd();
7599
7600         * console.h (struct console_methods): Indentation nitpicking.
7601
7602         * device-msw.c (mswindows_init_device): Do not initialize geometry
7603         cache. Initialize update tick.
7604         (mswindows_device_system_metrics): Ask the device for its geometry.
7605         (global_free_2_maybe):
7606         (devmode_to_hglobal):
7607         (handle_printer_changes):
7608         (ensure_not_printing):
7609         (print_dialog_worker):
7610         (Fmsprinter_print_setup_dialog):
7611         (Fmsprinter_print_dialog):
7612         (plist_get_margin):
7613         (plist_set_margin):
7614         (Fmsprinter_page_setup_dialog): Added functions.
7615         (sync_printer_with_devmode):
7616         (handle_devmode_changes):
7617         (Fmsprinter_get_settings):
7618         (Fmsprinter_select_settings):
7619         (Fmsprinter_apply_settings):
7620         (allocate_devmode):
7621         (Fmsprinter_settings_copy):
7622         (Fmsprinter_settings_despecialize):
7623         (print_devmode):
7624         (finalize_devmode):
7625         (equal_devmode):
7626         (hash_devmode): Added functions
7627         (syms_of_device_mswindows): Init devmode lrecord class.
7628
7629         * device.h: Added an exfun for find-device.
7630
7631         * event-msw.c (mswindows_wnd_proc): Do not update the cached
7632         geometry; although, recreate the device compatible DC.
7633
7634         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
7635         (msprinter_init_frame_3):
7636         (msprinter_frame_property):
7637         (msprinter_internal_frame_property_p):
7638         (msprinter_frame_properties):
7639         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
7640         print job properties (will move to device settings).
7641
7642         * lisp.h: Added symbols.
7643
7644         * general.c (syms_of_general): Declared them.
7645
7646         * hash.c (string_hash): Added.
7647
7648         * lrecord.h (lrecord_type): Added devmode lrecord type.
7649
7650 2000-07-02  Mike Sperber <mike@xemacs.org>
7651
7652         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
7653         FreeBSD 4.0.
7654
7655 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
7656
7657         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
7658         integer.
7659
7660 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
7661
7662         * data.c (Fstring_to_number): Don't recognize floating point if
7663         base is not 10.
7664
7665 2000-06-22  Martin Buchholz  <martin@xemacs.org>
7666
7667         * glyphs-widget.c (tab_control_query_geometry):
7668         (widget_query_geometry):
7669         (button_query_geometry):
7670         * glyphs.c (text_query_geometry):
7671         Enforce type correctness.
7672
7673 2000-06-18  Martin Buchholz  <martin@xemacs.org>
7674
7675         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
7676         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
7677
7678 2000-06-17  Martin Buchholz  <martin@xemacs.org>
7679
7680         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
7681         conflicts with gcc's fixincluded version of FOO.h.
7682
7683         * glyphs.h (image_instance_geometry): Remove trailing `,'
7684
7685 2000-06-08  Mike Alexander  <mta@arbortext.com>
7686
7687         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
7688         (shove_thread): Don't write the same output twice
7689         (make_ntpipe_output_stream): Increase priority of shove thread
7690         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
7691         chance to run
7692         (ntpipe_shove_closer): Don't delete the pipe until we're done with
7693         it.
7694
7695 2000-06-12  Ben Wing  <ben@xemacs.org>
7696
7697         * s\mingw32.h (sigset):
7698         * s\windowsnt.h (sigset):
7699         rename msw_ to mswindows_ for consistency with general convention.
7700
7701 2000-06-12  Ben Wing  <ben@xemacs.org>
7702
7703         * console-msw.c:
7704         * console-msw.c (mswindows_get_console_hwnd):
7705         * console-msw.c (mswindows_ensure_console_allocated):
7706         * console-msw.c (mswindows_hide_console):
7707         * console-msw.c (mswindows_show_console):
7708         * console-msw.c (mswindows_ensure_console_buffered):
7709         * console-msw.c (mswindows_output_console_string):
7710         * console-msw.c (mswindows_windows9x_p):
7711         * console-msw.h:
7712         * device-msw.c (mswindows_get_workspace_coords):
7713         * device-msw.c (mswindows_device_system_metrics):
7714         * dialog-msw.c (mswindows_popup_dialog_box):
7715         * event-msw.c (mswindows_wnd_proc):
7716         * frame-msw.c (mswindows_size_frame_internal):
7717         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
7718         * menubar-msw.c (displayable_menu_item):
7719         * menubar-msw.c (mswindows_char_is_accelerator):
7720         * nt.c:
7721         * nt.c (mswindows_sigset):
7722         * nt.c (mswindows_sigrelse):
7723         * nt.c (mswindows_sigpause):
7724         * nt.c (mswindows_raise):
7725         * nt.c (timer_proc):
7726         * ntproc.c:
7727         * ntproc.c (find_child_console):
7728         * ntproc.c (sys_kill):
7729         * print.c:
7730         * print.c (std_handle_out_external):
7731         * process-nt.c (find_child_console):
7732         * process-nt.c (send_signal_the_95_way):
7733         * process-nt.c (ensure_console_window_exists):
7734         * process-nt.c (nt_create_process):
7735         * syssignal.h:
7736         rename msw_ to mswindows_ for consistency with general convention.
7737
7738         * emacs.c:
7739         * dumper.c:
7740         include nt.h, not syswindows.h.
7741
7742         * nt.c (mswindows_fstat):
7743         * nt.c (mswindows_stat):
7744         prefix mswindows_ instead of attempting to directly override the
7745         library functions.  fix declarations.
7746
7747         * nt.h:
7748         include syswindows.h.  move some sysdep.h stuff here.
7749
7750         * ntheap.h:
7751         include syswindows.h, not <windows.h>.
7752
7753         * ntplay.c:
7754         clean up headers.
7755
7756         * sysdep.c:
7757         clean up headers.
7758
7759         * sysdep.c (sys_fstat):
7760         * sysdep.c (sys_stat):
7761         call mswindows versions when appropriate.
7762
7763         * sysdep.h:
7764         move mswin decls to nt.h.
7765
7766         * syswindows.h:
7767         add long comment describing appropriate use of the various windows
7768         headers.
7769
7770 2000-06-11  Ben Wing  <ben@xemacs.org>
7771
7772         * device-x.c: Correct doc string for sixth arg of x-get-resource.
7773
7774 2000-06-10  Ben Wing  <ben@xemacs.org>
7775
7776         * Makefile.in.in (release):
7777         Correction to make sure xemacs.exe always dumped when correct.
7778
7779         * alloca.c:
7780         * balloon_help.c:
7781         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
7782
7783         * buffer.c (set_buffer_internal):
7784         [[[[2]]]]: Remove HAVE_FEP code.
7785
7786         * buffer.c (init_initial_directory):
7787         [3].
7788
7789         * bytecode.c:
7790         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
7791         individual files.
7792
7793         * callproc.c:
7794         * callproc.c (call_process_cleanup):
7795         * callproc.c (Fold_call_process_internal):
7796         * callproc.c (child_setup):
7797         * callproc.c (getenv_internal):
7798         * callproc.c (init_callproc):
7799         * callproc.c (vars_of_callproc):
7800         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
7801         __CYGWIN32__ -> CYGWIN.
7802         DOS_NT -> WIN32_NATIVE.
7803         Remove MSDOS support/references, converting to WIN32_NATIVE
7804           where correct.
7805         __MINGW32__ -> MINGW.
7806         Fix windows.h includes.
7807         Remove bogus HAVE_NTGUI.
7808
7809         * config.h.in:
7810         [2].
7811
7812         * console-msw.c:
7813         mswindows_message_outputted added for use in allowing startup
7814         errors on the console to be seen.
7815
7816         * console-msw.c (msw_ensure_console_allocated):
7817         * console-msw.c (msw_output_console_string):
7818         * console-msw.c (DHEADER):
7819         * console-msw.c (DOPAQUE_DATA):
7820         * console-msw.c (DEVENT):
7821         * console-msw.c (DCONS):
7822         * console-msw.c (DCONSCDR):
7823         * console-msw.c (DSTRING):
7824         * console-msw.c (DVECTOR):
7825         * console-msw.c (DSYMBOL):
7826         * console-msw.c (DSYMNAME):
7827         Fix warnings.
7828
7829         * console-stream.c (stream_init_console):
7830         Fix text/binary problems.
7831
7832         * device-msw.c:
7833         * device-msw.c (mswindows_finish_init_device):
7834         * device-msw.c (mswindows_delete_device):
7835         [1].
7836
7837         * device.c (handle_asynch_device_change):
7838         [3].
7839
7840         * dgif_lib.c:
7841         * dgif_lib.c (DGifOpenFileName):
7842         * dgif_lib.c (DGifOpenFileHandle):
7843         * dgif_lib.c (DGifGetLine):
7844         * dgif_lib.c (DGifGetPixel):
7845         Added config.h/lisp.h, fix up includes.
7846         [1].
7847
7848         * dired-msw.c:
7849         [4].
7850
7851         * dired.c:
7852         * dired.c (file_name_completion):
7853         * dired.c (Ffile_attributes):
7854         * dired.c (syms_of_dired):
7855         [1].
7856
7857         * dumper.c:
7858         * dumper.c (pdump_file_unmap):
7859         * dumper.c (pdump_load):
7860         [1].
7861
7862         * editfns.c:
7863         * editfns.c (Ftemp_directory):
7864         * editfns.c (user_login_name):
7865         * editfns.c (Fuser_real_login_name):
7866         * editfns.c (get_home_directory):
7867         [1].
7868
7869         * elhash.c (finish_marking_weak_hash_tables):
7870         [[[[5]]]]: Fix GCC warnings.
7871
7872         * emacs.c:
7873         * emacs.c (mswindows_handle_hardware_exceptions):
7874         * emacs.c (make_arg_list_1):
7875         * emacs.c (main_1):
7876         * emacs.c (Fkill_emacs):
7877         * emacs.c (Fdump_emacs):
7878         [1].
7879         Fix problems with nested crashes, add long comment.
7880
7881         * event-Xt.c (init_event_Xt_late):
7882         [1].
7883
7884         * event-msw.c:
7885         * event-msw.c (mswindows_dde_callback):
7886         * event-msw.c (mswindows_handle_sticky_modifiers):
7887         * event-msw.c (mswindows_wnd_proc):
7888         [1].
7889         [5].
7890
7891         * events.c (character_to_event):
7892         [1].
7893
7894         * fileio.c:
7895         * fileio.c (Ffile_name_directory):
7896         * fileio.c (Ffile_name_nondirectory):
7897         * fileio.c (directory_file_name):
7898         * fileio.c (Fexpand_file_name):
7899         * fileio.c (Fsubstitute_in_file_name):
7900         * fileio.c (Ffile_name_absolute_p):
7901         * fileio.c (check_executable):
7902         * fileio.c (Ffile_readable_p):
7903         * fileio.c (Ffile_accessible_directory_p):
7904         * fileio.c (Ffile_modes):
7905         * fileio.c (Funix_sync):
7906         * fileio.c (vars_of_fileio):
7907         [1]. [4].
7908
7909         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
7910
7911         Expand getdefdir defn.
7912         Fix bogus rename() comment.
7913
7914         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
7915         to use standard XEmacs include files, e.g. sysfile.h, rather
7916         than system-specific includes.
7917
7918         * fns.c:
7919         * fns.c (Fsubseq):
7920         [5]. [6].
7921
7922         * frame.c (vars_of_frame):
7923         [1].
7924
7925         * getloadavg.c:
7926         * getloadavg.c (getloadavg):
7927         [1]. [6].
7928         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
7929         (We don't use it elsewhere in the code; just add a comment.)
7930
7931         * gif_io.c:
7932         [6].
7933         Add config.h.
7934
7935         * glyphs-msw.c:
7936         * glyphs-msw.c (mswindows_resource_instantiate):
7937         [1].
7938
7939         * glyphs-x.c (x_native_layout_instantiate):
7940         [5].
7941
7942         * gui-msw.c (Fmswindows_shell_execute):
7943         [1].
7944
7945         * insdel.c:
7946         [4].
7947
7948         * lisp.h:
7949         [4]. [5].
7950
7951         * lread.c (locate_file_in_directory_mapper):
7952         [1].
7953
7954         * lstream.c:
7955         [4].
7956
7957         * mem-limits.h:
7958         * mem-limits.h (get_lim_data):
7959         [1].
7960
7961         * menubar-msw.c:
7962         [4].
7963
7964         * ndir.h:
7965         [1].
7966
7967         * nt.c:
7968         * nt.c (getwd):
7969         * nt.c (closedir):
7970         * nt.c (rva_to_section):
7971         * nt.c (mswindows_executable_type):
7972         [1]. [6].
7973         Fix closedir() defn.
7974
7975         * nt.h:
7976         [[[[8]]]]: *_OK defs moved to sysfile.h.
7977
7978         * ntproc.c:
7979         [6]. [7].
7980
7981         * objects-x.c:
7982         [4].
7983
7984         * print.c:
7985         * print.c (std_handle_out_external):
7986         [1]. [4].
7987
7988         * process-nt.c:
7989         * process-nt.c (nt_create_process):
7990         [6].
7991         try to fix process quoting somewhat.
7992
7993         * process-unix.c (unix_create_process):
7994         [1].
7995
7996         * process.c:
7997         * process.c (vars_of_process):
7998         Add Vnull_device.
7999
8000         * process.h:
8001         [1].
8002
8003         * realpath.c:
8004         * realpath.c (xrealpath):
8005         [1].
8006
8007         * redisplay-tty.c (init_tty_for_redisplay):
8008         [3].
8009
8010         * redisplay.c:
8011         [4]. [6].
8012
8013         * scrollbar-msw.c:
8014         [4].
8015
8016         * sheap.c:
8017         * sheap.c (more_static_core):
8018         * sheap.c (report_sheap_usage):
8019         [5]. [6].
8020
8021         * signal.c:
8022         * signal.c (alarm_signal):
8023         [1]. [6].
8024
8025         * sound.c:
8026         [6].
8027
8028         * strftime.c:
8029         * strftime.c (zone_name):
8030         [1]. [5].
8031
8032         * symsinit.h (init_sunpro):
8033         [1].
8034
8035         * syscommctrl.h:
8036         commctrl.h not in Cygwin b20.1.
8037
8038         * sysdep.c:
8039         * sysdep.c (endif):
8040         * sysdep.c (sys_subshell):
8041         * sysdep.c (init_baud_rate):
8042         * sysdep.c (emacs_get_tty):
8043         * sysdep.c (emacs_set_tty):
8044         * sysdep.c (tty_init_sys_modes_on_device):
8045         * sysdep.c (init_system_name):
8046         * sysdep.c (sys_open):
8047         * sysdep.c (interruptible_open):
8048         * sysdep.c (sys_fopen):
8049         * sysdep.c (sys_mkdir):
8050         * sysdep.c (sys_rename):
8051         * sysdep.c (get_process_times_1):
8052         [1]. [6].
8053
8054         * sysdep.h:
8055         [1].
8056
8057         * sysdir.h:
8058         * sysdir.h (DIRENTRY_NONEMPTY):
8059         [1]. [6].
8060
8061         * sysdll.c (dll_init):
8062         * sysdll.h:
8063         [1].
8064
8065         * sysfile.h:
8066         [1]. [6]. [8].
8067         added text/binary defs.
8068
8069         * sysfloat.h:
8070         [1].
8071
8072         * sysproc.h:
8073         * sysproc.h (EDESTADDRREQ):
8074         * sysproc.h (poll_fds_for_input):
8075         [1]. [6].
8076
8077         * syspwd.h:
8078         [6].
8079
8080         * syssignal.h:
8081         [1].
8082
8083         * systime.h:
8084         [1]. [6].
8085
8086         * systty.h:
8087         [1].
8088
8089         * syswindows.h:
8090         [1].
8091         Always define WIN32_LEAN_AND_MEAN.
8092
8093         * unexcw.c (unexec):
8094         [5].
8095
8096         * unexec.c:
8097         * unexec.c (copy_text_and_data):
8098         * unexec.c (adjust_lnnoptrs):
8099         [1].
8100
8101         * unexnt.c:
8102         * unexnt.c (_start):
8103         [1].
8104
8105 2000-06-07  Ben Wing  <ben@xemacs.org>
8106
8107         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
8108         was used only as a model.  We've long since extracted any useful
8109         logic or code out of this. (I just did an exhaustive search.)
8110
8111         * s\msdos.h: Removed.
8112
8113         * s\windows95.h: Removed.
8114
8115 2000-06-10  Ben Wing  <ben@xemacs.org>
8116
8117         * s\cygwin32.h:
8118         [1]. [5].
8119         Don't use extern with fun defs.
8120
8121         * s\mingw32.h:
8122         [1]. [7].
8123         Remove nt\inc include.
8124         Remove getdisk, getdefdir. (The former is unused, the latter
8125         expanded in fileio.h.)
8126
8127         * s\windowsnt.h:
8128         * s\windowsnt.h (WIN32_NATIVE):
8129         * s\windowsnt.h (HAVE_STRCASECMP):
8130         [1]. [7].
8131         Add long comment about preprocessor changes.
8132         Remove getdisk, getdefdir. (The former is unused, the latter
8133         expanded in fileio.h.)
8134
8135 2000-06-10  Ben Wing  <ben@xemacs.org>
8136
8137         * m\arm.h:
8138         * m\delta.h:
8139         * m\intel386.h:
8140         * m\sequent.h:
8141         * m\template.h:
8142         * m\windowsnt.h:
8143         [1].
8144         Remove bogus/unused NO_SOCK_SIGIO.
8145
8146 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
8147
8148         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
8149         not an Emchar.
8150
8151 2000-06-04  Mike Sperber <mike@xemacs.org>
8152
8153         * casetab.c (set_case_table): For `set-standard-case-table',
8154         actually deposit the new case tables where the rest of XEmacs can
8155         see them.
8156
8157 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
8158
8159         * data.c (Faset): Don't cast XCHAR() to unsigned char.
8160
8161 2000-06-05  Ben Wing  <ben@xemacs.org>
8162
8163         * callproc.c (child_setup): Don't do close_load_descs() under
8164         MS Windows.  Put in a comment explaining why.
8165
8166 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
8167
8168         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
8169         Toolkit shell" which breaks `kill-compilation' on Windows NT
8170         native, retaining STDERR handling improvements.
8171
8172 2000-06-01  Andreas Jaeger  <aj@suse.de>
8173
8174         * s/s390.h: Support for S390, based on a patch by Martin
8175         Schwidefsky <schwidefsky@de.ibm.com>.
8176
8177 2000-05-30  Andy Piper  <andy@xemacs.org>
8178
8179         * window.c (allocate_window):
8180         (make_dummy_parent):
8181         (Fset_window_configuration): use new hashtable type.
8182
8183         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
8184         (struct image_instantiator_methods):
8185         (struct Lisp_Image_Instance): make instance geometry signed.
8186
8187         * glyphs.c (instantiate_image_instantiator):
8188         (image_instance_query_geometry):
8189         (image_instance_layout):
8190         (image_instance_layout):
8191         (query_string_geometry):
8192         (text_query_geometry):
8193         (image_instantiate):
8194         (image_instantiate):
8195         (cache_subwindow_instance_in_frame_maybe):
8196         (subwindow_query_geometry): make instance geometry signed.
8197
8198         * glyphs-widget.c (widget_query_geometry):
8199         (widget_layout):
8200         (button_query_geometry):
8201         (tree_view_query_geometry):
8202         (tab_control_query_geometry):
8203         (layout_query_geometry):
8204         (layout_layout):
8205         (native_layout_layout): make instance geometry signed.
8206
8207 2000-05-29  Olivier Galibert  <galibert@pobox.com>
8208
8209         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
8210         constant.
8211
8212         * general.c (syms_of_general): Add Qfull_assoc symbol.
8213
8214         * data.c (finish_marking_weak_lists): Mark full-assoc lists
8215         correctly.
8216         (decode_weak_list_type): Decode full-assoc type.
8217         (encode_weak_list_type): Encode full-assoc type.
8218         (Fmake_weak_list): Update doc string.
8219
8220 2000-05-30  Andy Piper  <andy@xemacs.org>
8221
8222         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
8223
8224         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
8225         (decode_hash_table_weakness): ditto.
8226         (Fhash_table_weakness): ditto.
8227         (Fhash_table_type): ditto.
8228         (finish_marking_weak_hash_tables): ditto.
8229         (hash_table_weakness_validate): ditto.
8230         (syms_of_elhash): ditto.
8231
8232 2000-05-28  Martin Buchholz <martin@xemacs.org>
8233
8234         * XEmacs 21.2.34 is released.
8235
8236 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
8237
8238         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
8239         start cache.
8240         (updating_line_start_cache): Gone.
8241         (regenerate_window): Replace resetting of VERTICAL_CLIP by
8242         generic code to force a minimum of 1 line laid out in the
8243         CMOTION_DISP case.
8244
8245 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
8246
8247         * glyphs.c (instantiate_image_instantiator): Check for initialized
8248         height & width no longer special cases IMAGE_NOTHING.
8249         (nothing_instantiate): Set height and width of instance.
8250
8251 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
8252
8253         * unexelf.c (unexec): Search for ".data" section.
8254         Initialize new_data2_offset from old_data_index.
8255         Remove redundant check for ElfW.
8256
8257 2000-05-23  Andy Piper  <andy@xemacs.org>
8258
8259         * glyphs.c (get_image_instantiator_governing_domain): allow more
8260         specific domains as the governing domain rather than expecting an
8261         exact match. This fixes problems with layouts.
8262
8263 2000-05-22  Andy Piper  <andy@xemacs.org>
8264
8265         * redisplay-output.c (compare_runes): check for non-images
8266
8267         * glyphs.c (set_glyph_dirty_p): ditto.
8268         (update_glyph_cachel_data): ditto.
8269
8270         * glyphs-widget.c (layout_post_instantiate): ditto.
8271         (layout_post_instantiate): ditto.
8272
8273         * event-msw.c (mswindows_wnd_proc): warning removal.
8274
8275 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
8276
8277         * s\mingw32.h: Added #undef for CLASH_DETECTION.
8278
8279         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
8280
8281         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
8282
8283         * nt.c (rva_to_section): mingw32 needs rva_to_section.
8284         (mswindows_executable_type): mingw32 now has enough headers for
8285         this to work.
8286
8287 2000-05-20  Andy Piper  <andy@xemacs.org>
8288
8289         * console-msw.c (mswindows_output_last_error): ; -> ,
8290
8291 2000-05-12  Andy Piper  <andy@xemacs.org>
8292
8293         * console-msw.c (FROB): compare ints with ints.
8294
8295 2000-05-11  Andy Piper  <andy@xemacs.org>
8296
8297         * glyphs-x.c (x_finalize_image_instance): make minimal build
8298         happy.
8299
8300 2000-05-20  Ben Wing  <ben@xemacs.org>
8301
8302         * event-Xt.c:
8303         * event-Xt.c (vars_of_event_Xt):
8304         move modifier-keys-are-sticky to event-stream.c.
8305
8306         * event-msw.c:
8307         * event-msw.c (mswindows_enqueue_mouse_button_event):
8308         * event-msw.c (key_needs_default_processing_p):
8309         * event-msw.c (XEMSW_LCONTROL):
8310         * event-msw.c (mswindows_handle_sticky_modifiers):
8311         * event-msw.c (FROB):
8312         * event-msw.c (clear_sticky_modifiers):
8313         * event-msw.c (output_modifier_keyboard_state):
8314         * event-msw.c (output_alt_keyboard_state):
8315         * event-msw.c (mswindows_wnd_proc):
8316         * event-msw.c (mswindows_modifier_state):
8317         * event-msw.c (emacs_mswindows_handle_magic_event):
8318         implement sticky modifiers.
8319
8320         * event-stream.c:
8321         * event-stream.c (vars_of_event_stream):
8322         move modifier-keys-are-sticky here.
8323
8324         * lisp.h:
8325         add CHECK_FUNCTION.
8326
8327         * rangetab.c:
8328         implement map-range-table.
8329
8330
8331 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
8332
8333         * redisplay-tty.c (reset_tty_modes):
8334         (tty_redisplay_shutdown): Adjust argument type to
8335         tty_frame_output_end.
8336
8337 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8338
8339         * eval.c (Fbacktrace): Don't output a line with only right
8340         parenthesis.
8341
8342 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
8343
8344         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
8345         (Fpq_reset_poll): Ditto.
8346
8347 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
8348
8349         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
8350
8351 2000-05-16  Ben Wing  <ben@xemacs.org>
8352
8353         * buffer.c:
8354         * buffer.c (dfc_convert_to/from_internal_format):
8355         * buffer.c (reinit_vars_of_buffer):
8356         Fix conversion functions to allow reentrancy.
8357
8358         * console-msw.c:
8359         * console-msw.c (mswindows_output_last_error):
8360         New fun, generally useful -- output a human-readable
8361         version of GetLastError() on the console.
8362
8363         * console-msw.h:
8364         * console-msw.h (struct mswindows_frame):
8365         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
8366
8367         * console-stream.c (stream_output_begin):
8368         * console-stream.c (stream_output_end):
8369         * console-stream.c (stream_output_vertical_divider):
8370         * console-stream.c (stream_clear_region):
8371         * console-stream.c (stream_flash):
8372         * console-stream.c (console_type_create_stream):
8373         Delete blank stream methods, not needed.
8374
8375         * console.h (struct console_methods):
8376         Split begin/end methods into window and frame.
8377
8378         * event-msw.c:
8379         * event-msw.c (mswindows_handle_paint):
8380         * event-msw.c (output_alt_keyboard_state):
8381         * event-msw.c (mswindows_wnd_proc):
8382         * event-msw.c (vars_of_event_mswindows):
8383         Comment about problems with ignored-expose.
8384         Define mswindows-debug-events; not really implemented.
8385
8386         * frame-msw.c (mswindows_init_frame_1):
8387         random cleanups.
8388
8389         * glyphs-msw.c:
8390         * glyphs-msw.c (begin_defer_window_pos):
8391         * glyphs-msw.c (mswindows_unmap_subwindow):
8392         * glyphs-msw.c (mswindows_map_subwindow):
8393         * glyphs-msw.c (mswindows_resize_subwindow):
8394         Use DeferWindowPos to reduce flashing when mapping/unmapping.
8395
8396         * glyphs.c (make_image_instance_1):
8397         Fix crash.
8398
8399         * gutter.c (Fredisplay_gutter_area):
8400         Use new begin/end methods.
8401
8402         * lisp.h (Dynarr_new2):
8403         New creation fun.
8404
8405         * redisplay-msw.c:
8406         * redisplay-msw.c (mswindows_frame_output_begin):
8407         * redisplay-msw.c (mswindows_frame_output_end):
8408         * redisplay-msw.c (console_type_create_redisplay_mswindows):
8409         New begin/end methods -- handle DeferWindowPos.
8410
8411         * redisplay-output.c (redisplay_move_cursor):
8412         * redisplay-output.c (redraw_cursor_in_window):
8413         * redisplay-output.c (redisplay_update_line):
8414         * redisplay-output.c (redisplay_output_window):
8415         New begin/end methods.
8416
8417         * redisplay-tty.c:
8418         * redisplay-tty.c (tty_frame_output_begin):
8419         * redisplay-tty.c (tty_frame_output_end):
8420         * redisplay-tty.c (console_type_create_redisplay_tty):
8421         New begin/end methods.
8422
8423         * redisplay-x.c:
8424         * redisplay-x.c (x_window_output_begin):
8425         * redisplay-x.c (x_window_output_end):
8426         * redisplay-x.c (console_type_create_redisplay_x):
8427         New begin/end methods.
8428
8429         * redisplay.c (redisplay_frame):
8430         * redisplay.c (Fredisplay_echo_area):
8431         New begin/end methods.
8432         use MAYBE_DEVMETH for clear_frame; it may not exist.
8433
8434         * window.h (WINDOW_XFRAME):
8435         WINDOW_XFOO macros -- get locale and decode struct pointer.
8436
8437
8438 2000-05-12  Ben Wing  <ben@xemacs.org>
8439
8440         * emacs.c:
8441         * emacs.c (ensure_no_quitting_from_now_on):
8442         * emacs.c (fatal_error_signal):
8443         * emacs.c (mswindows_handle_hardware_exceptions):
8444         * emacs.c (main):
8445         * emacs.c (Fkill_emacs):
8446         * emacs.c (shut_down_emacs):
8447         * emacs.c (assert_failed):
8448         various improvements in fatal error handling.
8449
8450         * eval.c:
8451         move preparing_for_armageddon to emacs.c.
8452
8453         * lisp.h:
8454         declare fatal_error_in_progress.
8455
8456         * print.c:
8457         * print.c (std_handle_out_external):
8458         * print.c (std_handle_out_va):
8459         * print.c (stderr_out):
8460         * print.c (stdout_out):
8461         use console under mswin when no standard output.
8462         don't do code conversion during fatal error.
8463
8464         * scrollbar.c (Fscrollbar_page_up):
8465         * scrollbar.c (Fscrollbar_page_down):
8466         fix missing else.  reindent.
8467
8468 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
8469
8470         Emergency fix.
8471
8472         * glyphs.h (GLYPH_CACHEL_DESCENT):
8473         (GLYPH_CACHEL_DESCENT):
8474         (GLYPH_CACHEL_DESCENT):
8475         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
8476         used in case these are inline functions.
8477         Use more absurd values to error check.
8478
8479         include window.h for error check functions.
8480
8481 2000-05-11  Ben Wing  <ben@xemacs.org>
8482
8483         * cmdloop.c (Freally_early_error_handler):
8484         Display message box under windows; otherwise, message will disappear
8485         before it can be viewed.
8486
8487         * console-msw.c:
8488         * console-msw.c (Fmswindows_message_box):
8489         * console-msw.c (FROB):
8490         * console-msw.c (syms_of_console_mswindows):
8491         Define new fun `mswindows-message-box'.
8492         #### I will merge this into `popup-dialog-box'; just give me
8493         a bit of time.
8494
8495         * general.c:
8496         * general.c (syms_of_general):
8497         Some new symbols used in `mswindows-message-box'.
8498
8499         * glyphs.c:
8500         * glyphs.c (Fset_image_instance_property):
8501         put warning in this fun.
8502
8503         * glyphs.h:
8504         * glyphs.h (GLYPH_CACHEL_WIDTH):
8505         * glyphs.h (GLYPH_CACHEL_ASCENT):
8506         * glyphs.h (GLYPH_CACHEL):
8507         * glyphs.h (GLYPH_CACHEL_GLYPH):
8508         define error-checking versions to try to catch a bug i've seen --
8509         redisplay gets in an infinite loop because the glyph width of the
8510         continuation glyph is 65535.
8511
8512         * lisp.h:
8513         Extern message-box stuff.
8514
8515         * window.c (allocate_window):
8516         * window.c (make_dummy_parent):
8517         * window.c (Fset_window_configuration):
8518         Use EQUAL not EQ for subwindow caches to make them work a bit
8519         better. (Something is still very broken.)
8520
8521
8522 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8523
8524         * glyphs.c (image_instantiate): Suppress gcc warnings.
8525         (Fmake_image_instance): Fix doc string.
8526         * specifier.c (Fmake_specifier): Ditto.
8527
8528 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
8529
8530         * paths.h.in (PATH_LOCK): Removed.
8531         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
8532         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
8533
8534 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
8535
8536         * fns.c (Ffeaturep): Update e-mail address in doc-string.
8537         Document (featurep '(and xemacs 21.02)).
8538
8539 2000-05-09  Ben Wing  <ben@xemacs.org>
8540
8541         * buffer.c (complex_vars_of_buffer):
8542         update modeline-format doc.
8543
8544         * device.h:
8545         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
8546
8547         * emacs.c:
8548         timeline of all released versions of Emacs, for use in creating
8549         authorship comments and in synching up.
8550
8551         * glyphs-widget.c (image_instantiator_buttons):
8552         * glyphs-widget.c (image_instantiator_edit_fields):
8553         * glyphs-widget.c (image_instantiator_combo_box):
8554         * glyphs-widget.c (image_instantiator_scrollbar):
8555         * glyphs-widget.c (image_instantiator_progress_guage):
8556         * glyphs-widget.c (image_instantiator_tree_view):
8557         * glyphs-widget.c (image_instantiator_tab_control):
8558         * glyphs-widget.c (image_instantiator_labels):
8559         * glyphs-widget.c (image_instantiator_layout):
8560         * glyphs-widget.c (image_instantiator_native_layout):
8561         rename decode_domain method to governing_domain.
8562
8563         * glyphs.c:
8564         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
8565         * glyphs.c (add_entry_to_device_ii_format_list):
8566         make sure we don't put an entry more than once into the list.
8567         * glyphs.c (check_instance_cache_mapper):
8568         *************************************************************
8569         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
8570         HAVE BEEN GETTING.
8571         *************************************************************
8572         * glyphs.c (get_image_instantiator_governing_domain):
8573         clean up, expand on new concept of governing domain.
8574         * glyphs.c (instantiate_image_instantiator):
8575         * glyphs.c (allocate_image_instance):
8576         use governing_domain instead of cache_domain in naming.
8577         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
8578         * glyphs.c (make_image_instance_1):
8579         * glyphs.c (Fmake_image_instance):
8580         allow for any domain (not just device), and process the
8581         governing domain correctly.  very big doc fix.
8582         * glyphs.c (Fimage_instance_domain):
8583         new primitive, to retrieve the governing domain of an image instance.
8584         * glyphs.c (image_instantiate):
8585         use new governing_domain stuff.  this fixes a crash you could get
8586         by instantiating certain widget glyphs in frame locales. (should
8587         signal an error instead of crashing.)
8588         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
8589         * glyphs.c (Fglyphp): clean up doc.
8590         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
8591         * glyphs.c (syms_of_glyphs):
8592         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
8593         * glyphs.c (image_instantiator_format_create): add some comments about
8594         bogus code.
8595         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
8596         for current-display-table. (Apparently Hrjove implemented in 1998 a
8597         design I wrote up in 1996, but didn't update the doc string.)
8598
8599         * glyphs.h: clean up a doc string.
8600         * glyphs.h (governing_domain):
8601         * glyphs.h (struct image_instantiator_methods):
8602         changes for governing_domain stuff.
8603
8604         * gutter.c:
8605         * gutter.c (Fgutter_specifier_p):
8606         * gutter.c (Fgutter_size_specifier_p):
8607         * gutter.c (Fgutter_visible_specifier_p):
8608         * objects.c:
8609         * objects.c (Fcolor_specifier_p):
8610         * objects.c (Ffont_specifier_p):
8611         * objects.c (Fface_boolean_specifier_p):
8612         doc strings moved to make-*-specifier.
8613
8614         * redisplay.c (add_disp_table_entry_runes_1):
8615         * redisplay.c (generate_fstring_runes):
8616         * redisplay.c (screen):
8617         add random comments and doc strings.
8618
8619         * specifier.c:
8620         * specifier.c (Fmake_specifier):
8621         major overhaul of this doc string.
8622
8623         * specifier.c (Fvalid_specifier_domain_p):
8624         comment about the bogosity of image instances being domains.
8625         * specifier.c (decode_domain):
8626         now non-static, used in glyphs.c.
8627         * specifier.c (specifier_instance):
8628         comment about the bogosity of image instances being domains.
8629         * specifier.c (Fgeneric_specifier_p):
8630         move doc string to make-generic-specifier.
8631         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
8632         rebackslashify.
8633
8634         * specifier.h:
8635         * specifier.h (DOMAIN_FRAME):
8636         * specifier.h (DOMAIN_LIVE_P):
8637         * specifier.h (DOMAIN_XDEVICE):
8638         rebackslashify.
8639         add comments about problems with these macros.
8640         prototype for decode_domain.
8641
8642         * toolbar.c:
8643         * toolbar.c (Ftoolbar_specifier_p):
8644         move doc string to `make-toolbar-specifier'.
8645
8646         * window.c (window_unmap_subwindows_cache_mapper):
8647         *************************************************************
8648         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
8649         HAVE BEEN GETTING.
8650         *************************************************************
8651
8652 2000-05-09  Andy Piper  <andy@xemacs.org>
8653
8654         * glyphs.h: declare reset_frame_subwindow_instance_cache.
8655
8656         * window.c (Fset_window_configuration): reset the frame subwindow
8657         cache and re-initialize the window subwindow caches.
8658
8659         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
8660
8661 2000-05-09  Ben Wing  <ben@xemacs.org>
8662
8663         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
8664         DWORD.
8665
8666 2000-04-26  Mike Woolley  <mike@bulsara.com>
8667
8668         * ntheap.c: Changed recreate_heap to limit the amount reserved
8669         for the heap to that which is actually available. Also now
8670         displays a message box (with some dignostics) in the event that
8671         it still can't start.
8672
8673 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
8674
8675         * callproc.c (Fold_call_process_internal): GCPRO path
8676
8677 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
8678
8679         Patch by Bill Perry.
8680
8681         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
8682         back data instead of #ifdef.
8683         (Fscrollbar_page_down): ditto.
8684
8685 2000-05-07  Ben Wing  <ben@xemacs.org>
8686
8687         * buffer.h:
8688         Kludge for defining Qmswindows_tstr.
8689
8690         * nt.c:
8691         * nt.c (open_input_file):
8692         * nt.c (open_output_file):
8693         * nt.c (rva_to_section):
8694         * nt.c (mswindows_executable_type):
8695         Move all memory-mapped-file routines here (some were in unexnt.c,
8696         which is bad because they are used by process-nt.c, and unexnt
8697         won't be around when portable dumping).  Synched the above routines
8698         with FSF 20.6.
8699
8700         * nt.h:
8701         Removed ifdef'd out bogus code.
8702         Fixed some prototypes.
8703
8704         * nt.h (file_data):
8705         * nt.h (OFFSET_TO_RVA):
8706         * nt.h (RVA_TO_OFFSET):
8707         * nt.h (RVA_TO_PTR):
8708         Moved the memory-mapped-file structures, macros and prototypes
8709         here, to parallel nt.c.  ntheap.h should really be removed
8710         entirely, and it's a non-portable-dumper specific file.
8711
8712         * ntheap.h (round_to_next):
8713         Moved the memory-mapped-file structures, macros and prototypes
8714         to nt.h.
8715
8716         * ntproc.c (compare_env):
8717         Moved rva_to_section and mswindows_executable_type to nt.c.
8718         Moved compare_env to process-nt.c.
8719         ntproc.c will die, one day.
8720
8721         * ntproc.c (sys_spawnve):
8722         Account for win32_ -> mswindows_.
8723
8724         * process-nt.c:
8725         * process-nt.c (struct nt_process_data):
8726         * process-nt.c (ensure_console_window_exists):
8727         * process-nt.c (compare_env):
8728         * process-nt.c (nt_create_process):
8729         * process-nt.c (nt_kill_process_by_pid):
8730         * process-nt.c (syms_of_process_nt):
8731         * process-nt.c (vars_of_process_nt):
8732         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
8733         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
8734         changes).  Eliminate our old `nt-quote-process-args' mechanism.
8735         Synch up nt_create_process with FSF 20.6 sys_spawnve.
8736         Move compare_env here from ntproc.c.
8737
8738         * process.c (Fprocess_send_region):
8739         Takes an optional fourth argument, BUFFER, which should fix some
8740         problems with call-process.
8741
8742         * syscommctrl.h:
8743         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
8744
8745         * syswindows.h:
8746         Move ICC_BAR_CLASSES to syscommctrl.h.
8747         Add preliminary macros for MSWindows/Mule.  More to come.
8748
8749         * unexnt.c:
8750         * unexnt.c (unexec):
8751         open_output_file moved to nt.c.
8752
8753
8754 2000-05-05  Andy Piper  <andy@xemacs.org>
8755
8756         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
8757         instance from the frame cache also since GC may catch up too late
8758         to make frame deletion sane.
8759
8760 2000-05-04  Andy Piper  <andy@xemacs.org>
8761
8762         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
8763         (x_finalize_image_instance): ungcpro on deletion.
8764
8765         * glyphs.c (image_instantiator_format_create): give pointers a
8766         query geometry method so that the geometry is at least set.
8767
8768         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
8769         initialize layouts if using widgets.
8770
8771 2000-05-03  Andy Piper  <andy@xemacs.org>
8772
8773         * nt.c: remove bogus reference to sysmmsystem.h
8774
8775         * gui-x.c (popup_selection_callback): fix no selection abort.
8776
8777 2000-05-02  Andy Piper  <andy@xemacs.org>
8778
8779         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
8780         (mswindows_widget_instantiate): ditto.
8781
8782         * glyphs-widget.c (initialize_widget_image_instance): initialize
8783         children correctly.
8784         (widget_instantiate): cope with children and items in the same
8785         instance.
8786
8787         * glyphs.c (mark_image_instance): cope with children as a first
8788         class member.
8789         (image_instance_equal): ditto.
8790         (image_instance_hash): ditto.
8791         (image_instance_changed): ditto.
8792
8793 2000-04-30  Andy Piper  <andy@xemacs.org>
8794
8795         * glyphs.c (subwindow_query_geometry): new function. Return some
8796         defaults.
8797         (subwindow_instantiate): don't assign dimensions if none have been
8798         given.
8799         (image_instantiator_format_create): add subwindow_query_geometry.
8800         (print_image_instance): cope with layouts as widgets.
8801
8802 2000-04-29  Andy Piper  <andy@xemacs.org>
8803
8804         * frame.c (delete_frame_internal): call
8805         free_frame_subwindow_instance_cache so that all subwindows are
8806         finalized before their parent.
8807         (mark_frame): remove subwindow_cachels.
8808         (Fmake_frame): remove subwindow_cachel manipulation.
8809         (allocate_frame_core): subwindow_instance_cache is a weak list.
8810         (delete_frame_internal): set subwindow_instance_cache to nil.
8811
8812         * glyphs-msw.c (mswindows_finalize_image_instance): make double
8813         finalization safe.
8814         (mswindows_finalize_image_instance): use the device
8815         not the domain as the domain may have died already.
8816
8817         * glyphs-x.c (x_finalize_image_instance): ditto.
8818         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
8819         HEIGHT.
8820
8821         * redisplay-output.c (redisplay_unmap_subwindows): update for
8822         subwindow instance cache as a weak list.
8823         (redisplay_unmap_subwindows_maybe): ditto.
8824         (redisplay_unmap_subwindows_except_us): ditto.
8825
8826         * glyphs.c (unmap_subwindow): error checking will check the domain
8827         so don't deal with it here. Don't use cachels anymore.
8828         (map_subwindow): ditto.
8829         (update_subwindow_cachel_data): remove old accessor names.
8830         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
8831         (Fresize_subwindow): don't update cachel.
8832         (mark_subwindow_cachels):
8833         (update_subwindow_cachel_data):
8834         (add_subwindow_cachel):
8835         (get_subwindow_cachel_index):
8836         (update_subwindow_cachel):
8837         (reset_subwindow_cachels):
8838         (mark_subwindow_cachels_as_not_updated): deleted.
8839         (cache_subwindow_instance_in_frame_maybe): new function. Add a
8840         subwindow instance to the frame cache.
8841         (find_matching_subwindow): update for subwindow instance cache as
8842         a weak list.
8843         (update_widget_instances): ditto.
8844         (image_instance_type_to_mask):inlined.
8845         (free_frame_subwindow_instance_cache): new function. finalize all
8846         subwindows that are instantiated.
8847
8848         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
8849         of cachel information.
8850         (IMAGE_INSTANCE_DISPLAY_X):
8851         (IMAGE_INSTANCE_DISPLAY_Y):
8852         (IMAGE_INSTANCE_DISPLAY_WIDTH):
8853         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
8854         (XIMAGE_INSTANCE_DISPLAY_X):
8855         (XIMAGE_INSTANCE_DISPLAY_Y):
8856         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
8857         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
8858         remove subwindow_cachel structure and function references.
8859         (image_instance_type_to_mask): inline from glyphs.c
8860
8861         * redisplay.c (redisplay_frame): remove subwindow_cachel
8862         references.
8863
8864         * frame.h (struct frame): remove subwindow_cachels.
8865         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
8866
8867         * frameslots.h: add subwindow_instance_cache.
8868
8869         * window.c (replace_window): check subwindow cache of replacement.
8870         (window_unmap_subwindows_cache_mapper):
8871         (window_unmap_subwindows): new functions. Unmap all subwindows
8872         cached on this window.
8873         (mark_window_as_deleted): unmap all subwindows.
8874
8875 2000-04-27  Andy Piper  <andy@xemacs.org>
8876
8877         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
8878
8879         * glyphs-widget.c (widget_layout): return something.
8880         (layout_layout): return something. Fail if not initialized.
8881         (layout_query_geometry): ditto.
8882         (image_instantiator_native_layout): new function. Initialized the
8883         native layout type.
8884         (widget_instantiate): don't do layout stuff here.
8885
8886         * glyphs.c (instantiate_image_instantiator): reorded calling or
8887         instantiate and post_instantiate with layout in between.
8888         (image_instance_layout): be more selective about deciding whether
8889         the layout has been done or not.
8890
8891         * glyphs.h (struct image_instantiator_methods): return a value
8892         from layout_method.
8893
8894 2000-04-26  Andy Piper  <andy@xemacs.org>
8895
8896         * glyphs.c (allocate_image_instance): make initial width and
8897         height unspecified. Set initialized to 0.
8898
8899         * syscommctrl.h new file. Encapsulates commctrl.h.
8900
8901         * syswindows.h new file. Encapsulates windows.h.
8902
8903         * ntplay.c: use new syswindows.h and syscommctrl.h header.
8904         * nt.c: ditto.
8905         * console-msw.h: ditto.
8906
8907         * redisplay-tty.c (tty_output_display_block): remove layout references.
8908
8909         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
8910         window handle rather than just the frame.
8911
8912         * glyphs.c (mark_image_instance): remove layout references.
8913         (print_image_instance): ditto.
8914         (image_instance_equal): ditto.
8915         (image_instance_hash): ditto.
8916         (decode_image_instance_type): ditto.
8917         (encode_image_instance_type): ditto.
8918         (image_instantiate): ditto.
8919         (allocate_glyph): ditto.
8920         (Fimage_instance_height): ditto.
8921         (Fimage_instance_width): ditto.
8922         (update_subwindow): ditto.
8923
8924         * redisplay-x.c (x_output_display_block): recode for layouts as
8925         widgets.
8926
8927         * redisplay-output.c (redisplay_output_layout): recode for layouts
8928         as widgets.
8929         (compare_runes): remove layout references.
8930
8931         * redisplay-msw.c (mswindows_output_display_block): recode for
8932         layouts as widgets.
8933
8934         * glyphs-widget.c (image_instantiator_layout): remove
8935         layout_possible_dest_types.
8936         (layout_possible_dest_types): deleted.
8937
8938         * glyphs.h (image_instance_type): remove layout references.
8939         (struct Lisp_Image_Instance): ditto. Add initialized flag.
8940         (IMAGE_INSTANCE_INITIALIZED): new accessor.
8941         (XIMAGE_INSTANCE_INITIALIZED): ditto.
8942
8943 2000-04-25  Andy Piper  <andy@xemacs.org>
8944
8945         * glyphs-widget.c (image_instantiator_buttons):
8946         (image_instantiator_edit_fields):
8947         (image_instantiator_combo_box):
8948         (image_instantiator_scrollbar):
8949         (image_instantiator_progress_guage):
8950         (image_instantiator_tree_view):
8951         (image_instantiator_tab_control):
8952         (image_instantiator_labels):
8953         (image_instantiator_layout): call default post_instantiate method.
8954         (widget_post_instantiate): new function. Simply lays out the
8955         widgets.
8956
8957         * glyphs.h (struct image_instantiator_methods): add
8958         post_instantiate method.
8959
8960         * glyphs.c (instantiate_image_instantiator): add post_instantiate
8961         method calls.
8962
8963 2000-04-23  Andy Piper  <andy@xemacs.org>
8964
8965         * glyphs.h (struct image_instantiator_methods): add
8966         decode_domain_method.
8967         (struct Lisp_Image_Instance): remove subwindow frame - it can be
8968         derived from the domain.
8969         (IMAGE_INSTANCE_FRAME): new accessor.
8970         (XIMAGE_INSTANCE_FRAME): ditto.
8971
8972         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
8973         instead of _SUBWINDOW_FRAME.
8974         (finalize_image_instance): ditto.
8975         (Fimage_instance_foreground): ditto.
8976         (Fimage_instance_background): ditto.
8977         (image_instantiate): ditto.
8978         (update_subwindow_cachel): ditto.
8979         (update_subwindow): ditto.
8980         (unmap_subwindow): ditto.
8981         (map_subwindow): ditto
8982         (subwindow_instantiate): ditto.
8983         * glyphs-msw.c (mswindows_update_widget): ditto.
8984         (mswindows_progress_gauge_instantiate): ditto.
8985         (mswindows_tab_control_update): ditto.
8986         * glyphs-x.c (x_update_widget): ditto.
8987         (x_widget_instantiate): ditto.
8988         (x_tab_control_instantiate): ditto.
8989         (x_tab_control_update): ditto.
8990         * event-msw.c (mswindows_wnd_proc): ditto
8991
8992         * glyphs-widget.c (image_instantiator_layout): use
8993         subwindow_decode_domain.
8994         (image_instantiator_buttons): ditto.
8995         (image_instantiator_edit_fields): ditto.
8996         (image_instantiator_combo_box): ditto.
8997         (image_instantiator_scrollbar): ditto.
8998         (image_instantiator_progress_guage): ditto.
8999         (image_instantiator_tree_view): ditto.
9000         (image_instantiator_tab_control): ditto.
9001         (image_instantiator_labels): ditto.
9002         (image_instantiator_layout): ditto.
9003
9004         * glyphs.c: add instance error checking to many functions.
9005         (instantiate_image_instantiator): decode device from cache_domain.
9006         (image_instantiate): partially rewrite by using
9007         decode_image_instantiator_domain to determine what domain the
9008         instance needs to be cached in.
9009         (decode_image_instantiator_domain): new function. Determine what
9010         domain the image needs to be cached in.
9011         (check_window_subwindow_cache): new error checking function.
9012         (check_instance_cache_mapper): ditto.
9013         (check_image_instance_structure): ditto.
9014         (subwindow_decode_domain): new function. Encodes a window as a
9015         subwindow's cache domain.
9016         (image_instantiator_format_create): use it for text and
9017         subwindows.
9018
9019 2000-04-21  Andy Piper  <andy@xemacs.org>
9020
9021         * glyphs.c (image_instance_device): new function.
9022         (image_instance_frame): new function.
9023         (image_instance_window): new function.
9024         (image_instance_live_p): new function.
9025
9026         * window.c (mark_window_as_deleted): reset the subwindow_instance_
9027         cache to nil.
9028
9029         * glyphs.h (struct Lisp_Image_Instance): device->domain.
9030         (IMAGE_INSTANCE_DOMAIN): new accessor.
9031         (XIMAGE_INSTANCE_DOMAIN): ditto.
9032
9033         * glyphs-x.c (x_finalize_image_instance): device->domain.
9034
9035         * glyphs-msw.c (init_image_instance_geometry): device->domain.
9036         (mswindows_finalize_image_instance): ditto.
9037
9038         * glyphs-eimage.c (jpeg_instantiate): device->domain.
9039         (gif_instantiate): ditto.
9040         (png_instantiate): ditto.
9041         (tiff_instantiate): ditto.
9042
9043         * glyphs.c (instantiate_image_instantiator): use domain rather
9044         than device.
9045         (mark_image_instance): device -> domain.
9046         (print_image_instance): ditto.
9047         (finalize_image_instance): ditto.
9048         (image_instance_equal): ditto.
9049         (allocate_image_instance): ditto.
9050         (Fcolorize_image_instance): ditto.
9051         (query_string_geometry): ditto.
9052         (image_instantiate): ditto
9053         (query_string_font): ditto.
9054         (image_instantiate): ditto.
9055         (update_subwindow): ditto.
9056         (unmap_subwindow): ditto.
9057         (map_subwindow): ditto.
9058         (subwindow_instantiate): ditto.
9059
9060         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
9061         (DOMAIN_FRAME): ditto.
9062         (DOMAIN_WINDOW): ditto.
9063         (DOMAIN_LIVE_P): ditto.
9064         (XDOMAIN_DEVICE): ditto.
9065         (XDOMAIN_FRAME): ditto.
9066         (XDOMAIN_WINDOW): ditto.
9067
9068         * specifier.c (Fvalid_specifier_domain_p): add image instances as
9069         a valid specifier domain.
9070
9071 2000-04-19  Andy Piper  <andy@xemacs.org>
9072
9073         * glyphs-widget.c (syms_of_glyphs_widget): remove
9074         widget-callback-current-channel.
9075         (vars_of_glyphs_widget): ditto.
9076         * glyphs.h: ditto
9077
9078         * gui.c (get_gui_callback): revert to previous behaviour.
9079
9080 2000-04-18  Andy Piper  <andy@xemacs.org>
9081
9082         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
9083         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
9084         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
9085
9086         * glyphs.c (image_instance_equal): add margin_width.
9087         (image_instance_hash): ditto.
9088
9089         * glyphs-widget.c (widget_instantiate): deal with margin-width.
9090         (layout_query_geometry): ditto.
9091         (layout_layout): ditto.
9092         (syms_of_glyphs_widget): add margin-width.
9093         (image_instantiator_layout): allow margin-width.
9094
9095         * glyphs.c (update_widget_instances): make a normal function.
9096         (syms_of_glyphs): remove Qupdate_widget_instances.
9097         * glyphs.h: ditto.
9098
9099         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
9100         so that we don't corrupt ideas about the last event or
9101         command. Remove widget-callback-current-channel fiddling.
9102         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9103
9104 2000-05-01  Martin Buchholz <martin@xemacs.org>
9105
9106         * XEmacs 21.2.33 is released.
9107
9108 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
9109
9110         * make-src-depend: Allow dots in header file name.
9111
9112 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
9113
9114         * mule-charset.h (struct charset_lookup): Add
9115         next_allocated_1_byte_leading_byte and
9116         next_allocated_2_byte_leading_byte.
9117         * mule-charset.c: Move above two variables so that those values
9118         will be dumped.
9119
9120 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
9121
9122         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
9123         when string length is zero.
9124         (find_charsets_in_emchar_string): Ditto.
9125
9126 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
9127
9128         * lisp.h: extern Qdialog and Qmenubar.
9129
9130         * gui-x.c: added events.h.
9131                 also fixed typo which made the file uncompilable.
9132
9133         * general.c: Added Qmenubar and Qdialog
9134
9135 2000-04-28  Ben Wing  <ben@xemacs.org>
9136
9137         * frame-msw.c (mswindows_init_frame_1):
9138         * frame-msw.c (mswindows_mark_frame):
9139         * event-msw.c (mswindows_enqueue_dispatch_event):
9140         * console-msw.h:
9141         * console-msw.h (struct mswindows_frame):
9142         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
9143         there are now three hash tables for callbacks.
9144         mswindows_enqueue_dispatch_event is no longer static.
9145
9146         * dialog-x.c (maybe_run_dbox_text_callback):
9147         * dialog-x.c (dbox_descriptor_to_widget_value):
9148         switch to new cons3 form for callbacks.
9149
9150         * glyphs-msw.c (mswindows_register_gui_item):
9151         * glyphs-msw.c (mswindows_widget_instantiate):
9152         * glyphs-msw.c (add_tree_item):
9153         * glyphs-msw.c (add_tab_item):
9154         new image instance parameter, so it can be passed to callback-ex.
9155         respect :callback-ex as well as :callback.
9156
9157         * glyphs-widget.c (VALID_GUI_KEYWORDS):
9158         add :callback-ex.
9159
9160         * glyphs.c (print_image_instance):
9161         prettify, e.g. now prints widget type.
9162
9163         * gui-x.h:
9164         certain funs have new image instance parameter.
9165
9166         * gui.c:
9167         * gui.c (get_gui_callback):
9168         * gui.c (gui_item_add_keyval_pair):
9169         * gui.c (gui_item_init):
9170         * gui.c (gui_add_item_keywords_to_plist):
9171         * gui.c (mark_gui_item):
9172         * gui.c (gui_item_hash):
9173         * gui.c (gui_item_equal):
9174         * gui.c (copy_gui_item):
9175         * gui.c (syms_of_gui):
9176         recognize callback-ex in a number of places.
9177         also, fix the annoying "can't get out of yes-no dialog" bug.
9178
9179         * gui.h:
9180         * gui.h (struct Lisp_Gui_Item):
9181         recognize callback-ex in a number of places.
9182
9183         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9184         new parameter in button_item_to_widget_value.
9185
9186         * glyphs-x.c (x_update_widget):
9187         * glyphs-x.c (x_button_instantiate):
9188         * glyphs-x.c (x_button_update):
9189         * glyphs-x.c (x_progress_gauge_instantiate):
9190         * glyphs-x.c (x_edit_field_instantiate):
9191         * glyphs-x.c (x_combo_box_instantiate):
9192         * glyphs-x.c (x_tab_control_instantiate):
9193         * glyphs-x.c (x_label_instantiate):
9194         new image instance parameter in various places.
9195
9196         * event-Xt.c:
9197         * event-Xt.c (enqueue_Xt_dispatch_event):
9198         this fun gets exported.
9199
9200         * gui-msw.c:
9201         * gui-msw.c (mswindows_handle_gui_wm_command):
9202         handle both :callback and :callback-ex, and generate our own
9203         event because it's one of the callback-ex arguments.
9204
9205         * gui-x.c:
9206         * gui-x.c (popup_selection_callback):
9207         handle both :callback and :callback-ex, and generate our own
9208         event because it's one of the callback-ex arguments.
9209         * gui-x.c (button_item_to_widget_value):
9210         * gui-x.c (gui_items_to_widget_values_1):
9211         * gui-x.c (gui_item_children_to_widget_values):
9212         * gui-x.c (gui_items_to_widget_values):
9213         new image instance parameter in various places.
9214
9215         * fns.c (Freplace_list):
9216         fix small typo in doc string.
9217
9218         * lisp.h:
9219         declare enqueue_Xt_dispatch_event.
9220
9221 2000-04-28  Ben Wing  <ben@xemacs.org>
9222
9223         * buffer.c:
9224         * buffer.c (Frecord_buffer):
9225         * buffer.c (syms_of_buffer):
9226         delete record-buffer-hook.
9227
9228         * fns.c:
9229         * fns.c (Freplace_list):
9230         * fns.c (syms_of_fns):
9231         new primitive replace-list.
9232
9233         * frameslots.h:
9234         slot for old buffer-alist.
9235
9236         * lisp.h:
9237         exfun replace-list.
9238
9239         * redisplay.c:
9240         * redisplay.c (redisplay_frame):
9241         * redisplay.c (syms_of_redisplay):
9242         * redisplay.c (vars_of_redisplay):
9243         new hook buffer-list-changed-hook.
9244         call it.
9245
9246 2000-04-27  Ben Wing  <ben@xemacs.org>
9247
9248         * extents.h: extern in_modeline_generation.
9249
9250         * redisplay.c (generate_formatted_string_db): set
9251         in_modeline_generation.
9252
9253         * extents.c (extent_changed_for_redisplay): don't mark redisplay
9254         flags if in modeline generation.  otherwise frame-modified-tick
9255         is ticked far too often.
9256         Declare in_modeline_generation.
9257
9258 2000-04-26  Ben Wing  <ben@xemacs.org>
9259
9260         * emacs.c (vars_of_emacs): document quick-build "error-checking"
9261         option.
9262         (vars_of_emacs): add quick-build as an error-checking option.
9263         A bit kludgy, but there doesn't seem much point in creating
9264         a real var for this.
9265
9266         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
9267
9268 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9269
9270         * redisplay.h (struct display_line): Add a new variable,
9271         line_continuation.
9272
9273         * redisplay.c (create_text_block): Set dl->line_continuation if
9274         the line continues.
9275         (create_string_text_block): Ditto.
9276         (regenerate_window_incrementally): Use line_continuation instead
9277         of searching continuation glyph.
9278         (add_margin_runes): Call add_glyph_rune.
9279         (add_glyph_rune): Handle margin glyph.
9280
9281 2000-04-20  Martin Buchholz  <martin@xemacs.org>
9282
9283         * filelock.c (fill_in_lock_file_name):
9284         ANSIfy.
9285         Check for IS_ANY_SEP instead of '/'.
9286         (lock_file_1):
9287         Avoid generating gratuitous garbage.  Call user_login_name() directly.
9288         Never check errno without first seeing that system call failed.
9289         (unlock_file): Add GCPRO.
9290         (Flock_buffer): Fix docstring.
9291         (Ffile_locked_p): Fix docstring.  Add GCPRO.
9292
9293 2000-04-19  Martin Buchholz  <martin@xemacs.org>
9294
9295         * sysdep.c (get_pty_max_bytes):
9296         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
9297         strings longer than 252 bytes.
9298
9299         * md5.c: Unconditionally include ANSI header <limits.h>
9300
9301         * glyphs-x.c (convert_EImage_to_XImage):
9302         * lisp-union.h (union Lisp_Object):
9303         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
9304
9305 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9306
9307         * filelock.c (current_lock_owner): Remove unused variable o, p.
9308
9309 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
9310
9311         * callint.c: Remove multiply defined symbol Qlet
9312         (syms_of_callint): ditto.
9313
9314 2000-04-14  Andy Piper  <andy@xemacs.org>
9315
9316         * general.c (syms_of_general): add last-command, this-command, let
9317         and funcall.
9318
9319         * lisp.h: declare various symbols.
9320
9321         * glyphs.h: declare Qwidget_callback_current_channel;
9322
9323         * glyphs-widget.c (syms_of_glyphs_widget): add
9324         Qgui_callback_current_channel.
9325         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
9326
9327         * gui-msw.c (mswindows_handle_gui_wm_command): bind
9328         widget-callback-current-channel when invoking the interactive
9329         arg. Also bind last-command and next-command when invoking the
9330         widget updates.
9331         * gui-x.c (popup_selection_callback): ditto.
9332
9333         * gui.c (get_gui_callback): massage args so that we are always
9334         calling eval. This allows us to add our own variable bindings
9335         outside.
9336
9337         * glyphs-x.c (x_button_instantiate): use
9338         gui_items_to_widget_values since this is GC safe.
9339         (x_progress_gauge_instantiate): ditto.
9340         (x_edit_field_instantiate): ditto.
9341         (x_label_instantiate): ditto.
9342
9343         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
9344         (emacs_Xt_event_widget_focus_out): new function
9345         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
9346         focus.
9347         (emacs_Xt_event_add_widget_actions): new function. add focus
9348         functions as actions.
9349         (init_event_Xt_late): use it.
9350
9351 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
9352
9353         * event-stream.c (Fdispatch_event): Doc fix.
9354
9355 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
9356
9357         * postgresql.c: Remove all references to PQsetenv*.
9358
9359         * postgresql.h: Remove references to PGsetenvHandler object.
9360         * lrecord.h (lrecord_type): Ditto.
9361
9362 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
9363
9364         * glyphs-msw.h (struct mswindows_image_instance_data): Added
9365         real_heigh and real_width members, and accessor macros for these.
9366
9367         * glyphs-msw.c (init_image_instance_geometry): New function.
9368         (init_image_instance_from_dibitmap): Use it.
9369         (mswindows_resource_instantiate): Use it.
9370         (init_image_instance_from_xbm_inline): Use it.
9371         (mswindows_initialize_image_instance_mask): Use real bitmap
9372         geometry.
9373         (mswindows_create_resized_bitmap): Ditto.
9374         (mswindows_create_resized_mask): Ditto.
9375
9376         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
9377         and bitmap to their surface size.
9378
9379 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
9380
9381         * process-unix.c (unix_send_process): Guard against process MIA
9382         after Faccept_process_output.
9383
9384 2000-04-11  Ben Wing  <ben@xemacs.org>
9385
9386         * eval.c (unbind_to_hairy): fix brokenness introduced by
9387         nanosecond speed improvements.
9388
9389 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
9390
9391         * sunplay.c (init_device): To play sounds correctly, the device
9392         apparently needs to be initialized at least once by XEmacs.  Make
9393         it so.
9394
9395 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9396
9397         * redisplay.c (add_margin_runes): Add text image glyph
9398           handling.
9399
9400 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
9401
9402         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
9403         gcc is newer than 2.5.
9404
9405 2000-04-06  Colin Rafferty  <colin@xemacs.org>
9406
9407         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
9408
9409         * fns.c (size_bit_vector):
9410         * alloc.c (size_vector):
9411         (make_vector_internal):
9412         (make_bit_vector_internal):
9413         (sweep_bit_vectors_1):
9414         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
9415
9416 2000-04-06  Andy Piper  <andy@xemacs.org>
9417
9418         * gmalloc.c (malloc): undo previous change.
9419         (malloc): ditto.
9420         (free): ditto.
9421         (realloc): ditto.
9422
9423 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
9424
9425         * line-number.c (buffer_line_number): Revert to former version.
9426
9427 2000-04-06  Andy Piper  <andy@xemacs.org>
9428
9429         * gmalloc.c (malloc): add error checking.
9430         (malloc): ditto.
9431         (free): ditto.
9432         (realloc): ditto.
9433
9434         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
9435         button_item_to_widget_value arg.
9436
9437         * glyphs-x.c (x_button_instantiate): add extra
9438         button_item_to_widget_value arg.
9439         (x_progress_gauge_instantiate): ditto.
9440         (x_edit_field_instantiate): ditto.
9441         (x_label_instantiate): ditto.
9442
9443         * gui-x.c (gui_items_to_widget_values_1): add extra
9444         button_item_to_widget_value arg.
9445         (button_item_to_widget_value): add extra menu_item_p arg.
9446
9447         * gui-x.h: change signature of button_item_to_widget_value.
9448
9449         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
9450         button_item_to_widget_value arg.
9451
9452 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9453
9454         * buffer.h (struct buffer): auto_save_modified should be long.
9455
9456 2000-04-05  Andy Piper  <andy@xemacs.org>
9457
9458         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
9459         type.
9460         (button_query_geometry): give a little more room so that athena
9461         buttons fit.
9462
9463 2000-04-05  Andy Piper  <andy@xemacs.org>
9464
9465         * faces.c (complex_vars_of_faces): The widget face should inherit
9466         the font of the gui-element face.
9467
9468 2000-04-04  Andy Piper  <andy@xemacs.org>
9469
9470         * glyphs-x.c (x_button_update): new function. unconditionally
9471         update a button's state when the instance is dirty.
9472         (image_instantiator_format_create_glyphs_x): add x_button_update.
9473         (x_widget_instantiate): remove old resize cruft.
9474
9475 2000-04-02  Andy Piper  <andy@xemacs.org>
9476
9477         * frame.c (change_frame_size_1): The introduction of gutters means
9478         that we need to allow 0 as a potential frame dimension.
9479
9480 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9481
9482         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
9483         image glyph if allow_cursor.
9484         (add_hscroll_rune): Don't allow cursor to border glyph.
9485         (create_text_block): Ditto.
9486
9487         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
9488         text not in buffer.
9489         (redisplay_output_layout): Call ensure_face_cachel_complete for
9490         text image glyph.
9491
9492
9493 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9494
9495         * redisplay.c (add_glyph_rune): Adding text image as text runes.
9496
9497         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
9498         not in buffer
9499
9500         * redisplay-tty.c (tty_output_display_block): Delete the routine
9501         for text image glyph
9502         * redisplay-x.c (x_output_display_block): ditto
9503         * redisplay-msw.c (mswindows_output_display_block): ditto
9504
9505 2000-02-02  Mike Alexander  <mta@arbortext.com>
9506
9507         Note: Some of these were committed by accident as part of other
9508         patches.
9509
9510         * regex.c (regex_compile): Avoid compiler warnings.
9511
9512         * ntproc.c (sys_spawnve): Avoid compiler warnings.
9513
9514         * nt.h: Declare term_ntproc correctly.
9515
9516         * nt.c: Remove incorrect declaration of get_home_directory which
9517         is declared correctly in lisp.h.
9518
9519         * keymap.c (get_keyelt): Avoid compiler warnings.
9520         (raw_lookup_key_mapper): Avoid compiler warnings.
9521
9522         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
9523
9524         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
9525
9526         * filemode.c (mode_string): Avoid compiler warnings.
9527
9528         * file-coding.c (Fcoding_system_aliasee): Add return statement to
9529         avoid warning.
9530
9531         * events-mod.h: Undef some things that winuser.h defines differently.
9532
9533         * data.c (Faset): Avoid compiler warnings.
9534
9535         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
9536
9537 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
9538
9539         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
9540         Fall through to simple beep on error.
9541         Replace "extern" by real header file.
9542
9543         * linuxplay.c: Use nativesound.h
9544         (play_sound_data): Return error code. Be less verbose on error.
9545
9546         * sunplay.c: Use nativesound.h
9547         (play_sound_data): Return error code. Be less verbose on error.
9548
9549         * ntplay.c: Use nativesound.h
9550         (play_sound_data): Return fake error code
9551
9552         * sgiplay.c: Use nativesound.h
9553         (play_sound_data): Return error code
9554
9555         * hpplay.c: Use nativesound.h, partially implement
9556         new error code. Break compilation until finished.
9557         (play_sound_data): error code.
9558
9559         * nativesound.h (play_sound_file):
9560           (play_sound_data): Prototype in new header.
9561
9562 2000-03-31  Andy Piper  <andy@xemacs.org>
9563
9564         * glyphs-widget.c: (button_query_geometry): new function. Adjust
9565         for toggle and radio buttons.
9566         (image_instantiator_buttons): use it.
9567
9568 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
9569
9570         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
9571         (x_update_horizontal_scrollbar_callback): Return if no mirror was
9572         found. Scrollbar event probably belonged to some old config.
9573
9574 2000-03-31  Andy Piper  <andy@xemacs.org>
9575
9576         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
9577         than 1.
9578         (initialize_widget_image_instance): default layout to
9579         LAYOUT_HORIZONTAL rather than 0.
9580         (widget_instantiate): reverse the item list at the end rather than
9581         every iteration.
9582         (layout_layout): re-code for the border text at the front of the
9583         item list rather than at the end.
9584         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
9585         provided by the user.
9586         (widget_query_geometry): comment.
9587
9588 2000-03-30  Andy Piper  <andy@xemacs.org>
9589
9590         * glyphs-widget.c (image_instantiator_layout): allow standard
9591         widget keywords in layouts.
9592
9593         * gutter.c (output_gutter): cope with nil gutter contents.
9594
9595         * frame.c (Fset_frame_properties): add gutter docs.
9596
9597 2000-03-29  Andy Piper  <andy@xemacs.org>
9598
9599         * toolbar-msw.c (TBSTYLE_FLAT): add.
9600         (mswindows_output_toolbar): minor fiddling.
9601
9602 2000-03-29  Andy Piper  <andy@xemacs.org>
9603
9604         * gutter.c (output_gutter): force gutter size recalculation if
9605         what we are trying to display won't fit.
9606         (update_gutter_geometry): new function. A per-gutter version of
9607         update_frame_gutter_geometry.
9608         (update_frame_gutter_geometry): use it.
9609         (redraw_exposed_gutter): add extra debugging output.
9610
9611 2000-03-28  Mike Alexander  <mta@arbortext.com>
9612
9613         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
9614         (pdump_file_unmap): Implement it on Windows
9615         (pdump_file_get): Save alocated handles for pdump_file_unmap
9616
9617 2000-03-28  Andy Piper  <andy@xemacs.org>
9618
9619         * gui.c (get_gui_callback): treat Quit specially.
9620
9621 2000-03-27  Andy Piper  <andy@xemacs.org>
9622
9623         * glyphs.c (image_instantiate): be careful to check in the same
9624         way we assigned.
9625
9626 2000-03-27  Didier Verna  <didier@xemacs.org>
9627
9628         * config.h.in: define the proper SMART_INCLUDE macro.
9629         handle renaming of `foo_h_path' to `foo_h_file'.
9630
9631         * database.c: ditto.
9632
9633         * emacs.c: ditto.
9634
9635         * linuxplay.c: ditto.
9636
9637         * terminfo.c: ditto.
9638
9639         * tooltalk.h: ditto.
9640
9641 2000-03-27  Andy Piper  <andy@xemacs.org>
9642
9643         * glyphs-msw.c (mswindows_update_widget): make sure the widget
9644         gets updated whenever the face might have changed.
9645
9646 2000-03-26  Mike Alexander  <mta@arbortext.com>
9647
9648         * dumper.c (pdump_resource_free): Fix the comment.
9649
9650 2000-03-21  Olivier Galibert  <galibert@pobox.com>
9651
9652         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
9653
9654 2000-03-22  Mike Alexander  <mta@arbortext.com>
9655
9656         * dumper.c: Include Windows headers on Windows
9657         (pdump_resource_free): Add a body to the function
9658         (pdump_load): exe_name -> exe_path and add some comments.
9659
9660 2000-03-25  Mike Alexander  <mta@arbortext.com>
9661
9662         * gui.c (copy_gui_item_tree): Return a value in all cases
9663
9664 2000-03-21  Didier Verna  <didier@xemacs.org>
9665
9666         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
9667         lwlib/config.h.in.
9668         (SMART_INCLUDE): new macro.
9669         (POSTGRES_INCLUDE): new macro to include postgresql headers from
9670         the proper location.
9671
9672         * postgresql.c: use it.
9673
9674         * inline.c: ditto.
9675
9676 2000-03-24  Andy Piper  <andy@xemacs.org>
9677
9678         * gutter.c (redraw_exposed_gutters): must be "in display" when we
9679         do this.
9680
9681 2000-03-24  Andy Piper  <andy@xemacs.org>
9682
9683         * redisplay-output.c (compare_runes): use image_instance_changed
9684         to detect changes. Do not depend on glyphs_changed, only depend on
9685         dirtiness.
9686          (redisplay_output_layout): add debug messages.
9687         (compare_runes): ditto.
9688
9689         * glyphs.h: declare new functions.
9690         (struct Lisp_Image_Instance): remove percent and associated
9691         accessors.
9692
9693         * gui.h: declare new copying functions.
9694
9695         * gui.c (copy_gui_item_tree): new function.
9696         (copy_gui_item): new function.
9697         (gui_item_id_hash): revert to standard hash.
9698         (gui_item_hash): ditto.
9699         (gui_item_hash_internal): deleted.
9700         (mark_gui_item): mark value.
9701         (gui_item_add_keyval_pair): add value.
9702         (gui_item_init): ditto.
9703         (gui_add_item_keywords_to_plist): ditto.
9704         (gui_item_equal): ditto.
9705         (syms_of_gui): add Q_value.
9706
9707         * glyphs-x.c (x_progress_gauge_update): use pending items and
9708         value for setting the state.
9709         (x_update_widget): don't set items from pending here.
9710
9711         * glyphs-widget.c (update_widget): update items here.
9712         (progress_gauge_set_property): use items for storing value. Put
9713         new value in pending items.
9714
9715         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
9716         items for new value. Convert percent -> value.
9717         (mswindows_tab_control_update): don't update items here.
9718
9719         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
9720         (update_subwindow): ditto.
9721         (image_instance_changed): new function. Compare hash values and
9722         past and present widget items.
9723         (image_instantiate): We more careful about where we instantiate
9724         things.
9725         (image_instantiate): add error checking.
9726
9727         * gutter.c (syms_of_gutter): use -hook.
9728
9729 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
9730
9731         * console-tty.c (Fset_console_tty_input_coding_system): Use
9732         Qkeyboard.
9733         (Fset_console_tty_output_coding_system): Use Qterminal.
9734         (tty_init_console): Use Qkeyboard and Qterminal.
9735
9736 2000-03-21  Ben Wing  <ben@xemacs.org>
9737
9738         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
9739         From Mike Alexander <mta@arbortext.com>.
9740
9741 2000-03-21  Ben Wing  <ben@xemacs.org>
9742
9743         * event-msw.c (mswindows_need_event): Horrible kludge to fix
9744         process brokenness.  Proper implementation to come.
9745         * callproc.c:
9746         Rename call-process-internal to old-call-process-internal.
9747         New impl. in process.el.
9748
9749 2000-03-21  Martin Buchholz  <martin@xemacs.org>
9750
9751         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
9752
9753 2000-03-20  Andy Piper  <andy@xemacs.org>
9754
9755         * glyphs.c (full_list_hash): make hashes of the same elements in
9756         different orders return different values.
9757
9758 2000-03-20  Martin Buchholz <martin@xemacs.org>
9759
9760         * XEmacs 21.2.32 is released.
9761
9762 2000-03-20  Martin Buchholz  <martin@xemacs.org>
9763
9764         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
9765         (DFC_MALLOC_USE_CONVERTED_DATA):
9766         Add aliasing-safe casts to allow use with char* or unsigned char*
9767         lvalues.
9768
9769         * eldap.c (Fldap_open):
9770         (Fldap_search_basic):
9771         (Fldap_add):
9772         (Fldap_modify):
9773         Make C++-compilable.
9774         Make sure GCPRO'ed variables are initialized.
9775         Use temp variables to avoid repeated calls to Flength.
9776
9777 2000-03-16  Martin Buchholz  <martin@xemacs.org>
9778
9779         * sysfile.h:
9780         Make sure PATH_MAX is always defined.
9781         Include limits.h for PATH_MAX.
9782         Deprecate use of MAXPATHLEN.
9783
9784 2000-03-10  Martin Buchholz  <martin@xemacs.org>
9785
9786         * emacs.c: Add reinit_vars_of_fileio.
9787         * symsinit.h: Add reinit_vars_of_fileio.
9788         * fileio.c (reinit_vars_of_fileio): New.
9789         * fileio.c (Fmake_temp_name):
9790         Initialize temp_name random number from microseconds to make
9791         collisions even less likely.  Initialize always at process startup
9792         time.  (make-temp-name) used to return the same file name twice in
9793         a row when PDUMP.
9794         Random stylistic fiddling.
9795         Comment fixes.
9796
9797 2000-03-20  Andy Piper  <andy@xemacs.org>
9798
9799         * glyphs.c (image_instantiate): allow text glyphs to be
9800         instantiated in the minibuffer window.
9801
9802 2000-03-19  Andy Piper  <andy@xemacs.org>
9803
9804         * glyphs.c (image_instance_hash): be careful about which items we
9805         hash on.
9806
9807         * glyphs-widget.c (tab_control_set_property): record into pending
9808         items rather than the actual items.
9809
9810         * glyphs-x.c (x_update_widget): use pending items to update with.
9811
9812         * glyphs-msw.c (mswindows_tab_control_update): use pending items
9813         to update with.
9814
9815         * glyphs.c (mark_image_instance): mark pending items.
9816
9817         * window.c (Fset_window_configuration): record the buffer.
9818         (Fselect_window): totally revert previous change which breaks many
9819         things.
9820
9821 2000-03-18  Andy Piper  <andy@xemacs.org>
9822
9823         * glyphs-msw.c (mswindows_tab_control_update): force selected
9824         item.
9825
9826         * glyphs.c (image_instantiate): don't allow the minibuffer as a
9827         window domain cache, otherwise we get inconsistencies at
9828         startup. There is something fishy at startup which can lead to the
9829         minibuffer being the selected window when the gutter content is
9830         instantiated.
9831
9832         * gui.c (parse_gui_item_tree_list): add probably unnecessary
9833         gcpros.
9834         (parse_gui_item_tree_children): ditto.
9835         (parse_gui_item_tree_item): ditto.
9836
9837         * glyphs.c (Fupdate_widget_instances): return something.
9838
9839 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9840
9841         * window.c (Fselect_window): Undo 2000-03-17 change.
9842
9843 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
9844
9845         * postgresql.c (Fpq_setenv): Remove this turkey when linking
9846         against v7.0 libraries.  Insta-coredump city until the postgres
9847         folks fix it.
9848
9849 2000-03-17  Andy Piper  <andy@xemacs.org>
9850
9851         * faces.c (complex_vars_of_faces): don't give the widget face an
9852         inherited background pixmap.
9853
9854         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
9855         selected item.
9856
9857         * event-stream.c (Fdispatch_non_command_events): return something.
9858
9859         * gutter.c (output_gutter): use widget face.
9860         (clear_gutter): ditto.
9861
9862         * NEWS: adjust again.
9863
9864         * window.c (Fselect_window): make sure this runs to completion to
9865         avoid oddities with Fset_window_configuration.
9866         (Fcurrent_window_configuration): in general do not save the
9867         minibuffer as the selected window.
9868
9869         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
9870
9871 2000-03-16  Olivier Galibert  <galibert@pobox.com>
9872
9873         * emacs.c (Frunning_temacs_p): Revert previous patch.
9874         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
9875
9876 2000-03-16  Andy Piper  <andy@xemacs.org>
9877
9878         * glyphs-x.c (x_tab_control_update): if no widget values then
9879         return.
9880
9881         * NEWS: update for new features.
9882
9883         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
9884         synthetic event to the native system.
9885         (reinit_vars_of_event_Xt): set force_event_pending to
9886         emacs_Xt_force_event_pending.
9887
9888         * events.h (struct event_stream): add force_event_pending.
9889
9890         * specifier.c (recompute_one_cached_specifier_in_window): add
9891         comment.
9892
9893         * redisplay.c (redisplay_frame): don't call
9894         update_frame_subwindows. Reset subwindow cachels when
9895         subwindows_changed, removing this was an optimization too far.
9896
9897         * redisplay-output.c (compare_runes): reorganize so that we catch
9898         glyph changes when we want them. Set optimize_output when this
9899         would help layouts.
9900         (redisplay_output_layout): remove frame_really_changed, use
9901         optimize_output instead.
9902
9903         * redisplay-msw.c (mswindows_output_display_block): reset
9904         optimize_output after outputting a glyph.
9905         * redisplay-x.c (x_output_display_block): ditto.
9906         * redisplay-tty.c (tty_output_display_block): ditto.
9907
9908         * gutter.c: (specifier_vars_of_gutter): use new spec changed
9909         functions.
9910         (gutter_specs_changed): do specific gutter positions.
9911         (top_gutter_specs_changed): new function. Only update the
9912         specified gutter specs.
9913         (bottom_gutter_specs_changed): ditto.
9914         (left_gutter_specs_changed): ditto.
9915         (right_gutter_specs_changed): ditto.
9916
9917         * gui.c (gui_item_hash_internal): new function, does a real hash.
9918         (gui_item_id_hash): use it.
9919         (gui_item_hash): hash the eval'ed gui_item.
9920
9921         * gui-x.c (popup_selection_callback): send an eval event to call
9922         Fupdate_widget_instances.
9923
9924         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
9925         to call Fupdate_widget_instances.
9926
9927         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
9928         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
9929
9930         * glyphs.c: (update_frame_subwindows): deleted.
9931         (Fupdate_widget_instances): new function for updating the dirty
9932         state of widgets that might have changed.
9933         (syms_of_glyphs): add Qupdate_widget_instances.
9934         (full_list_hash): hash a list completely.
9935         (image_instance_hash): use it for items and properties.
9936
9937         * frame-msw.c (mswindows_size_frame_internal): remove unused
9938         variable.
9939
9940         * faces.h (struct face_cachel): fix comment.
9941
9942         * event-stream.c (Fdispatch_non_command_events): new
9943         function. Process non-command events, forcing an event cycle
9944         beforehand.
9945         (syms_of_event_stream): declare.
9946         (event_stream_force_event_pending): new function. Force an event
9947         on the native event queue so that an event cycle will occur next
9948         time we check.
9949
9950         * event-msw.c:
9951         (struct ntpipe_shove_stream):
9952         (mswindows_enqueue_dispatch_event):
9953         (mswindows_dequeue_dispatch_event):
9954         (mswindows_cancel_dispatch_event):
9955         (mswindows_pump_outstanding_events):
9956         (mswindows_drain_windows_queue):
9957         (mswindows_handle_paint):
9958         (mswindows_wnd_proc):
9959         (mswindows_key_to_emacs_keysym):
9960         (get_process_input_waitable):
9961         (emacs_mswindows_delete_stream_pair): re-indent file.
9962         (mswindows_need_event): do not process further fds if the windows
9963         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
9964         fixes the 100% cpu problem.
9965         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
9966
9967 2000-03-15  Olivier Galibert  <galibert@pobox.com>
9968
9969         * alloc.h: New.
9970         * dumper.h: New.
9971         * dumper.c: New.
9972
9973         * emacs.c: Moved dump file searching to dumper.c.
9974         (Frunning_temacs_p): Fixed.
9975
9976         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
9977         last_lrecord_type_index_assigned.
9978
9979 2000-02-20  Olivier Galibert  <galibert@pobox.com>
9980
9981         * symsinit.h: Added reinit parameter to init_console_stream
9982         declaration.
9983
9984         * lisp.h: Added file parameter to pdump_load declaration.
9985
9986         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
9987         support.  Added dump file searching.
9988
9989         * config.h.in: Added EMACS_PROGNAME.
9990
9991         * console-stream.c (init_console_stream): Fix reinitialisation
9992         when running from temacs.
9993
9994         * alloc.c (pdump): Add id support.
9995         (pdump_load): Add file parameter and signature/id support.
9996
9997         * Makefile.in.in: Add full pdump support.
9998
9999 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
10000
10001         * postgresql.c: Update documentation to reflect latest code
10002         status.
10003         (print_result): Show tuple counts in printed representation when
10004         appropriate.
10005         (Fpq_put_nbytes): MULE-ize.
10006         (Fpq_get_line_async): Ditto.
10007
10008 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
10009
10010         * postgresql.c (Fpq_lo_import): Fix return value.
10011         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
10012
10013 2000-03-13  Ben Wing  <ben@xemacs.org>
10014
10015         * alloc.c (pdump_load):
10016         Fix compile warning under mswin.
10017
10018 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
10019
10020         * postgresql.c: Mule-ization, bug fixes.
10021         Use PG_CODING to encapsulate coding system name changes.
10022         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
10023         (pg-coding-system): Create.
10024
10025         (Fpq_conn_defaults): Mule-ize.
10026         (Fpq_connectdb): Mule-ize & bug fix.
10027         (Fpq_connect_start): Mule-ize.
10028         (Fpq_set_client_encoding): Mule-ize.
10029         (Fpq_finish): Document `DEAD' connection status.
10030         (Fpq_clear): Ditto.
10031         (Fpq_pgconn): Mule-ize.
10032         (Fpq_exec): Mule-ize & bug fix.
10033         (Fpq_send_query): Ditto.
10034         (Fpq_get_result): Ditto.
10035         (Fpq_res_status): Mule-ize.
10036         (Fpq_result_error_message): Mule-ize.
10037         (Fpq_ntuples): fix comments.
10038         (Fpq_fname): Mule-ize.
10039         (Fpq_fnumber): Mule-ize.
10040         (Fpq_ftype): fix comments.
10041         (Fpq_get_value): Mule-ize.
10042         (Fpq_cmd_status): Ditto.
10043         (Fpq_cmd_tuples): Ditto.
10044         (Fpq_oid_value): Ditto.
10045         (Fpq_notifies): Ditto.
10046         (Fpq_lo_import): Ditto.
10047         (Fpq_lo_export): Ditto.
10048         (Fpq_get_line): Ditto.
10049         (Fpq_put_line): Mule-ize and bug fix.
10050         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
10051
10052 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
10053
10054         * postgresql.c (vars_of_postgresql): Mule-ize.
10055         (Fpq_conn_defaults): Ditto.
10056
10057 2000-03-12  Ben Wing  <ben@xemacs.org>
10058
10059         * alloc.c (Fmake_byte_code):
10060         * alloc.c (debug_string_purity_print):
10061         * alloc.c (pdump_backtrace):
10062         * alloc.c (pdump_get_indirect_count):
10063         * alloc.c (pdump_register_sub):
10064         * alloc.c (pdump_register_object):
10065         * alloc.c (pdump_register_struct):
10066         * alloc.c (pdump_dump_data):
10067         * alloc.c (pdump_reloc_one):
10068         Minor cleanups.
10069
10070         * console-msw.c:
10071         * console-msw.c (GetConsoleHwnd):
10072         * console-msw.c (msw_hide_console):
10073         * console-msw.c (msw_show_console):
10074         * console-msw.c (msw_ensure_console_buffered):
10075         * console-msw.c (msw_output_console_string):
10076         * console-msw.c (console_type_create_mswindows):
10077
10078         a) Added functions to manipulate the console window for use with
10079         shell support.
10080
10081         b) Added support for writing text to the console, which is now
10082         used under Windows when xemacs is not being run non-interactively,
10083         to write text that would otherwise be destined for stdout because
10084         under these circumstances, text written to stdout tends to
10085         disappear and not be seen.
10086
10087         * console-msw.h:
10088         * event-Xt.c:
10089         * event-Xt.c (x_event_to_emacs_event):
10090         * event-Xt.c (describe_event_window):
10091         * events-mod.h (XEMACS_MOD_CONTROL):
10092         * events.c:
10093         * events.c (Fmake_event):
10094         * events.c (character_to_event):
10095         * events.c (event_to_character):
10096         * events.c (format_event_object):
10097         * events.c (Fevent_modifiers):
10098         * events.h:
10099         * events.h (struct key_data):
10100         * events.h (struct button_data):
10101         * events.h (struct misc_user_data):
10102         * frame-x.c (Fcde_start_drag_internal):
10103         * frame-x.c (Foffix_start_drag_internal):
10104         * gpmevent.c (Freceive_gpm_event):
10105         * keymap.c:
10106         * keymap.c (bucky_sym_to_bucky_bit):
10107         * keymap.c (control_meta_superify):
10108         * keymap.c (make_key_description):
10109         * keymap.c (keymap_lookup_directly):
10110         * keymap.c (create_bucky_submap):
10111         * keymap.c (keymap_store):
10112         * keymap.c (define_key_check_and_coerce_keysym):
10113         * keymap.c (define_key_parser):
10114         * keymap.c (define_key_alternate_name):
10115         * keymap.c (Fdefine_key):
10116         * keymap.c (raw_lookup_key_mapper):
10117         * keymap.c (struct map_keymap_unsorted_closure):
10118         * keymap.c (map_keymap_unsorted_mapper):
10119         * keymap.c (map_keymap_sort_predicate):
10120         * keymap.c (map_keymap_sorted):
10121         * keymap.c (accessible_keymaps_mapper_1):
10122         * keymap.c (where_is_recursive_mapper):
10123         * keymap.c (describe_map_mapper):
10124         * keymap.c (describe_map_sort_predicate):
10125         * keymap.c (describe_map):
10126         * keymap.c (complex_vars_of_keymap):
10127         And a number of other files, the key modifier preprocessor
10128         constants that xemacs uses have names that conflict with constants
10129         defined under MS Windows for other purposes, so they were renamed
10130         to begin with the prefix XEMACS_. The variables that hold such
10131         modifiers were changed to consistently be of type int to fix
10132         various compile warnings.
10133
10134         * console.c (complex_vars_of_console):
10135         * device.c:
10136         * device-msw.c:
10137         * device-msw.c (mswindows_finish_init_device):
10138         * device-msw.c (msw_get_workspace_coords):
10139         * device-msw.c (mswindows_device_system_metrics):
10140         and various other files, added support for a new
10141         device property called offset-workspace which returns the position
10142         of the upper left corner of the workspace area and goes along with
10143         the existing size-workspace property.
10144
10145         * dialog-msw.c:
10146         * dialog-msw.c (push_bufbyte_string_as_unicode):
10147         * dialog-msw.c (mswindows_popup_dialog_box):
10148         Added support for XEmacs-style accelerator specifications in
10149         button text.  Note: I didn't add support for this under X Windows,
10150         and somebody needs to do this.
10151
10152         * dialog.c:
10153         * dialog.c (Fpopup_dialog_box):
10154         Documented the support for accelerators that was just mentioned.
10155
10156         editfns.c (get_home_directory): Changed behavior under Windows
10157         when HOME not defined; former behavior was irretrievably broken.
10158
10159         * emacs.c:
10160         * emacs.c (main_1):
10161         * emacs.c (main):
10162         * minibuf.c (clear_echo_area_internal):
10163         * minibuf.c (echo_area_append):
10164         * print.c:
10165         * print.c (std_handle_out_external):
10166         * print.c (std_handle_out_va):
10167         * print.c (fatal):
10168         * print.c (write_string_to_stdio_stream):
10169         * print.c (output_string):
10170         * print.c (debug_print):
10171         * print.c (debug_backtrace):
10172         * print.c (debug_short_backtrace):
10173         Cleaned up the code that prints text to stdout so that this can be
10174         changed to output into a console window instead under MS Windows,
10175         as described above.
10176
10177         * eval.c:
10178         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
10179         * eval.c (internal_catch):
10180         * eval.c (unwind_to_catch):
10181         * eval.c (throw_or_bomb_out):
10182         * eval.c (condition_case_1):
10183         * eval.c (signal_1):
10184         * eval.c (check_error_state_sanity):
10185         * eval.c (call_with_suspended_errors_1):
10186         * eval.c (call_with_suspended_errors):
10187         * eval.c (reinit_vars_of_eval):
10188         Added code to catch throw loops and check for a pesky bug that may
10189         be gone now.
10190
10191         * event-msw.c:
10192         * event-msw.c (key_needs_default_processing_p):
10193         * event-msw.c (mswindows_wnd_proc):
10194         * event-msw.c (mswindows_modifier_state):
10195         * event-msw.c (emacs_mswindows_quit_p):
10196         * event-msw.c (vars_of_event_mswindows):
10197         a) Added support for using the alt key to select menu items as is
10198         standard under MS Windows.  This is controlled using the variable
10199         menu-accelerator-enabled, just like under X Windows.  There is an
10200         option on the options menu to turn this support on.  I really
10201         think that it should be on by default under Windows, but I'm not
10202         going to make this change yet.
10203
10204         b)  Added support for dynamic display size changes under Windows.
10205
10206         * event-stream.c:
10207         * event-stream.c (maybe_echo_keys):
10208         * event-stream.c (Fnext_event):
10209         * event-stream.c (command_builder_find_leaf):
10210         * event-stream.c (lookup_command_event):
10211         * event-stream.c (execute_command_event):
10212         * event-stream.c (pre_command_hook):
10213         * event-stream.c (post_command_hook):
10214         * event-stream.c (syms_of_event_stream):
10215         * event-stream.c (vars_of_event_stream):
10216         * event-stream.c (complex_vars_of_event_stream):
10217         * events.h (struct command_builder):
10218
10219         a) Tried to clean up a little bit the horribly written x-specific
10220         accelerator code that crept into this file.  I moved this code
10221         into menubar-x.c where it belongs. I also needed to move the
10222         command builder structure into the file events.h because it is
10223         accessed directly by this accelerator code.  What I didn't do, but
10224         which should be done at some point, is to properly abstract this
10225         code using device methods instead of the kludgy way that it
10226         currently hooks into the event code.
10227
10228         b) Added the lisp variables this-command-properties and
10229         last-command- properties, which should be used to synchronize two
10230         adjacent commands in preference to playing games with the variable
10231         this-command, which is typically what happens.
10232
10233         c) Added some slightly nasty code to hook into the lisp support
10234         for shifted- motion-key selection.  This is actually necessary for
10235         somewhat complicated reasons, which are described in
10236         simple.el. (NB: I think the proper thing would be to have the code
10237         that calls the pre and post command hooks also call out to generic
10238         lisp functions in simple.el, where all built-in stuff could be
10239         added.  I will think about this more.)
10240
10241         * event-unixoid.c (poll_fds_for_input):
10242         * lread.c (readchar):
10243         * redisplay-tty.c (tty_clear_frame):
10244         * redisplay-x.c (x_get_gc):
10245         * signal.c (interrupt_signal):
10246         And a whole bunch of other files: fixed up places that printed
10247         directly to stderr to instead call the function stderr_out so that
10248         the changes I made under Windows work correctly.
10249
10250         * filemode.c (mode_string):
10251         Warning fixes.
10252
10253         * frame-msw.c:
10254         * frame-msw.c (mswindows_size_frame_internal):
10255         Fixed the computation of frame size and position to keep the frame
10256         within the workspace area, rather than within the physical
10257         dimensions of the screen, so that the frame doesn't overlap window
10258         manager decorations, such as the start menu and toolbar, typically
10259         at the bottom of the screen.
10260
10261         * frame.c (vars_of_frame):
10262         Changed the default frame title format under MS Windows to consist
10263         of buffername-XEmacs, which is standard under MS Windows.  I think
10264         it might be a good idea to change this everywhere because I think
10265         it is superior to the current frame title format, but this is the
10266         kind of change that is likely to cause some people to get annoyed,
10267         so I'm not making it.
10268
10269         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
10270
10271         * gui-msw.c (mswindows_handle_gui_wm_command):
10272         Fixed compile warnings.
10273
10274         * gui-x.c:
10275         * gui-x.c (strdup_and_add_accel):
10276         * gui-x.c (button_item_to_widget_value):
10277         * gui-x.h:
10278         Added code to automatically put an accelerator onto the beginning
10279         of menu items that don't have one as is now the standard, and is
10280         described more later.  Also fixed things so that the menu item
10281         name can be an evaluated expression, again a new standard.
10282
10283         * gui.c:
10284         * gui.c (gui_item_add_keyval_pair):
10285         * gui.c (make_gui_item_from_keywords_internal):
10286         * gui.c (gui_add_item_keywords_to_plist):
10287         * gui.c (gui_item_accelerator):
10288         * gui.c (gui_name_accelerator):
10289         * gui.c (gui_item_included_p):
10290         * gui.c (gui_item_display_flush_left):
10291         * gui.c (gui_item_display_flush_right):
10292         * gui.c (parse_gui_item_tree_item):
10293         * gui.c (parse_gui_item_tree_children):
10294         * gui.c (parse_gui_item_tree_list):
10295         Mule-ized.  Cleanup.  GCPRO addition.
10296
10297         * line-number.c (buffer_line_number):
10298         * lisp.h:
10299         * lisp.h (EMACS_INT_MAX):
10300         Added the manifest constant EMACS_INT_MIN corresponding to the
10301         existing constant EMACS_INT_MAX.  This is partially to fix compile
10302         warnings under Windows, and partly for cleanliness.
10303
10304         * menubar-msw.c:
10305         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
10306         * menubar-msw.c (msw_translate_menu_or_dialog_item):
10307         * menubar-msw.c (displayable_menu_item):
10308         * menubar-msw.c (populate_menu_add_item):
10309         * menubar-msw.c (populate_or_checksum_helper):
10310         * menubar-msw.c (populate_menu):
10311         * menubar-msw.c (update_frame_menubar_maybe):
10312         * menubar-msw.c (prune_menubar):
10313         * menubar-msw.c (msw_char_is_accelerator):
10314         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
10315         * menubar-msw.c (mswindows_handle_wm_command):
10316         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
10317         * menubar-msw.c (mswindows_handle_wm_initmenu):
10318         * menubar-msw.c (mswindows_update_frame_menubars):
10319         * menubar-msw.c (mswindows_free_frame_menubars):
10320         * menubar-msw.c (mswindows_popup_menu):
10321         Fixed a bug in handling accelerators where an extra character
10322         would be displayed in the menu item.  Also generalized the
10323         function displayable_menu_item because it is now used by the
10324         dialog box code as well.  And finally, added code in the functions
10325         that create the menubar to extract a list of accelerators for the
10326         top level menubar, which is used in the event code to determine
10327         whether a particular alt-key combination should be used to invoke
10328         a menu item, or should be passed through to access the standard
10329         XEmacs keymap binding for this key combination.
10330
10331         Much needed GCPROing.
10332
10333         * menubar-x.c:
10334         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10335         * menubar-x.c (menu_item_descriptor_to_widget_value):
10336         * menubar-x.c (restore_in_menu_callback):
10337         * menubar-x.c (x_popup_menu):
10338         * menubar-x.c (menu_move_up):
10339         * menubar-x.c (menu_move_down):
10340         * menubar-x.c (menu_move_left):
10341         * menubar-x.c (menu_move_right):
10342         * menubar-x.c (menu_select_item):
10343         * menubar-x.c (command_builder_operate_menu_accelerator):
10344         * menubar-x.c (menu_accelerator_junk_on_error):
10345         * menubar-x.c (command_builder_find_menu_accelerator):
10346         * menubar-x.c (Faccelerate_menu):
10347         * menubar.h:
10348         Moved a whole bunch of code here that was previously in
10349         event-stream.c as described above.  There is also code connected
10350         to the new standard of adding an accelerator to the beginning of
10351         menu items that don't have one as described above and below.
10352
10353         * menubar.c:
10354         * menubar.c (menu_parse_submenu_keywords):
10355         * menubar.c (Fmenu_find_real_submenu):
10356         * menubar.c (Fnormalize_menu_item_name):
10357         * menubar.c (syms_of_menubar):
10358         * menubar.c (vars_of_menubar):
10359         * menubar.c (complex_vars_of_menubar):
10360
10361         a) Cleaned up a bunch of documentation and improved it.
10362
10363         b) XEmacs now automatically adds an accelerator onto the beginning
10364         of any menu items that don't have one.  I did this because there
10365         will inevitably be some menu items on the main menubar that don't
10366         have accelerators on them because the package that adds that
10367         particular menu item hasn't yet been fixed up to have accelerators
10368         in them and it looked rather strange to have some items with and
10369         some items without accelerators, especially since even in items
10370         without accelerators, you can, at least under windows, still
10371         access the item through an accelerator corresponding to the first
10372         character in the item's name.  If people don't like this behavior,
10373         I can add a variable to turn it off optionally, but I'm not sure
10374         this is a good idea because we really do need to have accelerators
10375         on all of the menu items, and if a package doesn't like the
10376         accelerators being put on the first character, then it should put
10377         the accelerators where they belong.
10378
10379         c) I made a behavior change, which is that the descriptor that
10380         specifies the text of the menu item, which formerly was just a
10381         string, can now also be an evaluated expression.  This makes this
10382         descriptor parallel with all of the others, which could also be
10383         evaluated expressions.  This also obviates the need for the
10384         keyword :label, which was previously listed in the documentation
10385         as unimplemented, and which was for the same purpose.
10386
10387         d) GCPROing.
10388
10389         * ntproc.c:
10390         * ntproc.c (new_child):
10391         * ntproc.c (sys_spawnve):
10392         * ntproc.c (find_child_console):
10393         * ntproc.c (sys_kill):
10394         Fixed compile warnings.  By the way, this file should really go
10395         away entirely, and this will happen as soon as Kirill makes his
10396         final round of process cleanups, which affect the function
10397         call-process.
10398
10399         * process-nt.c:
10400         * process-nt.c (struct nt_process_data):
10401         * process-nt.c (find_process_from_pid):
10402         * process-nt.c (send_signal_the_nt_way):
10403         * process-nt.c (enable_child_signals):
10404         * process-nt.c (find_child_console):
10405         * process-nt.c (send_signal_the_95_way):
10406         * process-nt.c (nt_finalize_process_data):
10407         * process-nt.c (ensure_console_window_exists):
10408         * process-nt.c (nt_create_process):
10409         * process-nt.c (nt_kill_child_process):
10410         * process-nt.c (nt_kill_process_by_pid):
10411         * process-nt.c (nt_open_network_stream):
10412         * process-nt.c (vars_of_process_nt):
10413         Copied over code from Emacs 20.5 to correctly send signals to sub-
10414         processes under Windows 95.  Also added code to automatically
10415         create and hide console window when a sub-process is created under
10416         Windows 95, which obviates the need for the separate runemacs.exe
10417         executable, and finally implemented some variables that were
10418         implemented in Emacs 20.5, but previously not in XEmacs.  These
10419         include mswindows- start-process-share-console and
10420         mswindows-start-process-inherit-error-mode. (Both of these only
10421         apply to Windows 95.)
10422
10423         * regex.c (regex_compile): Fixed a compile warning.
10424
10425         * select-msw.c:
10426         * select-msw.c (mswindows_own_selection):
10427         * select-msw.c (mswindows_get_foreign_selection):
10428         * select-msw.c (mswindows_disown_selection):
10429         * select-msw.c (console_type_create_select_mswindows):
10430         * select-msw.c (syms_of_select_mswindows):
10431         Cleaned up the file and implemented the device method
10432         selection_exists_p, which had accidentally been left out.  Also
10433         removed four lisp functions that were remnants from before the
10434         time when the selection code was properly device abstracted.
10435         These functions are no longer needed because there are generic
10436         equivalents, and because they were added recently and don't exist
10437         in FSF Emacs, I don't think there's any problem with just deleting
10438         them.
10439
10440         * sysdep.c:
10441         * sysdep.c (sys_subshell):
10442         Fixed a compile warning, although in this case there's probably
10443         something wrong with this code, and it ought to be looked into
10444         more thoroughly by somebody who understands it.
10445
10446         * window.c:
10447         * window.c (Fwindow_text_area_height):
10448         * window.c (Fwindow_width):
10449         * window.c (Fwindow_full_width):
10450         * window.c (Fwindow_pixel_width):
10451         * window.c (debug_print_window):
10452         * window.c (syms_of_window):
10453         Added functions window-text-area-height and window-full-width,
10454         which are functions for returning various width and height
10455         characteristics of a window. (One of these functions is necessary
10456         for making the file dialog box work correctly, and the other one
10457         was added for completeness.)  Also added a table to the
10458         documentation for window-height which describes the entire scheme
10459         for accessing width and height characteristics of a window.
10460
10461 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10462
10463         * nt.c (fstat): Added a comment for another problem with
10464         non-encapsulated [f]stat(), reported by Adrian Aichner
10465         <aichner@ecf.teradyne.com>.
10466
10467 2000-03-11  Andy Piper  <andy@xemacs.org>
10468
10469         * window.c (make_dummy_parent): initialize subwindow instance
10470         cache.
10471         (Fset_window_configuration): zero extent_modiff.
10472
10473 2000-03-10  Andy Piper  <andy@xemacs.org>
10474
10475         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
10476         more changes can be triggered.
10477         (Fredisplay_frame): ditto.
10478         (Fredraw_device): ditto.
10479         (Fredisplay_device): ditto.
10480         (redisplay_frame): make non-static.
10481         (redisplay_frame): call update_frame_gutter_geometry outside of
10482         display proper.
10483
10484         * gutter.h: declare update_frame_gutter_geometry.
10485
10486         * redisplay.h: declare redisplay_frame.
10487
10488         * gutter.c (update_frame_gutter_geometry): move geometry changes
10489         in update_frame_gutters here. Geometry changes can only occur
10490         outside of redisplay.
10491         (update_frame_gutters): remove geometry change code.
10492         (Fredisplay_gutter_area): make sure that we are in display when we
10493         update and that we have flushed any size changes.
10494
10495 2000-03-11  Andy Piper  <andy@xemacs.org>
10496
10497         * alloc.c (pdump_dump_data): remove i & count shadows.
10498
10499 2000-02-27  Mike Alexander  <mta@arbortext.com>
10500
10501         * sysdep.h: Declare pdump_read_file
10502
10503         * sysdep.c (pdump_read_file): New function
10504
10505         * alloc.c (pdump_load): Call pdump_read_file to get the portable
10506         dump data
10507
10508 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
10509
10510         * lrecord.h: add `lrecord_type_pgsetenv'.
10511
10512 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
10513
10514         * symsinit.h: declare (vars|syms)_of* functions.
10515         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
10516
10517 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
10518
10519         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
10520
10521         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
10522         GCCs.
10523
10524         * emacs.c (main_1): Call postgres initialization code.
10525
10526         * postgresql.h: New file.  PostgreSQL RDBMS support.
10527         * postgresql.c: New file.
10528
10529 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
10530
10531         * redisplay-output.c (redisplay_output_display_block): Disable
10532         redundant code.
10533
10534 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10535
10536         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
10537         (Fcanna_henkan_next): Ditto.
10538         (Fcanna_bunsetu_henkou): Ditto.
10539         (Fcanna_henkan_kakutei): Ditto.
10540         (Fcanna_henkan_end): Ditto.
10541         (Fcanna_henkan_quit): Ditto.
10542         (Fcanna_henkan_next): Set retun value correctly.
10543         (c2mu): Use unsigned char instead of signed char.
10544
10545 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10546
10547         * emacs.c (main_1): Always call syms_of_gui.
10548         * inline.c: include gui.h
10549
10550 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10551
10552         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
10553         converted to Lisp_Object.
10554         (Qtop_bottom): New variable.
10555         (syms_of_redisplay): Initialize it.
10556         * redisplay.h (Vvisible_bell): Ditto.
10557         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
10558         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
10559         only flash top and bottom.
10560
10561 2000-03-08  Andy Piper  <andy@xemacs.org>
10562
10563         * buffer.c (Frename_buffer): record new buffer name the right way.
10564
10565 2000-03-08  Andy Piper  <andy@xemacs.org>
10566
10567         * glyphs.c (update_subwindow): increase hash depth so that widget
10568         items get picked up properly.
10569
10570         * redisplay-output.c (compare_runes): increase hash depth so that
10571         widget items get picked up properly.
10572
10573 2000-03-08  Andy Piper  <andy@xemacs.org>
10574
10575         * gutter.c (output_gutter): add some debug.
10576
10577         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
10578         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
10579         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
10580
10581         * redisplay-output.c (compare_runes): use display_hash to
10582         determine if glyphs really are not the same.
10583
10584         * glyphs.c (update_subwindow): check display_hash to see if
10585         anything really needs to be updated. If not then do
10586         nothing. Record the display_hash after updating.
10587         (image_instance_equal): compare the image_instance face also.
10588
10589 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
10590
10591         * redisplay.h: Fix comment style.
10592
10593 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10594
10595         * consle-msw.h (struct mswindows_frame):
10596         Added new member paint_pending to indicate whether a WM_PAINT
10597         magic event has been queued for this frame.
10598
10599         * event-msw.c (mswindows_drain_windows_queue):
10600         Don't queue a WM_PAINT magic event if one is already queued.
10601         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
10602
10603         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
10604
10605 2000-03-07  Didier Verna  <didier@xemacs.org>
10606
10607         * dired.c: #include `regex.h' after `sysfile.h'.
10608
10609 2000-03-06  Martin Buchholz  <martin@xemacs.org>
10610
10611         * sound.c (init_nas_sound): Fix compiler warning.
10612
10613         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
10614         (FREE_STRUCT_P):
10615         (MARK_STRUCT_AS_FREE):
10616         (MARK_STRUCT_AS_NOT_FREE):
10617         Make `gcc -fstrict-aliasing' work properly.
10618
10619 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10620
10621         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
10622         (mswindows_delete_device): Call CoUnnitialize().
10623
10624         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
10625
10626 2000-02-25    <CraigL@DyCon.com>
10627
10628         * process-nt.c: MinGW now has <shellapi.h>, but still needs
10629         <errno.h>.
10630
10631         * sysdep.c: This extern declaration for environ prevents MinGW
10632         from finding the variable in CRTDLL.DLL.
10633
10634         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
10635         windows headers.
10636         (SHGFI_EXETYPE): ..
10637         (WM_MOUSEWHEEL): ..
10638         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
10639         definitions.
10640         (MMRESULT): Removed, now defined in cygwin's windows headers.
10641         (TIMECAPS): ..
10642         (uid_t,gid_t,pid_t,ssize_t): ..
10643         (_timeb): Removed, MinGW defines both _timeb and timeb.
10644         (HAVE_H_ERRNO): Added.
10645         (HAVE_TZNAME): Added, configure is not detecting this.
10646
10647 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
10648
10649         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
10650         * syntax.c (syntax_match): Use it.
10651
10652         * cmds.c: Import auto-fill-chars from FSF Emacs.
10653         (Vauto_fill_chars): New variables.
10654         (internal_self_insert): Check Vauto_fill_chars.
10655         (vars_of_cmds):
10656         Declare auto-fill-chars as a Lisp variable and initialize it.
10657
10658 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10659
10660         * fileio.c (Fmake_symbolic_link):
10661         (Ffile_symlink_p):
10662         Run handlers even if local machine doesn't have symlinks.
10663
10664 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10665
10666         * event-msw.c (mswindows_drain_windows_queue):
10667         Don't generate paint magic events for non-XEmacs frames.
10668
10669 2000-03-05  Andy Piper  <andy@xemacs.org>
10670
10671         * redisplay.c (redisplay_frame): generate_displayable_area and
10672         friends assumes that we are not in GC, we therefore have to make
10673         sure that this doesn't happen.
10674
10675         * gutter.c (calculate_gutter_size): generate_displayable_area
10676         assumes that we are not in GC, we therefore have to make sure that
10677         this doesn't happen.
10678
10679 2000-03-05  Martin Buchholz  <martin@xemacs.org>
10680
10681         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
10682
10683 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
10684
10685         * redisplay.c (regenerate_window): Make sure we set a sane value
10686         for end_pos even if we jump out of the loop.
10687         (regenerate_window): Answer Ben's question :-).
10688         (start_end_of_last_line): Add may_error argument.
10689         (start_of_last_line):
10690         (end_of_last_line): Pass may_error = 0.
10691         (end_of_last_line_may_error): New function.
10692         (pixel_to_glyph_translation): Use it, so we don't crash in
10693         event_to_glyph.
10694
10695 2000-03-04  Andy Piper  <andy@xemacs.org>
10696
10697         * window.h (struct window): add gutter_extent_modiff.
10698
10699         * window.c (allocate_window): zero out gutter_extent_modiff.
10700
10701         * redisplay.h: declare sync_display_line_structs.
10702
10703         * redisplay.c (add_glyph_rune): add a better comment.
10704
10705         * redisplay-output.c (sync_display_line_structs): made non-static.
10706         (compare_runes): remove unneccesary glyph cachel access.
10707
10708         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
10709
10710         * gutter.c (output_gutter): don't output the gutter if extent
10711         changes only involve extents in buffers. use 4 sets of display
10712         lines.
10713         (gutter_extent_signal_changed_region_maybe): new function. Mark
10714         extents in gutters as changed.
10715         (update_frame_gutters): use 4 sets of display lines.
10716         (reset_gutter_display_lines): ditto.
10717         (free_frame_gutters): ditto.
10718         (redraw_exposed_gutter): force output of gutters.
10719
10720         * frame.h (struct frame): add 4 sets of gutter display lines.
10721
10722         * extents.c: (extent_changed_for_redisplay): signal changes to
10723         extents in strings in the gutter as well as extents in buffers.
10724
10725 2000-03-02  Andy Piper  <andy@xemacs.org>
10726
10727         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
10728
10729         * frame.c (Fmake_frame): make sure the gutters get initialized
10730         after the frame is visible.
10731         (set_frame_selected_window): re-arrange compilation macros a
10732         little.
10733         (change_frame_size_1): mark gutters changed.
10734
10735         * device.c (Fset_device_class): mark gutters changed.
10736
10737 2000-03-01  Andy Piper  <andy@xemacs.org>
10738
10739         * window.c (window_top_frame_gutter_height): deleted.
10740         (window_bottom_frame_gutter_height): ditto.
10741         (window_left_frame_gutter_height): ditto.
10742         (window_right_frame_gutter_height): ditto.
10743         (window_top_gutter_height): don't use them.
10744         (window_bottom_gutter_height): ditto.
10745         (window_left_gutter_width): ditto.
10746         (window_right_gutter_width): ditto.
10747         (Fsplit_window): ditto.
10748         (Fwindow_pixel_edges): don't use border dimensions here.
10749
10750         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
10751         (update_scrollbar_instance): ditto.
10752
10753         * redisplay.c (generate_modeline): don't take gutters into account.
10754         (generate_modeline): ditto.
10755         (redisplay_frame): small gutter display optimization.
10756
10757         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
10758
10759         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
10760         gutters into account.
10761
10762         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
10763         for window position and type.
10764
10765         * gutter.c (get_gutter_coords): fix for frame gutters.
10766         (update_frame_gutters): update frame geometry if the gutters have
10767         changed.
10768         (init_frame_gutters): record current gutter geometries.
10769
10770         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
10771         var.
10772         (mswindows_widget_instantiate): ditto.
10773
10774         * frame.h (struct frame): add current_gutter_bounds.
10775
10776         * frame.c (change_frame_size_1): position window and minibuffer
10777         appropriately taking into account the frame gutters.
10778
10779         * frame-x.c: (x_initialize_frame_size): take into account the
10780         frame gutters.
10781
10782 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
10783
10784         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
10785
10786 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
10787
10788         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
10789
10790 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
10791
10792         * file-coding.c (reset_decoding_stream): Clear previous
10793         detection state when autodetect.
10794
10795 2000-02-29  Didier Verna  <didier@xemacs.org>
10796
10797         * extents.c (set_extent_glyph_1): don't require extents to be
10798         attached.
10799
10800 2000-02-27  Andy Piper  <andy@xemacs.org>
10801
10802         * gutter.c (Fset_default_gutter_position): don't default left and
10803         right gutter visibility to t.
10804         (Fset_default_gutter_position): run
10805         default-gutter-position-changed-hook.
10806         (syms_of_gutter): add default-gutter-position-changed-hook.
10807
10808 2000-02-26  Andy Piper  <andy@xemacs.org>
10809
10810         * specifier.c (Fmake_specifier): add gutter references.
10811
10812         * gutter.h (RAW_WINDOW_GUTTER): new macro.
10813
10814         * lisp.h: declare Fvalid_plist_p.
10815
10816         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
10817         as changed.
10818         (default_gutter_visible_p_changed_in_window): invalidate gutter as
10819         well as its visibility so that it gets reconstructed.
10820         (construct_window_gutter_spec): new function. Construct a string
10821         to be displayed in the gutter from a plist of strings. Take care
10822         to only use elements that are declared as visible.
10823         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
10824         WINDOW_GUTTER.
10825         (gutter_validate): allow plists of strings in the specifier.
10826         (gutter_specs_changed): construct the real_gutter from the gutter
10827         specs using construct_window_gutter_spec.
10828         (gutter_visible_validate): gutter-visible is a new specifier type.
10829         (Fgutter_visible_specifier_p): new function for the new specifier.
10830         (syms_of_gutter): declare gutter-visible and
10831         Fgutter_visible_specifier_p.
10832         (specifier_type_create_gutter): intitalize new gutter-visible
10833         specifier.
10834         (reinit_specifier_type_create_gutter): ditto.
10835         (specifier_vars_of_gutter): use new specifier type for gutter
10836         visibility.
10837         (init_frame_gutters): construct real_gutter correctly.
10838         (Fgutter_specifier_p): beef up documentation.
10839         (Fgutter_size_specifier_p): ditto.
10840
10841         * winslots.h: add real_gutter slots.
10842
10843 2000-02-25  Andy Piper  <andy@xemacs.org>
10844
10845         * device-msw.c: Be kind to older cygwin versions. From Raymond
10846         Toy <toy@rtp.ericsson.se>.
10847
10848         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
10849         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
10850
10851 2000-02-25  Martin Buchholz  <martin@xemacs.org>
10852
10853         * elhash.c (MARK_OBJ): Practice macro hygiene.
10854
10855 2000-02-24  Martin Buchholz  <martin@xemacs.org>
10856
10857         * miscplay.c: s/__inline__/inline/g;
10858         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
10859         (get_device_compdc): INLINE ==> static inline
10860         * *.[ch]: Change INLINE to INLINE_HEADER globally.
10861         find -name '*.h' | \
10862         xargs global-replace \
10863         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
10864
10865 2000-02-25  Andy Piper  <andy@xemacs.org>
10866
10867         * window.c (window_top_frame_gutter_height): new function.
10868         (window_top_window_gutter_height): ditto.
10869         (window_top_gutter_height): use them.
10870         (window_bottom_frame_gutter_height): new function.
10871         (window_bottom_window_gutter_height): ditto.
10872         (window_bottom_gutter_height): use them.
10873         (window_left_window_gutter_width): new function.
10874         (window_left_frame_gutter_width): ditto.
10875         (window_left_gutter_width): use them.
10876         (window_right_window_gutter_width): new function.
10877         (window_right_frame_gutter_width): ditto.
10878         (window_right_gutter_width): use them.
10879         (window_pixel_height): new function. calulate window pixel height
10880         with frame gutter involvement.
10881         (Fsplit_window): calculate new sizes taking frame gutters into
10882         account.
10883         (window_char_height_to_pixel_height): don't include frame gutters.
10884         (window_char_height): use window_pixel_height.
10885         (window_pixheight): rename from window_pixel_height.
10886         (change_window_height): use it.
10887         (window_pixel_height_to_char_height): don't include frame gutters.
10888         (window_char_width_to_pixel_width): ditto.
10889
10890 2000-02-25  Andy Piper  <andy@xemacs.org>
10891
10892         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
10893         if it is.
10894
10895 2000-02-24  Martin Buchholz  <martin@xemacs.org>
10896
10897         * alloc.c (staticpro):
10898         (staticpro_nodump):
10899         (dumpstruct):
10900         (dumpopaque):
10901         (pdump_wire):
10902         (pdump_wire_list):
10903         (compact_string_chars):
10904         (pdump_dump_wired):
10905         Convert:  if (foo) abort();  ==>  assert (! foo);
10906
10907         * eldap.c (Fldap_search_basic):
10908         (Fldap_add):
10909         (Fldap_modify):
10910         (Fldap_delete):
10911         Fix compiler warnings, and possible crashes if (random) return
10912         value were to be used.
10913
10914 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10915
10916         * device-msw.c: Workaround ResetDC failure.
10917
10918         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
10919         applying a devmode.
10920
10921         * redisplay-msw.c (get_frame_dc): Added start_page_p.
10922         (mswindows_text_width): Do not start printer page.
10923
10924         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
10925
10926         * glyphs-msw.c: Added image methods to msprinter console and
10927         msprinter-specific image instantiation.
10928
10929 2000-02-20  Mike Alexander  <mta@arbortext.com>
10930
10931         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
10932         to avoid crashes when selection-sets-clipboard is on
10933         (mswindows_own_selection): ditto
10934
10935 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10936
10937         * glyphs-msw.c:
10938         * redisplay-msw.c (get_frame_dc):
10939         (get_frame_compdc):
10940         * console-msw.h:
10941         * device-msw.c (mswindows_init_device):
10942         (mswindows_delete_device):
10943         (msprinter_init_device):
10944         (msprinter_delete_device):
10945         * frame-msw.c (mswindows_init_frame_1):
10946         (mswindows_delete_frame):
10947         (msprinter_init_frame_3):
10948         (msprinter_delete_frame): Move compatible DC to device object from
10949         frame object, for both mswindows and msprinter. Only one at a time
10950         is needed, it is a real waste to have one per frame!
10951
10952 2000-02-23  Andy Piper  <andy@xemacs.org>
10953
10954         * glyphs.c: add dynamic width and height elements.
10955         (image_instance_equal): ditto.
10956
10957         * glyphs-widget.c (widget_query_geometry): calculate width and
10958         height dynamically if required.
10959         (initialize_widget_image_instance): initialize dynamic dimensions.
10960         (widget_instantiate): pick-up dynamic dimensions.
10961
10962         * glyphs.h (struct Lisp_Image_Instance): add width and height for
10963         dynamic determination. Add appropriate macros.
10964
10965         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
10966         dimensions safe.
10967         (WINDOW_GUTTER_SIZE): ditto.
10968         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
10969
10970         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
10971         inline.
10972         (get_frame_dc): ditto.
10973
10974         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
10975         here.
10976
10977 2000-02-23  Martin Buchholz <martin@xemacs.org>
10978
10979         * XEmacs 21.2.31 is released.
10980
10981 2000-02-22  Ben Wing <ben@xemacs.org>
10982
10983         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
10984
10985 2000-02-22  Andy Piper  <andy@xemacs.org>
10986
10987         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
10988
10989 2000-02-21  Mike Sperber <mike@xemacs.org>
10990
10991         * .dbxrc:
10992         * .gdbinit:
10993         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
10994         variables.
10995
10996 2000-02-21  Mike Sperber <mike@xemacs.org>
10997
10998         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
10999
11000 2000-02-21  Martin Buchholz <martin@xemacs.org>
11001
11002         * XEmacs 21.2.30 is released.
11003
11004 2000-02-20  Martin Buchholz  <martin@xemacs.org>
11005
11006         Performance hacking.
11007         * *.c (syms_of_*):
11008         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
11009         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
11010         * emacs.c (main_1):
11011         * lisp.h (DEFUN):
11012         * console.c (DEFVAR_CONSOLE_LOCAL_1):
11013         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
11014         * symeval.h (DEFVAR_SYMVAL_FWD):
11015         * symbols.c (guts_of_unbound_marker):
11016         Make all c_readonly objects also lisp_readonly and marked for life.
11017         * lrecord.h (struct lrecord_implementation):
11018         Document flags better.
11019         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
11020         * lrecord.h (DECLARE_LRECORD):
11021         * lrecord.h (XSETRECORD):
11022         * lrecord.h (RECORDP):
11023         * lrecord.h (RECORD_TYPEP):
11024         * lrecord.h (RECORD_MARKER): New.
11025         * lrecord.h (error_check_*):
11026         * lrecord.h (CONCHECK_NONRECORD):
11027         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
11028         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
11029         * lrecord.h (set_lheader_implementation):
11030         * lrecord.h (enum lrecord_type): New.
11031         * symeval.h (SYMBOL_VALUE_MAGIC_P):
11032         * alloc.c (disksave_object_finalization_1):
11033         * alloc.c (mark_object):
11034         * alloc.c (lrecord_type_index):
11035         * alloc.c (tick_lcrecord_stats):
11036         * alloc.c (Fgarbage_collect):
11037         * alloc.c (init_alloc_once_early):
11038         * alloc.c (pdump_load):
11039         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
11040         * alloc.c (lrecord_type_index): Delete.
11041         Make lisp object type indexes be constant.
11042           Makes (byte-compile) 5% faster.
11043         Put all marker functions into their own array.
11044           Makes (garbage-collect) 5% faster.
11045         Optimize SYMBOL_VALUE_MAGIC_P.
11046           Makes (byte-compile) 2-3% faster.
11047         * config.h.in (gc_checking_assert): New.
11048         * alloc.c: Use gc_checking_assert().
11049         * .dbxrc: Make compatible with new object type implementation.
11050         * .gdbinit: Make compatible with new object type implementation.
11051         * alloc.c: Delete all symbols defined only for debugging, such as
11052         Lisp_Type_Vector and lrecord_charset.
11053
11054 2000-02-21  Andy Piper  <andy@xemacs.org>
11055
11056         * gui-msw.c (Fmswindows_shell_execute): fix file location
11057         problems.
11058
11059         * buffer.c (Fkill_buffer): remove buffer from alist buffer
11060         unshowing so that set_window_buffer doesn't undo
11061         kill_buffer_hook's hard work.
11062
11063         * glyphs-widget.c (tab_control_query_geometry): don't count the
11064         first item when calculating geometry.
11065
11066         * glyphs.c (map_subwindow): remove redundant code.
11067         (update_frame_subwindows): be more circumspect about when to
11068         update subwindows.
11069
11070         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
11071         when items haven't changed. Update faces if faces have changed as
11072         well as just the widget face.
11073         (x_tab_control_update): Update faces if faces have changed as well
11074         as just the widget face.
11075
11076 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11077
11078         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
11079         registration.
11080         (build_syscolor_string): Use mswindows_color_to_string to try to
11081         get a named color.
11082         (mswindows_device_system_metrics): Reverse the foreground and
11083         background colors so that they match the documentation.
11084
11085         * objects-msw.c: (mswindows_X_color_map): tweak some values so
11086         they match the default Windows palette.
11087         (mswindows_color_to_string): New function.
11088
11089 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11090
11091         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
11092
11093 2000-02-18  Olivier Galibert  <galibert@pobox.com>
11094
11095         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
11096         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
11097
11098         * symbols.c (init_symbols_once_early): Removed obsolete
11099         DATA_SEG_BITS related kludge.
11100         (defvar_magic): Ditto.
11101
11102         * malloc.c: Removed obsolete DATA_SEG_BITS
11103         * ralloc.c: Ditto.
11104         * mem-limits.h: Ditto.
11105
11106         * Makefile.in.in: Removed obsolete HAVE_SHM
11107         * emacs.c: Ditto.
11108
11109 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11110
11111         *  device-msw.c (mswindows_delete_device): Free DDE string
11112         handles.
11113
11114 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11115
11116         * keymap.c (get_keyelt):
11117         * unexnt.c (unexec):
11118         * vm-limit.c (memory_warnings):
11119         * ntheap.c (recreate_heap):
11120         * ntheap.h (UNINIT_PTR):
11121         * select-msw.c (Fmswindows_get_clipboard):
11122         (Fmswindows_set_clipboard):
11123         * objects-msw.h (MSWINDOWS_BAD_HFONT):
11124         * objects-msw.c:
11125         * menubar-msw.c (displayable_menu_item):
11126         * glyphs-msw.c:
11127         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
11128         * sysdep.c (sys_subshell):
11129         * process-nt.c (nt_create_process):
11130         * nt.c (normalize_filename):
11131         (dostounix_filename):
11132         (unixtodos_filename):
11133         * ntproc.c (win32_executable_type):
11134         * ntplay.c (play_sound_data_1):
11135         (play_sound_file):
11136         * editfns.c (get_home_directory):
11137         * event-msw.c (struct winsock_stream):
11138         (mswindows_dde_callback):
11139         * device-msw.c (msprinter_init_device):
11140         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
11141
11142         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
11143         mswindows_clear_toolbar were swapped!
11144
11145         * objects-msw.c:(colormap_t):
11146         (fontmap_t):
11147         * emacs.c (struct standard_args): Fixed const jumble.
11148
11149         * glyphs-widget.c (update_widget): Fixed comparison notation.
11150
11151         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
11152
11153         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
11154         __declspec(noreturn) syntax.
11155
11156 2000-02-19  Martin Buchholz  <martin@xemacs.org>
11157
11158         * eldap.c (Fldap_open):
11159         (Fldap_search_basic):
11160         (Fldap_add):
11161         (Fldap_modify):
11162         Use new coding system conversion macros.
11163
11164 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11165
11166         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
11167
11168 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
11169
11170         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
11171         (Fldap_add, Fldap_modify, Fldap_delete): New functions
11172
11173         * eldap.c (Qadd, Qreplace): New constant symbols
11174         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
11175         interruptions by XEmacs signals
11176         Remove unnecessary calls to slow_down_interrupts and
11177         speed_up_interrupts
11178         (Fldap_search_basic): Renamed from Fldap_search_internal
11179         Added new optional parameter VERBOSE that triggers the
11180         display of progress messages
11181         Remove unnecessary calls to slow_down_interrupts and
11182         speed_up_interrupts
11183         LDAP result code analysis rewritten
11184         (Fldap_add, Fldap_modify, Fldap_delete): New functions
11185         (syms_of_eldap): Define the new symbols and functions
11186
11187
11188 2000-02-17  Martin Buchholz  <martin@xemacs.org>
11189
11190         * realpath.c: Determine PATH_MAX maximally portably.
11191
11192         * insdel.c (bytecount_to_charcount): Optimize.
11193         The function used to be optimized for entirely ASCII sequences.
11194         Now it is optimized for successive characters from the same
11195         charset.  This also wins big for _mostly_ ASCII sequences.
11196
11197         * fileio.c (Ffile_truename): convert return from realpath() using
11198         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
11199         - Rewrite GCPROing slightly.
11200
11201         * sysdep.c (sys_open): Do filename conversion, like all other
11202         sys_* functions.  Fixes bug:
11203         (let ((file-name-coding-system 'iso-8859-2))
11204            (write-region x y latin2-name))
11205         ==> writes filename using internal encoding.
11206
11207 2000-02-18  Martin Buchholz  <martin@xemacs.org>
11208
11209         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
11210         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
11211         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
11212         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
11213         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
11214         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
11215         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
11216         (CONST_IF_NOT_DEBUG): Delete.
11217         * alloc.c (this_one_is_unmarkable): Delete.
11218         (mark_object): Don't check for this_one_is_unmarkable. Use the
11219         c_readonly flag instead.
11220         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
11221
11222 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11223
11224         * event-msw.c (mswindows_drain_windows_queue):
11225         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
11226         away redundant repaint events.
11227
11228 2000-02-17  Andy Piper  <andy@xemacs.org>
11229
11230         * redisplay.h: declare mark_redisplay_structs.
11231
11232         * redisplay.c (redisplay_window):
11233         (redisplay_frame): don't check subwindows_state_changed.
11234         (mark_redisplay): mark gutters here.
11235
11236         * glyphs.c: (instantiate_image_instantiator): always layout if we
11237         haven't done so already.
11238         (allocate_image_instance): don't mark as dirty.
11239         (update_subwindow): bind inhibit_quit.
11240
11241         * gutter.c (mark_gutters): new function.
11242
11243         * glyphs-x.c (x_update_widget): Always resize to get round a
11244         widget bug.
11245
11246         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
11247         breaking absolutely everything.
11248
11249         * gutter.h: declare mark_gutters.
11250
11251 2000-02-16  Martin Buchholz <martin@xemacs.org>
11252
11253         * XEmacs 21.2.29 is released.
11254
11255 2000-02-15  Olivier Galibert  <galibert@pobox.com>
11256
11257         * fns.c (size_bit_vector): Fix computation of the size.
11258
11259 2000-02-15  Martin Buchholz  <martin@xemacs.org>
11260
11261         * *.[ch]: Change CONST to const globally.
11262         find -name '*.[ch]' | \
11263         xargs global-replace \
11264         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
11265         - Remove vestigial references to CONST_IS_LOSING
11266
11267 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11268
11269         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
11270         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
11271         events instead of dispatching them directly.
11272         (mswindows_handle_paint): New function to do repainting.
11273         (mswindows_wnd_proc):
11274         (emacs_mswindows_handle_magic_event): Call above function.
11275
11276 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11277
11278         * objects-msw.c (mswindows_create_font_variant): Return the new
11279         font handle.
11280         (initialize_font_instance): Get font metrics from the underlined
11281         variant of the font to cope with the case where the underlined
11282         font has a bigger descent.
11283
11284 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
11285
11286         * gui.c (gui_item_accelerator): Return the first underlined
11287         character in item name.
11288
11289 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11290
11291         * lisp.h: Added Qprinter.
11292
11293         * general.c (syms_of_general): Initialized it.
11294
11295         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
11296         (get_frame_dc):
11297         (get_frame_compdc): Made inline.
11298
11299         * console.h (struct console_methods): Added eject_page method.
11300
11301         * frame.h: Added FRAME_DISPLAY_P and friends.
11302         Aligned backslahes in many macros in more readable fashion.
11303         Added page_number to struct frame, and an accessor macro
11304         for it.
11305
11306         * defice.h: Added DEVICE_DISPLAY_P and friends.
11307
11308         * device.c (Fdevice_printer_p): Used these.
11309
11310         * frame.c (allocate_frame_core): Initialize page number.
11311         (Fprint_job_page_number):
11312         (Fprint_job_eject_page): Implemented.
11313
11314         * frame-msw.c (msprinter_eject_page): Added method.
11315         (msprinter_start_page): Added.
11316
11317         * window.c (Fwindow_truncated_p): Fixed docstring.
11318         (Fwindow_last_line_visible_height): Implemented.
11319
11320 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
11321
11322         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
11323
11324 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11325
11326         * syntax.c (scan_words): Always advance at least one character.
11327
11328 2000-02-13  Andy Piper  <andy@xemacs.org>
11329
11330         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
11331         to make sure the glyph is in the cachels.
11332
11333         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
11334         global image instance flag.
11335         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
11336         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
11337
11338         * glyphs.c (allocate_image_instance): set dirty bits correctly.
11339         (Fset_image_instance_property): mark layout as changed.
11340         (invalidate_glyph_geometry_maybe): mark layout as changed.
11341         (glyph_width): use new NEEDS_LAYOUT macro.
11342         (glyph_ascent): ditto.
11343         (glyph_descent): ditto.
11344         (glyph_height): ditto.
11345         (image_instance_layout): mark layout as clean after laying out.
11346         (update_subwindow): don't mark layout as clean here.
11347
11348         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
11349         should no longer be needed.
11350
11351         * glyphs-x.c (x_update_widget): sanitize asserts.
11352         (x_finalize_image_instance): sanitize assignment to widgets.
11353
11354         * glyphs-widget.c (widget_instantiate): don't need to clear the
11355         layout flag here.
11356
11357 2000-02-13  Martin Buchholz  <martin@xemacs.org>
11358
11359         * sysdep.c (getcwd): Use standard prototype.
11360         * sysdep.h (getcwd): Use standard prototype.
11361
11362         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
11363         (sequence, start, end).
11364         Remove redundant type checking.
11365         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
11366         view of `caller-protects') to avoid a crash where the real fix was
11367         found elsewhere.
11368
11369 2000-02-12  Martin Buchholz  <martin@xemacs.org>
11370
11371         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
11372
11373         * s/sol2.h: Remove feature macro initialization.
11374
11375         * alloc.c (alloc_lcrecord): Add more type checking assertions.
11376         (vector_hash): New.  Code from internal_hash.
11377         * lrecord.h:
11378         Fix up allocation subsystem comments.
11379
11380         * config.h.in: Add __EXTENSIONS__ for Solaris.
11381
11382         * systime.h (EMACS_GETTIMEOFDAY): New.
11383         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
11384         Remove Solaris-specific code.
11385         Use void* for the (ignored) second arg for gettimeofday().
11386
11387         * elhash.c (hash_table_hash): Implement it, finally.
11388         * elhash.c:  Use hashcode_t.
11389
11390         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
11391         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
11392
11393         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
11394         * fns.c (size_bit_vector):
11395         * alloc.c (size_vector):
11396         (make_vector_internal):
11397         (make_bit_vector_internal):
11398         (sweep_bit_vectors_1):
11399         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
11400
11401 2000-02-10  Martin Buchholz  <martin@xemacs.org>
11402
11403         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
11404         Include strings.h to avoid warnings for bzero and strcasecmp.
11405
11406 2000-02-10  Olivier Galibert  <galibert@pobox.com>
11407
11408         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
11409         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
11410
11411         * fns.c (size_bit_vector): New.  Declare bit vectors as a
11412         sequence.
11413
11414 2000-02-10  Olivier Galibert  <galibert@pobox.com>
11415
11416         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
11417         use a value field instead.
11418         (symbol_value_forward_forward): Use value field.
11419         (DEFVAR_SYMVAL_FWD): Use value field.
11420         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
11421         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
11422         (DEFVAR_CONST_INT): Ditto.
11423         (DEFVAR_BOOL): Ditto.
11424         (DEFVAR_CONST_BOOL): Ditto.
11425         (DEFVAR_INT_MAGIC): Ditto.
11426         (DEFVAR_BOOL_MAGIC): Ditto.
11427
11428         * symbols.c (guts_of_unbound_marker): Use value field.
11429         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
11430         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
11431
11432         * lisp.h: Declare dumpopaque and noninteractive1.
11433
11434         * alloc.c (dumpopaque): Added.
11435         (pdump_dump_opaquevec): Added.
11436         (pdump): Call pdump_dump_opaquevec to dump opaque data.
11437         (pdump_load): Reload opaque data.  Sync noninteractive1 with
11438         noninteractive.
11439
11440 2000-02-10  Andy Piper  <andy@xemacs.org>
11441
11442         * glyphs.c (image_instance_layout): if the size changes, mark it
11443         as such.
11444
11445         * redisplay-output.c (redisplay_output_layout): Update the
11446         subwindow here.
11447         (redisplay_output_subwindow): ditto.
11448
11449         * glyphs.c (update_subwindow): make sure we reset flags for
11450         layouts as well as everything else.
11451
11452         * glyphs-widget.c (layout_layout): don't need to set the instances
11453         dimensions here.
11454
11455 2000-02-09  Martin Buchholz  <martin@xemacs.org>
11456
11457         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
11458         not HAVE_DLOPEN, which is a lower-level thing.
11459
11460         * .cvsignore: Ignore gmon.out
11461
11462 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
11463
11464         * .cvsignore: Ignore portable dumper xemacs.dmp file
11465
11466 2000-02-09  Andy Piper  <andy@xemacs.org>
11467
11468         * redisplay-output.c (redisplay_output_layout): be more clever
11469         about when we output based on the changed flags.
11470
11471         * glyphs.h (struct image_instantiator_methods): add update_method.
11472         (struct Lisp_Image_Instance): add changed flags. Declare new
11473         macros for manipulating them.
11474
11475         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
11476         (image_instance_parent_glyph): find an image_instance's parent
11477         glyph or image_instance.
11478         (image_instance_layout): mark the size as changed.
11479         (set_image_instance_dirty_p): new function. mark an image
11480         instance, plus all of its parents, as dirty.
11481         (Fset_image_instance_property): use it.
11482         (Fglyph_animated_timeout_handler): use it.
11483         (update_subwindow): call update_widget and device methods for
11484         update_subwindow. Mark all changed flags as clean.
11485         (Fresize_subwindow): mark size as changed.
11486
11487         * glyphs-x.c (x_finalize_image_instance): try and detect gc
11488         failures.
11489         (x_update_subwindow): only resize subwindows here.
11490         (x_update_widget): new function. Update all changed properties of
11491         a widget.
11492         (x_resize_subwindow): deleted.
11493         (x_widget_set_property): deleted.
11494         (x_progress_gauge_set_property): deleted.
11495         (x_progress_gauge_update): new function. Implement recorded
11496         changes.
11497         (x_tab_control_update): ditto.
11498         (x_tab_control_set_property): deleted.
11499         (console_type_create_glyphs_x): declare new functions.
11500         (image_instantiator_format_create_glyphs_x): ditto.
11501
11502         * glyphs-widget.c (widget_set_property): mark text changed.
11503         (update_widget): new function. Update properties of a widget.
11504         (widget_instantiate): for layouts make sure we set their
11505         children's parent correctly.
11506         (tab_control_set_property): new function. Record changes that will
11507         take place under redisplay's control.
11508         (progress_gauge_set_property): ditto.
11509         (image_instantiator_progress_guage): declare new functions.
11510         (image_instantiator_tab_control): ditto.
11511
11512         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
11513         now.
11514         (mswindows_update_widget): new function. Update all properties on
11515         a widget that have changed.
11516         (mswindows_button_update): new function. Update a button's set
11517         state.
11518         (mswindows_tab_control_update): new function. Update the items in
11519         a tab.
11520         (mswindows_tab_control_set_property): deleted.
11521         (mswindows_progress_gauge_update): new function. Update the
11522         progress gauge's progress.
11523         (mswindows_widget_set_property): deleted. This is all done
11524         asynchronously now.
11525         (mswindows_progress_gauge_set_property): ditto.
11526         (console_type_create_glyphs_mswindows): declare new methods.
11527         (image_instantiator_format_create_glyphs_mswindows): ditto.
11528
11529         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
11530         (msprinter_set_frame_properties): ditto.
11531
11532         * console.h (struct console_methods): Add update_widget_method.
11533
11534 2000-02-09  Andy Piper  <andy@xemacs.org>
11535
11536         * gui-msw.c (Fmswindows_shell_execute): Make
11537         mswindows-shell-execute industrial strength.
11538
11539 2000-02-08  Martin Buchholz  <martin@xemacs.org>
11540
11541         * lrecord.h: Make macro argument `props' match member function `plist'.
11542         * fns.c (Fget):
11543         * fns.c (Fput):
11544         * fns.c (Fremprop):
11545         * fns.c (Fobject_plist):
11546         * alloc.c:
11547         * symbols.c:
11548         Object property list frobbing cleanup.
11549         - Allow any lisp object (compared with `eq'), not just symbols, as
11550           keys in object plists.
11551         - Move symbol plist frobbing into symbols.c, where it belongs.
11552         - Move string plist frobbing into alloc.c, where it belongs.
11553         - Everything's an lrecord now, so no need to test for symbolp, etc.
11554         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
11555
11556         * extents.c: Reorder code to remove declarations.
11557
11558         * frame.h (store_in_alist): Remove useless declaration.
11559
11560 2000-02-07  Martin Buchholz  <martin@xemacs.org>
11561
11562         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
11563         * config.h.in: Add HAVE_XCONVERTCASE.
11564
11565 2000-02-07  Andy Piper  <andy@xemacs.org>
11566
11567         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
11568         it breaks many things.
11569
11570 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
11571
11572         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
11573         actually can start a common comment type.
11574         * src/syntax.h (SYNTAX_END_P): ditto for end.
11575
11576 2000-02-07  Martin Buchholz <martin@xemacs.org>
11577
11578         * XEmacs 21.2.28 is released.
11579
11580 2000-02-06  Martin Buchholz  <martin@xemacs.org>
11581
11582         * event-Xt.c (x_keysym_to_character): New.
11583         (maybe_define_x_key_as_self_inserting_character): New.
11584         (x_has_keysym): New.
11585         Auto-define all keys on the keyboard as self-insert-key.
11586
11587 2000-02-02  Martin Buchholz  <martin@xemacs.org>
11588
11589         * menubar.c (vars_of_menubar): A small code simplification.
11590
11591         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
11592
11593         * ExternalShell.c:
11594         * ExternalClient.c:
11595         * EmacsShell-sub.c:
11596         * EmacsManager.c:
11597         * EmacsFrame.c:
11598         Use consistent style for specifying X resources.
11599
11600         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
11601         This makes (dontusethis-set-symbol-value-handler) actually usable.
11602
11603         * lrecord.h (lrecord_decription_type):
11604         * alloc.c (pdump_register_sub):
11605         (pdump_dump_data):
11606         (pdump_reloc_one):
11607         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
11608         Comply with XEmacs coding style.
11609         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
11610         args, and XD_LISP_OBJECT_ARRAY with 3 args.
11611
11612         * keymap.c (Faccessible_keymaps):
11613         Make (accessible-keymaps map "\C-h") do the Right Thing.
11614         Make (accessible-keymaps map []) do the Right Thing.
11615         Make (accessible-keymaps map "") do the Right Thing.
11616         (check_keymap_definition_loop): New function.
11617         (keymap_store_internal): Keep luser from shooting self in foot,
11618           via (define-key ctl-x-4-map "p" global-map).
11619         Remove fullness slot from struct Lisp_Keymap, since hash tables
11620         are now reliable.
11621         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
11622
11623 2000-01-30  Martin Buchholz  <martin@xemacs.org>
11624
11625         * redisplay.c (init_redisplay): Fix small memory leak.
11626         * elhash.h:
11627         * elhash.c (pdump_reorganize_hash_table):
11628         Rename from reorganize_hash_table. Change prototype.
11629         Reuse the original memory for hentries.  Save 100k.
11630         * alloc.c (PDUMP_READ): new macro.
11631         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
11632         * alloc.c: No need to #ifndef before #undef.
11633
11634         * print.c: Allow debug_print() to print readably by modifying
11635         debug_print_readably.  Use consistent variable names.
11636
11637         * .dbxrc: Try to get things to work even if stopped in a function
11638         without source available by explicitly specifying source files.
11639 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11640
11641         * unexnt.c (_start): Removed bogus code which caused loading heap
11642         from differrent executable file.
11643         Removed bogus assignment to _fmode, which caused inconsistencies.
11644
11645 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11646
11647         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
11648         Have spawnve encapsulation regard DONT_ENCAPSULATE.
11649         Do not preliminary `#define signal sigset'.
11650
11651         * systime.h: Do not prototype environ on windows nt and cygwin,
11652         this conflicts with system header.
11653
11654         * syssignal.h: Use correct define for WINDOWSNT
11655
11656         * sysdep.h: Do not prototype environ on windows nt, this conflicts
11657         with system header.
11658
11659         * sysdep.c (near start of file): Fixed commentary and rearranged
11660         ifdefs in readable order.
11661         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
11662         (start_of_text):
11663         (end_of_text):
11664         (end_of_data): Do not compile in if using PDUMP.
11665
11666         * symsinit.h: Prototyped vars_of_nt().
11667
11668         * ntproc.c (windows9x_p): Added, instead of os_subtype.
11669         (find_child_console): Use it.
11670         (sys_kill): Use it.
11671
11672         * ntheap.h: Do not extern os_subtype.
11673
11674         * ntheap.c (cache_system_info): Do not cache unneeded:
11675         nt_major_version, nt_minor_version and os_subtype.
11676         (recreate_heap): Do not compile in when PDUMPing.
11677
11678         * nt.c (geteuid and friends): Use the new varibale
11679         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
11680         (init_user_info): Removed the above mentioned hackery.
11681         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
11682         stat has been fixed in the C runtime.
11683         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
11684
11685         * file-coding.c (struct file_coding_dump): Do not define
11686         ucs_to_mule_table in the struct if not MULE.
11687         (struct struct lrecord_description fcd_description_1): Do not dump
11688         the above.
11689
11690         * emacs.c (main_1): Call vars_of_nt().
11691         (right before Fdump_emacs_data): Don't need lastfile if using both
11692         portabe dumper and system malloc.
11693
11694         * alloc.c (Fmemory_limit): Conditionalized out.
11695         (pdump): Use OPEN_BINARY for the portable dump file.
11696         (pdump_load): Ditto.
11697
11698 2000-02-02  Mike Alexander  <mta@arbortext.com>
11699
11700         * nt.c (convert_time): Set tm_isdst before calling mktime and
11701         avoid calling it at all if the compiler supports 64 bit integers.
11702         Also initialize utc_base_ft before using it.
11703
11704 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
11705
11706         * frame.c (change_frame_size_1): Take f->internal_border_width
11707         into consideration when calculating the width of the frame.
11708
11709 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11710
11711         * window.c (frame_min_height):
11712         (frame_size_valid_p):
11713         (frame_pixsize_valid_p): Added.
11714         (check_frame_size): Generalized.
11715
11716         * window.h: Prototyped the above.
11717
11718         * lisp.h:
11719         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
11720         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
11721         Deleted Vwin32_* and Vbinary_process_* unused variables.
11722
11723         * device-msw.c (msprinter_init_device): Do not get printer font
11724         list; Added DEVMODE functions.
11725
11726         * frame-msw.c: Added lots of printer code.
11727
11728         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
11729         general.c.
11730
11731         * console-msw.h: Added more msprinter device private slots.
11732
11733 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11734
11735         * event-msw.c (key_needs_default_processing_p): Added.
11736         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
11737
11738 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11739
11740         * glyphs.c (image_instance_layout): Mark image instance as clean
11741         after layout.
11742         (glyph_dirty_p): Removed redundant function.
11743         (invalidate_glyph_geometry_maybe): Added.
11744         (update_glyph_cachel_data): Call it.
11745
11746         * glyphs.h: Prototyped it.
11747
11748         * redisplay.c (add_glyph_rune): Call it.
11749         (redisplay_window): Reset glyphs cachels when frame faces have
11750         changed, thus forcing recomputation of built-in border glyphs.
11751
11752 2000-01-30  Martin Buchholz  <martin@xemacs.org>
11753
11754         * Makefile.in.in: Make portable dumper and purify play well together.
11755         Add imperfect, but better than nothing, support for pdump.
11756         Remove xemacs.dmp when temacs is re-generated.
11757         Don't ignore errors when dumping xemacs.
11758
11759         * symbols.c (maybe_call_magic_handler): Remove one magic number.
11760
11761 2000-01-28  Andy Piper  <andy@xemacs.org>
11762
11763         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
11764         (setup_normal_frame): ditto.
11765         (setup_frame_without_minibuffer): ditto.
11766         (setup_minibuffer_frame): ditto.
11767         (delete_frame_internal): ditto.
11768         (Fmake_frame_invisible): ditto.
11769         (Ficonify_frame): ditto.
11770
11771         * window.h: change Fset_window_buffer signature.
11772
11773         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
11774         (Fset_window_buffer): allow recording of buffer if the window is
11775         the selected window.
11776         (window_loop): Use new Fset_window signature.
11777
11778 2000-01-23  Daniel Pittman  <daniel@danann.net>
11779
11780         * config.h.in: Added template for `HAVE_ATHENA_3D'
11781
11782 2000-01-29  Andy Piper  <andy@xemacs.org>
11783
11784         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
11785
11786         * gutter.c (output_gutter): Don't output if the window isn't live.
11787
11788 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11789
11790         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
11791         of 01/12/00: Moved SetFocus back here where it belongs.
11792
11793 2000-01-23  Andy Piper  <andy@xemacs.org>
11794
11795         * s/cygwin32.h: declare printer things.
11796
11797 2000-01-26  Andy Piper  <andy@xemacs.org>
11798
11799         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
11800         Alexander.
11801
11802 2000-01-24  Andy Piper  <andy@xemacs.org>
11803
11804         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
11805         (mswindows_button_instantiate): Make sure glyph is a pixmap.
11806
11807         * glyphs-widget.c (widget_instantiate): Avoid shadows.
11808
11809         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
11810
11811         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
11812
11813         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
11814         (mswindows_output_display_block): Avoid local shadows.
11815
11816         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
11817         (mswindows_enqueue_mouse_button_event): ditto.
11818         (mswindows_handle_gui_wm_command): remove declaration.
11819
11820         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
11821         warnings.
11822
11823         * console-msw.h: Avoid shadows.
11824         (mswindows_get_toolbar_button_text):
11825         (emacs_mswindows_create_stream_pair):
11826         (emacs_mswindows_delete_stream_pair):
11827         (mswindows_handle_toolbar_wm_command): declare.
11828
11829         * device-msw.c (build_syscolor_string): Avoid shadows.
11830
11831 2000-01-23  Andy Piper  <andy@xemacs.org>
11832
11833         * glyphs-widget.c (widget_instantiate): reverse the items for
11834         layouts so that children are in the expected order.
11835
11836 2000-01-28  Martin Buchholz  <martin@xemacs.org>
11837
11838         * ralloc.c: safe_bcopy ==> memmove
11839         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
11840         * s/msdos.h: Remove BCOPY macros.
11841         * insdel.c (gap_right): Remove BCOPY conditional code.
11842         * insdel.c (gap_left): Remove BCOPY conditional code.
11843         XEmacs demands a working ANSI C compiler - hence memmove.
11844
11845         * regex.c (regex_compile): Remove accidental use of trigraphs.
11846
11847 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11848
11849         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
11850         event timestamp.
11851
11852 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11853
11854         * event-msw.c (mswindows_drain_windows_queue): Added the
11855         parameter.
11856         (mswindows_need_event): Commented the call to
11857         mswindows_drain_windows_queue().
11858         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
11859         only.
11860
11861         * console-msw.h: Moved a few function prototypes here from
11862         event-msw.c.
11863
11864         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
11865         parameter from unsigned short to unsigned long.
11866         (Fmswindows_shell_execute): Added return value.
11867
11868 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
11869
11870         * sysdep.c (init_system_name):
11871           process-unix.c (unix_canonicalized_host_name):
11872         Don't call freeaddrinfo() if getaddrinfo() fails.
11873
11874         * process-unix.c (unix_open_unix_network_stream):
11875         Moved the code to get a port # into address loop.
11876
11877 2000-01-27  Martin Buchholz  <martin@xemacs.org>
11878
11879         * buffer.c (reinit_vars_of_buffer):
11880         The right place to initialize conversion_in_dynarr and
11881         conversion_out_dynarr.
11882
11883         * alloc.c (pdump): Use the real open() till sys_open() is functional.
11884
11885         * process-unix.c (unix_canonicalize_host_name): Muleize.
11886         (unix_open_network_stream): Muleize.
11887
11888         * buffer.h: Fix up prototypes for ralloc.c functions.
11889
11890 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
11891         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
11892         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
11893                 instead of gethostbyname()
11894         * process-unix.c: In unix_canonicalize_host_name() and
11895                 unix_open_network_stream(), add code to use getaddrinfo()
11896                 instead of gethostbyname().
11897
11898 2000-01-27  Daniel Pittman <daniel@danann.net>
11899
11900         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
11901         libs when built with flat Athena.
11902
11903 2000-01-27  Martin Buchholz  <martin@xemacs.org>
11904
11905         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
11906         Use coding standards for function prototypes.
11907
11908 2000-01-25  Martin Buchholz  <martin@xemacs.org>
11909
11910         * dialog-msw.c (push_lisp_string_as_unicode):
11911         * doc.c (unparesseuxify_doc_string):
11912         * dired.c (Fuser_name_completion_1):
11913         * dired.c (Fuser_name_all_completions):
11914         * dired.c (free_user_cache):
11915         * dired.c (user_name_completion):
11916         * console-x.c (get_display_arg_connection):
11917         * minibuf.c (clear_echo_area_internal):
11918         * minibuf.c (echo_area_append):
11919         * eldap.c (Fldap_open):
11920         * eldap.c (Fldap_search_internal):
11921         * frame-x.c (x_set_frame_text_value):
11922         * frame-x.c (x_set_frame_properties):
11923         * frame-x.c (x_create_widgets):
11924         * redisplay-tty.c (term_get_fkeys_1):
11925         * objects-x.c (x_parse_nearest_color):
11926         * objects-x.c (x_valid_color_name_p):
11927         * objects-x.c (x_initialize_font_instance):
11928         * objects-x.c (x_list_fonts):
11929         * objects-x.c (x_find_charset_font):
11930         * tooltalk.c (Fadd_tooltalk_message_arg):
11931         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
11932         * tooltalk.c (Fadd_tooltalk_pattern_arg):
11933         * process-unix.c (unix_create_process):
11934         * ntproc.c (sys_spawnve):
11935         * sound.c (Fplay_sound_file):
11936         * sound.c (Fplay_sound):
11937         * buffer.c (init_initial_directory):
11938         * buffer.c (init_buffer):
11939         * editfns.c (init_editfns):
11940         * editfns.c (Ftemp_directory):
11941         * editfns.c (Fuser_full_name):
11942         * editfns.c (uncache_home_directory):
11943         * editfns.c (get_home_directory):
11944         * editfns.c (Fuser_home_directory):
11945         * editfns.c (Fformat_time_string):
11946         * editfns.c (Fcurrent_time_string):
11947         * gui-x.c (button_item_to_widget_value):
11948         * database.c (Fopen_database):
11949         * event-Xt.c (x_to_emacs_keysym):
11950         * event-Xt.c (x_event_to_emacs_event):
11951         * event-Xt.c (describe_event_window):
11952         * event-msw.c (mswindows_wnd_proc):
11953         * glyphs-eimage.c (jpeg_instantiate):
11954         * glyphs-eimage.c (gif_instantiate):
11955         * glyphs-eimage.c (png_instantiate):
11956         * glyphs-eimage.c (tiff_instantiate):
11957         * glyphs-x.c (xbm_instantiate_1):
11958         * glyphs-x.c (x_xbm_instantiate):
11959         * glyphs-x.c (x_xface_instantiate):
11960         * glyphs-x.c (autodetect_instantiate):
11961         * glyphs-x.c (cursor_font_instantiate):
11962         * glyphs-x.c (x_widget_instantiate):
11963         * glyphs-x.c (x_widget_set_property):
11964         * glyphs-x.c (x_widget_property):
11965         * glyphs-x.c (BUILD_GLYPH_INST):
11966         * print.c (write_string_to_stdio_stream):
11967         * print.c (output_string):
11968         * print.c (Falternate_debugging_output):
11969         * print.c (Fexternal_debugging_output):
11970         * glyphs-msw.c (extract_xpm_color_names):
11971         * glyphs-msw.c (mswindows_xpm_instantiate):
11972         * glyphs-msw.c (bmp_instantiate):
11973         * glyphs-msw.c (resource_name_to_resource):
11974         * glyphs-msw.c (mswindows_resource_instantiate):
11975         * glyphs-msw.c (xbm_instantiate_1):
11976         * glyphs-msw.c (mswindows_xbm_instantiate):
11977         * glyphs-msw.c (mswindows_xface_instantiate):
11978         * glyphs-msw.c (mswindows_widget_instantiate):
11979         * glyphs-msw.c (add_tree_item):
11980         * glyphs-msw.c (add_tab_item):
11981         * glyphs-msw.c (mswindows_combo_box_instantiate):
11982         * glyphs-msw.c (mswindows_widget_property):
11983         * glyphs-msw.c (mswindows_combo_box_property):
11984         * glyphs-msw.c (mswindows_widget_set_property):
11985         * console.c (stuff_buffered_input):
11986         * objects-msw.c (mswindows_initialize_color_instance):
11987         * objects-msw.c (mswindows_valid_color_name_p):
11988         * objects-msw.c (mswindows_list_fonts):
11989         * objects-msw.c (mswindows_font_instance_truename):
11990         * bytecode.c (optimize_compiled_function):
11991         * select-x.c (symbol_to_x_atom):
11992         * select-x.c (x_atom_to_symbol):
11993         * select-x.c (hack_motif_clipboard_selection):
11994         * select-x.c (selection_data_to_lisp_data):
11995         * select-x.c (lisp_data_to_selection_data):
11996         * select-x.c (Fx_get_cutbuffer_internal):
11997         * select-x.c (Fx_store_cutbuffer_internal):
11998         * buffer.h (TO_EXTERNAL_FORMAT): New function.
11999         * buffer.h (TO_INTERNAL_FORMAT): New function.
12000         * emacs.c (make_arg_list_1):
12001         * emacs.c (make_argc_argv):
12002         * emacs.c (main_1):
12003         * emacs.c (Fdump_emacs):
12004         * emacs.c (split_string_by_emchar_1):
12005         * file-coding.h:
12006         * lisp.h:
12007         * lstream.h:
12008         * symsinit.h:
12009         * device-x.c (x_init_device):
12010         * device-x.c (Fx_valid_keysym_name_p):
12011         * device-x.c (Fx_get_font_path):
12012         * device-x.c (Fx_set_font_path):
12013         * glyphs.c (bitmap_to_lisp_data):
12014         * glyphs.c (pixmap_to_lisp_data):
12015         * alloc.c (make_ext_string): Use coding system arguments.  Update
12016         all callers.
12017         * alloc.c (build_string):
12018         * callproc.c (child_setup):
12019         * callproc.c (init_callproc):
12020         * fileio.c (lisp_strerror):
12021         * fileio.c (directory_file_name):
12022         * fileio.c (Fexpand_file_name):
12023         * fileio.c (Ffile_truename):
12024         * fileio.c (Fsysnetunam):
12025         * fileio.c (Fdo_auto_save):
12026         * sysdep.c (sys_readdir):
12027         * tests.c: New file.  Allow adding C tests.
12028         Replace GET_* macros with a more comprehensible and flexible
12029         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
12030         Modify all calls.
12031         Any coding system can be used to do format conversion.
12032         Eliminate enum external_data_format.
12033         Eliminate convert_to_external_format.
12034         Eliminate convert_to_internal_format.
12035         Make sure file-name, keyboard, terminal, and ctext are always
12036         defined as coding systems or aliases.  Make
12037         file-name-coding-system, terminal-coding-system, and
12038         keyboard-coding-system magical variables that are equivalent to
12039         defining the corresponding coding system aliases.
12040
12041         * file-coding.c (Fcoding_system_canonical_name_p): New function.
12042         * file-coding.c (Fcoding_system_alias_p): New function.
12043         * file-coding.c (Fcoding_system_aliasee): New function.
12044         * file-coding.c (append_suffix_to_symbol): New function.
12045         * file-coding.c (dangling_coding_system_alias_p): New function.
12046         * file-coding.c (Ffind_coding_system):
12047         * file-coding.c (Fcopy_coding_system):
12048         * file-coding.c (encode_coding_no_conversion):
12049         * file-coding.c (syms_of_file_coding):
12050         * file-coding.c (vars_of_file_coding):
12051         Rewrite coding system alias code.
12052         Allow nested aliases, like symbolic links.
12053         Allow redefinition of coding system aliases.
12054         Prevent existence of dangling coding system aliases.
12055
12056         * dired.c (Fuser_name_completion_1):
12057         * dired.c (Fuser_name_all_completions):
12058         A crash would happen if user did QUIT in the middle of building
12059         user_name_cache.  Remove redundant code in mainline and unwind_protect.
12060
12061         * lisp.h:
12062         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
12063
12064         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
12065         an unsigned char *.  Update all callers.
12066
12067 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12068
12069         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
12070
12071 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12072
12073         * elhash.c (hentry_description): Use more portable definition.
12074         (resize_hash_table): Initialize new hentries using
12075         xnew_array_and_zero, thereby simplifying the code.
12076
12077         * mule-charset.c (make_charset): Make sure entire object is
12078         initialized, to avoid Purify warnings.
12079
12080         * alloc.c (resize_string): Fix unlikely crash with big strings.
12081
12082 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12083
12084         * realpath.c (xrealpath):
12085         Don't call getwd().
12086
12087 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12088
12089         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
12090
12091 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
12092
12093         * unexelfsgi.c (unexec): Change the way we decide which segment
12094         should be extended.
12095
12096         Assumption that .bss section should be outside the PT_LOADable
12097         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
12098         it's present) is inside the 'data' segment. This would fail the
12099         test which was used to find a segment to grow and cover new
12100         heap. Instead of this assumption, I created another one - on IRIX
12101         the segment to grow should start below .bss and it's address
12102         should extent above the end of .bss. Once this segment is
12103         identified, it's grown to accommodate the new heap and new
12104         zero-length .bss section is added at the end of .data2.
12105
12106 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12107
12108         * eval.c (Feval): Wrong number of arguments should use original
12109         function, not the indirect_function version of it.
12110
12111 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
12112
12113         * glyphs-x.c (x_button_instantiate): Don't add image if
12114         it is not a pixmap.
12115         (x_locate_pixmap_file): Call Fexpand_file_name when file name
12116         is relative.
12117
12118 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
12119
12120         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
12121         declaration.
12122         (DEFVAR_INT_MAGIC): Ditto.
12123         (DEFVAR_BOOL_MAGIC): Ditto.
12124         * glyphs.h: Reindent backslash.
12125
12126 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12127
12128         * glyphs-widget.c (layout_query_geometry):
12129         (layout_layout): Use correct types for gheight, gwidth.
12130
12131 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12132
12133         * EmacsManager.c (QueryGeometry): Purified.
12134
12135 2000-01-23  Martin Buchholz  <martin@xemacs.org>
12136
12137         * alloc.c (make_float): Make sure entire object is initialized, to
12138         avoid Purify warnings.
12139         (pdump_register_sub): Remove useless assignment.
12140         (pdump): Use xmalloc, not malloc.
12141         (pdump_load): Use xmalloc, not malloc.
12142
12143 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12144
12145         * callproc.c:
12146         * dired-msw.c:
12147         * fileio.c:
12148         * process-nt.c:
12149         * redisplay-msw.c:
12150         * sysdep.c: Removed redundant #include <windows.h>
12151
12152 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12153
12154         * frame.c (delete_frame_internal): Do not delete device when its
12155         implementation so declares.
12156         (delete_frame_internal): Set device selected frame to nil when
12157         last frame goes away.
12158
12159         * device-msw.c (msprinter_device_system_metrics): Implemented.
12160         (mswindows_device_system_metrics): Added 'device-dpi property.
12161
12162         * device.c: (Fdevice_printer_p): Added.
12163         Added 'offset-workspace device metric.
12164
12165         * console.h (device_metrics): Declared DM_offset_workspace.
12166
12167 2000-01-23  Martin Buchholz  <martin@xemacs.org>
12168
12169         * fileio.c (Ffile_truename): Remove pointless and confusing
12170         initialization of elen.
12171
12172         * glyphs-widget.c: Compiler warning fixes.
12173
12174 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
12175
12176         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
12177         instead of a Lisp_Object as argument to make it consistent with
12178         the other LIVE_P macros.
12179         (CHECK_LIVE_PROCESS): New macro.
12180
12181         * process.c: Declare Qprocess_live_p.
12182         (Fprocess_live_p): New function.
12183         (create_process): Use PROCESS_LIVE_P.
12184         (read_process_output): Ditto.
12185         (set_process_filter): Ditto.
12186         (Fdelete_process): Ditto.
12187         (kill_buffer_processes): Ditto
12188         (process_send_signal): Use CHECK_LIVE_PROCESS.
12189         (Fprocess_input_coding_system): Check whether process is still
12190         alive (fix PR#1061).
12191         (Fprocess_output_coding_system): Ditto.
12192         (Fprocess_coding_system): Ditto.
12193         (Fset_process_input_coding_system): Ditto.
12194         (Fset_process_output_coding_system): Ditto.
12195
12196 2000-01-23  Andy Piper  <andy@xemacs.org>
12197
12198         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
12199         layout and widget.
12200
12201         * glyphs.c (mark_image_instance): take into account changed
12202         image_instance format.
12203         (image_instance_equal): ditto.
12204         (image_instance_hash): ditto.
12205
12206         * glyphs-widget.c (widget_instantiate): Incorporate layout
12207         instantiation here. Delay layout of the layout until later.
12208         (layout_instantiate): deleted.
12209         (layout_query_geometry): new function. get the geometry of a
12210         layout.
12211         (layout_layout): layout a layout dynamically.
12212         (image_instantiator_widget): New function - splitting up
12213         image_instantiator_format_create_glyphs_widget for netwinder
12214         compilation.
12215         (image_instantiator_buttons):
12216         (image_instantiator_edit_fields):
12217         (image_instantiator_combo_box):
12218         (image_instantiator_scrollbar):
12219         (image_instantiator_progress_guage):
12220         (image_instantiator_tree_view):
12221         (image_instantiator_tab_control):
12222         (image_instantiator_labels):
12223         (image_instantiator_layout): ditto.
12224         (image_instantiator_format_create_glyphs_widget): Call preceding
12225         functions.
12226
12227 2000-01-22  Martin Buchholz  <martin@xemacs.org>
12228
12229         * process.c (Fset_process_coding_system):
12230         * device-x.c (Fx_keysym_hash_table):
12231         Docstring fixes.
12232
12233         * lstream.c (Lstream_write): Return documented value, not 0.
12234
12235         * fileio.c (directory_file_name):
12236         (Fsubstitute_in_file_name):
12237         (Fsubstitute_insert_file_contents_internal):
12238         (Fwrite_region_internal):
12239         * emacs.c:
12240         * sysdep.c:
12241         * getloadavg.c:
12242         * systty.h:
12243         Remove vestigial APOLLO-conditional code.
12244
12245 2000-01-21  Martin Buchholz  <martin@xemacs.org>
12246
12247         * getpagesize.h: Add guard macros.
12248         * libsst.h: Add guard macros.
12249         * libst.h: Add guard macros.
12250         * line-number.h: Add guard macros.
12251         * ndir.h: Add guard macros.
12252         * sysfloat.h: Add guard macros.
12253         * sysfile.h: Add guard macros.
12254         * sysproc.h: Add guard macros.
12255         * syswait.h: Add guard macros.
12256         * xintrinsic.h: Add guard macros.
12257         * xintrinsicp.h: Add guard macros.
12258         * xmmanager.h: Add guard macros.
12259         * xmmanagerp.h: Add guard macros.
12260         * xmprimitive.h: Add guard macros.
12261         * xmu.h: Add guard macros.
12262         * gpmevent.h: Add copyright statement. Add guard macros.
12263         * miscplay.h: Add guard macros.
12264         * *.h: Use consistent C-standards-approved guard macro names.
12265
12266         * opaque.c (make_opaque): Switch parameter order.
12267         * opaque.h (make_opaque): Switch parameter order.
12268         Update all callers.
12269         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
12270
12271         * config.h.in (type_checking_assert): Added.
12272         (bufpos_checking_assert): Added.
12273
12274 2000-01-21  Martin Buchholz  <martin@xemacs.org>
12275
12276         * alloc.c: Harmless pdump changes.
12277         - Use countof().
12278         - spell alignment correctly.
12279         * sysdep.c: Use countof()
12280
12281 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12282
12283         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
12284         initially_selected_for_input() console method, default to 0.
12285         (semi_canonicalize_console_connection): Try to delegate to
12286         canonicalize_console_connection if no such console method.
12287         (canonicalize_console_connection): Vice versa.
12288         (print_console): Do not print nil connection.
12289
12290         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
12291         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
12292         (XDEVIMPF_FRAMELESS_OK): Added.
12293         (CONSOLE_INHERITS_METHOD): Added.
12294
12295         * console-msw.c (mswindows_canonicalize_console_connection):
12296         Added.
12297         (mswindows_canonicalize_device_connection): Added.
12298
12299         * console-msw.h (struct msprinter_device): Added this struct and
12300         accessor macros.
12301         (mswindows_device): Made fontlist a lisp object.
12302
12303         * device.c (semi_canonicalize_device_connection):  Try to delegate
12304         to canonicalize_device_connection if no such console method.
12305         (canonicalize_device_connection): Vice versa.
12306         (print_device): Do not print nil connection.
12307
12308         * device-msw.c (mswindows_init_device): Call InitCommonControls
12309         when have widgets.
12310         (mswindows_delete_device): Removed fontlist deallocation.
12311         (mswindows_mark_device): Added.
12312
12313         * events.c (event_equal): Added abort() at unreached code.
12314         (event_hash): Ditto.
12315
12316         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
12317         fallback tags of Windows devices.
12318
12319         * general.c (syms_of_general): Initialized Qmsprinter.
12320
12321         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
12322         of fallback tags of Windows devices.
12323
12324         * lisp.h: Declared Qmsprinter.
12325
12326         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
12327         of strings.
12328         (mswindows_list_fonts): Ditto.
12329         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
12330         that it can be used by both mswindows and msprinter devices.
12331         (initialize_font_instance): Added.
12332         (mswindows_initialize_font_instance): Use it.
12333         (msprinter_initialize_font_instance): Added.
12334
12335         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
12336         and implementation flags check.
12337         (redisplay_without_hooks): Changed the call to the above.
12338         (Fredraw_device): Ditto.
12339         (Fredisplay_device): Ditto.
12340
12341         * redisplay-msw.c (get_frame_dc): Implemented.
12342         (get_frame_compdc): Implemented.
12343         (many functions): Use the two functions above to get device
12344         contexts, ether for a window or a printer.
12345
12346 2000-01-21  Olivier Galibert  <galibert@pobox.com>
12347
12348         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
12349         initialization here.
12350         (init_symbols_once_early): Call it.
12351         * emacs.c (main_1): Call it.
12352         * symsinit.h: Declare it.
12353
12354 2000-01-19  Olivier Galibert  <galibert@pobox.com>
12355
12356         * alloc.c: Use a lrecord_header * in the backtrace instead of a
12357         Lisp_Object.
12358         (pdump_backtrace): Ditto.
12359         (pdump_register_object): Ditto.  Cleanup use of the pointers.
12360         (pdump_get_entry): Abort if trying to register a null pointer.
12361         (pdump_dump_data): Cleanup types when relocating.
12362         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
12363         (pdump_dump_rtables): Remove bad casts.
12364         (pdump_load): Cleanup relocation w.r.t union type.  Use a
12365         Lisp_Object instead of a EMACS_INT for the hashtable
12366         reorganization.
12367
12368 2000-01-20  Martin Buchholz  <martin@xemacs.org>
12369
12370         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
12371
12372         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
12373
12374         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
12375
12376         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
12377
12378 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12379
12380         * faces.h (FACE_STRIKETHRU_P): Added.
12381
12382         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
12383         of font variants.
12384
12385         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
12386         (mswindows_set_dc_font): New function, aware of font variants,
12387         separated from mswindows_update_dc.
12388
12389         * objects-msw.h (struct mswindows_font_instance_data): Added
12390         definition.
12391
12392         * objects-msw.c (mswindows_finalize_font_instance): Delete all
12393         cached fonts and the data structure.
12394         (mswindows_initialize_font_instance): Added creation of font data
12395         structure.
12396         (mswindows_print_font_instance): Print at least something.
12397         (mswindows_create_font_variant): Implemented.
12398         (mswindows_get_hfont): Implemented.
12399
12400 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
12401
12402         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
12403         prototyping problem with msvc.
12404
12405         * emacs.c (main_1): added syms_of_gui_mswindows() call
12406
12407         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
12408         syms_of_gui_mswindows() function
12409
12410         * symsinit.h: added the prototype for syms_of_gui_mswindows()
12411
12412 2000-01-18  Martin Buchholz <martin@xemacs.org>
12413
12414         * XEmacs 21.2.27 is released.
12415
12416 2000-01-18  Martin Buchholz  <martin@xemacs.org>
12417
12418         * glyphs-eimage.c (struct tiff_error_struct):
12419         (tiff_error_func):
12420         (tiff_warning_func):
12421         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
12422
12423         * unexmips.c:
12424         * unexhp9k3.c:
12425         * unexfreebsd.c:
12426         * unexec.c: Remove vestigial Lucid C code.
12427         * unexalpha.c:
12428         * unexaix.c:
12429         * termcap.c:
12430         * libsst.c: Ansify.
12431         Remove declarations of errno and strerror().
12432
12433         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
12434
12435         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
12436
12437 2000-01-16  Martin Buchholz  <martin@xemacs.org>
12438
12439         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
12440         Optimize.
12441
12442 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12443
12444         * md5.c:
12445         * file-coding.c:
12446         * file-coding.h:
12447         Change enum eol_type to eol_type_t.
12448
12449 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12450
12451         * gui.c (get_gui_callback): Check cons before accessing car.
12452
12453 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12454
12455         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
12456         (XSETSPECIFIER_TYPE): Ditto.
12457
12458 2000-01-17  Didier Verna  <didier@xemacs.org>
12459
12460         * redisplay.c (generate_fstring_runes): compute string size in
12461         characters, not bytes.
12462
12463 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
12464
12465         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
12466
12467 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
12468
12469         * print.c (print_error_message): Call print_prepare().
12470
12471 2000-01-14  Martin Buchholz  <martin@xemacs.org>
12472
12473         * .dbxrc: Renamed from dbxrc.
12474
12475         * events.c (event_to_character):
12476         Use `assert (foo)' instead of `if (!foo) abort()'
12477
12478         * .gdbinit (xtype): Add documentation.
12479         * .gdbinit (check-temacs): New function.
12480         * .gdbinit (check-xemacs): New function.
12481         * dbxrc (check-xemacs): New function.
12482         * dbxrc (check-xemacs): New function.
12483
12484 2000-01-14  Andy Piper  <andy@xemacs.org>
12485
12486         * glyphs-widget.c (widget_query_geometry): Make sure that we
12487         calculate default dimensions correctly.
12488
12489 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12490
12491         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
12492
12493         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
12494         pdump_wire'd variable.
12495
12496         * emacs.c: (main_1): Conditionalized calls to
12497         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
12498
12499 2000-01-13  Martin Buchholz  <martin@xemacs.org>
12500
12501         * window.c (Fset_window_configuration):
12502         * sysdep.c (_start):
12503         * input-method-motif.c (res):
12504         * event-Xt.c (Xt_process_to_emacs_event):
12505         Simple compiler warning fixes.
12506
12507         * bytecode.c (funcall_compiled_function): Use the original
12508         function symbol on the backtrace list in preference to the
12509         compiled_function object in error messages.
12510
12511 2000-01-13  Andy Piper  <andy@xemacs.org>
12512
12513         * glyphs-x.c (update_widget_face): Make sure we update the widget
12514         background as well as foreground.
12515
12516 2000-01-13  Andy Piper  <andy@xemacs.org>
12517
12518         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
12519         fields to subwindow.
12520         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
12521         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
12522         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
12523         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
12524
12525         * glyphs-widget.c (check_valid_tab_orientation): new function.
12526         (initialize_widget_image_instance): zero orientation and
12527         justification.
12528         (widget_instantiate): pick up orientation.
12529         (tab_control_query_geometry): return appropriate values for
12530         vertical tabs.
12531
12532         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
12533         appropriate creation flags for left, right and bottom tabs.
12534
12535         * s/cygwin32.h: add tab definitions.
12536
12537 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12538
12539         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
12540         frame upon hiding a subwindow.
12541         (mswindows_button_instantiate): Changed the push button style to
12542         BS_PUSHBUTTON.
12543         (mswindows_button_instantiate): Removed button BS_NOTIFY
12544         style.
12545         (mswindows_button_instantiate): Removed redundant check for
12546         a disabled gui item.
12547         (mswindows_button_instantiate): Made use of WS_TABSTOP
12548         consistent: "operable" controls (edit, button, tree, scroll) have
12549         this style, "display-only" ones (static, progress gauge) do
12550         not. This style is currently ignored by XEmacs though. Also,
12551         removed the WS_EX_CONTROLPARENT style - it is not for children,
12552         it is for their parents!
12553         (mswindows_edit_field_instantiate): Ditto.
12554         (mswindows_progress_gauge_instantiate): Ditto.
12555         (mswindows_tree_view_instantiate): Ditto.
12556         (mswindows_tab_control_instantiate): Ditto.
12557         (mswindows_scrollbar_instantiate): Ditto.
12558         (mswindows_combo_box_instantiate): Ditto.
12559         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
12560         style to the "clip" window.
12561         (mswindows_button_instantiate): Removed compilation warning by
12562         equally typing terms of the ?: operator.
12563
12564 2000-01-12  Didier Verna  <didier@xemacs.org>
12565
12566         * redisplay.c (generate_fstring_runes): new parameter holding the
12567         last modeline-format extent.
12568         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
12569         extent, fill the glyph block with it.
12570         (generate_fstring_runes): handle these parameters.
12571         (generate_formatted_string_db): ditto.
12572
12573         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
12574         glyphs'extents in the modeline.
12575
12576 1999-01-11  Mike Woolley  <mike@bulsara.com>
12577
12578         * ntheap.c: Reduced the reserved heap space from 1Gb down to
12579         256Mb, as a workaround for the non-starting problem many people
12580         have experienced.
12581
12582 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12583
12584         * console-tty.c (Fset_console_tty_output_coding_system):
12585         Force redrawing tty frame.
12586
12587 2000-01-10  Didier Verna  <didier@xemacs.org>
12588
12589         * redisplay.c (generate_fstring_runes): fix size computation bug.
12590
12591 2000-01-09  William M. Perry <wmperry@aventail.com>
12592
12593         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
12594
12595 2000-01-09  Andy Piper  <andy@xemacs.org>
12596
12597         * glyphs-msw.c: index -> i to avoid shadows.
12598         (xbm_create_bitmap_from_data): make static.
12599         (check_valid_string_or_int): deleted.
12600         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
12601
12602         * glyphs-x.c (x_update_subwindow): remove unused args.
12603
12604         * glyphs.c (glyph_image_instance): return the thing. Don't set the
12605         back pointer - this is done in allocate_image_instance.
12606         (query_string_font): return Qnil to make the compiler happy.
12607         (unmap_subwindow): set to ~0 to make the compiler happy.
12608         (glyph_query_geometry): comment out until used.
12609         (glyph_layout): ditto.
12610
12611 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
12612
12613         * insdel.c (signal_after_change): Remove extraneous unbind_to().