- Add some missing `ideographic-structure' properties.
[chise/xemacs-chise.git] / src / ChangeLog
1 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
4         (Qideograph_daikanwa_2): New variable.
5         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
6         (complex_vars_of_mule_charset): Add new coded-charset
7         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
8         `LEADING_BYTE_DAIKANWA'.
9
10         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
11         (LEADING_BYTE_DAIKANWA_1): New macro.
12         (LEADING_BYTE_DAIKANWA_2): New macro.
13         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
14
15 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
16
17         * mule-charset.c (complex_vars_of_mule_charset): Change
18         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
19         the second revised version.
20
21 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
22
23         * mule-charset.c (Vcharset_ucs_smp): New variable.
24         (Vcharset_ucs_sip): New variable.
25         (Qucs_smp): New variable.
26         (Qucs_sip): New variable.
27         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
28         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
29         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
30         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
31         `ucs-bmp'; addn new coded-charset `ucs-smp' and `ucs-sip'; change
32         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
33
34         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
35         (LEADING_BYTE_UCS_SIP): New macro.
36         (MIN_CHAR_SMP): New macro.
37         (MAX_CHAR_SMP): New macro.
38         (MIN_CHAR_SIP): New macro.
39         (MAX_CHAR_SIP): New macro.
40
41 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
42
43         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
44         utf-2000.
45
46 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
47
48         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
49         value; don't store value into `encoding_table' of `Lisp_Charset'.
50         (mark_charset): `encoding_table' was deleted.
51         (charset_description): Likewise.
52         (make_charset): Likewise.
53         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
54         `put_char_ccs_code_point'.
55
56         * chartab.h (Fput_char_attribute): New EXFUN.
57
58         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
59         is unified with normal symbol space.
60         (Fget_char_attribute): Likewise.
61         (Fput_char_attribute): Likewise; behavior of
62         `put_char_ccs_code_point' is changed.
63
64         * char-ucs.h: Include "elhash.h".
65         (Vchar_attribute_hash_table): New external variable.
66         (struct Lisp_Charset): Delete `encoding_table'.
67         (CHARSET_ENCODING_TABLE): New implementation; refer
68         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
69         `Lisp_Charset'.
70
71 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
72
73         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
74         (cs) == 0.
75
76 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
77
78         * text-coding.c (char_encode_big5): Prefer charset-g1 than
79         `chinese-big5'.
80
81 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
82
83         * chartab.c (uint8_byte_table_description): New constant.
84         (uint8-byte-table): Use `uint8_byte_table_description'.
85         (uint16_byte_table_description): New constant.
86         (uint16-byte-table): Use `uint16_byte_table_description'.
87
88 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
89
90         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
91         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
92
93 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
94
95         * mule-charset.c (Vcharset_ucs_ks): New variable.
96         (Qucs_ks): New variable.
97         (syms_of_mule_charset): Add new symbol `ucs-ks'.
98         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
99
100         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
101
102 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
103
104         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
105         (Fdecode_char): Likewise.
106
107         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
108         chartab.h.
109         (Fdefine_char): Modify for Fdecode_char.
110         (Ffind_char): Likewise.
111
112         * mule-charset.c (Fdecode_char): Add new optional argument
113         `defined-only'.
114         (Fdecode_builtin_char): Modify for `Fdecode_char'.
115
116 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
117
118         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
119         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
120         (allocate_coding_system): Initialize initial-charsets of
121         CODESYS_BIG5 in XEmacs UTF-2000.
122         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
123         CODESYS_BIG5 in XEmacs UTF-2000.
124         (decode_coding_big5): Use initial-charset-g0 and -g1 of
125         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
126
127         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
128         variables.
129         (Qideograph_hanziku_{1 .. 12}): Likewise.
130         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
131         .. 12}'.
132         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
133         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
134         `ideograph-hanziku-{1 .. 12}'.
135
136         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
137         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
138         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
139         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
140         (DECODE_DEFINED_CHAR): New inline function.
141         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
142
143 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
144
145         * mule-charset.c (Vcharset_china3_jef): Renamed from
146         `Vcharset_japanese_jef_china3'.
147         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
148         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
149         `{MIN|MAX}_CHAR_JEF_CHINA3'..
150         (syms_of_mule_charset): Rename `china3-jef' from
151         `japanese-jef-china3'.
152         (complex_vars_of_mule_charset): Likewise; rename
153         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
154
155         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
156         `LEADING_BYTE_JEF_CHINA3'.
157         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
158         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
159
160 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
161
162         * mule-charset.c (encode_builtin_char_1): Comment out special code
163         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
164
165         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
166         (MAX_CHAR_MOJIKYO_0): Comment out.
167         (MIN_CHAR_CBETA): Changed to 0x00E20000.
168         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
169         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
170         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
171
172 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
173
174         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
175         (Qideograph_cbeta): New variable.
176         (encode_builtin_char_1): Comment out special code for
177         coded-charset `mojikyo' and `japanese-jef-china3'.
178         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
179         (complex_vars_of_mule_charset): Add new coded-charset
180         `ideograph-cbeta'.
181
182         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
183         (MIN_CHAR_CBETA): New macro.
184         (MAX_CHAR_CBETA): New macro.
185
186 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
187
188         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
189         (LEADING_BYTE_JEF_CHINA3): New macro.
190         (MIN_CHAR_JEF_CHINA3): New macro.
191         (MAX_CHAR_JEF_CHINA3): Likewise.
192         (DECODE_CHAR): Fixed.
193
194 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
195
196         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
197         (Qjapanese_jef_china3): New variable.
198         (encode_builtin_char_1): Support `japanese-jef-china3'.
199         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
200         (complex_vars_of_mule_charset): Add new coded-charset
201         `japanese-jef-china3'.
202
203 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
204
205         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
206         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
207         94^4, 96^3, 96^4, 128^n and 256^n set.
208         (put_char_table): Use `XCHARSET_CELL_RANGE'.
209         (map_char_table): Likewise.
210
211 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
212
213         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
214         UTF-2000.
215
216 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
217
218         * chartab.h (get_char_id_table): New inline function.
219
220         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
221         function.
222
223 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
224
225         * chartab.h (decode_char_table_range): New prototype in XEmacs
226         UTF-2000.
227         (put_char_id_table): New inline function in XEmacs UTF-2000.
228
229         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
230         function.
231         (decode_char_table_range): Delete static declaration in XEmacs
232         UTF-2000.
233
234 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
235
236         * chartab.c (put_char_id_table): Use `put_char_table'.
237
238 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
239
240         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
241         (map_over_uint16_byte_table): Likewise.
242         (map_over_byte_table): Likewise.
243         (map_char_table): Modify for `map_over_uint8_byte_table',
244         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
245         UTF-2000.
246
247 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
248
249         * chartab.c (struct map_char_table_for_charset_arg): New
250         structure.
251         (map_char_table_for_charset_fun): New function.
252         (map_char_table): Use `map_char_table' for encoding_table of
253         `range->charset'.
254
255 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
256
257         * chartab.c (map_char_table): Check a character is found in
258         range->charset instead of non default value is defined in
259         char-table when range is CHARTAB_RANGE_ROW.
260
261 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
262
263         * chartab.c (map_char_id_table): Deleted.
264         (Fmap_char_attribute): Use `map_char_table' instead of
265         `map_char_id_table'.
266
267 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
268
269         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
270         UTF-2000.
271         (update_syntax_table): Deleted in XEmacs UTF-2000.
272
273         * syntax.c (find_defun_start): Use `syntax_table' instead of
274         `mirror_syntax_table' in XEmacs UTF-2000.
275         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
276         UTF-2000.
277         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
278         XEmacs UTF-2000.
279         (Fmatching_paren): Likewise.
280         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
281         in XEmacs UTF-2000.
282         (find_start_of_comment): Likewise.
283         (find_end_of_comment): Likewise.
284         (Fforward_comment): Likewise.
285         (scan_lists): Likewise.
286         (char_quoted): Likewise.
287         (Fbackward_prefix_chars): Likewise.
288         (scan_sexps_forward): Likewise.
289         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
290         (update_syntax_table): Likewise.
291
292         * search.c (skip_chars): Use `syntax_table' instead of
293         `mirror_syntax_table' in XEmacs UTF-2000.
294         (wordify): Likewise.
295         (Freplace_match): Likewise.
296
297         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
298         `mirror_syntax_table' in XEmacs UTF-2000.
299         (WORDCHAR_P_UNSAFE): Likewise.
300         (re_match_2_internal): Likewise.
301
302         * font-lock.c (find_context): Use `buf->syntax_table' instead of
303         `buf->mirror_syntax_table' in XEmacs UTF-2000.
304
305         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
306         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
307
308         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
309         XEmacs UTF-2000.
310
311         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
312         UTF-2000.
313         (print_char_table): Print `default_value' in XEmacs UTF-2000.
314         (char_table_description): Delete `mirror_table' in XEmacs
315         UTF-2000.
316         (fill_char_table): Don't call `update_syntax_table' in XEmacs
317         UTF-2000.
318         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
319         (Fcopy_char_table): Likewise.
320         (put_char_table): Don't call `update_syntax_table' in XEmacs
321         UTF-2000.
322
323         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
324         `buf->mirror_syntax_table' in XEmacs UTF-2000.
325         (casify_region_internal): Likewise.
326
327         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
328
329         * buffer.c (common_init_complex_vars_of_buffer): Don't use
330         `mirror_syntax_table' in XEmacs UTF-2000.
331
332         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
333         `buf->mirror_syntax_table' in XEmacs UTF-2000.
334         (Fexpand_abbrev): Likewise.
335
336 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
337
338         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
339
340 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
341
342         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
343         (map_over_uint16_byte_table): Likewise.
344         (map_over_byte_table): Likewise.
345         (get_char_id_table): Refer `cit->default_value'.
346         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
347         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
348         of character-id ranges.
349         (mark_char_table): Mark `ct->default_value'.
350         (char_table_description): Add `default_value'.
351         (fill_char_table): Use `default_value'.
352         (decode_char_table_range): Decode `nil' as
353         `CHARTAB_RANGE_DEFAULT'.
354         (get_char_id_table): Refer `cit->default_value'.
355         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
356         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
357         temporary hack; check value of char-table is bound or not.
358         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
359
360         * chartab.h (struct Lisp_Char_Table): Add new member
361         `default_value' in XEmacs UTF-2000.
362         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
363         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
364         UTF-2000.
365
366 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
367
368         * chartab.h (Lisp_Char_ID_Table): Deleted.
369
370         * chartab.c (char_table_description): Fix typo.
371         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
372         `Lisp_Char_ID_Table'.
373
374 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
375
376         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
377         `CHAR_ID_TABLE_P'.
378
379         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
380         `CHAR_ID_TABLE_P'.
381
382         * chartab.h (XCHAR_ID_TABLE): Deleted.
383         (XSETCHAR_ID_TABLE): Deleted.
384         (CHAR_ID_TABLE_P): Deleted.
385
386         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
387         `CHAR_ID_TABLE_P'.
388         (Fget_composite_char): Likewise.
389         (put_char_table): Likewise.
390         (add_char_attribute_alist_mapper): Fixed.
391         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
392         `CHAR_ID_TABLE_P'.
393         (Fget_char_attribute): Likewise.
394         (Fget_char_attribute): Likewise.
395         (Fmap_char_attribute): Likewise.
396
397         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
398         `CHAR_ID_TABLE_P'.
399         (encode_char_1): Likewise.
400
401 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
402
403         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
404         `XCHAR_ID_TABLE'.
405
406         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
407         instead of `XCHAR_ID_TABLE'.
408         (remove_char_ccs): Likewise.
409
410         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
411         `XCHAR_ID_TABLE'.
412         (Fget_composite_char): Likewise.
413         (Fchar_variants): Likewise.
414         (put_char_table): Likewise.
415         (add_char_attribute_alist_mapper): Likewise.
416         (Fchar_attribute_alist): Likewise.
417         (Fget_char_attribute): Likewise.
418         (Fput_char_attribute): Likewise.
419         (Fmap_char_attribute): Likewise.
420         (Fmap_char_attribute): Likewise.
421
422         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
423         `XCHAR_ID_TABLE'.
424         (encode_char_1): Likewise.
425
426 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
427
428         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
429         `Lisp_Char_ID_Table'.
430         (mark_char_id_table): Deleted.
431         (print_char_id_table): Likewise.
432         (char_id_table_equal): Likewise.
433         (char_id_table_hash): Likewise.
434         (char_id_table_description): Likewise.
435         (char_id_table): Likewise.
436         (make_char_id_table): Use `Fmake_char_table' and
437         `fill_char_table'.
438         (get_char_id_table): Use `Lisp_Char_Table' instead of
439         `Lisp_Char_ID_Table'.
440         (put_char_id_table): Likewise.
441         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
442         `XCHAR_ID_TABLE'.
443         (Fremove_char_attribute): Likewise.
444         (syms_of_chartab): Don't define type `char-id-table'.
445
446         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
447         (char_id_table): Likewise.
448         (GC_CHAR_ID_TABLE_P): Likewise.
449         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
450         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
451         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
452         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
453         (get_char_id_table): Use `Lisp_Char_Table' instead of
454         `Lisp_Char_ID_Table'.
455         (put_char_id_table_0): Likewise.
456         (put_char_id_table): Likewise.
457
458 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
459
460         * chartab.h: Lisp_Byte_Table related codes are moved from
461         chartab.h.
462
463         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
464
465 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
466
467         * chartab.h: Don't include "chartab.h".
468         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
469         (Lisp_Char_ID_Table): Likewise.
470         (char_id_table): Likewise.
471         (XCHAR_ID_TABLE): Likewise.
472         (XSETCHAR_ID_TABLE): Likewise.
473         (CHAR_ID_TABLE_P): Likewise.
474         (GC_CHAR_ID_TABLE_P): Likewise.
475         (get_char_id_table): Likewise.
476
477         * char-ucs.h: Include "chartab.h".
478         (struct Lisp_Char_ID_Table): Moved to chartab.h.
479         (Lisp_Char_ID_Table): Likewise.
480         (char_id_table): Likewise.
481         (XCHAR_ID_TABLE): Likewise.
482         (XSETCHAR_ID_TABLE): Likewise.
483         (CHAR_ID_TABLE_P): Likewise.
484         (GC_CHAR_ID_TABLE_P): Likewise.
485         (get_char_id_table): Likewise.
486
487 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
488
489         * chartab.c (copy_uint8_byte_table): New function.
490         (copy_uint16_byte_table): New function.
491         (copy_byte_table): New function.
492         (map_over_uint8_byte_table): Modify to avoid huge numbers of
493         characters to call.
494         (map_over_uint16_byte_table): Likewise.
495         (map_over_byte_table): Likewise.
496         (get_byte_table): Move prototype to chartab.h.
497         (put_byte_table): Likewise.
498         (put_char_id_table_0): Moved to chartab.h.
499         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
500         (char_table_entry_equal): Likewise.
501         (char_table_entry_hash): Likewise.
502         (char_table_entry_description): Likewise.
503         (char_table_entry): Likewise.
504         (make_char_table_entry): Likewise.
505         (copy_char_table_entry): Likewise.
506         (get_non_ascii_char_table_value): Likewise.
507         (map_over_charset_ascii): Likewise.
508         (map_over_charset_control_1): Likewise.
509         (map_over_charset_row): Likewise.
510         (map_over_other_charset): Likewise.
511         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
512         (print_char_table): Likewise.
513         (char_table_equal): Likewise.
514         (char_table_hash): Likewise.
515         (char_table_description): Likewise.
516         (fill_char_table): Likewise.
517         (Fcopy_char_table): Likewise.
518         (get_char_table): Likewise.
519         (Fget_range_char_table): Likewise.
520         (put_char_table): Likewise.
521         (map_char_table): Likewise.
522         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
523         UTF-2000.
524
525 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
526
527         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
528         `Vauto_fill_chars' in XEmacs UTF-2000.
529
530         * chartab.h (get_byte_table): New prototype [moved from
531         chartab.c].
532         (put_byte_table): Likewise [moved from chartab.c].
533         (put_char_id_table_0): New inline function [moved from chartab.c].
534         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
535         (Lisp_Char_Table_Entry): Likewise.
536         (char_table_entry): Likewise.
537         (XCHAR_TABLE_ENTRY): Likewise.
538         (XSETCHAR_TABLE_ENTRY): Likewise.
539         (CHAR_TABLE_ENTRYP): Likewise.
540         (CHECK_CHAR_TABLE_ENTRY): Likewise.
541         (NUM_ASCII_CHARS): Likewise.
542         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
543         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
544
545 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
546
547         * chartab.c (get_char_id_table): Change interface.
548         (put_char_id_table_0): New function.
549         (put_char_id_table): Change interface; new implementation.
550         (Fget_composite_char): Modify for interface change of
551         `get_char_id_table'.
552         (Fchar_variants): Likewise.
553         (add_char_attribute_alist_mapper): Likewise.
554         (Fchar_attribute_alist): Likewise.
555         (Fget_char_attribute): Likewise.
556         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
557         as same as character as the first argument like `put-char-table';
558         modify for interface change of `put_char_id_table'.
559         (Fremove_char_attribute): Modify for interface change of
560         `put_char_id_table'.
561
562 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
563
564         * text-coding.c: Sync up with XEmacs 21.2.41.
565         (COMPOSE_ADD_CHAR): Modify for interface change of
566         `get_char_id_table'.
567
568         * mule-charset.c (put_char_ccs_code_point): Modify for interface
569         change of `put_char_id_table'.
570         (remove_char_ccs): Likewise.
571
572         * chartab.h (put_char_id_table): Change interface.
573
574         * char-ucs.h (get_char_id_table): Change interface.
575         (charset_code_point): Modify for interface change of
576         `get_char_id_table'.
577         (encode_char_1): Likewise.
578
579 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
580
581         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
582         argument `ccs'.
583         (map_over_uint16_byte_table): Likewise.
584         (map_over_byte_table): Likewise.
585         (map_char_id_table): Add new argument `range' like
586         `map_char_table'.
587         (Fmap_char_attribute): Add new argument `range' like
588         `Fmap_char_table'.
589
590 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
591
592         * chartab.c (map_over_uint8_byte_table): Change interface of
593         mapping function to use struct chartab_range instead of Emchar.
594         (map_over_uint16_byte_table): Likewise.
595         (map_over_byte_table): Likewise.
596         (map_char_id_table): Likewise.
597         (struct slow_map_char_id_table_arg): Deleted.
598         (slow_map_char_id_table_fun): Deleted.
599         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
600         function `slow_map_char_table_fun' instead of struct
601         `slow_map_char_id_table_arg' and function
602         `slow_map_char_id_table_fun'.
603
604 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
605
606         * mule-charset.c: Move char-it-table related codes to chartab.c.
607         (Vutf_2000_version): Moved to chartab.c.
608         (Fdefine_char): Likewise.
609         (Ffind_char): Likewise.
610         (syms_of_mule_charset): Move types `uint8-byte-table',
611         `uint16-byte-table', `byte-table' and `char-id-table' to
612         chartab.c; move functions `char_attribute_list,
613         `find_char_attribute_table, `char_attribute_alist,
614         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
615         `map_char_attribute, `define_char, `find_char, `char_variants and
616         `get_composite_char to chartab.c; move symbols `=>ucs',
617         `->decomposition', `compat', `isolated', `initial', `medial',
618         `final', `vertical', `noBreak', `fraction', `super', `sub',
619         `circle', `square', `wide', `narrow', `small' and `font' to
620         chartab.c.
621         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
622         setting codes for `Vcharacter_composition_table' and
623         `Vcharacter_variant_table' to chartab.c.
624         (complex_vars_of_mule_charset): Move setting code for
625         `Vchar_attribute_hash_table' to chartab.c.
626
627         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
628         (make_char_id_table): New prototype.
629         (put_char_id_table): Likewise.
630         (Fget_char_attribute): Likewise.
631
632         * chartab.c: Move char-id-table related code from mule-charset.c.
633         (Vutf_2000_version): Moved from mule-charset.c.
634
635         * char-ucs.h (Qucs): New external variable.
636         (put_char_ccs_code_point): New prototype.
637         (remove_char_ccs): Likewise.
638
639 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
640
641         * mule-charset.c (Vcharset_ucs_jis): New variable.
642         (Qucs_jis): Likewise.
643         (syms_of_mule_charset): Add new symbol `ucs-jis'.
644         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
645
646         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
647
648 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
649
650         * mule-charset.c (map_over_uint8_byte_table): New function.
651         (map_over_uint16_byte_table): Likewise.
652         (map_over_byte_table): Likewise.
653         (map_char_id_table): Likewise.
654         (slow_map_char_id_table_fun): Likewise.
655         (Fmap_char_attribute): Likewise.
656         (syms_of_mule_charset): Add new function `map-char-attribute'.
657
658 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
659
660         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
661         (syms_of_mule_charset): Add new function `find-char'.
662
663 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
664
665         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
666         XEmacs UTF-2000.
667         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
668         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
669         XEmacs UTF-2000.
670         (complex_vars_of_mule_charset): Add new coded-charset
671         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
672         `ideograph-gt-pj-*'.
673
674         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
675
676 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
677
678         * mule-charset.c (encode_builtin_char_1): Purge codes about
679         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
680         {MIN|MAX}_CHAR_HEBREW.
681         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
682         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
683
684         * char-ucs.h (MIN_CHAR_GREEK): Purged.
685         (MAX_CHAR_GREEK): Purged.
686         (MIN_CHAR_CYRILLIC): Purged.
687         (MAX_CHAR_CYRILLIC): Purged.
688         (MIN_CHAR_HEBREW): Commented out.
689         (MAX_CHAR_HEBREW): Likewise.
690
691 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
692
693         * mule-charset.c (Qto_ucs): New variable.
694         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
695         (Fdefine_char): Likewise.
696         (syms_of_mule_charset): Add new symbol `=>ucs'.
697
698 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
699
700         * mule-charset.c (Fdecode_char): Fixed.
701
702 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
703
704         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
705         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
706         "tcvn5712-1".
707
708 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
709
710         * mule-charset.c (Vcharset_ucs_big5): New variable.
711         (Qucs_big5): Likewise.
712         (syms_of_mule_charset): Add new symbol `ucs-big5'.
713         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
714
715         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
716
717 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
718
719         * mule-charset.c (decode_builtin_char): Check Big5 code range
720         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
721
722 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
723
724         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
725         (Qchinese_gb12345): Likewise.
726         (Fdecode_builtin_char): Fixed.
727         (syms_of_mule_charset): Add `chinese-gb12345'.
728         (complex_vars_of_mule_charset): Add coded-charset
729         `chinese-gb12345'.
730
731         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
732         (LEADING_BYTE_CHINESE_GB12345): New macro.
733
734 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
735
736         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
737         and `latin-viscii-upper' for `latin-viscii'.
738
739 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
740
741         * mule-charset.c (Fdecode_builtin_char): Comment out
742         regularization code for ISO-IR GR representation.
743
744 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
745
746         * mule-charset.c (decode_builtin_char): New function; renamed from
747         `make_builtin_char'; return -1 instead of signal.
748         (Fdecode_builtin_char): Use `decode_builtin_char'.
749
750         * char-ucs.h (decode_builtin_char): New prototype; renamed from
751         `make_builtin_char'.
752         (DECODE_CHAR): Use `decode_builtin_char' instead of
753         `make_builtin_char'; use mapping table of `chinese-big5' for
754         `chinese-big5-{1,2}'.
755
756 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
757
758         * text-coding.c (char_encode_big5): New function.
759         (char_finish_big5): Likewise.
760         (reset_encoding_stream): Use `char_encode_big5' and
761         `char_finish_big5' for CODESYS_BIG5.
762         (mule_encode): Don't use `encode_coding_big5'.
763         (encode_coding_big5): Deleted.
764
765 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
766
767         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
768         0x81- in XEmacs UTF-2000.
769         (detect_coding_big5): Likewise.
770
771 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
772
773         * mule-charset.c (Fdefine_char): Don't use a CCS property to
774         generate character-id if the CCS property does not have
775         corresponding predefined character.
776         (make_builtin_char): Return -1 if corresponding predefined
777         character is not found.
778         (Fdecode_char): Return nil if corresponding character is not
779         found.
780         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
781         don't map to builtin ucs space.
782
783 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
784
785         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
786         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
787
788 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
789
790         * mule-charset.c (Vcharset_ideograph_gt): New variable.
791         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
792         (Qideograph_gt): Likewise.
793         (Qideograph_gt_pj_{1..11}): Likewise.
794         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
795         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
796         `ideograph-gt-pj-11'.
797         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
798         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
799         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
800
801         * char-ucs.h (LEADING_BYTE_GT): New macro.
802         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
803         (MIN_CHAR_GT): Likewise.
804         (MAX_CHAR_GT): Likewise.
805
806 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
807
808         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
809         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
810
811         * doprnt.c (unsigned_int_converters): Add `c'.
812         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
813
814         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
815         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
816         `MIN_CHAR_MOJIKYO'.
817         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
818         (MAX_CHAR_MOJIKYO_0): New macro.
819         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
820
821 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
822
823         * mule-charset.c (Fdefine_char): Delete cemented out code.
824         (encode_builtin_char_1): Modify for new allocation of builtin
825         Mojikyo characters.
826
827         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
828
829 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
830
831         * mule-charset.c (Vcharset_ucs_cns): New variable.
832         (Qucs_cns): New variable.
833         (syms_of_mule_charset): Add new symbol `ucs-cns'.
834         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
835
836 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
837
838         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
839
840 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
841
842         * search.c (search_buffer): Make `charset_base_code' as
843         character-id >> 6 to eliminate the corresponding last byte in
844         UTF-8 representation [I'm not sure it is right thing].
845         (boyer_moore): Likewise.
846
847 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
848
849         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
850         representation in MULE.
851
852 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
853
854         * text-coding.c (Fmake_coding_system): Use
855         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
856         `EXTERNAL_PROPERTY_LIST_LOOP'.
857
858 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
859
860         * text-coding.c (decode_output_utf8_partial_char): New function.
861         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
862
863 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
864
865         * text-coding.c (decode_coding_utf8): Output original byte
866         sequence if it is broken; change order of conditions.
867
868         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
869         of conditions.
870
871         * mb-multibyte.h (BYTE_ASCII_P):
872         Use bit ops for char-signedness safety.
873         (BYTE_C0_P): Use bit ops for char-signedness safety.
874         (BYTE_C1_P): Use bit ops for char-signedness safety.
875
876         * character.h: (XCHAR_OR_CHAR_INT):
877         Always use inline function.
878         Remove redundant type checking assert() - XINT will abort quite
879         nicely.
880
881 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
882
883         * text-coding.c: (Fencode_shift_jis_char):
884         (Fencode_big5_char):
885         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
886         Replace 0 with '\0' when working with bytes.
887         Replace initial "(" with "\(" in docstrings.
888
889         (Fmake_coding_system):
890         When type is ccl and value is vector, register it with a proper
891         symbol.  And checks whether the given ccl program is valid.
892         (mule_decode): When calling ccl_driver, if src indicates
893         NULL pointer, set an empty string instead.
894         (mule_encode): Likewise.
895
896         (detect_eol_type):
897         (detect_coding_sjis):
898         (decode_coding_sjis):
899         (detect_coding_big5):
900         (decode_coding_big5):
901         (detect_coding_ucs4):
902         (decode_coding_ucs4):
903         (detect_coding_utf8):
904         (decode_coding_utf8):
905         (detect_coding_iso2022):
906         (decode_coding_iso2022):
907         (decode_coding_no_conversion):
908         (mule_decode):
909         Make all detecting and decoding functions take an Extbyte * arg.
910         (text_encode_generic):
911         (encode_coding_big5):
912         (encode_coding_no_conversion):
913         (mule_encode):
914         Make all encoding functions take a Bufbyte * arg.
915         Use size_t instead of unsigned int for memory sizes.
916         Only cast to unsigned char whenever dereferencing Extbyte *.
917
918         (struct lrecord_description fcd_description_1): Use countof.
919         (complex_vars_of_file_coding):
920         Use countof instead of sizeof.
921         Use CHECK_NATNUM instead of CHECK_INT.
922
923 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
924
925         * mule-charset.c (Fget_char_attribute): Add new optional argument
926         `default-value'.
927         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
928         (remove_char_ccs): Likewise.
929
930 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
931
932         * text-coding.c (char_encode_shift_jis): New implementation in
933         UTF-2000.
934         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
935         ...)'.
936
937         * mule-charset.c (Vcharset_chinese_big5): New variable in
938         UTF-2000.
939         (Qchinese_big5): New variable in UTF-2000.
940         (BIG5_SAME_ROW): New macro in UTF-2000.
941         (make_builtin_char): Use builtin characters of
942         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
943         characters of `Vcharset_chinese_big5'.
944         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
945         (complex_vars_of_mule_charset): Add new coded-charset
946         `chinese-big5' in UTF-2000.
947
948         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
949         (Vcharset_chinese_big5): New external variable declaration.
950         (Vcharset_japanese_jisx0208_1990): Likewise.
951
952 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
953
954         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
955         function.
956         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
957
958 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
959
960         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
961         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
962         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
963         `mojikyo-pj-*'.
964
965 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
966
967         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
968
969 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
970
971         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
972         to 0.17.
973
974 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
975
976         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
977         for `CHARSET_BY_ATTRIBUTES'.
978         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
979         `CHARSET_BY_ATTRIBUTES'.
980
981         * text-coding.c (struct decoding_stream): Rename member `CH' to
982         `CPOS'.
983         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
984         (decode_coding_sjis): Likewise.
985         (decode_coding_big5): Likewise.
986         (decode_coding_ucs4): Likewise.
987         (decode_coding_utf8): Likewise.
988         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
989         `CHARSET_BY_ATTRIBUTES'.
990         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
991         `str->counter'; decode 3, 4 bytes sets.
992         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
993         sets.
994         (decode_coding_no_conversion): Use `str->cpos' instead of
995         `str->ch'.
996
997         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
998         (Qmojikyo_2022_1): New variable.
999         (make_charset): Don't use `CHARSET_TYPE_*'.
1000         (range_charset_code_point): Support coded-charset
1001         `mojikyo-2022-1'.
1002         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
1003         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
1004         `CHARSET_BY_ATTRIBUTES'.
1005         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
1006         `CHARSET_BY_ATTRIBUTES'.
1007         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
1008         (complex_vars_of_mule_charset): Add new coded-charset
1009         `mojikyo-2022-1'.
1010
1011         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
1012         interface; changed to inline function.
1013
1014         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
1015         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
1016         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
1017         (CHARSET_TYPE_94): Deleted.
1018         (CHARSET_TYPE_94X94): Deleted.
1019         (CHARSET_TYPE_96): Deleted.
1020         (CHARSET_TYPE_96X96): Deleted.
1021         (CHARSET_TYPE_128): Deleted.
1022         (CHARSET_TYPE_128X128): Deleted.
1023         (CHARSET_TYPE_256): Deleted.
1024         (CHARSET_TYPE_256X256): Deleted.
1025         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
1026         to inline function.
1027         (DECODE_MOJIKYO_2022): New inline function.
1028         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
1029         `Vcharset_mojikyo_2022_1'.
1030
1031 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1032
1033         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
1034         instead of `EQ'.
1035         (put_byte_table): Likewise.
1036         (char_id_table_equal): Use `get_byte_table' [new implementation].
1037
1038 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1039
1040         * mule-charset.c: Include <limits.h> in UTF-2000.
1041         (BT_UINT8_MIN): New macro in UTF-2000.
1042         (BT_UINT8_MAX): New macro in UTF-2000.
1043         (BT_UINT8_t): New macro in UTF-2000.
1044         (BT_UINT8_nil): New macro in UTF-2000.
1045         (BT_UINT8_unbound): New macro in UTF-2000.
1046         (INT_UINT8_P): New inline function in UTF-2000.
1047         (UINT8_VALUE_P): New inline function in UTF-2000.
1048         (UINT8_ENCODE): New inline function in UTF-2000.
1049         (UINT8_DECODE): New inline function in UTF-2000.
1050         (mark_uint8_byte_table): New function in UTF-2000.
1051         (print_uint8_byte_table): New function in UTF-2000.
1052         (uint8_byte_table_equal): New function in UTF-2000.
1053         (uint8_byte_table_hash): New function in UTF-2000.
1054         (make_uint8_byte_table): New function in UTF-2000.
1055         (uint8_byte_table_same_value_p): New function in UTF-2000.
1056         (BT_UINT16_MIN): New macro in UTF-2000.
1057         (BT_UINT16_MAX): New macro in UTF-2000.
1058         (BT_UINT16_t): New macro in UTF-2000.
1059         (BT_UINT16_nil): New macro in UTF-2000.
1060         (BT_UINT16_unbound): New macro in UTF-2000.
1061         (INT_UINT16_P): New inline function in UTF-2000.
1062         (UINT16_VALUE_P): New inline function in UTF-2000.
1063         (UINT16_ENCODE): New inline function in UTF-2000.
1064         (UINT16_DECODE): New inline function in UTF-2000.
1065         (UINT8_TO_UINT16): New inline function in UTF-2000.
1066         (mark_uint16_byte_table): New function in UTF-2000.
1067         (print_uint16_byte_table): New function in UTF-2000.
1068         (uint16_byte_table_equal): New function in UTF-2000.
1069         (uint16_byte_table_hash): New function in UTF-2000.
1070         (make_uint16_byte_table): New function in UTF-2000.
1071         (uint16_byte_table_same_value_p): New function in UTF-2000.
1072         (print_byte_table): New function in UTF-2000.
1073         (byte-table): Use `print_byte_table' as printer.
1074         (make_byte_table): Delete second argument `older'.
1075         (byte_table_same_value_p): New function in UTF-2000.
1076         (copy_byte_table): Deleted.
1077         (get_byte_table): New function in UTF-2000.
1078         (put_byte_table): New function in UTF-2000.
1079         (print_char_id_table): New function in UTF-2000.
1080         (char-id-table): Use `print_char_id_table' as printer.
1081         (make_char_id_table): Delete second argument `older'.
1082         (get_char_id_table): Use `get_byte_table [new implementation].
1083         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
1084         implementation].
1085         (Ffind_char_attribute_table): New function in UTF-2000.
1086         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
1087         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
1088         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
1089         (syms_of_mule_charset): Add new function
1090         `find-char-attribute-table' in UTF-2000.
1091
1092         * lrecord.h (enum lrecord_type): Add
1093         `lrecord_type_uint16_byte_table' and
1094         `lrecord_type_uint8_byte_table'.
1095
1096         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
1097         (Lisp_Uint8_Byte_Table): New type.
1098         (XUINT8_BYTE_TABLE): New macro.
1099         (XSETUINT8_BYTE_TABLE): New macro.
1100         (UINT8_BYTE_TABLE_P): New macro.
1101         (GC_UINT8_BYTE_TABLE_P): New macro.
1102         (struct Lisp_Uint16_Byte_Table): New structure.
1103         (Lisp_Uint16_Byte_Table): New type.
1104         (XUINT16_BYTE_TABLE): New macro.
1105         (XSETUINT16_BYTE_TABLE): New macro.
1106         (UINT16_BYTE_TABLE_P): New macro.
1107         (GC_UINT16_BYTE_TABLE_P): New macro.
1108
1109 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1110
1111         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
1112         (Vcharacter_ideographic_strokes_table): Deleted.
1113         (Vcharacter_total_strokes_table): Deleted.
1114         (Vcharacter_morohashi_daikanwa_table): Deleted.
1115         (Vcharacter_decomposition_table): Deleted.
1116         (Qname): Deleted because it is duplicated.
1117         (Qideographic_radical): Deleted.
1118         (Qideographic_strokes): Deleted.
1119         (Qtotal_strokes): Deleted.
1120         (Qmorohashi_daikanwa): Deleted.
1121         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
1122         `ideographic-radical', `ideographic-strokes', `total-strokes',
1123         `morohashi-daikanwa' and `->decomposition'.
1124         (Fget_char_attribute): Likewise.
1125         (Fput_char_attribute): Likewise; use `make-vector' instead of
1126         `make_older_vector' for `->decomposition' value.
1127         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
1128         `ideograph-daikanwa'.
1129         (syms_of_mule_charset): Delete builtin symbols `name',
1130         `ideographic-radical', `ideographic-strokes', `total-strokes' and
1131         `morohashi-daikanwa'.
1132         (vars_of_mule_charset): Don't setup
1133         `Vcharacter_ideographic_radical_table',
1134         `Vcharacter_ideographic_strokes_table',
1135         `Vcharacter_total_strokes_table',
1136         `Vcharacter_morohashi_daikanwa_table' and
1137         `Vcharacter_decomposition_table'.
1138
1139 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1140
1141         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
1142         `make_older_vector', `make_vector_newer_1' and
1143         `make_vector_newer'.
1144
1145         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
1146         `make_older_vector' and `make_vector_newer'.
1147
1148         * config.h.in (HAVE_GGC): New macro.
1149
1150 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1151
1152         * mule-charset.c (struct char_attribute_list_closure): New
1153         structure in UTF-2000.
1154         (add_char_attribute_to_list_mapper): New function in UTF-2000.
1155         (Fchar_attribute_list): Likewise.
1156         (Fset_charset_mapping_table): Use `make_vector_newer'.
1157         (Fdecode_builtin_char): New function in UTF-2000.
1158         (syms_of_mule_charset): Add new function `char-attribute-list' and
1159         `decode-builtin-char' in UTF-2000.
1160
1161         * lisp.h (make_vector_newer): New prototype.
1162
1163         * alloc.c (make_vector_newer_1): New function.
1164         (make_vector_newer): New function.
1165
1166 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1167
1168         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
1169         50100)'.
1170
1171 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1172
1173         * mule-charset.c (Vchar_attribute_hash_table): New variable.
1174         (Vcharacter_attribute_table): Deleted.
1175         (Vcharacter_name_table): Deleted.
1176         (put_char_attribute): Deleted.
1177         (remove_char_attribute): Deleted.
1178         (struct char_attribute_alist_closure): New structure.
1179         (add_char_attribute_alist_mapper): New function.
1180         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
1181         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
1182         (Fget_char_attribute): Likewise.
1183         (Fput_char_attribute): Likewise.
1184         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
1185         of `remove_char_attribute'.
1186         (Fdefine_char): Return character.
1187         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
1188         and `Vcharacter_name_table'.
1189         (complex_vars_of_mule_charset): Likewise
1190         `Vchar_attribute_hash_table'.
1191
1192 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1193
1194         * character.h (CHARC_CHARSET): New macro.
1195         (CHARC_CHARSET_ID): New macro.
1196         (CHARC_CODE_POINT): New macro.
1197         (CHARC_COLUMNS): New macro.
1198         (CHARC_TO_CHAR): New inline function.
1199         (CHARC_EQ): New inline function.
1200         (CHARC_ASCII_EQ): New inline function.
1201         (CHARC_IS_SPACE): New inline function.
1202         (ASCII_TO_CHARC): New inline function.
1203
1204         * char-ucs.h (encode_char_2): Deleted.
1205         (ENCODE_CHAR): Use `encode_char_1' again.
1206         (breakup_char_1): Likewise.
1207         (CHAR_TO_CHARC): New inline function.
1208
1209         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
1210
1211 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1212
1213         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
1214         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
1215         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
1216         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
1217         (create_string_text_block): Use `CHARC_ASCII_EQ' and
1218         `CHARC_IS_SPACE'.
1219         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
1220
1221         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
1222         `CHARC_CODE_POINT'.
1223         (x_output_display_block): Use `CHARC_CHARSET' and
1224         `CHARC_ASCII_EQ'.
1225
1226         * redisplay-tty.c (tty_output_display_block): Use
1227         `CHARC_ASCII_EQ'.
1228         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
1229
1230         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
1231
1232         * insdel.c (find_charsets_in_charc_string): Use
1233         `CHARC_CHARSET_ID'.
1234         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
1235         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
1236         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
1237         (convert_charc_string_into_malloced_string): Likewise.
1238
1239 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1240
1241         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
1242         instead of <Emchar_dynarr *> for buf; use
1243         `convert_bufbyte_string_into_charc_dynarr' instead of
1244         `convert_bufbyte_string_into_emchar_dynarr'; use
1245         `find_charsets_in_charc_string' instead of
1246         `find_charsets_in_emchar_string'.
1247
1248         * redisplay.h:
1249         - Include "character.h".
1250         (struct rune): New member `cglyph'; delete member `chr'.
1251
1252         * redisplay.c (redisplay_text_width_charc_string): New function;
1253         delete `redisplay_text_width_emchar_string'.
1254         (rtw_charc_dynarr): New variable; renamed from
1255         `rtw_emchar_dynarr'.
1256         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
1257         `rtw_emchar_dynarr'; use
1258         `convert_bufbyte_string_into_charc_dynarr' instead of
1259         `convert_bufbyte_string_into_emchar_dynarr'; use
1260         `redisplay_text_width_charc_string' instead of
1261         `redisplay_text_width_emchar_string'.
1262         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
1263         instead of `rtw_emchar_dynarr'; use
1264         `convert_bufbyte_string_into_charc_dynarr' instead of
1265         `convert_bufbyte_string_into_emchar_dynarr'.
1266         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
1267         `redisplay_text_width_charc_string' instead of
1268         `redisplay_text_width_emchar_string'.
1269         (create_text_block): Modify for <struct rune> change.
1270         (generate_formatted_string_db): Likewise.
1271         (create_string_text_block): Likewise.
1272         (pixel_to_glyph_translation): Likewise.
1273
1274         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
1275         instead of <const Emchar *>.
1276         (x_text_width): Likewise.
1277         (x_output_display_block): Use <Charc_dynarr *> instead
1278         <Emchar_dynarr *>; modify for <structure rune> change.
1279         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
1280         *>.
1281
1282         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
1283         <const Emchar *>; use `charc_string_displayed_columns' instead of
1284         `emchar_string_displayed_columns'.
1285         (tty_output_display_block): Use <Charc_dynarr *> instead of
1286         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
1287         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
1288         (tty_output_charc_dynarr_dynarr): New variable; renamed from
1289         `tty_output_emchar_dynarr_dynarr'.
1290         (tty_output_charc_dynarr): New function; delete
1291         `tty_output_charc_dynarr'.
1292
1293         * redisplay-output.c (compare_runes): Modify for `struct rune'.
1294         (redisplay_output_layout): Use <Charc_dynarr *> instead of
1295         <Emchar_dynarr *> for buf; use
1296         `convert_bufbyte_string_into_charc_dynarr' instead of
1297         `convert_bufbyte_string_into_emchar_dynarr'.
1298
1299         * frame.c (title_string_charc_dynarr): New variable; renamed from
1300         `title_string_emchar_dynarr'.
1301         (generate_title_string): Use `title_string_charc_dynarr' instead
1302         of `title_string_emchar_dynarr'; use
1303         `convert_charc_string_into_malloced_string' instead of
1304         `convert_emchar_string_into_malloced_string'.
1305         (init_frame): Use `title_string_charc_dynarr' instead of
1306         `title_string_emchar_dynarr'.
1307
1308         * console.h:
1309         - Include "character.h".
1310         (struct console_methods): Use <const Charc *> instead of <const
1311         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
1312         <Emchar_dynarr *> in output_string_method.
1313
1314         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
1315         <Emchar_dynarr *>.
1316
1317         * console-stream.c (stream_text_width): Use <const Charc *>
1318         instead of <const Emchar *>.
1319
1320         * character.h (Charc_dynarr): New type.
1321
1322         * char-ucs.h (structure Charc): New structure; define new type
1323         `Charc'.
1324
1325         * char-lb.h (DECODE_CHAR): New inline function.
1326         (encode_char_1): New inline function.
1327         (ENCODE_CHAR): New macro.
1328         (structure Charc): New structure; define new type `Charc'.
1329
1330         * char-1byte.h (Vcharset_control_1): New macro.
1331         (Vcharset_latin_iso8859_1): New macro.
1332         (DECODE_CHAR): New inline function.
1333         (encode_char_1): New inline function.
1334         (ENCODE_CHAR): New macro.
1335         (structure Charc): New structure; define new type `Charc'.
1336
1337         * insdel.c (find_charsets_in_charc_string): New function; delete
1338         `find_charsets_in_emchar_string'.
1339         (charc_string_displayed_columns): New function; delete
1340         `emchar_string_displayed_columns'.
1341         (convert_bufbyte_string_into_charc_dynarr): New function; delete
1342         `convert_bufbyte_string_into_emchar_dynarr'.
1343         (convert_charc_string_into_bufbyte_dynarr): New function; delete
1344         `convert_charc_string_into_bufbyte_dynarr'.
1345         (convert_charc_string_into_malloced_string): New function; delete
1346         `convert_charc_string_into_malloced_string'.
1347
1348         * buffer.h (find_charsets_in_charc_string): New prototype; delete
1349         `find_charsets_in_emchar_string'.
1350         (charc_string_displayed_columns): New prototype; delete
1351         `emchar_string_displayed_columns'.
1352         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
1353         `convert_charc_string_into_bufbyte_dynarr'.
1354         (convert_charc_string_into_malloced_string): New prototype; delete
1355         `convert_charc_string_into_malloced_string'.
1356
1357 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1358
1359         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
1360
1361 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1362
1363         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
1364
1365         * char-ucs.h: Use <short> for <Charset_ID>.
1366
1367         * mule-charset.h, char-1byte.h: Use <unsigned char> for
1368         <Charset_ID>.
1369
1370 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1371
1372         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1373         to 0.16.
1374
1375 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1376
1377         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
1378         variable.
1379         (Qmorohashi_daikanwa): New variable.
1380         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
1381         for `morohashi-daikanwa' attribute.
1382         (Fget_char_attribute): Likewise.
1383         (Fput_char_attribute): Likewise.
1384         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
1385         has the same value of `ideograph-daikanwa'.
1386         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
1387         (vars_of_mule_charset): Setup
1388         `Vcharacter_morohashi_daikanwa_table'.
1389
1390 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1391
1392         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
1393         attributes.
1394         (add_charset_to_list_mapper): Add `key' instead of
1395         `XCHARSET_NAME (value)' to return aliases.
1396
1397 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1398
1399         * mule-charset.c (Vcharacter_ideographic_radical_table): New
1400         variable.
1401         (Vcharacter_ideographic_strokes_table): New variable.
1402         (Qideographic_radical): New variable.
1403         (Qideographic_strokes): New variable.
1404         (Fchar_attribute_alist): Use
1405         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
1406         attribute; use `Vcharacter_ideographic_strokes_table' for
1407         `ideographic-strokes' attribute.
1408         (Fget_char_attribute): Likewise.
1409         (Fput_char_attribute): Likewise.
1410         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
1411         `ideographic-strokes'.
1412         (vars_of_mule_charset): Setup
1413         `Vcharacter_ideographic_radical_table' and
1414         `Vcharacter_ideographic_strokes_table'.
1415
1416 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1417
1418         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
1419         (Qtotal_strokes): New variable.
1420         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
1421         `total-strokes' attribute.
1422         (Fget_char_attribute): Likewise.
1423         (Fput_char_attribute): Likewise.
1424         (syms_of_mule_charset): Add new symbol `total-strokes'.
1425         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
1426
1427 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1428
1429         * mule-charset.c (Vcharacter_decomposition_table): New variable.
1430         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
1431         are found.
1432         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
1433         `->decomposition' attribute.
1434         (Fput_char_attribute): Likewise.
1435         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
1436
1437 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1438
1439         * mule-charset.c (decoding_table_check_elements): New function.
1440         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
1441
1442 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1443
1444         * mule-charset.c (Fset_charset_mapping_table): Use
1445         `put_char_ccs_code_point'.
1446
1447 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1448
1449         * mule-charset.c (decoding_table_put_char): New inline function.
1450         (put_char_ccs_code_point): Use `decoding_table_put_char'.
1451
1452 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1453
1454         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
1455         (XCHARSET_BYTE_SIZE): New macro.
1456         (decoding_table_remove_char): New inline function.
1457         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
1458         `decoding_table_remove_char'.
1459         (remove_char_ccs): Use `decoding_table_remove_char'.
1460         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
1461
1462 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1463
1464         * mule-charset.c (Vcharacter_name_table): New variable.
1465         (Qname): New variable.
1466         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
1467         attribute.
1468         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
1469         `Vcharacter_name_table' for `name' attribute.
1470         (Fremove_char_attribute): Use function `remove_char_ccs'.
1471         (put_char_ccs_code_point): New function.
1472         (remove_char_ccs): New function.
1473         (syms_of_mule_charset): Add new symbol `name'.
1474         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
1475
1476 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1477
1478         * mule-charset.c (make_byte_table): Add new argument `older'.
1479         (make_char_id_table): Likewise.
1480         (copy_char_id_table): Comment out because it is not used.
1481         (put_char_id_table): Modify for `make_byte_table'.
1482         (Fput_char_attribute): Make encoding_table as older object;
1483         inherit older bit of `Vcharacter_composition_table'.
1484         (mark_charset): Don't mark `cs->encoding_table'.
1485         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
1486         normal object; make `Vcharacter_composition_table' as an older
1487         object; delete staticpro for `Vcharacter_composition_table'; make
1488         `Vcharacter_variant_table' as a normal object.
1489
1490         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
1491         (mark_object): Don't check older object in UTF-2000.
1492
1493         * lrecord.h (struct lrecord_header): Add new member `older' in
1494         UTF-2000.
1495         (set_lheader_implementation): Setup `SLI_header->older' in
1496         UTF-2000.
1497         (set_lheader_older_implementation): New macro in UTF-2000.
1498         (OLDER_RECORD_P): New macro in UTF-2000.
1499         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
1500         (alloc_older_lcrecord): New prototype in UTF-2000.
1501         (alloc_older_lcrecord_type): New macro in UTF-2000.
1502
1503 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1504
1505         * mule-charset.c (byte_table_description): Use
1506         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
1507         (char_id_table_description): Delete bogus `, 1'.
1508         (Fget_char_attribute): Refer encoding_table of each coded-charset
1509         to get value of coded-charset attribute of a character.
1510         (Fput_char_attribute): Use `make_older_vector' instead of
1511         `make_vector'; use encoding_table of each coded-charset to store
1512         value of coded-charset attribute of a character.
1513         (Fremove_char_attribute): Use encoding_table of each coded-charset
1514         to store value of coded-charset attribute of a character.
1515         (mark_charset): Mark `cs->encoding_table'; don't mark
1516         `cs->decoding_table'.
1517         (charset_description): Add description of new member
1518         `encoding_table'.
1519         (make_charset): Initialize `encoding_table'.
1520
1521         * char-ucs.h (struct Lisp_Charset): Add new member
1522         `encoding_table'.
1523         (CHARSET_ENCODING_TABLE): New macro.
1524         (XCHARSET_ENCODING_TABLE): New macro.
1525         (charset_code_point): New implementation.
1526         (encode_char_1): Likewise.
1527
1528         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
1529         (disksave_object_finalization_1): Call finalizers of
1530         `all_older_lcrecords' in UTF-2000.
1531         (make_older_vector): New function in UTF-2000.
1532         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
1533         UTF-2000.
1534
1535         * lisp.h (make_older_vector): New prototype in UTF-2000.
1536
1537 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1538
1539         * lrecord.h (enum lrecord_type): Rename
1540         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
1541
1542         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
1543         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
1544         `get_char_code_table'.
1545
1546         * mule-charset.c (mark_char_id_table): Renamed from
1547         `mark_char_code_table'.
1548         (char_id_table_equal): Renamed from `char_code_table_equal'.
1549         (char_id_table_hash): Renamed from `char_code_table_hash'.
1550         (make_char_id_table): Renamed from `make_char_code_table'.
1551         (copy_char_id_table): Renamed from `copy_char_code_table'.
1552         (get_char_id_table): Renamed from `get_char_code_table'.
1553         (put_char_id_table): Renamed from `put_char_code_table'.
1554         (to_char_id): Renamed from `to_char_code'.
1555
1556         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
1557         `Lisp_Char_Code_Table'.
1558         (char_id_table): Renamed from `char_code_table'.
1559         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
1560         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
1561         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
1562         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
1563         (get_char_id_table): Renamed from `get_char_code_table'.
1564
1565 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1566
1567         * lrecord.h (enum lrecord_type): Rename
1568         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
1569
1570         * mule-charset.c (mark_byte_table): Renamed from
1571         `mark_char_byte_table'.
1572         (byte_table_equal): Renamed from `char_byte_table_equal'.
1573         (byte_table_hash): Renamed from `byte_table_hash'.
1574         (make_byte_table): Renamed from `make_byte_table'.
1575         (copy_byte_table): Renamed from `copy_char_byte_table'.
1576
1577         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
1578         `Lisp_Char_Byte_Table'.
1579         (byte_table): Renamed from `char_byte_table'.
1580         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
1581         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
1582         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
1583         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
1584
1585 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1586
1587         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
1588         (dfc_convert_to_internal_format): Likewise.
1589         
1590         * text-coding.c (Fcoding_system_canonical_name_p): New function.
1591         * text-coding.c (Fcoding_system_alias_p): New function.
1592         * text-coding.c (Fcoding_system_aliasee): New function.
1593         * text-coding.c (append_suffix_to_symbol): New function.
1594         * text-coding.c (dangling_coding_system_alias_p): New function.
1595         * text-coding.c (Ffind_coding_system):
1596         * text-coding.c (Fcopy_coding_system):
1597         * text-coding.c (encode_coding_no_conversion):
1598         * text-coding.c (syms_of_file_coding):
1599         * text-coding.c (vars_of_file_coding):
1600         Rewrite coding system alias code.
1601         Allow nested aliases, like symbolic links.
1602         Allow redefinition of coding system aliases.
1603         Prevent existence of dangling coding system aliases.
1604         Eliminate convert_to_external_format.
1605         Eliminate convert_to_internal_format.
1606         
1607         * text-coding.c: Change enum eol_type to eol_type_t.
1608
1609 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1610
1611         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
1612         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
1613
1614         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
1615         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
1616
1617 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1618
1619         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
1620         `ideograph-daikanwa'.
1621
1622         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
1623         (Vcharset_ucs_bmp): Likewise.
1624         (Vcharset_mojikyo): Add new extern variable definition.
1625         (Vcharset_latin_iso8859_2): Deleted because it is not used.
1626         (Vcharset_latin_iso8859_3): Likewise.
1627         (Vcharset_latin_iso8859_4): Likewise.
1628         (Vcharset_latin_iso8859_9): Likewise.
1629         (Vcharset_latin_viscii_lower): Likewise.
1630         (Vcharset_latin_viscii_upper): Likewise.
1631         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
1632         `mojikyo' code-point is used to decode.
1633         (encode_char_2): New function [to convert `mojikyo' code-point to
1634         Mojikyo font encoding].
1635         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
1636         (breakup_char_1): Likewise.
1637         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
1638
1639 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1640
1641         * text-coding.c (Fmake_coding_system): Add document about
1642         `disable-composition' property.
1643
1644 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1645
1646         * text-coding.c (Qdisable_composition): New variable; delete
1647         `Qcomposite'.
1648         (Fmake_coding_system): Add new property `disable-composite';
1649         delete property `composite'.
1650         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
1651         instead of `!CODING_SYSTEM_COMPOSITE'.
1652         (syms_of_file_coding): Add new symbol `disable-composition';
1653         delete symbol `composite'.
1654
1655         * file-coding.h (struct Lisp_Coding_System): Add
1656         `disable_composition'; delete `enable_composition'.
1657         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
1658         `CODING_SYSTEM_COMPOSITE'.
1659         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
1660         `XCODING_SYSTEM_COMPOSITE'.
1661
1662 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1663
1664         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1665         to 0.15.
1666
1667 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1668
1669         * text-coding.c (Qcomposite): New variable.
1670         (Fmake_coding_system): Add new property `composite'.
1671         (struct decoding_stream): Add `combined_char_count',
1672         `combined_chars' and `combining_table' in UTF-2000.
1673         (COMPOSE_FLUSH_CHARS): New macro.
1674         (COMPOSE_ADD_CHAR): New macro.
1675         (reset_decoding_stream): Reset `str->combined_char_count' and
1676         `str->combining_table' in UTF-2000.
1677         (decode_coding_iso2022): Modify for character-decomposition.
1678         (syms_of_file_coding): Add new symbol `composite'.
1679
1680 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1681
1682         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
1683         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
1684         of `Vcharacter_composition_table' if `->decomposition' property
1685         has only 1 element.
1686         (Qlatin_tcvn5712): New variable.
1687         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
1688         (complex_vars_of_mule_charset): Add new coded-charset
1689         `latin-tcvn5712'.
1690
1691         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
1692
1693 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1694
1695         * file-coding.h (struct Lisp_Coding_System): Add
1696         `enable_composition'.
1697         (CODING_SYSTEM_COMPOSITE): New macro.
1698         (XCODING_SYSTEM_COMPOSITE): New macro.
1699
1700 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
1701
1702         * mule-canna.c (c2mu): Fix problem with UTF-2000.
1703
1704 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
1705
1706         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
1707         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
1708
1709 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
1710
1711         * mule-charset.c (Vcharset_mojikyo): New variable.
1712         (Fdefine_char): Don't use coded-charset which does not have
1713         non-builtin character range to allocate character-id.
1714         (Qmojikyo): New variable.
1715         (syms_of_mule_charset): Add new symbol `mojikyo'.
1716         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
1717
1718         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
1719         (LEADING_BYTE_MOJIKYO): New macro.
1720         (MIN_CHAR_MOJIKYO): New macro.
1721         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
1722         (MAX_CHAR_MOJIKYO): New macro.
1723
1724 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
1725
1726         * mule-charset.c (remove_char_attribute): Fixed.
1727
1728 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
1729
1730         * mule-charset.c (remove_char_attribute): New function.
1731         (Fremove_char_attribute): New function.
1732         (encode_builtin_char_1): Comment out builtin-support for
1733         greek-iso8859-7 and cyrillic-iso8859-5.
1734         (Fdecode_char): Check `code' is an integer.
1735         (syms_of_mule_charset): Add `remove-char-attribute'.
1736         (MIN_CHAR_GREEK): Deleted.
1737         (MAX_CHAR_GREEK): Likewise.
1738         (MIN_CHAR_CYRILLIC): Likewise.
1739         (MAX_CHAR_CYRILLIC): Likewise.
1740         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
1741         MAX_CHAR_GREEK for `greek-iso8859-7'.
1742
1743         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
1744         (MAX_CHAR_GREEK): Likewise.
1745         (MIN_CHAR_CYRILLIC): Likewise.
1746         (MAX_CHAR_CYRILLIC): Likewise.
1747
1748 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
1749
1750         * mule-charset.c (Fdefine_char): Fix problem when new code-point
1751         format is used without `ucs' property.
1752         (Fdecode_char): Fix problem with GR representation.
1753         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
1754         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
1755
1756 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
1757
1758         * mule-charset.c (make_builtin_char): New function.
1759         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
1760         (Fset_charset_mapping_table): Modify for new representation of
1761         code-point.
1762         (Fdecode_char): New function.
1763         (syms_of_mule_charset): Add new builtin function `decode-char' in
1764         UTF-2000.
1765
1766         * char-ucs.h (make_builtin_char): New prototype.
1767         (DECODE_CHAR): New inline function.
1768         (MAKE_CHAR): Use `DECODE_CHAR'.
1769
1770 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
1771
1772         * text-coding.c (parse_charset_conversion_specs): Use
1773         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
1774         `XCHARSET_TYPE'.
1775         (iso2022_designate): Likewise.
1776
1777         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
1778         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
1779
1780         * mule-charset.c (Vcharset_ucs): New variable.
1781         (print_charset): Change design; use `CHARSET_CHARS' and
1782         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
1783         (make_charset): Change signature to specify `chars' and
1784         `dimension' instead of `type'.
1785         (range_charset_code_point): Modify for 256^n-set.
1786         (encode_builtin_char_1): Encode as `ucs' in default.
1787         (Fmake_charset): Modify for `make_charset'.
1788         (Fmake_reverse_direction_charset): Likewise.
1789         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
1790         UTF-2000.
1791         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
1792         for `make_charset'.
1793
1794         * char-ucs.h (Vcharset_ucs): New variable.
1795         (LEADING_BYTE_UCS): New macro.
1796         (struct Lisp_Charset): Delete `type'; change type of `dimension'
1797         and `chars' to `unsigned short' from `unsigned int'.
1798         (CHARSET_TYPE): Deleted.
1799         (XCHARSET_TYPE): Deleted.
1800
1801 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
1802
1803         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
1804
1805         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
1806         (ENCODE_CHAR): New macro.
1807
1808 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
1809
1810         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1811         to 0.14 (Kawachi-Katakami).
1812
1813 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
1814
1815         * text-coding.c (char_encode_shift_jis): Modify for
1816         `charset_code_point'.
1817         (char_encode_iso2022): Likewise.
1818
1819         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
1820         (integer) instead of list of <Lisp_Object>s (integers) as the
1821         format of code-point of a coded-charset.
1822         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
1823         (encode_builtin_char_1): New function; delete
1824         `split_builtin_char'.
1825         (charset_code_point): Return <int> instead of <Lisp_Object>.
1826         (Fsplit_char): Don't use `SPLIT_CHAR'.
1827
1828         * char-ucs.h (encode_builtin_char_1): New prototype; delete
1829         prototype for `split_builtin_char'.
1830         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
1831         (charset_code_point): Likewise.
1832         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
1833         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
1834
1835 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
1836
1837         * mule-charset.c (complex_vars_of_mule_charset): Don't define
1838         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
1839
1840 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
1841
1842         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
1843
1844         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
1845         (MAX_CHAR_OBS_94x94): Deleted.
1846
1847 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
1848
1849         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
1850
1851         * char-ucs.h (MAX_CHAR_BMP): New macro.
1852
1853 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
1854
1855         * text-coding.c: Sync with r21-2-24.
1856
1857 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
1858
1859         * file-coding.c: Modify for UTF-2000.
1860
1861 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
1862
1863         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1864         to 0.13 (Takaida).
1865
1866 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
1867
1868         * mule-charset.c (split_builtin_char): Delete builtin support for
1869         `katakana-jisx0201'.
1870         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
1871         BMP area in builtin representation.
1872
1873         * char-ucs.h (MAKE_CHAR): Delete builtin support for
1874         `Vcharset_katakana_jisx0201'.
1875
1876 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
1877
1878         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
1879         (Qisolated): New variable.
1880         (Qinitial): New variable.
1881         (Qmedial): New variable.
1882         (Qfinal): New variable.
1883         (Qvertical): New variable.
1884         (Qsmall): New variable.
1885         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
1886         `Qvertical' and `Qsmall'.
1887         (Qmojikyo_pj_[1 .. 21]): New variable.
1888         (syms_of_mule_charset): Add new symbols `isolated', `initial',
1889         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
1890         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
1891         .. 21]'.
1892
1893 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
1894
1895         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
1896         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
1897         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
1898
1899 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
1900
1901         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
1902         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
1903         BMP.
1904         (Qjapanese_jisx0208_1990): New variable.
1905         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
1906         (complex_vars_of_mule_charset): Add new coded-charset
1907         `japanese-jisx0208-1990'.
1908
1909         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
1910         (MIN_CHAR_JIS_X0208_1990): New macro.
1911         (MAX_CHAR_JIS_X0208_1990): New macro.
1912
1913 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1914
1915         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
1916         coded-charset is not found.
1917
1918 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1919
1920         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
1921         (Fdefine_char): Use `Fmake_char'.
1922
1923 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1924
1925         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
1926         (Vcharset_hiragana_jisx0208): Deleted.
1927         (Vcharset_katakana_jisx0208): Deleted.
1928         (Qideograph_daikanwa): New variable.
1929         (Qhiragana_jisx0208): Deleted.
1930         (Qkatakana_jisx0208): Deleted.
1931         (split_builtin_char): Split `ideograph-daikanwa'.
1932         (Fsplit_char): New implementation for UTF-2000.
1933         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
1934         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
1935         (complex_vars_of_mule_charset): Add new coded-charset
1936         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
1937         `katakana-jisx0208'.
1938
1939         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
1940         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
1941         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
1942         (MIN_CHAR_DAIKANWA): New macro.
1943         (MAX_CHAR_DAIKANWA): New macro.
1944
1945 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1946
1947         * data.c (Fstring_to_number): Don't recognize floating point if
1948         base is not 10.
1949
1950 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1951
1952         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
1953
1954 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1955
1956         * mule-charset.c (Qsquare): New variable.
1957         (to_char_code): Add `Qsquare'.
1958         (syms_of_mule_charset): Add new symbol `square'.
1959
1960 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1961
1962         * mule-charset.c (Qcircle): New variable.
1963         (to_char_code): Add `Qcircle'.
1964         (syms_of_mule_charset): Add new symbol `circle'.
1965
1966 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1967
1968         * mule-charset.c (Qfont): New variable.
1969         (to_char_code): Add `Qfont'.
1970         (syms_of_mule_charset): Add new symbol `font'.
1971
1972 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1973
1974         * mule-charset.c (Qsub): New variable.
1975         (to_char_code): Add `Qsub'.
1976         (syms_of_mule_charset): Add new symbol `sub'.
1977
1978 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1979
1980         * mule-charset.c (Fput_char_attribute): Convert each element of
1981         VALUE to GL position if ATTRIBUTE is a GR-set,
1982
1983 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1984
1985         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
1986         coded-charset is a GR-set.
1987
1988 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1989
1990         * mule-charset.c (Fput_char_attribute): Check each element of
1991         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
1992
1993 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1994
1995         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
1996         UTF-2000.
1997         (Qethiopic_ucs): New variable in UTF-2000.
1998         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
1999         (complex_vars_of_mule_charset): Add new coded-charset
2000         `ethiopic-ucs' in UTF-2000.
2001
2002         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
2003         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2004         9)'.
2005         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2006         10)'.
2007         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
2008
2009 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
2010
2011         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
2012         `ascii'.
2013
2014 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2015
2016         * mule-charset.c (Vcharacter_variant_table): New variable.
2017         (Q_ucs): New variable.
2018         (Fchar_variants): New function.
2019         (Fput_char_attribute): Register `->ucs' value to
2020         `Vcharacter_variant_table'.
2021         (syms_of_mule_charset): Add new function `char-variants' and new
2022         symbol `->ucs'.
2023         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
2024
2025 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2026
2027         * mule-charset.c (get_char_code_table): Allow negative character
2028         code.
2029         (put_char_code_table): Likewise.
2030         (Vcharacter_composition_table): New variable.
2031         (Q_decomposition): New variable.
2032         (Qwide): New variable.
2033         (Qnarrow): New variable.
2034         (Qcompat): New variable.
2035         (QnoBreak): New variable.
2036         (Qsuper): New variable.
2037         (Qfraction): New variable.
2038         (to_char_code): New function.
2039         (Fget_composite_char): New function.
2040         (Fput_char_attribute): Register `->decomposition' value to
2041         `Vcharacter_composition_table'.
2042         (syms_of_mule_charset): Add new function `get-composite-char', new
2043         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
2044         `super' and `fraction'.
2045         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
2046
2047 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2048
2049         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
2050         character; copy the return value.
2051
2052 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2053
2054         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
2055
2056         * mule-charset.c (range_charset_code_point): Must use make_int.
2057         (split_builtin_char): New function.
2058
2059 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2060
2061         * mule-charset.c (char_byte_table): Change name from
2062         "char-code-table" to "char-byte-table".
2063         (mark_char_code_table): New function.
2064         (char_code_table_equal): New function.
2065         (char_code_table_hash): New function.
2066         (char_code_table_description): New constant.
2067         (char_code_table): New type.
2068         (make_char_code_table): New function.
2069         (copy_char_code_table): New function.
2070         (get_char_code_table): Modify for `char_code_table' type.
2071         (put_char_code_table): Likewise.
2072         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
2073         (Kashiwara).
2074
2075         * char-ucs.h (char_code_table): New type.
2076         (XCHAR_CODE_TABLE): New macro.
2077         (XSETCHAR_CODE_TABLE): New macro.
2078         (CHAR_CODE_TABLE_P): New macro.
2079         (GC_CHAR_CODE_TABLE_P): New macro.
2080         (struct Lisp_Char_Code_Table): New structure.
2081
2082 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2083
2084         * mule-charset.c (Fmake_charset): Setup byte_offset for
2085         {94|96}^n-set.
2086
2087 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2088
2089         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
2090         character.
2091
2092 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2093
2094         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
2095         is found.
2096
2097 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2098
2099         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
2100         charset, it is regarded as a charset.
2101         (put_char_attribute): New function in UTF-2000.
2102         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
2103         charset, mapping-table of the charset is modified.
2104         (Fdefine_char): New function in UTF-2000.
2105         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
2106         `Fput_char_attribute'.
2107         (syms_of_mule_charset): Add new function `define-char' and new
2108         symbol `ucs' in UTF-2000.
2109         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
2110
2111 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2112
2113         * mule-charset.c (Fcharset_name): Define `byte_offset' in
2114         non-UTF-2000 configuration.
2115
2116 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2117
2118         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
2119         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
2120
2121         * mule-charset.c (mark_charset): `cs->encoding_table' has been
2122         deleted.
2123         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
2124         (Fset_charset_mapping_table): Likewise.
2125
2126         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
2127         (CHARSET_ENCODING_TABLE): Delete.
2128         (XCHARSET_ENCODING_TABLE): Delete.
2129         (charset_code_point): New interface.
2130
2131 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2132
2133         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
2134         instead of `charset_get_byte1' and `charset_get_byte2'.
2135
2136         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
2137         (charset_get_byte2): Deleted.
2138
2139 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2140
2141         * char-ucs.h (SPLIT_CHAR): New inline function.
2142         (breakup_char_1): Use `SPLIT_CHAR'.
2143
2144         * mule-charset.c (range_charset_code_point): New function.
2145         (charset_code_point): New function.
2146
2147         * char-ucs.h (range_charset_code_point): New interface.
2148         (breakup_char_1): Use `range_charset_code_point'.
2149
2150 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2151
2152         * mule-charset.c (Fmake_charset): Delete unused local variable
2153         `code_offset'.
2154
2155         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
2156         (breakup_char_1): Find a charset and code-point in
2157         `Vcharacter_attribute_table'.
2158
2159 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2160
2161         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2162         to 0.10 (Yao).
2163
2164 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
2165
2166         * mule-charset.c (Vcharacter_attribute_table): New variable.
2167         (Fchar_attribute_alist): New function.
2168         (Fget_char_attribute): New function.
2169         (Fput_char_attribute): New function.
2170         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
2171         too.
2172         (syms_of_mule_charset): Add new function `char-attribute-alist',
2173         `get-char-attribute' and `put-char-attribute'.
2174         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
2175
2176 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
2177
2178         * mule-charset.c (Fmake_charset): Just use
2179         `get_unallocated_leading_byte'.
2180
2181         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
2182         sets; don't use final-byte based number for private sets.
2183
2184 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2185
2186         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
2187         integer.
2188
2189 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2190
2191         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2192         to 0.9.
2193
2194 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2195
2196         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
2197         of `CHAR_LEADING_BYTE' in UTF-2000.
2198
2199         * insdel.c (find_charsets_in_bufbyte_string): Use
2200         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2201         (find_charsets_in_emchar_string): Likewise.
2202
2203         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
2204         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2205
2206         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
2207         (CHAR_CHARSET_ID): New macro.
2208
2209 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2210
2211         * chartab.c (get_char_table): Don't use type `Charset_ID' for
2212         charset-id - MIN_LEADING_BYTE.
2213         (put_char_table): Likewise.
2214
2215 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2216
2217         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
2218         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
2219         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
2220         (CHARSET_ID_OFFSET): New macro.
2221         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
2222         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
2223         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
2224         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2225         4).
2226         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2227         5).
2228         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
2229         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
2230         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
2231         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
2232         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
2233
2234 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2235
2236         * mule-charset.c (next_allocated_leading_byte): New variable in
2237         UTF-2000.
2238         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
2239         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
2240         (get_unallocated_leading_byte): Simply use
2241         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
2242         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
2243         UTF-2000.
2244
2245         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
2246         (MAX_LEADING_BYTE_PRIVATE): New macro.
2247         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
2248         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
2249
2250 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2251
2252         * mule-charset.c (Fmake_charset): Allocate final-byte based
2253         charset-id for 94-set, 96-set and 94x94-set.
2254
2255 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2256
2257         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
2258         ambiguous `else'.
2259         (Fmake_charset): Likewise.
2260         (complex_vars_of_mule_charset): Modify the font registry of
2261         `ucs-bmp' not to match `Ethiopic-Unicode'.
2262
2263 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2264
2265         * mule-charset.c (complex_vars_of_mule_charset): Add font
2266         registory of `ucs-bmp'.
2267
2268 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2269
2270         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
2271         coded-charsets in `default-coded-charset-priority-list' when
2272         breaking up a character.
2273
2274         * mule-charset.c (Vcharset_latin_viscii): New variable.
2275         (Qlatin_viscii): New variable.
2276         (make_charset): Don't use `decoding_table'.
2277         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
2278         byte_offset.
2279         (Fset_charset_mapping_table): New implementation.
2280         (syms_of_mule_charset): Add new symbol `latin-viscii'.
2281         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
2282         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
2283         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
2284         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
2285         charset `latin_viscii'.
2286
2287         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
2288         (CHARSET_TYPE_94X94): Change to 1 from 2.
2289         (CHARSET_TYPE_96): Change to 2 from 1.
2290         (CHARSET_TYPE_128): New macro.
2291         (CHARSET_TYPE_128X128): Change to 5 from 4.
2292         (CHARSET_TYPE_256): New macro.
2293         (CHARSET_TYPE_256X256): Change to 7 from 5.
2294         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
2295
2296 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2297
2298         * text-coding.c (char_encode_shift_jis): Refer
2299         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
2300         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
2301
2302         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
2303         (char_byte_table_equal): New function in UTF-2000.
2304         (char_byte_table_hash): New function in UTF-2000.
2305         (char_byte_table_description): New constant in UTF-2000.
2306         (char_byte_table): New type in UTF-2000.
2307         (make_char_byte_table): New function in UTF-2000.
2308         (copy_char_byte_table): New function in UTF-2000.
2309         (make_char_code_table): New macro in UTF-2000.
2310         (get_char_code_table): New function in UTF-2000.
2311         (put_char_code_table): New function in UTF-2000.
2312         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2313         (charset_description): Add setting in UTF-2000.
2314         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
2315         `CHARSET_TO_BYTE1_TABLE(cs)'.
2316         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
2317         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
2318         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
2319         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
2320         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
2321         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
2322         `CHARSET_TO_BYTE2_TABLE(cs)'.
2323
2324         * char-ucs.h (char_byte_table): New type.
2325         (XCHAR_BYTE_TABLE): New macro.
2326         (XSETCHAR_BYTE_TABLE): New macro.
2327         (CHAR_BYTE_TABLE_P): New macro.
2328         (GC_CHAR_BYTE_TABLE_P): New macro.
2329         (struct Lisp_Char_Byte_Table): New structure.
2330         (get_char_code_table): New interface.
2331         (Emchar_to_byte_table): Deleted.
2332         (get_byte_from_character_table): Deleted.
2333         (struct Lisp_Charset): Add `encoding_table'; delete
2334         `to_byte1_table' and `to_byte2_table'.
2335         (CHARSET_ENCODING_TABLE): New macro.
2336         (CHARSET_TO_BYTE1_TABLE): Deleted.
2337         (CHARSET_TO_BYTE2_TABLE): Deleted.
2338         (XCHARSET_ENCODING_TABLE): New macro.
2339         (XCHARSET_TO_BYTE1_TABLE): Deleted.
2340         (XCHARSET_TO_BYTE2_TABLE): Deleted.
2341
2342 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2343
2344         * mule-charset.c (syms_of_mule_charset): Delete charset alias
2345         `vietnamese-viscii-*'.
2346
2347 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2348
2349         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
2350         (Qvietnamese_viscii_upper): New variable.
2351         (Fdefine_charset_alias): New function.
2352         (syms_of_mule_charset): Add new function `define-charset-alias'.
2353         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
2354         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
2355         `latin-viscii-*'.
2356
2357 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
2358
2359         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
2360         (MAX_CHAR_OBS_94x94): New macro.
2361         (breakup_char_1): Support obsolete XEmacs-UCS private code space
2362         for 94x94 sets.
2363
2364         * mule-charset.c (put_byte_from_character_table): Change unit size
2365         from 128 to 256.
2366         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
2367         not defined.
2368         (Fmake_reverse_direction_charset): Modify dummy argument of
2369         `make_charset' for non-UTF-2000 environment.
2370
2371 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2372
2373         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
2374
2375         * mule-charset.c (destroy_byte_from_character_table): New macro.
2376         (latin_jisx0201_to_ucs): Deleted.
2377         (latin_iso8859_2_to_ucs): Deleted.
2378         (latin_iso8859_3_to_ucs): Deleted.
2379         (latin_iso8859_4_to_ucs): Deleted.
2380         (latin_iso8859_9_to_ucs): Deleted.
2381         (latin_viscii_lower_to_ucs): Deleted.
2382         (latin_viscii_upper_to_ucs): Deleted.
2383         (mark_charset): Mark `cs->decoding_table'.
2384         (Fcharset_mapping_table): Fix DOC-string.
2385         (Fset_charset_mapping_table): New function.
2386         (syms_of_mule_charset): Add nwe function
2387         `set-charset-mapping-table'.
2388         (complex_vars_of_mule_charset): Don't setup and use
2389         `latin_*_to_ucs'.
2390
2391 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2392
2393         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
2394         charset.
2395
2396 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2397
2398         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
2399         (Vcharset_katakana_jisx0208): New variable.
2400         (Qhiragana_jisx0208): New variable.
2401         (Qkatakana_jisx0208): New variable.
2402         (make_charset): Add new argument `byte_offset'.
2403         (charset_get_byte1): Modify for new coded-charset definition; use
2404         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
2405         `XCHARSET_BYTE_OFFSET'.
2406         (Fmake_charset): Modify for `make_charset'.
2407         (Fmake_reverse_direction_charset): Likewise.
2408         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
2409         `katakana-jisx0208'.
2410         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
2411         `.'  in font registry of charset `katakana-jisx0201',
2412         `latin-jisx0201', `vietnamese-viscii-lower' and
2413         `vietnamese-viscii-upper'; modify DOC-string of charset
2414         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
2415         registry of charset `japanese-jisx0208' not to use font for JIS
2416         X0208:1990; add new charset `hiragana-jisx0208' and
2417         `katakana-jisx0208'.
2418
2419         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
2420         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
2421         (struct Lisp_Charset): Add `byte_offset'.
2422         (CHARSET_BYTE_OFFSET): New macro.
2423         (XCHARSET_UCS_MIN): New macro.
2424         (XCHARSET_UCS_MAX): New macro.
2425         (XCHARSET_CODE_OFFSET): New macro.
2426         (XCHARSET_BYTE_OFFSET): New macro.
2427         (MIN_CHAR_HIRAGANA): New macro.
2428         (MAX_CHAR_HIRAGANA): New macro.
2429         (MIN_CHAR_KATAKANA): New macro.
2430         (MAX_CHAR_KATAKANA): New macro.
2431         (MAKE_CHAR): Modify for new coded-charset definition; use
2432         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
2433         `XCHARSET_BYTE_OFFSET'.
2434
2435 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2436
2437         * mule-charset.c (CHAR96): Deleted.
2438         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
2439         <Lisp_Object>.
2440         (latin_iso8859_2_to_ucs): Likewise.
2441         (latin_iso8859_3_to_ucs): Likewise.
2442         (latin_iso8859_4_to_ucs): Likewise.
2443         (latin_iso8859_9_to_ucs): Likewise.
2444         (latin_viscii_lower_to_ucs): Likewise.
2445         (latin_viscii_upper_to_ucs): Likewise.
2446         (latin_tcvn5712_to_ucs): Commented out.
2447         (make_charset): Change type of argument `decoding_table' from
2448         <Emchar*> to <Lisp_Object> [vector of characters].
2449         (Fmake_charset): Modify for `make_charset'.
2450         (Fmake_reverse_direction_charset): Likewise.
2451         (Fcharset_mapping_table): New function in UTF-2000.
2452         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
2453         UTF-2000.
2454         (complex_vars_of_mule_charset): Modify for type change of
2455         `*_to_ucs'; modify for `make_charset'.
2456
2457         * char-ucs.h (struct Lisp_Charset): Change type of
2458         `decoding_table' from <Emchar*> to <Lisp_Object>.
2459         (MAKE_CHAR): Modify for new specification of `decoding_table'.
2460
2461 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
2462
2463         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
2464         error with non-UTF-2000-Mule.
2465
2466 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
2467
2468         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
2469         in lisp again].
2470         (Vcharset_chinese_cns11643_4): Likewise.
2471         (Vcharset_chinese_cns11643_5): Likewise.
2472         (Vcharset_chinese_cns11643_6): Likewise.
2473         (Vcharset_chinese_cns11643_7): Likewise.
2474         (Qchinese_cns11643_3): Likewise.
2475         (Qchinese_cns11643_4): Likewise.
2476         (Qchinese_cns11643_5): Likewise.
2477         (Qchinese_cns11643_6): Likewise.
2478         (Qchinese_cns11643_7): Likewise.
2479         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
2480         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
2481         and `chinese-cns11643-7' to lisp/mule/chinese.el.
2482         (complex_vars_of_mule_charset): Likewise.
2483
2484 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2485
2486         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
2487         96-set.
2488         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
2489         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
2490
2491 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
2492
2493         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
2494         0xFF60.
2495         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
2496         (breakup_char_1): Likewise.
2497
2498         * text-coding.c (char_encode_iso2022): Keep designated charsets if
2499         one of them includes the specified character.
2500
2501 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
2502
2503         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
2504
2505 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
2506
2507         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
2508
2509 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
2510
2511         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
2512         definition for non-UTF-2000 Mule.
2513         (latin_iso8859_3_to_ucs): Likewise.
2514         (latin_iso8859_4_to_ucs): Likewise.
2515         (latin_iso8859_9_to_ucs): Likewise.
2516         (latin_jisx0201_to_ucs): Likewise.
2517         (MIN_CHAR_THAI): Likewise.
2518         (MAX_CHAR_THAI): Likewise.
2519         (MIN_CHAR_GREEK): Likewise.
2520         (MAX_CHAR_GREEK): Likewise.
2521         (MIN_CHAR_HEBREW): Likewise.
2522         (MAX_CHAR_HEBREW): Likewise.
2523         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
2524         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
2525         (MIN_CHAR_CYRILLIC): Likewise.
2526         (MAX_CHAR_CYRILLIC): Likewise.
2527
2528 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
2529
2530         * char-ucs.h (breakup_char_1): Use
2531         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
2532         thai-tis620 and katakana-jisx0201 area.
2533
2534 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2535
2536         * char-ucs.h (breakup_char_1): Use
2537         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
2538         area.
2539
2540         * text-coding.c (reset_encoding_stream): Fixed.
2541         (char_encode_ucs4): Delete `& 255'.
2542
2543         * char-ucs.h (breakup_char_1): Use
2544         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
2545
2546 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2547
2548         * file-coding.c (Fmake_coding_system): Don't set up
2549         `codesys->fixed.size'.
2550         (encode_coding_no_conversion): Don't refer
2551         `str->codesys->fixed.size'.
2552
2553 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2554
2555         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
2556         (latin_a_char_to_byte1): Deleted.
2557         (latin_a_char_to_byte2): Deleted.
2558
2559 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2560
2561         * mule-charset.c (make_charset): Add new argument `ucs_min',
2562         `ucs_max' and `code_offset'.
2563         (charset_get_byte1): New implementation [delete specific charset
2564         depended implementations].
2565         (Fmake_charset): Modify for `make_charset'.
2566         (Fmake_reverse_direction_charset): Likewise.
2567         (complex_vars_of_mule_charset): Likewise.
2568
2569         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
2570         `code_offset'.
2571         (CHARSET_UCS_MIN): New macro.
2572         (CHARSET_UCS_MAX): New macro.
2573         (CHARSET_CODE_OFFSET): New macro.
2574         (MAKE_CHAR): Delete charset depended definitions [except
2575         katakana-jisx0201].
2576
2577 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
2578
2579         * char-ucs.h (breakup_char_1): Use
2580         `Vdefault_coded_charset_priority_list' for C0-Controls,
2581         Basic-Latin, C1-Controls and Latin-1-Supplement area.
2582
2583 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2584
2585         * char-ucs.h (charset_get_byte1): New function.
2586         (XCHARSET_GET_BYTE1): Deleted.
2587         (charset_get_byte2): New function.
2588         (XCHARSET_GET_BYTE2): Deleted.
2589         (Vdefault_coded_charset_priority_list): New external variable.
2590         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
2591         `Vdefault_preferred_coded_charset_list'.
2592
2593         * mule-charset.c (charset_get_byte1): New function.
2594         (charset_get_byte2): New function.
2595         (Vdefault_coded_charset_priority_list): New variable.
2596         (vars_of_mule_charset): Add new variable
2597         `default-coded-charset-priority-list'.
2598
2599 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2600
2601         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
2602         (XCHARSET_GET_BYTE2): New inline function.
2603         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
2604         `XCHARSET_GET_BYTE2'.
2605
2606 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2607
2608         * mule-charset.c (make_charset): Initialize
2609         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
2610         NULL if table is not defined.
2611
2612 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2613
2614         * text-coding.c (char_encode_shift_jis): Use
2615         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
2616         `ucs_to_latin_jisx0201'.
2617
2618         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
2619         (ucs_to_latin_iso8859_2): Deleted.
2620         (ucs_to_latin_iso8859_3): Deleted.
2621         (ucs_to_latin_iso8859_4): Deleted.
2622         (ucs_to_latin_iso8859_9): Deleted.
2623         (ucs_to_latin_viscii_lower): Deleted.
2624         (ucs_to_latin_viscii_upper): Deleted.
2625         (ucs_to_latin_tcvn5712): Deleted.
2626         (make_charset): Add new argument `decoding_table'; set up
2627         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
2628         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
2629         `decoding_table' is defined in UTF-2000.
2630         (Fmake_charset): Modify for `make_charset'.
2631         (Fmake_reverse_direction_charset): Likewise.
2632         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
2633         and `GENERATE_96_SET'.
2634
2635         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
2636         (ucs_to_latin_jisx0201): Deleted.
2637         (latin_iso8859_2_to_ucs): Deleted.
2638         (ucs_to_latin_iso8859_2): Deleted.
2639         (latin_iso8859_3_to_ucs): Deleted.
2640         (ucs_to_latin_iso8859_3): Deleted.
2641         (latin_iso8859_4_to_ucs): Deleted.
2642         (ucs_to_latin_iso8859_4): Deleted.
2643         (latin_iso8859_9_to_ucs): Deleted.
2644         (ucs_to_latin_iso8859_9): Deleted.
2645         (latin_viscii_lower_to_ucs): Deleted.
2646         (ucs_to_latin_viscii_lower): Deleted.
2647         (latin_viscii_upper_to_ucs): Deleted.
2648         (ucs_to_latin_viscii_upper): Deleted.
2649         (struct Lisp_Charset): Renamed `encoding_table' to
2650         `to_byte1_table'; add `to_byte2_table'.
2651         (CHARSET_DECODING_TABLE): New macro.
2652         (CHARSET_TO_BYTE1_TABLE): New macro.
2653         (CHARSET_TO_BYTE2_TABLE): New macro.
2654         (XCHARSET_DECODING_TABLE): New macro.
2655         (XCHARSET_TO_BYTE1_TABLE): New macro.
2656         (XCHARSET_TO_BYTE2_TABLE): New macro.
2657         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
2658         tables.
2659         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
2660         don't use `ucs_to_*' tables.
2661
2662 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2663
2664         * text-coding.c (Fmake_coding_system): Don't set up
2665         `codesys->fixed.size'.
2666         (encode_coding_no_conversion): Use `if' instead of `switch'.
2667
2668         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
2669
2670 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2671
2672         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
2673         (Fmake_charset): Modify for `make_charset'.
2674         (Fmake_reverse_direction_charset): Likewise.
2675         (complex_vars_of_mule_charset): Likewise.
2676
2677 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2678
2679         * text-coding.c (char_encode_shift_jis): Use table
2680         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
2681
2682 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2683
2684         * text-coding.c (text_encode_generic): Use `if' instead of
2685         `switch'.
2686         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
2687         decode JIS-Latin.
2688
2689 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2690
2691         * text-coding.c (encode_coding_sjis): Deleted.
2692         (char_encode_shift_jis): New function.
2693         (char_finish_shift_jis): New function.
2694         (reset_encoding_stream): Set up `encode_char' and `finish' for
2695         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
2696         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
2697         (char_encode_utf8): Treat `eol_type'.
2698
2699 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2700
2701         * file-coding.c (decode_coding_iso2022): Use
2702         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
2703
2704 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2705
2706         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2707         to 0.7 (Hirano).
2708
2709 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2710
2711         * char-lb.h (CHAR_COLUMNS): New macro.
2712
2713 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2714
2715         * text-coding.c (char_encode_ucs4): New function.
2716         (char_finish_ucs4): New function.
2717         (encode_coding_ucs4): Deleted.
2718         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
2719         (text_encode_generic): Delete local variable `charset' and `half'.
2720         (ucs_to_mule_table): Deleted.
2721         (mule_to_ucs_table): Deleted.
2722         (Fset_ucs_char): Deleted.
2723         (ucs_to_char): Deleted.
2724         (Fucs_char): Deleted.
2725         (Fset_char_ucs): Deleted.
2726         (Fchar_ucs): Deleted.
2727         (decode_ucs4): Deleted.
2728         (mule_char_to_ucs4): Deleted.
2729         (encode_ucs4): Deleted.
2730         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
2731         (decode_coding_utf8): Likewise.
2732         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
2733         (char_encode_iso2022): Fixed.
2734         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
2735         `Fset_char_ucs' and `Fchar_ucs'.
2736         (complex_vars_of_file_coding): Don't initialize
2737         `ucs_to_mule_table'.
2738
2739         * objects-tty.c (tty_initialize_font_instance): Don't use
2740         `XCHARSET_COLUMNS'.
2741
2742         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
2743         UTF-2000.
2744
2745         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
2746         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
2747
2748         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
2749         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
2750         (emchar_string_displayed_columns): Likewise.
2751
2752         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
2753         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
2754         (string_column_at_point): Likewise.
2755         (Fmove_to_column): Likewise.
2756
2757         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
2758         `encoding_table' and `decoding_table'.
2759         (CHARSET_REP_BYTES): Deleted.
2760         (XCHARSET_REP_BYTES): Deleted.
2761         (XCHARSET_COLUMNS): Deleted.
2762         (CHAR_COLUMNS): New macro.
2763         (lookup_composite_char): Deleted unconditionally.
2764         (composite_char_string): Likewise.
2765
2766 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2767
2768         * char-ucs.h (Emchar_to_byte_table): New type.
2769         (get_byte_from_character_table): New function interface.
2770         (Vcharset_latin_jisx0201): New variable.
2771         (latin_jisx0201_to_ucs): New variable.
2772         (ucs_to_latin_jisx0201): New variable.
2773         (Vcharset_latin_iso8859_2): New variable.
2774         (latin_iso8859_2_to_ucs): New variable.
2775         (ucs_to_latin_iso8859_2): New variable.
2776         (Vcharset_latin_iso8859_3): New variable.
2777         (latin_iso8859_3_to_ucs): New variable.
2778         (ucs_to_latin_iso8859_3): New variable.
2779         (Vcharset_latin_iso8859_4): New variable.
2780         (latin_iso8859_4_to_ucs): New variable.
2781         (ucs_to_latin_iso8859_4): New variable.
2782         (Vcharset_latin_iso8859_9): New variable.
2783         (latin_iso8859_9_to_ucs): New variable.
2784         (ucs_to_latin_iso8859_9): New variable.
2785         (Vcharset_latin_viscii_lower): New variable.
2786         (latin_viscii_lower_to_ucs): New variable.
2787         (ucs_to_latin_viscii_lower): New variable.
2788         (Vcharset_latin_viscii_upper): New variable.
2789         (latin_viscii_upper_to_ucs): New variable.
2790         (ucs_to_latin_viscii_upper): New variable.
2791         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
2792         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
2793         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
2794         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
2795         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
2796         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
2797         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
2798         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
2799         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
2800         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
2801
2802         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
2803         (Vcharset_latin_viscii_upper): New variable.
2804         (make_byte_from_character_table): New function.
2805         (put_byte_from_character_table): New function.
2806         (get_byte_from_character_table): New function.
2807         (CHAR96): New macro.
2808         (ucs_to_latin_jisx0201): New variable.
2809         (latin_jisx0201_to_ucs): New variable.
2810         (ucs_to_latin_iso8859_2): New variable.
2811         (latin_iso8859_2_to_ucs): New variable.
2812         (ucs_to_latin_iso8859_3): New variable.
2813         (latin_iso8859_3_to_ucs): New variable.
2814         (ucs_to_latin_iso8859_4): New variable.
2815         (latin_iso8859_4_to_ucs): New variable.
2816         (ucs_to_latin_iso8859_9): New variable.
2817         (latin_iso8859_9_to_ucs): New variable.
2818         (ucs_to_latin_viscii_lower): New variable.
2819         (latin_viscii_lower_to_ucs): New variable.
2820         (ucs_to_latin_viscii_upper): New variable.
2821         (latin_viscii_upper_to_ucs): New variable.
2822         (ucs_to_latin_tcvn5712): New variable.
2823         (latin_tcvn5712_to_ucs): New variable.
2824         (Qlatin_viscii_lower): New variable.
2825         (Qlatin_viscii_upper): New variable.
2826         (syms_of_mule_charset): Set up new symbol
2827         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
2828         (complex_vars_of_mule_charset): Set up new charset
2829         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
2830         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
2831         `ucs_to_<CHARSET>' tables.
2832
2833 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
2834
2835         * text-coding.c: New file.
2836
2837 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2838
2839         * mule-charset.c (Fmake_char): Fix problem of 256-set.
2840
2841         * char-ucs.h (Vcharset_ucs_bmp): New variable.
2842         (MAKE_CHAR): Modify for `ucs-bmp'.
2843         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
2844         non-MULE characters of BMP.
2845
2846 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
2847
2848         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2849         to 0.6.
2850
2851 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2852
2853         * lstream.h:
2854         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
2855         - Include character.h for `CHAR_ASCII_P'.
2856
2857         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
2858
2859         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
2860         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
2861
2862         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
2863         (BYTE_C0_P): Likewise.
2864         (BYTE_C1_P): Likewise.
2865         (Lstream_get_emchar_1): Likewise.
2866         (Lstream_fput_emchar): Likewise.
2867         (Lstream_funget_emchar): Likewise.
2868         (copy_internal_to_external): Likewise.
2869         (copy_external_to_internal): Likewise.
2870
2871         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
2872         (BYTE_C0_P): Likewise.
2873         (BYTE_C1_P): Likewise.
2874         (Lstream_get_emchar_1): Likewise.
2875         (Lstream_fput_emchar): Likewise.
2876         (Lstream_funget_emchar): Likewise.
2877         (copy_internal_to_external): Likewise.
2878         (copy_external_to_internal): Likewise.
2879
2880         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
2881         (REP_BYTES_BY_FIRST_BYTE): Likewise.
2882
2883         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
2884         (BYTE_ASCII_P): Moved to mb-1byte.h.
2885
2886 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2887
2888         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
2889
2890         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
2891         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
2892         (VALID_CHARPTR_P): Moved to mb-*byte.h.
2893         (VALIDATE_CHARPTR_BACKWARD): Likewise.
2894         (VALIDATE_CHARPTR_FORWARD): Likewise.
2895         (simple_charptr_emchar): Moved to mb-multibyte.h.
2896         (simple_set_charptr_emchar): Likewise.
2897         (simple_charptr_copy_char): Likewise.
2898         (non_ascii_charptr_emchar): Likewise.
2899         (non_ascii_set_charptr_emchar): Likewise.
2900         (non_ascii_charptr_copy_char): Likewise.
2901         (charptr_emchar): Moved to mb-*byte.h.
2902         (set_charptr_emchar): Likewise.
2903         (charptr_copy_char): Likewise.
2904
2905         * mb-1byte.h, mb-multibyte.h: New files.
2906
2907 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2908
2909         * mb-utf-8.h (MULTIBYTE): New macro.
2910         (MAX_EMCHAR_LEN): Moved from buffer.h.
2911         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
2912
2913         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
2914
2915         * mb-lb.h, multibyte.h: New files.
2916
2917         * char-1byte.h (Charset_ID): Moved from buffer.h.
2918         (MIN_LEADING_BYTE): Likewise.
2919         (LEADING_BYTE_ASCII): Likewise.
2920         (NUM_LEADING_BYTES): Likewise.
2921         (CHARSETP): Likewise.
2922         (CHARSET_BY_LEADING_BYTE): Likewise.
2923         (XCHARSET_LEADING_BYTE): Likewise.
2924         (XCHARSET_GRAPHIC): Likewise.
2925         (XCHARSET_COLUMNS): Likewise.
2926         (XCHARSET_DIMENSION): Likewise.
2927         (CHAR_CHARSET): Likewise.
2928         (CHAR_LEADING_BYTE): Likewise.
2929         (BREAKUP_CHAR): Likewise.
2930         (Vcharset_ascii): Likewise.
2931
2932         * buffer.h: Include multibyte.h unconditionally.
2933         (VALID_CHARPTR_P): Moved to multibyte.h.
2934         (ASSERT_VALID_CHARPTR): Likewise.
2935         (REAL_INC_CHARPTR): Likewise.
2936         (REAL_INC_CHARBYTIND): Likewise.
2937         (REAL_DEC_CHARPTR): Likewise.
2938         (INC_CHARPTR): Likewise.
2939         (INC_CHARBYTIND): Likewise.
2940         (DEC_CHARPTR): Likewise.
2941         (VALIDATE_CHARPTR_BACKWARD): Likewise.
2942         (VALIDATE_CHARPTR_FORWARD): Likewise.
2943         (charptr_n_addr): Likewise.
2944         (MAX_EMCHAR_LEN): Moved to mb-*.h.
2945         (simple_charptr_emchar): Moved to multibyte.h.
2946         (simple_set_charptr_emchar): Likewise.
2947         (simple_charptr_copy_char): Likewise.
2948         (non_ascii_charptr_emchar): Likewise.
2949         (non_ascii_set_charptr_emchar): Likewise.
2950         (non_ascii_charptr_copy_char): Likewise.
2951         (charptr_emchar): Likewise.
2952         (set_charptr_emchar): Likewise.
2953         (charptr_copy_char): Likewise.
2954         (charptr_emchar_n): Likewise.
2955         (Charset_ID): Moved to char-1byte.h.
2956         (Vcharset_ascii): Likewise.
2957         (CHAR_CHARSET): Likewise.
2958         (CHAR_LEADING_BYTE): Likewise.
2959         (LEADING_BYTE_ASCII): Likewise.
2960         (NUM_LEADING_BYTES): Likewise.
2961         (MIN_LEADING_BYTE): Likewise.
2962         (CHARSETP): Likewise.
2963         (CHARSET_BY_LEADING_BYTE): Likewise.
2964         (XCHARSET_LEADING_BYTE): Likewise.
2965         (XCHARSET_GRAPHIC): Likewise.
2966         (XCHARSET_COLUMNS): Likewise.
2967         (XCHARSET_DIMENSION): Likewise.
2968         (BREAKUP_CHAR): Likewise.
2969
2970 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2971
2972         * character.h: Add document about interface for characters.
2973
2974         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
2975         (MAKE_CHAR): Delete comment about
2976         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
2977         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
2978         (BREAKUP_CHAR): Modify name of arguments.
2979         (CHAR_CHARSET): Modify name of argument.
2980
2981         * buffer.h: Delete document about Emchar accessors.
2982
2983 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2984
2985         * character.h (CHAR_INTP): Moved from buffer.h
2986         (CHAR_OR_CHAR_INTP): Likewise.
2987         (XCHAR_OR_CHAR_INT): Likewise.
2988         (CHECK_CHAR_COERCE_INT): Likewise.
2989
2990         * buffer.h (CHAR_INTP): Moved to character.h
2991         (CHAR_OR_CHAR_INTP): Likewise.
2992         (XCHAR_OR_CHAR_INT): Likewise.
2993         (CHECK_CHAR_COERCE_INT): Likewise.
2994
2995 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2996
2997         * character.h:
2998         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
2999         - Include char-1byte.h, char-lb.h or char-ucs.h.
3000
3001         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
3002
3003         * buffer.h: Include character unconditionally.
3004         (valid_char_p): Moved to char-*.h.
3005         (non_ascii_valid_char_p): Moved to char-lb.h.
3006
3007         * char-1byte.h, char-lb.h, char-ucs.h: New files.
3008
3009 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3010
3011         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
3012         in UTF-2000 because it is not ported yet and not to use
3013         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
3014         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
3015         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
3016
3017         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
3018         (CHAR_ASCII_P): Moved from character.h.
3019
3020         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
3021         (CHAR_ASCII_P): Likewise.
3022         (CHAR_FIELD1_MASK): Deleted.
3023         (CHAR_FIELD2_MASK): Deleted.
3024         (CHAR_FIELD3_MASK): Deleted.
3025         (MAX_CHAR_BASIC_LATIN): New macro.
3026         (CHAR_FIELD1): Deleted.
3027         (CHAR_FIELD2_INTERNAL): Deleted.
3028         (CHAR_FIELD3_INTERNAL): Deleted.
3029         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
3030         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
3031         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
3032         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
3033         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
3034         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
3035         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
3036         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
3037         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
3038         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
3039         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
3040         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
3041         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
3042         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
3043         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
3044         (MIN_CHAR_COMPOSITION): Deleted.
3045         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
3046         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
3047
3048 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
3049
3050         * buffer.h: Include mb-utf-8.h in UTF-2000.
3051
3052         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
3053
3054         * mb-utf-8.h: New file.
3055
3056 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
3057
3058         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
3059         instead of `int'.
3060
3061         * mule-charset.h, buffer.h (Charset_ID): New type.
3062
3063 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
3064
3065         * mule-canna.c (c2mu): Use `MAKE_CHAR',
3066         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
3067         instead of `MULE_CHAR_PRIVATE_OFFSET',
3068         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
3069         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
3070         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
3071
3072         * character.h (Vcharset_japanese_jisx0212): New variable
3073         definition.
3074
3075 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
3076
3077         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
3078         (charset_by_attributes): Delete array about direction.
3079         (latin_a_char_to_charset): New variable in UTF-2000.
3080         (latin_a_char_to_byte1): New variable in UTF-2000.
3081         (latin_a_char_to_byte2): New variable in UTF-2000.
3082         (Qucs_bmp): New variable.
3083         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
3084         `Bufbyte'.
3085         (next_allocated_2_byte_leading_byte): Likewise.
3086         (non_ascii_set_charptr_emchar): Likewise.
3087         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
3088         `CHARSET_TYPE_256X256' in UTF-2000; modify for
3089         `charset_by_attributes'.
3090         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
3091         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
3092         and `CHARSET_BY_LEADING_BYTE'.
3093         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
3094         `utf-2000-version' to `vars_of_mule_charset'.
3095         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
3096         define `leading-code-private-11' in UTF-2000; move setting of
3097         `utf-2000-version' from `syms_of_mule_charset'.
3098         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
3099         UTF-2000.
3100
3101         * character.h (Charset_ID): New type.
3102         (LEADING_BYTE_UCS_BMP): New macro.
3103         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
3104         (CHARSET_ID_OFFSET_94): New macro.
3105         (MIN_CHARSET_ID_PRIVATE_94): New macro.
3106         (MAX_CHARSET_ID_PRIVATE_94): New macro.
3107         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
3108         final-byte.
3109         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
3110         (LEADING_BYTE_LATIN_JISX0201): Likewise.
3111         (CHARSET_ID_OFFSET_96): New macro.
3112         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
3113         CHARSET_ID_OFFSET_96 and final-byte.
3114         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
3115         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
3116         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
3117         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
3118         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
3119         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
3120         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
3121         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
3122         (LEADING_BYTE_THAI_TIS620): Likewise.
3123         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
3124         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
3125         (CHARSET_ID_OFFSET_94x94): New macro.
3126         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
3127         CHARSET_ID_OFFSET_94x94 and final-byte.
3128         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
3129         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
3130         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
3131         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
3132         (LEADING_BYTE_CHINESE_GB2312): Likewise.
3133         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
3134         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
3135         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
3136         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
3137         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
3138         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
3139         (CHARSET_TYPE_128X128): New macro.
3140         (CHARSET_TYPE_256X256): New macro.
3141         (XCHARSET_PRIVATE_P): Delete unconditionally.
3142         (charset_by_attributes): Delete array about direction.
3143         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
3144         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
3145         (MIN_CHAR_94): New macro.
3146         (MAX_CHAR_94): New macro.
3147         (MIN_CHAR_96): New macro.
3148         (MAX_CHAR_96): New macro.
3149         (MIN_CHAR_94x94): New macro.
3150         (MAX_CHAR_94x94): New macro.
3151         (MIN_CHAR_96x96): New macro.
3152         (MAX_CHAR_96x96): New macro.
3153         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
3154         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3155         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
3156         - 32)'.
3157         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
3158         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
3159         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
3160         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
3161         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
3162         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
3163         `XCHARSET_LEADING_BYTE' to make code-point.
3164         (latin_a_char_to_charset): New variable.
3165         (latin_a_char_to_byte1): New variable.
3166         (latin_a_char_to_byte2): New variable.
3167         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
3168         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
3169         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
3170
3171         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
3172         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
3173         (find_charsets_in_emchar_string): Likewise.
3174         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
3175
3176         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
3177         `int'.
3178         (decode_coding_iso2022): Likewise.
3179
3180         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
3181         of `unsigned char'.
3182
3183         * redisplay.c (redisplay_text_width_emchar_string): Use
3184         `Charset_ID' instead of `unsigned char'.
3185         (redisplay_frame_text_width_string): Likewise.
3186
3187         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
3188         `unsigned char'.
3189
3190         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
3191         instead of `unsigned char'.
3192         (face_cachel_charset_font_metric_info): Likewise.
3193
3194         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
3195         (get_non_ascii_char_table_value): Likewise.
3196         (get_char_table): Likewise.
3197         (put_char_table): Likewise.
3198         (map_over_other_charset): Likewise.
3199         (map_char_table): Likewise.
3200
3201         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
3202         instead of `unsigned char'.
3203
3204 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
3205
3206         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
3207         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
3208
3209         * mule-charset.c (leading_code_private_11): Don't define in
3210         UTF-2000.
3211
3212         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
3213         in UTF-2000 because it is not ported yet and not to use
3214         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
3215
3216 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
3217
3218         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
3219
3220 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3221
3222         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
3223         in UTF-2000.
3224
3225         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
3226         of unsigned char to store leading-byte.
3227
3228         * chartab.c (get_non_ascii_char_table_value): Don't use
3229         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
3230
3231         * file-coding.c (encode_coding_big5): Delete bogus implementation
3232         in UTF2000.
3233
3234         * character.h (LEADING_BYTE_*): Delete definition for
3235         non-UTF-2000.
3236         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
3237         (LEADING_BYTE_PREFIX_P): Deleted.
3238         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
3239         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
3240         (BUFBYTE_LEADING_BYTE_P): Deleted.
3241         (CHARSET_PRIVATE_P): Deleted unconditionally.
3242         (rep_bytes_by_first_byte): Deleted unconditionally.
3243         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
3244         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
3245         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3246         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
3247         (CHAR_FIELD2): Deleted.
3248         (CHAR_FIELD3): Deleted.
3249         (MAKE_CHAR): Delete definition for non-UTF-2000.
3250         (BREAKUP_CHAR_1_UNSAFE): Deleted.
3251         (breakup_char_1): New implementation.
3252         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
3253         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
3254
3255 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3256
3257         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
3258         condition.
3259
3260 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3261
3262         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
3263         (CHARSET_PRIVATE_P): Likewise.
3264         (XCHARSET_PRIVATE_P): Likewise.
3265         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
3266
3267         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
3268         UTF2000.
3269         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
3270
3271 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3272
3273         * character.h (LEADING_BYTE_*): Changed in UTF2000.
3274         (NUM_LEADING_BYTES): Changed from 128 to 256.
3275         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3276         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
3277         UTF2000.
3278         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3279
3280         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
3281         UTF2000.
3282         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
3283         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
3284         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
3285         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
3286         (Qchinese_cns11643_3): New variable in UTF2000.
3287         (Qchinese_cns11643_4): New variable in UTF2000.
3288         (Qchinese_cns11643_5): New variable in UTF2000.
3289         (Qchinese_cns11643_6): New variable in UTF2000.
3290         (Qchinese_cns11643_7): New variable in UTF2000.
3291         (syms_of_mule_charset): Define `chinese-cns11643-3',
3292         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3293         and `chinese-cns11643-7' in UTF2000.
3294         (vars_of_mule_charset): Initialize
3295         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
3296         + 1 in UTF2000.
3297         (complex_vars_of_mule_charset): Setup charset
3298         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
3299         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
3300
3301 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3302
3303         * mule-charset.c: Move setting for `leading-code-private-11' from
3304         `syms_of_mule_charset' to `vars_of_mule_charset'.
3305
3306 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3307
3308         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
3309         and `NUM_LEADING_BYTES' in assert.
3310
3311 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3312
3313         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
3314         instead of 128.
3315         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
3316         `NUM_LEADING_BYTES' instead of 128.
3317
3318 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3319
3320         * mule-charset.h (charset_by_leading_byte): Use
3321         `NUM_LEADING_BYTES' instead of 128.
3322         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
3323
3324         * mule-charset.c (charset_by_leading_byte): Use
3325         `NUM_LEADING_BYTES' instead of 128.
3326         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
3327
3328         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
3329         128.
3330
3331 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
3332
3333         * mule-charset.c (syms_of_mule_charset): Update to
3334         0.4 (Shin-Imamiya).
3335
3336 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
3337
3338         * file-coding.c (encode_coding_sjis): New implementation for
3339         UTF2000.  (decode_coding_sjis): Ditto.
3340
3341 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3342
3343         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
3344         Don't define in UTF2000.
3345
3346         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
3347         defined.
3348
3349         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3350         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
3351         MULE.
3352
3353 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3354
3355         * config.h.in (CHAR_IS_UCS4): New macro.
3356
3357         * mule-charset.c (rep_bytes_by_first_byte): Modify for
3358         conventional MULE representation.
3359         (syms_of_mule_charset): Update to 0.3 (Imamiya).
3360
3361         * mule-charset.h: Reverted to original.
3362
3363         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3364         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
3365         "mule-charset.h" if CHAR_IS_UCS4 is defined.
3366
3367         * character.h: New file.
3368
3369         * file-coding.c (Fmake_coding_system): Set 1 to
3370         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
3371         defined.
3372         (encode_coding_no_conversion): New implementation for UTF2000.
3373
3374         * file-coding.h (struct Lisp_Coding_System): Add new member
3375         `fixed.size'.
3376
3377 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
3378
3379         * file-coding.c (decode_coding_iso2022): Code-point arguments of
3380         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
3381         (encode_coding_iso2022): New implementation for UTF2000.
3382
3383 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3384
3385         * mule-canna.c (c2mu): New implementation for UTF2000.
3386         (m2c): Likewise.
3387
3388 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3389
3390         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
3391
3392 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3393
3394         * file-coding.c (reset_encoding_stream): Set 0 to
3395         `str->iso2022.current_char_boundary' in UTF2000.
3396         (encode_utf8): Don't define in UTF2000.
3397         (encode_coding_utf8): New implementation for UTF-8 representation
3398         of UTF2000.
3399         (complex_vars_of_file_coding): Define coding-system `utf-8'.
3400
3401 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3402
3403         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
3404
3405         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
3406         UTF2000.
3407         (REP_BYTES_BY_FIRST_BYTE): Likewise.
3408
3409         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
3410
3411         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
3412         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
3413         as UTF-8 in UTF2000.
3414         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
3415         (non_ascii_valid_char_p): Don't define in UTF2000.
3416         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
3417         (Lstream_get_emchar_1): Likewise.
3418         (utf-2000-version): New variable in UTF2000.
3419
3420         * lread.c (read_escape): Add new reader `u'.
3421
3422         * insdel.c (three_to_one_table): Don't define in UTF2000.
3423         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
3424         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
3425         UTF2000.
3426         (bytind_to_bufpos_func): Likewise.
3427         (buffer_mule_signal_inserted_region): Likewise.
3428         (vars_of_insdel): Don't initialize `three_to_one_table'.
3429         (init_buffer_text): Use `buf->text->mule_size' instead of
3430         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
3431         UTF2000.
3432
3433         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
3434         UTF-8 representation in UTF2000.
3435         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
3436         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
3437         (decode_coding_iso2022): Don't define local variable `lb' in
3438         UTF2000; don't use LEADING_BYTE in UTF2000; use
3439         `DECODE_ADD_UCS_CHAR' in UTF2000.
3440         (convert_to_external_format): Decode as UTF-8 in UTF2000.
3441
3442         * config.h.in (UTF2000): New macro.
3443
3444         * buffer.h (struct buffer_text): Add new member `mule_size' and
3445         don't add `mule_shifter' and `mule_three_p' in UTF2000.
3446         (valid_char_p): Return always 1 in UTF2000.
3447         (MAX_EMCHAR_LEN): 6 in UTF2000.
3448         (three_to_one_table): Don't define in UTF2000.
3449         (real_bufpos_to_bytind): Modify for UTF-8 representation in
3450         UTF2000.
3451         (real_bytind_to_bufpos): Likewise.
3452
3453         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
3454
3455 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3456
3457         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
3458         representation change.
3459         (Vutf_2000_version): New variable.
3460         (leading_code_private_11): New variable.
3461         (syms_of_mule_charset): Add new variables `utf-2000-version' and
3462         `leading-code-private-11'.
3463
3464         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
3465         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
3466         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
3467         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
3468         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
3469         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
3470         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
3471         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
3472         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
3473         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
3474         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
3475         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
3476         (MIN_CHAR_GREEK): New macro.
3477         (MAX_CHAR_GREEK): New macro.
3478         (MIN_CHAR_CYRILLIC): New macro.
3479         (MAX_CHAR_CYRILLIC): New macro.
3480         (MIN_CHAR_HEBREW): New macro.
3481         (MAX_CHAR_HEBREW): New macro.
3482         (MIN_CHAR_THAI): New macro.
3483         (MAX_CHAR_THAI): New macro.
3484         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
3485         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
3486         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
3487         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
3488         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
3489         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
3490         (CHAR_FIELD2): New inline function.
3491         (CHAR_FIELD3): New inline function.
3492         (MULE_CHAR_PRIVATE_OFFSET): New macro.
3493         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
3494         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
3495         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
3496         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
3497         (MIN_CHAR_COMPOSITION): Likewise.
3498         (CHAR_LEADING_BYTE): Modified for character representation change.
3499         (MAKE_CHAR): Likewise.
3500
3501         * lisp.h (Vcharset_latin_iso8859_1): New variable.
3502         (Vcharset_greek_iso8859_7): Likewise.
3503         (Vcharset_cyrillic_iso8859_5): Likewise.
3504         (Vcharset_hebrew_iso8859_8): Likewise.
3505         (Vcharset_thai_tis620): Likewise.
3506         (Vcharset_katakana_jisx0201): Likewise.
3507
3508 2001-01-26  Martin Buchholz <martin@xemacs.org>
3509
3510         * XEmacs 21.2.43 "Terspichore" is released.
3511
3512 2001-01-25  Martin Buchholz  <martin@xemacs.org>
3513
3514         Type fiddling for window_config.saved_windows_count
3515         * window.c (struct window_config): 
3516         Make saved_windows_count member unsigned.
3517         * window.c (sizeof_window_config_for_n_windows): 
3518         Make parameter unsigned.
3519         * window.c (mark_window_config):
3520         * window.c (window_config_equal):
3521         * window.c (free_window_configuration):
3522         * window.c (Fset_window_configuration):
3523         * window.c (count_windows):
3524         * window.c (Fcurrent_window_configuration):
3525         * window.c (reinit_vars_of_window):
3526         Update all callers and users.
3527
3528 2001-01-25  Martin Buchholz  <martin@xemacs.org>
3529
3530         Alignment correctness for flexible arrays.
3531         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
3532         Make alignment-correct. Add interesting comments.
3533         * alloc.c (size_vector):
3534         * alloc.c (make_vector_internal):
3535         * alloc.c (make_bit_vector_internal):
3536         * alloc.c (sweep_bit_vectors_1):
3537         * fns.c (size_bit_vector):
3538         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
3539         * window.c (sizeof_window_config_for_n_windows): 
3540         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
3541
3542 2001-01-24  Martin Buchholz  <martin@xemacs.org>
3543
3544         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
3545
3546 2001-01-23  Andy Piper  <andy@xemacs.org>
3547
3548         * select.c (Fown_selection_internal): pass owned_p
3549
3550         * select-msw.c (mswindows_own_selection): New Signature.
3551
3552         * console.h (struct console_methods): add owned_p to
3553         _own_selection.
3554
3555         * select-x.c (x_own_selection): pass owned_p
3556         (hack_motif_clipboard_selection): use owned_p
3557         (vars_of_select_x): new variable -
3558         x_selection_strict_motif_ownership.
3559
3560 2001-01-23  Martin Buchholz  <martin@xemacs.org>
3561
3562         * specifier.h (specifier_data_offset): Remove pointless parens.
3563         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
3564
3565 2001-01-24  Martin Buchholz  <martin@xemacs.org>
3566
3567         Make Lisp_Object sizeof methods be alignment-correct.
3568         pdump must restore objects to the same alignment as the C compiler
3569         assumes.  It really matters on SGIs.
3570         * lstream.c (aligned_sizeof_lstream): New.
3571         (sizeof_lstream): Use aligned_sizeof_lstream.
3572         (Lstream_new): Likewise.
3573         * opaque.c (aligned_sizeof_opaque): New.
3574         (sizeof_opaque): Use aligned_sizeof_opaque.
3575         (make_opaque): Likewise.
3576         * specifier.c (aligned_sizeof_specifier): New.
3577         (sizeof_specifier): Use aligned_sizeof_specifier.
3578         (make_specifier_internal): Likewise.
3579
3580 2001-01-23  Martin Buchholz  <martin@xemacs.org>
3581
3582         * lstream.h (struct lstream): Use max_align_t for trailing data.
3583         * specifier.h (struct Lisp_Specifier): Likewise.
3584
3585 2001-01-22  Martin Buchholz  <martin@xemacs.org>
3586
3587         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
3588         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
3589         (CCL_SUSPEND): Likewise.
3590         (CCL_INVALID_CMD): Likewise.
3591         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
3592         (ccl_driver): Likewise.
3593         (CCL_WRITE_CHAR): Macro hygiene.
3594         (CCL_WRITE_STRING): Macro hygiene.
3595
3596 2001-01-22  Martin Buchholz  <martin@xemacs.org>
3597
3598         Port "portable" dumper to SunOS 4 and HP-UX.
3599         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
3600         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
3601         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
3602
3603 2001-01-22  Martin Buchholz  <martin@xemacs.org>
3604
3605         * lisp.h (ALIGNOF): A better definition for C++.
3606
3607 2001-01-20  Martin Buchholz  <martin@xemacs.org>
3608
3609         Macro hygiene.
3610         Fix printf warnings: int format, long int arg.
3611         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
3612         (PUSH_FAILURE_POINT): Use correct printf formats.
3613         (POP_FAILURE_POINT): Use correct printf formats.  
3614         Use do {...} while (0)
3615
3616 2001-01-20  Martin Buchholz <martin@xemacs.org>
3617
3618         * XEmacs 21.2.42 "Poseidon" is released.
3619
3620 2001-01-20  Martin Buchholz  <martin@xemacs.org>
3621
3622         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
3623
3624 2001-01-19  Martin Buchholz  <martin@xemacs.org>
3625
3626         De-kludgify FIXED_TYPE free list frobbing.
3627         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
3628         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
3629         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
3630         * alloc.c (Lisp_Free): New pseudo lisp object definition.
3631         * alloc.c (LRECORD_FREE_P): New.
3632         * alloc.c (MARK_LRECORD_AS_FREE): New.
3633         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
3634         * alloc.c (STRUCT_FREE_P): Deleted.
3635         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
3636         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
3637         * alloc.c (STRING_CHARS_FREE_P): New.
3638         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
3639         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
3640         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
3641         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
3642         * alloc.c (resize_string): Use new definitions.
3643         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
3644         * alloc.c (verify_string_chars_integrity): Use new definitions.
3645         * alloc.c (compact_string_chars): Use new definitions.
3646         * alloc.c: Update monster comments.
3647         * lrecord.h (lrecord_type): Add some new lrecord types for
3648         alloc.c's use.
3649
3650 2001-01-18  Martin Buchholz  <martin@xemacs.org>
3651
3652         Improve alignment hackery.
3653         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
3654         (max_align_t): Moved from opaque.h - general purpose.
3655         (ALIGN_PTR): Use size_t, not long.
3656         * opaque.h (max_align_t): Move to lisp.h.
3657
3658 2001-01-18  Norbert Koch  <nk@LF.net>
3659
3660         * gui.h: Fix and add prototypes to fix build problems.
3661
3662 2001-01-18  Martin Buchholz  <martin@xemacs.org>
3663
3664         temacs is going away, so `dump-temacs' is now a bad name.
3665         * .dbxrc (dump-temacs): Rename to `dmp'.
3666         * .gdbinit (dump-temacs): Rename to `dmp'.
3667
3668 2001-01-17  Andy Piper  <andy@xemacs.org>
3669
3670         * glyphs.c (print_image_instance): comment to make martin happy.
3671
3672         * glyphs-x.c (x_redisplay_widget): update faces after a frame
3673         change.
3674
3675         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
3676         activation.
3677         (mswindows_tab_control_redisplay): warning suppression.
3678
3679         * glyphs-widget.c (widget_update): re-write to cope with updated
3680         items.
3681         (widget_instantiate): use new gui_item functions.
3682         (tab_control_update): deleted.
3683         (progress_gauge_update): deleted.
3684         (image_instantiator_progress_guage): take out update reference.
3685         (image_instantiator_tree_view): ditto.
3686         (image_instantiator_tab_control): ditto.
3687
3688         * gui.c (widget_gui_parse_item_keywords): new function. Do things
3689         Right the new way.
3690         (gui_item_add_keyval_pair): re-write to cope with descriptors and
3691         return whether anything was changed.
3692         (update_gui_item_keywords): as it sounds.
3693
3694         * gui.h: declare widget_gui_parse_item_keywords.
3695
3696         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
3697         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
3698
3699 2001-01-17  Martin Buchholz <martin@xemacs.org>
3700
3701         * XEmacs 21.2.41 "Polyhymnia" is released.
3702
3703 2001-01-16  Didier Verna  <didier@xemacs.org>
3704
3705         * glyphs.c (image_instantiate): don't use fallbacks when
3706         instantiating a face's background pixmap by inheritance.
3707
3708 2001-01-14  Mike Sperber <mike@xemacs.org>
3709
3710         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
3711         Conditionalize accordingly.
3712
3713 2001-01-16  Martin Buchholz  <martin@xemacs.org>
3714
3715         * dumper.c (pdump_file_get): Fix a compiler warning.
3716
3717 2001-01-15  Martin Buchholz  <martin@xemacs.org>
3718
3719         Make Purify happy when pdumping.
3720         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
3721         iniitalizing all bits of new lisp object memory.
3722         * symbols.c (Fmake_local_variable): Likewise.
3723         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
3724         * symbols.c (Fdefvaralias): Likewise.
3725         * mule-charset.c (vars_of_mule_charset): Likewise.
3726
3727 2001-01-15  Martin Buchholz  <martin@xemacs.org>
3728         Add the `-nd' flag when running pre-dump operations under the debugger.
3729         * .dbxrc (run-temacs): Add `-nd'.
3730         * .dbxrc (update-elc): Likewise.
3731         * .dbxrc (dump-temacs): Likewise.
3732         * .gdbinit (run-temacs): Likewise.
3733         * .gdbinit (check-temacs): Likewise.
3734         * .gdbinit (update-elc): Likewise.
3735         * .gdbinit (dump-temacs): Likewise.
3736
3737 2001-01-14  Martin Buchholz  <martin@xemacs.org>
3738
3739         Allow building 64-bit executables on AIX with GNU malloc, e.g.
3740         export OBJECT_MODE=64
3741         configure --pdump --use-union-type=no
3742         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
3743         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
3744
3745         * miscplay.c (sndcnv8U_2mono):
3746         Avoid two uses of `++' in the same expression.
3747         Suppresses a GCC warning.
3748
3749 2001-01-13  Martin Buchholz  <martin@xemacs.org>
3750
3751         Make sure future compilers don't miscompile alloc.c.
3752         * alloc.c:
3753         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
3754         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
3755
3756 2001-01-12  Martin Buchholz  <martin@xemacs.org>
3757
3758         * dumper.c: A little post-pdump-rename comment fixup.
3759
3760 2001-01-09  Jerry James  <james@eecs.ku.edu>
3761
3762         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
3763
3764 2001-01-13  Martin Buchholz  <martin@xemacs.org>
3765
3766         * *.[ch]: Globally rename symbols using the following `pdump-rename'
3767         script:
3768         #!/bin/sh
3769         replace_symbol () {
3770           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
3771         }
3772
3773         replace_symbol pdump_wire_lists pdump_weak_object_chains
3774         replace_symbol pdump_wire_list dump_add_weak_object_chain
3775
3776         replace_symbol pdump_wires pdump_root_objects
3777         replace_symbol pdump_wire dump_add_root_object
3778
3779         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
3780         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
3781
3782         replace_symbol dumpstructinfos pdump_root_struct_ptrs
3783         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
3784         replace_symbol dumpstructinfo pdump_root_struct_ptr
3785         replace_symbol dumpstruct dump_add_root_struct_ptr
3786
3787         replace_symbol dumpopaque dump_add_opaque
3788         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
3789         replace_symbol dumpopaqueinfos pdump_opaques
3790         replace_symbol dumpopaqueinfo pdump_opaque
3791
3792         replace_symbol nb_structdump nb_root_struct_ptrs
3793         replace_symbol nb_opaquedump nb_opaques
3794
3795         replace_symbol align_table pdump_align_table
3796         replace_symbol dump_header pdump_header
3797
3798         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
3799         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
3800
3801
3802 2001-01-12  Martin Buchholz  <martin@xemacs.org>
3803
3804         * s/aix4.h: Keep the C for AIX compiler from overaggressively
3805         optimizing bytecount_to_charcount().
3806
3807 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
3808
3809         * config.h.in:
3810         (HAVE_DLFCN_H): Removed.
3811         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
3812
3813 2001-01-06  Martin Buchholz  <martin@xemacs.org>
3814
3815         Portable dumper maintainability improvements.
3816         * alloc.c (staticpro):
3817         * alloc.c (staticpro_nodump):
3818         * alloc.c (garbage_collect_1):
3819         * alloc.c (reinit_alloc_once_early):
3820         * alloc.c (init_alloc_once_early):
3821         * alloc.c: Move dumper functions to alloc.c.
3822         * dumper.c (pdump_backtrace):
3823         * dumper.c (pdump_dump_structs):
3824         * dumper.c (pdump_dump_opaques):
3825         * dumper.c (pdump_dump_rtables):
3826         * dumper.c (pdump_dump_wired):
3827         * dumper.c (pdump):
3828         * dumper.c (pdump_load_check):
3829         * dumper.c (pdump_load_finish):
3830         * dumper.c (pdump_file_unmap):
3831         * dumper.c (pdump_file_get):
3832         * dumper.c (pdump_resource_free):
3833         * dumper.c (pdump_resource_get):
3834         * dumper.c (pdump_file_free):
3835         * dumper.c (pdump_file_try):
3836         * dumper.c (pdump_load):
3837         Remove fixed size limits on staticpro(), staticpro_nodump(),
3838         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
3839         Remove custom code for dumping lrecord_implementations_table - use
3840         dumpopaque instead.
3841         Remove (most of the) custom code for dumping staticpros - dump it
3842         like any other dynarr.
3843
3844         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
3845         * dumper.c: Moved functions from alloc.c.
3846         * alloc.c (dumpstruct): Moved to dumper.c.
3847         * alloc.c (dumpopaque): Likewise.
3848         * alloc.c (pdump_wire): Likewise.
3849         * alloc.c (pdump_wire_list): Likewise.
3850
3851         * lisp.h (Dynarr_sizeof): New.
3852         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
3853         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
3854         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
3855
3856         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
3857         * lisp.h (dumpopaque): ditto.
3858         * lisp.h (pdump_wire): ditto.
3859         * lisp.h (pdump_wire_list): ditto.
3860
3861 2001-01-09  Martin Buchholz  <martin@xemacs.org>
3862
3863         * make-src-depend (PrintPatternDeps):
3864         Use `sort' to make output independent of perl version.
3865
3866 2001-01-08  Martin Buchholz  <martin@xemacs.org>
3867
3868         Port to Netbsd 1.5.
3869         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
3870         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
3871
3872 2001-01-03  Didier Verna  <didier@xemacs.org>
3873
3874         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
3875         that `focus_frame' is alive before thinking of calling
3876         `redisplay_redraw_cursor' on it.
3877
3878 2001-01-08  Martin Buchholz <martin@xemacs.org>
3879
3880         * XEmacs 21.2.40 is released.
3881
3882 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
3883
3884         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
3885
3886 2001-01-06  Martin Buchholz  <martin@xemacs.org>
3887
3888         * alloc.c (dbg_valmask): Make const.
3889         * alloc.c (dbg_typemask): Make const.
3890         * alloc.c (dbg_USE_UNION_TYPE): Make const.
3891         * alloc.c (dbg_valbits): Make const.
3892         * alloc.c (dbg_gctypebits): Make const.
3893
3894 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
3895
3896         * redisplay-x.c (x_bevel_area):
3897         redisplay.h (struct rune):
3898         Typo fixes in comments.
3899
3900 2001-01-05  Andy Piper  <andy@xemacs.org>
3901
3902         * glyphs-x.c (x_redisplay_widget): use size changed for offset
3903         adjustment.
3904
3905         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
3906
3907 2001-01-05  Martin Buchholz  <martin@xemacs.org>
3908
3909         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
3910
3911         * mule-ccl.c (stack_idx_of_map_multiple):
3912         Non const global data must not be initialized!
3913         Found by MIYASHITA Hisashi.
3914
3915 2001-01-02  Andy Piper  <andy@xemacs.org>
3916
3917         * frame.c (change_frame_size): make sure frame size is always
3918         marked as changed.
3919
3920         * glyphs.c (image_instance_layout): minor code reuse.
3921
3922         * window.c (Fcurrent_window_configuration): revert previous
3923         change.
3924
3925 2001-01-02  Martin Buchholz  <martin@xemacs.org>
3926
3927         * glyphs.h:
3928         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
3929
3930 2000-12-31  Andy Piper  <andy@xemacs.org>
3931
3932         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
3933         when widget gets unmapped.
3934
3935         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
3936         function. Make sure widgets losing focus don't just drop it.
3937         (handle_focus_event_1): record the widget with focus.
3938
3939 2000-12-31  Andy Piper  <andy@xemacs.org>
3940
3941         * window.c (allocate_window): use
3942         make_image_instance_cache_hash_table.
3943         (make_dummy_parent): ditto.
3944         (Fset_window_configuration): ditto.
3945
3946         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
3947
3948         * glyphs.c (process_image_string_instantiator): use
3949         INSTANTIATOR_TYPE.
3950         (get_image_instantiator_governing_domain): ditto.
3951         (normalize_image_instantiator): ditto.
3952         (instantiate_image_instantiator): ditto.
3953         (make_image_instance_1): ditto.
3954         (image_instantiate): ditto. Key on glyph *and* instantiator type.
3955         (instantiator_eq_equal): new function for use with instance hash
3956         tables.
3957         (instantiator_eq_hash): ditto.
3958         (make_image_instance_cache_hash_table): create a suitable hash
3959         table for storing image instances.
3960
3961         * elhash.h (hash_table_weakness): new internal weakness type
3962         HASH_TABLE_KEY_CAR_VALUE_WEAK.
3963         declare new functions.
3964
3965         * elhash.c (finish_marking_weak_hash_tables): introduce yet
3966         another weakness type for glyphs.
3967         (make_standard_lisp_hash_table): new function split out from
3968         make_general_lisp_hash_table.
3969         (make_lisp_hash_table): call make_standard_lisp_hash_table.
3970         (hash_table_instantiate): ditto.
3971         (Fmake_hash_table): ditto.
3972
3973 2000-12-31  Martin Buchholz <martin@xemacs.org>
3974
3975         * XEmacs 21.2.39 is released.
3976
3977 2000-12-29  Andy Piper  <andy@xemacs.org>
3978
3979         * menubar.c (menubar_visible_p_changed): signal the frame changed.
3980
3981         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
3982         the frame has changed so that we pick up geometry changes such as
3983         menubar visibility.
3984
3985 2000-12-28  Andy Piper  <andy@xemacs.org>
3986
3987         * lastfile.c (my_ebss): make a char array so we can pad the
3988         bss. Fixes cygwin unexec.
3989
3990         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
3991
3992 2000-12-26  Andy Piper  <andy@xemacs.org>
3993
3994         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
3995         comments and try and be more precise about a non-/SIGIO world.
3996         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
3997         SIGIO.
3998
3999         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
4000         we don't normalize to zero width or height.
4001
4002 2000-12-24  Andy Piper  <andy@xemacs.org>
4003
4004         * Makefile.in.in (ldflags): add -mwindows when appropriate.
4005
4006 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
4007
4008         * s/sco5.h: SCO 5 has pty support.
4009
4010 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
4011
4012         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
4013         input-method-xlib.c contains whole contents of input-method-xfs.c,
4014         so we can use input-method-xlib.c's code for USE_XFONTSET
4015         using #ifdefs.
4016         * input-method-xfs.c: removed.
4017
4018 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
4019
4020         * file-coding.h (enum coding_category_type): reorder enumerators to
4021         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
4022         (now one greater than largest real coding_category_type enumerator).
4023         * file-coding.c (coding_category_symbol, coding_category_by_priority,
4024         coding_category_system, fcd_descriptihon_1, decode_coding_category,
4025         Fcoding_category_list, Fset_coding_priority_list,
4026         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
4027         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
4028
4029 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
4030
4031         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
4032         * redisplay-output.c (redisplay_output_window): Clear top of window
4033         when face is changed.
4034         * redisplay-x.c (x_redraw_exposed_window): Call
4035         redisplay_clear_top_of_window.
4036         * redisplay.h: Publish redisplay_clear_top_of_window.
4037
4038 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
4039
4040         * buffer.c (Fkill_buffer): Map over all devices.
4041         * window.c (window_loop): Remove UNSHOW_BUFFER code.
4042         (list_windows): New function.
4043         (list_all_windows): Ditto.
4044         (Freplace_buffer_in_windows): Use them.
4045
4046 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4047
4048         * database.c (berkdb_subtype): Recognize new subtype `queue'.
4049         (Fopen_database): Use `db_create' instead of `db_open'.
4050         (syms_of_database): Initialize Qqueue.
4051
4052 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
4053
4054         * buffer.c (common_init_complex_vars_of_buffer): Initialize
4055         buffer_local_face_property.
4056         * buffer.h (struct buffer): New member buffer_local_face_property.
4057         * window.c (Fset_window_buffer):  Mark window's face as changed
4058         when buffer has buffer local face.
4059         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
4060         * objects.c (color_after_change): Set buffer_local_face_property
4061         when locale of face specifier is buffer.
4062         * objects.c (font_after_change): Ditto.
4063         * objects.c (face_boolean_after_change): Ditto.
4064         * glyphs.c (image_after_change): Ditto.
4065
4066 2000-12-09  Dan Holmsand  <dan@eyebee.com>
4067
4068         * nt.c (mswindows_fstat): Report file permissions, volume serial
4069         number, etc. Code adapted from FSF Emacs 20.7.
4070
4071 2000-12-09  Dan Holmsand  <dan@eyebee.com>
4072
4073         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
4074         of stat when we don't have symbolic links, to make sure
4075         mswindows_stat is called on mswindows.
4076
4077 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
4078
4079         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
4080
4081 2000-12-12  Martin Buchholz  <martin@xemacs.org>
4082
4083         * doprnt.c (emacs_doprnt_1): More printing fixes.
4084         Make printing of numbers compatible with libc and FSF Emacs.
4085         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
4086         Use the system printf to do most of the hard work of formatting,
4087         instead of doprnt_1().
4088         Calculate memory to allocate for format string.
4089         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
4090         (doprnt_1): Cleaner code and documentation.
4091
4092 2000-12-01  Jerry James  <james@eecs.ukans.edu>
4093
4094         * Makefile.in.in: Use the loop variable to install headers.
4095
4096 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4097
4098         * window.c (Fsplit_window): Don't invalidate face cache.
4099
4100 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4101
4102         * minibuf.c (Fall_completions): Undo the previous change
4103         which removed checking elements start with space.
4104
4105 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
4106
4107         * mule-canna.c: Didier suppression.
4108
4109 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
4110
4111         * mule-canna.c: rename static unsigned char buf[] to key_buffer
4112         (warning suppression).  Add English comment translations.
4113
4114 2000-12-05  Martin Buchholz  <martin@xemacs.org>
4115
4116         * unexelfsgi.c (unexec): Better test for mmap failure.
4117
4118 2000-12-05  Martin Buchholz <martin@xemacs.org>
4119
4120         * XEmacs 21.2.38 is released.
4121
4122 2000-12-05  Martin Buchholz  <martin@xemacs.org>
4123
4124         * redisplay.c (bar-cursor): Make a user variable.
4125
4126         * symsinit.h: Add init_postgresql_from_environment.
4127
4128 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4129
4130         * regex.c: Convert to clean C.
4131
4132 2000-12-05  Dan Holmsand  <dan@eyebee.com>
4133
4134         * realpath.c:
4135         Don't #include sysfile.h. Revert to duplicating PATH_MAX
4136         initialization.
4137         (sys_readlink): renamed to system_readlink to avoid conflict with
4138         the other sys_readlink.
4139
4140 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
4141
4142         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
4143
4144 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
4145
4146         * postgresql.c (init_postgresql_from_environment): new function.
4147         (vars_of_postgresql): Move code initializing Lisp variables out and
4148         into init_postgresql_from_environment.
4149         emacs.c (main_1): Call init_postgresql_from_environment if and only
4150         if running a dumped XEmacs.
4151
4152 2000-08-31  Dan Holmsand  <dan@eyebee.com>
4153
4154         * buffer.c: Make find-file-compare-truenames default to true on
4155         windows.
4156
4157         * realpath.c (win32_abs_start):
4158         (cygwin_readlink):
4159         (win32_readlink): New functions.
4160         (xrealpath): Return really real filenames on windows.
4161
4162         * fileio.c (Ffile_truename): Make file-truename work on windows.
4163
4164 2000-11-29  Didier Verna  <didier@xemacs.org>
4165
4166         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
4167         * faces.c (update_face_cachel_data): use it.
4168         * faces.c (add_face_cachel): use it. Complete background pixmap
4169         frobbing in face cache if `update_face_cachel_data' has not done so.
4170
4171 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
4172
4173         * search.c (string_match_1): Don't set last_thing_searched
4174         when search failed.
4175
4176 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
4177
4178         * buffer.c: Include casetab.h
4179         (common_init_complex_vars_of_buffer): Use new case-table object.
4180         * buffer.h: Include casetab.h
4181         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
4182         (DOWNCASE_TABLE_OF): Ditto.
4183         * bufslots.h: Remove char-tables and add case-table.
4184         * casetab.c: Include casetab.h
4185         (CASE_TABLE_P): Removed.
4186         (mark_case_table): New function.
4187         (allocate_case_table): New function.
4188         (Fcase_table_p): Use new case-table.
4189         (case_table_char): New function.
4190         (Fget_case_table): Ditto.
4191         (Fput_case_table): Ditto.
4192         (Fput_case_table_pair): Ditto.
4193         (Fcopy_case_table): Ditto.
4194         (Fcurrent_case_table): Return case-table.
4195         (Fstandard_case_table): Return case-table.
4196         (Fset_case_table): Fix doc-string.
4197         (set_case_table): Use case-table
4198         (syms_of_casetab): DEFSUBR new functions.
4199         (complex_vars_of_casetab): Set up standard case-table.
4200         * casetab.h: New file.
4201         * editfns.c: Include casetab.h
4202         (Fcompare_buffer_substrings): Use case-table.
4203         * inline.c: Include casetab.h
4204         * lisp.h: Remove bogus extern.
4205         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
4206         * search.c: Include casetab.h
4207         (TRANSLATE_ASCII): Removed.
4208         (TRANSLATE): Unconditionally translate character.
4209         (looking_at_1): Use case-table.
4210         (string_match_1): Ditto.
4211         (fast_string_match): Ditto.
4212         (search_command): Ditto.
4213         (search_buffer): Separate boyer_moore.  Check whether
4214         boyer_moore is possible.
4215         (simple_search): New function.
4216         (boyer_moore): Separated from search_buffer. Translate char.
4217
4218 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
4219
4220         * regex.c (RE_TR_ASCII): Removed.
4221         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
4222         (PATFETCH): Call PATFETCH_RAW.
4223         (PATFETCH_RAW): Fetch Emchar.
4224         (PATUNFETCH): Decrement charptr.
4225         (GET_BUFFER_SPACE): Rename b to buf_end.
4226         (BUF_PUSH): Ditto.
4227         (BUF_PUSH_2): Ditto.
4228         (BUF_PUSH_3): Ditto.
4229         (EXTEND_BUFFER): Ditto.
4230         (SET_LIST_BIT): Ditto.
4231         (regex_compile): Ditto.  Translate non ASCII char.
4232         (compile_range): Ditto.
4233         (re_search_2): Ditto.
4234         (re_match_2_internal): Compare Emchar.
4235         (bcmp_translate): Ditto.
4236
4237 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
4238
4239         * lisp.h (basic char/int typedefs):  comment improvement.
4240
4241 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
4242
4243         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
4244         unstomp inhibit_site_lisp.  Improve comments.
4245
4246 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
4247
4248         * mule-charset.c (Fcharset_property):  improve type checking, comments.
4249
4250 2000-11-28  Andy Piper  <andy@xemacs.org>
4251
4252         * redisplay-output.c (redisplay_output_subwindow): make sure we do
4253         clipped display for windows in the gutter also.
4254         (redisplay_display_boxes_in_window_p): change semantics of return
4255         codes to be more intuitive.
4256
4257         * gutter.h: declare display_boxes_in_gutter_p.
4258
4259         * gutter.c (display_boxes_in_gutter_p): new function for
4260         redisplay.
4261
4262 2000-11-22  Andy Piper  <andy@xemacs.org>
4263
4264         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
4265         autodetect domain.
4266
4267 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
4268
4269         * callproc.c (Fold_call_process_internal):
4270         * gpm.c (Freceive_gpm_event):
4271         (tty_get_foreign_selection): Might be just warning supression.
4272         * fileio.c (Fwrite_region_internal):
4273         (Fset_visited_file_modtime):
4274         * keymap.c (event_matches_key_specifier_p):
4275         Initialize GCPROed variable.
4276
4277         * menubar-x.c (command_builder_find_menu_accelerator):
4278         Initialize before use.
4279
4280 2000-11-23  Andy Piper  <andy@xemacs.org>
4281
4282         * unexcw.c (unexec): make the resulting executable executable.
4283
4284 2000-11-21  Martin Buchholz  <martin@xemacs.org>
4285
4286         * doc.c (get_doc_string):
4287         Use size_t, not int, for result of XSTRING_LENGTH.
4288
4289         * cmds.c (Fdelete_char):
4290         * cmds.c (Fpoint_at_eol):
4291         * cmds.c (Fself_insert_command):
4292         Use EMACS_INT, not int, for result of XINT.
4293         Someday, someone will want to insert more than 2**31 identical characters.
4294
4295         * cmds.c (Fdelete_char):
4296         * cmds.c (Fdelete_backward_char):
4297         * syntax.c (Fforward_word):
4298         * syntax.c (Fforward_comment):
4299         Make COUNT argument optional, for consistency with forward-char et al.
4300
4301 2000-11-22  Martin Buchholz  <martin@xemacs.org>
4302
4303         * lisp.h:
4304         * print.c (long_to_string):
4305         Return a useful value: the pointer at end of data written.
4306
4307         * doprnt.c:
4308         Use `static const char * const' for constant strings.
4309         (union printf_arg): Delete `i', `ui' members.
4310         (get_doprnt_args):
4311         (emacs_doprnt_1):
4312         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
4313         Do all printf-ing via the `l' specifier.
4314         Use EMACS_INT instead of int.
4315         Optimize.
4316
4317 2000-11-20  Didier Verna  <didier@xemacs.org>
4318
4319         * faces.c (update_face_cachel_data): don't frob the background
4320         pixmap when the window is being created. The face is needed but
4321         does not exist yet.
4322
4323 2000-11-20  Andy Piper  <andy@xemacs.org>
4324
4325         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
4326         messing with a debug environment.
4327
4328 2000-11-20  Martin Buchholz  <martin@xemacs.org>
4329
4330         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
4331
4332 2000-11-20  Martin Buchholz  <martin@xemacs.org>
4333
4334         * casetab.c (Fcase_table_p): Fix compile error and crash.
4335
4336 2000-11-18  Philip Aston  <philipa@mail.com>
4337
4338         * s/cygwin32.h: Cygwin has SVR4-like pty support.
4339
4340 2000-11-18  Martin Buchholz  <martin@xemacs.org>
4341
4342         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
4343         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
4344
4345 2000-11-17  Martin Buchholz  <martin@xemacs.org>
4346
4347         * config.h.in: Define HAVE_ELF_H if elf.h exists.
4348         * unexelf.c: Use HAVE_ELF_H.
4349         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
4350         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
4351         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
4352         Greg Harrington <greg_harrington@hotmail.com> provided a machine
4353         for testing.
4354         So this is an unexelfsgi.c from a different line of development.
4355
4356 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
4357
4358         * regex.c (RE_TR_ASCII): New function.
4359         (RE_TRANSLATE): Call it.
4360
4361 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
4362
4363         * buffer.h (TRT_TABLE_OF): Remove assert.
4364         (IN_TRT_TABLE_DOMAIN): Removed.
4365
4366 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
4367
4368         * free-hook.c (log_gcpro):
4369         (show_gcprohist): Add support for GCPRO5.
4370
4371 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
4372
4373         * emacs.c (main_1): Improve -sd error message when --pdump=no.
4374
4375 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
4376
4377         * symeval.h: Declare flush_all_buffer_local_cache.
4378
4379         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
4380         (flush_buffer_local_cache): Added.
4381         (flush_all_buffer_local_cache): Added.
4382
4383         * lrecord.h: Remove unused XD_LO_RESET_NIL.
4384
4385         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
4386         (pdump_dump_data): Ditto.
4387         (pdump_reloc_one): Ditto.
4388         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
4389         before dumping.
4390
4391
4392 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
4393
4394         * buffer.c: Remove if 0'ed entry.
4395         * buffer.h: Rewrite TRT to use char-table.
4396         * bufslots.h: Remove mirror tables.
4397         * casetab.c: Remove mirror tables.
4398         (CASE_TABLE_P): New macro.
4399         (Fcase_table_p): Element of a case table is string or char-table.
4400         (make_mirror_trt_table): Removed.
4401         (set_case_table): Setup char-table from strings for backward
4402         compatibility.
4403         * dired.c (Fdirectory_files):
4404         * dired-msw.c: (mswindows_get_files):
4405         * lisp.h: Change prototype of re_pattern_buffer.
4406         * regex.c: (RE_TRANSLATE): New macro.
4407         (TRANSLATE_P): Ditto.
4408         Change translate to type RE_TRANSLATE_TYPE.
4409         * regex.h: Define RE_TRANSLATE_TYPE
4410         * search.c (TRANSLATE): New macro.
4411         (TRANSLATE_ASCII): New macro.
4412         Translate table is changed to Lisp_Object.
4413         (signal_failure): Inhibit return.
4414
4415 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
4416
4417         * device-msw.c:
4418         * eldap.c:
4419         * event-Xt.c:
4420         * event-stream.c:
4421         * print.c:
4422         Do UNGCPRO before return.
4423
4424 2000-11-14  Martin Buchholz <martin@xemacs.org>
4425
4426         * XEmacs 21.2.37 is released.
4427
4428 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
4429
4430         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
4431         Add comments about discarded return value.
4432
4433 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
4434
4435         * callint.c:
4436         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
4437
4438 2000-10-27  Andy Piper  <andy@xemacs.org>
4439
4440         * gutter.c (Fset_default_gutter_position): default left and right
4441         gutters to visible.
4442         (calculate_gutter_size): calculate resonable heuristic for left
4443         and right gutter sizes.
4444         (specifier_vars_of_gutter): change left and right gutter sizes to
4445         autodetect.
4446         (calculate_gutter_size_from_display_lines): new function.
4447         (output_gutter): check for resizing on left and right gutters.
4448         (clear_gutter): don't special case top and left gutters.
4449         (specifier_vars_of_gutter): use new signature for
4450         set_specifier_caching.
4451
4452         * glyphs-x.c (x_redisplay_widget): spelling fix.
4453         * glyphs.c (specifier_vars_of_glyphs):
4454         * menubar.c (specifier_vars_of_menubar):
4455         * redisplay.c (specifier_vars_of_redisplay):
4456         * toolbar.c (specifier_vars_of_toolbar):
4457         * window.c (specifier_vars_of_window):
4458         * scrollbar.c (specifier_vars_of_scrollbar):
4459         (complex_vars_of_scrollbar): use new signature for
4460         set_specifier_caching.
4461
4462         * specifier.c (set_specifier_caching): include recompute flag.
4463         (recompute_one_cached_specifier_in_window): always recompute if
4464         flag set.
4465         (recompute_one_cached_specifier_in_frame): ditto.
4466
4467         * specifier.h (struct specifier_caching): add recompute flag.
4468
4469 2000-10-24  Andy Piper  <andy@xemacs.org>
4470
4471         * unexcw.c (copy_executable_and_dump_data_section): add new
4472         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
4473         5.0 happy.
4474
4475 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
4476
4477         * console-x.h (x_device): New member modifier_release_time.
4478         * event-Xt.c (x_handle_sticky_modifiers):
4479         Bound interval modifier keys are sticky.
4480         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
4481         * events.h: extern it.
4482
4483 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
4484
4485         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
4486
4487 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
4488
4489         * event-stream.c (execute_command_event): Preserve current_events
4490         and the like when event is misc-user-event.
4491         Inhibit quit during the call to maybe_echo_keys.
4492
4493 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
4494
4495         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
4496         symlink when buffer is killed.
4497         (inhibit_clash_detection): New variable.
4498
4499 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
4500
4501         * console.c (Fset_input_method): Trigger redisplay on tty.
4502
4503 2000-11-07  Martin Buchholz  <martin@xemacs.org>
4504
4505         * process.c (Fprocess_status): Revert to previous behavior:
4506         (process-status "nosuchprocess") ==> nil
4507
4508 2000-11-06  Martin Buchholz  <martin@xemacs.org>
4509
4510         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
4511         Work around another GCC 2.95.2 optimizer bug.
4512
4513 2000-11-02  Martin Buchholz  <martin@xemacs.org>
4514
4515         * process.c (Fget_process): Use LIST_LOOP_2.
4516         (kill_buffer_processes): Use LIST_LOOP_2.
4517
4518         * minibuf.c (Fall_completions):
4519         Delete old non-functional code for FSF fourth argument.
4520
4521         * frame.c (frame_matches_frame_spec):
4522         Renamed from `frame_matches_frametype'.  Update all callers.
4523         (device_matches_device_spec):
4524         Renamed from 'device_matches_console_spec'.  Update all callers.
4525
4526         * doc.c (Fsubstitute_command_keys):
4527         Remove buffer overflow crash.  Small code cleanups.
4528
4529         * casetab.c (check_case_table): Simpler code.
4530
4531         * window.c (Freplace_buffer_in_windows):
4532         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
4533         (and similar implementation) as Fdelete_windows_on.
4534         Update all callers.
4535
4536         * alloc.c (Fmake_list):
4537         * alloc.c (make_vector):
4538         * alloc.c (Fmake_vector):
4539         * alloc.c (make_bit_vector):
4540         * alloc.c (Fmake_bit_vector):
4541         * alloc.c (Fbit_vector):
4542         * alloc.c (Fmake_string):
4543         * alloc.c (Fpurecopy):
4544         * alloc.c (Fmemory_limit):
4545         * buffer.c:
4546         * buffer.c (Fget_buffer):
4547         * buffer.c (Fkill_buffer):
4548         * buffer.c (complex_vars_of_buffer):
4549         * bytecode.c (Fcompiled_function_stack_depth):
4550         * callint.c (Fprefix_numeric_value):
4551         * event-stream.c:
4552         * event-stream.c (Fread_key_sequence):
4553         * casetab.c:
4554         * casetab.c (Fcase_table_p):
4555         * casetab.c (check_case_table):
4556         * casetab.c (Fset_case_table):
4557         * casetab.c (Fset_standard_case_table):
4558         * chartab.c:
4559         * chartab.c (Fchar_table_type):
4560         * chartab.c (Freset_char_table):
4561         * chartab.c (Fget_char_table):
4562         * chartab.c (Fget_range_char_table):
4563         * chartab.c (Fput_char_table):
4564         * chartab.c (Fmap_char_table):
4565         * chartab.c (Fcategory_table_p):
4566         * chartab.c (Fcheck_category_at):
4567         * chartab.c (Fchar_in_category_p):
4568         * chartab.c (Fcategory_table):
4569         * chartab.c (Fcopy_category_table):
4570         * chartab.c (Fset_category_table):
4571         * chartab.c (Fcategory_designator_p):
4572         * chartab.c (Fcategory_table_value_p):
4573         * cmds.c (Fdelete_char):
4574         * cmds.c (Fdelete_backward_char):
4575         * cmds.c (Fself_insert_command):
4576         * cmds.c (Fself_insert_internal):
4577         * console.c (Fvalid_console_type_p):
4578         * console.c (Fcdfw_console):
4579         * console.c (Fconsole_type):
4580         * console.c (Fconsole_name):
4581         * console.c (Fconsole_device_list):
4582         * console.c (Fconsole_on_window_system_p):
4583         * data.c:
4584         * data.c (Feq):
4585         * data.c (Fold_eq):
4586         * data.c (Fsubr_interactive):
4587         * data.c (Fchar_to_int):
4588         * data.c (Fint_to_char):
4589         * data.c (Fsetcar):
4590         * data.c (Fsetcdr):
4591         * data.c (Fnumber_to_string):
4592         * data.c (Fstring_to_number):
4593         * data.c (Frem):
4594         * database.c (mark_database):
4595         * database.c (finalize_database):
4596         * database.c (Fdatabase_live_p):
4597         * database.c (Fdatabasep):
4598         * device-x.c (Fx_get_resource):
4599         * device.c (Fdfw_device):
4600         * dired.c:
4601         * dired.c (Ffile_name_completion):
4602         * dired.c (Ffile_name_all_completions):
4603         * dired.c (Fuser_name_completion):
4604         * dired.c (Fuser_name_completion_1):
4605         * dired.c (Fuser_name_all_completions):
4606         * doc.c (Fdocumentation):
4607         * doc.c (Fdocumentation_property):
4608         * doc.c (Fsubstitute_command_keys):
4609         * editfns.c:
4610         * editfns.c (Fchar_to_string):
4611         * editfns.c (Fstring_to_char):
4612         * editfns.c (Ftemp_directory):
4613         * editfns.c (Finsert_char):
4614         * editfns.c (Fbuffer_substring_no_properties):
4615         * editfns.c (Fnarrow_to_region):
4616         * editfns.c (Fchar_equal):
4617         * editfns.c (Fchar_Equal):
4618         * editfns.c (Ftranspose_regions):
4619         * emacs.c (Fdump_emacs):
4620         * eval.c (Fthrow):
4621         * eval.c (Fcommand_execute):
4622         * eval.c (Fautoload):
4623         * eval.c (Fbacktrace):
4624         * eval.c (Fbacktrace_frame):
4625         * events.c:
4626         * events.c (Fcopy_event):
4627         * events.c (Fcharacter_to_event):
4628         * events.c (Fevent_button):
4629         * events.c (Fevent_process):
4630         * extents.c:
4631         * extents.c (Fnext_extent_change):
4632         * extents.c (Fextent_property):
4633         * faces.c (Ffacep):
4634         * faces.c (Fmake_face):
4635         * file-coding.c:
4636         * file-coding.c (Fencode_shift_jis_char):
4637         * file-coding.c (Fencode_big5_char):
4638         * fileio.c (Ffile_name_directory):
4639         * fileio.c (Ffile_name_nondirectory):
4640         * fileio.c (Ffile_name_as_directory):
4641         * fileio.c (Fdirectory_file_name):
4642         * fileio.c (Ffile_truename):
4643         * fileio.c (Fsubstitute_in_file_name):
4644         * fileio.c (Ffile_modes):
4645         * fileio.c (Fset_file_modes):
4646         * fileio.c (Fset_default_file_modes):
4647         * fileio.c (Fverify_visited_file_modtime):
4648         * floatfns.c (Facos):
4649         * floatfns.c (Fasin):
4650         * floatfns.c (Fatan):
4651         * floatfns.c (Fcos):
4652         * floatfns.c (Fsin):
4653         * floatfns.c (Ftan):
4654         * floatfns.c (Fbessel_j0):
4655         * floatfns.c (Fbessel_j1):
4656         * floatfns.c (Fbessel_jn):
4657         * floatfns.c (Fbessel_y0):
4658         * floatfns.c (Fbessel_y1):
4659         * floatfns.c (Fbessel_yn):
4660         * floatfns.c (Ferf):
4661         * floatfns.c (Ferfc):
4662         * floatfns.c (Flog_gamma):
4663         * floatfns.c (Fexp):
4664         * floatfns.c (Fexpt):
4665         * floatfns.c (Flog):
4666         * floatfns.c (Flog10):
4667         * floatfns.c (Fsqrt):
4668         * floatfns.c (Fcube_root):
4669         * floatfns.c (Facosh):
4670         * floatfns.c (Fasinh):
4671         * floatfns.c (Fatanh):
4672         * floatfns.c (Fcosh):
4673         * floatfns.c (Fsinh):
4674         * floatfns.c (Ftanh):
4675         * floatfns.c (Fabs):
4676         * floatfns.c (Ffloat):
4677         * floatfns.c (Flogb):
4678         * floatfns.c (Fceiling):
4679         * floatfns.c (Ffloor):
4680         * floatfns.c (Fround):
4681         * floatfns.c (Ftruncate):
4682         * floatfns.c (Ffceiling):
4683         * floatfns.c (Fffloor):
4684         * floatfns.c (Ffround):
4685         * floatfns.c (Fftruncate):
4686         * fns.c (Fstring_equal):
4687         * fns.c (Fstring_lessp):
4688         * fns.c (concat2):
4689         * fns.c (concat3):
4690         * fns.c (vconcat2):
4691         * fns.c (vconcat3):
4692         * fns.c (Fsubstring):
4693         * fns.c (Fassoc):
4694         * fns.c (Fold_assoc):
4695         * fns.c (assoc_no_quit):
4696         * fns.c (Fassq):
4697         * fns.c (Fold_assq):
4698         * fns.c (assq_no_quit):
4699         * fns.c (Frassoc):
4700         * fns.c (Fold_rassoc):
4701         * fns.c (Frassq):
4702         * fns.c (Fold_rassq):
4703         * fns.c (rassq_no_quit):
4704         * fns.c (Fremassoc):
4705         * fns.c (remassoc_no_quit):
4706         * fns.c (Fremassq):
4707         * fns.c (remassq_no_quit):
4708         * fns.c (Fremrassoc):
4709         * fns.c (Fremrassq):
4710         * fns.c (remrassq_no_quit):
4711         * fns.c (Fsort):
4712         * fns.c (Fplist_get):
4713         * fns.c (Fplist_put):
4714         * fns.c (Fplist_remprop):
4715         * fns.c (Fplist_member):
4716         * fns.c (Flax_plist_get):
4717         * fns.c (Flax_plist_put):
4718         * fns.c (Flax_plist_remprop):
4719         * fns.c (Flax_plist_member):
4720         * fns.c (Fequal):
4721         * fns.c (Fold_equal):
4722         * fns.c (Frequire):
4723         * fns.c (Fbase64_encode_region):
4724         * fns.c (Fbase64_encode_string):
4725         * fns.c (Fbase64_decode_region):
4726         * frame.c:
4727         * frame.c (frame_matches_frame_spec):
4728         * frame.c (device_matches_device_spec):
4729         * frame.c (next_frame):
4730         * frame.c (previous_frame):
4731         * frame.c (Fnext_frame):
4732         * frame.c (Fprevious_frame):
4733         * frame.c (Fframe_property):
4734         * frame.c (Fset_frame_height):
4735         * frame.c (Fset_frame_size):
4736         * frame.h:
4737         * glyphs.c:
4738         * glyphs.c (if):
4739         * glyphs.c (decode_error_behavior_flag):
4740         * glyphs.c (Fmake_image_instance):
4741         * indent.c (Findent_to):
4742         * intl.c (Fignore_defer_gettext):
4743         * keymap.c (Fkeymapp):
4744         * keymap.c (Flookup_key):
4745         * lread.c:
4746         * lread.c (Fload_internal):
4747         * lread.c (Feval_buffer):
4748         * lread.c (Feval_region):
4749         * macros.c (Fexecute_kbd_macro):
4750         * marker.c (set_marker_internal):
4751         * marker.c (Fset_marker):
4752         * marker.c (set_marker_restricted):
4753         * marker.c (Fcopy_marker):
4754         * marker.c (noseeum_copy_marker):
4755         * menubar.c:
4756         * menubar.c (Fpopup_menu):
4757         * minibuf.c:
4758         * mule-charset.c (Fcharset_name):
4759         * mule-charset.c (Fchar_charset):
4760         * mule-charset.c (Fchar_octet):
4761         * mule-charset.c (Fsplit_char):
4762         * mule-wnnfns.c (Fwnn_open):
4763         * mule-wnnfns.c (Fwnn_dict_comment):
4764         * mule-wnnfns.c (Fwnn_quit_henkan):
4765         * mule-wnnfns.c (Fwnn_word_toroku):
4766         * mule-wnnfns.c (Fwnn_word_sakujo):
4767         * mule-wnnfns.c (Fwnn_word_use):
4768         * mule-wnnfns.c (Fwnn_hindo_set):
4769         * objects.c:
4770         * objects.c (Fmake_color_instance):
4771         * objects.c (Fmake_font_instance):
4772         * print.c (Fwrite_char):
4773         * process.c:
4774         * process.c (mark_process):
4775         * process.c (print_process):
4776         * process.c (get_process_from_usid):
4777         * process.c (Fprocessp):
4778         * process.c (Fprocess_live_p):
4779         * process.c (Fget_process):
4780         * process.c (Fget_buffer_process):
4781         * process.c (get_process):
4782         * process.c (Fprocess_id):
4783         * process.c (Fprocess_name):
4784         * process.c (Fprocess_command):
4785         * process.c (init_process_io_handles):
4786         * process.c (start_process_unwind):
4787         * process.c (Fstart_process_internal):
4788         * process.c (Fopen_multicast_group_internal):
4789         * process.c (Fset_process_window_size):
4790         * process.c (read_process_output):
4791         * process.c (send_process):
4792         * process.c (Fprocess_tty_name):
4793         * process.c (Fset_process_buffer):
4794         * process.c (Fprocess_buffer):
4795         * process.c (Fprocess_mark):
4796         * process.c (set_process_filter):
4797         * process.c (Fset_process_filter):
4798         * process.c (Fprocess_filter):
4799         * process.c (Fprocess_send_region):
4800         * process.c (Fprocess_send_string):
4801         * process.c (exec_sentinel):
4802         * process.c (Fset_process_sentinel):
4803         * process.c (Fprocess_sentinel):
4804         * process.c (status_notify):
4805         * process.c (Fprocess_status):
4806         * process.c (Fprocess_exit_status):
4807         * process.c (process_send_signal):
4808         * process.c (Fprocess_send_eof):
4809         * process.c (deactivate_process):
4810         * process.c (remove_process):
4811         * process.c (Fdelete_process):
4812         * process.c (kill_buffer_processes):
4813         * process.c (Fprocess_kill_without_query):
4814         * process.c (Fprocess_kill_without_query_p):
4815         * rangetab.c:
4816         * rangetab.c (Fget_range_table):
4817         * rangetab.c (Fput_range_table):
4818         * rangetab.c (Fremove_range_table):
4819         * rangetab.c (Fclear_range_table):
4820         * search.c:
4821         * search.c (Fskip_chars_forward):
4822         * search.c (Fskip_chars_backward):
4823         * search.c (Fskip_syntax_forward):
4824         * search.c (Fskip_syntax_backward):
4825         * search.c (search_command):
4826         * search.c (Freplace_match):
4827         * search.c (Fregexp_quote):
4828         * select.c (Fown_selection_internal):
4829         * select.c (Fselection_owner_p):
4830         * select.c (Fselection_exists_p):
4831         * select.c (Fget_selection_internal):
4832         * specifier.c:
4833         * symbols.c:
4834         * symbols.c (Fintern):
4835         * symbols.c (Fintern_soft):
4836         * symbols.c (Funintern):
4837         * symbols.c (Fapropos_internal):
4838         * symbols.c (Fset_default):
4839         * syntax.c:
4840         * syntax.c (Fsyntax_table_p):
4841         * syntax.c (Fcopy_syntax_table):
4842         * syntax.c (Fset_syntax_table):
4843         * syntax.c (Fchar_syntax):
4844         * syntax.c (syntax_match):
4845         * syntax.c (Fmatching_paren):
4846         * syntax.c (Fforward_word):
4847         * syntax.c (scan_lists):
4848         * syntax.c (Fscan_lists):
4849         * syntax.c (Fscan_sexps):
4850         * syntax.c (Fparse_partial_sexp):
4851         * toolbar.c (Fcheck_toolbar_button_syntax):
4852         * tooltalk.doc:
4853         * window.c:
4854         * window.c (Fwindowp):
4855         * window.c (Fwindow_live_p):
4856         * window.c (Fwindow_point):
4857         * window.c (Fdelete_window):
4858         * window.c (Fnext_window):
4859         * window.c (Fprevious_window):
4860         * window.c (Fother_window):
4861         * window.c (window_loop):
4862         * window.c (Fget_lru_window):
4863         * window.c (Fsplit_window):
4864         * window.c (Fenlarge_window):
4865         * window.c (Fenlarge_window_pixels):
4866         * window.c (Fshrink_window):
4867         * window.c (Fshrink_window_pixels):
4868         * window.c (change_window_height):
4869         * window.c (Fwindow_configuration_p):
4870         * window.c (Fcurrent_window_configuration):
4871         * window.h:
4872         * casefiddle.c (casify_object):
4873         * casefiddle.c (Fupcase):
4874         * casefiddle.c (Fdowncase):
4875         * casefiddle.c (Fcapitalize):
4876         * casefiddle.c (Fupcase_initials):
4877         * casefiddle.c (casify_region_internal):
4878         * casefiddle.c (casify_region):
4879         * casefiddle.c (Fupcase_region):
4880         * casefiddle.c (Fdowncase_region):
4881         * casefiddle.c (Fcapitalize_region):
4882         * casefiddle.c (Fupcase_initials_region):
4883         * casefiddle.c (Fupcase_word):
4884         * casefiddle.c (Fdowncase_word):
4885         * casefiddle.c (Fcapitalize_word):
4886         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
4887         Replace 0 with '\0' when working with bytes.
4888         Replace initial "(" with "\(" in docstrings.
4889
4890 2000-11-01  Martin Buchholz  <martin@xemacs.org>
4891
4892         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
4893
4894         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
4895
4896 2000-10-31  Martin Buchholz  <martin@xemacs.org>
4897
4898         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
4899
4900 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
4901
4902         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
4903         correctly.
4904
4905 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
4906
4907         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
4908         (inhibit_auto_save_session): New variable.
4909         (vars_of_fileio): Declare and initialize them.
4910         * fileio.c (Fdo_auto_save): Don't create session file if
4911         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
4912
4913 2000-10-31  Martin Buchholz  <martin@xemacs.org>
4914
4915         * sgiplay.c (play_internal): C++ compilability.
4916         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
4917         * callproc.c (Fold_call_process_internal):
4918         Remove unused vars `env', `first'.
4919         * scrollbar.c (update_scrollbar_instance):
4920         #### unused var `current_window'.
4921         * redisplay-tty.c: Put currently unused vars insert_mode_on,
4922         etc. within #ifdef NOT_YET.
4923         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
4924         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
4925         * specifier.c (specifier_instance):
4926         #### unused var `tag'.
4927         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
4928
4929 2000-10-27  Martin Buchholz  <martin@xemacs.org>
4930
4931         * fns.c (Fbutlast):
4932         * fns.c (list_sort):
4933         * fns.c (Ffillarray):
4934         * fns.c (bytecode_nconc2):
4935         * fns.c (Fnconc):
4936         * fns.c (mapcar1):
4937         * fns.c (Fmapconcat):
4938         Be pedantically 64-bit correct.  For the time when someone will
4939         want to have a list with length > 2**32.
4940
4941         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
4942         Work around MIPSpro compiler bug.
4943
4944         * process-unix.c (unix_kill_child_process): Add snarky comment.
4945         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
4946
4947         * config.h.in: Oops, _getpt ==> _getpty
4948
4949 2000-10-26  Martin Buchholz  <martin@xemacs.org>
4950
4951         * config.h.in:
4952         * regex.c:
4953         Use void*, not char*, as return type of alloca().
4954
4955         * alloc.c (free_marker): Side effect inside assert expression!
4956
4957 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
4958
4959         * mule-charset.c (Fset_charset_ccl_program): To check
4960         if the given ccl program is valid, use setup_ccl_program()
4961         instead of CHECK_VECTOR().
4962         (Fmake_charset): Likewise.
4963
4964 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
4965
4966         * faces.c (get_extent_fragment_face_cache_index):
4967         Fix cachel.merged_faces memory leak.
4968
4969 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
4970
4971         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
4972         Reset MSB of octets obtained by DECODE_SJIS
4973         because of the incompatibility with Emacs.
4974         (ccl_driver)<CCL_ENCODE_SJIS>:
4975         Set MSB of octets before passing them to
4976         ENCODE_SJIS because of the incompatibility
4977         with Emacs.
4978
4979 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
4980
4981         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
4982         (DECLARE_LRECORD): Undo the last change.
4983         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
4984
4985 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
4986
4987         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
4988         the implementation to lrecord_implementations_table.
4989
4990 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
4991
4992         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
4993         initial value of `lrecord_type_##c_name' and
4994         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
4995         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
4996         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
4997         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
4998         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
4999
5000 2000-10-17  Martin Buchholz  <martin@xemacs.org>
5001
5002         * miscplay.c (sndcnv8S_2mono):
5003         (sndcnv2monounsigned):
5004         (sndcnvULaw_2linear):
5005         (sndcnv16swap):
5006         Remove implementation-defined behavior.
5007
5008 2000-10-12  Martin Buchholz  <martin@xemacs.org>
5009
5010         * input-method-xlib.c: Warning suppression.
5011
5012 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
5013
5014         * mule-ccl.c: Sync up with Emacs 21.0.90.
5015         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
5016         Do nothing.
5017         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
5018         Likewise.
5019         (ccl_driver[WriteMultibyteChar2]): Bug fix.
5020         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
5021         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
5022         leading char belongs to official 2-dimensional charset.
5023         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
5024         write the given character as is.  Otherwise,
5025         if it is a multibyte char, convert it by
5026         non_ascii_set_charptr_emchar, then write it.
5027         (CCL_WRITE_STRING): Likewise.
5028         (ccl_get_compiled_code): New function.
5029         (setup_ccl_program): When ccl_prog is invalid,
5030         return -1.
5031         (Fregister_code_conversion_map): New function.
5032         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
5033
5034         * mule-ccl.h: Sync up with Emacs 21.0.90.
5035         (Fregister_ccl_program): export it.
5036
5037         * redisplay-msw.c (separate_textual_runs):
5038         If ccl program is not valid, don't do ccl conversion.
5039
5040         * redisplay-x.c (separate_textual_runs): Ditto.
5041
5042         * file-coding.c (Fmake_coding_system):
5043         When type is ccl and value is vector, register it
5044         with a proper symbol.  And checks whether the
5045         given ccl program is valid.
5046         (mule_decode): When calling ccl_driver, if src indicates
5047         NULL pointer, set an empty string instead.
5048         (mule_encode): Likewise.
5049
5050 2000-10-11  Martin Buchholz  <martin@xemacs.org>
5051
5052         The following large batch of changes gets us back to a state of
5053         C++ compilability.  Extbyte is now a char, which means that
5054         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
5055
5056         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
5057
5058         * sound.c (Fplay_sound): Type correctness.
5059
5060         * select-x.c (hack_motif_clipboard_selection): Type correctness.
5061         (x_get_window_property): Type correctness.
5062         (receive_incremental_selection): unsigned char ==> Extbyte
5063         (selection_data_to_lisp_data): unsigned char ==> Extbyte
5064         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
5065         (Fx_store_cutbuffer_internal): Type correctness.
5066
5067         * process-unix.c (try_to_initialize_subtty): Type correctness.
5068
5069         * objects-x.c (x_print_color_instance): Type correctness.
5070         (x_print_font_instance): Type correctness.
5071         (x_list_fonts): SExtbyte ==> Extbyte.
5072         (valid_x_font_name_p): SExtbyte ==> Extbyte.
5073         (x_find_charset_font): SExtbyte ==> Extbyte.
5074         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
5075         (truename_via_XListFonts): SExtbyte ==> Extbyte.
5076         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
5077         Use bufbyte_strcmp.
5078
5079         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
5080         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
5081         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
5082         (BYTE_C0_P): Use bit ops for char-signedness safety.
5083         (BYTE_C1_P): Use bit ops for char-signedness safety.
5084         (CHARSET_BY_LEADING_BYTE):
5085         (CHARSET_BY_ATTRIBUTES):
5086         Always use inline function.
5087         Use type_checking_assert.
5088         Hide chlook.
5089
5090         * mule-charset.c (non_ascii_charptr_copy_char):
5091         Modify to work with both ASCII and non-ASCII characters.
5092         Improve docs and variable names.
5093         Replace over-clever fall-through switch with a simple loop.
5094         (Lstream_get_emchar_1):
5095         Replace over-clever fall-through switch with a simple loop.
5096
5097         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
5098         Warning suppression.
5099
5100         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
5101         the return value of Lstream_getc, which could be EOF as well.
5102
5103         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
5104
5105         * lisp.h: Make Extbyte a char, not unsigned char, so that external
5106         APIs can be used on Extbytes without casts.  Risky!
5107         (SExtbyte): Remove.
5108         (UExtbyte): Remove.
5109
5110         * input-method-xlib.c (XIM_init_device):
5111         Use Xlib.h instead of IntrinsicP.h.
5112         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
5113         which will break in X11R7.
5114         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
5115         to call XRegisterIMInstantiateCallback with correct types.
5116
5117         * gui-x.c (button_item_to_widget_value): Type correctness.
5118
5119         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
5120
5121         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
5122         (xbm_instantiate_1): Type correctness.
5123         (BUILD_GLYPH_INST):  Type correctness.
5124
5125         * fileio.c (Fsubstitute_in_file_name): Type correctness.
5126
5127         * file-coding.c:
5128         (decode_coding_sjis):
5129         (decode_coding_big5):
5130         (decode_coding_ucs4):
5131         (decode_coding_utf8):
5132         (decode_coding_iso2022):
5133         (decode_coding_no_conversion):
5134         Make all decoding functions take an Extbyte * arg.
5135         (encode_coding_sjis):
5136         (encode_coding_big5):
5137         (encode_coding_ucs4):
5138         (encode_coding_utf8):
5139         (encode_coding_iso2022):
5140         (encode_coding_no_conversion):
5141         Make all encoding functions take a Bufbyte * arg.
5142         Use size_t instead of unsigned int for memory sizes.
5143         Only cast to unsigned char whenever dereferencing Extbyte *.
5144
5145         * doc.c (unparesseuxify_doc_string): Type correctness.
5146
5147         * console-x.c (split_up_display_spec):
5148         Rewrite without using details of internal string representation.
5149         (x_semi_canonicalize_device_connection): Type correctness.
5150
5151         * config.h.in:
5152         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
5153         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
5154         (HAVE_XFREE386): Removed.
5155
5156         * buffer.h (DEC_CHARPTR): `const' correctness.
5157         (bufbyte_strcmp): New.
5158         (bufbyte_memcmp): New.
5159
5160         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
5161
5162         * buffer.h (XCHAR_OR_CHAR_INT):
5163         Always use inline function.
5164         Remove redundant type checking assert() - XINT will abort quite nicely.
5165
5166 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
5167
5168         * search.c (Freplace_match): Set newtext to an empty string.
5169
5170 2000-10-10  Martin Buchholz  <martin@xemacs.org>
5171
5172         * s/decosf1-3.h: Remove #include of stropts.h
5173         * s/ptx.h: Remove #include of stropts.h
5174         * s/usg5-4.h: Remove #include of stropts.h
5175         * sysproc.h:
5176         * config.h.in:
5177         Use stropts.h, not sys/stropts.h.
5178         Use strtio.h, not sys/strtio.h.
5179
5180 2000-10-04  Martin Buchholz <martin@xemacs.org>
5181
5182         * XEmacs 21.2.36 is released.
5183
5184 2000-09-21  Andy Piper  <andy@xemacs.org>
5185
5186         * glyphs-x.c (x_redisplay_widget): make sure non-structural
5187         changes still involve copying the widget tree.
5188         (update_widget_face): make sure a change is register in the widget
5189         tree. Call update_tab_widget_face appropriately.
5190         (update_tab_widget_face): ditto.
5191         (x_tab_control_redisplay): make sure non-structural changes still
5192         involve copying the widget tree.
5193
5194 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
5195
5196         * lread.c (locate_file): Check the path element is non-nil.
5197
5198 2000-10-02  Martin Buchholz  <martin@xemacs.org>
5199
5200         * lisp.h: Warning suppression for SCO compilers.
5201
5202         * redisplay-tty.c (reset_tty_modes): Fix crash.
5203         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
5204
5205 2000-09-27  Martin Buchholz  <martin@xemacs.org>
5206
5207         Big signal/process handling overhaul.  Bugs fixed:
5208         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
5209         M-x comint-kill-subjob should work for both values nil and t of
5210         process-connection-type. It was broken on most platforms.
5211         Testing on Irix and Cygwin still needed.  Other plaforms tested.
5212         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
5213         * process-unix.c: Signal/Process handling overhaul.
5214         (pty_name): make 64 bytes, as `expect' does, for paranoia.
5215         (allocate_pty): Use all available modern methods of allocating
5216         ptys, falling back to old style BSD allocation as a last resort.
5217         Use allegedly more secure Unix98 pty allocation by default.
5218         (allocate_pty_the_old_fashioned_way): New. the last resort.
5219         (unix_create_process): Push ptem, ldterm, ttcompat where
5220         available.  Autoconfiscate.
5221         (try_to_initialize_subtty): New.
5222         (unix_kill_child_process): Proper signal handling for ptys on most
5223         platforms, using special knowledge of AIX, BSD, etc...
5224         (unix_create_process): Always disconnect_controlling_terminal() for
5225         subprocesses, whether using ptys or not.
5226         * process.h: Remove old getpt-dependent PTY code.
5227         * process.c (Fprocess_send_signal): New, obvious generic function.
5228         (decode_signal): New.
5229         (Finterrupt_process):
5230         (Fkill_process):
5231         (Fquit_process):
5232         (Fstop_process):
5233         (Fcontinue_process):
5234         (Fsignal_process): Use decode_signal.
5235         (process_send_signal):
5236         Many docstring corrections.
5237         Allow any signal to be sent to a process object.
5238         * config.h.in: Add symbols for big signal/process overhaul.
5239         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
5240         * sysproc.h: Include process-related headers, where available:
5241         sys/stropts.h sys/strtio.h pty.h libutil.h
5242         * s/irix4-0.h:
5243         * s/irix5-0.h:
5244         * s/cygwin32.h:
5245         * s/gnu.h:
5246         * s/linux.h:
5247         * s/hpux.h:
5248         * s/aix3-1.h:
5249         Remove old S&M pty stuff.
5250         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
5251         * systty.h: Simplify cpp hackery, improve comments.
5252         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
5253
5254         * editfns.c (Fformat_time_string):
5255         Be a little more paranoid with the return value of ctime.
5256
5257         * fileio.c (check_executable):
5258         (check_writable):
5259         Use symbolic constants X_OK, W_OK.
5260
5261         * console-x.c (split_up_display_spec): Fix a warning.
5262
5263 2000-10-02  Martin Buchholz  <martin@xemacs.org>
5264
5265         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
5266         * ntproc.c (sys_spawnve): make_string ==> build_string
5267         Small clarity improvements.
5268
5269 2000-09-30  Martin Buchholz  <martin@xemacs.org>
5270
5271         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
5272
5273         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
5274
5275         * config.h.in (HAVE_STRCASECMP): Remove.
5276
5277 2000-09-29  Martin Buchholz  <martin@xemacs.org>
5278
5279         * redisplay-output.c (redisplay_output_pixmap):
5280         Cleaner and possibly more 64-bit correct code.
5281
5282 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
5283
5284         * dumper.c (pdump_load_finish): move restoration of
5285         `noninteractive1' to emacs.c (main_1).
5286         * emacs.c (main_1): protect LISP-visible command-line flags
5287         from pdump_load().
5288
5289 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
5290
5291         * Makefile.in.in (versionclean):  Use EXE_TARGET and
5292         DUMP_TARGET instead of literal program names.
5293
5294 2000-09-20  Martin Buchholz  <martin@xemacs.org>
5295
5296         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
5297
5298 2000-09-19  Martin Buchholz  <martin@xemacs.org>
5299
5300         * *: Spelling mega-patch
5301
5302 2000-09-19  Martin Buchholz  <martin@xemacs.org>
5303
5304         * fns.c (bad_bad_turtle):
5305         Delete "Eek!" comment, since we fixed the bug to which it refers.
5306
5307 2000-09-16  Martin Buchholz  <martin@xemacs.org>
5308
5309         * alloca.c: Replace REGISTER with register.
5310
5311 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
5312
5313         * file-coding.c (ucs_to_char): Use countof.
5314
5315 2000-09-16  Martin Buchholz  <martin@xemacs.org>
5316
5317         * file-coding.c: (ucs_to_char):
5318         (complex_vars_of_file_coding):
5319         Use countof instead of sizeof.
5320         Use CHECK_NATNUM instead of CHECK_INT.
5321
5322         * sysdep.c (strcasecmp): Remove.
5323         * device-x.c (ascii_strcasecmp): New.
5324         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
5325         Avoid using non-standard non-portable strcasecmp.
5326
5327 2000-09-16  Martin Buchholz  <martin@xemacs.org>
5328
5329         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
5330         * font-lock.c: remove reference to emacsfns.h.
5331         * search.c: small doc improvement.
5332         * event-Xt.c: correct file names in comments.
5333         * console-x.h Correct file names in comments.
5334         * frame.c: Correct file names in comments.
5335         * event-stream.c: remove Energize from comments.
5336
5337 2000-09-15  Martin Buchholz  <martin@xemacs.org>
5338
5339         * symeval.h (DEFERROR_STANDARD):
5340         (DEFERROR):
5341         (DEFSYMBOL):
5342         (DEFSYMBOL_NO_DUMP):
5343         (DEFSYMBOL_MULTIWORD_PREDICATE):
5344         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
5345         (DEFKEYWORD):
5346         The construct &##name is not sensible C.
5347         Fixes compilation errors with Unixware native compiler.
5348
5349 2000-09-14  Martin Buchholz  <martin@xemacs.org>
5350
5351         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
5352         (next_frame_internal): Removed.  We now just have next_frame.
5353         (next_frame):
5354         Write a simpler and cleaner one-pass algorithm.
5355         Remove called_from_delete_device arg and #ifdefed-out code.
5356         (previous_frame):
5357         Renamed from prev_frame.  Update callers.
5358         Cleaned up to have an analogous implementation to next_frame.
5359         (other_visible_frames_internal): Remove the
5360         called_from_delete_device bogus arg, and hence, remove this
5361         function.  Just use other_visible_frames().
5362
5363         * window.c (Fnext_window):
5364         Prettify docstring.
5365         Since next_frame() is guaranteed to return a frame, remove check
5366         for nil inserted in previous patch.
5367         (Fprevious_window):
5368         Prettify docstring.
5369         Make code look more like Fnext_window.
5370         (window_loop):
5371         Respect the `console' arg when iterating through windows.
5372         Fixes bug: (get-buffer-window buffer t device) not respecting
5373         the `device' arg.
5374         This function needs more work, as others have pointed out.
5375
5376         * frame.h: Rename prev_frame to previous_frame.
5377         device_matches_console_spec no longer takes a `frame' arg.
5378
5379         * s/gnu.h:
5380         * s/linux.h:
5381         * s/hpux.h:
5382         Use EMACS_BLOCK_SIGNAL instead of sigblock.
5383         From "Golubev I. N." <gin@mo.msk.ru>.
5384
5385         * make-src-depend: Fix typo.
5386
5387 2000-09-13  Martin Buchholz  <martin@xemacs.org>
5388
5389         * window.c (Fnext_window):
5390         next_frame() might return nil, not a frame.
5391         Fixes this crash:
5392         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
5393
5394         * frame.c (next_frame_internal):
5395         We've passed a frame if we've passed its device.
5396         Fixes this crash:
5397         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
5398 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
5399
5400 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
5401
5402         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
5403         Allow option to suppress accelerators in menu/dialog items.
5404         (populate_or_checksum_helper): Pass dialog title through above.
5405
5406 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
5407
5408         * event-msw.c (mswindows_key_to_emacs_keysym):
5409         Add "pause" key, fix "menu" key.
5410
5411 2000-09-09  Martin Buchholz  <martin@xemacs.org>
5412
5413         * eval.c (reinit_vars_of_eval):
5414         Increase max_lisp_eval_depth to 1000,
5415         required for thai-xtis.el to byte-compile under some circumstances.
5416
5417 2000-09-04  Martin Buchholz  <martin@xemacs.org>
5418
5419         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
5420         From Kenichi Handa.
5421
5422 2000-09-01  Martin Buchholz  <martin@xemacs.org>
5423
5424         * make-src-depend: Make the generated Makefiles smaller.
5425
5426         * s/hpux.h (SETUP_SLAVE_PTY):
5427         Provide a %d in the format string for the errno argument.
5428
5429         * editfns.c (Ftemp_directory):
5430         Warning fix.
5431         Avoid buffer overrun on very long file name.
5432
5433         * input-method-xlib.c (XIM_init_device):
5434         6th parameter of XRegisterIMInstantiateCallback has different
5435         pointer types on different OSes, so simply cast to (void *).
5436
5437         * unexhp9k800.c: Warning fixes.  Fiddly changes.
5438
5439         * sysdll.c (dll_open):
5440         shl_load will hang hard if passed a NULL filename.
5441         Simply return NULL for compatibility with dlopen.
5442         * sysdll.c: Conform to XEmacs coding standards.
5443
5444         * sysdep.c (get_pty_max_bytes):
5445         Support pty input lines longer than 512 bytes on HP-UX 10.20.
5446
5447 2000-08-31  Martin Buchholz  <martin@xemacs.org>
5448
5449         * tooltalk.c: Add #include <syssignal.h>
5450
5451 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
5452
5453         * s/hpux.h: Don't use undefined function sigunblock().
5454
5455 2000-08-31  Martin Buchholz  <martin@xemacs.org>
5456
5457         * config.h.in: Add HAVE_BALLOON_HELP.
5458         * emacs.c: Use HAVE_BALLOON_HELP.
5459         * Makefile.in.in (x_objs):
5460         Make Balloon Help conditional on finding shape.h.
5461
5462 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
5463
5464         * syntax.c (regex_emacs_buffer_p): New variable.
5465         * syntax.h (regex_emacs_buffer_p): extern.
5466         * search.c (looking_at_1):
5467         (string_match_1):
5468         (fast_string_match):
5469         (search_buffer): Set regex_emacs_buffer_p.
5470         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
5471         when before_dot, at_dot, after_dot.
5472
5473 2000-08-23  Andy Piper  <andy@xemacs.org>
5474
5475         * gui-x.c (popup_selection_callback): Only set action_occurred
5476         when we really have an image instance.
5477         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
5478
5479 2000-08-23  Andy Piper  <andy@xemacs.org>
5480
5481         * gui-msw.c (mswindows_handle_gui_wm_command): set
5482         action_occurred.
5483         * gui-x.c (popup_selection_callback): ditto.
5484
5485         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
5486         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
5487         (struct Lisp_Image_Instance): add action_occurred flag.
5488
5489         * glyphs.c (redisplay_subwindow): use action_occurred flag.
5490         (image_instance_changed): ditto.
5491         (reset_frame_subwindow_instance_cache): only unmap windows - do
5492         not remove them from the cache also.
5493
5494         * glyphs-widget.c (tab_control_update): better debug.
5495         (progress_gauge_update): ditto.
5496         (layout_update): ditto.
5497         (layout_instantiate): ditto.
5498         (tab_control_order_only_changed): cope with null pending items.
5499
5500         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
5501         debug. Force selection of an item when an action occurred. Cope
5502         with null pending_items.
5503         (mswindows_progress_gauge_redisplay): better debug.
5504         * glyphs-x.c (x_tab_control_redisplay): ditto.
5505
5506         * redisplay.c (redisplay_frame): reset the frame cache if the
5507         frame is garbaged.
5508
5509         * window.c (Fset_window_configuration): potentially re-enable
5510         frame cache reset.
5511         (window_unmap_subwindows): need to finalize instances here since
5512         it is only used in mark_window_as_deleted.
5513
5514 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
5515
5516         * nas.c (SndOpenDataForReading):
5517         nas.c (WaveOpenDataForReading):
5518         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
5519         Somehow escaped from the 2000-08-14 patch.
5520
5521 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5522
5523         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
5524         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
5525
5526 2000-08-21  Andy Piper  <andy@xemacs.org>
5527
5528         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
5529         window if it is not already displayed.
5530
5531         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
5532         it is not already displayed.
5533
5534         * window.c (Fset_window_configuration): don't reset the frame
5535         cache.
5536
5537         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
5538         instances from the frame cache if we are actually finalizing them.
5539         (reset_frame_subwindow_instance_cache): reset frame cache only
5540         after unmapping everything.
5541         (map_subwindow): set displayed flag after mapping.
5542
5543 2000-08-21  Martin Buchholz  <martin@xemacs.org>
5544
5545         * data.c (indirect_function):
5546         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
5547
5548         * eval.c (function_argcount):
5549         Use original function when signaling errors.
5550
5551 2000-08-18  Andy Piper  <andy@xemacs.org>
5552
5553         * frame.c (delete_frame_internal): use new
5554         free_frame_subwindow_instances name.
5555
5556         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
5557         (add_tab_item): make return type correct.
5558         (mswindows_tab_control_instantiate): assert index of tab.
5559         (mswindows_tab_control_redisplay): Re-code to use
5560         gui_item_equal_sans_selected and gui_item_list_find_selected.
5561
5562         * glyphs-widget.c (tab_control_update): Correct comment.
5563
5564         * window.c (window_unmap_subwindows): use new
5565         unmap_subwindow_instance_cache_mapper.
5566         (window_unmap_subwindows_cache_mapper): deleted.
5567         (Fset_window_configuration): comparisons should now be with
5568         EQ. Preserve the subwindow instance cache across configuration
5569         changes.
5570         (allocate_window): ditto.
5571         (make_dummy_parent): ditto.
5572
5573         * glyphs.c (free_frame_subwindow_instances): rename from
5574         free_frame_subwindow_instance_cache. finalize all instances rather
5575         than just those in the display cache.
5576         (finalize_all_subwindow_instances): walk windows unmapping and
5577         finalizing subwindows.
5578         (unmap_subwindow_instance_cache_mapper): moved from
5579         window.c. Allow finalization as well as unmapping.
5580
5581         * gui.c (gui_item_list_find_selected): new function.
5582
5583         * gui.h (gui_item_list_find_selected): declare.
5584
5585         * glyphs-x.c (x_tab_control_redisplay): pick tab
5586         explicitly. Re-code to use gui_item_equal_sans_selected and
5587         gui_item_list_find_selected.
5588
5589         * glyphs-x.h: add lwlib-utils.h
5590
5591         * buffer.c (Frecord_buffer): undo previous change.
5592
5593 2000-08-09  Vin Shelton  <acs@xemacs.org>
5594
5595         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
5596         possible.  Create temporary files more securely.  The patch was
5597         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
5598         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
5599         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
5600         for details.
5601
5602 2000-08-07  Ben Wing  <ben@xemacs.org>
5603
5604         * getloadavg.c: remove duplicate (and windows-breaking)
5605         includes of fcntl.h and sys/file.h.
5606
5607         * nt.c: remove duplicate getloadavg() definition.
5608
5609         * sysdll.h (Qdll_filename_encoding): add missing stand-in
5610         encodings.
5611
5612 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
5613
5614         * eval.c (function_argcount): If function needs to be autoloaded
5615         actually use the loaded definition.
5616         GCPRO function.
5617
5618 2000-08-05  Ben Wing  <ben@xemacs.org>
5619
5620         * getloadavg.c: add prototype for getloadavg().  remove
5621         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
5622         of the code).  remove duplicate header includes.
5623
5624         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
5625
5626         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
5627         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
5628         useful load average.
5629
5630         * alloc.c (reinit_alloc_once_early): removed references to
5631         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
5632         the lisp vars are the only things referencing the malloc_sbrk_*
5633         vars, and they were already if 0'd out.  these vars only exist
5634         in the older malloc.c, which is basically unused, and they're
5635         only for informational purposes.
5636
5637         * m\*.h: removed useless VIRT_ADDR_VARIES.
5638
5639         * m\powerpc.h: removed stray NO_ARG_ARRAY.
5640
5641 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
5642
5643         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
5644         color if the image is a mono pixmap.
5645
5646 2000-07-30  Ben Wing  <ben@xemacs.org>
5647
5648         * Makefile.in.in (release):
5649         Remove stray @.
5650
5651         * buffer.c (directory_is_current_directory):
5652         * dired-msw.c (mswindows_get_files):
5653         * dired.c:
5654         * dired.c (Fdirectory_files):
5655         * dired.c (file_name_completion_stat):
5656         * dired.c (Ffile_attributes):
5657         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
5658         preprocessor tricks, to avoid problems on some machines
5659         (e.g. SCO).
5660
5661         * callproc.c (egetenv): GC docs.
5662
5663         * console-msw.h:
5664         * console-msw.h (struct mswindows_dialog_id):
5665         * lrecord.h (lrecord_type):
5666         New object for use with MSW dialogs.
5667
5668         * console.h (struct console_methods):
5669         New enable/disable frame methods, for proper modal dialogs.
5670
5671         * device-msw.c (msprinter_default_printer): Fix to follow
5672         proper Mule conventions.
5673
5674         * device-msw.c:
5675         * device-msw.c (signal_open_printer_error):
5676         * device-msw.c (msprinter_init_device):
5677         * device-msw.c (ensure_not_printing):
5678         * device-msw.c (plist_get_margin):
5679         * device-msw.c (Fmsprinter_select_settings):
5680         * device-msw.c (finalize_devmode):
5681         * device-msw.c (Fmsprinter_settings_despecialize):
5682         * device-msw.c (signal_enum_priner_error):
5683         * extents.c (decode_extent):
5684         * extents.c (decode_map_extents_flags):
5685         * extents.c (decode_extent_at_flag):
5686         * extents.c (Fextent_at):
5687         * extents.c (Fextents_at):
5688         * extents.c (symbol_to_glyph_layout):
5689         [[[[2]]]] Use structured errors.
5690
5691         * dialog-msw.c:
5692         * dialog-msw.c (mswindows_is_dialog_msg):
5693         * dialog-msw.c (mark_mswindows_dialog_id):
5694         * dialog-msw.c (dialog_proc):
5695         * dialog-msw.c (handle_question_dialog_box):
5696         * dialog-msw.c (syms_of_dialog_mswindows):
5697         Define new object to clean up marking; use it as a dialog identifier.
5698         Call new delete-dialog-box-hook.
5699
5700         * dialog-x.c (dbox_selection_callback):
5701         * dialog-x.c (dbox_descriptor_to_widget_value):
5702         * dialog-x.c (x_make_dialog_box_internal):
5703         Call new delete-dialog-box-hook.
5704         Return an id.
5705
5706         * dialog.c:
5707         * dialog.c (syms_of_dialog):
5708         * dialog.c (vars_of_dialog):
5709         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
5710
5711         * eval.c:
5712         * eval.c (signal_call_debugger):
5713         when noninteractive, output stack traces on the console instead
5714         of in a (never-seen) buffer.
5715
5716         * eval.c (signal_type_error):
5717         * eval.c (invalid_argument_2):
5718         * lisp.h:
5719         new funs for use w/structured errors.
5720
5721         * event-Xt.c:
5722         * event-Xt.c (x_to_emacs_keysym):
5723         * event-Xt.c (describe_event):
5724         * event-Xt.c (emacs_Xt_event_handler):
5725         * event-Xt.c (vars_of_event_Xt):
5726         * event-msw.c:
5727         * event-msw.c (mswindows_wnd_proc):
5728         * event-msw.c (vars_of_event_mswindows):
5729         rename {x,mswindows}-debug-events to debug-{}-events for
5730         consistency with other debug-foo variables.
5731
5732         * event-stream.c:
5733         document next-event more clearly.
5734
5735         * fileio.c (Ffile_name_directory):
5736         * fileio.c (Ffile_name_nondirectory):
5737         * fileio.c (Funhandled_file_name_directory):
5738         * fileio.c (file_name_as_directory):
5739         * fileio.c (Ffile_name_as_directory):
5740         * fileio.c (directory_file_name):
5741         * fileio.c (Fdirectory_file_name):
5742         * fileio.c (Fmake_temp_name):
5743         * fileio.c (Ffile_truename):
5744         * fileio.c (Fsubstitute_in_file_name):
5745         * fileio.c (expand_and_dir_to_file):
5746         * fileio.c (barf_or_query_if_file_exists):
5747         * fileio.c (check_executable):
5748         * fileio.c (Ffile_exists_p):
5749         * fileio.c (Ffile_writable_p):
5750         * fileio.c (Ffile_directory_p):
5751         * fileio.c (Ffile_regular_p):
5752         * fileio.c (Ffile_modes):
5753         * fileio.c (Ffile_newer_than_file_p):
5754         * fileio.c (Fverify_visited_file_modtime):
5755         * fileio.c (Fset_visited_file_modtime):
5756         * fileio.c (auto_save_1):
5757         (1). (2).
5758         fix up gcpro's.
5759
5760         * frame-msw.c:
5761         * frame-msw.c (mswindows_init_frame_1):
5762         * frame-msw.c (mswindows_enable_frame):
5763         * frame-msw.c (error_frame_unsizable):
5764         * frame-msw.c (msprinter_init_frame_1):
5765         * frame-msw.c (msprinter_init_frame_3):
5766         * frame-msw.c (console_type_create_frame_mswindows):
5767         (2).
5768         implement new enable/disable frame methods.
5769
5770         * frame-x.c:
5771         * frame-x.c (x_enable_frame):
5772         * frame-x.c (console_type_create_frame_x):
5773         implement new enable/disable frame methods.
5774
5775         * frame.c:
5776         * frame.c (Fdisable_frame):
5777         * frame.c (syms_of_frame):
5778         * frame.h (struct frame):
5779         implement new enable/disable frame methods/functions.
5780
5781         * general-slots.h:
5782         add initial-focus.
5783
5784         * glyphs-msw.c (mswindows_widget_instantiate):
5785         comment that initial-focus should be implemented.
5786
5787         * glyphs-widget.c:
5788         * glyphs-widget.c (check_valid_instantiator):
5789         * glyphs-widget.c (check_valid_orientation):
5790         * glyphs-widget.c (check_valid_tab_orientation):
5791         * glyphs-widget.c (check_valid_justification):
5792         * glyphs-widget.c (check_valid_border):
5793         * glyphs-widget.c (check_valid_callback):
5794         * glyphs-widget.c (check_valid_int_or_function):
5795         * glyphs-widget.c (check_valid_string_or_vector):
5796         * glyphs-widget.c (check_valid_item_list_1):
5797         * glyphs-widget.c (widget_validate):
5798         * glyphs-widget.c (combo_box_validate):
5799         * glyphs-widget.c (widget_instantiate):
5800         * glyphs-widget.c (syms_of_glyphs_widget):
5801         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
5802         * glyphs-widget.c (image_instantiator_combo_box):
5803         * glyphs-widget.c (image_instantiator_scrollbar):
5804         * glyphs-widget.c (image_instantiator_tab_control):
5805         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
5806         (2).
5807         support (unimplemented) keyword initial-focus.
5808         reindent long macros.
5809
5810         * glyphs-x.c (x_redisplay_widget):
5811         * glyphs-x.c (x_button_instantiate):
5812         * glyphs-x.c (x_button_redisplay):
5813         * glyphs-x.c (x_progress_gauge_instantiate):
5814         * glyphs-x.c (x_edit_field_instantiate):
5815         * glyphs-x.c (x_combo_box_instantiate):
5816         * glyphs-x.c (x_tab_control_instantiate):
5817         * glyphs-x.c (x_label_instantiate):
5818         * gui-x.c:
5819         * gui-x.c (button_item_to_widget_value):
5820         * gui-x.c (gui_items_to_widget_values_1):
5821         * gui-x.c (gui_item_children_to_widget_values):
5822         * gui-x.c (gui_items_to_widget_values):
5823         * gui-x.h:
5824         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
5825         add new flag to gui-parsing routines to indicate whether
5826         accelerator specs should be supported.
5827
5828         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
5829
5830         * glyphs.h (struct Lisp_Image_Instance):
5831         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
5832         add initial-focus flag.
5833
5834         * gui.c:
5835         * gui.c (syms_of_gui):
5836         * gui.c (vars_of_gui):
5837         clean up menu-no-selection-hook.
5838
5839         * gui.h:
5840         support delete-dialog-box-hook.
5841
5842         * lread.c (Fload_internal):
5843         * lread.c (locate_file_in_directory_mapper):
5844         (1).
5845
5846         * lrecord.h:
5847         * lrecord.h (struct toolbar_button):
5848         * lrecord.h (syms_of_toolbar):
5849         document how to create a new object.
5850
5851         * menubar-msw.c (mswindows_char_is_accelerator):
5852         may be called on frames w/o menus.
5853
5854         * menubar.c (vars_of_menubar):
5855         clean up :filter docs.
5856
5857         * nt.c (readdir):
5858         * ntproc.c:
5859         (1).
5860
5861         * process-nt.c:
5862         * process-nt.c (validate_signal_number):
5863         * process-nt.c (signal_cannot_launch):
5864         * process-nt.c (nt_create_process):
5865         * process-nt.c (nt_send_process):
5866         * process-nt.c (nt_kill_child_process):
5867         * process-nt.c (nt_open_network_stream):
5868         * process-nt.c (syms_of_process_nt):
5869         (2).
5870         delete quote-handling.  call new lisp code that does it better.
5871
5872         * process-unix.c (connect_to_file_descriptor):
5873         * process-unix.c (allocate_pty):
5874         * process-unix.c (unix_send_process):
5875         * process-unix.c (unix_kill_child_process):
5876         * process-unix.c (unix_open_network_stream):
5877         * process-unix.c (unix_open_multicast_group):
5878         (1). (2).
5879
5880         * process.c:
5881         * process.c (Fstart_process_internal):
5882         (2).  need to canonicalize process path even if absolute.
5883
5884         * select-msw.c (symbol_to_ms_cf):
5885         * select-msw.c (ms_cf_to_symbol):
5886         * select-msw.c (cf_is_autofreed):
5887         * select-msw.c (mswindows_destroy_selection):
5888         * select.c:
5889         * select.c (syms_of_select):
5890         * select.h:
5891         support dibv5, fix bugs. (from Mike Alexander)
5892
5893         * select.c (Fget_selection_internal):
5894         * select.c (select_convert_out):
5895
5896         * sysdep.c:
5897         * sysdep.c (xemacs_stat):
5898         renamed.
5899
5900         * sysdep.c (mkdir):
5901         * sysdep.c (rmdir):
5902         but keep original stat() here because we provide encapsulation
5903         around these funs.
5904
5905         * sysfile.h:
5906         * sysfile.h (fstat):
5907         remove stat garbage.
5908
5909         * syswindows.h:
5910         fix X/MSW conflict.
5911         don't include tchar.h.  it's inappropriate because it makes
5912         compile-time distinctions when we want runtime distinctions.
5913         (we provide our own tchar replacements)
5914
5915         * toolbar.c:
5916         use default object printer for toolbar-button.
5917
5918         * unexcw.c:
5919         make sure we don't encapsulate.
5920
5921         * window.c (vars_of_window):
5922         emphasize that temp-buffer-show-hook is obsolete.
5923
5924 2000-08-05  Martin Buchholz  <martin@xemacs.org>
5925
5926         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
5927         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
5928
5929         * events.c (Fevent_timestamp_lessp):
5930         Not 64-bit clean.  Use EMACS_INT, not int.
5931
5932 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
5933
5934         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
5935         unsigned int and changed the last enum to
5936         lrecord_type_last_built_in_type.
5937         (lrecord_implementations_table): changed prototype to know how
5938         long the array is supposed to be.
5939         (lrecord_type_count): new unsigned int to keep track of the
5940         current number of lisp lrecord types.
5941         (DEFINE_EXTERNAL_LRECORD):
5942         (DECLARE_EXTERNAL_LRECORD): Added these two for external
5943         dynamic-modules to declare new lisp types. They are the same
5944         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
5945         int for each new type, and increment lrecord_type_count by 1.
5946
5947         * alloc.c (lrecord_implementations_table): Changed to reference
5948         lrecord_type_last_built_in_type for the size of the array.
5949         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
5950
5951 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
5952
5953         * glyphs.h (check_valid_item_list): Renamed from
5954         check_valid_item_list_1.
5955
5956 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
5957
5958         * select.c (Qselect_coerce): New.
5959         * select.c (Vselection_coercion_alist): New.
5960         * select.c (syms_of_select): Declare.
5961         * select.c (get-selection-internal): Use it.
5962         Use the new select-coerce functionality.
5963
5964         * select.c (select_coerce): New.
5965         * select.h (select_coerce): Declare.
5966         New function to coerce one type of data into another.
5967
5968 2000-08-03  Martin Buchholz  <martin@xemacs.org>
5969
5970         * callproc.c (Fcall_process_internal):
5971         (Fcall_process_internal):
5972         * process-unix.c (unix_create_process):
5973         Save and restore the value of errno, so that error messages are accurate.
5974
5975 2000-08-01  Martin Buchholz  <martin@xemacs.org>
5976
5977         * elhash.c (print_hash_table):
5978         Fix printing of hash tables to also use `key-and-value' instead of `t'.
5979         Prettify docstrings and indentation.
5980
5981 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
5982
5983         * window.c (Fwindow_pixel_edges): Subtract frame border and
5984         gutter size.
5985
5986 2000-07-31  Andy Piper  <andy@xemacs.org>
5987
5988         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
5989         will acknowledge the change.
5990
5991         * glyphs.h: declare tab_control_order_only_changed.
5992
5993         * glyphs-x.c (x_tab_control_redisplay): use
5994         tab_control_order_only_changed.
5995
5996         * glyphs-widget.c (tab_control_order_only_changed): new function.
5997
5998         * glyphs-msw.c (mswindows_tab_control_redisplay): use
5999         tab_control_order_only_changed.
6000
6001         * gui.c (gui_item_equal_sans_selected): new function.
6002         (gui_item_equal): use it.
6003
6004         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
6005         :properties in favor of :items..
6006
6007         * glyphs-widget.c (check_valid_item_list): rename from
6008         check_valid_item_list_1.
6009         (check_valid_item_list_1): renamed.
6010         (combo_box_validate): deprecate :properties in favor of :items.
6011         (widget_instantiate): ditto.
6012         (tab_control_update): ditto.
6013         (image_instantiator_combo_box): ditto.
6014         (image_instantiator_tree_view): ditto.
6015         (image_instantiator_tab_control): ditto.
6016         (layout_post_instantiate): remove dead code.
6017
6018         * print.c (debug_print_no_newline): only write to debugger if in
6019         WIN32_NATIVE.
6020
6021         * elhash.c (Fmake_hash_table): update doc string.
6022
6023         * event-msw.c (mswindows_wnd_proc): don't allow processing of
6024         messages whilst in GC. This at least stops XEmacs crashing but has
6025         the potential for wierd behaviour.
6026
6027 2000-07-31  Martin Buchholz  <martin@xemacs.org>
6028
6029         * config.h.in:
6030         Make existence of s&m files optional.
6031
6032         * s/bsd386.h: Remove HAVE_GETLOADAVG.
6033         * s/freebsd.h: Remove HAVE_GETLOADAVG.
6034         * s/gnu.h: Remove HAVE_GETLOADAVG.
6035         * s/netbsd.h: Remove HAVE_GETLOADAVG.
6036         * s/sol2.h: Remove HAVE_GETLOADAVG.
6037         * lisp.h: Remove getloadavg() declaration.
6038         * fns.c:
6039         Include <sys/loadavg.h> if available.
6040         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
6041         * config.h.in:  Group together getloadavg()-related macros.
6042         Use only configure-time tests to detect getloadavg().
6043
6044 2000-07-30  Martin Buchholz  <martin@xemacs.org>
6045
6046         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
6047
6048 2000-07-25  Andy Piper  <andy@xemacs.org>
6049
6050         * syswindows.h: add tchar.h for native builds.
6051
6052         * frame.c (syms_of_frame): remove set-glyph-image.
6053
6054         * general-slots.h: add Qset_glyph_image.
6055
6056         * glyphs-widget.c (layout_update): add domain arg to
6057         set-glyph-image.
6058         (syms_of_glyphs_widget): remove set-glyph-image.
6059
6060 2000-07-23  Ben Wing  <ben@xemacs.org>
6061
6062         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
6063         Vpopup_frame_list.
6064
6065 2000-07-22  Andy Piper  <andy@xemacs.org>
6066
6067         * symsinit.h: add syms_of_win32().
6068
6069         * gui-msw.c (syms_of_gui_mswindows): remove
6070         Fmswindows_shell_execute.
6071         (Fmswindows_shell_execute): moved to win32.c.
6072
6073         * emacs.c (main_1): add syms_of_win32 ().
6074
6075         * win32.c (init_potentially_nonexistent_functions): rewrite in
6076         compiler-friendly terms.
6077         (Fmswindows_shell_execute): move here from gui-msw.c.
6078         (syms_of_win32): new.
6079
6080         * device-msw.c (Fmswindows_printer_list): clean up args to
6081         EnumPrinters.
6082         Don't include tchar under cygwin or mingw.
6083         (msprinter_default_printer): make cygwin-friendly.
6084
6085 2000-07-21  Andy Piper  <andy@xemacs.org>
6086
6087         * glyphs-widget.c (image_instantiator_tree_view): use tab
6088         control's update function.
6089         (layout_property): new function. Retrieve items.
6090
6091         * glyphs-msw.c (mswindows_tree_view_redisplay): new
6092         function. Re-populate the tree view from the pending items.
6093
6094         * glyphs.c (instantiate_image_instantiator): Make sure the domain
6095         is designated the parent if the domain is an image instance. This
6096         is needed so that dirtiness can be cascade up the hierarchy and
6097         thus for layout children to be redisplayed correctly.
6098         (allocate_image_instance): rename glyph -> parent.
6099
6100         * redisplay.h: change redisplay_output_layout signature.
6101
6102         * redisplay-msw.c (mswindows_output_display_block): use domain
6103         arg.
6104
6105         * redisplay-x.c (x_output_display_block): use domain arg.
6106
6107 2000-07-10  Andy Piper  <andy@xemacs.org>
6108
6109         * window.c (Fset_window_configuration): add comment.
6110
6111         * redisplay-output.c (compare_runes):
6112         (redisplay_output_subwindow): redisplay rather than update subwindow.
6113         (redisplay_output_layout): ditto.
6114
6115         * redisplay-msw.c (mswindows_frame_output_end):
6116         (mswindows_frame_output_end): make defer window pos optional.
6117
6118         * lisp.h: add Flast.
6119
6120         * glyphs.h (struct image_instantiator_methods): add dest_mask top
6121         normalize method. Change update method to be for changed
6122         instantiators. Add redisplay method. Change signature of layout
6123         method.
6124         (struct Lisp_Image_Instance): add instantiator.
6125         (IMAGE_INSTANCE_INSTANTIATOR): new.
6126         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
6127         (XIMAGE_INSTANCE_INSTANTIATOR): new.
6128         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
6129
6130         * glyphs.c:
6131         (find_instantiator_differences): new function.
6132         (Fset_instantiator_property): new convenience function.
6133         (check_image_instance_structure): strictly check for vector
6134         instantiators.
6135         (normalize_image_instantiator): make non-static.
6136         (instantiate_image_instantiator): pass on dest_mask and use new
6137         signatures for image_instance_layout and friends.
6138         (mark_image_instance): mark the instantiator. Mark the subwindow
6139         face not the widget face.
6140         (image_instance_equal): add instantiator.
6141         (image_instance_hash): ditto.
6142         (allocate_image_instance): ditto.
6143         (Fset_image_instance_property): removed.
6144         (Fimage_instance_file_name): ditto.
6145         (Fcolorize_image_instance): ditto.
6146         (image_instance_layout): add offsets to be set.
6147         (update_image_instance): new function. update an image instance
6148         from its changed instantiator.
6149         (inherit_normalize): add dest_mask.
6150         (xbm_normalize): ditto.
6151         (xface_normalize): ditto.
6152         (xpm_normalize): ditto.
6153         (text_update): set_property -> update.
6154         (image_instantiate): use the glyph identity as a hash key, not the
6155         instantiator.
6156         (glyph_width): use new image_instance_layout signature.
6157         (glyph_ascent): ditto.
6158         (glyph_descent): ditto.
6159         (glyph_height): ditto.
6160         (glyph_query_geometry): ressurrect.
6161         (glyph_layout): ditto.
6162         (redisplay_subwindow): update -> redisplay.
6163         (syms_of_glyphs): add Fset_instantiator_property.
6164         (image_instantiator_format_create): set_property -> update.
6165
6166         * glyphs-x.c:
6167         (autodetect_normalize): add dest_maks to signature.
6168         (x_redisplay_subwindow): update -> redisplay.
6169         (x_redisplay_widget): ditto.
6170         (x_button_redisplay): ditto.
6171         (x_progress_gauge_redisplay): ditto.
6172         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
6173         stacking order.
6174         (console_type_create_glyphs_x): update -> redisplay.
6175         (image_instantiator_format_create_glyphs_x): ditto.
6176
6177         * glyphs-widget.c:
6178         (check_valid_instantiator): disallow glyphs in the instantiator,
6179         they must now be vectors.
6180         (check_valid_instantiator_list): ditto.
6181         (glyph_instantiator_to_glyph): use internal symbol rather than
6182         intern.
6183         (widget_update): renamed from widget_set_property. Call cascaded
6184         update methods.
6185         (redisplay_widget): renamed from update_widget.
6186         (widget_layout): image_instance_layout now takes position as well
6187         as size.
6188         (widget_normalize): ditto.
6189         (widget_instantiate): ditto.
6190         (tab_control_query_geometry) ditto.:
6191         (tab_control_update): renamed from tab_control_set_property.
6192         (progress_gauge_update): set_property -> update.
6193         (layout_normalize): rewrite so that child instantiators are
6194         normalized also.
6195         (layout_update): new function. Create glyphs from the normalized
6196         children and cope with any other layout keywords. We do not
6197         instantiate children here that will be take care of by
6198         redisplay_output_layout.
6199         (layout_instantiate): call layout_update and not much else.
6200         (layout_post_instantiate): not sure whether this is needed
6201         anymore.
6202         (layout_query_geometry): query glyph geometry rather than
6203         image_instance geometry.
6204         (layout_layout): set offsets from pass in parameters. Use glyph
6205         geometry and layout functions rather than image instance ones.
6206         (native_layout_layout): ditto.
6207         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
6208         (image_instantiator_widget): set_property -> update.
6209         (image_instantiator_buttons): ditto.
6210         (image_instantiator_progress_guage): ditto.
6211         (image_instantiator_tab_control): ditto.
6212         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
6213         (image_instantiator_layout): add update method.
6214
6215         * glyphs-msw.c (bmp_normalize):
6216         (mswindows_resource_normalize): add dest_mask so that it can be
6217         proprogated by layout_normalize.
6218         (begin_defer_window_pos): make optional because it may not be the
6219         right thing to do and it introduces differences with X.
6220         (mswindows_unmap_subwindow): ditto.
6221         (mswindows_map_subwindow): ditto.
6222         (mswindows_redisplay_subwindow): renamed from
6223         mswindows_update_subwindow.
6224         (mswindows_redisplay_widget): ditto.
6225         (mswindows_button_redisplay): renamed from
6226         mswindows_button_update. Update is now what the instantiation
6227         function does for a changed instantiator.
6228         (mswindows_progress_gauge_instantiate): set the progress value
6229         here if appropriate.
6230         (mswindows_tab_control_redisplay): cope with re-ordering of the
6231         members of the tab widget by simply selecting the new top
6232         widget. This makes things appear ok if you click on a tab.
6233         (mswindows_combo_box_instantiate): image_instance_layout now takes
6234         position as well as size.
6235         (mswindows_progress_gauge_redisplay): renamed from
6236         mswindows_progress_gauge_update.
6237         (console_type_create_glyphs_mswindows): fix update -> redisplay.
6238         (image_instantiator_format_create_glyphs_mswindows): ditto.
6239
6240         * glyphs-eimage.c (jpeg_normalize):
6241         (gif_normalize):
6242         (png_normalize):
6243         (tiff_normalize): add dest_mask so that it can be proprogated by
6244         layout_normalize.
6245
6246         * elhash.c:
6247         (print_hash_table):
6248         (hash_table_weakness_validate):
6249         (decode_hash_table_weakness):
6250         (Fhash_table_weakness):
6251         (Fhash_table_type):
6252         (syms_of_elhash): use Ben's naming scheme for hashtable types..
6253
6254         * console.h (struct console_methods): move update_* to
6255         redisplay_*.
6256
6257 2000-07-20  Ben Wing  <ben@xemacs.org>
6258
6259         * *.[ch] (XSETOBJ): remove unused middle argument.
6260         lisp-disunion.h: correct wrap_object() to one argument.
6261
6262 2000-07-15  Ben Wing  <ben@xemacs.org>
6263
6264         * s/cygwin32.h:
6265         * s/cygwin32.h (CYGWIN_CONV_PATH):
6266         Add missing logb prototype for v1.1.
6267         Use post-b20 names and alias to pre-b20 names when pre-b20.
6268
6269         * s/windowsnt.h: [5].
6270
6271 2000-07-15  Ben Wing  <ben@xemacs.org>
6272
6273         * Makefile.in.in (x_objs):
6274         * Makefile.in.in (sheap_objs):
6275         * Makefile.in.in (objs):
6276         added win32.o, cosmetic cleanups.
6277
6278         * alloc.c (Fmake_byte_code):
6279         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
6280         etc. macros which declare their own args now.
6281
6282         * alloc.c (syms_of_alloc):
6283         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
6284
6285         * buffer.c:
6286         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
6287
6288         * buffer.c (Fget_file_buffer):
6289         Fixed GCPRO problem.
6290
6291         * buffer.c (get_truename_buffer):
6292         Fixed comment about GC checking.
6293
6294         * buffer.c (syms_of_buffer):
6295         Undeclared those dedicated frame funs.
6296         [2].
6297
6298         * buffer.h:
6299         Define convenience macros for internal/external conversions.
6300         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
6301         and Qenvironment_variable_encoding for cleaner code.
6302
6303         * bufslots.h:
6304         Remove dedicated-frame; in lisp.
6305
6306         * bytecode.c (funcall_compiled_function):
6307         [1].
6308
6309         * bytecode.c (syms_of_bytecode):
6310         [2].
6311
6312         * console-msw.c:
6313         * console-msw.c (mswindows_show_console): Rewrote.
6314
6315         * console-msw.c (Fmswindows_debugging_output): New.
6316         Sends to OutputDebugString (special MSWin debugger interface).
6317
6318         * console-msw.c (Fmswindows_message_box):
6319         Fixed stupid bugs so it works when called from kill-emacs.
6320
6321         * console-msw.c (syms_of_console_mswindows):
6322         Declare Fmswindows_debugging_output.
6323
6324         * console-msw.h:
6325         New MSWin prototypes.
6326
6327         * console-msw.h (struct mswindows_frame):
6328         New entry last-click-mods for improved button-modifier support.
6329
6330         * console-msw.h (FRAME_MSWINDOWS_POPUP):
6331         New struct entry `popup' with corresponding accessor.
6332
6333         * console-x.c:
6334         * console-x.c (split_up_display_spec):
6335         * console-x.c (get_display_arg_connection):
6336         * console-x.c (x_semi_canonicalize_console_connection):
6337         * console-x.c (x_canonicalize_device_connection):
6338         [[[6]]]: Change char to more specific type.
6339         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
6340
6341         * console-x.c (x_semi_canonicalize_console_connection):
6342         * console-x.c (x_canonicalize_device_connection):
6343         [[[9]]]: Fix up error signalling to use new structured error system.
6344
6345         * console-x.h:
6346         [[[4]]]: Define codesys aliases:
6347         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
6348         Qx_color_name_encoding, Qx_display_name_encoding.
6349
6350         * console.h (struct console_methods):
6351         New method make_dialog_box_internal supersedes older
6352         popup_dialog_box method.
6353
6354         * data.c:
6355         Define many new errors, part of new structured errors.
6356
6357         * data.c (init_errors_once_early):
6358         * data.c (syms_of_data):
6359         [2].
6360
6361         * device-msw.c (mswindows_init_device):
6362         [[[5]]]: Cleanup to support NT 3.51.
6363
6364         * device-msw.c (decode_devmode): Cleanup.
6365
6366         * device-msw.c (mswindows_handle_print_setup_dialog_box):
6367         * device-msw.c (mswindows_handle_print_dialog_box):
6368         * device-msw.c (mswindows_handle_page_setup_dialog_box):
6369         * device-msw.c (syms_of_device_mswindows):
6370         Delete the dialog box primitives recently introduced by Kirill and
6371         instead interface to general dialog box interface.
6372
6373         * device-x.c:
6374         * device-x.c (compute_x_app_name):
6375         * device-x.c (x_init_device):
6376         * device-x.c (Fx_valid_keysym_name_p):
6377         * device-x.c (Fx_set_font_path):
6378         [6].
6379         [7].
6380
6381         * device.h (wrap_device): New.
6382         First of its kind; meant to replace XSETDEVICE.
6383
6384         * dialog-msw.c: Many file-dialog symbols.
6385
6386         * dialog-msw.c (mswindows_register_popup_frame): New.
6387         * dialog-msw.c (mswindows_is_dialog_msg): New.
6388         For supporting kbd traversal in dialog boxes.
6389
6390         * dialog-msw.c (dialog_proc):
6391         Support hitting ESC in dialogs.
6392
6393         * dialog-msw.c (struct):
6394         Common dialog box errors.
6395
6396         * dialog-msw.c (handle_file_dialog_box): New.
6397         Add file dialog code.
6398
6399         * dialog-msw.c (handle_question_dialog_box):
6400         Redo existing code to support new question dialog syntax.
6401
6402         * dialog-msw.c (console_type_create_dialog_mswindows):
6403         We support new dialog console method.
6404
6405         * dialog-msw.c (syms_of_dialog_mswindows):
6406         * dialog-msw.c (vars_of_dialog_mswindows):
6407         New file dialog symbols, vars.
6408
6409         * dialog-x.c:
6410         * dialog-x.c (maybe_run_dbox_text_callback):
6411         * dialog-x.c (dbox_descriptor_to_widget_value):
6412         * dialog-x.c (x_make_dialog_box_internal):
6413         * dialog-x.c (console_type_create_dialog_x):
6414         Mule-ize entire file.
6415         Redo to support question dialog syntax.
6416         [6].
6417
6418         * dialog.c:
6419         * dialog.c (Fmake_dialog_box_internal):
6420         * dialog.c (syms_of_dialog):
6421         Kill old popup-dialog-box, replace with new primitive.
6422         Just call device method or signal error.
6423
6424         * eldap.c (Fldap_open):
6425         * eldap.c (Fldap_search_basic):
6426         * eldap.c (Fldap_add):
6427         * eldap.c (Fldap_modify):
6428         [1].
6429         [7].
6430
6431         * emacs.c:
6432         * emacs.c (make_arg_list_1):
6433         * emacs.c (make_arg_list):
6434         Mule-ize call to dll_init().
6435         [6].
6436         [8].
6437
6438         * emacs.c (make_argc_argv):
6439         * emacs.c (free_argc_argv):
6440         * emacs.c (init_cmdargs):
6441         * emacs.c (main_1):
6442         * emacs.c (Fkill_emacs):
6443         * emacs.c (Fdump_emacs):
6444         Update comments about what can be used in syms_* etc.
6445         Call init_win32() when necessary.
6446         Fix up MS Win dialog box in kill-buffer to actually work right.
6447         [7].
6448
6449         * eval.c:
6450         * eval.c (For):
6451         * eval.c (Fand):
6452         * eval.c (Fprogn):
6453         * eval.c (Fprog1):
6454         * eval.c (Fprog2):
6455         * eval.c (FletX):
6456         * eval.c (Flet):
6457         * eval.c (condition_case_3):
6458         * eval.c (Feval):
6459         * eval.c (function_argcount):
6460         * eval.c (funcall_lambda):
6461         [1].
6462
6463         * eval.c (type_error): New.
6464         * eval.c (maybe_type_error): New.
6465         * eval.c (continuable_type_error): New.
6466         * eval.c (maybe_continuable_type_error): New.
6467         * eval.c (type_error_with_frob): New.
6468         * eval.c (maybe_type_error_with_frob): New.
6469         * eval.c (continuable_type_error_with_frob): New.
6470         * eval.c (maybe_continuable_type_error_with_frob): New.
6471         New functions for use with structured errors.
6472
6473         * event-Xt.c:
6474         * event-Xt.c (x_event_to_emacs_event):
6475         Buttons are now modifiers too.
6476
6477         * event-Xt.c (emacs_Xt_current_event_timestamp):
6478         Implement new event method.
6479         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
6480
6481         * event-msw.c:
6482         * event-msw.c (ntpipe_shove_writer): [5].
6483         * event-msw.c (mswindows_enqueue_mouse_button_event):
6484         * event-msw.c (mswindows_drain_windows_queue):
6485         * event-msw.c (mswindows_wnd_proc): [7].
6486         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
6487         * event-msw.c (mswindows_modifier_state):
6488         Throughout: support new button modifiers.
6489
6490         * event-msw.c (emacs_mswindows_current_event_timestamp):
6491         Implement new event method.
6492         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
6493
6494         * event-stream.c:
6495         * event-stream.c (event_stream_current_event_timestamp): New.
6496         * event-stream.c (maybe_kbd_translate): New functionality.
6497         * event-stream.c (vars_of_event_stream):
6498         Document new kbd-translate-table functionality.
6499
6500         * event-stream.c (Fcurrent_event_timestamp): New.
6501         New primitive for use in fabricated events.
6502         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
6503
6504         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
6505
6506         * events.c:
6507         * events.c (Fmake_event):
6508         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
6509         [1].
6510         [9].
6511
6512         * events.c (format_event_object): fix gcc warnings.
6513
6514         * events.c (Fevent_timestamp): Document new primitives.
6515
6516         * events.c (TIMESTAMP_HALFSPACE): New.
6517
6518         * events.c (Fevent_timestamp_lessp): New.  New primitive for
6519         comparing timestamps correctly (half-space algorithm).
6520
6521         * events.c (Fevent_modifier_bits): Doc fix.
6522
6523         * events.c (Fevent_modifiers): Major doc addition.
6524         * events.c (event_x_y_pixel_internal): Typo fix.
6525         * events.c (syms_of_events): Declare new primitives.
6526
6527         * events.h:
6528         Update long comment for button modifiers, timestamps.
6529
6530         * events.h (struct event_stream):
6531         New current_event_timestamp method.
6532
6533         * extents.c:
6534         * extents.c (extent_in_region_p):
6535         * extents.c (decode_extent):
6536         * extents.c (Fset_extent_parent):
6537         * extents.c (decode_map_extents_flags):
6538         Fix gcc warnings.
6539         [9].
6540
6541         * extents.c (struct extent_at_arg):
6542         * extents.c (decode_extent_at_flag):
6543         * extents.c (extent_at_mapper):
6544         * extents.c (extent_at_bytind):
6545         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
6546         * extents.c (Fextents_at): New primitive. [9].
6547         * extents.c (symbol_to_glyph_layout): [9].
6548         Support new primitive `extents-at'.
6549
6550
6551         * extents.c (get_text_property_bytind):
6552         extent_at_bytind has another arg.
6553         [9].
6554
6555         * extents.c (syms_of_extents): New primitive.
6556
6557         * file-coding.c (Fmake_coding_system): [1].
6558         * file-coding.c (subsidiary_coding_system): fix gcc warning
6559         * file-coding.c (syms_of_file_coding): [2].
6560
6561         * fileio.c (Fexpand_file_name):
6562         * fileio.c (Fsysnetunam):
6563         * fileio.c (Ffile_exists_p):
6564         * fileio.c (Ffile_executable_p):
6565         * fileio.c (Fverify_visited_file_modtime):
6566         Clean up GCPROing.
6567
6568         * fileio.c (syms_of_fileio): [2].
6569
6570         * filelock.c (lock_file_1):
6571         * filelock.c (current_lock_owner):
6572         * filelock.c (lock_if_free):
6573         * filelock.c (lock_file):
6574         * filelock.c (unlock_file):
6575         Clean up GCPROing.
6576
6577         * fns.c (concat): Fix gcc warning.
6578
6579         * fns.c (Fmember):
6580         * fns.c (Fold_member):
6581         * fns.c (Fmemq):
6582         * fns.c (Fold_memq):
6583         * fns.c (memq_no_quit):
6584         * fns.c (Fassoc):
6585         * fns.c (Fold_assoc):
6586         * fns.c (Fassq):
6587         * fns.c (Fold_assq):
6588         * fns.c (assq_no_quit):
6589         * fns.c (Frassoc):
6590         * fns.c (Fold_rassoc):
6591         * fns.c (Frassq):
6592         * fns.c (Fold_rassq):
6593         * fns.c (rassq_no_quit):
6594         * fns.c (Fdelete):
6595         * fns.c (Fold_delete):
6596         * fns.c (Fdelq):
6597         * fns.c (Fold_delq):
6598         * fns.c (delq_no_quit):
6599         * fns.c (Fremassoc):
6600         * fns.c (Fremassq):
6601         * fns.c (remassq_no_quit):
6602         * fns.c (Fremrassoc):
6603         * fns.c (Fremrassq):
6604         * fns.c (remrassq_no_quit):
6605         * fns.c (Freverse):
6606         * fns.c (mapcar1):
6607         [1].
6608
6609         * frame-msw.c (mswindows_init_frame_1):
6610         * frame-msw.c (mswindows_delete_frame):
6611         Register popups with dialog code so keyboard traversing works.
6612
6613         * frame-tty.c (tty_raise_frame_no_select): [1].
6614
6615         * frame-x.c:
6616         * frame-x.c (x_set_frame_text_value):
6617         * frame-x.c (x_set_frame_properties):
6618         * frame-x.c (x_create_widgets):
6619         [7].
6620
6621         * frame.c:
6622         * frame.c (Fmouse_pixel_position): Minor doc fixes.
6623
6624         * frame.h (wrap_frame): New.
6625         Macro like wrap_device.
6626
6627         * general.c:
6628         * general.c (SYMBOL):
6629         * general.c (syms_of_general):
6630         Major reorg.  This is now just a wrapper and symbols themselves
6631         are listed in general-slots.h.
6632
6633         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
6634         * glyphs-msw.c (mswindows_resource_instantiate): [5].
6635
6636         * glyphs-msw.c (mswindows_native_layout_instantiate):
6637         Add DS_CONTROL so keyboard traversal will work.
6638
6639         * glyphs-widget.c:
6640         * glyphs-widget.c (syms_of_glyphs_widget):
6641         Move some symbols to general-slots.h.
6642
6643         * glyphs-x.c:
6644         * glyphs-x.c (xbm_instantiate_1):
6645         * glyphs-x.c (x_xbm_instantiate):
6646         * glyphs-x.c (x_xface_instantiate):
6647         * glyphs-x.c (autodetect_instantiate):
6648         * glyphs-x.c (cursor_font_instantiate):
6649         * glyphs-x.c (x_update_widget):
6650         * glyphs-x.c (x_widget_instantiate):
6651         * glyphs.c (bitmap_to_lisp_data):
6652         * glyphs.c (pixmap_to_lisp_data):
6653         [7].
6654
6655         * glyphs.c (syms_of_glyphs):
6656         [2].
6657
6658         * gui-x.c:
6659         * gui-x.c (print_widget_value):
6660         * gui-x.c (menu_separator_style_and_to_external):
6661         * gui-x.c (add_accel_and_to_external):
6662         * gui-x.c (button_item_to_widget_value):
6663         * gui-x.c (gui_items_to_widget_values_1):
6664         * gui-x.c (gui_items_to_widget_values):
6665         * gui-x.c (syms_of_gui_x):
6666         * gui-x.c (vars_of_gui_x):
6667         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
6668         [9].
6669
6670         * gui-x.h:
6671         Muleize, prototype changes matching gui-x.c.
6672
6673         * gui.c:
6674         * gui.c (separator_string_p):
6675         * gui.c (gui_item_add_keyval_pair):
6676         * gui.c (make_gui_item_from_keywords_internal):
6677         * gui.c (signal_too_long_error):
6678         * gui.c (parse_gui_item_tree_item):
6679         * gui.c (syms_of_gui):
6680         * gui.c (vars_of_gui):
6681         * gui.h:
6682         menu-no-selection-hook moved here (used by MSWin).
6683         Move some symbols to general-slots.h.
6684         [6].
6685         [9].
6686
6687         * insdel.c (get_buffer_pos_char):
6688         * insdel.c (get_buffer_range_char):
6689         Add GC comments.
6690
6691         * keymap.c (keymap_lookup_directly):
6692         * keymap.c (keymap_store):
6693         * keymap.c (ensure_meta_prefix_char_keymapp):
6694         * keymap.c (describe_map):
6695         * keymap.h:
6696         Support new button modifiers.
6697
6698         * lisp-disunion.h (wrap_object):
6699         * lisp-disunion.h (XSETOBJ):
6700         Rename make_obj to wrap_object.
6701
6702         * lisp-union.h:
6703         * lisp-union.h (make_int):
6704         * lisp-union.h (make_char):
6705         Support wrap_object.
6706
6707         * lisp.h:
6708         * lisp.h (LIST_LOOP):
6709         * lisp.h (EXTERNAL_LIST_LOOP):
6710         * lisp.h (LIST_LOOP_2):
6711         * lisp.h (EXTERNAL_LIST_LOOP_1):
6712         * lisp.h (EXTERNAL_LIST_LOOP_2):
6713         * lisp.h (EXTERNAL_LIST_LOOP_3):
6714         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
6715         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
6716         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
6717         * lisp.h (EXTERNAL_ALIST_LOOP_5):
6718         * lisp.h (EXTERNAL_ALIST_LOOP_6):
6719         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
6720         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
6721         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
6722         * lisp.h (struct Lisp_Symbol):
6723         * lisp.h (maybe_continuable_error_with_frob):
6724         Fix up section comments.
6725         Add new types for char to indicate usage.
6726         Delete symbols auto-generated from general-slots.h.
6727         Add prototypes for structured error functions.
6728         Add long comments describing looping macros and change interface
6729         so that lvalues are automatically declared.
6730         Add NO_DECLARE macro in case callers want to declare lvalues
6731         themselves.
6732
6733         * lread.c (read_syntax_error):
6734         * lread.c (continuable_read_syntax_error):
6735         * lread.c (read_structure):
6736         * lread.c (sequence_reader):
6737         * lread.c (read_list_conser):
6738         * lread.c (read_compiled_function):
6739         Rename syntax_error and continuable_syntax_error to avoid clash
6740         with same-named structured error functions.
6741
6742         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
6743         * menubar-msw.c (populate_menu_add_item):
6744         * menubar-msw.c (populate_or_checksum_helper):
6745         [5].
6746         [9].
6747
6748         * menubar-x.c:
6749         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
6750         Mule-ize whole file.
6751
6752         * menubar.c (Fnormalize_menu_item_name): Add optimization.
6753
6754         * mule-charset.c (Fmake_charset):
6755         * mule-wnnfns.c (Fwnn_set_param):
6756         [1].
6757
6758         * ntproc.c (create_child):
6759         * ntproc.c (Fwin32_set_current_locale):
6760         Add comments portending doom.
6761
6762         * objects-msw.c:
6763         * objects-msw.c (old_font_enum_callback_2):
6764         * objects-msw.c (font_enum_callback_1):
6765         * objects-msw.c (mswindows_enumerate_fonts):
6766         [5].
6767
6768         * objects-x.c:
6769         * objects-x.c (allocate_nearest_color):
6770         * objects-x.c (x_parse_nearest_color):
6771         * objects-x.c (x_initialize_color_instance):
6772         * objects-x.c (x_print_color_instance):
6773         * objects-x.c (x_finalize_color_instance):
6774         * objects-x.c (x_valid_color_name_p):
6775         * objects-x.c (x_initialize_font_instance):
6776         * objects-x.c (x_print_font_instance):
6777         * objects-x.c (valid_x_font_name_p):
6778         * objects-x.c (truename_via_FONT_prop):
6779         * objects-x.c (truename_via_random_props):
6780         * objects-x.c (truename_via_XListFonts):
6781         * objects-x.c (x_font_truename):
6782         * objects-x.c (x_font_instance_truename):
6783         * objects-x.c (x_font_instance_properties):
6784         * objects-x.c (x_list_fonts):
6785         * objects-x.c (x_find_charset_font):
6786         Mule-ize entire file.
6787         [7].
6788
6789         * objects-x.h:
6790         Mule-verify.
6791
6792         * print.c:
6793         * print.c (std_handle_out_external):
6794         * print.c (debug_print_no_newline):
6795         * print.c (syms_of_print):
6796         Output to all debugger kinds in debug-print.
6797         Fix console-output code under MSWin to actually work.
6798
6799         * process-nt.c (send_signal):
6800         * process-nt.c (nt_create_process):
6801         Use newer Unicode macros.
6802
6803         * process-unix.c (unix_create_process):
6804         * process-unix.c (unix_canonicalize_host_name):
6805         * process-unix.c (unix_open_network_stream):
6806         [7].
6807
6808         * scrollbar-x.c:
6809         Mule-verify.
6810
6811         * search.c (syms_of_search):
6812         [2].
6813
6814         * select-msw.c (mswindows_destroy_selection):
6815         Use LIST_LOOP_2.
6816
6817         * select-x.c (symbol_to_x_atom):
6818         [7].
6819
6820         * select.c (syms_of_select):
6821         [2].
6822
6823         * sound.c (Fplay_sound_file):
6824         [7].
6825
6826         * specifier.c:
6827         * specifier.c (decode_specifier_type):
6828         * specifier.c (Fvalid_specifier_locale_type_p):
6829         * specifier.c (check_valid_locale_or_locale_type):
6830         * specifier.c (decode_locale):
6831         * specifier.c (decode_locale_type):
6832         * specifier.c (decode_locale_list):
6833         * specifier.c (check_valid_domain):
6834         * specifier.c (decode_specifier_tag_set):
6835         * specifier.c (Fcanonicalize_tag_set):
6836         * specifier.c (Fdefine_specifier_tag):
6837         * specifier.c (Fspecifier_tag_predicate):
6838         * specifier.c (check_valid_inst_list):
6839         * specifier.c (check_valid_spec_list):
6840         * specifier.c (decode_how_to_add_specification):
6841         * specifier.c (check_modifiable_specifier):
6842         * specifier.c (specifier_add_spec):
6843         * specifier.c (boolean_validate):
6844         * specifier.c (display_table_validate):
6845         [9].
6846
6847         * specifier.c (syms_of_specifier):
6848         Move some symbols to general-slots.h.
6849         [2].
6850
6851         * symbols.c:
6852         * symbols.c (Fmapatoms):
6853         * symbols.c (Fapropos_internal):
6854         Add GCPROs.
6855
6856         * symbols.c (set_default_buffer_slot_variable):
6857         * symbols.c (set_default_console_slot_variable):
6858         [1].
6859
6860         * symbols.c (defsymbol_massage_name_1):
6861         * symbols.c (defkeyword_massage_name):
6862         * symbols.c (deferror_1):
6863         * symbols.c (deferror):
6864         * symbols.c (deferror_massage_name_and_message):
6865         * symeval.h:
6866         * symeval.h (DEFSYMBOL):
6867         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
6868
6869         * symbols.c (syms_of_symbols):
6870         [2].
6871
6872         * symsinit.h:
6873         * symsinit.h (init_win32): New.
6874         Also new is syms_of_dialog_mswindows.
6875
6876         * syswindows.h:
6877         Add new Unicode macros, missing Cygwin wide-char functions,
6878         convenience conversion macros for Qmswindows_tstr, macros for
6879         encapsulating required MSWin <-> Cygwin filename conversions,
6880         prototype for dynamically-extracted (not in NT 3.51) functions.
6881
6882         * toolbar-x.c:
6883         Mule-verify.
6884
6885         * tooltalk.c (Fadd_tooltalk_message_arg):
6886         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
6887         * tooltalk.c (Fadd_tooltalk_pattern_arg):
6888         [7].
6889
6890         * tooltalk.c (syms_of_tooltalk):
6891         [2].
6892
6893         * unexnt.c:
6894         * unexnt.c (unexec):
6895         Fix up headers, declaration of unexec() to be more standard.
6896
6897 2000-07-20  Martin Buchholz  <martin@xemacs.org>
6898
6899         * offix.h: Revert change to guard macros - they're used in offix.c!
6900
6901 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6902
6903         * lisp.h: Defsubred Fdelete.
6904
6905         * console-msw.h:  (msprinter_default_printer): Added.
6906
6907         * console-msw.c (msprinter_canonicalize_console_connection):
6908         (msprinter_canonicalize_device_connection): Added.
6909
6910         * device-msw.c (msprinter_default_printer):
6911         (Fmswingows_get_default_printer):
6912         (signal_enum_priner_error):
6913         (Fmswingows_printer_list): Added.
6914
6915 2000-07-19  Martin Buchholz <martin@xemacs.org>
6916
6917         * XEmacs 21.2.35 is released.
6918
6919 2000-07-19  Martin Buchholz  <martin@xemacs.org>
6920
6921         * select-x.c (x_handle_selection_request):
6922         Text selected in xemacs and pasted into xterm failed to appear.
6923         Spelling fixes and cosmetic changes.
6924
6925 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6926
6927         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
6928         XEmacs frame (fix for doubling chars in dialog boxes).
6929
6930 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
6931
6932         * select.c (select_convert_in, select_convert_out):
6933         Don't call intern() every time.
6934
6935         * select.c (Qselect_convert_in, Qselect_convert_out): New.
6936         * select.c (vars_of_select): Initialise them.
6937
6938 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
6939
6940         * select.c (selection-coercible-types): New.
6941
6942         * select.c (own-selection-internal):
6943         * select.c (get-selection-internal):
6944         MULE bug fix - these should default to COMPOUND_TEXT and not
6945         STRING for MULE. I think.
6946
6947         * select.c (select_convert_out): Use selection-coercible-types
6948         to find types that we can attempt to perform coercions on.
6949
6950 2000-07-18  Martin Buchholz  <martin@xemacs.org>
6951
6952         * mule-wnnfns.c:
6953         * mule-canna.c:
6954         Add coding: cookie to identify encoding.
6955
6956         * mule-canna.c (CANNA_mode_keys): make static.
6957         Use proper prototypes, even for functions of no arguments.
6958         Remove external prototype for Fding().
6959
6960         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
6961
6962         * select.c (syms_of_select): Add missing DEFSUBR.
6963
6964 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
6965
6966         * select.c (get_selection_internal, own_selection_internal):
6967         Make the type default to STRING, rather than placing a nil type
6968         into Vselection_alist.
6969
6970 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
6971
6972         * gpmevent.c (tty_selection_exists_p):
6973         * gpmevent.c (tty_own_selection):
6974         Updated parameter lists.
6975
6976 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
6977
6978         * select.h (selection-alist): Removed declaration.
6979
6980         * select.h (get_local_selection):
6981         * select.c (get_local_selection):
6982         Made static.
6983
6984         * select.h (convert_selection): Removed declaration.
6985         * select.c (convert_selection): Removed.
6986         This function belongs in Lisp.
6987
6988         * select.h (select_convert_in): Declare.
6989         * select.h (select_convert_out): Declare.
6990         * select.c (select_convert_in): New.
6991         * select.c (select_convert_out): New.
6992         New conversion functions for other files to call.
6993
6994         * select.h (select_notify_buffer_kill): Declare.
6995         * select.c (select_notify_buffer_kill): New.
6996         New functions that get called from kill-buffer.
6997
6998         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
6999         X-specific lisp code.
7000
7001         * select.h: Declare some of the lisp-visible functions for
7002         external use.
7003
7004         * select.c (clean_local_selection_data): Removed. This was
7005         a disgusting function, and previously should have been in
7006         select-x.c in any case. The functionality is now provided
7007         in select-convert-from-integer (select.el).
7008
7009         * select.c (available-selection-types): Fixed stupidity where
7010         INTEGER and ATOM got added twice. Also add STRING when we see an
7011         extent.
7012
7013         * select.c (get-selection-internal): Removed symbol stripping. No
7014         longer causes conversion when data comes from the internal cache.
7015
7016         * select.c (syms_of_select): Added new functions.
7017
7018         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
7019         error checking - previously this called abort!
7020
7021         * select-x.c (x_own_selection): Changed comment.
7022
7023         * select-x.c (x_handle_selection_request): Use select_convert_out.
7024         Don't mess with selection-alist; it's an internal variable of select.c.
7025
7026         * select-x.c (x_get_foreign_selection): Use select_convert_in.
7027
7028         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
7029         rather than messing with selection-alist.
7030
7031         * select-msw.c (mswindows_get_foreign_selection):
7032         Use TO_INTERNAL_FORMAT rather than hacking.
7033
7034 2000-07-14  Martin Buchholz  <martin@xemacs.org>
7035
7036         * process-unix.c (unix_open_multicast_group):
7037         (unix_open_multicast_group): Remove useless casts.
7038
7039 2000-07-13  Martin Buchholz  <martin@xemacs.org>
7040
7041         * sound.c (Fplay_sound): Fix `unused variable' warning.
7042
7043         * emacs.c (main): Use correct type for _environ on SCO5.
7044
7045 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
7046
7047         * console.h (own_selection_method):
7048         * console.h (selection_exists_p_method):
7049         * console.h (available_selection_types_method): New.
7050         * console.h (register_selection_data_type_method): New.
7051         * console.h (selection_data_type_name): New.
7052
7053         * console-msw.h (mswindows_destroy_selection): Declare it.  New
7054         function & alist to track GlobalAlloc()'d handles that need
7055         releasing when the clipboard data gets replaced or emptied.
7056
7057         * event-msw.c (mswindows_wnd_proc): Call it.
7058
7059         * lisp.h, general.c (Qappend): New symbol representing a
7060         `how-to-add' mode.
7061
7062         * select.c (own-selection-internal):
7063         * select.c (selection-exists-p):
7064         * select.c (available-selection-types): New.
7065         * select.c (register-selection-data-type): New.
7066         * select.c (selection-data-type-name): New.  New functions to deal
7067         with device-specific selection data formats.
7068         * select.c (selection-converter-out-alist): Renamed.
7069         * select.c (selection-converter-in-alist): New.
7070         * select.c (selection-appender-alist): New.  Added new alists.
7071         * select.c (syms_of_select, vars_of_select): Added new symbols &
7072         variables.
7073         * select.c (get_local_selection): Split.
7074         * select.c: Removed spurious type checking - selections may now be
7075         of any type, not just strings.
7076         * select.c (own-selection-internal):
7077
7078         * select.h, select.c (convert_selection): New. Created
7079         convert_selection() function based on get_local_selection().
7080         * select.h, select.c (QCF_*): New symbols representing mswindows
7081         clipboard formats.
7082         * select.h, select.c (Qreplace_all, Qreplace_existing): New
7083         symbols representing `how-to-add' modes.
7084
7085         * select-msw.c (x_sym_p): New.
7086         * select-msw.c (symbol_to_ms_cf): New.
7087         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
7088         symbols & clipboard formats. Can also handle string names.
7089         * select-msw.c (mswindows_own_selection):
7090         * select-msw.c (mswindows_selection_exists_p):
7091         Added `data-type' parameter. Use it.
7092         * select-msw.c (mswindows_available_selection_types): New.
7093         * select-msw.c (mswindows_register_selection_data_type): New.
7094         * select-msw.c (mswindows_selection_data_type_name): New.
7095         * select-msw.c (mswindows_own_selection):
7096         * select-msw.c (mswindows_get_foreign_selection):
7097         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
7098         * select-msw.c (console_create_select_mswindows): Added new methods.
7099         * select-msw.c (mswindows_destroy_selection): New.
7100         * select-msw.c (Vhandle_alist): New list.
7101         * select-msw.c (mswindows_own_selection):
7102
7103         * select-x.c (x_own_selection):
7104         * select-x.c (x_selection_exists_p):
7105         * select-x.c: Added some comments about maybe using new
7106         functionality.
7107         * select-x.c (x_own_selection):
7108
7109         * specifier.c: Remove definition of Qappend (now in general.c)
7110         * specifier.c (syms_of_specifier): Remove Qappend.
7111
7112 2000-07-12  Martin Buchholz  <martin@xemacs.org>
7113
7114         * config.h.in: Add socklen_t.
7115
7116         * s/decosf4-0.h: No special compiler flags needed or desired.
7117         In particular, undefine _BSD for DEC OSF 4.0.
7118
7119 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7120
7121         * redisplay-msw.c (msprinter_frame_output_end): Added.
7122         (console_type_create_redisplay_mswindows): Referred the above.
7123
7124         * frame.c (setup_frame_without_minibuffer): Do not create a
7125         default minibuffer frame on a printer device.
7126
7127         * frame-msw.c (apply_dc_geometry): Added.
7128         (msprinter_start_page):
7129         (msprinter_init_frame_3):
7130         (msprinter_eject_page): Use it.
7131
7132         * console-msw.h (struct msprinter_frame): Added pix_left and top,
7133         and removed residual duplex and orientation properties.
7134
7135 2000-07-11  Martin Buchholz  <martin@xemacs.org>
7136
7137         * eval.c (function_argcount): Work around a DEC CC compiler bug.
7138
7139         * unexalpha.c: Remove system prototypes from C sources!
7140
7141 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
7142
7143         * eval.c: Remove references to M-x edit-options in DEFUNs for
7144         `defvar' and `defconst'.
7145
7146 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7147
7148         * config.h.in: Remove SMART_INCLUDE hackery.
7149
7150         PostgreSQL hacking:
7151         * config.h.in: Don't use SMART_INCLUDE.
7152
7153         * postgresql.h: Include libpq-fe.h here.  Fix typo.
7154         * inline.c: Simply #include "postgresql.h"
7155         * postgresql.c:
7156         - Don't use SMART_INCLUDE
7157         - Use simply "const".
7158         - Use standard doc string conventions.
7159         - Use correct type for result of PQstatus.
7160
7161 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7162
7163         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
7164
7165         C++ compilation changes.
7166         * config.h.in (EXTERN_C): Define.
7167         * config.h.in (not): This is also a C++ keyword.
7168         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
7169         * cm.c: Use EXTERN_C.
7170         * redisplay-tty.c: Use EXTERN_C.
7171         * sysdep.c: Use EXTERN_C.  Remove Gould support.
7172
7173 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7174
7175         * general.c: Remove duplicate definition for Qfunction.
7176
7177 2000-07-08  Ben Wing  <ben@xemacs.org>
7178
7179         * device-msw.c (msprinter_init_device):
7180         * device-msw.c (sync_printer_with_devmode):
7181         * device-msw.c (handle_devmode_changes):
7182         * device-msw.c (print_dialog_worker):
7183         * device-msw.c (Fmsprinter_apply_settings):
7184         * device-msw.c (hash_devmode):
7185         * device-msw.c (Fmsprinter_settings_despecialize):
7186         use Qmswindows_tstr, not Qctext.
7187
7188         * vm-limit.c (check_memory_limits):
7189         avoid infinite loop printing warning messages.
7190
7191 2000-07-05  Craig Lanning  <lanning@scra.org>
7192
7193         * Makefile.in.in: Add support for including the Windows resources
7194         when building with the cygwin and mingw targets.
7195
7196         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
7197         not set or not correct.
7198         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
7199         (init_initial_directory): Don't try to use $PWD on the
7200         WIN32_NATIVE target.
7201
7202         * s\cygwin32.h:
7203         [[Add -mwindows to eliminate console window.]] not required --ben
7204         (HAVE_NATIVE_SOUND): removed; now handled by configure.
7205         (MAIL_USE_POP): removed; now handled by configure.
7206
7207         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
7208         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
7209         (HAVE_NATIVE_SOUND): removed; now handled by configure.
7210         (MAIL_USE_POP): removed; now handled by configure.
7211         (ENCAPSULATE_STAT): from Dan Holmsand, added.
7212         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
7213         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
7214         constant string.
7215         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
7216         up from <winsock.h> via systime.h.
7217         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
7218         (getpagesize): from Dan Holmsand, added.
7219         Added #endif which was left dangling by Ben's mega patch; added
7220         comment to help prevent this in the future.
7221
7222         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
7223
7224 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7225
7226         * console-msw.h (struct mswindows_device): Removed unnecessary
7227         cached device geometry values.
7228         Added update_tick and an accessor macro.
7229         (Lisp_Devmode): Added lrecord declaration.
7230         (struct msprinter_device): Contain devmode as a Lisp object.
7231         Added mswindows_get_selected_frame_hwnd();
7232
7233         * console.h (struct console_methods): Indentation nitpicking.
7234
7235         * device-msw.c (mswindows_init_device): Do not initialize geometry
7236         cache. Initialize update tick.
7237         (mswindows_device_system_metrics): Ask the device for its geometry.
7238         (global_free_2_maybe):
7239         (devmode_to_hglobal):
7240         (handle_printer_changes):
7241         (ensure_not_printing):
7242         (print_dialog_worker):
7243         (Fmsprinter_print_setup_dialog):
7244         (Fmsprinter_print_dialog):
7245         (plist_get_margin):
7246         (plist_set_margin):
7247         (Fmsprinter_page_setup_dialog): Added functions.
7248         (sync_printer_with_devmode):
7249         (handle_devmode_changes):
7250         (Fmsprinter_get_settings):
7251         (Fmsprinter_select_settings):
7252         (Fmsprinter_apply_settings):
7253         (allocate_devmode):
7254         (Fmsprinter_settings_copy):
7255         (Fmsprinter_settings_despecialize):
7256         (print_devmode):
7257         (finalize_devmode):
7258         (equal_devmode):
7259         (hash_devmode): Added functions
7260         (syms_of_device_mswindows): Init devmode lrecord class.
7261
7262         * device.h: Added an exfun for find-device.
7263
7264         * event-msw.c (mswindows_wnd_proc): Do not update the cached
7265         geometry; although, recreate the device compatible DC.
7266
7267         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
7268         (msprinter_init_frame_3):
7269         (msprinter_frame_property):
7270         (msprinter_internal_frame_property_p):
7271         (msprinter_frame_properties):
7272         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
7273         print job properties (will move to device settings).
7274
7275         * lisp.h: Added symbols.
7276
7277         * general.c (syms_of_general): Declared them.
7278
7279         * hash.c (string_hash): Added.
7280
7281         * lrecord.h (lrecord_type): Added devmode lrecord type.
7282
7283 2000-07-02  Mike Sperber <mike@xemacs.org>
7284
7285         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
7286         FreeBSD 4.0.
7287
7288 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
7289
7290         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
7291         integer.
7292
7293 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
7294
7295         * data.c (Fstring_to_number): Don't recognize floating point if
7296         base is not 10.
7297
7298 2000-06-22  Martin Buchholz  <martin@xemacs.org>
7299
7300         * glyphs-widget.c (tab_control_query_geometry):
7301         (widget_query_geometry):
7302         (button_query_geometry):
7303         * glyphs.c (text_query_geometry):
7304         Enforce type correctness.
7305
7306 2000-06-18  Martin Buchholz  <martin@xemacs.org>
7307
7308         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
7309         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
7310
7311 2000-06-17  Martin Buchholz  <martin@xemacs.org>
7312
7313         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
7314         conflicts with gcc's fixincluded version of FOO.h.
7315
7316         * glyphs.h (image_instance_geometry): Remove trailing `,'
7317
7318 2000-06-08  Mike Alexander  <mta@arbortext.com>
7319
7320         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
7321         (shove_thread): Don't write the same output twice
7322         (make_ntpipe_output_stream): Increase priority of shove thread
7323         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
7324         chance to run
7325         (ntpipe_shove_closer): Don't delete the pipe until we're done with
7326         it.
7327
7328 2000-06-12  Ben Wing  <ben@xemacs.org>
7329
7330         * s\mingw32.h (sigset):
7331         * s\windowsnt.h (sigset):
7332         rename msw_ to mswindows_ for consistency with general convention.
7333
7334 2000-06-12  Ben Wing  <ben@xemacs.org>
7335
7336         * console-msw.c:
7337         * console-msw.c (mswindows_get_console_hwnd):
7338         * console-msw.c (mswindows_ensure_console_allocated):
7339         * console-msw.c (mswindows_hide_console):
7340         * console-msw.c (mswindows_show_console):
7341         * console-msw.c (mswindows_ensure_console_buffered):
7342         * console-msw.c (mswindows_output_console_string):
7343         * console-msw.c (mswindows_windows9x_p):
7344         * console-msw.h:
7345         * device-msw.c (mswindows_get_workspace_coords):
7346         * device-msw.c (mswindows_device_system_metrics):
7347         * dialog-msw.c (mswindows_popup_dialog_box):
7348         * event-msw.c (mswindows_wnd_proc):
7349         * frame-msw.c (mswindows_size_frame_internal):
7350         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
7351         * menubar-msw.c (displayable_menu_item):
7352         * menubar-msw.c (mswindows_char_is_accelerator):
7353         * nt.c:
7354         * nt.c (mswindows_sigset):
7355         * nt.c (mswindows_sigrelse):
7356         * nt.c (mswindows_sigpause):
7357         * nt.c (mswindows_raise):
7358         * nt.c (timer_proc):
7359         * ntproc.c:
7360         * ntproc.c (find_child_console):
7361         * ntproc.c (sys_kill):
7362         * print.c:
7363         * print.c (std_handle_out_external):
7364         * process-nt.c (find_child_console):
7365         * process-nt.c (send_signal_the_95_way):
7366         * process-nt.c (ensure_console_window_exists):
7367         * process-nt.c (nt_create_process):
7368         * syssignal.h:
7369         rename msw_ to mswindows_ for consistency with general convention.
7370
7371         * emacs.c:
7372         * dumper.c:
7373         include nt.h, not syswindows.h.
7374
7375         * nt.c (mswindows_fstat):
7376         * nt.c (mswindows_stat):
7377         prefix mswindows_ instead of attempting to directly override the
7378         library functions.  fix declarations.
7379
7380         * nt.h:
7381         include syswindows.h.  move some sysdep.h stuff here.
7382
7383         * ntheap.h:
7384         include syswindows.h, not <windows.h>.
7385
7386         * ntplay.c:
7387         clean up headers.
7388
7389         * sysdep.c:
7390         clean up headers.
7391
7392         * sysdep.c (sys_fstat):
7393         * sysdep.c (sys_stat):
7394         call mswindows versions when appropriate.
7395
7396         * sysdep.h:
7397         move mswin decls to nt.h.
7398
7399         * syswindows.h:
7400         add long comment describing appropriate use of the various windows
7401         headers.
7402
7403 2000-06-11  Ben Wing  <ben@xemacs.org>
7404
7405         * device-x.c: Correct doc string for sixth arg of x-get-resource.
7406
7407 2000-06-10  Ben Wing  <ben@xemacs.org>
7408
7409         * Makefile.in.in (release):
7410         Correction to make sure xemacs.exe always dumped when correct.
7411
7412         * alloca.c:
7413         * balloon_help.c:
7414         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
7415
7416         * buffer.c (set_buffer_internal):
7417         [[[[2]]]]: Remove HAVE_FEP code.
7418
7419         * buffer.c (init_initial_directory):
7420         [3].
7421
7422         * bytecode.c:
7423         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
7424         individual files.
7425
7426         * callproc.c:
7427         * callproc.c (call_process_cleanup):
7428         * callproc.c (Fold_call_process_internal):
7429         * callproc.c (child_setup):
7430         * callproc.c (getenv_internal):
7431         * callproc.c (init_callproc):
7432         * callproc.c (vars_of_callproc):
7433         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
7434         __CYGWIN32__ -> CYGWIN.
7435         DOS_NT -> WIN32_NATIVE.
7436         Remove MSDOS support/references, converting to WIN32_NATIVE
7437           where correct.
7438         __MINGW32__ -> MINGW.
7439         Fix windows.h includes.
7440         Remove bogus HAVE_NTGUI.
7441
7442         * config.h.in:
7443         [2].
7444
7445         * console-msw.c:
7446         mswindows_message_outputted added for use in allowing startup
7447         errors on the console to be seen.
7448
7449         * console-msw.c (msw_ensure_console_allocated):
7450         * console-msw.c (msw_output_console_string):
7451         * console-msw.c (DHEADER):
7452         * console-msw.c (DOPAQUE_DATA):
7453         * console-msw.c (DEVENT):
7454         * console-msw.c (DCONS):
7455         * console-msw.c (DCONSCDR):
7456         * console-msw.c (DSTRING):
7457         * console-msw.c (DVECTOR):
7458         * console-msw.c (DSYMBOL):
7459         * console-msw.c (DSYMNAME):
7460         Fix warnings.
7461
7462         * console-stream.c (stream_init_console):
7463         Fix text/binary problems.
7464
7465         * device-msw.c:
7466         * device-msw.c (mswindows_finish_init_device):
7467         * device-msw.c (mswindows_delete_device):
7468         [1].
7469
7470         * device.c (handle_asynch_device_change):
7471         [3].
7472
7473         * dgif_lib.c:
7474         * dgif_lib.c (DGifOpenFileName):
7475         * dgif_lib.c (DGifOpenFileHandle):
7476         * dgif_lib.c (DGifGetLine):
7477         * dgif_lib.c (DGifGetPixel):
7478         Added config.h/lisp.h, fix up includes.
7479         [1].
7480
7481         * dired-msw.c:
7482         [4].
7483
7484         * dired.c:
7485         * dired.c (file_name_completion):
7486         * dired.c (Ffile_attributes):
7487         * dired.c (syms_of_dired):
7488         [1].
7489
7490         * dumper.c:
7491         * dumper.c (pdump_file_unmap):
7492         * dumper.c (pdump_load):
7493         [1].
7494
7495         * editfns.c:
7496         * editfns.c (Ftemp_directory):
7497         * editfns.c (user_login_name):
7498         * editfns.c (Fuser_real_login_name):
7499         * editfns.c (get_home_directory):
7500         [1].
7501
7502         * elhash.c (finish_marking_weak_hash_tables):
7503         [[[[5]]]]: Fix GCC warnings.
7504
7505         * emacs.c:
7506         * emacs.c (mswindows_handle_hardware_exceptions):
7507         * emacs.c (make_arg_list_1):
7508         * emacs.c (main_1):
7509         * emacs.c (Fkill_emacs):
7510         * emacs.c (Fdump_emacs):
7511         [1].
7512         Fix problems with nested crashes, add long comment.
7513
7514         * event-Xt.c (init_event_Xt_late):
7515         [1].
7516
7517         * event-msw.c:
7518         * event-msw.c (mswindows_dde_callback):
7519         * event-msw.c (mswindows_handle_sticky_modifiers):
7520         * event-msw.c (mswindows_wnd_proc):
7521         [1].
7522         [5].
7523
7524         * events.c (character_to_event):
7525         [1].
7526
7527         * fileio.c:
7528         * fileio.c (Ffile_name_directory):
7529         * fileio.c (Ffile_name_nondirectory):
7530         * fileio.c (directory_file_name):
7531         * fileio.c (Fexpand_file_name):
7532         * fileio.c (Fsubstitute_in_file_name):
7533         * fileio.c (Ffile_name_absolute_p):
7534         * fileio.c (check_executable):
7535         * fileio.c (Ffile_readable_p):
7536         * fileio.c (Ffile_accessible_directory_p):
7537         * fileio.c (Ffile_modes):
7538         * fileio.c (Funix_sync):
7539         * fileio.c (vars_of_fileio):
7540         [1]. [4].
7541
7542         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
7543
7544         Expand getdefdir defn.
7545         Fix bogus rename() comment.
7546
7547         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
7548         to use standard XEmacs include files, e.g. sysfile.h, rather
7549         than system-specific includes.
7550
7551         * fns.c:
7552         * fns.c (Fsubseq):
7553         [5]. [6].
7554
7555         * frame.c (vars_of_frame):
7556         [1].
7557
7558         * getloadavg.c:
7559         * getloadavg.c (getloadavg):
7560         [1]. [6].
7561         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
7562         (We don't use it elsewhere in the code; just add a comment.)
7563
7564         * gif_io.c:
7565         [6].
7566         Add config.h.
7567
7568         * glyphs-msw.c:
7569         * glyphs-msw.c (mswindows_resource_instantiate):
7570         [1].
7571
7572         * glyphs-x.c (x_native_layout_instantiate):
7573         [5].
7574
7575         * gui-msw.c (Fmswindows_shell_execute):
7576         [1].
7577
7578         * insdel.c:
7579         [4].
7580
7581         * lisp.h:
7582         [4]. [5].
7583
7584         * lread.c (locate_file_in_directory_mapper):
7585         [1].
7586
7587         * lstream.c:
7588         [4].
7589
7590         * mem-limits.h:
7591         * mem-limits.h (get_lim_data):
7592         [1].
7593
7594         * menubar-msw.c:
7595         [4].
7596
7597         * ndir.h:
7598         [1].
7599
7600         * nt.c:
7601         * nt.c (getwd):
7602         * nt.c (closedir):
7603         * nt.c (rva_to_section):
7604         * nt.c (mswindows_executable_type):
7605         [1]. [6].
7606         Fix closedir() defn.
7607
7608         * nt.h:
7609         [[[[8]]]]: *_OK defs moved to sysfile.h.
7610
7611         * ntproc.c:
7612         [6]. [7].
7613
7614         * objects-x.c:
7615         [4].
7616
7617         * print.c:
7618         * print.c (std_handle_out_external):
7619         [1]. [4].
7620
7621         * process-nt.c:
7622         * process-nt.c (nt_create_process):
7623         [6].
7624         try to fix process quoting somewhat.
7625
7626         * process-unix.c (unix_create_process):
7627         [1].
7628
7629         * process.c:
7630         * process.c (vars_of_process):
7631         Add Vnull_device.
7632
7633         * process.h:
7634         [1].
7635
7636         * realpath.c:
7637         * realpath.c (xrealpath):
7638         [1].
7639
7640         * redisplay-tty.c (init_tty_for_redisplay):
7641         [3].
7642
7643         * redisplay.c:
7644         [4]. [6].
7645
7646         * scrollbar-msw.c:
7647         [4].
7648
7649         * sheap.c:
7650         * sheap.c (more_static_core):
7651         * sheap.c (report_sheap_usage):
7652         [5]. [6].
7653
7654         * signal.c:
7655         * signal.c (alarm_signal):
7656         [1]. [6].
7657
7658         * sound.c:
7659         [6].
7660
7661         * strftime.c:
7662         * strftime.c (zone_name):
7663         [1]. [5].
7664
7665         * symsinit.h (init_sunpro):
7666         [1].
7667
7668         * syscommctrl.h:
7669         commctrl.h not in Cygwin b20.1.
7670
7671         * sysdep.c:
7672         * sysdep.c (endif):
7673         * sysdep.c (sys_subshell):
7674         * sysdep.c (init_baud_rate):
7675         * sysdep.c (emacs_get_tty):
7676         * sysdep.c (emacs_set_tty):
7677         * sysdep.c (tty_init_sys_modes_on_device):
7678         * sysdep.c (init_system_name):
7679         * sysdep.c (sys_open):
7680         * sysdep.c (interruptible_open):
7681         * sysdep.c (sys_fopen):
7682         * sysdep.c (sys_mkdir):
7683         * sysdep.c (sys_rename):
7684         * sysdep.c (get_process_times_1):
7685         [1]. [6].
7686
7687         * sysdep.h:
7688         [1].
7689
7690         * sysdir.h:
7691         * sysdir.h (DIRENTRY_NONEMPTY):
7692         [1]. [6].
7693
7694         * sysdll.c (dll_init):
7695         * sysdll.h:
7696         [1].
7697
7698         * sysfile.h:
7699         [1]. [6]. [8].
7700         added text/binary defs.
7701
7702         * sysfloat.h:
7703         [1].
7704
7705         * sysproc.h:
7706         * sysproc.h (EDESTADDRREQ):
7707         * sysproc.h (poll_fds_for_input):
7708         [1]. [6].
7709
7710         * syspwd.h:
7711         [6].
7712
7713         * syssignal.h:
7714         [1].
7715
7716         * systime.h:
7717         [1]. [6].
7718
7719         * systty.h:
7720         [1].
7721
7722         * syswindows.h:
7723         [1].
7724         Always define WIN32_LEAN_AND_MEAN.
7725
7726         * unexcw.c (unexec):
7727         [5].
7728
7729         * unexec.c:
7730         * unexec.c (copy_text_and_data):
7731         * unexec.c (adjust_lnnoptrs):
7732         [1].
7733
7734         * unexnt.c:
7735         * unexnt.c (_start):
7736         [1].
7737
7738 2000-06-07  Ben Wing  <ben@xemacs.org>
7739
7740         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
7741         was used only as a model.  We've long since extracted any useful
7742         logic or code out of this. (I just did an exhaustive search.)
7743
7744         * s\msdos.h: Removed.
7745
7746         * s\windows95.h: Removed.
7747
7748 2000-06-10  Ben Wing  <ben@xemacs.org>
7749
7750         * s\cygwin32.h:
7751         [1]. [5].
7752         Don't use extern with fun defs.
7753
7754         * s\mingw32.h:
7755         [1]. [7].
7756         Remove nt\inc include.
7757         Remove getdisk, getdefdir. (The former is unused, the latter
7758         expanded in fileio.h.)
7759
7760         * s\windowsnt.h:
7761         * s\windowsnt.h (WIN32_NATIVE):
7762         * s\windowsnt.h (HAVE_STRCASECMP):
7763         [1]. [7].
7764         Add long comment about preprocessor changes.
7765         Remove getdisk, getdefdir. (The former is unused, the latter
7766         expanded in fileio.h.)
7767
7768 2000-06-10  Ben Wing  <ben@xemacs.org>
7769
7770         * m\arm.h:
7771         * m\delta.h:
7772         * m\intel386.h:
7773         * m\sequent.h:
7774         * m\template.h:
7775         * m\windowsnt.h:
7776         [1].
7777         Remove bogus/unused NO_SOCK_SIGIO.
7778
7779 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
7780
7781         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
7782         not an Emchar.
7783
7784 2000-06-04  Mike Sperber <mike@xemacs.org>
7785
7786         * casetab.c (set_case_table): For `set-standard-case-table',
7787         actually deposit the new case tables where the rest of XEmacs can
7788         see them.
7789
7790 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
7791
7792         * data.c (Faset): Don't cast XCHAR() to unsigned char.
7793
7794 2000-06-05  Ben Wing  <ben@xemacs.org>
7795
7796         * callproc.c (child_setup): Don't do close_load_descs() under
7797         MS Windows.  Put in a comment explaining why.
7798
7799 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
7800
7801         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
7802         Toolkit shell" which breaks `kill-compilation' on Windows NT
7803         native, retaining STDERR handling improvements.
7804
7805 2000-06-01  Andreas Jaeger  <aj@suse.de>
7806
7807         * s/s390.h: Support for S390, based on a patch by Martin
7808         Schwidefsky <schwidefsky@de.ibm.com>.
7809
7810 2000-05-30  Andy Piper  <andy@xemacs.org>
7811
7812         * window.c (allocate_window):
7813         (make_dummy_parent):
7814         (Fset_window_configuration): use new hashtable type.
7815
7816         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
7817         (struct image_instantiator_methods):
7818         (struct Lisp_Image_Instance): make instance geometry signed.
7819
7820         * glyphs.c (instantiate_image_instantiator):
7821         (image_instance_query_geometry):
7822         (image_instance_layout):
7823         (image_instance_layout):
7824         (query_string_geometry):
7825         (text_query_geometry):
7826         (image_instantiate):
7827         (image_instantiate):
7828         (cache_subwindow_instance_in_frame_maybe):
7829         (subwindow_query_geometry): make instance geometry signed.
7830
7831         * glyphs-widget.c (widget_query_geometry):
7832         (widget_layout):
7833         (button_query_geometry):
7834         (tree_view_query_geometry):
7835         (tab_control_query_geometry):
7836         (layout_query_geometry):
7837         (layout_layout):
7838         (native_layout_layout): make instance geometry signed.
7839
7840 2000-05-29  Olivier Galibert  <galibert@pobox.com>
7841
7842         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
7843         constant.
7844
7845         * general.c (syms_of_general): Add Qfull_assoc symbol.
7846
7847         * data.c (finish_marking_weak_lists): Mark full-assoc lists
7848         correctly.
7849         (decode_weak_list_type): Decode full-assoc type.
7850         (encode_weak_list_type): Encode full-assoc type.
7851         (Fmake_weak_list): Update doc string.
7852
7853 2000-05-30  Andy Piper  <andy@xemacs.org>
7854
7855         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
7856
7857         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
7858         (decode_hash_table_weakness): ditto.
7859         (Fhash_table_weakness): ditto.
7860         (Fhash_table_type): ditto.
7861         (finish_marking_weak_hash_tables): ditto.
7862         (hash_table_weakness_validate): ditto.
7863         (syms_of_elhash): ditto.
7864
7865 2000-05-28  Martin Buchholz <martin@xemacs.org>
7866
7867         * XEmacs 21.2.34 is released.
7868
7869 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
7870
7871         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
7872         start cache.
7873         (updating_line_start_cache): Gone.
7874         (regenerate_window): Replace resetting of VERTICAL_CLIP by
7875         generic code to force a minimum of 1 line laid out in the
7876         CMOTION_DISP case.
7877
7878 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
7879
7880         * glyphs.c (instantiate_image_instantiator): Check for initialized
7881         height & width no longer special cases IMAGE_NOTHING.
7882         (nothing_instantiate): Set height and width of instance.
7883
7884 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
7885
7886         * unexelf.c (unexec): Search for ".data" section.
7887         Initialize new_data2_offset from old_data_index.
7888         Remove redundant check for ElfW.
7889
7890 2000-05-23  Andy Piper  <andy@xemacs.org>
7891
7892         * glyphs.c (get_image_instantiator_governing_domain): allow more
7893         specific domains as the governing domain rather than expecting an
7894         exact match. This fixes problems with layouts.
7895
7896 2000-05-22  Andy Piper  <andy@xemacs.org>
7897
7898         * redisplay-output.c (compare_runes): check for non-images
7899
7900         * glyphs.c (set_glyph_dirty_p): ditto.
7901         (update_glyph_cachel_data): ditto.
7902
7903         * glyphs-widget.c (layout_post_instantiate): ditto.
7904         (layout_post_instantiate): ditto.
7905
7906         * event-msw.c (mswindows_wnd_proc): warning removal.
7907
7908 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
7909
7910         * s\mingw32.h: Added #undef for CLASH_DETECTION.
7911
7912         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
7913
7914         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
7915
7916         * nt.c (rva_to_section): mingw32 needs rva_to_section.
7917         (mswindows_executable_type): mingw32 now has enough headers for
7918         this to work.
7919
7920 2000-05-20  Andy Piper  <andy@xemacs.org>
7921
7922         * console-msw.c (mswindows_output_last_error): ; -> ,
7923
7924 2000-05-12  Andy Piper  <andy@xemacs.org>
7925
7926         * console-msw.c (FROB): compare ints with ints.
7927
7928 2000-05-11  Andy Piper  <andy@xemacs.org>
7929
7930         * glyphs-x.c (x_finalize_image_instance): make minimal build
7931         happy.
7932
7933 2000-05-20  Ben Wing  <ben@xemacs.org>
7934
7935         * event-Xt.c:
7936         * event-Xt.c (vars_of_event_Xt):
7937         move modifier-keys-are-sticky to event-stream.c.
7938
7939         * event-msw.c:
7940         * event-msw.c (mswindows_enqueue_mouse_button_event):
7941         * event-msw.c (key_needs_default_processing_p):
7942         * event-msw.c (XEMSW_LCONTROL):
7943         * event-msw.c (mswindows_handle_sticky_modifiers):
7944         * event-msw.c (FROB):
7945         * event-msw.c (clear_sticky_modifiers):
7946         * event-msw.c (output_modifier_keyboard_state):
7947         * event-msw.c (output_alt_keyboard_state):
7948         * event-msw.c (mswindows_wnd_proc):
7949         * event-msw.c (mswindows_modifier_state):
7950         * event-msw.c (emacs_mswindows_handle_magic_event):
7951         implement sticky modifiers.
7952
7953         * event-stream.c:
7954         * event-stream.c (vars_of_event_stream):
7955         move modifier-keys-are-sticky here.
7956
7957         * lisp.h:
7958         add CHECK_FUNCTION.
7959
7960         * rangetab.c:
7961         implement map-range-table.
7962
7963
7964 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
7965
7966         * redisplay-tty.c (reset_tty_modes):
7967         (tty_redisplay_shutdown): Adjust argument type to
7968         tty_frame_output_end.
7969
7970 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
7971
7972         * eval.c (Fbacktrace): Don't output a line with only right
7973         parenthesis.
7974
7975 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
7976
7977         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
7978         (Fpq_reset_poll): Ditto.
7979
7980 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
7981
7982         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
7983
7984 2000-05-16  Ben Wing  <ben@xemacs.org>
7985
7986         * buffer.c:
7987         * buffer.c (dfc_convert_to/from_internal_format):
7988         * buffer.c (reinit_vars_of_buffer):
7989         Fix conversion functions to allow reentrancy.
7990
7991         * console-msw.c:
7992         * console-msw.c (mswindows_output_last_error):
7993         New fun, generally useful -- output a human-readable
7994         version of GetLastError() on the console.
7995
7996         * console-msw.h:
7997         * console-msw.h (struct mswindows_frame):
7998         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
7999
8000         * console-stream.c (stream_output_begin):
8001         * console-stream.c (stream_output_end):
8002         * console-stream.c (stream_output_vertical_divider):
8003         * console-stream.c (stream_clear_region):
8004         * console-stream.c (stream_flash):
8005         * console-stream.c (console_type_create_stream):
8006         Delete blank stream methods, not needed.
8007
8008         * console.h (struct console_methods):
8009         Split begin/end methods into window and frame.
8010
8011         * event-msw.c:
8012         * event-msw.c (mswindows_handle_paint):
8013         * event-msw.c (output_alt_keyboard_state):
8014         * event-msw.c (mswindows_wnd_proc):
8015         * event-msw.c (vars_of_event_mswindows):
8016         Comment about problems with ignored-expose.
8017         Define mswindows-debug-events; not really implemented.
8018
8019         * frame-msw.c (mswindows_init_frame_1):
8020         random cleanups.
8021
8022         * glyphs-msw.c:
8023         * glyphs-msw.c (begin_defer_window_pos):
8024         * glyphs-msw.c (mswindows_unmap_subwindow):
8025         * glyphs-msw.c (mswindows_map_subwindow):
8026         * glyphs-msw.c (mswindows_resize_subwindow):
8027         Use DeferWindowPos to reduce flashing when mapping/unmapping.
8028
8029         * glyphs.c (make_image_instance_1):
8030         Fix crash.
8031
8032         * gutter.c (Fredisplay_gutter_area):
8033         Use new begin/end methods.
8034
8035         * lisp.h (Dynarr_new2):
8036         New creation fun.
8037
8038         * redisplay-msw.c:
8039         * redisplay-msw.c (mswindows_frame_output_begin):
8040         * redisplay-msw.c (mswindows_frame_output_end):
8041         * redisplay-msw.c (console_type_create_redisplay_mswindows):
8042         New begin/end methods -- handle DeferWindowPos.
8043
8044         * redisplay-output.c (redisplay_move_cursor):
8045         * redisplay-output.c (redraw_cursor_in_window):
8046         * redisplay-output.c (redisplay_update_line):
8047         * redisplay-output.c (redisplay_output_window):
8048         New begin/end methods.
8049
8050         * redisplay-tty.c:
8051         * redisplay-tty.c (tty_frame_output_begin):
8052         * redisplay-tty.c (tty_frame_output_end):
8053         * redisplay-tty.c (console_type_create_redisplay_tty):
8054         New begin/end methods.
8055
8056         * redisplay-x.c:
8057         * redisplay-x.c (x_window_output_begin):
8058         * redisplay-x.c (x_window_output_end):
8059         * redisplay-x.c (console_type_create_redisplay_x):
8060         New begin/end methods.
8061
8062         * redisplay.c (redisplay_frame):
8063         * redisplay.c (Fredisplay_echo_area):
8064         New begin/end methods.
8065         use MAYBE_DEVMETH for clear_frame; it may not exist.
8066
8067         * window.h (WINDOW_XFRAME):
8068         WINDOW_XFOO macros -- get locale and decode struct pointer.
8069
8070
8071 2000-05-12  Ben Wing  <ben@xemacs.org>
8072
8073         * emacs.c:
8074         * emacs.c (ensure_no_quitting_from_now_on):
8075         * emacs.c (fatal_error_signal):
8076         * emacs.c (mswindows_handle_hardware_exceptions):
8077         * emacs.c (main):
8078         * emacs.c (Fkill_emacs):
8079         * emacs.c (shut_down_emacs):
8080         * emacs.c (assert_failed):
8081         various improvements in fatal error handling.
8082
8083         * eval.c:
8084         move preparing_for_armageddon to emacs.c.
8085
8086         * lisp.h:
8087         declare fatal_error_in_progress.
8088
8089         * print.c:
8090         * print.c (std_handle_out_external):
8091         * print.c (std_handle_out_va):
8092         * print.c (stderr_out):
8093         * print.c (stdout_out):
8094         use console under mswin when no standard output.
8095         don't do code conversion during fatal error.
8096
8097         * scrollbar.c (Fscrollbar_page_up):
8098         * scrollbar.c (Fscrollbar_page_down):
8099         fix missing else.  reindent.
8100
8101 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
8102
8103         Emergency fix.
8104
8105         * glyphs.h (GLYPH_CACHEL_DESCENT):
8106         (GLYPH_CACHEL_DESCENT):
8107         (GLYPH_CACHEL_DESCENT):
8108         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
8109         used in case these are inline functions.
8110         Use more absurd values to error check.
8111
8112         include window.h for error check functions.
8113
8114 2000-05-11  Ben Wing  <ben@xemacs.org>
8115
8116         * cmdloop.c (Freally_early_error_handler):
8117         Display message box under windows; otherwise, message will disappear
8118         before it can be viewed.
8119
8120         * console-msw.c:
8121         * console-msw.c (Fmswindows_message_box):
8122         * console-msw.c (FROB):
8123         * console-msw.c (syms_of_console_mswindows):
8124         Define new fun `mswindows-message-box'.
8125         #### I will merge this into `popup-dialog-box'; just give me
8126         a bit of time.
8127
8128         * general.c:
8129         * general.c (syms_of_general):
8130         Some new symbols used in `mswindows-message-box'.
8131
8132         * glyphs.c:
8133         * glyphs.c (Fset_image_instance_property):
8134         put warning in this fun.
8135
8136         * glyphs.h:
8137         * glyphs.h (GLYPH_CACHEL_WIDTH):
8138         * glyphs.h (GLYPH_CACHEL_ASCENT):
8139         * glyphs.h (GLYPH_CACHEL):
8140         * glyphs.h (GLYPH_CACHEL_GLYPH):
8141         define error-checking versions to try to catch a bug i've seen --
8142         redisplay gets in an infinite loop because the glyph width of the
8143         continuation glyph is 65535.
8144
8145         * lisp.h:
8146         Extern message-box stuff.
8147
8148         * window.c (allocate_window):
8149         * window.c (make_dummy_parent):
8150         * window.c (Fset_window_configuration):
8151         Use EQUAL not EQ for subwindow caches to make them work a bit
8152         better. (Something is still very broken.)
8153
8154
8155 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8156
8157         * glyphs.c (image_instantiate): Suppress gcc warnings.
8158         (Fmake_image_instance): Fix doc string.
8159         * specifier.c (Fmake_specifier): Ditto.
8160
8161 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
8162
8163         * paths.h.in (PATH_LOCK): Removed.
8164         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
8165         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
8166
8167 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
8168
8169         * fns.c (Ffeaturep): Update e-mail address in doc-string.
8170         Document (featurep '(and xemacs 21.02)).
8171
8172 2000-05-09  Ben Wing  <ben@xemacs.org>
8173
8174         * buffer.c (complex_vars_of_buffer):
8175         update modeline-format doc.
8176
8177         * device.h:
8178         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
8179
8180         * emacs.c:
8181         timeline of all released versions of Emacs, for use in creating
8182         authorship comments and in synching up.
8183
8184         * glyphs-widget.c (image_instantiator_buttons):
8185         * glyphs-widget.c (image_instantiator_edit_fields):
8186         * glyphs-widget.c (image_instantiator_combo_box):
8187         * glyphs-widget.c (image_instantiator_scrollbar):
8188         * glyphs-widget.c (image_instantiator_progress_guage):
8189         * glyphs-widget.c (image_instantiator_tree_view):
8190         * glyphs-widget.c (image_instantiator_tab_control):
8191         * glyphs-widget.c (image_instantiator_labels):
8192         * glyphs-widget.c (image_instantiator_layout):
8193         * glyphs-widget.c (image_instantiator_native_layout):
8194         rename decode_domain method to governing_domain.
8195
8196         * glyphs.c:
8197         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
8198         * glyphs.c (add_entry_to_device_ii_format_list):
8199         make sure we don't put an entry more than once into the list.
8200         * glyphs.c (check_instance_cache_mapper):
8201         *************************************************************
8202         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
8203         HAVE BEEN GETTING.
8204         *************************************************************
8205         * glyphs.c (get_image_instantiator_governing_domain):
8206         clean up, expand on new concept of governing domain.
8207         * glyphs.c (instantiate_image_instantiator):
8208         * glyphs.c (allocate_image_instance):
8209         use governing_domain instead of cache_domain in naming.
8210         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
8211         * glyphs.c (make_image_instance_1):
8212         * glyphs.c (Fmake_image_instance):
8213         allow for any domain (not just device), and process the
8214         governing domain correctly.  very big doc fix.
8215         * glyphs.c (Fimage_instance_domain):
8216         new primitive, to retrieve the governing domain of an image instance.
8217         * glyphs.c (image_instantiate):
8218         use new governing_domain stuff.  this fixes a crash you could get
8219         by instantiating certain widget glyphs in frame locales. (should
8220         signal an error instead of crashing.)
8221         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
8222         * glyphs.c (Fglyphp): clean up doc.
8223         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
8224         * glyphs.c (syms_of_glyphs):
8225         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
8226         * glyphs.c (image_instantiator_format_create): add some comments about
8227         bogus code.
8228         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
8229         for current-display-table. (Apparently Hrjove implemented in 1998 a
8230         design I wrote up in 1996, but didn't update the doc string.)
8231
8232         * glyphs.h: clean up a doc string.
8233         * glyphs.h (governing_domain):
8234         * glyphs.h (struct image_instantiator_methods):
8235         changes for governing_domain stuff.
8236
8237         * gutter.c:
8238         * gutter.c (Fgutter_specifier_p):
8239         * gutter.c (Fgutter_size_specifier_p):
8240         * gutter.c (Fgutter_visible_specifier_p):
8241         * objects.c:
8242         * objects.c (Fcolor_specifier_p):
8243         * objects.c (Ffont_specifier_p):
8244         * objects.c (Fface_boolean_specifier_p):
8245         doc strings moved to make-*-specifier.
8246
8247         * redisplay.c (add_disp_table_entry_runes_1):
8248         * redisplay.c (generate_fstring_runes):
8249         * redisplay.c (screen):
8250         add random comments and doc strings.
8251
8252         * specifier.c:
8253         * specifier.c (Fmake_specifier):
8254         major overhaul of this doc string.
8255
8256         * specifier.c (Fvalid_specifier_domain_p):
8257         comment about the bogosity of image instances being domains.
8258         * specifier.c (decode_domain):
8259         now non-static, used in glyphs.c.
8260         * specifier.c (specifier_instance):
8261         comment about the bogosity of image instances being domains.
8262         * specifier.c (Fgeneric_specifier_p):
8263         move doc string to make-generic-specifier.
8264         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
8265         rebackslashify.
8266
8267         * specifier.h:
8268         * specifier.h (DOMAIN_FRAME):
8269         * specifier.h (DOMAIN_LIVE_P):
8270         * specifier.h (DOMAIN_XDEVICE):
8271         rebackslashify.
8272         add comments about problems with these macros.
8273         prototype for decode_domain.
8274
8275         * toolbar.c:
8276         * toolbar.c (Ftoolbar_specifier_p):
8277         move doc string to `make-toolbar-specifier'.
8278
8279         * window.c (window_unmap_subwindows_cache_mapper):
8280         *************************************************************
8281         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
8282         HAVE BEEN GETTING.
8283         *************************************************************
8284
8285 2000-05-09  Andy Piper  <andy@xemacs.org>
8286
8287         * glyphs.h: declare reset_frame_subwindow_instance_cache.
8288
8289         * window.c (Fset_window_configuration): reset the frame subwindow
8290         cache and re-initialize the window subwindow caches.
8291
8292         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
8293
8294 2000-05-09  Ben Wing  <ben@xemacs.org>
8295
8296         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
8297         DWORD.
8298
8299 2000-04-26  Mike Woolley  <mike@bulsara.com>
8300
8301         * ntheap.c: Changed recreate_heap to limit the amount reserved
8302         for the heap to that which is actually available. Also now
8303         displays a message box (with some dignostics) in the event that
8304         it still can't start.
8305
8306 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
8307
8308         * callproc.c (Fold_call_process_internal): GCPRO path
8309
8310 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
8311
8312         Patch by Bill Perry.
8313
8314         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
8315         back data instead of #ifdef.
8316         (Fscrollbar_page_down): ditto.
8317
8318 2000-05-07  Ben Wing  <ben@xemacs.org>
8319
8320         * buffer.h:
8321         Kludge for defining Qmswindows_tstr.
8322
8323         * nt.c:
8324         * nt.c (open_input_file):
8325         * nt.c (open_output_file):
8326         * nt.c (rva_to_section):
8327         * nt.c (mswindows_executable_type):
8328         Move all memory-mapped-file routines here (some were in unexnt.c,
8329         which is bad because they are used by process-nt.c, and unexnt
8330         won't be around when portable dumping).  Synched the above routines
8331         with FSF 20.6.
8332
8333         * nt.h:
8334         Removed ifdef'd out bogus code.
8335         Fixed some prototypes.
8336
8337         * nt.h (file_data):
8338         * nt.h (OFFSET_TO_RVA):
8339         * nt.h (RVA_TO_OFFSET):
8340         * nt.h (RVA_TO_PTR):
8341         Moved the memory-mapped-file structures, macros and prototypes
8342         here, to parallel nt.c.  ntheap.h should really be removed
8343         entirely, and it's a non-portable-dumper specific file.
8344
8345         * ntheap.h (round_to_next):
8346         Moved the memory-mapped-file structures, macros and prototypes
8347         to nt.h.
8348
8349         * ntproc.c (compare_env):
8350         Moved rva_to_section and mswindows_executable_type to nt.c.
8351         Moved compare_env to process-nt.c.
8352         ntproc.c will die, one day.
8353
8354         * ntproc.c (sys_spawnve):
8355         Account for win32_ -> mswindows_.
8356
8357         * process-nt.c:
8358         * process-nt.c (struct nt_process_data):
8359         * process-nt.c (ensure_console_window_exists):
8360         * process-nt.c (compare_env):
8361         * process-nt.c (nt_create_process):
8362         * process-nt.c (nt_kill_process_by_pid):
8363         * process-nt.c (syms_of_process_nt):
8364         * process-nt.c (vars_of_process_nt):
8365         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
8366         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
8367         changes).  Eliminate our old `nt-quote-process-args' mechanism.
8368         Synch up nt_create_process with FSF 20.6 sys_spawnve.
8369         Move compare_env here from ntproc.c.
8370
8371         * process.c (Fprocess_send_region):
8372         Takes an optional fourth argument, BUFFER, which should fix some
8373         problems with call-process.
8374
8375         * syscommctrl.h:
8376         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
8377
8378         * syswindows.h:
8379         Move ICC_BAR_CLASSES to syscommctrl.h.
8380         Add preliminary macros for MSWindows/Mule.  More to come.
8381
8382         * unexnt.c:
8383         * unexnt.c (unexec):
8384         open_output_file moved to nt.c.
8385
8386
8387 2000-05-05  Andy Piper  <andy@xemacs.org>
8388
8389         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
8390         instance from the frame cache also since GC may catch up too late
8391         to make frame deletion sane.
8392
8393 2000-05-04  Andy Piper  <andy@xemacs.org>
8394
8395         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
8396         (x_finalize_image_instance): ungcpro on deletion.
8397
8398         * glyphs.c (image_instantiator_format_create): give pointers a
8399         query geometry method so that the geometry is at least set.
8400
8401         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
8402         initialize layouts if using widgets.
8403
8404 2000-05-03  Andy Piper  <andy@xemacs.org>
8405
8406         * nt.c: remove bogus reference to sysmmsystem.h
8407
8408         * gui-x.c (popup_selection_callback): fix no selection abort.
8409
8410 2000-05-02  Andy Piper  <andy@xemacs.org>
8411
8412         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
8413         (mswindows_widget_instantiate): ditto.
8414
8415         * glyphs-widget.c (initialize_widget_image_instance): initialize
8416         children correctly.
8417         (widget_instantiate): cope with children and items in the same
8418         instance.
8419
8420         * glyphs.c (mark_image_instance): cope with children as a first
8421         class member.
8422         (image_instance_equal): ditto.
8423         (image_instance_hash): ditto.
8424         (image_instance_changed): ditto.
8425
8426 2000-04-30  Andy Piper  <andy@xemacs.org>
8427
8428         * glyphs.c (subwindow_query_geometry): new function. Return some
8429         defaults.
8430         (subwindow_instantiate): don't assign dimensions if none have been
8431         given.
8432         (image_instantiator_format_create): add subwindow_query_geometry.
8433         (print_image_instance): cope with layouts as widgets.
8434
8435 2000-04-29  Andy Piper  <andy@xemacs.org>
8436
8437         * frame.c (delete_frame_internal): call
8438         free_frame_subwindow_instance_cache so that all subwindows are
8439         finalized before their parent.
8440         (mark_frame): remove subwindow_cachels.
8441         (Fmake_frame): remove subwindow_cachel manipulation.
8442         (allocate_frame_core): subwindow_instance_cache is a weak list.
8443         (delete_frame_internal): set subwindow_instance_cache to nil.
8444
8445         * glyphs-msw.c (mswindows_finalize_image_instance): make double
8446         finalization safe.
8447         (mswindows_finalize_image_instance): use the device
8448         not the domain as the domain may have died already.
8449
8450         * glyphs-x.c (x_finalize_image_instance): ditto.
8451         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
8452         HEIGHT.
8453
8454         * redisplay-output.c (redisplay_unmap_subwindows): update for
8455         subwindow instance cache as a weak list.
8456         (redisplay_unmap_subwindows_maybe): ditto.
8457         (redisplay_unmap_subwindows_except_us): ditto.
8458
8459         * glyphs.c (unmap_subwindow): error checking will check the domain
8460         so don't deal with it here. Don't use cachels anymore.
8461         (map_subwindow): ditto.
8462         (update_subwindow_cachel_data): remove old accessor names.
8463         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
8464         (Fresize_subwindow): don't update cachel.
8465         (mark_subwindow_cachels):
8466         (update_subwindow_cachel_data):
8467         (add_subwindow_cachel):
8468         (get_subwindow_cachel_index):
8469         (update_subwindow_cachel):
8470         (reset_subwindow_cachels):
8471         (mark_subwindow_cachels_as_not_updated): deleted.
8472         (cache_subwindow_instance_in_frame_maybe): new function. Add a
8473         subwindow instance to the frame cache.
8474         (find_matching_subwindow): update for subwindow instance cache as
8475         a weak list.
8476         (update_widget_instances): ditto.
8477         (image_instance_type_to_mask):inlined.
8478         (free_frame_subwindow_instance_cache): new function. finalize all
8479         subwindows that are instantiated.
8480
8481         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
8482         of cachel information.
8483         (IMAGE_INSTANCE_DISPLAY_X):
8484         (IMAGE_INSTANCE_DISPLAY_Y):
8485         (IMAGE_INSTANCE_DISPLAY_WIDTH):
8486         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
8487         (XIMAGE_INSTANCE_DISPLAY_X):
8488         (XIMAGE_INSTANCE_DISPLAY_Y):
8489         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
8490         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
8491         remove subwindow_cachel structure and function references.
8492         (image_instance_type_to_mask): inline from glyphs.c
8493
8494         * redisplay.c (redisplay_frame): remove subwindow_cachel
8495         references.
8496
8497         * frame.h (struct frame): remove subwindow_cachels.
8498         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
8499
8500         * frameslots.h: add subwindow_instance_cache.
8501
8502         * window.c (replace_window): check subwindow cache of replacement.
8503         (window_unmap_subwindows_cache_mapper):
8504         (window_unmap_subwindows): new functions. Unmap all subwindows
8505         cached on this window.
8506         (mark_window_as_deleted): unmap all subwindows.
8507
8508 2000-04-27  Andy Piper  <andy@xemacs.org>
8509
8510         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
8511
8512         * glyphs-widget.c (widget_layout): return something.
8513         (layout_layout): return something. Fail if not initialized.
8514         (layout_query_geometry): ditto.
8515         (image_instantiator_native_layout): new function. Initialized the
8516         native layout type.
8517         (widget_instantiate): don't do layout stuff here.
8518
8519         * glyphs.c (instantiate_image_instantiator): reorded calling or
8520         instantiate and post_instantiate with layout in between.
8521         (image_instance_layout): be more selective about deciding whether
8522         the layout has been done or not.
8523
8524         * glyphs.h (struct image_instantiator_methods): return a value
8525         from layout_method.
8526
8527 2000-04-26  Andy Piper  <andy@xemacs.org>
8528
8529         * glyphs.c (allocate_image_instance): make initial width and
8530         height unspecified. Set initialized to 0.
8531
8532         * syscommctrl.h new file. Encapsulates commctrl.h.
8533
8534         * syswindows.h new file. Encapsulates windows.h.
8535
8536         * ntplay.c: use new syswindows.h and syscommctrl.h header.
8537         * nt.c: ditto.
8538         * console-msw.h: ditto.
8539
8540         * redisplay-tty.c (tty_output_display_block): remove layout references.
8541
8542         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
8543         window handle rather than just the frame.
8544
8545         * glyphs.c (mark_image_instance): remove layout references.
8546         (print_image_instance): ditto.
8547         (image_instance_equal): ditto.
8548         (image_instance_hash): ditto.
8549         (decode_image_instance_type): ditto.
8550         (encode_image_instance_type): ditto.
8551         (image_instantiate): ditto.
8552         (allocate_glyph): ditto.
8553         (Fimage_instance_height): ditto.
8554         (Fimage_instance_width): ditto.
8555         (update_subwindow): ditto.
8556
8557         * redisplay-x.c (x_output_display_block): recode for layouts as
8558         widgets.
8559
8560         * redisplay-output.c (redisplay_output_layout): recode for layouts
8561         as widgets.
8562         (compare_runes): remove layout references.
8563
8564         * redisplay-msw.c (mswindows_output_display_block): recode for
8565         layouts as widgets.
8566
8567         * glyphs-widget.c (image_instantiator_layout): remove
8568         layout_possible_dest_types.
8569         (layout_possible_dest_types): deleted.
8570
8571         * glyphs.h (image_instance_type): remove layout references.
8572         (struct Lisp_Image_Instance): ditto. Add initialized flag.
8573         (IMAGE_INSTANCE_INITIALIZED): new accessor.
8574         (XIMAGE_INSTANCE_INITIALIZED): ditto.
8575
8576 2000-04-25  Andy Piper  <andy@xemacs.org>
8577
8578         * glyphs-widget.c (image_instantiator_buttons):
8579         (image_instantiator_edit_fields):
8580         (image_instantiator_combo_box):
8581         (image_instantiator_scrollbar):
8582         (image_instantiator_progress_guage):
8583         (image_instantiator_tree_view):
8584         (image_instantiator_tab_control):
8585         (image_instantiator_labels):
8586         (image_instantiator_layout): call default post_instantiate method.
8587         (widget_post_instantiate): new function. Simply lays out the
8588         widgets.
8589
8590         * glyphs.h (struct image_instantiator_methods): add
8591         post_instantiate method.
8592
8593         * glyphs.c (instantiate_image_instantiator): add post_instantiate
8594         method calls.
8595
8596 2000-04-23  Andy Piper  <andy@xemacs.org>
8597
8598         * glyphs.h (struct image_instantiator_methods): add
8599         decode_domain_method.
8600         (struct Lisp_Image_Instance): remove subwindow frame - it can be
8601         derived from the domain.
8602         (IMAGE_INSTANCE_FRAME): new accessor.
8603         (XIMAGE_INSTANCE_FRAME): ditto.
8604
8605         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
8606         instead of _SUBWINDOW_FRAME.
8607         (finalize_image_instance): ditto.
8608         (Fimage_instance_foreground): ditto.
8609         (Fimage_instance_background): ditto.
8610         (image_instantiate): ditto.
8611         (update_subwindow_cachel): ditto.
8612         (update_subwindow): ditto.
8613         (unmap_subwindow): ditto.
8614         (map_subwindow): ditto
8615         (subwindow_instantiate): ditto.
8616         * glyphs-msw.c (mswindows_update_widget): ditto.
8617         (mswindows_progress_gauge_instantiate): ditto.
8618         (mswindows_tab_control_update): ditto.
8619         * glyphs-x.c (x_update_widget): ditto.
8620         (x_widget_instantiate): ditto.
8621         (x_tab_control_instantiate): ditto.
8622         (x_tab_control_update): ditto.
8623         * event-msw.c (mswindows_wnd_proc): ditto
8624
8625         * glyphs-widget.c (image_instantiator_layout): use
8626         subwindow_decode_domain.
8627         (image_instantiator_buttons): ditto.
8628         (image_instantiator_edit_fields): ditto.
8629         (image_instantiator_combo_box): ditto.
8630         (image_instantiator_scrollbar): ditto.
8631         (image_instantiator_progress_guage): ditto.
8632         (image_instantiator_tree_view): ditto.
8633         (image_instantiator_tab_control): ditto.
8634         (image_instantiator_labels): ditto.
8635         (image_instantiator_layout): ditto.
8636
8637         * glyphs.c: add instance error checking to many functions.
8638         (instantiate_image_instantiator): decode device from cache_domain.
8639         (image_instantiate): partially rewrite by using
8640         decode_image_instantiator_domain to determine what domain the
8641         instance needs to be cached in.
8642         (decode_image_instantiator_domain): new function. Determine what
8643         domain the image needs to be cached in.
8644         (check_window_subwindow_cache): new error checking function.
8645         (check_instance_cache_mapper): ditto.
8646         (check_image_instance_structure): ditto.
8647         (subwindow_decode_domain): new function. Encodes a window as a
8648         subwindow's cache domain.
8649         (image_instantiator_format_create): use it for text and
8650         subwindows.
8651
8652 2000-04-21  Andy Piper  <andy@xemacs.org>
8653
8654         * glyphs.c (image_instance_device): new function.
8655         (image_instance_frame): new function.
8656         (image_instance_window): new function.
8657         (image_instance_live_p): new function.
8658
8659         * window.c (mark_window_as_deleted): reset the subwindow_instance_
8660         cache to nil.
8661
8662         * glyphs.h (struct Lisp_Image_Instance): device->domain.
8663         (IMAGE_INSTANCE_DOMAIN): new accessor.
8664         (XIMAGE_INSTANCE_DOMAIN): ditto.
8665
8666         * glyphs-x.c (x_finalize_image_instance): device->domain.
8667
8668         * glyphs-msw.c (init_image_instance_geometry): device->domain.
8669         (mswindows_finalize_image_instance): ditto.
8670
8671         * glyphs-eimage.c (jpeg_instantiate): device->domain.
8672         (gif_instantiate): ditto.
8673         (png_instantiate): ditto.
8674         (tiff_instantiate): ditto.
8675
8676         * glyphs.c (instantiate_image_instantiator): use domain rather
8677         than device.
8678         (mark_image_instance): device -> domain.
8679         (print_image_instance): ditto.
8680         (finalize_image_instance): ditto.
8681         (image_instance_equal): ditto.
8682         (allocate_image_instance): ditto.
8683         (Fcolorize_image_instance): ditto.
8684         (query_string_geometry): ditto.
8685         (image_instantiate): ditto
8686         (query_string_font): ditto.
8687         (image_instantiate): ditto.
8688         (update_subwindow): ditto.
8689         (unmap_subwindow): ditto.
8690         (map_subwindow): ditto.
8691         (subwindow_instantiate): ditto.
8692
8693         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
8694         (DOMAIN_FRAME): ditto.
8695         (DOMAIN_WINDOW): ditto.
8696         (DOMAIN_LIVE_P): ditto.
8697         (XDOMAIN_DEVICE): ditto.
8698         (XDOMAIN_FRAME): ditto.
8699         (XDOMAIN_WINDOW): ditto.
8700
8701         * specifier.c (Fvalid_specifier_domain_p): add image instances as
8702         a valid specifier domain.
8703
8704 2000-04-19  Andy Piper  <andy@xemacs.org>
8705
8706         * glyphs-widget.c (syms_of_glyphs_widget): remove
8707         widget-callback-current-channel.
8708         (vars_of_glyphs_widget): ditto.
8709         * glyphs.h: ditto
8710
8711         * gui.c (get_gui_callback): revert to previous behaviour.
8712
8713 2000-04-18  Andy Piper  <andy@xemacs.org>
8714
8715         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
8716         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
8717         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
8718
8719         * glyphs.c (image_instance_equal): add margin_width.
8720         (image_instance_hash): ditto.
8721
8722         * glyphs-widget.c (widget_instantiate): deal with margin-width.
8723         (layout_query_geometry): ditto.
8724         (layout_layout): ditto.
8725         (syms_of_glyphs_widget): add margin-width.
8726         (image_instantiator_layout): allow margin-width.
8727
8728         * glyphs.c (update_widget_instances): make a normal function.
8729         (syms_of_glyphs): remove Qupdate_widget_instances.
8730         * glyphs.h: ditto.
8731
8732         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
8733         so that we don't corrupt ideas about the last event or
8734         command. Remove widget-callback-current-channel fiddling.
8735         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
8736
8737 2000-05-01  Martin Buchholz <martin@xemacs.org>
8738
8739         * XEmacs 21.2.33 is released.
8740
8741 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
8742
8743         * make-src-depend: Allow dots in header file name.
8744
8745 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
8746
8747         * mule-charset.h (struct charset_lookup): Add
8748         next_allocated_1_byte_leading_byte and
8749         next_allocated_2_byte_leading_byte.
8750         * mule-charset.c: Move above two variables so that those values
8751         will be dumped.
8752
8753 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
8754
8755         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
8756         when string length is zero.
8757         (find_charsets_in_emchar_string): Ditto.
8758
8759 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
8760
8761         * lisp.h: extern Qdialog and Qmenubar.
8762
8763         * gui-x.c: added events.h.
8764                 also fixed typo which made the file uncompilable.
8765
8766         * general.c: Added Qmenubar and Qdialog
8767
8768 2000-04-28  Ben Wing  <ben@xemacs.org>
8769
8770         * frame-msw.c (mswindows_init_frame_1):
8771         * frame-msw.c (mswindows_mark_frame):
8772         * event-msw.c (mswindows_enqueue_dispatch_event):
8773         * console-msw.h:
8774         * console-msw.h (struct mswindows_frame):
8775         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
8776         there are now three hash tables for callbacks.
8777         mswindows_enqueue_dispatch_event is no longer static.
8778
8779         * dialog-x.c (maybe_run_dbox_text_callback):
8780         * dialog-x.c (dbox_descriptor_to_widget_value):
8781         switch to new cons3 form for callbacks.
8782
8783         * glyphs-msw.c (mswindows_register_gui_item):
8784         * glyphs-msw.c (mswindows_widget_instantiate):
8785         * glyphs-msw.c (add_tree_item):
8786         * glyphs-msw.c (add_tab_item):
8787         new image instance parameter, so it can be passed to callback-ex.
8788         respect :callback-ex as well as :callback.
8789
8790         * glyphs-widget.c (VALID_GUI_KEYWORDS):
8791         add :callback-ex.
8792
8793         * glyphs.c (print_image_instance):
8794         prettify, e.g. now prints widget type.
8795
8796         * gui-x.h:
8797         certain funs have new image instance parameter.
8798
8799         * gui.c:
8800         * gui.c (get_gui_callback):
8801         * gui.c (gui_item_add_keyval_pair):
8802         * gui.c (gui_item_init):
8803         * gui.c (gui_add_item_keywords_to_plist):
8804         * gui.c (mark_gui_item):
8805         * gui.c (gui_item_hash):
8806         * gui.c (gui_item_equal):
8807         * gui.c (copy_gui_item):
8808         * gui.c (syms_of_gui):
8809         recognize callback-ex in a number of places.
8810         also, fix the annoying "can't get out of yes-no dialog" bug.
8811
8812         * gui.h:
8813         * gui.h (struct Lisp_Gui_Item):
8814         recognize callback-ex in a number of places.
8815
8816         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
8817         new parameter in button_item_to_widget_value.
8818
8819         * glyphs-x.c (x_update_widget):
8820         * glyphs-x.c (x_button_instantiate):
8821         * glyphs-x.c (x_button_update):
8822         * glyphs-x.c (x_progress_gauge_instantiate):
8823         * glyphs-x.c (x_edit_field_instantiate):
8824         * glyphs-x.c (x_combo_box_instantiate):
8825         * glyphs-x.c (x_tab_control_instantiate):
8826         * glyphs-x.c (x_label_instantiate):
8827         new image instance parameter in various places.
8828
8829         * event-Xt.c:
8830         * event-Xt.c (enqueue_Xt_dispatch_event):
8831         this fun gets exported.
8832
8833         * gui-msw.c:
8834         * gui-msw.c (mswindows_handle_gui_wm_command):
8835         handle both :callback and :callback-ex, and generate our own
8836         event because it's one of the callback-ex arguments.
8837
8838         * gui-x.c:
8839         * gui-x.c (popup_selection_callback):
8840         handle both :callback and :callback-ex, and generate our own
8841         event because it's one of the callback-ex arguments.
8842         * gui-x.c (button_item_to_widget_value):
8843         * gui-x.c (gui_items_to_widget_values_1):
8844         * gui-x.c (gui_item_children_to_widget_values):
8845         * gui-x.c (gui_items_to_widget_values):
8846         new image instance parameter in various places.
8847
8848         * fns.c (Freplace_list):
8849         fix small typo in doc string.
8850
8851         * lisp.h:
8852         declare enqueue_Xt_dispatch_event.
8853
8854 2000-04-28  Ben Wing  <ben@xemacs.org>
8855
8856         * buffer.c:
8857         * buffer.c (Frecord_buffer):
8858         * buffer.c (syms_of_buffer):
8859         delete record-buffer-hook.
8860
8861         * fns.c:
8862         * fns.c (Freplace_list):
8863         * fns.c (syms_of_fns):
8864         new primitive replace-list.
8865
8866         * frameslots.h:
8867         slot for old buffer-alist.
8868
8869         * lisp.h:
8870         exfun replace-list.
8871
8872         * redisplay.c:
8873         * redisplay.c (redisplay_frame):
8874         * redisplay.c (syms_of_redisplay):
8875         * redisplay.c (vars_of_redisplay):
8876         new hook buffer-list-changed-hook.
8877         call it.
8878
8879 2000-04-27  Ben Wing  <ben@xemacs.org>
8880
8881         * extents.h: extern in_modeline_generation.
8882
8883         * redisplay.c (generate_formatted_string_db): set
8884         in_modeline_generation.
8885
8886         * extents.c (extent_changed_for_redisplay): don't mark redisplay
8887         flags if in modeline generation.  otherwise frame-modified-tick
8888         is ticked far too often.
8889         Declare in_modeline_generation.
8890
8891 2000-04-26  Ben Wing  <ben@xemacs.org>
8892
8893         * emacs.c (vars_of_emacs): document quick-build "error-checking"
8894         option.
8895         (vars_of_emacs): add quick-build as an error-checking option.
8896         A bit kludgy, but there doesn't seem much point in creating
8897         a real var for this.
8898
8899         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
8900
8901 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
8902
8903         * redisplay.h (struct display_line): Add a new variable,
8904         line_continuation.
8905
8906         * redisplay.c (create_text_block): Set dl->line_continuation if
8907         the line continues.
8908         (create_string_text_block): Ditto.
8909         (regenerate_window_incrementally): Use line_continuation instead
8910         of searching continuation glyph.
8911         (add_margin_runes): Call add_glyph_rune.
8912         (add_glyph_rune): Handle margin glyph.
8913
8914 2000-04-20  Martin Buchholz  <martin@xemacs.org>
8915
8916         * filelock.c (fill_in_lock_file_name):
8917         ANSIfy.
8918         Check for IS_ANY_SEP instead of '/'.
8919         (lock_file_1):
8920         Avoid generating gratuitous garbage.  Call user_login_name() directly.
8921         Never check errno without first seeing that system call failed.
8922         (unlock_file): Add GCPRO.
8923         (Flock_buffer): Fix docstring.
8924         (Ffile_locked_p): Fix docstring.  Add GCPRO.
8925
8926 2000-04-19  Martin Buchholz  <martin@xemacs.org>
8927
8928         * sysdep.c (get_pty_max_bytes):
8929         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
8930         strings longer than 252 bytes.
8931
8932         * md5.c: Unconditionally include ANSI header <limits.h>
8933
8934         * glyphs-x.c (convert_EImage_to_XImage):
8935         * lisp-union.h (union Lisp_Object):
8936         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
8937
8938 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8939
8940         * filelock.c (current_lock_owner): Remove unused variable o, p.
8941
8942 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
8943
8944         * callint.c: Remove multiply defined symbol Qlet
8945         (syms_of_callint): ditto.
8946
8947 2000-04-14  Andy Piper  <andy@xemacs.org>
8948
8949         * general.c (syms_of_general): add last-command, this-command, let
8950         and funcall.
8951
8952         * lisp.h: declare various symbols.
8953
8954         * glyphs.h: declare Qwidget_callback_current_channel;
8955
8956         * glyphs-widget.c (syms_of_glyphs_widget): add
8957         Qgui_callback_current_channel.
8958         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
8959
8960         * gui-msw.c (mswindows_handle_gui_wm_command): bind
8961         widget-callback-current-channel when invoking the interactive
8962         arg. Also bind last-command and next-command when invoking the
8963         widget updates.
8964         * gui-x.c (popup_selection_callback): ditto.
8965
8966         * gui.c (get_gui_callback): massage args so that we are always
8967         calling eval. This allows us to add our own variable bindings
8968         outside.
8969
8970         * glyphs-x.c (x_button_instantiate): use
8971         gui_items_to_widget_values since this is GC safe.
8972         (x_progress_gauge_instantiate): ditto.
8973         (x_edit_field_instantiate): ditto.
8974         (x_label_instantiate): ditto.
8975
8976         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
8977         (emacs_Xt_event_widget_focus_out): new function
8978         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
8979         focus.
8980         (emacs_Xt_event_add_widget_actions): new function. add focus
8981         functions as actions.
8982         (init_event_Xt_late): use it.
8983
8984 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
8985
8986         * event-stream.c (Fdispatch_event): Doc fix.
8987
8988 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
8989
8990         * postgresql.c: Remove all references to PQsetenv*.
8991
8992         * postgresql.h: Remove references to PGsetenvHandler object.
8993         * lrecord.h (lrecord_type): Ditto.
8994
8995 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8996
8997         * glyphs-msw.h (struct mswindows_image_instance_data): Added
8998         real_heigh and real_width members, and accessor macros for these.
8999
9000         * glyphs-msw.c (init_image_instance_geometry): New function.
9001         (init_image_instance_from_dibitmap): Use it.
9002         (mswindows_resource_instantiate): Use it.
9003         (init_image_instance_from_xbm_inline): Use it.
9004         (mswindows_initialize_image_instance_mask): Use real bitmap
9005         geometry.
9006         (mswindows_create_resized_bitmap): Ditto.
9007         (mswindows_create_resized_mask): Ditto.
9008
9009         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
9010         and bitmap to their surface size.
9011
9012 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
9013
9014         * process-unix.c (unix_send_process): Guard against process MIA
9015         after Faccept_process_output.
9016
9017 2000-04-11  Ben Wing  <ben@xemacs.org>
9018
9019         * eval.c (unbind_to_hairy): fix brokenness introduced by
9020         nanosecond speed improvements.
9021
9022 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
9023
9024         * sunplay.c (init_device): To play sounds correctly, the device
9025         apparently needs to be initialized at least once by XEmacs.  Make
9026         it so.
9027
9028 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9029
9030         * redisplay.c (add_margin_runes): Add text image glyph
9031           handling.
9032
9033 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
9034
9035         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
9036         gcc is newer than 2.5.
9037
9038 2000-04-06  Colin Rafferty  <colin@xemacs.org>
9039
9040         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
9041
9042         * fns.c (size_bit_vector):
9043         * alloc.c (size_vector):
9044         (make_vector_internal):
9045         (make_bit_vector_internal):
9046         (sweep_bit_vectors_1):
9047         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
9048
9049 2000-04-06  Andy Piper  <andy@xemacs.org>
9050
9051         * gmalloc.c (malloc): undo previous change.
9052         (malloc): ditto.
9053         (free): ditto.
9054         (realloc): ditto.
9055
9056 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
9057
9058         * line-number.c (buffer_line_number): Revert to former version.
9059
9060 2000-04-06  Andy Piper  <andy@xemacs.org>
9061
9062         * gmalloc.c (malloc): add error checking.
9063         (malloc): ditto.
9064         (free): ditto.
9065         (realloc): ditto.
9066
9067         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
9068         button_item_to_widget_value arg.
9069
9070         * glyphs-x.c (x_button_instantiate): add extra
9071         button_item_to_widget_value arg.
9072         (x_progress_gauge_instantiate): ditto.
9073         (x_edit_field_instantiate): ditto.
9074         (x_label_instantiate): ditto.
9075
9076         * gui-x.c (gui_items_to_widget_values_1): add extra
9077         button_item_to_widget_value arg.
9078         (button_item_to_widget_value): add extra menu_item_p arg.
9079
9080         * gui-x.h: change signature of button_item_to_widget_value.
9081
9082         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
9083         button_item_to_widget_value arg.
9084
9085 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9086
9087         * buffer.h (struct buffer): auto_save_modified should be long.
9088
9089 2000-04-05  Andy Piper  <andy@xemacs.org>
9090
9091         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
9092         type.
9093         (button_query_geometry): give a little more room so that athena
9094         buttons fit.
9095
9096 2000-04-05  Andy Piper  <andy@xemacs.org>
9097
9098         * faces.c (complex_vars_of_faces): The widget face should inherit
9099         the font of the gui-element face.
9100
9101 2000-04-04  Andy Piper  <andy@xemacs.org>
9102
9103         * glyphs-x.c (x_button_update): new function. unconditionally
9104         update a button's state when the instance is dirty.
9105         (image_instantiator_format_create_glyphs_x): add x_button_update.
9106         (x_widget_instantiate): remove old resize cruft.
9107
9108 2000-04-02  Andy Piper  <andy@xemacs.org>
9109
9110         * frame.c (change_frame_size_1): The introduction of gutters means
9111         that we need to allow 0 as a potential frame dimension.
9112
9113 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9114
9115         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
9116         image glyph if allow_cursor.
9117         (add_hscroll_rune): Don't allow cursor to border glyph.
9118         (create_text_block): Ditto.
9119
9120         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
9121         text not in buffer.
9122         (redisplay_output_layout): Call ensure_face_cachel_complete for
9123         text image glyph.
9124
9125
9126 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9127
9128         * redisplay.c (add_glyph_rune): Adding text image as text runes.
9129
9130         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
9131         not in buffer
9132
9133         * redisplay-tty.c (tty_output_display_block): Delete the routine
9134         for text image glyph
9135         * redisplay-x.c (x_output_display_block): ditto
9136         * redisplay-msw.c (mswindows_output_display_block): ditto
9137
9138 2000-02-02  Mike Alexander  <mta@arbortext.com>
9139
9140         Note: Some of these were committed by accident as part of other
9141         patches.
9142
9143         * regex.c (regex_compile): Avoid compiler warnings.
9144
9145         * ntproc.c (sys_spawnve): Avoid compiler warnings.
9146
9147         * nt.h: Declare term_ntproc correctly.
9148
9149         * nt.c: Remove incorrect declaration of get_home_directory which
9150         is declared correctly in lisp.h.
9151
9152         * keymap.c (get_keyelt): Avoid compiler warnings.
9153         (raw_lookup_key_mapper): Avoid compiler warnings.
9154
9155         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
9156
9157         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
9158
9159         * filemode.c (mode_string): Avoid compiler warnings.
9160
9161         * file-coding.c (Fcoding_system_aliasee): Add return statement to
9162         avoid warning.
9163
9164         * events-mod.h: Undef some things that winuser.h defines differently.
9165
9166         * data.c (Faset): Avoid compiler warnings.
9167
9168         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
9169
9170 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
9171
9172         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
9173         Fall through to simple beep on error.
9174         Replace "extern" by real header file.
9175
9176         * linuxplay.c: Use nativesound.h
9177         (play_sound_data): Return error code. Be less verbose on error.
9178
9179         * sunplay.c: Use nativesound.h
9180         (play_sound_data): Return error code. Be less verbose on error.
9181
9182         * ntplay.c: Use nativesound.h
9183         (play_sound_data): Return fake error code
9184
9185         * sgiplay.c: Use nativesound.h
9186         (play_sound_data): Return error code
9187
9188         * hpplay.c: Use nativesound.h, partially implement
9189         new error code. Break compilation until finished.
9190         (play_sound_data): error code.
9191
9192         * nativesound.h (play_sound_file):
9193           (play_sound_data): Prototype in new header.
9194
9195 2000-03-31  Andy Piper  <andy@xemacs.org>
9196
9197         * glyphs-widget.c: (button_query_geometry): new function. Adjust
9198         for toggle and radio buttons.
9199         (image_instantiator_buttons): use it.
9200
9201 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
9202
9203         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
9204         (x_update_horizontal_scrollbar_callback): Return if no mirror was
9205         found. Scrollbar event probably belonged to some old config.
9206
9207 2000-03-31  Andy Piper  <andy@xemacs.org>
9208
9209         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
9210         than 1.
9211         (initialize_widget_image_instance): default layout to
9212         LAYOUT_HORIZONTAL rather than 0.
9213         (widget_instantiate): reverse the item list at the end rather than
9214         every iteration.
9215         (layout_layout): re-code for the border text at the front of the
9216         item list rather than at the end.
9217         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
9218         provided by the user.
9219         (widget_query_geometry): comment.
9220
9221 2000-03-30  Andy Piper  <andy@xemacs.org>
9222
9223         * glyphs-widget.c (image_instantiator_layout): allow standard
9224         widget keywords in layouts.
9225
9226         * gutter.c (output_gutter): cope with nil gutter contents.
9227
9228         * frame.c (Fset_frame_properties): add gutter docs.
9229
9230 2000-03-29  Andy Piper  <andy@xemacs.org>
9231
9232         * toolbar-msw.c (TBSTYLE_FLAT): add.
9233         (mswindows_output_toolbar): minor fiddling.
9234
9235 2000-03-29  Andy Piper  <andy@xemacs.org>
9236
9237         * gutter.c (output_gutter): force gutter size recalculation if
9238         what we are trying to display won't fit.
9239         (update_gutter_geometry): new function. A per-gutter version of
9240         update_frame_gutter_geometry.
9241         (update_frame_gutter_geometry): use it.
9242         (redraw_exposed_gutter): add extra debugging output.
9243
9244 2000-03-28  Mike Alexander  <mta@arbortext.com>
9245
9246         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
9247         (pdump_file_unmap): Implement it on Windows
9248         (pdump_file_get): Save alocated handles for pdump_file_unmap
9249
9250 2000-03-28  Andy Piper  <andy@xemacs.org>
9251
9252         * gui.c (get_gui_callback): treat Quit specially.
9253
9254 2000-03-27  Andy Piper  <andy@xemacs.org>
9255
9256         * glyphs.c (image_instantiate): be careful to check in the same
9257         way we assigned.
9258
9259 2000-03-27  Didier Verna  <didier@xemacs.org>
9260
9261         * config.h.in: define the proper SMART_INCLUDE macro.
9262         handle renaming of `foo_h_path' to `foo_h_file'.
9263
9264         * database.c: ditto.
9265
9266         * emacs.c: ditto.
9267
9268         * linuxplay.c: ditto.
9269
9270         * terminfo.c: ditto.
9271
9272         * tooltalk.h: ditto.
9273
9274 2000-03-27  Andy Piper  <andy@xemacs.org>
9275
9276         * glyphs-msw.c (mswindows_update_widget): make sure the widget
9277         gets updated whenever the face might have changed.
9278
9279 2000-03-26  Mike Alexander  <mta@arbortext.com>
9280
9281         * dumper.c (pdump_resource_free): Fix the comment.
9282
9283 2000-03-21  Olivier Galibert  <galibert@pobox.com>
9284
9285         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
9286
9287 2000-03-22  Mike Alexander  <mta@arbortext.com>
9288
9289         * dumper.c: Include Windows headers on Windows
9290         (pdump_resource_free): Add a body to the function
9291         (pdump_load): exe_name -> exe_path and add some comments.
9292
9293 2000-03-25  Mike Alexander  <mta@arbortext.com>
9294
9295         * gui.c (copy_gui_item_tree): Return a value in all cases
9296
9297 2000-03-21  Didier Verna  <didier@xemacs.org>
9298
9299         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
9300         lwlib/config.h.in.
9301         (SMART_INCLUDE): new macro.
9302         (POSTGRES_INCLUDE): new macro to include postgresql headers from
9303         the proper location.
9304
9305         * postgresql.c: use it.
9306
9307         * inline.c: ditto.
9308
9309 2000-03-24  Andy Piper  <andy@xemacs.org>
9310
9311         * gutter.c (redraw_exposed_gutters): must be "in display" when we
9312         do this.
9313
9314 2000-03-24  Andy Piper  <andy@xemacs.org>
9315
9316         * redisplay-output.c (compare_runes): use image_instance_changed
9317         to detect changes. Do not depend on glyphs_changed, only depend on
9318         dirtiness.
9319          (redisplay_output_layout): add debug messages.
9320         (compare_runes): ditto.
9321
9322         * glyphs.h: declare new functions.
9323         (struct Lisp_Image_Instance): remove percent and associated
9324         accessors.
9325
9326         * gui.h: declare new copying functions.
9327
9328         * gui.c (copy_gui_item_tree): new function.
9329         (copy_gui_item): new function.
9330         (gui_item_id_hash): revert to standard hash.
9331         (gui_item_hash): ditto.
9332         (gui_item_hash_internal): deleted.
9333         (mark_gui_item): mark value.
9334         (gui_item_add_keyval_pair): add value.
9335         (gui_item_init): ditto.
9336         (gui_add_item_keywords_to_plist): ditto.
9337         (gui_item_equal): ditto.
9338         (syms_of_gui): add Q_value.
9339
9340         * glyphs-x.c (x_progress_gauge_update): use pending items and
9341         value for setting the state.
9342         (x_update_widget): don't set items from pending here.
9343
9344         * glyphs-widget.c (update_widget): update items here.
9345         (progress_gauge_set_property): use items for storing value. Put
9346         new value in pending items.
9347
9348         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
9349         items for new value. Convert percent -> value.
9350         (mswindows_tab_control_update): don't update items here.
9351
9352         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
9353         (update_subwindow): ditto.
9354         (image_instance_changed): new function. Compare hash values and
9355         past and present widget items.
9356         (image_instantiate): We more careful about where we instantiate
9357         things.
9358         (image_instantiate): add error checking.
9359
9360         * gutter.c (syms_of_gutter): use -hook.
9361
9362 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
9363
9364         * console-tty.c (Fset_console_tty_input_coding_system): Use
9365         Qkeyboard.
9366         (Fset_console_tty_output_coding_system): Use Qterminal.
9367         (tty_init_console): Use Qkeyboard and Qterminal.
9368
9369 2000-03-21  Ben Wing  <ben@xemacs.org>
9370
9371         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
9372         From Mike Alexander <mta@arbortext.com>.
9373
9374 2000-03-21  Ben Wing  <ben@xemacs.org>
9375
9376         * event-msw.c (mswindows_need_event): Horrible kludge to fix
9377         process brokenness.  Proper implementation to come.
9378         * callproc.c:
9379         Rename call-process-internal to old-call-process-internal.
9380         New impl. in process.el.
9381
9382 2000-03-21  Martin Buchholz  <martin@xemacs.org>
9383
9384         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
9385
9386 2000-03-20  Andy Piper  <andy@xemacs.org>
9387
9388         * glyphs.c (full_list_hash): make hashes of the same elements in
9389         different orders return different values.
9390
9391 2000-03-20  Martin Buchholz <martin@xemacs.org>
9392
9393         * XEmacs 21.2.32 is released.
9394
9395 2000-03-20  Martin Buchholz  <martin@xemacs.org>
9396
9397         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
9398         (DFC_MALLOC_USE_CONVERTED_DATA):
9399         Add aliasing-safe casts to allow use with char* or unsigned char*
9400         lvalues.
9401
9402         * eldap.c (Fldap_open):
9403         (Fldap_search_basic):
9404         (Fldap_add):
9405         (Fldap_modify):
9406         Make C++-compilable.
9407         Make sure GCPRO'ed variables are initialized.
9408         Use temp variables to avoid repeated calls to Flength.
9409
9410 2000-03-16  Martin Buchholz  <martin@xemacs.org>
9411
9412         * sysfile.h:
9413         Make sure PATH_MAX is always defined.
9414         Include limits.h for PATH_MAX.
9415         Deprecate use of MAXPATHLEN.
9416
9417 2000-03-10  Martin Buchholz  <martin@xemacs.org>
9418
9419         * emacs.c: Add reinit_vars_of_fileio.
9420         * symsinit.h: Add reinit_vars_of_fileio.
9421         * fileio.c (reinit_vars_of_fileio): New.
9422         * fileio.c (Fmake_temp_name):
9423         Initialize temp_name random number from microseconds to make
9424         collisions even less likely.  Initialize always at process startup
9425         time.  (make-temp-name) used to return the same file name twice in
9426         a row when PDUMP.
9427         Random stylistic fiddling.
9428         Comment fixes.
9429
9430 2000-03-20  Andy Piper  <andy@xemacs.org>
9431
9432         * glyphs.c (image_instantiate): allow text glyphs to be
9433         instantiated in the minibuffer window.
9434
9435 2000-03-19  Andy Piper  <andy@xemacs.org>
9436
9437         * glyphs.c (image_instance_hash): be careful about which items we
9438         hash on.
9439
9440         * glyphs-widget.c (tab_control_set_property): record into pending
9441         items rather than the actual items.
9442
9443         * glyphs-x.c (x_update_widget): use pending items to update with.
9444
9445         * glyphs-msw.c (mswindows_tab_control_update): use pending items
9446         to update with.
9447
9448         * glyphs.c (mark_image_instance): mark pending items.
9449
9450         * window.c (Fset_window_configuration): record the buffer.
9451         (Fselect_window): totally revert previous change which breaks many
9452         things.
9453
9454 2000-03-18  Andy Piper  <andy@xemacs.org>
9455
9456         * glyphs-msw.c (mswindows_tab_control_update): force selected
9457         item.
9458
9459         * glyphs.c (image_instantiate): don't allow the minibuffer as a
9460         window domain cache, otherwise we get inconsistencies at
9461         startup. There is something fishy at startup which can lead to the
9462         minibuffer being the selected window when the gutter content is
9463         instantiated.
9464
9465         * gui.c (parse_gui_item_tree_list): add probably unnecessary
9466         gcpros.
9467         (parse_gui_item_tree_children): ditto.
9468         (parse_gui_item_tree_item): ditto.
9469
9470         * glyphs.c (Fupdate_widget_instances): return something.
9471
9472 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9473
9474         * window.c (Fselect_window): Undo 2000-03-17 change.
9475
9476 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
9477
9478         * postgresql.c (Fpq_setenv): Remove this turkey when linking
9479         against v7.0 libraries.  Insta-coredump city until the postgres
9480         folks fix it.
9481
9482 2000-03-17  Andy Piper  <andy@xemacs.org>
9483
9484         * faces.c (complex_vars_of_faces): don't give the widget face an
9485         inherited background pixmap.
9486
9487         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
9488         selected item.
9489
9490         * event-stream.c (Fdispatch_non_command_events): return something.
9491
9492         * gutter.c (output_gutter): use widget face.
9493         (clear_gutter): ditto.
9494
9495         * NEWS: adjust again.
9496
9497         * window.c (Fselect_window): make sure this runs to completion to
9498         avoid oddities with Fset_window_configuration.
9499         (Fcurrent_window_configuration): in general do not save the
9500         minibuffer as the selected window.
9501
9502         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
9503
9504 2000-03-16  Olivier Galibert  <galibert@pobox.com>
9505
9506         * emacs.c (Frunning_temacs_p): Revert previous patch.
9507         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
9508
9509 2000-03-16  Andy Piper  <andy@xemacs.org>
9510
9511         * glyphs-x.c (x_tab_control_update): if no widget values then
9512         return.
9513
9514         * NEWS: update for new features.
9515
9516         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
9517         synthetic event to the native system.
9518         (reinit_vars_of_event_Xt): set force_event_pending to
9519         emacs_Xt_force_event_pending.
9520
9521         * events.h (struct event_stream): add force_event_pending.
9522
9523         * specifier.c (recompute_one_cached_specifier_in_window): add
9524         comment.
9525
9526         * redisplay.c (redisplay_frame): don't call
9527         update_frame_subwindows. Reset subwindow cachels when
9528         subwindows_changed, removing this was an optimization too far.
9529
9530         * redisplay-output.c (compare_runes): reorganize so that we catch
9531         glyph changes when we want them. Set optimize_output when this
9532         would help layouts.
9533         (redisplay_output_layout): remove frame_really_changed, use
9534         optimize_output instead.
9535
9536         * redisplay-msw.c (mswindows_output_display_block): reset
9537         optimize_output after outputting a glyph.
9538         * redisplay-x.c (x_output_display_block): ditto.
9539         * redisplay-tty.c (tty_output_display_block): ditto.
9540
9541         * gutter.c: (specifier_vars_of_gutter): use new spec changed
9542         functions.
9543         (gutter_specs_changed): do specific gutter positions.
9544         (top_gutter_specs_changed): new function. Only update the
9545         specified gutter specs.
9546         (bottom_gutter_specs_changed): ditto.
9547         (left_gutter_specs_changed): ditto.
9548         (right_gutter_specs_changed): ditto.
9549
9550         * gui.c (gui_item_hash_internal): new function, does a real hash.
9551         (gui_item_id_hash): use it.
9552         (gui_item_hash): hash the eval'ed gui_item.
9553
9554         * gui-x.c (popup_selection_callback): send an eval event to call
9555         Fupdate_widget_instances.
9556
9557         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
9558         to call Fupdate_widget_instances.
9559
9560         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
9561         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
9562
9563         * glyphs.c: (update_frame_subwindows): deleted.
9564         (Fupdate_widget_instances): new function for updating the dirty
9565         state of widgets that might have changed.
9566         (syms_of_glyphs): add Qupdate_widget_instances.
9567         (full_list_hash): hash a list completely.
9568         (image_instance_hash): use it for items and properties.
9569
9570         * frame-msw.c (mswindows_size_frame_internal): remove unused
9571         variable.
9572
9573         * faces.h (struct face_cachel): fix comment.
9574
9575         * event-stream.c (Fdispatch_non_command_events): new
9576         function. Process non-command events, forcing an event cycle
9577         beforehand.
9578         (syms_of_event_stream): declare.
9579         (event_stream_force_event_pending): new function. Force an event
9580         on the native event queue so that an event cycle will occur next
9581         time we check.
9582
9583         * event-msw.c:
9584         (struct ntpipe_shove_stream):
9585         (mswindows_enqueue_dispatch_event):
9586         (mswindows_dequeue_dispatch_event):
9587         (mswindows_cancel_dispatch_event):
9588         (mswindows_pump_outstanding_events):
9589         (mswindows_drain_windows_queue):
9590         (mswindows_handle_paint):
9591         (mswindows_wnd_proc):
9592         (mswindows_key_to_emacs_keysym):
9593         (get_process_input_waitable):
9594         (emacs_mswindows_delete_stream_pair): re-indent file.
9595         (mswindows_need_event): do not process further fds if the windows
9596         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
9597         fixes the 100% cpu problem.
9598         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
9599
9600 2000-03-15  Olivier Galibert  <galibert@pobox.com>
9601
9602         * alloc.h: New.
9603         * dumper.h: New.
9604         * dumper.c: New.
9605
9606         * emacs.c: Moved dump file searching to dumper.c.
9607         (Frunning_temacs_p): Fixed.
9608
9609         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
9610         last_lrecord_type_index_assigned.
9611
9612 2000-02-20  Olivier Galibert  <galibert@pobox.com>
9613
9614         * symsinit.h: Added reinit parameter to init_console_stream
9615         declaration.
9616
9617         * lisp.h: Added file parameter to pdump_load declaration.
9618
9619         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
9620         support.  Added dump file searching.
9621
9622         * config.h.in: Added EMACS_PROGNAME.
9623
9624         * console-stream.c (init_console_stream): Fix reinitialisation
9625         when running from temacs.
9626
9627         * alloc.c (pdump): Add id support.
9628         (pdump_load): Add file parameter and signature/id support.
9629
9630         * Makefile.in.in: Add full pdump support.
9631
9632 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
9633
9634         * postgresql.c: Update documentation to reflect latest code
9635         status.
9636         (print_result): Show tuple counts in printed representation when
9637         appropriate.
9638         (Fpq_put_nbytes): MULE-ize.
9639         (Fpq_get_line_async): Ditto.
9640
9641 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
9642
9643         * postgresql.c (Fpq_lo_import): Fix return value.
9644         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
9645
9646 2000-03-13  Ben Wing  <ben@xemacs.org>
9647
9648         * alloc.c (pdump_load):
9649         Fix compile warning under mswin.
9650
9651 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
9652
9653         * postgresql.c: Mule-ization, bug fixes.
9654         Use PG_CODING to encapsulate coding system name changes.
9655         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
9656         (pg-coding-system): Create.
9657
9658         (Fpq_conn_defaults): Mule-ize.
9659         (Fpq_connectdb): Mule-ize & bug fix.
9660         (Fpq_connect_start): Mule-ize.
9661         (Fpq_set_client_encoding): Mule-ize.
9662         (Fpq_finish): Document `DEAD' connection status.
9663         (Fpq_clear): Ditto.
9664         (Fpq_pgconn): Mule-ize.
9665         (Fpq_exec): Mule-ize & bug fix.
9666         (Fpq_send_query): Ditto.
9667         (Fpq_get_result): Ditto.
9668         (Fpq_res_status): Mule-ize.
9669         (Fpq_result_error_message): Mule-ize.
9670         (Fpq_ntuples): fix comments.
9671         (Fpq_fname): Mule-ize.
9672         (Fpq_fnumber): Mule-ize.
9673         (Fpq_ftype): fix comments.
9674         (Fpq_get_value): Mule-ize.
9675         (Fpq_cmd_status): Ditto.
9676         (Fpq_cmd_tuples): Ditto.
9677         (Fpq_oid_value): Ditto.
9678         (Fpq_notifies): Ditto.
9679         (Fpq_lo_import): Ditto.
9680         (Fpq_lo_export): Ditto.
9681         (Fpq_get_line): Ditto.
9682         (Fpq_put_line): Mule-ize and bug fix.
9683         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
9684
9685 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
9686
9687         * postgresql.c (vars_of_postgresql): Mule-ize.
9688         (Fpq_conn_defaults): Ditto.
9689
9690 2000-03-12  Ben Wing  <ben@xemacs.org>
9691
9692         * alloc.c (Fmake_byte_code):
9693         * alloc.c (debug_string_purity_print):
9694         * alloc.c (pdump_backtrace):
9695         * alloc.c (pdump_get_indirect_count):
9696         * alloc.c (pdump_register_sub):
9697         * alloc.c (pdump_register_object):
9698         * alloc.c (pdump_register_struct):
9699         * alloc.c (pdump_dump_data):
9700         * alloc.c (pdump_reloc_one):
9701         Minor cleanups.
9702
9703         * console-msw.c:
9704         * console-msw.c (GetConsoleHwnd):
9705         * console-msw.c (msw_hide_console):
9706         * console-msw.c (msw_show_console):
9707         * console-msw.c (msw_ensure_console_buffered):
9708         * console-msw.c (msw_output_console_string):
9709         * console-msw.c (console_type_create_mswindows):
9710
9711         a) Added functions to manipulate the console window for use with
9712         shell support.
9713
9714         b) Added support for writing text to the console, which is now
9715         used under Windows when xemacs is not being run non-interactively,
9716         to write text that would otherwise be destined for stdout because
9717         under these circumstances, text written to stdout tends to
9718         disappear and not be seen.
9719
9720         * console-msw.h:
9721         * event-Xt.c:
9722         * event-Xt.c (x_event_to_emacs_event):
9723         * event-Xt.c (describe_event_window):
9724         * events-mod.h (XEMACS_MOD_CONTROL):
9725         * events.c:
9726         * events.c (Fmake_event):
9727         * events.c (character_to_event):
9728         * events.c (event_to_character):
9729         * events.c (format_event_object):
9730         * events.c (Fevent_modifiers):
9731         * events.h:
9732         * events.h (struct key_data):
9733         * events.h (struct button_data):
9734         * events.h (struct misc_user_data):
9735         * frame-x.c (Fcde_start_drag_internal):
9736         * frame-x.c (Foffix_start_drag_internal):
9737         * gpmevent.c (Freceive_gpm_event):
9738         * keymap.c:
9739         * keymap.c (bucky_sym_to_bucky_bit):
9740         * keymap.c (control_meta_superify):
9741         * keymap.c (make_key_description):
9742         * keymap.c (keymap_lookup_directly):
9743         * keymap.c (create_bucky_submap):
9744         * keymap.c (keymap_store):
9745         * keymap.c (define_key_check_and_coerce_keysym):
9746         * keymap.c (define_key_parser):
9747         * keymap.c (define_key_alternate_name):
9748         * keymap.c (Fdefine_key):
9749         * keymap.c (raw_lookup_key_mapper):
9750         * keymap.c (struct map_keymap_unsorted_closure):
9751         * keymap.c (map_keymap_unsorted_mapper):
9752         * keymap.c (map_keymap_sort_predicate):
9753         * keymap.c (map_keymap_sorted):
9754         * keymap.c (accessible_keymaps_mapper_1):
9755         * keymap.c (where_is_recursive_mapper):
9756         * keymap.c (describe_map_mapper):
9757         * keymap.c (describe_map_sort_predicate):
9758         * keymap.c (describe_map):
9759         * keymap.c (complex_vars_of_keymap):
9760         And a number of other files, the key modifier preprocessor
9761         constants that xemacs uses have names that conflict with constants
9762         defined under MS Windows for other purposes, so they were renamed
9763         to begin with the prefix XEMACS_. The variables that hold such
9764         modifiers were changed to consistently be of type int to fix
9765         various compile warnings.
9766
9767         * console.c (complex_vars_of_console):
9768         * device.c:
9769         * device-msw.c:
9770         * device-msw.c (mswindows_finish_init_device):
9771         * device-msw.c (msw_get_workspace_coords):
9772         * device-msw.c (mswindows_device_system_metrics):
9773         and various other files, added support for a new
9774         device property called offset-workspace which returns the position
9775         of the upper left corner of the workspace area and goes along with
9776         the existing size-workspace property.
9777
9778         * dialog-msw.c:
9779         * dialog-msw.c (push_bufbyte_string_as_unicode):
9780         * dialog-msw.c (mswindows_popup_dialog_box):
9781         Added support for XEmacs-style accelerator specifications in
9782         button text.  Note: I didn't add support for this under X Windows,
9783         and somebody needs to do this.
9784
9785         * dialog.c:
9786         * dialog.c (Fpopup_dialog_box):
9787         Documented the support for accelerators that was just mentioned.
9788
9789         editfns.c (get_home_directory): Changed behavior under Windows
9790         when HOME not defined; former behavior was irretrievably broken.
9791
9792         * emacs.c:
9793         * emacs.c (main_1):
9794         * emacs.c (main):
9795         * minibuf.c (clear_echo_area_internal):
9796         * minibuf.c (echo_area_append):
9797         * print.c:
9798         * print.c (std_handle_out_external):
9799         * print.c (std_handle_out_va):
9800         * print.c (fatal):
9801         * print.c (write_string_to_stdio_stream):
9802         * print.c (output_string):
9803         * print.c (debug_print):
9804         * print.c (debug_backtrace):
9805         * print.c (debug_short_backtrace):
9806         Cleaned up the code that prints text to stdout so that this can be
9807         changed to output into a console window instead under MS Windows,
9808         as described above.
9809
9810         * eval.c:
9811         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
9812         * eval.c (internal_catch):
9813         * eval.c (unwind_to_catch):
9814         * eval.c (throw_or_bomb_out):
9815         * eval.c (condition_case_1):
9816         * eval.c (signal_1):
9817         * eval.c (check_error_state_sanity):
9818         * eval.c (call_with_suspended_errors_1):
9819         * eval.c (call_with_suspended_errors):
9820         * eval.c (reinit_vars_of_eval):
9821         Added code to catch throw loops and check for a pesky bug that may
9822         be gone now.
9823
9824         * event-msw.c:
9825         * event-msw.c (key_needs_default_processing_p):
9826         * event-msw.c (mswindows_wnd_proc):
9827         * event-msw.c (mswindows_modifier_state):
9828         * event-msw.c (emacs_mswindows_quit_p):
9829         * event-msw.c (vars_of_event_mswindows):
9830         a) Added support for using the alt key to select menu items as is
9831         standard under MS Windows.  This is controlled using the variable
9832         menu-accelerator-enabled, just like under X Windows.  There is an
9833         option on the options menu to turn this support on.  I really
9834         think that it should be on by default under Windows, but I'm not
9835         going to make this change yet.
9836
9837         b)  Added support for dynamic display size changes under Windows.
9838
9839         * event-stream.c:
9840         * event-stream.c (maybe_echo_keys):
9841         * event-stream.c (Fnext_event):
9842         * event-stream.c (command_builder_find_leaf):
9843         * event-stream.c (lookup_command_event):
9844         * event-stream.c (execute_command_event):
9845         * event-stream.c (pre_command_hook):
9846         * event-stream.c (post_command_hook):
9847         * event-stream.c (syms_of_event_stream):
9848         * event-stream.c (vars_of_event_stream):
9849         * event-stream.c (complex_vars_of_event_stream):
9850         * events.h (struct command_builder):
9851
9852         a) Tried to clean up a little bit the horribly written x-specific
9853         accelerator code that crept into this file.  I moved this code
9854         into menubar-x.c where it belongs. I also needed to move the
9855         command builder structure into the file events.h because it is
9856         accessed directly by this accelerator code.  What I didn't do, but
9857         which should be done at some point, is to properly abstract this
9858         code using device methods instead of the kludgy way that it
9859         currently hooks into the event code.
9860
9861         b) Added the lisp variables this-command-properties and
9862         last-command- properties, which should be used to synchronize two
9863         adjacent commands in preference to playing games with the variable
9864         this-command, which is typically what happens.
9865
9866         c) Added some slightly nasty code to hook into the lisp support
9867         for shifted- motion-key selection.  This is actually necessary for
9868         somewhat complicated reasons, which are described in
9869         simple.el. (NB: I think the proper thing would be to have the code
9870         that calls the pre and post command hooks also call out to generic
9871         lisp functions in simple.el, where all built-in stuff could be
9872         added.  I will think about this more.)
9873
9874         * event-unixoid.c (poll_fds_for_input):
9875         * lread.c (readchar):
9876         * redisplay-tty.c (tty_clear_frame):
9877         * redisplay-x.c (x_get_gc):
9878         * signal.c (interrupt_signal):
9879         And a whole bunch of other files: fixed up places that printed
9880         directly to stderr to instead call the function stderr_out so that
9881         the changes I made under Windows work correctly.
9882
9883         * filemode.c (mode_string):
9884         Warning fixes.
9885
9886         * frame-msw.c:
9887         * frame-msw.c (mswindows_size_frame_internal):
9888         Fixed the computation of frame size and position to keep the frame
9889         within the workspace area, rather than within the physical
9890         dimensions of the screen, so that the frame doesn't overlap window
9891         manager decorations, such as the start menu and toolbar, typically
9892         at the bottom of the screen.
9893
9894         * frame.c (vars_of_frame):
9895         Changed the default frame title format under MS Windows to consist
9896         of buffername-XEmacs, which is standard under MS Windows.  I think
9897         it might be a good idea to change this everywhere because I think
9898         it is superior to the current frame title format, but this is the
9899         kind of change that is likely to cause some people to get annoyed,
9900         so I'm not making it.
9901
9902         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
9903
9904         * gui-msw.c (mswindows_handle_gui_wm_command):
9905         Fixed compile warnings.
9906
9907         * gui-x.c:
9908         * gui-x.c (strdup_and_add_accel):
9909         * gui-x.c (button_item_to_widget_value):
9910         * gui-x.h:
9911         Added code to automatically put an accelerator onto the beginning
9912         of menu items that don't have one as is now the standard, and is
9913         described more later.  Also fixed things so that the menu item
9914         name can be an evaluated expression, again a new standard.
9915
9916         * gui.c:
9917         * gui.c (gui_item_add_keyval_pair):
9918         * gui.c (make_gui_item_from_keywords_internal):
9919         * gui.c (gui_add_item_keywords_to_plist):
9920         * gui.c (gui_item_accelerator):
9921         * gui.c (gui_name_accelerator):
9922         * gui.c (gui_item_included_p):
9923         * gui.c (gui_item_display_flush_left):
9924         * gui.c (gui_item_display_flush_right):
9925         * gui.c (parse_gui_item_tree_item):
9926         * gui.c (parse_gui_item_tree_children):
9927         * gui.c (parse_gui_item_tree_list):
9928         Mule-ized.  Cleanup.  GCPRO addition.
9929
9930         * line-number.c (buffer_line_number):
9931         * lisp.h:
9932         * lisp.h (EMACS_INT_MAX):
9933         Added the manifest constant EMACS_INT_MIN corresponding to the
9934         existing constant EMACS_INT_MAX.  This is partially to fix compile
9935         warnings under Windows, and partly for cleanliness.
9936
9937         * menubar-msw.c:
9938         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
9939         * menubar-msw.c (msw_translate_menu_or_dialog_item):
9940         * menubar-msw.c (displayable_menu_item):
9941         * menubar-msw.c (populate_menu_add_item):
9942         * menubar-msw.c (populate_or_checksum_helper):
9943         * menubar-msw.c (populate_menu):
9944         * menubar-msw.c (update_frame_menubar_maybe):
9945         * menubar-msw.c (prune_menubar):
9946         * menubar-msw.c (msw_char_is_accelerator):
9947         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
9948         * menubar-msw.c (mswindows_handle_wm_command):
9949         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
9950         * menubar-msw.c (mswindows_handle_wm_initmenu):
9951         * menubar-msw.c (mswindows_update_frame_menubars):
9952         * menubar-msw.c (mswindows_free_frame_menubars):
9953         * menubar-msw.c (mswindows_popup_menu):
9954         Fixed a bug in handling accelerators where an extra character
9955         would be displayed in the menu item.  Also generalized the
9956         function displayable_menu_item because it is now used by the
9957         dialog box code as well.  And finally, added code in the functions
9958         that create the menubar to extract a list of accelerators for the
9959         top level menubar, which is used in the event code to determine
9960         whether a particular alt-key combination should be used to invoke
9961         a menu item, or should be passed through to access the standard
9962         XEmacs keymap binding for this key combination.
9963
9964         Much needed GCPROing.
9965
9966         * menubar-x.c:
9967         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9968         * menubar-x.c (menu_item_descriptor_to_widget_value):
9969         * menubar-x.c (restore_in_menu_callback):
9970         * menubar-x.c (x_popup_menu):
9971         * menubar-x.c (menu_move_up):
9972         * menubar-x.c (menu_move_down):
9973         * menubar-x.c (menu_move_left):
9974         * menubar-x.c (menu_move_right):
9975         * menubar-x.c (menu_select_item):
9976         * menubar-x.c (command_builder_operate_menu_accelerator):
9977         * menubar-x.c (menu_accelerator_junk_on_error):
9978         * menubar-x.c (command_builder_find_menu_accelerator):
9979         * menubar-x.c (Faccelerate_menu):
9980         * menubar.h:
9981         Moved a whole bunch of code here that was previously in
9982         event-stream.c as described above.  There is also code connected
9983         to the new standard of adding an accelerator to the beginning of
9984         menu items that don't have one as described above and below.
9985
9986         * menubar.c:
9987         * menubar.c (menu_parse_submenu_keywords):
9988         * menubar.c (Fmenu_find_real_submenu):
9989         * menubar.c (Fnormalize_menu_item_name):
9990         * menubar.c (syms_of_menubar):
9991         * menubar.c (vars_of_menubar):
9992         * menubar.c (complex_vars_of_menubar):
9993
9994         a) Cleaned up a bunch of documentation and improved it.
9995
9996         b) XEmacs now automatically adds an accelerator onto the beginning
9997         of any menu items that don't have one.  I did this because there
9998         will inevitably be some menu items on the main menubar that don't
9999         have accelerators on them because the package that adds that
10000         particular menu item hasn't yet been fixed up to have accelerators
10001         in them and it looked rather strange to have some items with and
10002         some items without accelerators, especially since even in items
10003         without accelerators, you can, at least under windows, still
10004         access the item through an accelerator corresponding to the first
10005         character in the item's name.  If people don't like this behavior,
10006         I can add a variable to turn it off optionally, but I'm not sure
10007         this is a good idea because we really do need to have accelerators
10008         on all of the menu items, and if a package doesn't like the
10009         accelerators being put on the first character, then it should put
10010         the accelerators where they belong.
10011
10012         c) I made a behavior change, which is that the descriptor that
10013         specifies the text of the menu item, which formerly was just a
10014         string, can now also be an evaluated expression.  This makes this
10015         descriptor parallel with all of the others, which could also be
10016         evaluated expressions.  This also obviates the need for the
10017         keyword :label, which was previously listed in the documentation
10018         as unimplemented, and which was for the same purpose.
10019
10020         d) GCPROing.
10021
10022         * ntproc.c:
10023         * ntproc.c (new_child):
10024         * ntproc.c (sys_spawnve):
10025         * ntproc.c (find_child_console):
10026         * ntproc.c (sys_kill):
10027         Fixed compile warnings.  By the way, this file should really go
10028         away entirely, and this will happen as soon as Kirill makes his
10029         final round of process cleanups, which affect the function
10030         call-process.
10031
10032         * process-nt.c:
10033         * process-nt.c (struct nt_process_data):
10034         * process-nt.c (find_process_from_pid):
10035         * process-nt.c (send_signal_the_nt_way):
10036         * process-nt.c (enable_child_signals):
10037         * process-nt.c (find_child_console):
10038         * process-nt.c (send_signal_the_95_way):
10039         * process-nt.c (nt_finalize_process_data):
10040         * process-nt.c (ensure_console_window_exists):
10041         * process-nt.c (nt_create_process):
10042         * process-nt.c (nt_kill_child_process):
10043         * process-nt.c (nt_kill_process_by_pid):
10044         * process-nt.c (nt_open_network_stream):
10045         * process-nt.c (vars_of_process_nt):
10046         Copied over code from Emacs 20.5 to correctly send signals to sub-
10047         processes under Windows 95.  Also added code to automatically
10048         create and hide console window when a sub-process is created under
10049         Windows 95, which obviates the need for the separate runemacs.exe
10050         executable, and finally implemented some variables that were
10051         implemented in Emacs 20.5, but previously not in XEmacs.  These
10052         include mswindows- start-process-share-console and
10053         mswindows-start-process-inherit-error-mode. (Both of these only
10054         apply to Windows 95.)
10055
10056         * regex.c (regex_compile): Fixed a compile warning.
10057
10058         * select-msw.c:
10059         * select-msw.c (mswindows_own_selection):
10060         * select-msw.c (mswindows_get_foreign_selection):
10061         * select-msw.c (mswindows_disown_selection):
10062         * select-msw.c (console_type_create_select_mswindows):
10063         * select-msw.c (syms_of_select_mswindows):
10064         Cleaned up the file and implemented the device method
10065         selection_exists_p, which had accidentally been left out.  Also
10066         removed four lisp functions that were remnants from before the
10067         time when the selection code was properly device abstracted.
10068         These functions are no longer needed because there are generic
10069         equivalents, and because they were added recently and don't exist
10070         in FSF Emacs, I don't think there's any problem with just deleting
10071         them.
10072
10073         * sysdep.c:
10074         * sysdep.c (sys_subshell):
10075         Fixed a compile warning, although in this case there's probably
10076         something wrong with this code, and it ought to be looked into
10077         more thoroughly by somebody who understands it.
10078
10079         * window.c:
10080         * window.c (Fwindow_text_area_height):
10081         * window.c (Fwindow_width):
10082         * window.c (Fwindow_full_width):
10083         * window.c (Fwindow_pixel_width):
10084         * window.c (debug_print_window):
10085         * window.c (syms_of_window):
10086         Added functions window-text-area-height and window-full-width,
10087         which are functions for returning various width and height
10088         characteristics of a window. (One of these functions is necessary
10089         for making the file dialog box work correctly, and the other one
10090         was added for completeness.)  Also added a table to the
10091         documentation for window-height which describes the entire scheme
10092         for accessing width and height characteristics of a window.
10093
10094 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10095
10096         * nt.c (fstat): Added a comment for another problem with
10097         non-encapsulated [f]stat(), reported by Adrian Aichner
10098         <aichner@ecf.teradyne.com>.
10099
10100 2000-03-11  Andy Piper  <andy@xemacs.org>
10101
10102         * window.c (make_dummy_parent): initialize subwindow instance
10103         cache.
10104         (Fset_window_configuration): zero extent_modiff.
10105
10106 2000-03-10  Andy Piper  <andy@xemacs.org>
10107
10108         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
10109         more changes can be triggered.
10110         (Fredisplay_frame): ditto.
10111         (Fredraw_device): ditto.
10112         (Fredisplay_device): ditto.
10113         (redisplay_frame): make non-static.
10114         (redisplay_frame): call update_frame_gutter_geometry outside of
10115         display proper.
10116
10117         * gutter.h: declare update_frame_gutter_geometry.
10118
10119         * redisplay.h: declare redisplay_frame.
10120
10121         * gutter.c (update_frame_gutter_geometry): move geometry changes
10122         in update_frame_gutters here. Geometry changes can only occur
10123         outside of redisplay.
10124         (update_frame_gutters): remove geometry change code.
10125         (Fredisplay_gutter_area): make sure that we are in display when we
10126         update and that we have flushed any size changes.
10127
10128 2000-03-11  Andy Piper  <andy@xemacs.org>
10129
10130         * alloc.c (pdump_dump_data): remove i & count shadows.
10131
10132 2000-02-27  Mike Alexander  <mta@arbortext.com>
10133
10134         * sysdep.h: Declare pdump_read_file
10135
10136         * sysdep.c (pdump_read_file): New function
10137
10138         * alloc.c (pdump_load): Call pdump_read_file to get the portable
10139         dump data
10140
10141 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
10142
10143         * lrecord.h: add `lrecord_type_pgsetenv'.
10144
10145 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
10146
10147         * symsinit.h: declare (vars|syms)_of* functions.
10148         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
10149
10150 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
10151
10152         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
10153
10154         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
10155         GCCs.
10156
10157         * emacs.c (main_1): Call postgres initialization code.
10158
10159         * postgresql.h: New file.  PostgreSQL RDBMS support.
10160         * postgresql.c: New file.
10161
10162 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
10163
10164         * redisplay-output.c (redisplay_output_display_block): Disable
10165         redundant code.
10166
10167 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10168
10169         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
10170         (Fcanna_henkan_next): Ditto.
10171         (Fcanna_bunsetu_henkou): Ditto.
10172         (Fcanna_henkan_kakutei): Ditto.
10173         (Fcanna_henkan_end): Ditto.
10174         (Fcanna_henkan_quit): Ditto.
10175         (Fcanna_henkan_next): Set retun value correctly.
10176         (c2mu): Use unsigned char instead of signed char.
10177
10178 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10179
10180         * emacs.c (main_1): Always call syms_of_gui.
10181         * inline.c: include gui.h
10182
10183 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10184
10185         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
10186         converted to Lisp_Object.
10187         (Qtop_bottom): New variable.
10188         (syms_of_redisplay): Initialize it.
10189         * redisplay.h (Vvisible_bell): Ditto.
10190         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
10191         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
10192         only flash top and bottom.
10193
10194 2000-03-08  Andy Piper  <andy@xemacs.org>
10195
10196         * buffer.c (Frename_buffer): record new buffer name the right way.
10197
10198 2000-03-08  Andy Piper  <andy@xemacs.org>
10199
10200         * glyphs.c (update_subwindow): increase hash depth so that widget
10201         items get picked up properly.
10202
10203         * redisplay-output.c (compare_runes): increase hash depth so that
10204         widget items get picked up properly.
10205
10206 2000-03-08  Andy Piper  <andy@xemacs.org>
10207
10208         * gutter.c (output_gutter): add some debug.
10209
10210         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
10211         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
10212         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
10213
10214         * redisplay-output.c (compare_runes): use display_hash to
10215         determine if glyphs really are not the same.
10216
10217         * glyphs.c (update_subwindow): check display_hash to see if
10218         anything really needs to be updated. If not then do
10219         nothing. Record the display_hash after updating.
10220         (image_instance_equal): compare the image_instance face also.
10221
10222 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
10223
10224         * redisplay.h: Fix comment style.
10225
10226 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10227
10228         * consle-msw.h (struct mswindows_frame):
10229         Added new member paint_pending to indicate whether a WM_PAINT
10230         magic event has been queued for this frame.
10231
10232         * event-msw.c (mswindows_drain_windows_queue):
10233         Don't queue a WM_PAINT magic event if one is already queued.
10234         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
10235
10236         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
10237
10238 2000-03-07  Didier Verna  <didier@xemacs.org>
10239
10240         * dired.c: #include `regex.h' after `sysfile.h'.
10241
10242 2000-03-06  Martin Buchholz  <martin@xemacs.org>
10243
10244         * sound.c (init_nas_sound): Fix compiler warning.
10245
10246         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
10247         (FREE_STRUCT_P):
10248         (MARK_STRUCT_AS_FREE):
10249         (MARK_STRUCT_AS_NOT_FREE):
10250         Make `gcc -fstrict-aliasing' work properly.
10251
10252 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10253
10254         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
10255         (mswindows_delete_device): Call CoUnnitialize().
10256
10257         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
10258
10259 2000-02-25    <CraigL@DyCon.com>
10260
10261         * process-nt.c: MinGW now has <shellapi.h>, but still needs
10262         <errno.h>.
10263
10264         * sysdep.c: This extern declaration for environ prevents MinGW
10265         from finding the variable in CRTDLL.DLL.
10266
10267         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
10268         windows headers.
10269         (SHGFI_EXETYPE): ..
10270         (WM_MOUSEWHEEL): ..
10271         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
10272         definitions.
10273         (MMRESULT): Removed, now defined in cygwin's windows headers.
10274         (TIMECAPS): ..
10275         (uid_t,gid_t,pid_t,ssize_t): ..
10276         (_timeb): Removed, MinGW defines both _timeb and timeb.
10277         (HAVE_H_ERRNO): Added.
10278         (HAVE_TZNAME): Added, configure is not detecting this.
10279
10280 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
10281
10282         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
10283         * syntax.c (syntax_match): Use it.
10284
10285         * cmds.c: Import auto-fill-chars from FSF Emacs.
10286         (Vauto_fill_chars): New variables.
10287         (internal_self_insert): Check Vauto_fill_chars.
10288         (vars_of_cmds):
10289         Declare auto-fill-chars as a Lisp variable and initialize it.
10290
10291 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10292
10293         * fileio.c (Fmake_symbolic_link):
10294         (Ffile_symlink_p):
10295         Run handlers even if local machine doesn't have symlinks.
10296
10297 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10298
10299         * event-msw.c (mswindows_drain_windows_queue):
10300         Don't generate paint magic events for non-XEmacs frames.
10301
10302 2000-03-05  Andy Piper  <andy@xemacs.org>
10303
10304         * redisplay.c (redisplay_frame): generate_displayable_area and
10305         friends assumes that we are not in GC, we therefore have to make
10306         sure that this doesn't happen.
10307
10308         * gutter.c (calculate_gutter_size): generate_displayable_area
10309         assumes that we are not in GC, we therefore have to make sure that
10310         this doesn't happen.
10311
10312 2000-03-05  Martin Buchholz  <martin@xemacs.org>
10313
10314         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
10315
10316 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
10317
10318         * redisplay.c (regenerate_window): Make sure we set a sane value
10319         for end_pos even if we jump out of the loop.
10320         (regenerate_window): Answer Ben's question :-).
10321         (start_end_of_last_line): Add may_error argument.
10322         (start_of_last_line):
10323         (end_of_last_line): Pass may_error = 0.
10324         (end_of_last_line_may_error): New function.
10325         (pixel_to_glyph_translation): Use it, so we don't crash in
10326         event_to_glyph.
10327
10328 2000-03-04  Andy Piper  <andy@xemacs.org>
10329
10330         * window.h (struct window): add gutter_extent_modiff.
10331
10332         * window.c (allocate_window): zero out gutter_extent_modiff.
10333
10334         * redisplay.h: declare sync_display_line_structs.
10335
10336         * redisplay.c (add_glyph_rune): add a better comment.
10337
10338         * redisplay-output.c (sync_display_line_structs): made non-static.
10339         (compare_runes): remove unneccesary glyph cachel access.
10340
10341         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
10342
10343         * gutter.c (output_gutter): don't output the gutter if extent
10344         changes only involve extents in buffers. use 4 sets of display
10345         lines.
10346         (gutter_extent_signal_changed_region_maybe): new function. Mark
10347         extents in gutters as changed.
10348         (update_frame_gutters): use 4 sets of display lines.
10349         (reset_gutter_display_lines): ditto.
10350         (free_frame_gutters): ditto.
10351         (redraw_exposed_gutter): force output of gutters.
10352
10353         * frame.h (struct frame): add 4 sets of gutter display lines.
10354
10355         * extents.c: (extent_changed_for_redisplay): signal changes to
10356         extents in strings in the gutter as well as extents in buffers.
10357
10358 2000-03-02  Andy Piper  <andy@xemacs.org>
10359
10360         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
10361
10362         * frame.c (Fmake_frame): make sure the gutters get initialized
10363         after the frame is visible.
10364         (set_frame_selected_window): re-arrange compilation macros a
10365         little.
10366         (change_frame_size_1): mark gutters changed.
10367
10368         * device.c (Fset_device_class): mark gutters changed.
10369
10370 2000-03-01  Andy Piper  <andy@xemacs.org>
10371
10372         * window.c (window_top_frame_gutter_height): deleted.
10373         (window_bottom_frame_gutter_height): ditto.
10374         (window_left_frame_gutter_height): ditto.
10375         (window_right_frame_gutter_height): ditto.
10376         (window_top_gutter_height): don't use them.
10377         (window_bottom_gutter_height): ditto.
10378         (window_left_gutter_width): ditto.
10379         (window_right_gutter_width): ditto.
10380         (Fsplit_window): ditto.
10381         (Fwindow_pixel_edges): don't use border dimensions here.
10382
10383         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
10384         (update_scrollbar_instance): ditto.
10385
10386         * redisplay.c (generate_modeline): don't take gutters into account.
10387         (generate_modeline): ditto.
10388         (redisplay_frame): small gutter display optimization.
10389
10390         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
10391
10392         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
10393         gutters into account.
10394
10395         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
10396         for window position and type.
10397
10398         * gutter.c (get_gutter_coords): fix for frame gutters.
10399         (update_frame_gutters): update frame geometry if the gutters have
10400         changed.
10401         (init_frame_gutters): record current gutter geometries.
10402
10403         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
10404         var.
10405         (mswindows_widget_instantiate): ditto.
10406
10407         * frame.h (struct frame): add current_gutter_bounds.
10408
10409         * frame.c (change_frame_size_1): position window and minibuffer
10410         appropriately taking into account the frame gutters.
10411
10412         * frame-x.c: (x_initialize_frame_size): take into account the
10413         frame gutters.
10414
10415 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
10416
10417         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
10418
10419 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
10420
10421         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
10422
10423 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
10424
10425         * file-coding.c (reset_decoding_stream): Clear previous
10426         detection state when autodetect.
10427
10428 2000-02-29  Didier Verna  <didier@xemacs.org>
10429
10430         * extents.c (set_extent_glyph_1): don't require extents to be
10431         attached.
10432
10433 2000-02-27  Andy Piper  <andy@xemacs.org>
10434
10435         * gutter.c (Fset_default_gutter_position): don't default left and
10436         right gutter visibility to t.
10437         (Fset_default_gutter_position): run
10438         default-gutter-position-changed-hook.
10439         (syms_of_gutter): add default-gutter-position-changed-hook.
10440
10441 2000-02-26  Andy Piper  <andy@xemacs.org>
10442
10443         * specifier.c (Fmake_specifier): add gutter references.
10444
10445         * gutter.h (RAW_WINDOW_GUTTER): new macro.
10446
10447         * lisp.h: declare Fvalid_plist_p.
10448
10449         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
10450         as changed.
10451         (default_gutter_visible_p_changed_in_window): invalidate gutter as
10452         well as its visibility so that it gets reconstructed.
10453         (construct_window_gutter_spec): new function. Construct a string
10454         to be displayed in the gutter from a plist of strings. Take care
10455         to only use elements that are declared as visible.
10456         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
10457         WINDOW_GUTTER.
10458         (gutter_validate): allow plists of strings in the specifier.
10459         (gutter_specs_changed): construct the real_gutter from the gutter
10460         specs using construct_window_gutter_spec.
10461         (gutter_visible_validate): gutter-visible is a new specifier type.
10462         (Fgutter_visible_specifier_p): new function for the new specifier.
10463         (syms_of_gutter): declare gutter-visible and
10464         Fgutter_visible_specifier_p.
10465         (specifier_type_create_gutter): intitalize new gutter-visible
10466         specifier.
10467         (reinit_specifier_type_create_gutter): ditto.
10468         (specifier_vars_of_gutter): use new specifier type for gutter
10469         visibility.
10470         (init_frame_gutters): construct real_gutter correctly.
10471         (Fgutter_specifier_p): beef up documentation.
10472         (Fgutter_size_specifier_p): ditto.
10473
10474         * winslots.h: add real_gutter slots.
10475
10476 2000-02-25  Andy Piper  <andy@xemacs.org>
10477
10478         * device-msw.c: Be kind to older cygwin versions. From Raymond
10479         Toy <toy@rtp.ericsson.se>.
10480
10481         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
10482         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
10483
10484 2000-02-25  Martin Buchholz  <martin@xemacs.org>
10485
10486         * elhash.c (MARK_OBJ): Practice macro hygiene.
10487
10488 2000-02-24  Martin Buchholz  <martin@xemacs.org>
10489
10490         * miscplay.c: s/__inline__/inline/g;
10491         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
10492         (get_device_compdc): INLINE ==> static inline
10493         * *.[ch]: Change INLINE to INLINE_HEADER globally.
10494         find -name '*.h' | \
10495         xargs global-replace \
10496         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
10497
10498 2000-02-25  Andy Piper  <andy@xemacs.org>
10499
10500         * window.c (window_top_frame_gutter_height): new function.
10501         (window_top_window_gutter_height): ditto.
10502         (window_top_gutter_height): use them.
10503         (window_bottom_frame_gutter_height): new function.
10504         (window_bottom_window_gutter_height): ditto.
10505         (window_bottom_gutter_height): use them.
10506         (window_left_window_gutter_width): new function.
10507         (window_left_frame_gutter_width): ditto.
10508         (window_left_gutter_width): use them.
10509         (window_right_window_gutter_width): new function.
10510         (window_right_frame_gutter_width): ditto.
10511         (window_right_gutter_width): use them.
10512         (window_pixel_height): new function. calulate window pixel height
10513         with frame gutter involvement.
10514         (Fsplit_window): calculate new sizes taking frame gutters into
10515         account.
10516         (window_char_height_to_pixel_height): don't include frame gutters.
10517         (window_char_height): use window_pixel_height.
10518         (window_pixheight): rename from window_pixel_height.
10519         (change_window_height): use it.
10520         (window_pixel_height_to_char_height): don't include frame gutters.
10521         (window_char_width_to_pixel_width): ditto.
10522
10523 2000-02-25  Andy Piper  <andy@xemacs.org>
10524
10525         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
10526         if it is.
10527
10528 2000-02-24  Martin Buchholz  <martin@xemacs.org>
10529
10530         * alloc.c (staticpro):
10531         (staticpro_nodump):
10532         (dumpstruct):
10533         (dumpopaque):
10534         (pdump_wire):
10535         (pdump_wire_list):
10536         (compact_string_chars):
10537         (pdump_dump_wired):
10538         Convert:  if (foo) abort();  ==>  assert (! foo);
10539
10540         * eldap.c (Fldap_search_basic):
10541         (Fldap_add):
10542         (Fldap_modify):
10543         (Fldap_delete):
10544         Fix compiler warnings, and possible crashes if (random) return
10545         value were to be used.
10546
10547 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10548
10549         * device-msw.c: Workaround ResetDC failure.
10550
10551         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
10552         applying a devmode.
10553
10554         * redisplay-msw.c (get_frame_dc): Added start_page_p.
10555         (mswindows_text_width): Do not start printer page.
10556
10557         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
10558
10559         * glyphs-msw.c: Added image methods to msprinter console and
10560         msprinter-specific image instantiation.
10561
10562 2000-02-20  Mike Alexander  <mta@arbortext.com>
10563
10564         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
10565         to avoid crashes when selection-sets-clipboard is on
10566         (mswindows_own_selection): ditto
10567
10568 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10569
10570         * glyphs-msw.c:
10571         * redisplay-msw.c (get_frame_dc):
10572         (get_frame_compdc):
10573         * console-msw.h:
10574         * device-msw.c (mswindows_init_device):
10575         (mswindows_delete_device):
10576         (msprinter_init_device):
10577         (msprinter_delete_device):
10578         * frame-msw.c (mswindows_init_frame_1):
10579         (mswindows_delete_frame):
10580         (msprinter_init_frame_3):
10581         (msprinter_delete_frame): Move compatible DC to device object from
10582         frame object, for both mswindows and msprinter. Only one at a time
10583         is needed, it is a real waste to have one per frame!
10584
10585 2000-02-23  Andy Piper  <andy@xemacs.org>
10586
10587         * glyphs.c: add dynamic width and height elements.
10588         (image_instance_equal): ditto.
10589
10590         * glyphs-widget.c (widget_query_geometry): calculate width and
10591         height dynamically if required.
10592         (initialize_widget_image_instance): initialize dynamic dimensions.
10593         (widget_instantiate): pick-up dynamic dimensions.
10594
10595         * glyphs.h (struct Lisp_Image_Instance): add width and height for
10596         dynamic determination. Add appropriate macros.
10597
10598         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
10599         dimensions safe.
10600         (WINDOW_GUTTER_SIZE): ditto.
10601         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
10602
10603         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
10604         inline.
10605         (get_frame_dc): ditto.
10606
10607         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
10608         here.
10609
10610 2000-02-23  Martin Buchholz <martin@xemacs.org>
10611
10612         * XEmacs 21.2.31 is released.
10613
10614 2000-02-22  Ben Wing <ben@xemacs.org>
10615
10616         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
10617
10618 2000-02-22  Andy Piper  <andy@xemacs.org>
10619
10620         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
10621
10622 2000-02-21  Mike Sperber <mike@xemacs.org>
10623
10624         * .dbxrc:
10625         * .gdbinit:
10626         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
10627         variables.
10628
10629 2000-02-21  Mike Sperber <mike@xemacs.org>
10630
10631         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
10632
10633 2000-02-21  Martin Buchholz <martin@xemacs.org>
10634
10635         * XEmacs 21.2.30 is released.
10636
10637 2000-02-20  Martin Buchholz  <martin@xemacs.org>
10638
10639         Performance hacking.
10640         * *.c (syms_of_*):
10641         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
10642         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
10643         * emacs.c (main_1):
10644         * lisp.h (DEFUN):
10645         * console.c (DEFVAR_CONSOLE_LOCAL_1):
10646         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
10647         * symeval.h (DEFVAR_SYMVAL_FWD):
10648         * symbols.c (guts_of_unbound_marker):
10649         Make all c_readonly objects also lisp_readonly and marked for life.
10650         * lrecord.h (struct lrecord_implementation):
10651         Document flags better.
10652         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
10653         * lrecord.h (DECLARE_LRECORD):
10654         * lrecord.h (XSETRECORD):
10655         * lrecord.h (RECORDP):
10656         * lrecord.h (RECORD_TYPEP):
10657         * lrecord.h (RECORD_MARKER): New.
10658         * lrecord.h (error_check_*):
10659         * lrecord.h (CONCHECK_NONRECORD):
10660         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
10661         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
10662         * lrecord.h (set_lheader_implementation):
10663         * lrecord.h (enum lrecord_type): New.
10664         * symeval.h (SYMBOL_VALUE_MAGIC_P):
10665         * alloc.c (disksave_object_finalization_1):
10666         * alloc.c (mark_object):
10667         * alloc.c (lrecord_type_index):
10668         * alloc.c (tick_lcrecord_stats):
10669         * alloc.c (Fgarbage_collect):
10670         * alloc.c (init_alloc_once_early):
10671         * alloc.c (pdump_load):
10672         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
10673         * alloc.c (lrecord_type_index): Delete.
10674         Make lisp object type indexes be constant.
10675           Makes (byte-compile) 5% faster.
10676         Put all marker functions into their own array.
10677           Makes (garbage-collect) 5% faster.
10678         Optimize SYMBOL_VALUE_MAGIC_P.
10679           Makes (byte-compile) 2-3% faster.
10680         * config.h.in (gc_checking_assert): New.
10681         * alloc.c: Use gc_checking_assert().
10682         * .dbxrc: Make compatible with new object type implementation.
10683         * .gdbinit: Make compatible with new object type implementation.
10684         * alloc.c: Delete all symbols defined only for debugging, such as
10685         Lisp_Type_Vector and lrecord_charset.
10686
10687 2000-02-21  Andy Piper  <andy@xemacs.org>
10688
10689         * gui-msw.c (Fmswindows_shell_execute): fix file location
10690         problems.
10691
10692         * buffer.c (Fkill_buffer): remove buffer from alist buffer
10693         unshowing so that set_window_buffer doesn't undo
10694         kill_buffer_hook's hard work.
10695
10696         * glyphs-widget.c (tab_control_query_geometry): don't count the
10697         first item when calculating geometry.
10698
10699         * glyphs.c (map_subwindow): remove redundant code.
10700         (update_frame_subwindows): be more circumspect about when to
10701         update subwindows.
10702
10703         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
10704         when items haven't changed. Update faces if faces have changed as
10705         well as just the widget face.
10706         (x_tab_control_update): Update faces if faces have changed as well
10707         as just the widget face.
10708
10709 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10710
10711         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
10712         registration.
10713         (build_syscolor_string): Use mswindows_color_to_string to try to
10714         get a named color.
10715         (mswindows_device_system_metrics): Reverse the foreground and
10716         background colors so that they match the documentation.
10717
10718         * objects-msw.c: (mswindows_X_color_map): tweak some values so
10719         they match the default Windows palette.
10720         (mswindows_color_to_string): New function.
10721
10722 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10723
10724         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
10725
10726 2000-02-18  Olivier Galibert  <galibert@pobox.com>
10727
10728         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
10729         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
10730
10731         * symbols.c (init_symbols_once_early): Removed obsolete
10732         DATA_SEG_BITS related kludge.
10733         (defvar_magic): Ditto.
10734
10735         * malloc.c: Removed obsolete DATA_SEG_BITS
10736         * ralloc.c: Ditto.
10737         * mem-limits.h: Ditto.
10738
10739         * Makefile.in.in: Removed obsolete HAVE_SHM
10740         * emacs.c: Ditto.
10741
10742 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10743
10744         *  device-msw.c (mswindows_delete_device): Free DDE string
10745         handles.
10746
10747 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10748
10749         * keymap.c (get_keyelt):
10750         * unexnt.c (unexec):
10751         * vm-limit.c (memory_warnings):
10752         * ntheap.c (recreate_heap):
10753         * ntheap.h (UNINIT_PTR):
10754         * select-msw.c (Fmswindows_get_clipboard):
10755         (Fmswindows_set_clipboard):
10756         * objects-msw.h (MSWINDOWS_BAD_HFONT):
10757         * objects-msw.c:
10758         * menubar-msw.c (displayable_menu_item):
10759         * glyphs-msw.c:
10760         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
10761         * sysdep.c (sys_subshell):
10762         * process-nt.c (nt_create_process):
10763         * nt.c (normalize_filename):
10764         (dostounix_filename):
10765         (unixtodos_filename):
10766         * ntproc.c (win32_executable_type):
10767         * ntplay.c (play_sound_data_1):
10768         (play_sound_file):
10769         * editfns.c (get_home_directory):
10770         * event-msw.c (struct winsock_stream):
10771         (mswindows_dde_callback):
10772         * device-msw.c (msprinter_init_device):
10773         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
10774
10775         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
10776         mswindows_clear_toolbar were swapped!
10777
10778         * objects-msw.c:(colormap_t):
10779         (fontmap_t):
10780         * emacs.c (struct standard_args): Fixed const jumble.
10781
10782         * glyphs-widget.c (update_widget): Fixed comparison notation.
10783
10784         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
10785
10786         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
10787         __declspec(noreturn) syntax.
10788
10789 2000-02-19  Martin Buchholz  <martin@xemacs.org>
10790
10791         * eldap.c (Fldap_open):
10792         (Fldap_search_basic):
10793         (Fldap_add):
10794         (Fldap_modify):
10795         Use new coding system conversion macros.
10796
10797 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
10798
10799         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
10800
10801 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
10802
10803         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
10804         (Fldap_add, Fldap_modify, Fldap_delete): New functions
10805
10806         * eldap.c (Qadd, Qreplace): New constant symbols
10807         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
10808         interruptions by XEmacs signals
10809         Remove unnecessary calls to slow_down_interrupts and
10810         speed_up_interrupts
10811         (Fldap_search_basic): Renamed from Fldap_search_internal
10812         Added new optional parameter VERBOSE that triggers the
10813         display of progress messages
10814         Remove unnecessary calls to slow_down_interrupts and
10815         speed_up_interrupts
10816         LDAP result code analysis rewritten
10817         (Fldap_add, Fldap_modify, Fldap_delete): New functions
10818         (syms_of_eldap): Define the new symbols and functions
10819
10820
10821 2000-02-17  Martin Buchholz  <martin@xemacs.org>
10822
10823         * realpath.c: Determine PATH_MAX maximally portably.
10824
10825         * insdel.c (bytecount_to_charcount): Optimize.
10826         The function used to be optimized for entirely ASCII sequences.
10827         Now it is optimized for successive characters from the same
10828         charset.  This also wins big for _mostly_ ASCII sequences.
10829
10830         * fileio.c (Ffile_truename): convert return from realpath() using
10831         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
10832         - Rewrite GCPROing slightly.
10833
10834         * sysdep.c (sys_open): Do filename conversion, like all other
10835         sys_* functions.  Fixes bug:
10836         (let ((file-name-coding-system 'iso-8859-2))
10837            (write-region x y latin2-name))
10838         ==> writes filename using internal encoding.
10839
10840 2000-02-18  Martin Buchholz  <martin@xemacs.org>
10841
10842         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
10843         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
10844         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
10845         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
10846         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
10847         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
10848         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
10849         (CONST_IF_NOT_DEBUG): Delete.
10850         * alloc.c (this_one_is_unmarkable): Delete.
10851         (mark_object): Don't check for this_one_is_unmarkable. Use the
10852         c_readonly flag instead.
10853         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
10854
10855 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10856
10857         * event-msw.c (mswindows_drain_windows_queue):
10858         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
10859         away redundant repaint events.
10860
10861 2000-02-17  Andy Piper  <andy@xemacs.org>
10862
10863         * redisplay.h: declare mark_redisplay_structs.
10864
10865         * redisplay.c (redisplay_window):
10866         (redisplay_frame): don't check subwindows_state_changed.
10867         (mark_redisplay): mark gutters here.
10868
10869         * glyphs.c: (instantiate_image_instantiator): always layout if we
10870         haven't done so already.
10871         (allocate_image_instance): don't mark as dirty.
10872         (update_subwindow): bind inhibit_quit.
10873
10874         * gutter.c (mark_gutters): new function.
10875
10876         * glyphs-x.c (x_update_widget): Always resize to get round a
10877         widget bug.
10878
10879         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
10880         breaking absolutely everything.
10881
10882         * gutter.h: declare mark_gutters.
10883
10884 2000-02-16  Martin Buchholz <martin@xemacs.org>
10885
10886         * XEmacs 21.2.29 is released.
10887
10888 2000-02-15  Olivier Galibert  <galibert@pobox.com>
10889
10890         * fns.c (size_bit_vector): Fix computation of the size.
10891
10892 2000-02-15  Martin Buchholz  <martin@xemacs.org>
10893
10894         * *.[ch]: Change CONST to const globally.
10895         find -name '*.[ch]' | \
10896         xargs global-replace \
10897         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
10898         - Remove vestigial references to CONST_IS_LOSING
10899
10900 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10901
10902         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
10903         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
10904         events instead of dispatching them directly.
10905         (mswindows_handle_paint): New function to do repainting.
10906         (mswindows_wnd_proc):
10907         (emacs_mswindows_handle_magic_event): Call above function.
10908
10909 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10910
10911         * objects-msw.c (mswindows_create_font_variant): Return the new
10912         font handle.
10913         (initialize_font_instance): Get font metrics from the underlined
10914         variant of the font to cope with the case where the underlined
10915         font has a bigger descent.
10916
10917 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
10918
10919         * gui.c (gui_item_accelerator): Return the first underlined
10920         character in item name.
10921
10922 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10923
10924         * lisp.h: Added Qprinter.
10925
10926         * general.c (syms_of_general): Initialized it.
10927
10928         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
10929         (get_frame_dc):
10930         (get_frame_compdc): Made inline.
10931
10932         * console.h (struct console_methods): Added eject_page method.
10933
10934         * frame.h: Added FRAME_DISPLAY_P and friends.
10935         Aligned backslahes in many macros in more readable fashion.
10936         Added page_number to struct frame, and an accessor macro
10937         for it.
10938
10939         * defice.h: Added DEVICE_DISPLAY_P and friends.
10940
10941         * device.c (Fdevice_printer_p): Used these.
10942
10943         * frame.c (allocate_frame_core): Initialize page number.
10944         (Fprint_job_page_number):
10945         (Fprint_job_eject_page): Implemented.
10946
10947         * frame-msw.c (msprinter_eject_page): Added method.
10948         (msprinter_start_page): Added.
10949
10950         * window.c (Fwindow_truncated_p): Fixed docstring.
10951         (Fwindow_last_line_visible_height): Implemented.
10952
10953 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10954
10955         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
10956
10957 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
10958
10959         * syntax.c (scan_words): Always advance at least one character.
10960
10961 2000-02-13  Andy Piper  <andy@xemacs.org>
10962
10963         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
10964         to make sure the glyph is in the cachels.
10965
10966         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
10967         global image instance flag.
10968         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
10969         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
10970
10971         * glyphs.c (allocate_image_instance): set dirty bits correctly.
10972         (Fset_image_instance_property): mark layout as changed.
10973         (invalidate_glyph_geometry_maybe): mark layout as changed.
10974         (glyph_width): use new NEEDS_LAYOUT macro.
10975         (glyph_ascent): ditto.
10976         (glyph_descent): ditto.
10977         (glyph_height): ditto.
10978         (image_instance_layout): mark layout as clean after laying out.
10979         (update_subwindow): don't mark layout as clean here.
10980
10981         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
10982         should no longer be needed.
10983
10984         * glyphs-x.c (x_update_widget): sanitize asserts.
10985         (x_finalize_image_instance): sanitize assignment to widgets.
10986
10987         * glyphs-widget.c (widget_instantiate): don't need to clear the
10988         layout flag here.
10989
10990 2000-02-13  Martin Buchholz  <martin@xemacs.org>
10991
10992         * sysdep.c (getcwd): Use standard prototype.
10993         * sysdep.h (getcwd): Use standard prototype.
10994
10995         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
10996         (sequence, start, end).
10997         Remove redundant type checking.
10998         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
10999         view of `caller-protects') to avoid a crash where the real fix was
11000         found elsewhere.
11001
11002 2000-02-12  Martin Buchholz  <martin@xemacs.org>
11003
11004         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
11005
11006         * s/sol2.h: Remove feature macro initialization.
11007
11008         * alloc.c (alloc_lcrecord): Add more type checking assertions.
11009         (vector_hash): New.  Code from internal_hash.
11010         * lrecord.h:
11011         Fix up allocation subsystem comments.
11012
11013         * config.h.in: Add __EXTENSIONS__ for Solaris.
11014
11015         * systime.h (EMACS_GETTIMEOFDAY): New.
11016         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
11017         Remove Solaris-specific code.
11018         Use void* for the (ignored) second arg for gettimeofday().
11019
11020         * elhash.c (hash_table_hash): Implement it, finally.
11021         * elhash.c:  Use hashcode_t.
11022
11023         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
11024         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
11025
11026         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
11027         * fns.c (size_bit_vector):
11028         * alloc.c (size_vector):
11029         (make_vector_internal):
11030         (make_bit_vector_internal):
11031         (sweep_bit_vectors_1):
11032         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
11033
11034 2000-02-10  Martin Buchholz  <martin@xemacs.org>
11035
11036         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
11037         Include strings.h to avoid warnings for bzero and strcasecmp.
11038
11039 2000-02-10  Olivier Galibert  <galibert@pobox.com>
11040
11041         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
11042         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
11043
11044         * fns.c (size_bit_vector): New.  Declare bit vectors as a
11045         sequence.
11046
11047 2000-02-10  Olivier Galibert  <galibert@pobox.com>
11048
11049         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
11050         use a value field instead.
11051         (symbol_value_forward_forward): Use value field.
11052         (DEFVAR_SYMVAL_FWD): Use value field.
11053         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
11054         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
11055         (DEFVAR_CONST_INT): Ditto.
11056         (DEFVAR_BOOL): Ditto.
11057         (DEFVAR_CONST_BOOL): Ditto.
11058         (DEFVAR_INT_MAGIC): Ditto.
11059         (DEFVAR_BOOL_MAGIC): Ditto.
11060
11061         * symbols.c (guts_of_unbound_marker): Use value field.
11062         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
11063         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
11064
11065         * lisp.h: Declare dumpopaque and noninteractive1.
11066
11067         * alloc.c (dumpopaque): Added.
11068         (pdump_dump_opaquevec): Added.
11069         (pdump): Call pdump_dump_opaquevec to dump opaque data.
11070         (pdump_load): Reload opaque data.  Sync noninteractive1 with
11071         noninteractive.
11072
11073 2000-02-10  Andy Piper  <andy@xemacs.org>
11074
11075         * glyphs.c (image_instance_layout): if the size changes, mark it
11076         as such.
11077
11078         * redisplay-output.c (redisplay_output_layout): Update the
11079         subwindow here.
11080         (redisplay_output_subwindow): ditto.
11081
11082         * glyphs.c (update_subwindow): make sure we reset flags for
11083         layouts as well as everything else.
11084
11085         * glyphs-widget.c (layout_layout): don't need to set the instances
11086         dimensions here.
11087
11088 2000-02-09  Martin Buchholz  <martin@xemacs.org>
11089
11090         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
11091         not HAVE_DLOPEN, which is a lower-level thing.
11092
11093         * .cvsignore: Ignore gmon.out
11094
11095 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
11096
11097         * .cvsignore: Ignore portable dumper xemacs.dmp file
11098
11099 2000-02-09  Andy Piper  <andy@xemacs.org>
11100
11101         * redisplay-output.c (redisplay_output_layout): be more clever
11102         about when we output based on the changed flags.
11103
11104         * glyphs.h (struct image_instantiator_methods): add update_method.
11105         (struct Lisp_Image_Instance): add changed flags. Declare new
11106         macros for manipulating them.
11107
11108         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
11109         (image_instance_parent_glyph): find an image_instance's parent
11110         glyph or image_instance.
11111         (image_instance_layout): mark the size as changed.
11112         (set_image_instance_dirty_p): new function. mark an image
11113         instance, plus all of its parents, as dirty.
11114         (Fset_image_instance_property): use it.
11115         (Fglyph_animated_timeout_handler): use it.
11116         (update_subwindow): call update_widget and device methods for
11117         update_subwindow. Mark all changed flags as clean.
11118         (Fresize_subwindow): mark size as changed.
11119
11120         * glyphs-x.c (x_finalize_image_instance): try and detect gc
11121         failures.
11122         (x_update_subwindow): only resize subwindows here.
11123         (x_update_widget): new function. Update all changed properties of
11124         a widget.
11125         (x_resize_subwindow): deleted.
11126         (x_widget_set_property): deleted.
11127         (x_progress_gauge_set_property): deleted.
11128         (x_progress_gauge_update): new function. Implement recorded
11129         changes.
11130         (x_tab_control_update): ditto.
11131         (x_tab_control_set_property): deleted.
11132         (console_type_create_glyphs_x): declare new functions.
11133         (image_instantiator_format_create_glyphs_x): ditto.
11134
11135         * glyphs-widget.c (widget_set_property): mark text changed.
11136         (update_widget): new function. Update properties of a widget.
11137         (widget_instantiate): for layouts make sure we set their
11138         children's parent correctly.
11139         (tab_control_set_property): new function. Record changes that will
11140         take place under redisplay's control.
11141         (progress_gauge_set_property): ditto.
11142         (image_instantiator_progress_guage): declare new functions.
11143         (image_instantiator_tab_control): ditto.
11144
11145         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
11146         now.
11147         (mswindows_update_widget): new function. Update all properties on
11148         a widget that have changed.
11149         (mswindows_button_update): new function. Update a button's set
11150         state.
11151         (mswindows_tab_control_update): new function. Update the items in
11152         a tab.
11153         (mswindows_tab_control_set_property): deleted.
11154         (mswindows_progress_gauge_update): new function. Update the
11155         progress gauge's progress.
11156         (mswindows_widget_set_property): deleted. This is all done
11157         asynchronously now.
11158         (mswindows_progress_gauge_set_property): ditto.
11159         (console_type_create_glyphs_mswindows): declare new methods.
11160         (image_instantiator_format_create_glyphs_mswindows): ditto.
11161
11162         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
11163         (msprinter_set_frame_properties): ditto.
11164
11165         * console.h (struct console_methods): Add update_widget_method.
11166
11167 2000-02-09  Andy Piper  <andy@xemacs.org>
11168
11169         * gui-msw.c (Fmswindows_shell_execute): Make
11170         mswindows-shell-execute industrial strength.
11171
11172 2000-02-08  Martin Buchholz  <martin@xemacs.org>
11173
11174         * lrecord.h: Make macro argument `props' match member function `plist'.
11175         * fns.c (Fget):
11176         * fns.c (Fput):
11177         * fns.c (Fremprop):
11178         * fns.c (Fobject_plist):
11179         * alloc.c:
11180         * symbols.c:
11181         Object property list frobbing cleanup.
11182         - Allow any lisp object (compared with `eq'), not just symbols, as
11183           keys in object plists.
11184         - Move symbol plist frobbing into symbols.c, where it belongs.
11185         - Move string plist frobbing into alloc.c, where it belongs.
11186         - Everything's an lrecord now, so no need to test for symbolp, etc.
11187         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
11188
11189         * extents.c: Reorder code to remove declarations.
11190
11191         * frame.h (store_in_alist): Remove useless declaration.
11192
11193 2000-02-07  Martin Buchholz  <martin@xemacs.org>
11194
11195         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
11196         * config.h.in: Add HAVE_XCONVERTCASE.
11197
11198 2000-02-07  Andy Piper  <andy@xemacs.org>
11199
11200         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
11201         it breaks many things.
11202
11203 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
11204
11205         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
11206         actually can start a common comment type.
11207         * src/syntax.h (SYNTAX_END_P): ditto for end.
11208
11209 2000-02-07  Martin Buchholz <martin@xemacs.org>
11210
11211         * XEmacs 21.2.28 is released.
11212
11213 2000-02-06  Martin Buchholz  <martin@xemacs.org>
11214
11215         * event-Xt.c (x_keysym_to_character): New.
11216         (maybe_define_x_key_as_self_inserting_character): New.
11217         (x_has_keysym): New.
11218         Auto-define all keys on the keyboard as self-insert-key.
11219
11220 2000-02-02  Martin Buchholz  <martin@xemacs.org>
11221
11222         * menubar.c (vars_of_menubar): A small code simplification.
11223
11224         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
11225
11226         * ExternalShell.c:
11227         * ExternalClient.c:
11228         * EmacsShell-sub.c:
11229         * EmacsManager.c:
11230         * EmacsFrame.c:
11231         Use consistent style for specifying X resources.
11232
11233         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
11234         This makes (dontusethis-set-symbol-value-handler) actually usable.
11235
11236         * lrecord.h (lrecord_decription_type):
11237         * alloc.c (pdump_register_sub):
11238         (pdump_dump_data):
11239         (pdump_reloc_one):
11240         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
11241         Comply with XEmacs coding style.
11242         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
11243         args, and XD_LISP_OBJECT_ARRAY with 3 args.
11244
11245         * keymap.c (Faccessible_keymaps):
11246         Make (accessible-keymaps map "\C-h") do the Right Thing.
11247         Make (accessible-keymaps map []) do the Right Thing.
11248         Make (accessible-keymaps map "") do the Right Thing.
11249         (check_keymap_definition_loop): New function.
11250         (keymap_store_internal): Keep luser from shooting self in foot,
11251           via (define-key ctl-x-4-map "p" global-map).
11252         Remove fullness slot from struct Lisp_Keymap, since hash tables
11253         are now reliable.
11254         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
11255
11256 2000-01-30  Martin Buchholz  <martin@xemacs.org>
11257
11258         * redisplay.c (init_redisplay): Fix small memory leak.
11259         * elhash.h:
11260         * elhash.c (pdump_reorganize_hash_table):
11261         Rename from reorganize_hash_table. Change prototype.
11262         Reuse the original memory for hentries.  Save 100k.
11263         * alloc.c (PDUMP_READ): new macro.
11264         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
11265         * alloc.c: No need to #ifndef before #undef.
11266
11267         * print.c: Allow debug_print() to print readably by modifying
11268         debug_print_readably.  Use consistent variable names.
11269
11270         * .dbxrc: Try to get things to work even if stopped in a function
11271         without source available by explicitly specifying source files.
11272 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11273
11274         * unexnt.c (_start): Removed bogus code which caused loading heap
11275         from differrent executable file.
11276         Removed bogus assignment to _fmode, which caused inconsistencies.
11277
11278 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11279
11280         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
11281         Have spawnve encapsulation regard DONT_ENCAPSULATE.
11282         Do not preliminary `#define signal sigset'.
11283
11284         * systime.h: Do not prototype environ on windows nt and cygwin,
11285         this conflicts with system header.
11286
11287         * syssignal.h: Use correct define for WINDOWSNT
11288
11289         * sysdep.h: Do not prototype environ on windows nt, this conflicts
11290         with system header.
11291
11292         * sysdep.c (near start of file): Fixed commentary and rearranged
11293         ifdefs in readable order.
11294         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
11295         (start_of_text):
11296         (end_of_text):
11297         (end_of_data): Do not compile in if using PDUMP.
11298
11299         * symsinit.h: Prototyped vars_of_nt().
11300
11301         * ntproc.c (windows9x_p): Added, instead of os_subtype.
11302         (find_child_console): Use it.
11303         (sys_kill): Use it.
11304
11305         * ntheap.h: Do not extern os_subtype.
11306
11307         * ntheap.c (cache_system_info): Do not cache unneeded:
11308         nt_major_version, nt_minor_version and os_subtype.
11309         (recreate_heap): Do not compile in when PDUMPing.
11310
11311         * nt.c (geteuid and friends): Use the new varibale
11312         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
11313         (init_user_info): Removed the above mentioned hackery.
11314         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
11315         stat has been fixed in the C runtime.
11316         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
11317
11318         * file-coding.c (struct file_coding_dump): Do not define
11319         ucs_to_mule_table in the struct if not MULE.
11320         (struct struct lrecord_description fcd_description_1): Do not dump
11321         the above.
11322
11323         * emacs.c (main_1): Call vars_of_nt().
11324         (right before Fdump_emacs_data): Don't need lastfile if using both
11325         portabe dumper and system malloc.
11326
11327         * alloc.c (Fmemory_limit): Conditionalized out.
11328         (pdump): Use OPEN_BINARY for the portable dump file.
11329         (pdump_load): Ditto.
11330
11331 2000-02-02  Mike Alexander  <mta@arbortext.com>
11332
11333         * nt.c (convert_time): Set tm_isdst before calling mktime and
11334         avoid calling it at all if the compiler supports 64 bit integers.
11335         Also initialize utc_base_ft before using it.
11336
11337 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
11338
11339         * frame.c (change_frame_size_1): Take f->internal_border_width
11340         into consideration when calculating the width of the frame.
11341
11342 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11343
11344         * window.c (frame_min_height):
11345         (frame_size_valid_p):
11346         (frame_pixsize_valid_p): Added.
11347         (check_frame_size): Generalized.
11348
11349         * window.h: Prototyped the above.
11350
11351         * lisp.h:
11352         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
11353         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
11354         Deleted Vwin32_* and Vbinary_process_* unused variables.
11355
11356         * device-msw.c (msprinter_init_device): Do not get printer font
11357         list; Added DEVMODE functions.
11358
11359         * frame-msw.c: Added lots of printer code.
11360
11361         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
11362         general.c.
11363
11364         * console-msw.h: Added more msprinter device private slots.
11365
11366 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11367
11368         * event-msw.c (key_needs_default_processing_p): Added.
11369         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
11370
11371 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11372
11373         * glyphs.c (image_instance_layout): Mark image instance as clean
11374         after layout.
11375         (glyph_dirty_p): Removed redundant function.
11376         (invalidate_glyph_geometry_maybe): Added.
11377         (update_glyph_cachel_data): Call it.
11378
11379         * glyphs.h: Prototyped it.
11380
11381         * redisplay.c (add_glyph_rune): Call it.
11382         (redisplay_window): Reset glyphs cachels when frame faces have
11383         changed, thus forcing recomputation of built-in border glyphs.
11384
11385 2000-01-30  Martin Buchholz  <martin@xemacs.org>
11386
11387         * Makefile.in.in: Make portable dumper and purify play well together.
11388         Add imperfect, but better than nothing, support for pdump.
11389         Remove xemacs.dmp when temacs is re-generated.
11390         Don't ignore errors when dumping xemacs.
11391
11392         * symbols.c (maybe_call_magic_handler): Remove one magic number.
11393
11394 2000-01-28  Andy Piper  <andy@xemacs.org>
11395
11396         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
11397         (setup_normal_frame): ditto.
11398         (setup_frame_without_minibuffer): ditto.
11399         (setup_minibuffer_frame): ditto.
11400         (delete_frame_internal): ditto.
11401         (Fmake_frame_invisible): ditto.
11402         (Ficonify_frame): ditto.
11403
11404         * window.h: change Fset_window_buffer signature.
11405
11406         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
11407         (Fset_window_buffer): allow recording of buffer if the window is
11408         the selected window.
11409         (window_loop): Use new Fset_window signature.
11410
11411 2000-01-23  Daniel Pittman  <daniel@danann.net>
11412
11413         * config.h.in: Added template for `HAVE_ATHENA_3D'
11414
11415 2000-01-29  Andy Piper  <andy@xemacs.org>
11416
11417         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
11418
11419         * gutter.c (output_gutter): Don't output if the window isn't live.
11420
11421 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11422
11423         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
11424         of 01/12/00: Moved SetFocus back here where it belongs.
11425
11426 2000-01-23  Andy Piper  <andy@xemacs.org>
11427
11428         * s/cygwin32.h: declare printer things.
11429
11430 2000-01-26  Andy Piper  <andy@xemacs.org>
11431
11432         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
11433         Alexander.
11434
11435 2000-01-24  Andy Piper  <andy@xemacs.org>
11436
11437         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
11438         (mswindows_button_instantiate): Make sure glyph is a pixmap.
11439
11440         * glyphs-widget.c (widget_instantiate): Avoid shadows.
11441
11442         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
11443
11444         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
11445
11446         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
11447         (mswindows_output_display_block): Avoid local shadows.
11448
11449         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
11450         (mswindows_enqueue_mouse_button_event): ditto.
11451         (mswindows_handle_gui_wm_command): remove declaration.
11452
11453         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
11454         warnings.
11455
11456         * console-msw.h: Avoid shadows.
11457         (mswindows_get_toolbar_button_text):
11458         (emacs_mswindows_create_stream_pair):
11459         (emacs_mswindows_delete_stream_pair):
11460         (mswindows_handle_toolbar_wm_command): declare.
11461
11462         * device-msw.c (build_syscolor_string): Avoid shadows.
11463
11464 2000-01-23  Andy Piper  <andy@xemacs.org>
11465
11466         * glyphs-widget.c (widget_instantiate): reverse the items for
11467         layouts so that children are in the expected order.
11468
11469 2000-01-28  Martin Buchholz  <martin@xemacs.org>
11470
11471         * ralloc.c: safe_bcopy ==> memmove
11472         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
11473         * s/msdos.h: Remove BCOPY macros.
11474         * insdel.c (gap_right): Remove BCOPY conditional code.
11475         * insdel.c (gap_left): Remove BCOPY conditional code.
11476         XEmacs demands a working ANSI C compiler - hence memmove.
11477
11478         * regex.c (regex_compile): Remove accidental use of trigraphs.
11479
11480 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11481
11482         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
11483         event timestamp.
11484
11485 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11486
11487         * event-msw.c (mswindows_drain_windows_queue): Added the
11488         parameter.
11489         (mswindows_need_event): Commented the call to
11490         mswindows_drain_windows_queue().
11491         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
11492         only.
11493
11494         * console-msw.h: Moved a few function prototypes here from
11495         event-msw.c.
11496
11497         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
11498         parameter from unsigned short to unsigned long.
11499         (Fmswindows_shell_execute): Added return value.
11500
11501 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
11502
11503         * sysdep.c (init_system_name):
11504           process-unix.c (unix_canonicalized_host_name):
11505         Don't call freeaddrinfo() if getaddrinfo() fails.
11506
11507         * process-unix.c (unix_open_unix_network_stream):
11508         Moved the code to get a port # into address loop.
11509
11510 2000-01-27  Martin Buchholz  <martin@xemacs.org>
11511
11512         * buffer.c (reinit_vars_of_buffer):
11513         The right place to initialize conversion_in_dynarr and
11514         conversion_out_dynarr.
11515
11516         * alloc.c (pdump): Use the real open() till sys_open() is functional.
11517
11518         * process-unix.c (unix_canonicalize_host_name): Muleize.
11519         (unix_open_network_stream): Muleize.
11520
11521         * buffer.h: Fix up prototypes for ralloc.c functions.
11522
11523 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
11524         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
11525         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
11526                 instead of gethostbyname()
11527         * process-unix.c: In unix_canonicalize_host_name() and
11528                 unix_open_network_stream(), add code to use getaddrinfo()
11529                 instead of gethostbyname().
11530
11531 2000-01-27  Daniel Pittman <daniel@danann.net>
11532
11533         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
11534         libs when built with flat Athena.
11535
11536 2000-01-27  Martin Buchholz  <martin@xemacs.org>
11537
11538         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
11539         Use coding standards for function prototypes.
11540
11541 2000-01-25  Martin Buchholz  <martin@xemacs.org>
11542
11543         * dialog-msw.c (push_lisp_string_as_unicode):
11544         * doc.c (unparesseuxify_doc_string):
11545         * dired.c (Fuser_name_completion_1):
11546         * dired.c (Fuser_name_all_completions):
11547         * dired.c (free_user_cache):
11548         * dired.c (user_name_completion):
11549         * console-x.c (get_display_arg_connection):
11550         * minibuf.c (clear_echo_area_internal):
11551         * minibuf.c (echo_area_append):
11552         * eldap.c (Fldap_open):
11553         * eldap.c (Fldap_search_internal):
11554         * frame-x.c (x_set_frame_text_value):
11555         * frame-x.c (x_set_frame_properties):
11556         * frame-x.c (x_create_widgets):
11557         * redisplay-tty.c (term_get_fkeys_1):
11558         * objects-x.c (x_parse_nearest_color):
11559         * objects-x.c (x_valid_color_name_p):
11560         * objects-x.c (x_initialize_font_instance):
11561         * objects-x.c (x_list_fonts):
11562         * objects-x.c (x_find_charset_font):
11563         * tooltalk.c (Fadd_tooltalk_message_arg):
11564         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
11565         * tooltalk.c (Fadd_tooltalk_pattern_arg):
11566         * process-unix.c (unix_create_process):
11567         * ntproc.c (sys_spawnve):
11568         * sound.c (Fplay_sound_file):
11569         * sound.c (Fplay_sound):
11570         * buffer.c (init_initial_directory):
11571         * buffer.c (init_buffer):
11572         * editfns.c (init_editfns):
11573         * editfns.c (Ftemp_directory):
11574         * editfns.c (Fuser_full_name):
11575         * editfns.c (uncache_home_directory):
11576         * editfns.c (get_home_directory):
11577         * editfns.c (Fuser_home_directory):
11578         * editfns.c (Fformat_time_string):
11579         * editfns.c (Fcurrent_time_string):
11580         * gui-x.c (button_item_to_widget_value):
11581         * database.c (Fopen_database):
11582         * event-Xt.c (x_to_emacs_keysym):
11583         * event-Xt.c (x_event_to_emacs_event):
11584         * event-Xt.c (describe_event_window):
11585         * event-msw.c (mswindows_wnd_proc):
11586         * glyphs-eimage.c (jpeg_instantiate):
11587         * glyphs-eimage.c (gif_instantiate):
11588         * glyphs-eimage.c (png_instantiate):
11589         * glyphs-eimage.c (tiff_instantiate):
11590         * glyphs-x.c (xbm_instantiate_1):
11591         * glyphs-x.c (x_xbm_instantiate):
11592         * glyphs-x.c (x_xface_instantiate):
11593         * glyphs-x.c (autodetect_instantiate):
11594         * glyphs-x.c (cursor_font_instantiate):
11595         * glyphs-x.c (x_widget_instantiate):
11596         * glyphs-x.c (x_widget_set_property):
11597         * glyphs-x.c (x_widget_property):
11598         * glyphs-x.c (BUILD_GLYPH_INST):
11599         * print.c (write_string_to_stdio_stream):
11600         * print.c (output_string):
11601         * print.c (Falternate_debugging_output):
11602         * print.c (Fexternal_debugging_output):
11603         * glyphs-msw.c (extract_xpm_color_names):
11604         * glyphs-msw.c (mswindows_xpm_instantiate):
11605         * glyphs-msw.c (bmp_instantiate):
11606         * glyphs-msw.c (resource_name_to_resource):
11607         * glyphs-msw.c (mswindows_resource_instantiate):
11608         * glyphs-msw.c (xbm_instantiate_1):
11609         * glyphs-msw.c (mswindows_xbm_instantiate):
11610         * glyphs-msw.c (mswindows_xface_instantiate):
11611         * glyphs-msw.c (mswindows_widget_instantiate):
11612         * glyphs-msw.c (add_tree_item):
11613         * glyphs-msw.c (add_tab_item):
11614         * glyphs-msw.c (mswindows_combo_box_instantiate):
11615         * glyphs-msw.c (mswindows_widget_property):
11616         * glyphs-msw.c (mswindows_combo_box_property):
11617         * glyphs-msw.c (mswindows_widget_set_property):
11618         * console.c (stuff_buffered_input):
11619         * objects-msw.c (mswindows_initialize_color_instance):
11620         * objects-msw.c (mswindows_valid_color_name_p):
11621         * objects-msw.c (mswindows_list_fonts):
11622         * objects-msw.c (mswindows_font_instance_truename):
11623         * bytecode.c (optimize_compiled_function):
11624         * select-x.c (symbol_to_x_atom):
11625         * select-x.c (x_atom_to_symbol):
11626         * select-x.c (hack_motif_clipboard_selection):
11627         * select-x.c (selection_data_to_lisp_data):
11628         * select-x.c (lisp_data_to_selection_data):
11629         * select-x.c (Fx_get_cutbuffer_internal):
11630         * select-x.c (Fx_store_cutbuffer_internal):
11631         * buffer.h (TO_EXTERNAL_FORMAT): New function.
11632         * buffer.h (TO_INTERNAL_FORMAT): New function.
11633         * emacs.c (make_arg_list_1):
11634         * emacs.c (make_argc_argv):
11635         * emacs.c (main_1):
11636         * emacs.c (Fdump_emacs):
11637         * emacs.c (split_string_by_emchar_1):
11638         * file-coding.h:
11639         * lisp.h:
11640         * lstream.h:
11641         * symsinit.h:
11642         * device-x.c (x_init_device):
11643         * device-x.c (Fx_valid_keysym_name_p):
11644         * device-x.c (Fx_get_font_path):
11645         * device-x.c (Fx_set_font_path):
11646         * glyphs.c (bitmap_to_lisp_data):
11647         * glyphs.c (pixmap_to_lisp_data):
11648         * alloc.c (make_ext_string): Use coding system arguments.  Update
11649         all callers.
11650         * alloc.c (build_string):
11651         * callproc.c (child_setup):
11652         * callproc.c (init_callproc):
11653         * fileio.c (lisp_strerror):
11654         * fileio.c (directory_file_name):
11655         * fileio.c (Fexpand_file_name):
11656         * fileio.c (Ffile_truename):
11657         * fileio.c (Fsysnetunam):
11658         * fileio.c (Fdo_auto_save):
11659         * sysdep.c (sys_readdir):
11660         * tests.c: New file.  Allow adding C tests.
11661         Replace GET_* macros with a more comprehensible and flexible
11662         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
11663         Modify all calls.
11664         Any coding system can be used to do format conversion.
11665         Eliminate enum external_data_format.
11666         Eliminate convert_to_external_format.
11667         Eliminate convert_to_internal_format.
11668         Make sure file-name, keyboard, terminal, and ctext are always
11669         defined as coding systems or aliases.  Make
11670         file-name-coding-system, terminal-coding-system, and
11671         keyboard-coding-system magical variables that are equivalent to
11672         defining the corresponding coding system aliases.
11673
11674         * file-coding.c (Fcoding_system_canonical_name_p): New function.
11675         * file-coding.c (Fcoding_system_alias_p): New function.
11676         * file-coding.c (Fcoding_system_aliasee): New function.
11677         * file-coding.c (append_suffix_to_symbol): New function.
11678         * file-coding.c (dangling_coding_system_alias_p): New function.
11679         * file-coding.c (Ffind_coding_system):
11680         * file-coding.c (Fcopy_coding_system):
11681         * file-coding.c (encode_coding_no_conversion):
11682         * file-coding.c (syms_of_file_coding):
11683         * file-coding.c (vars_of_file_coding):
11684         Rewrite coding system alias code.
11685         Allow nested aliases, like symbolic links.
11686         Allow redefinition of coding system aliases.
11687         Prevent existence of dangling coding system aliases.
11688
11689         * dired.c (Fuser_name_completion_1):
11690         * dired.c (Fuser_name_all_completions):
11691         A crash would happen if user did QUIT in the middle of building
11692         user_name_cache.  Remove redundant code in mainline and unwind_protect.
11693
11694         * lisp.h:
11695         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
11696
11697         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
11698         an unsigned char *.  Update all callers.
11699
11700 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11701
11702         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
11703
11704 2000-01-25  Martin Buchholz  <martin@xemacs.org>
11705
11706         * elhash.c (hentry_description): Use more portable definition.
11707         (resize_hash_table): Initialize new hentries using
11708         xnew_array_and_zero, thereby simplifying the code.
11709
11710         * mule-charset.c (make_charset): Make sure entire object is
11711         initialized, to avoid Purify warnings.
11712
11713         * alloc.c (resize_string): Fix unlikely crash with big strings.
11714
11715 2000-01-24  Martin Buchholz  <martin@xemacs.org>
11716
11717         * realpath.c (xrealpath):
11718         Don't call getwd().
11719
11720 2000-01-25  Martin Buchholz  <martin@xemacs.org>
11721
11722         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
11723
11724 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
11725
11726         * unexelfsgi.c (unexec): Change the way we decide which segment
11727         should be extended.
11728
11729         Assumption that .bss section should be outside the PT_LOADable
11730         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
11731         it's present) is inside the 'data' segment. This would fail the
11732         test which was used to find a segment to grow and cover new
11733         heap. Instead of this assumption, I created another one - on IRIX
11734         the segment to grow should start below .bss and it's address
11735         should extent above the end of .bss. Once this segment is
11736         identified, it's grown to accommodate the new heap and new
11737         zero-length .bss section is added at the end of .data2.
11738
11739 2000-01-25  Martin Buchholz  <martin@xemacs.org>
11740
11741         * eval.c (Feval): Wrong number of arguments should use original
11742         function, not the indirect_function version of it.
11743
11744 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
11745
11746         * glyphs-x.c (x_button_instantiate): Don't add image if
11747         it is not a pixmap.
11748         (x_locate_pixmap_file): Call Fexpand_file_name when file name
11749         is relative.
11750
11751 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
11752
11753         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
11754         declaration.
11755         (DEFVAR_INT_MAGIC): Ditto.
11756         (DEFVAR_BOOL_MAGIC): Ditto.
11757         * glyphs.h: Reindent backslash.
11758
11759 2000-01-24  Martin Buchholz  <martin@xemacs.org>
11760
11761         * glyphs-widget.c (layout_query_geometry):
11762         (layout_layout): Use correct types for gheight, gwidth.
11763
11764 2000-01-24  Martin Buchholz  <martin@xemacs.org>
11765
11766         * EmacsManager.c (QueryGeometry): Purified.
11767
11768 2000-01-23  Martin Buchholz  <martin@xemacs.org>
11769
11770         * alloc.c (make_float): Make sure entire object is initialized, to
11771         avoid Purify warnings.
11772         (pdump_register_sub): Remove useless assignment.
11773         (pdump): Use xmalloc, not malloc.
11774         (pdump_load): Use xmalloc, not malloc.
11775
11776 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11777
11778         * callproc.c:
11779         * dired-msw.c:
11780         * fileio.c:
11781         * process-nt.c:
11782         * redisplay-msw.c:
11783         * sysdep.c: Removed redundant #include <windows.h>
11784
11785 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11786
11787         * frame.c (delete_frame_internal): Do not delete device when its
11788         implementation so declares.
11789         (delete_frame_internal): Set device selected frame to nil when
11790         last frame goes away.
11791
11792         * device-msw.c (msprinter_device_system_metrics): Implemented.
11793         (mswindows_device_system_metrics): Added 'device-dpi property.
11794
11795         * device.c: (Fdevice_printer_p): Added.
11796         Added 'offset-workspace device metric.
11797
11798         * console.h (device_metrics): Declared DM_offset_workspace.
11799
11800 2000-01-23  Martin Buchholz  <martin@xemacs.org>
11801
11802         * fileio.c (Ffile_truename): Remove pointless and confusing
11803         initialization of elen.
11804
11805         * glyphs-widget.c: Compiler warning fixes.
11806
11807 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
11808
11809         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
11810         instead of a Lisp_Object as argument to make it consistent with
11811         the other LIVE_P macros.
11812         (CHECK_LIVE_PROCESS): New macro.
11813
11814         * process.c: Declare Qprocess_live_p.
11815         (Fprocess_live_p): New function.
11816         (create_process): Use PROCESS_LIVE_P.
11817         (read_process_output): Ditto.
11818         (set_process_filter): Ditto.
11819         (Fdelete_process): Ditto.
11820         (kill_buffer_processes): Ditto
11821         (process_send_signal): Use CHECK_LIVE_PROCESS.
11822         (Fprocess_input_coding_system): Check whether process is still
11823         alive (fix PR#1061).
11824         (Fprocess_output_coding_system): Ditto.
11825         (Fprocess_coding_system): Ditto.
11826         (Fset_process_input_coding_system): Ditto.
11827         (Fset_process_output_coding_system): Ditto.
11828
11829 2000-01-23  Andy Piper  <andy@xemacs.org>
11830
11831         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
11832         layout and widget.
11833
11834         * glyphs.c (mark_image_instance): take into account changed
11835         image_instance format.
11836         (image_instance_equal): ditto.
11837         (image_instance_hash): ditto.
11838
11839         * glyphs-widget.c (widget_instantiate): Incorporate layout
11840         instantiation here. Delay layout of the layout until later.
11841         (layout_instantiate): deleted.
11842         (layout_query_geometry): new function. get the geometry of a
11843         layout.
11844         (layout_layout): layout a layout dynamically.
11845         (image_instantiator_widget): New function - splitting up
11846         image_instantiator_format_create_glyphs_widget for netwinder
11847         compilation.
11848         (image_instantiator_buttons):
11849         (image_instantiator_edit_fields):
11850         (image_instantiator_combo_box):
11851         (image_instantiator_scrollbar):
11852         (image_instantiator_progress_guage):
11853         (image_instantiator_tree_view):
11854         (image_instantiator_tab_control):
11855         (image_instantiator_labels):
11856         (image_instantiator_layout): ditto.
11857         (image_instantiator_format_create_glyphs_widget): Call preceding
11858         functions.
11859
11860 2000-01-22  Martin Buchholz  <martin@xemacs.org>
11861
11862         * process.c (Fset_process_coding_system):
11863         * device-x.c (Fx_keysym_hash_table):
11864         Docstring fixes.
11865
11866         * lstream.c (Lstream_write): Return documented value, not 0.
11867
11868         * fileio.c (directory_file_name):
11869         (Fsubstitute_in_file_name):
11870         (Fsubstitute_insert_file_contents_internal):
11871         (Fwrite_region_internal):
11872         * emacs.c:
11873         * sysdep.c:
11874         * getloadavg.c:
11875         * systty.h:
11876         Remove vestigial APOLLO-conditional code.
11877
11878 2000-01-21  Martin Buchholz  <martin@xemacs.org>
11879
11880         * getpagesize.h: Add guard macros.
11881         * libsst.h: Add guard macros.
11882         * libst.h: Add guard macros.
11883         * line-number.h: Add guard macros.
11884         * ndir.h: Add guard macros.
11885         * sysfloat.h: Add guard macros.
11886         * sysfile.h: Add guard macros.
11887         * sysproc.h: Add guard macros.
11888         * syswait.h: Add guard macros.
11889         * xintrinsic.h: Add guard macros.
11890         * xintrinsicp.h: Add guard macros.
11891         * xmmanager.h: Add guard macros.
11892         * xmmanagerp.h: Add guard macros.
11893         * xmprimitive.h: Add guard macros.
11894         * xmu.h: Add guard macros.
11895         * gpmevent.h: Add copyright statement. Add guard macros.
11896         * miscplay.h: Add guard macros.
11897         * *.h: Use consistent C-standards-approved guard macro names.
11898
11899         * opaque.c (make_opaque): Switch parameter order.
11900         * opaque.h (make_opaque): Switch parameter order.
11901         Update all callers.
11902         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
11903
11904         * config.h.in (type_checking_assert): Added.
11905         (bufpos_checking_assert): Added.
11906
11907 2000-01-21  Martin Buchholz  <martin@xemacs.org>
11908
11909         * alloc.c: Harmless pdump changes.
11910         - Use countof().
11911         - spell alignment correctly.
11912         * sysdep.c: Use countof()
11913
11914 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11915
11916         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
11917         initially_selected_for_input() console method, default to 0.
11918         (semi_canonicalize_console_connection): Try to delegate to
11919         canonicalize_console_connection if no such console method.
11920         (canonicalize_console_connection): Vice versa.
11921         (print_console): Do not print nil connection.
11922
11923         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
11924         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
11925         (XDEVIMPF_FRAMELESS_OK): Added.
11926         (CONSOLE_INHERITS_METHOD): Added.
11927
11928         * console-msw.c (mswindows_canonicalize_console_connection):
11929         Added.
11930         (mswindows_canonicalize_device_connection): Added.
11931
11932         * console-msw.h (struct msprinter_device): Added this struct and
11933         accessor macros.
11934         (mswindows_device): Made fontlist a lisp object.
11935
11936         * device.c (semi_canonicalize_device_connection):  Try to delegate
11937         to canonicalize_device_connection if no such console method.
11938         (canonicalize_device_connection): Vice versa.
11939         (print_device): Do not print nil connection.
11940
11941         * device-msw.c (mswindows_init_device): Call InitCommonControls
11942         when have widgets.
11943         (mswindows_delete_device): Removed fontlist deallocation.
11944         (mswindows_mark_device): Added.
11945
11946         * events.c (event_equal): Added abort() at unreached code.
11947         (event_hash): Ditto.
11948
11949         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
11950         fallback tags of Windows devices.
11951
11952         * general.c (syms_of_general): Initialized Qmsprinter.
11953
11954         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
11955         of fallback tags of Windows devices.
11956
11957         * lisp.h: Declared Qmsprinter.
11958
11959         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
11960         of strings.
11961         (mswindows_list_fonts): Ditto.
11962         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
11963         that it can be used by both mswindows and msprinter devices.
11964         (initialize_font_instance): Added.
11965         (mswindows_initialize_font_instance): Use it.
11966         (msprinter_initialize_font_instance): Added.
11967
11968         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
11969         and implementation flags check.
11970         (redisplay_without_hooks): Changed the call to the above.
11971         (Fredraw_device): Ditto.
11972         (Fredisplay_device): Ditto.
11973
11974         * redisplay-msw.c (get_frame_dc): Implemented.
11975         (get_frame_compdc): Implemented.
11976         (many functions): Use the two functions above to get device
11977         contexts, ether for a window or a printer.
11978
11979 2000-01-21  Olivier Galibert  <galibert@pobox.com>
11980
11981         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
11982         initialization here.
11983         (init_symbols_once_early): Call it.
11984         * emacs.c (main_1): Call it.
11985         * symsinit.h: Declare it.
11986
11987 2000-01-19  Olivier Galibert  <galibert@pobox.com>
11988
11989         * alloc.c: Use a lrecord_header * in the backtrace instead of a
11990         Lisp_Object.
11991         (pdump_backtrace): Ditto.
11992         (pdump_register_object): Ditto.  Cleanup use of the pointers.
11993         (pdump_get_entry): Abort if trying to register a null pointer.
11994         (pdump_dump_data): Cleanup types when relocating.
11995         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
11996         (pdump_dump_rtables): Remove bad casts.
11997         (pdump_load): Cleanup relocation w.r.t union type.  Use a
11998         Lisp_Object instead of a EMACS_INT for the hashtable
11999         reorganization.
12000
12001 2000-01-20  Martin Buchholz  <martin@xemacs.org>
12002
12003         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
12004
12005         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
12006
12007         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
12008
12009         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
12010
12011 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12012
12013         * faces.h (FACE_STRIKETHRU_P): Added.
12014
12015         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
12016         of font variants.
12017
12018         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
12019         (mswindows_set_dc_font): New function, aware of font variants,
12020         separated from mswindows_update_dc.
12021
12022         * objects-msw.h (struct mswindows_font_instance_data): Added
12023         definition.
12024
12025         * objects-msw.c (mswindows_finalize_font_instance): Delete all
12026         cached fonts and the data structure.
12027         (mswindows_initialize_font_instance): Added creation of font data
12028         structure.
12029         (mswindows_print_font_instance): Print at least something.
12030         (mswindows_create_font_variant): Implemented.
12031         (mswindows_get_hfont): Implemented.
12032
12033 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
12034
12035         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
12036         prototyping problem with msvc.
12037
12038         * emacs.c (main_1): added syms_of_gui_mswindows() call
12039
12040         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
12041         syms_of_gui_mswindows() function
12042
12043         * symsinit.h: added the prototype for syms_of_gui_mswindows()
12044
12045 2000-01-18  Martin Buchholz <martin@xemacs.org>
12046
12047         * XEmacs 21.2.27 is released.
12048
12049 2000-01-18  Martin Buchholz  <martin@xemacs.org>
12050
12051         * glyphs-eimage.c (struct tiff_error_struct):
12052         (tiff_error_func):
12053         (tiff_warning_func):
12054         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
12055
12056         * unexmips.c:
12057         * unexhp9k3.c:
12058         * unexfreebsd.c:
12059         * unexec.c: Remove vestigial Lucid C code.
12060         * unexalpha.c:
12061         * unexaix.c:
12062         * termcap.c:
12063         * libsst.c: Ansify.
12064         Remove declarations of errno and strerror().
12065
12066         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
12067
12068         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
12069
12070 2000-01-16  Martin Buchholz  <martin@xemacs.org>
12071
12072         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
12073         Optimize.
12074
12075 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12076
12077         * md5.c:
12078         * file-coding.c:
12079         * file-coding.h:
12080         Change enum eol_type to eol_type_t.
12081
12082 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12083
12084         * gui.c (get_gui_callback): Check cons before accessing car.
12085
12086 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12087
12088         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
12089         (XSETSPECIFIER_TYPE): Ditto.
12090
12091 2000-01-17  Didier Verna  <didier@xemacs.org>
12092
12093         * redisplay.c (generate_fstring_runes): compute string size in
12094         characters, not bytes.
12095
12096 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
12097
12098         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
12099
12100 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
12101
12102         * print.c (print_error_message): Call print_prepare().
12103
12104 2000-01-14  Martin Buchholz  <martin@xemacs.org>
12105
12106         * .dbxrc: Renamed from dbxrc.
12107
12108         * events.c (event_to_character):
12109         Use `assert (foo)' instead of `if (!foo) abort()'
12110
12111         * .gdbinit (xtype): Add documentation.
12112         * .gdbinit (check-temacs): New function.
12113         * .gdbinit (check-xemacs): New function.
12114         * dbxrc (check-xemacs): New function.
12115         * dbxrc (check-xemacs): New function.
12116
12117 2000-01-14  Andy Piper  <andy@xemacs.org>
12118
12119         * glyphs-widget.c (widget_query_geometry): Make sure that we
12120         calculate default dimensions correctly.
12121
12122 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12123
12124         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
12125
12126         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
12127         pdump_wire'd variable.
12128
12129         * emacs.c: (main_1): Conditionalized calls to
12130         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
12131
12132 2000-01-13  Martin Buchholz  <martin@xemacs.org>
12133
12134         * window.c (Fset_window_configuration):
12135         * sysdep.c (_start):
12136         * input-method-motif.c (res):
12137         * event-Xt.c (Xt_process_to_emacs_event):
12138         Simple compiler warning fixes.
12139
12140         * bytecode.c (funcall_compiled_function): Use the original
12141         function symbol on the backtrace list in preference to the
12142         compiled_function object in error messages.
12143
12144 2000-01-13  Andy Piper  <andy@xemacs.org>
12145
12146         * glyphs-x.c (update_widget_face): Make sure we update the widget
12147         background as well as foreground.
12148
12149 2000-01-13  Andy Piper  <andy@xemacs.org>
12150
12151         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
12152         fields to subwindow.
12153         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
12154         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
12155         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
12156         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
12157
12158         * glyphs-widget.c (check_valid_tab_orientation): new function.
12159         (initialize_widget_image_instance): zero orientation and
12160         justification.
12161         (widget_instantiate): pick up orientation.
12162         (tab_control_query_geometry): return appropriate values for
12163         vertical tabs.
12164
12165         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
12166         appropriate creation flags for left, right and bottom tabs.
12167
12168         * s/cygwin32.h: add tab definitions.
12169
12170 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12171
12172         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
12173         frame upon hiding a subwindow.
12174         (mswindows_button_instantiate): Changed the push button style to
12175         BS_PUSHBUTTON.
12176         (mswindows_button_instantiate): Removed button BS_NOTIFY
12177         style.
12178         (mswindows_button_instantiate): Removed redundant check for
12179         a disabled gui item.
12180         (mswindows_button_instantiate): Made use of WS_TABSTOP
12181         consistent: "operable" controls (edit, button, tree, scroll) have
12182         this style, "display-only" ones (static, progress gauge) do
12183         not. This style is currently ignored by XEmacs though. Also,
12184         removed the WS_EX_CONTROLPARENT style - it is not for children,
12185         it is for their parents!
12186         (mswindows_edit_field_instantiate): Ditto.
12187         (mswindows_progress_gauge_instantiate): Ditto.
12188         (mswindows_tree_view_instantiate): Ditto.
12189         (mswindows_tab_control_instantiate): Ditto.
12190         (mswindows_scrollbar_instantiate): Ditto.
12191         (mswindows_combo_box_instantiate): Ditto.
12192         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
12193         style to the "clip" window.
12194         (mswindows_button_instantiate): Removed compilation warning by
12195         equally typing terms of the ?: operator.
12196
12197 2000-01-12  Didier Verna  <didier@xemacs.org>
12198
12199         * redisplay.c (generate_fstring_runes): new parameter holding the
12200         last modeline-format extent.
12201         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
12202         extent, fill the glyph block with it.
12203         (generate_fstring_runes): handle these parameters.
12204         (generate_formatted_string_db): ditto.
12205
12206         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
12207         glyphs'extents in the modeline.
12208
12209 1999-01-11  Mike Woolley  <mike@bulsara.com>
12210
12211         * ntheap.c: Reduced the reserved heap space from 1Gb down to
12212         256Mb, as a workaround for the non-starting problem many people
12213         have experienced.
12214
12215 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12216
12217         * console-tty.c (Fset_console_tty_output_coding_system):
12218         Force redrawing tty frame.
12219
12220 2000-01-10  Didier Verna  <didier@xemacs.org>
12221
12222         * redisplay.c (generate_fstring_runes): fix size computation bug.
12223
12224 2000-01-09  William M. Perry <wmperry@aventail.com>
12225
12226         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
12227
12228 2000-01-09  Andy Piper  <andy@xemacs.org>
12229
12230         * glyphs-msw.c: index -> i to avoid shadows.
12231         (xbm_create_bitmap_from_data): make static.
12232         (check_valid_string_or_int): deleted.
12233         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
12234
12235         * glyphs-x.c (x_update_subwindow): remove unused args.
12236
12237         * glyphs.c (glyph_image_instance): return the thing. Don't set the
12238         back pointer - this is done in allocate_image_instance.
12239         (query_string_font): return Qnil to make the compiler happy.
12240         (unmap_subwindow): set to ~0 to make the compiler happy.
12241         (glyph_query_geometry): comment out until used.
12242         (glyph_layout): ditto.
12243
12244 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
12245
12246         * insdel.c (signal_after_change): Remove extraneous unbind_to().