(JX1-754E): Add `=>ucs*'.
[chise/xemacs-chise.git] / src / ChangeLog
1 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * text-coding.c (char_encode_big5): Prefer charset-g1 than
4         `chinese-big5'.
5
6 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
7
8         * chartab.c (uint8_byte_table_description): New constant.
9         (uint8-byte-table): Use `uint8_byte_table_description'.
10         (uint16_byte_table_description): New constant.
11         (uint16-byte-table): Use `uint16_byte_table_description'.
12
13 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
14
15         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
16         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
17
18 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
19
20         * mule-charset.c (Vcharset_ucs_ks): New variable.
21         (Qucs_ks): New variable.
22         (syms_of_mule_charset): Add new symbol `ucs-ks'.
23         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
24
25         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
26
27 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
28
29         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
30         (Fdecode_char): Likewise.
31
32         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
33         chartab.h.
34         (Fdefine_char): Modify for Fdecode_char.
35         (Ffind_char): Likewise.
36
37         * mule-charset.c (Fdecode_char): Add new optional argument
38         `defined-only'.
39         (Fdecode_builtin_char): Modify for `Fdecode_char'.
40
41 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
42
43         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
44         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
45         (allocate_coding_system): Initialize initial-charsets of
46         CODESYS_BIG5 in XEmacs UTF-2000.
47         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
48         CODESYS_BIG5 in XEmacs UTF-2000.
49         (decode_coding_big5): Use initial-charset-g0 and -g1 of
50         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
51
52         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
53         variables.
54         (Qideograph_hanziku_{1 .. 12}): Likewise.
55         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
56         .. 12}'.
57         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
58         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
59         `ideograph-hanziku-{1 .. 12}'.
60
61         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
62         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
63         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
64         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
65         (DECODE_DEFINED_CHAR): New inline function.
66         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
67
68 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
69
70         * mule-charset.c (Vcharset_china3_jef): Renamed from
71         `Vcharset_japanese_jef_china3'.
72         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
73         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
74         `{MIN|MAX}_CHAR_JEF_CHINA3'..
75         (syms_of_mule_charset): Rename `china3-jef' from
76         `japanese-jef-china3'.
77         (complex_vars_of_mule_charset): Likewise; rename
78         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
79
80         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
81         `LEADING_BYTE_JEF_CHINA3'.
82         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
83         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
84
85 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
86
87         * mule-charset.c (encode_builtin_char_1): Comment out special code
88         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
89
90         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
91         (MAX_CHAR_MOJIKYO_0): Comment out.
92         (MIN_CHAR_CBETA): Changed to 0x00E20000.
93         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
94         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
95         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
96
97 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
98
99         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
100         (Qideograph_cbeta): New variable.
101         (encode_builtin_char_1): Comment out special code for
102         coded-charset `mojikyo' and `japanese-jef-china3'.
103         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
104         (complex_vars_of_mule_charset): Add new coded-charset
105         `ideograph-cbeta'.
106
107         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
108         (MIN_CHAR_CBETA): New macro.
109         (MAX_CHAR_CBETA): New macro.
110
111 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
112
113         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
114         (LEADING_BYTE_JEF_CHINA3): New macro.
115         (MIN_CHAR_JEF_CHINA3): New macro.
116         (MAX_CHAR_JEF_CHINA3): Likewise.
117         (DECODE_CHAR): Fixed.
118
119 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
120
121         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
122         (Qjapanese_jef_china3): New variable.
123         (encode_builtin_char_1): Support `japanese-jef-china3'.
124         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
125         (complex_vars_of_mule_charset): Add new coded-charset
126         `japanese-jef-china3'.
127
128 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
129
130         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
131         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
132         94^4, 96^3, 96^4, 128^n and 256^n set.
133         (put_char_table): Use `XCHARSET_CELL_RANGE'.
134         (map_char_table): Likewise.
135
136 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
137
138         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
139         UTF-2000.
140
141 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
142
143         * chartab.h (get_char_id_table): New inline function.
144
145         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
146         function.
147
148 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
149
150         * chartab.h (decode_char_table_range): New prototype in XEmacs
151         UTF-2000.
152         (put_char_id_table): New inline function in XEmacs UTF-2000.
153
154         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
155         function.
156         (decode_char_table_range): Delete static declaration in XEmacs
157         UTF-2000.
158
159 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
160
161         * chartab.c (put_char_id_table): Use `put_char_table'.
162
163 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
164
165         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
166         (map_over_uint16_byte_table): Likewise.
167         (map_over_byte_table): Likewise.
168         (map_char_table): Modify for `map_over_uint8_byte_table',
169         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
170         UTF-2000.
171
172 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
173
174         * chartab.c (struct map_char_table_for_charset_arg): New
175         structure.
176         (map_char_table_for_charset_fun): New function.
177         (map_char_table): Use `map_char_table' for encoding_table of
178         `range->charset'.
179
180 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
181
182         * chartab.c (map_char_table): Check a character is found in
183         range->charset instead of non default value is defined in
184         char-table when range is CHARTAB_RANGE_ROW.
185
186 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
187
188         * chartab.c (map_char_id_table): Deleted.
189         (Fmap_char_attribute): Use `map_char_table' instead of
190         `map_char_id_table'.
191
192 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
193
194         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
195         UTF-2000.
196         (update_syntax_table): Deleted in XEmacs UTF-2000.
197
198         * syntax.c (find_defun_start): Use `syntax_table' instead of
199         `mirror_syntax_table' in XEmacs UTF-2000.
200         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
201         UTF-2000.
202         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
203         XEmacs UTF-2000.
204         (Fmatching_paren): Likewise.
205         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
206         in XEmacs UTF-2000.
207         (find_start_of_comment): Likewise.
208         (find_end_of_comment): Likewise.
209         (Fforward_comment): Likewise.
210         (scan_lists): Likewise.
211         (char_quoted): Likewise.
212         (Fbackward_prefix_chars): Likewise.
213         (scan_sexps_forward): Likewise.
214         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
215         (update_syntax_table): Likewise.
216
217         * search.c (skip_chars): Use `syntax_table' instead of
218         `mirror_syntax_table' in XEmacs UTF-2000.
219         (wordify): Likewise.
220         (Freplace_match): Likewise.
221
222         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
223         `mirror_syntax_table' in XEmacs UTF-2000.
224         (WORDCHAR_P_UNSAFE): Likewise.
225         (re_match_2_internal): Likewise.
226
227         * font-lock.c (find_context): Use `buf->syntax_table' instead of
228         `buf->mirror_syntax_table' in XEmacs UTF-2000.
229
230         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
231         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
232
233         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
234         XEmacs UTF-2000.
235
236         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
237         UTF-2000.
238         (print_char_table): Print `default_value' in XEmacs UTF-2000.
239         (char_table_description): Delete `mirror_table' in XEmacs
240         UTF-2000.
241         (fill_char_table): Don't call `update_syntax_table' in XEmacs
242         UTF-2000.
243         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
244         (Fcopy_char_table): Likewise.
245         (put_char_table): Don't call `update_syntax_table' in XEmacs
246         UTF-2000.
247
248         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
249         `buf->mirror_syntax_table' in XEmacs UTF-2000.
250         (casify_region_internal): Likewise.
251
252         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
253
254         * buffer.c (common_init_complex_vars_of_buffer): Don't use
255         `mirror_syntax_table' in XEmacs UTF-2000.
256
257         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
258         `buf->mirror_syntax_table' in XEmacs UTF-2000.
259         (Fexpand_abbrev): Likewise.
260
261 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
262
263         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
264
265 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
266
267         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
268         (map_over_uint16_byte_table): Likewise.
269         (map_over_byte_table): Likewise.
270         (get_char_id_table): Refer `cit->default_value'.
271         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
272         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
273         of character-id ranges.
274         (mark_char_table): Mark `ct->default_value'.
275         (char_table_description): Add `default_value'.
276         (fill_char_table): Use `default_value'.
277         (decode_char_table_range): Decode `nil' as
278         `CHARTAB_RANGE_DEFAULT'.
279         (get_char_id_table): Refer `cit->default_value'.
280         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
281         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
282         temporary hack; check value of char-table is bound or not.
283         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
284
285         * chartab.h (struct Lisp_Char_Table): Add new member
286         `default_value' in XEmacs UTF-2000.
287         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
288         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
289         UTF-2000.
290
291 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
292
293         * chartab.h (Lisp_Char_ID_Table): Deleted.
294
295         * chartab.c (char_table_description): Fix typo.
296         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
297         `Lisp_Char_ID_Table'.
298
299 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
300
301         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
302         `CHAR_ID_TABLE_P'.
303
304         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
305         `CHAR_ID_TABLE_P'.
306
307         * chartab.h (XCHAR_ID_TABLE): Deleted.
308         (XSETCHAR_ID_TABLE): Deleted.
309         (CHAR_ID_TABLE_P): Deleted.
310
311         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
312         `CHAR_ID_TABLE_P'.
313         (Fget_composite_char): Likewise.
314         (put_char_table): Likewise.
315         (add_char_attribute_alist_mapper): Fixed.
316         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
317         `CHAR_ID_TABLE_P'.
318         (Fget_char_attribute): Likewise.
319         (Fget_char_attribute): Likewise.
320         (Fmap_char_attribute): Likewise.
321
322         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
323         `CHAR_ID_TABLE_P'.
324         (encode_char_1): Likewise.
325
326 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
327
328         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
329         `XCHAR_ID_TABLE'.
330
331         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
332         instead of `XCHAR_ID_TABLE'.
333         (remove_char_ccs): Likewise.
334
335         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
336         `XCHAR_ID_TABLE'.
337         (Fget_composite_char): Likewise.
338         (Fchar_variants): Likewise.
339         (put_char_table): Likewise.
340         (add_char_attribute_alist_mapper): Likewise.
341         (Fchar_attribute_alist): Likewise.
342         (Fget_char_attribute): Likewise.
343         (Fput_char_attribute): Likewise.
344         (Fmap_char_attribute): Likewise.
345         (Fmap_char_attribute): Likewise.
346
347         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
348         `XCHAR_ID_TABLE'.
349         (encode_char_1): Likewise.
350
351 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
352
353         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
354         `Lisp_Char_ID_Table'.
355         (mark_char_id_table): Deleted.
356         (print_char_id_table): Likewise.
357         (char_id_table_equal): Likewise.
358         (char_id_table_hash): Likewise.
359         (char_id_table_description): Likewise.
360         (char_id_table): Likewise.
361         (make_char_id_table): Use `Fmake_char_table' and
362         `fill_char_table'.
363         (get_char_id_table): Use `Lisp_Char_Table' instead of
364         `Lisp_Char_ID_Table'.
365         (put_char_id_table): Likewise.
366         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
367         `XCHAR_ID_TABLE'.
368         (Fremove_char_attribute): Likewise.
369         (syms_of_chartab): Don't define type `char-id-table'.
370
371         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
372         (char_id_table): Likewise.
373         (GC_CHAR_ID_TABLE_P): Likewise.
374         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
375         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
376         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
377         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
378         (get_char_id_table): Use `Lisp_Char_Table' instead of
379         `Lisp_Char_ID_Table'.
380         (put_char_id_table_0): Likewise.
381         (put_char_id_table): Likewise.
382
383 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
384
385         * chartab.h: Lisp_Byte_Table related codes are moved from
386         chartab.h.
387
388         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
389
390 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
391
392         * chartab.h: Don't include "chartab.h".
393         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
394         (Lisp_Char_ID_Table): Likewise.
395         (char_id_table): Likewise.
396         (XCHAR_ID_TABLE): Likewise.
397         (XSETCHAR_ID_TABLE): Likewise.
398         (CHAR_ID_TABLE_P): Likewise.
399         (GC_CHAR_ID_TABLE_P): Likewise.
400         (get_char_id_table): Likewise.
401
402         * char-ucs.h: Include "chartab.h".
403         (struct Lisp_Char_ID_Table): Moved to chartab.h.
404         (Lisp_Char_ID_Table): Likewise.
405         (char_id_table): Likewise.
406         (XCHAR_ID_TABLE): Likewise.
407         (XSETCHAR_ID_TABLE): Likewise.
408         (CHAR_ID_TABLE_P): Likewise.
409         (GC_CHAR_ID_TABLE_P): Likewise.
410         (get_char_id_table): Likewise.
411
412 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
413
414         * chartab.c (copy_uint8_byte_table): New function.
415         (copy_uint16_byte_table): New function.
416         (copy_byte_table): New function.
417         (map_over_uint8_byte_table): Modify to avoid huge numbers of
418         characters to call.
419         (map_over_uint16_byte_table): Likewise.
420         (map_over_byte_table): Likewise.
421         (get_byte_table): Move prototype to chartab.h.
422         (put_byte_table): Likewise.
423         (put_char_id_table_0): Moved to chartab.h.
424         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
425         (char_table_entry_equal): Likewise.
426         (char_table_entry_hash): Likewise.
427         (char_table_entry_description): Likewise.
428         (char_table_entry): Likewise.
429         (make_char_table_entry): Likewise.
430         (copy_char_table_entry): Likewise.
431         (get_non_ascii_char_table_value): Likewise.
432         (map_over_charset_ascii): Likewise.
433         (map_over_charset_control_1): Likewise.
434         (map_over_charset_row): Likewise.
435         (map_over_other_charset): Likewise.
436         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
437         (print_char_table): Likewise.
438         (char_table_equal): Likewise.
439         (char_table_hash): Likewise.
440         (char_table_description): Likewise.
441         (fill_char_table): Likewise.
442         (Fcopy_char_table): Likewise.
443         (get_char_table): Likewise.
444         (Fget_range_char_table): Likewise.
445         (put_char_table): Likewise.
446         (map_char_table): Likewise.
447         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
448         UTF-2000.
449
450 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
451
452         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
453         `Vauto_fill_chars' in XEmacs UTF-2000.
454
455         * chartab.h (get_byte_table): New prototype [moved from
456         chartab.c].
457         (put_byte_table): Likewise [moved from chartab.c].
458         (put_char_id_table_0): New inline function [moved from chartab.c].
459         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
460         (Lisp_Char_Table_Entry): Likewise.
461         (char_table_entry): Likewise.
462         (XCHAR_TABLE_ENTRY): Likewise.
463         (XSETCHAR_TABLE_ENTRY): Likewise.
464         (CHAR_TABLE_ENTRYP): Likewise.
465         (CHECK_CHAR_TABLE_ENTRY): Likewise.
466         (NUM_ASCII_CHARS): Likewise.
467         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
468         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
469
470 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
471
472         * chartab.c (get_char_id_table): Change interface.
473         (put_char_id_table_0): New function.
474         (put_char_id_table): Change interface; new implementation.
475         (Fget_composite_char): Modify for interface change of
476         `get_char_id_table'.
477         (Fchar_variants): Likewise.
478         (add_char_attribute_alist_mapper): Likewise.
479         (Fchar_attribute_alist): Likewise.
480         (Fget_char_attribute): Likewise.
481         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
482         as same as character as the first argument like `put-char-table';
483         modify for interface change of `put_char_id_table'.
484         (Fremove_char_attribute): Modify for interface change of
485         `put_char_id_table'.
486
487 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
488
489         * text-coding.c: Sync up with XEmacs 21.2.41.
490         (COMPOSE_ADD_CHAR): Modify for interface change of
491         `get_char_id_table'.
492
493         * mule-charset.c (put_char_ccs_code_point): Modify for interface
494         change of `put_char_id_table'.
495         (remove_char_ccs): Likewise.
496
497         * chartab.h (put_char_id_table): Change interface.
498
499         * char-ucs.h (get_char_id_table): Change interface.
500         (charset_code_point): Modify for interface change of
501         `get_char_id_table'.
502         (encode_char_1): Likewise.
503
504 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
505
506         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
507         argument `ccs'.
508         (map_over_uint16_byte_table): Likewise.
509         (map_over_byte_table): Likewise.
510         (map_char_id_table): Add new argument `range' like
511         `map_char_table'.
512         (Fmap_char_attribute): Add new argument `range' like
513         `Fmap_char_table'.
514
515 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
516
517         * chartab.c (map_over_uint8_byte_table): Change interface of
518         mapping function to use struct chartab_range instead of Emchar.
519         (map_over_uint16_byte_table): Likewise.
520         (map_over_byte_table): Likewise.
521         (map_char_id_table): Likewise.
522         (struct slow_map_char_id_table_arg): Deleted.
523         (slow_map_char_id_table_fun): Deleted.
524         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
525         function `slow_map_char_table_fun' instead of struct
526         `slow_map_char_id_table_arg' and function
527         `slow_map_char_id_table_fun'.
528
529 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
530
531         * mule-charset.c: Move char-it-table related codes to chartab.c.
532         (Vutf_2000_version): Moved to chartab.c.
533         (Fdefine_char): Likewise.
534         (Ffind_char): Likewise.
535         (syms_of_mule_charset): Move types `uint8-byte-table',
536         `uint16-byte-table', `byte-table' and `char-id-table' to
537         chartab.c; move functions `char_attribute_list,
538         `find_char_attribute_table, `char_attribute_alist,
539         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
540         `map_char_attribute, `define_char, `find_char, `char_variants and
541         `get_composite_char to chartab.c; move symbols `=>ucs',
542         `->decomposition', `compat', `isolated', `initial', `medial',
543         `final', `vertical', `noBreak', `fraction', `super', `sub',
544         `circle', `square', `wide', `narrow', `small' and `font' to
545         chartab.c.
546         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
547         setting codes for `Vcharacter_composition_table' and
548         `Vcharacter_variant_table' to chartab.c.
549         (complex_vars_of_mule_charset): Move setting code for
550         `Vchar_attribute_hash_table' to chartab.c.
551
552         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
553         (make_char_id_table): New prototype.
554         (put_char_id_table): Likewise.
555         (Fget_char_attribute): Likewise.
556
557         * chartab.c: Move char-id-table related code from mule-charset.c.
558         (Vutf_2000_version): Moved from mule-charset.c.
559
560         * char-ucs.h (Qucs): New external variable.
561         (put_char_ccs_code_point): New prototype.
562         (remove_char_ccs): Likewise.
563
564 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
565
566         * mule-charset.c (Vcharset_ucs_jis): New variable.
567         (Qucs_jis): Likewise.
568         (syms_of_mule_charset): Add new symbol `ucs-jis'.
569         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
570
571         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
572
573 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
574
575         * mule-charset.c (map_over_uint8_byte_table): New function.
576         (map_over_uint16_byte_table): Likewise.
577         (map_over_byte_table): Likewise.
578         (map_char_id_table): Likewise.
579         (slow_map_char_id_table_fun): Likewise.
580         (Fmap_char_attribute): Likewise.
581         (syms_of_mule_charset): Add new function `map-char-attribute'.
582
583 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
584
585         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
586         (syms_of_mule_charset): Add new function `find-char'.
587
588 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
589
590         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
591         XEmacs UTF-2000.
592         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
593         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
594         XEmacs UTF-2000.
595         (complex_vars_of_mule_charset): Add new coded-charset
596         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
597         `ideograph-gt-pj-*'.
598
599         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
600
601 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
602
603         * mule-charset.c (encode_builtin_char_1): Purge codes about
604         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
605         {MIN|MAX}_CHAR_HEBREW.
606         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
607         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
608
609         * char-ucs.h (MIN_CHAR_GREEK): Purged.
610         (MAX_CHAR_GREEK): Purged.
611         (MIN_CHAR_CYRILLIC): Purged.
612         (MAX_CHAR_CYRILLIC): Purged.
613         (MIN_CHAR_HEBREW): Commented out.
614         (MAX_CHAR_HEBREW): Likewise.
615
616 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
617
618         * mule-charset.c (Qto_ucs): New variable.
619         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
620         (Fdefine_char): Likewise.
621         (syms_of_mule_charset): Add new symbol `=>ucs'.
622
623 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
624
625         * mule-charset.c (Fdecode_char): Fixed.
626
627 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
628
629         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
630         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
631         "tcvn5712-1".
632
633 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
634
635         * mule-charset.c (Vcharset_ucs_big5): New variable.
636         (Qucs_big5): Likewise.
637         (syms_of_mule_charset): Add new symbol `ucs-big5'.
638         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
639
640         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
641
642 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
643
644         * mule-charset.c (decode_builtin_char): Check Big5 code range
645         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
646
647 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
648
649         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
650         (Qchinese_gb12345): Likewise.
651         (Fdecode_builtin_char): Fixed.
652         (syms_of_mule_charset): Add `chinese-gb12345'.
653         (complex_vars_of_mule_charset): Add coded-charset
654         `chinese-gb12345'.
655
656         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
657         (LEADING_BYTE_CHINESE_GB12345): New macro.
658
659 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
660
661         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
662         and `latin-viscii-upper' for `latin-viscii'.
663
664 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
665
666         * mule-charset.c (Fdecode_builtin_char): Comment out
667         regularization code for ISO-IR GR representation.
668
669 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
670
671         * mule-charset.c (decode_builtin_char): New function; renamed from
672         `make_builtin_char'; return -1 instead of signal.
673         (Fdecode_builtin_char): Use `decode_builtin_char'.
674
675         * char-ucs.h (decode_builtin_char): New prototype; renamed from
676         `make_builtin_char'.
677         (DECODE_CHAR): Use `decode_builtin_char' instead of
678         `make_builtin_char'; use mapping table of `chinese-big5' for
679         `chinese-big5-{1,2}'.
680
681 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
682
683         * text-coding.c (char_encode_big5): New function.
684         (char_finish_big5): Likewise.
685         (reset_encoding_stream): Use `char_encode_big5' and
686         `char_finish_big5' for CODESYS_BIG5.
687         (mule_encode): Don't use `encode_coding_big5'.
688         (encode_coding_big5): Deleted.
689
690 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
691
692         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
693         0x81- in XEmacs UTF-2000.
694         (detect_coding_big5): Likewise.
695
696 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
697
698         * mule-charset.c (Fdefine_char): Don't use a CCS property to
699         generate character-id if the CCS property does not have
700         corresponding predefined character.
701         (make_builtin_char): Return -1 if corresponding predefined
702         character is not found.
703         (Fdecode_char): Return nil if corresponding character is not
704         found.
705         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
706         don't map to builtin ucs space.
707
708 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
709
710         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
711         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
712
713 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
714
715         * mule-charset.c (Vcharset_ideograph_gt): New variable.
716         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
717         (Qideograph_gt): Likewise.
718         (Qideograph_gt_pj_{1..11}): Likewise.
719         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
720         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
721         `ideograph-gt-pj-11'.
722         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
723         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
724         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
725
726         * char-ucs.h (LEADING_BYTE_GT): New macro.
727         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
728         (MIN_CHAR_GT): Likewise.
729         (MAX_CHAR_GT): Likewise.
730
731 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
732
733         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
734         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
735
736         * doprnt.c (unsigned_int_converters): Add `c'.
737         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
738
739         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
740         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
741         `MIN_CHAR_MOJIKYO'.
742         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
743         (MAX_CHAR_MOJIKYO_0): New macro.
744         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
745
746 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
747
748         * mule-charset.c (Fdefine_char): Delete cemented out code.
749         (encode_builtin_char_1): Modify for new allocation of builtin
750         Mojikyo characters.
751
752         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
753
754 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
755
756         * mule-charset.c (Vcharset_ucs_cns): New variable.
757         (Qucs_cns): New variable.
758         (syms_of_mule_charset): Add new symbol `ucs-cns'.
759         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
760
761 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
762
763         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
764
765 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
766
767         * search.c (search_buffer): Make `charset_base_code' as
768         character-id >> 6 to eliminate the corresponding last byte in
769         UTF-8 representation [I'm not sure it is right thing].
770         (boyer_moore): Likewise.
771
772 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
773
774         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
775         representation in MULE.
776
777 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
778
779         * text-coding.c (Fmake_coding_system): Use
780         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
781         `EXTERNAL_PROPERTY_LIST_LOOP'.
782
783 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
784
785         * text-coding.c (decode_output_utf8_partial_char): New function.
786         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
787
788 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
789
790         * text-coding.c (decode_coding_utf8): Output original byte
791         sequence if it is broken; change order of conditions.
792
793         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
794         of conditions.
795
796         * mb-multibyte.h (BYTE_ASCII_P):
797         Use bit ops for char-signedness safety.
798         (BYTE_C0_P): Use bit ops for char-signedness safety.
799         (BYTE_C1_P): Use bit ops for char-signedness safety.
800
801         * character.h: (XCHAR_OR_CHAR_INT):
802         Always use inline function.
803         Remove redundant type checking assert() - XINT will abort quite
804         nicely.
805
806 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
807
808         * text-coding.c: (Fencode_shift_jis_char):
809         (Fencode_big5_char):
810         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
811         Replace 0 with '\0' when working with bytes.
812         Replace initial "(" with "\(" in docstrings.
813
814         (Fmake_coding_system):
815         When type is ccl and value is vector, register it with a proper
816         symbol.  And checks whether the given ccl program is valid.
817         (mule_decode): When calling ccl_driver, if src indicates
818         NULL pointer, set an empty string instead.
819         (mule_encode): Likewise.
820
821         (detect_eol_type):
822         (detect_coding_sjis):
823         (decode_coding_sjis):
824         (detect_coding_big5):
825         (decode_coding_big5):
826         (detect_coding_ucs4):
827         (decode_coding_ucs4):
828         (detect_coding_utf8):
829         (decode_coding_utf8):
830         (detect_coding_iso2022):
831         (decode_coding_iso2022):
832         (decode_coding_no_conversion):
833         (mule_decode):
834         Make all detecting and decoding functions take an Extbyte * arg.
835         (text_encode_generic):
836         (encode_coding_big5):
837         (encode_coding_no_conversion):
838         (mule_encode):
839         Make all encoding functions take a Bufbyte * arg.
840         Use size_t instead of unsigned int for memory sizes.
841         Only cast to unsigned char whenever dereferencing Extbyte *.
842
843         (struct lrecord_description fcd_description_1): Use countof.
844         (complex_vars_of_file_coding):
845         Use countof instead of sizeof.
846         Use CHECK_NATNUM instead of CHECK_INT.
847
848 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
849
850         * mule-charset.c (Fget_char_attribute): Add new optional argument
851         `default-value'.
852         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
853         (remove_char_ccs): Likewise.
854
855 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
856
857         * text-coding.c (char_encode_shift_jis): New implementation in
858         UTF-2000.
859         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
860         ...)'.
861
862         * mule-charset.c (Vcharset_chinese_big5): New variable in
863         UTF-2000.
864         (Qchinese_big5): New variable in UTF-2000.
865         (BIG5_SAME_ROW): New macro in UTF-2000.
866         (make_builtin_char): Use builtin characters of
867         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
868         characters of `Vcharset_chinese_big5'.
869         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
870         (complex_vars_of_mule_charset): Add new coded-charset
871         `chinese-big5' in UTF-2000.
872
873         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
874         (Vcharset_chinese_big5): New external variable declaration.
875         (Vcharset_japanese_jisx0208_1990): Likewise.
876
877 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
878
879         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
880         function.
881         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
882
883 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
884
885         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
886         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
887         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
888         `mojikyo-pj-*'.
889
890 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
891
892         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
893
894 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
895
896         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
897         to 0.17.
898
899 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
900
901         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
902         for `CHARSET_BY_ATTRIBUTES'.
903         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
904         `CHARSET_BY_ATTRIBUTES'.
905
906         * text-coding.c (struct decoding_stream): Rename member `CH' to
907         `CPOS'.
908         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
909         (decode_coding_sjis): Likewise.
910         (decode_coding_big5): Likewise.
911         (decode_coding_ucs4): Likewise.
912         (decode_coding_utf8): Likewise.
913         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
914         `CHARSET_BY_ATTRIBUTES'.
915         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
916         `str->counter'; decode 3, 4 bytes sets.
917         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
918         sets.
919         (decode_coding_no_conversion): Use `str->cpos' instead of
920         `str->ch'.
921
922         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
923         (Qmojikyo_2022_1): New variable.
924         (make_charset): Don't use `CHARSET_TYPE_*'.
925         (range_charset_code_point): Support coded-charset
926         `mojikyo-2022-1'.
927         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
928         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
929         `CHARSET_BY_ATTRIBUTES'.
930         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
931         `CHARSET_BY_ATTRIBUTES'.
932         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
933         (complex_vars_of_mule_charset): Add new coded-charset
934         `mojikyo-2022-1'.
935
936         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
937         interface; changed to inline function.
938
939         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
940         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
941         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
942         (CHARSET_TYPE_94): Deleted.
943         (CHARSET_TYPE_94X94): Deleted.
944         (CHARSET_TYPE_96): Deleted.
945         (CHARSET_TYPE_96X96): Deleted.
946         (CHARSET_TYPE_128): Deleted.
947         (CHARSET_TYPE_128X128): Deleted.
948         (CHARSET_TYPE_256): Deleted.
949         (CHARSET_TYPE_256X256): Deleted.
950         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
951         to inline function.
952         (DECODE_MOJIKYO_2022): New inline function.
953         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
954         `Vcharset_mojikyo_2022_1'.
955
956 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
957
958         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
959         instead of `EQ'.
960         (put_byte_table): Likewise.
961         (char_id_table_equal): Use `get_byte_table' [new implementation].
962
963 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
964
965         * mule-charset.c: Include <limits.h> in UTF-2000.
966         (BT_UINT8_MIN): New macro in UTF-2000.
967         (BT_UINT8_MAX): New macro in UTF-2000.
968         (BT_UINT8_t): New macro in UTF-2000.
969         (BT_UINT8_nil): New macro in UTF-2000.
970         (BT_UINT8_unbound): New macro in UTF-2000.
971         (INT_UINT8_P): New inline function in UTF-2000.
972         (UINT8_VALUE_P): New inline function in UTF-2000.
973         (UINT8_ENCODE): New inline function in UTF-2000.
974         (UINT8_DECODE): New inline function in UTF-2000.
975         (mark_uint8_byte_table): New function in UTF-2000.
976         (print_uint8_byte_table): New function in UTF-2000.
977         (uint8_byte_table_equal): New function in UTF-2000.
978         (uint8_byte_table_hash): New function in UTF-2000.
979         (make_uint8_byte_table): New function in UTF-2000.
980         (uint8_byte_table_same_value_p): New function in UTF-2000.
981         (BT_UINT16_MIN): New macro in UTF-2000.
982         (BT_UINT16_MAX): New macro in UTF-2000.
983         (BT_UINT16_t): New macro in UTF-2000.
984         (BT_UINT16_nil): New macro in UTF-2000.
985         (BT_UINT16_unbound): New macro in UTF-2000.
986         (INT_UINT16_P): New inline function in UTF-2000.
987         (UINT16_VALUE_P): New inline function in UTF-2000.
988         (UINT16_ENCODE): New inline function in UTF-2000.
989         (UINT16_DECODE): New inline function in UTF-2000.
990         (UINT8_TO_UINT16): New inline function in UTF-2000.
991         (mark_uint16_byte_table): New function in UTF-2000.
992         (print_uint16_byte_table): New function in UTF-2000.
993         (uint16_byte_table_equal): New function in UTF-2000.
994         (uint16_byte_table_hash): New function in UTF-2000.
995         (make_uint16_byte_table): New function in UTF-2000.
996         (uint16_byte_table_same_value_p): New function in UTF-2000.
997         (print_byte_table): New function in UTF-2000.
998         (byte-table): Use `print_byte_table' as printer.
999         (make_byte_table): Delete second argument `older'.
1000         (byte_table_same_value_p): New function in UTF-2000.
1001         (copy_byte_table): Deleted.
1002         (get_byte_table): New function in UTF-2000.
1003         (put_byte_table): New function in UTF-2000.
1004         (print_char_id_table): New function in UTF-2000.
1005         (char-id-table): Use `print_char_id_table' as printer.
1006         (make_char_id_table): Delete second argument `older'.
1007         (get_char_id_table): Use `get_byte_table [new implementation].
1008         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
1009         implementation].
1010         (Ffind_char_attribute_table): New function in UTF-2000.
1011         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
1012         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
1013         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
1014         (syms_of_mule_charset): Add new function
1015         `find-char-attribute-table' in UTF-2000.
1016
1017         * lrecord.h (enum lrecord_type): Add
1018         `lrecord_type_uint16_byte_table' and
1019         `lrecord_type_uint8_byte_table'.
1020
1021         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
1022         (Lisp_Uint8_Byte_Table): New type.
1023         (XUINT8_BYTE_TABLE): New macro.
1024         (XSETUINT8_BYTE_TABLE): New macro.
1025         (UINT8_BYTE_TABLE_P): New macro.
1026         (GC_UINT8_BYTE_TABLE_P): New macro.
1027         (struct Lisp_Uint16_Byte_Table): New structure.
1028         (Lisp_Uint16_Byte_Table): New type.
1029         (XUINT16_BYTE_TABLE): New macro.
1030         (XSETUINT16_BYTE_TABLE): New macro.
1031         (UINT16_BYTE_TABLE_P): New macro.
1032         (GC_UINT16_BYTE_TABLE_P): New macro.
1033
1034 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1035
1036         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
1037         (Vcharacter_ideographic_strokes_table): Deleted.
1038         (Vcharacter_total_strokes_table): Deleted.
1039         (Vcharacter_morohashi_daikanwa_table): Deleted.
1040         (Vcharacter_decomposition_table): Deleted.
1041         (Qname): Deleted because it is duplicated.
1042         (Qideographic_radical): Deleted.
1043         (Qideographic_strokes): Deleted.
1044         (Qtotal_strokes): Deleted.
1045         (Qmorohashi_daikanwa): Deleted.
1046         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
1047         `ideographic-radical', `ideographic-strokes', `total-strokes',
1048         `morohashi-daikanwa' and `->decomposition'.
1049         (Fget_char_attribute): Likewise.
1050         (Fput_char_attribute): Likewise; use `make-vector' instead of
1051         `make_older_vector' for `->decomposition' value.
1052         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
1053         `ideograph-daikanwa'.
1054         (syms_of_mule_charset): Delete builtin symbols `name',
1055         `ideographic-radical', `ideographic-strokes', `total-strokes' and
1056         `morohashi-daikanwa'.
1057         (vars_of_mule_charset): Don't setup
1058         `Vcharacter_ideographic_radical_table',
1059         `Vcharacter_ideographic_strokes_table',
1060         `Vcharacter_total_strokes_table',
1061         `Vcharacter_morohashi_daikanwa_table' and
1062         `Vcharacter_decomposition_table'.
1063
1064 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1065
1066         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
1067         `make_older_vector', `make_vector_newer_1' and
1068         `make_vector_newer'.
1069
1070         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
1071         `make_older_vector' and `make_vector_newer'.
1072
1073         * config.h.in (HAVE_GGC): New macro.
1074
1075 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1076
1077         * mule-charset.c (struct char_attribute_list_closure): New
1078         structure in UTF-2000.
1079         (add_char_attribute_to_list_mapper): New function in UTF-2000.
1080         (Fchar_attribute_list): Likewise.
1081         (Fset_charset_mapping_table): Use `make_vector_newer'.
1082         (Fdecode_builtin_char): New function in UTF-2000.
1083         (syms_of_mule_charset): Add new function `char-attribute-list' and
1084         `decode-builtin-char' in UTF-2000.
1085
1086         * lisp.h (make_vector_newer): New prototype.
1087
1088         * alloc.c (make_vector_newer_1): New function.
1089         (make_vector_newer): New function.
1090
1091 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1092
1093         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
1094         50100)'.
1095
1096 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1097
1098         * mule-charset.c (Vchar_attribute_hash_table): New variable.
1099         (Vcharacter_attribute_table): Deleted.
1100         (Vcharacter_name_table): Deleted.
1101         (put_char_attribute): Deleted.
1102         (remove_char_attribute): Deleted.
1103         (struct char_attribute_alist_closure): New structure.
1104         (add_char_attribute_alist_mapper): New function.
1105         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
1106         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
1107         (Fget_char_attribute): Likewise.
1108         (Fput_char_attribute): Likewise.
1109         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
1110         of `remove_char_attribute'.
1111         (Fdefine_char): Return character.
1112         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
1113         and `Vcharacter_name_table'.
1114         (complex_vars_of_mule_charset): Likewise
1115         `Vchar_attribute_hash_table'.
1116
1117 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1118
1119         * character.h (CHARC_CHARSET): New macro.
1120         (CHARC_CHARSET_ID): New macro.
1121         (CHARC_CODE_POINT): New macro.
1122         (CHARC_COLUMNS): New macro.
1123         (CHARC_TO_CHAR): New inline function.
1124         (CHARC_EQ): New inline function.
1125         (CHARC_ASCII_EQ): New inline function.
1126         (CHARC_IS_SPACE): New inline function.
1127         (ASCII_TO_CHARC): New inline function.
1128
1129         * char-ucs.h (encode_char_2): Deleted.
1130         (ENCODE_CHAR): Use `encode_char_1' again.
1131         (breakup_char_1): Likewise.
1132         (CHAR_TO_CHARC): New inline function.
1133
1134         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
1135
1136 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1137
1138         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
1139         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
1140         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
1141         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
1142         (create_string_text_block): Use `CHARC_ASCII_EQ' and
1143         `CHARC_IS_SPACE'.
1144         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
1145
1146         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
1147         `CHARC_CODE_POINT'.
1148         (x_output_display_block): Use `CHARC_CHARSET' and
1149         `CHARC_ASCII_EQ'.
1150
1151         * redisplay-tty.c (tty_output_display_block): Use
1152         `CHARC_ASCII_EQ'.
1153         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
1154
1155         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
1156
1157         * insdel.c (find_charsets_in_charc_string): Use
1158         `CHARC_CHARSET_ID'.
1159         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
1160         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
1161         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
1162         (convert_charc_string_into_malloced_string): Likewise.
1163
1164 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1165
1166         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
1167         instead of <Emchar_dynarr *> for buf; use
1168         `convert_bufbyte_string_into_charc_dynarr' instead of
1169         `convert_bufbyte_string_into_emchar_dynarr'; use
1170         `find_charsets_in_charc_string' instead of
1171         `find_charsets_in_emchar_string'.
1172
1173         * redisplay.h:
1174         - Include "character.h".
1175         (struct rune): New member `cglyph'; delete member `chr'.
1176
1177         * redisplay.c (redisplay_text_width_charc_string): New function;
1178         delete `redisplay_text_width_emchar_string'.
1179         (rtw_charc_dynarr): New variable; renamed from
1180         `rtw_emchar_dynarr'.
1181         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
1182         `rtw_emchar_dynarr'; use
1183         `convert_bufbyte_string_into_charc_dynarr' instead of
1184         `convert_bufbyte_string_into_emchar_dynarr'; use
1185         `redisplay_text_width_charc_string' instead of
1186         `redisplay_text_width_emchar_string'.
1187         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
1188         instead of `rtw_emchar_dynarr'; use
1189         `convert_bufbyte_string_into_charc_dynarr' instead of
1190         `convert_bufbyte_string_into_emchar_dynarr'.
1191         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
1192         `redisplay_text_width_charc_string' instead of
1193         `redisplay_text_width_emchar_string'.
1194         (create_text_block): Modify for <struct rune> change.
1195         (generate_formatted_string_db): Likewise.
1196         (create_string_text_block): Likewise.
1197         (pixel_to_glyph_translation): Likewise.
1198
1199         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
1200         instead of <const Emchar *>.
1201         (x_text_width): Likewise.
1202         (x_output_display_block): Use <Charc_dynarr *> instead
1203         <Emchar_dynarr *>; modify for <structure rune> change.
1204         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
1205         *>.
1206
1207         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
1208         <const Emchar *>; use `charc_string_displayed_columns' instead of
1209         `emchar_string_displayed_columns'.
1210         (tty_output_display_block): Use <Charc_dynarr *> instead of
1211         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
1212         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
1213         (tty_output_charc_dynarr_dynarr): New variable; renamed from
1214         `tty_output_emchar_dynarr_dynarr'.
1215         (tty_output_charc_dynarr): New function; delete
1216         `tty_output_charc_dynarr'.
1217
1218         * redisplay-output.c (compare_runes): Modify for `struct rune'.
1219         (redisplay_output_layout): Use <Charc_dynarr *> instead of
1220         <Emchar_dynarr *> for buf; use
1221         `convert_bufbyte_string_into_charc_dynarr' instead of
1222         `convert_bufbyte_string_into_emchar_dynarr'.
1223
1224         * frame.c (title_string_charc_dynarr): New variable; renamed from
1225         `title_string_emchar_dynarr'.
1226         (generate_title_string): Use `title_string_charc_dynarr' instead
1227         of `title_string_emchar_dynarr'; use
1228         `convert_charc_string_into_malloced_string' instead of
1229         `convert_emchar_string_into_malloced_string'.
1230         (init_frame): Use `title_string_charc_dynarr' instead of
1231         `title_string_emchar_dynarr'.
1232
1233         * console.h:
1234         - Include "character.h".
1235         (struct console_methods): Use <const Charc *> instead of <const
1236         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
1237         <Emchar_dynarr *> in output_string_method.
1238
1239         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
1240         <Emchar_dynarr *>.
1241
1242         * console-stream.c (stream_text_width): Use <const Charc *>
1243         instead of <const Emchar *>.
1244
1245         * character.h (Charc_dynarr): New type.
1246
1247         * char-ucs.h (structure Charc): New structure; define new type
1248         `Charc'.
1249
1250         * char-lb.h (DECODE_CHAR): New inline function.
1251         (encode_char_1): New inline function.
1252         (ENCODE_CHAR): New macro.
1253         (structure Charc): New structure; define new type `Charc'.
1254
1255         * char-1byte.h (Vcharset_control_1): New macro.
1256         (Vcharset_latin_iso8859_1): New macro.
1257         (DECODE_CHAR): New inline function.
1258         (encode_char_1): New inline function.
1259         (ENCODE_CHAR): New macro.
1260         (structure Charc): New structure; define new type `Charc'.
1261
1262         * insdel.c (find_charsets_in_charc_string): New function; delete
1263         `find_charsets_in_emchar_string'.
1264         (charc_string_displayed_columns): New function; delete
1265         `emchar_string_displayed_columns'.
1266         (convert_bufbyte_string_into_charc_dynarr): New function; delete
1267         `convert_bufbyte_string_into_emchar_dynarr'.
1268         (convert_charc_string_into_bufbyte_dynarr): New function; delete
1269         `convert_charc_string_into_bufbyte_dynarr'.
1270         (convert_charc_string_into_malloced_string): New function; delete
1271         `convert_charc_string_into_malloced_string'.
1272
1273         * buffer.h (find_charsets_in_charc_string): New prototype; delete
1274         `find_charsets_in_emchar_string'.
1275         (charc_string_displayed_columns): New prototype; delete
1276         `emchar_string_displayed_columns'.
1277         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
1278         `convert_charc_string_into_bufbyte_dynarr'.
1279         (convert_charc_string_into_malloced_string): New prototype; delete
1280         `convert_charc_string_into_malloced_string'.
1281
1282 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1283
1284         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
1285
1286 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1287
1288         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
1289
1290         * char-ucs.h: Use <short> for <Charset_ID>.
1291
1292         * mule-charset.h, char-1byte.h: Use <unsigned char> for
1293         <Charset_ID>.
1294
1295 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1296
1297         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1298         to 0.16.
1299
1300 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1301
1302         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
1303         variable.
1304         (Qmorohashi_daikanwa): New variable.
1305         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
1306         for `morohashi-daikanwa' attribute.
1307         (Fget_char_attribute): Likewise.
1308         (Fput_char_attribute): Likewise.
1309         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
1310         has the same value of `ideograph-daikanwa'.
1311         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
1312         (vars_of_mule_charset): Setup
1313         `Vcharacter_morohashi_daikanwa_table'.
1314
1315 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1316
1317         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
1318         attributes.
1319         (add_charset_to_list_mapper): Add `key' instead of
1320         `XCHARSET_NAME (value)' to return aliases.
1321
1322 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1323
1324         * mule-charset.c (Vcharacter_ideographic_radical_table): New
1325         variable.
1326         (Vcharacter_ideographic_strokes_table): New variable.
1327         (Qideographic_radical): New variable.
1328         (Qideographic_strokes): New variable.
1329         (Fchar_attribute_alist): Use
1330         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
1331         attribute; use `Vcharacter_ideographic_strokes_table' for
1332         `ideographic-strokes' attribute.
1333         (Fget_char_attribute): Likewise.
1334         (Fput_char_attribute): Likewise.
1335         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
1336         `ideographic-strokes'.
1337         (vars_of_mule_charset): Setup
1338         `Vcharacter_ideographic_radical_table' and
1339         `Vcharacter_ideographic_strokes_table'.
1340
1341 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1342
1343         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
1344         (Qtotal_strokes): New variable.
1345         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
1346         `total-strokes' attribute.
1347         (Fget_char_attribute): Likewise.
1348         (Fput_char_attribute): Likewise.
1349         (syms_of_mule_charset): Add new symbol `total-strokes'.
1350         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
1351
1352 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1353
1354         * mule-charset.c (Vcharacter_decomposition_table): New variable.
1355         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
1356         are found.
1357         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
1358         `->decomposition' attribute.
1359         (Fput_char_attribute): Likewise.
1360         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
1361
1362 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1363
1364         * mule-charset.c (decoding_table_check_elements): New function.
1365         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
1366
1367 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1368
1369         * mule-charset.c (Fset_charset_mapping_table): Use
1370         `put_char_ccs_code_point'.
1371
1372 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1373
1374         * mule-charset.c (decoding_table_put_char): New inline function.
1375         (put_char_ccs_code_point): Use `decoding_table_put_char'.
1376
1377 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1378
1379         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
1380         (XCHARSET_BYTE_SIZE): New macro.
1381         (decoding_table_remove_char): New inline function.
1382         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
1383         `decoding_table_remove_char'.
1384         (remove_char_ccs): Use `decoding_table_remove_char'.
1385         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
1386
1387 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1388
1389         * mule-charset.c (Vcharacter_name_table): New variable.
1390         (Qname): New variable.
1391         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
1392         attribute.
1393         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
1394         `Vcharacter_name_table' for `name' attribute.
1395         (Fremove_char_attribute): Use function `remove_char_ccs'.
1396         (put_char_ccs_code_point): New function.
1397         (remove_char_ccs): New function.
1398         (syms_of_mule_charset): Add new symbol `name'.
1399         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
1400
1401 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1402
1403         * mule-charset.c (make_byte_table): Add new argument `older'.
1404         (make_char_id_table): Likewise.
1405         (copy_char_id_table): Comment out because it is not used.
1406         (put_char_id_table): Modify for `make_byte_table'.
1407         (Fput_char_attribute): Make encoding_table as older object;
1408         inherit older bit of `Vcharacter_composition_table'.
1409         (mark_charset): Don't mark `cs->encoding_table'.
1410         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
1411         normal object; make `Vcharacter_composition_table' as an older
1412         object; delete staticpro for `Vcharacter_composition_table'; make
1413         `Vcharacter_variant_table' as a normal object.
1414
1415         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
1416         (mark_object): Don't check older object in UTF-2000.
1417
1418         * lrecord.h (struct lrecord_header): Add new member `older' in
1419         UTF-2000.
1420         (set_lheader_implementation): Setup `SLI_header->older' in
1421         UTF-2000.
1422         (set_lheader_older_implementation): New macro in UTF-2000.
1423         (OLDER_RECORD_P): New macro in UTF-2000.
1424         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
1425         (alloc_older_lcrecord): New prototype in UTF-2000.
1426         (alloc_older_lcrecord_type): New macro in UTF-2000.
1427
1428 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1429
1430         * mule-charset.c (byte_table_description): Use
1431         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
1432         (char_id_table_description): Delete bogus `, 1'.
1433         (Fget_char_attribute): Refer encoding_table of each coded-charset
1434         to get value of coded-charset attribute of a character.
1435         (Fput_char_attribute): Use `make_older_vector' instead of
1436         `make_vector'; use encoding_table of each coded-charset to store
1437         value of coded-charset attribute of a character.
1438         (Fremove_char_attribute): Use encoding_table of each coded-charset
1439         to store value of coded-charset attribute of a character.
1440         (mark_charset): Mark `cs->encoding_table'; don't mark
1441         `cs->decoding_table'.
1442         (charset_description): Add description of new member
1443         `encoding_table'.
1444         (make_charset): Initialize `encoding_table'.
1445
1446         * char-ucs.h (struct Lisp_Charset): Add new member
1447         `encoding_table'.
1448         (CHARSET_ENCODING_TABLE): New macro.
1449         (XCHARSET_ENCODING_TABLE): New macro.
1450         (charset_code_point): New implementation.
1451         (encode_char_1): Likewise.
1452
1453         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
1454         (disksave_object_finalization_1): Call finalizers of
1455         `all_older_lcrecords' in UTF-2000.
1456         (make_older_vector): New function in UTF-2000.
1457         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
1458         UTF-2000.
1459
1460         * lisp.h (make_older_vector): New prototype in UTF-2000.
1461
1462 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1463
1464         * lrecord.h (enum lrecord_type): Rename
1465         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
1466
1467         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
1468         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
1469         `get_char_code_table'.
1470
1471         * mule-charset.c (mark_char_id_table): Renamed from
1472         `mark_char_code_table'.
1473         (char_id_table_equal): Renamed from `char_code_table_equal'.
1474         (char_id_table_hash): Renamed from `char_code_table_hash'.
1475         (make_char_id_table): Renamed from `make_char_code_table'.
1476         (copy_char_id_table): Renamed from `copy_char_code_table'.
1477         (get_char_id_table): Renamed from `get_char_code_table'.
1478         (put_char_id_table): Renamed from `put_char_code_table'.
1479         (to_char_id): Renamed from `to_char_code'.
1480
1481         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
1482         `Lisp_Char_Code_Table'.
1483         (char_id_table): Renamed from `char_code_table'.
1484         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
1485         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
1486         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
1487         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
1488         (get_char_id_table): Renamed from `get_char_code_table'.
1489
1490 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1491
1492         * lrecord.h (enum lrecord_type): Rename
1493         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
1494
1495         * mule-charset.c (mark_byte_table): Renamed from
1496         `mark_char_byte_table'.
1497         (byte_table_equal): Renamed from `char_byte_table_equal'.
1498         (byte_table_hash): Renamed from `byte_table_hash'.
1499         (make_byte_table): Renamed from `make_byte_table'.
1500         (copy_byte_table): Renamed from `copy_char_byte_table'.
1501
1502         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
1503         `Lisp_Char_Byte_Table'.
1504         (byte_table): Renamed from `char_byte_table'.
1505         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
1506         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
1507         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
1508         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
1509
1510 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1511
1512         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
1513         (dfc_convert_to_internal_format): Likewise.
1514         
1515         * text-coding.c (Fcoding_system_canonical_name_p): New function.
1516         * text-coding.c (Fcoding_system_alias_p): New function.
1517         * text-coding.c (Fcoding_system_aliasee): New function.
1518         * text-coding.c (append_suffix_to_symbol): New function.
1519         * text-coding.c (dangling_coding_system_alias_p): New function.
1520         * text-coding.c (Ffind_coding_system):
1521         * text-coding.c (Fcopy_coding_system):
1522         * text-coding.c (encode_coding_no_conversion):
1523         * text-coding.c (syms_of_file_coding):
1524         * text-coding.c (vars_of_file_coding):
1525         Rewrite coding system alias code.
1526         Allow nested aliases, like symbolic links.
1527         Allow redefinition of coding system aliases.
1528         Prevent existence of dangling coding system aliases.
1529         Eliminate convert_to_external_format.
1530         Eliminate convert_to_internal_format.
1531         
1532         * text-coding.c: Change enum eol_type to eol_type_t.
1533
1534 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1535
1536         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
1537         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
1538
1539         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
1540         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
1541
1542 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1543
1544         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
1545         `ideograph-daikanwa'.
1546
1547         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
1548         (Vcharset_ucs_bmp): Likewise.
1549         (Vcharset_mojikyo): Add new extern variable definition.
1550         (Vcharset_latin_iso8859_2): Deleted because it is not used.
1551         (Vcharset_latin_iso8859_3): Likewise.
1552         (Vcharset_latin_iso8859_4): Likewise.
1553         (Vcharset_latin_iso8859_9): Likewise.
1554         (Vcharset_latin_viscii_lower): Likewise.
1555         (Vcharset_latin_viscii_upper): Likewise.
1556         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
1557         `mojikyo' code-point is used to decode.
1558         (encode_char_2): New function [to convert `mojikyo' code-point to
1559         Mojikyo font encoding].
1560         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
1561         (breakup_char_1): Likewise.
1562         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
1563
1564 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1565
1566         * text-coding.c (Fmake_coding_system): Add document about
1567         `disable-composition' property.
1568
1569 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1570
1571         * text-coding.c (Qdisable_composition): New variable; delete
1572         `Qcomposite'.
1573         (Fmake_coding_system): Add new property `disable-composite';
1574         delete property `composite'.
1575         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
1576         instead of `!CODING_SYSTEM_COMPOSITE'.
1577         (syms_of_file_coding): Add new symbol `disable-composition';
1578         delete symbol `composite'.
1579
1580         * file-coding.h (struct Lisp_Coding_System): Add
1581         `disable_composition'; delete `enable_composition'.
1582         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
1583         `CODING_SYSTEM_COMPOSITE'.
1584         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
1585         `XCODING_SYSTEM_COMPOSITE'.
1586
1587 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1588
1589         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1590         to 0.15.
1591
1592 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1593
1594         * text-coding.c (Qcomposite): New variable.
1595         (Fmake_coding_system): Add new property `composite'.
1596         (struct decoding_stream): Add `combined_char_count',
1597         `combined_chars' and `combining_table' in UTF-2000.
1598         (COMPOSE_FLUSH_CHARS): New macro.
1599         (COMPOSE_ADD_CHAR): New macro.
1600         (reset_decoding_stream): Reset `str->combined_char_count' and
1601         `str->combining_table' in UTF-2000.
1602         (decode_coding_iso2022): Modify for character-decomposition.
1603         (syms_of_file_coding): Add new symbol `composite'.
1604
1605 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1606
1607         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
1608         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
1609         of `Vcharacter_composition_table' if `->decomposition' property
1610         has only 1 element.
1611         (Qlatin_tcvn5712): New variable.
1612         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
1613         (complex_vars_of_mule_charset): Add new coded-charset
1614         `latin-tcvn5712'.
1615
1616         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
1617
1618 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1619
1620         * file-coding.h (struct Lisp_Coding_System): Add
1621         `enable_composition'.
1622         (CODING_SYSTEM_COMPOSITE): New macro.
1623         (XCODING_SYSTEM_COMPOSITE): New macro.
1624
1625 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
1626
1627         * mule-canna.c (c2mu): Fix problem with UTF-2000.
1628
1629 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
1630
1631         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
1632         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
1633
1634 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
1635
1636         * mule-charset.c (Vcharset_mojikyo): New variable.
1637         (Fdefine_char): Don't use coded-charset which does not have
1638         non-builtin character range to allocate character-id.
1639         (Qmojikyo): New variable.
1640         (syms_of_mule_charset): Add new symbol `mojikyo'.
1641         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
1642
1643         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
1644         (LEADING_BYTE_MOJIKYO): New macro.
1645         (MIN_CHAR_MOJIKYO): New macro.
1646         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
1647         (MAX_CHAR_MOJIKYO): New macro.
1648
1649 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
1650
1651         * mule-charset.c (remove_char_attribute): Fixed.
1652
1653 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
1654
1655         * mule-charset.c (remove_char_attribute): New function.
1656         (Fremove_char_attribute): New function.
1657         (encode_builtin_char_1): Comment out builtin-support for
1658         greek-iso8859-7 and cyrillic-iso8859-5.
1659         (Fdecode_char): Check `code' is an integer.
1660         (syms_of_mule_charset): Add `remove-char-attribute'.
1661         (MIN_CHAR_GREEK): Deleted.
1662         (MAX_CHAR_GREEK): Likewise.
1663         (MIN_CHAR_CYRILLIC): Likewise.
1664         (MAX_CHAR_CYRILLIC): Likewise.
1665         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
1666         MAX_CHAR_GREEK for `greek-iso8859-7'.
1667
1668         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
1669         (MAX_CHAR_GREEK): Likewise.
1670         (MIN_CHAR_CYRILLIC): Likewise.
1671         (MAX_CHAR_CYRILLIC): Likewise.
1672
1673 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
1674
1675         * mule-charset.c (Fdefine_char): Fix problem when new code-point
1676         format is used without `ucs' property.
1677         (Fdecode_char): Fix problem with GR representation.
1678         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
1679         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
1680
1681 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
1682
1683         * mule-charset.c (make_builtin_char): New function.
1684         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
1685         (Fset_charset_mapping_table): Modify for new representation of
1686         code-point.
1687         (Fdecode_char): New function.
1688         (syms_of_mule_charset): Add new builtin function `decode-char' in
1689         UTF-2000.
1690
1691         * char-ucs.h (make_builtin_char): New prototype.
1692         (DECODE_CHAR): New inline function.
1693         (MAKE_CHAR): Use `DECODE_CHAR'.
1694
1695 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
1696
1697         * text-coding.c (parse_charset_conversion_specs): Use
1698         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
1699         `XCHARSET_TYPE'.
1700         (iso2022_designate): Likewise.
1701
1702         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
1703         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
1704
1705         * mule-charset.c (Vcharset_ucs): New variable.
1706         (print_charset): Change design; use `CHARSET_CHARS' and
1707         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
1708         (make_charset): Change signature to specify `chars' and
1709         `dimension' instead of `type'.
1710         (range_charset_code_point): Modify for 256^n-set.
1711         (encode_builtin_char_1): Encode as `ucs' in default.
1712         (Fmake_charset): Modify for `make_charset'.
1713         (Fmake_reverse_direction_charset): Likewise.
1714         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
1715         UTF-2000.
1716         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
1717         for `make_charset'.
1718
1719         * char-ucs.h (Vcharset_ucs): New variable.
1720         (LEADING_BYTE_UCS): New macro.
1721         (struct Lisp_Charset): Delete `type'; change type of `dimension'
1722         and `chars' to `unsigned short' from `unsigned int'.
1723         (CHARSET_TYPE): Deleted.
1724         (XCHARSET_TYPE): Deleted.
1725
1726 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
1727
1728         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
1729
1730         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
1731         (ENCODE_CHAR): New macro.
1732
1733 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
1734
1735         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1736         to 0.14 (Kawachi-Katakami).
1737
1738 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
1739
1740         * text-coding.c (char_encode_shift_jis): Modify for
1741         `charset_code_point'.
1742         (char_encode_iso2022): Likewise.
1743
1744         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
1745         (integer) instead of list of <Lisp_Object>s (integers) as the
1746         format of code-point of a coded-charset.
1747         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
1748         (encode_builtin_char_1): New function; delete
1749         `split_builtin_char'.
1750         (charset_code_point): Return <int> instead of <Lisp_Object>.
1751         (Fsplit_char): Don't use `SPLIT_CHAR'.
1752
1753         * char-ucs.h (encode_builtin_char_1): New prototype; delete
1754         prototype for `split_builtin_char'.
1755         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
1756         (charset_code_point): Likewise.
1757         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
1758         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
1759
1760 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
1761
1762         * mule-charset.c (complex_vars_of_mule_charset): Don't define
1763         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
1764
1765 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
1766
1767         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
1768
1769         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
1770         (MAX_CHAR_OBS_94x94): Deleted.
1771
1772 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
1773
1774         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
1775
1776         * char-ucs.h (MAX_CHAR_BMP): New macro.
1777
1778 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
1779
1780         * text-coding.c: Sync with r21-2-24.
1781
1782 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
1783
1784         * file-coding.c: Modify for UTF-2000.
1785
1786 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
1787
1788         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1789         to 0.13 (Takaida).
1790
1791 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
1792
1793         * mule-charset.c (split_builtin_char): Delete builtin support for
1794         `katakana-jisx0201'.
1795         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
1796         BMP area in builtin representation.
1797
1798         * char-ucs.h (MAKE_CHAR): Delete builtin support for
1799         `Vcharset_katakana_jisx0201'.
1800
1801 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
1802
1803         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
1804         (Qisolated): New variable.
1805         (Qinitial): New variable.
1806         (Qmedial): New variable.
1807         (Qfinal): New variable.
1808         (Qvertical): New variable.
1809         (Qsmall): New variable.
1810         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
1811         `Qvertical' and `Qsmall'.
1812         (Qmojikyo_pj_[1 .. 21]): New variable.
1813         (syms_of_mule_charset): Add new symbols `isolated', `initial',
1814         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
1815         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
1816         .. 21]'.
1817
1818 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
1819
1820         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
1821         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
1822         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
1823
1824 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
1825
1826         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
1827         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
1828         BMP.
1829         (Qjapanese_jisx0208_1990): New variable.
1830         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
1831         (complex_vars_of_mule_charset): Add new coded-charset
1832         `japanese-jisx0208-1990'.
1833
1834         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
1835         (MIN_CHAR_JIS_X0208_1990): New macro.
1836         (MAX_CHAR_JIS_X0208_1990): New macro.
1837
1838 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1839
1840         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
1841         coded-charset is not found.
1842
1843 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1844
1845         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
1846         (Fdefine_char): Use `Fmake_char'.
1847
1848 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1849
1850         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
1851         (Vcharset_hiragana_jisx0208): Deleted.
1852         (Vcharset_katakana_jisx0208): Deleted.
1853         (Qideograph_daikanwa): New variable.
1854         (Qhiragana_jisx0208): Deleted.
1855         (Qkatakana_jisx0208): Deleted.
1856         (split_builtin_char): Split `ideograph-daikanwa'.
1857         (Fsplit_char): New implementation for UTF-2000.
1858         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
1859         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
1860         (complex_vars_of_mule_charset): Add new coded-charset
1861         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
1862         `katakana-jisx0208'.
1863
1864         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
1865         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
1866         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
1867         (MIN_CHAR_DAIKANWA): New macro.
1868         (MAX_CHAR_DAIKANWA): New macro.
1869
1870 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1871
1872         * data.c (Fstring_to_number): Don't recognize floating point if
1873         base is not 10.
1874
1875 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1876
1877         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
1878
1879 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1880
1881         * mule-charset.c (Qsquare): New variable.
1882         (to_char_code): Add `Qsquare'.
1883         (syms_of_mule_charset): Add new symbol `square'.
1884
1885 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1886
1887         * mule-charset.c (Qcircle): New variable.
1888         (to_char_code): Add `Qcircle'.
1889         (syms_of_mule_charset): Add new symbol `circle'.
1890
1891 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1892
1893         * mule-charset.c (Qfont): New variable.
1894         (to_char_code): Add `Qfont'.
1895         (syms_of_mule_charset): Add new symbol `font'.
1896
1897 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1898
1899         * mule-charset.c (Qsub): New variable.
1900         (to_char_code): Add `Qsub'.
1901         (syms_of_mule_charset): Add new symbol `sub'.
1902
1903 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1904
1905         * mule-charset.c (Fput_char_attribute): Convert each element of
1906         VALUE to GL position if ATTRIBUTE is a GR-set,
1907
1908 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1909
1910         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
1911         coded-charset is a GR-set.
1912
1913 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1914
1915         * mule-charset.c (Fput_char_attribute): Check each element of
1916         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
1917
1918 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1919
1920         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
1921         UTF-2000.
1922         (Qethiopic_ucs): New variable in UTF-2000.
1923         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
1924         (complex_vars_of_mule_charset): Add new coded-charset
1925         `ethiopic-ucs' in UTF-2000.
1926
1927         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
1928         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
1929         9)'.
1930         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
1931         10)'.
1932         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
1933
1934 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
1935
1936         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
1937         `ascii'.
1938
1939 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1940
1941         * mule-charset.c (Vcharacter_variant_table): New variable.
1942         (Q_ucs): New variable.
1943         (Fchar_variants): New function.
1944         (Fput_char_attribute): Register `->ucs' value to
1945         `Vcharacter_variant_table'.
1946         (syms_of_mule_charset): Add new function `char-variants' and new
1947         symbol `->ucs'.
1948         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
1949
1950 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1951
1952         * mule-charset.c (get_char_code_table): Allow negative character
1953         code.
1954         (put_char_code_table): Likewise.
1955         (Vcharacter_composition_table): New variable.
1956         (Q_decomposition): New variable.
1957         (Qwide): New variable.
1958         (Qnarrow): New variable.
1959         (Qcompat): New variable.
1960         (QnoBreak): New variable.
1961         (Qsuper): New variable.
1962         (Qfraction): New variable.
1963         (to_char_code): New function.
1964         (Fget_composite_char): New function.
1965         (Fput_char_attribute): Register `->decomposition' value to
1966         `Vcharacter_composition_table'.
1967         (syms_of_mule_charset): Add new function `get-composite-char', new
1968         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
1969         `super' and `fraction'.
1970         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
1971
1972 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1973
1974         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
1975         character; copy the return value.
1976
1977 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
1978
1979         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
1980
1981         * mule-charset.c (range_charset_code_point): Must use make_int.
1982         (split_builtin_char): New function.
1983
1984 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
1985
1986         * mule-charset.c (char_byte_table): Change name from
1987         "char-code-table" to "char-byte-table".
1988         (mark_char_code_table): New function.
1989         (char_code_table_equal): New function.
1990         (char_code_table_hash): New function.
1991         (char_code_table_description): New constant.
1992         (char_code_table): New type.
1993         (make_char_code_table): New function.
1994         (copy_char_code_table): New function.
1995         (get_char_code_table): Modify for `char_code_table' type.
1996         (put_char_code_table): Likewise.
1997         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
1998         (Kashiwara).
1999
2000         * char-ucs.h (char_code_table): New type.
2001         (XCHAR_CODE_TABLE): New macro.
2002         (XSETCHAR_CODE_TABLE): New macro.
2003         (CHAR_CODE_TABLE_P): New macro.
2004         (GC_CHAR_CODE_TABLE_P): New macro.
2005         (struct Lisp_Char_Code_Table): New structure.
2006
2007 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2008
2009         * mule-charset.c (Fmake_charset): Setup byte_offset for
2010         {94|96}^n-set.
2011
2012 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2013
2014         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
2015         character.
2016
2017 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2018
2019         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
2020         is found.
2021
2022 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2023
2024         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
2025         charset, it is regarded as a charset.
2026         (put_char_attribute): New function in UTF-2000.
2027         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
2028         charset, mapping-table of the charset is modified.
2029         (Fdefine_char): New function in UTF-2000.
2030         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
2031         `Fput_char_attribute'.
2032         (syms_of_mule_charset): Add new function `define-char' and new
2033         symbol `ucs' in UTF-2000.
2034         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
2035
2036 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2037
2038         * mule-charset.c (Fcharset_name): Define `byte_offset' in
2039         non-UTF-2000 configuration.
2040
2041 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2042
2043         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
2044         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
2045
2046         * mule-charset.c (mark_charset): `cs->encoding_table' has been
2047         deleted.
2048         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
2049         (Fset_charset_mapping_table): Likewise.
2050
2051         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
2052         (CHARSET_ENCODING_TABLE): Delete.
2053         (XCHARSET_ENCODING_TABLE): Delete.
2054         (charset_code_point): New interface.
2055
2056 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2057
2058         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
2059         instead of `charset_get_byte1' and `charset_get_byte2'.
2060
2061         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
2062         (charset_get_byte2): Deleted.
2063
2064 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2065
2066         * char-ucs.h (SPLIT_CHAR): New inline function.
2067         (breakup_char_1): Use `SPLIT_CHAR'.
2068
2069         * mule-charset.c (range_charset_code_point): New function.
2070         (charset_code_point): New function.
2071
2072         * char-ucs.h (range_charset_code_point): New interface.
2073         (breakup_char_1): Use `range_charset_code_point'.
2074
2075 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2076
2077         * mule-charset.c (Fmake_charset): Delete unused local variable
2078         `code_offset'.
2079
2080         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
2081         (breakup_char_1): Find a charset and code-point in
2082         `Vcharacter_attribute_table'.
2083
2084 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2085
2086         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2087         to 0.10 (Yao).
2088
2089 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
2090
2091         * mule-charset.c (Vcharacter_attribute_table): New variable.
2092         (Fchar_attribute_alist): New function.
2093         (Fget_char_attribute): New function.
2094         (Fput_char_attribute): New function.
2095         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
2096         too.
2097         (syms_of_mule_charset): Add new function `char-attribute-alist',
2098         `get-char-attribute' and `put-char-attribute'.
2099         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
2100
2101 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
2102
2103         * mule-charset.c (Fmake_charset): Just use
2104         `get_unallocated_leading_byte'.
2105
2106         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
2107         sets; don't use final-byte based number for private sets.
2108
2109 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2110
2111         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
2112         integer.
2113
2114 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2115
2116         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2117         to 0.9.
2118
2119 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2120
2121         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
2122         of `CHAR_LEADING_BYTE' in UTF-2000.
2123
2124         * insdel.c (find_charsets_in_bufbyte_string): Use
2125         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2126         (find_charsets_in_emchar_string): Likewise.
2127
2128         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
2129         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2130
2131         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
2132         (CHAR_CHARSET_ID): New macro.
2133
2134 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2135
2136         * chartab.c (get_char_table): Don't use type `Charset_ID' for
2137         charset-id - MIN_LEADING_BYTE.
2138         (put_char_table): Likewise.
2139
2140 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2141
2142         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
2143         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
2144         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
2145         (CHARSET_ID_OFFSET): New macro.
2146         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
2147         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
2148         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
2149         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2150         4).
2151         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2152         5).
2153         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
2154         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
2155         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
2156         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
2157         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
2158
2159 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2160
2161         * mule-charset.c (next_allocated_leading_byte): New variable in
2162         UTF-2000.
2163         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
2164         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
2165         (get_unallocated_leading_byte): Simply use
2166         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
2167         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
2168         UTF-2000.
2169
2170         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
2171         (MAX_LEADING_BYTE_PRIVATE): New macro.
2172         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
2173         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
2174
2175 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2176
2177         * mule-charset.c (Fmake_charset): Allocate final-byte based
2178         charset-id for 94-set, 96-set and 94x94-set.
2179
2180 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2181
2182         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
2183         ambiguous `else'.
2184         (Fmake_charset): Likewise.
2185         (complex_vars_of_mule_charset): Modify the font registry of
2186         `ucs-bmp' not to match `Ethiopic-Unicode'.
2187
2188 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2189
2190         * mule-charset.c (complex_vars_of_mule_charset): Add font
2191         registory of `ucs-bmp'.
2192
2193 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2194
2195         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
2196         coded-charsets in `default-coded-charset-priority-list' when
2197         breaking up a character.
2198
2199         * mule-charset.c (Vcharset_latin_viscii): New variable.
2200         (Qlatin_viscii): New variable.
2201         (make_charset): Don't use `decoding_table'.
2202         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
2203         byte_offset.
2204         (Fset_charset_mapping_table): New implementation.
2205         (syms_of_mule_charset): Add new symbol `latin-viscii'.
2206         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
2207         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
2208         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
2209         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
2210         charset `latin_viscii'.
2211
2212         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
2213         (CHARSET_TYPE_94X94): Change to 1 from 2.
2214         (CHARSET_TYPE_96): Change to 2 from 1.
2215         (CHARSET_TYPE_128): New macro.
2216         (CHARSET_TYPE_128X128): Change to 5 from 4.
2217         (CHARSET_TYPE_256): New macro.
2218         (CHARSET_TYPE_256X256): Change to 7 from 5.
2219         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
2220
2221 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2222
2223         * text-coding.c (char_encode_shift_jis): Refer
2224         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
2225         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
2226
2227         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
2228         (char_byte_table_equal): New function in UTF-2000.
2229         (char_byte_table_hash): New function in UTF-2000.
2230         (char_byte_table_description): New constant in UTF-2000.
2231         (char_byte_table): New type in UTF-2000.
2232         (make_char_byte_table): New function in UTF-2000.
2233         (copy_char_byte_table): New function in UTF-2000.
2234         (make_char_code_table): New macro in UTF-2000.
2235         (get_char_code_table): New function in UTF-2000.
2236         (put_char_code_table): New function in UTF-2000.
2237         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2238         (charset_description): Add setting in UTF-2000.
2239         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
2240         `CHARSET_TO_BYTE1_TABLE(cs)'.
2241         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
2242         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
2243         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
2244         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
2245         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
2246         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
2247         `CHARSET_TO_BYTE2_TABLE(cs)'.
2248
2249         * char-ucs.h (char_byte_table): New type.
2250         (XCHAR_BYTE_TABLE): New macro.
2251         (XSETCHAR_BYTE_TABLE): New macro.
2252         (CHAR_BYTE_TABLE_P): New macro.
2253         (GC_CHAR_BYTE_TABLE_P): New macro.
2254         (struct Lisp_Char_Byte_Table): New structure.
2255         (get_char_code_table): New interface.
2256         (Emchar_to_byte_table): Deleted.
2257         (get_byte_from_character_table): Deleted.
2258         (struct Lisp_Charset): Add `encoding_table'; delete
2259         `to_byte1_table' and `to_byte2_table'.
2260         (CHARSET_ENCODING_TABLE): New macro.
2261         (CHARSET_TO_BYTE1_TABLE): Deleted.
2262         (CHARSET_TO_BYTE2_TABLE): Deleted.
2263         (XCHARSET_ENCODING_TABLE): New macro.
2264         (XCHARSET_TO_BYTE1_TABLE): Deleted.
2265         (XCHARSET_TO_BYTE2_TABLE): Deleted.
2266
2267 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2268
2269         * mule-charset.c (syms_of_mule_charset): Delete charset alias
2270         `vietnamese-viscii-*'.
2271
2272 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2273
2274         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
2275         (Qvietnamese_viscii_upper): New variable.
2276         (Fdefine_charset_alias): New function.
2277         (syms_of_mule_charset): Add new function `define-charset-alias'.
2278         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
2279         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
2280         `latin-viscii-*'.
2281
2282 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
2283
2284         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
2285         (MAX_CHAR_OBS_94x94): New macro.
2286         (breakup_char_1): Support obsolete XEmacs-UCS private code space
2287         for 94x94 sets.
2288
2289         * mule-charset.c (put_byte_from_character_table): Change unit size
2290         from 128 to 256.
2291         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
2292         not defined.
2293         (Fmake_reverse_direction_charset): Modify dummy argument of
2294         `make_charset' for non-UTF-2000 environment.
2295
2296 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2297
2298         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
2299
2300         * mule-charset.c (destroy_byte_from_character_table): New macro.
2301         (latin_jisx0201_to_ucs): Deleted.
2302         (latin_iso8859_2_to_ucs): Deleted.
2303         (latin_iso8859_3_to_ucs): Deleted.
2304         (latin_iso8859_4_to_ucs): Deleted.
2305         (latin_iso8859_9_to_ucs): Deleted.
2306         (latin_viscii_lower_to_ucs): Deleted.
2307         (latin_viscii_upper_to_ucs): Deleted.
2308         (mark_charset): Mark `cs->decoding_table'.
2309         (Fcharset_mapping_table): Fix DOC-string.
2310         (Fset_charset_mapping_table): New function.
2311         (syms_of_mule_charset): Add nwe function
2312         `set-charset-mapping-table'.
2313         (complex_vars_of_mule_charset): Don't setup and use
2314         `latin_*_to_ucs'.
2315
2316 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2317
2318         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
2319         charset.
2320
2321 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2322
2323         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
2324         (Vcharset_katakana_jisx0208): New variable.
2325         (Qhiragana_jisx0208): New variable.
2326         (Qkatakana_jisx0208): New variable.
2327         (make_charset): Add new argument `byte_offset'.
2328         (charset_get_byte1): Modify for new coded-charset definition; use
2329         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
2330         `XCHARSET_BYTE_OFFSET'.
2331         (Fmake_charset): Modify for `make_charset'.
2332         (Fmake_reverse_direction_charset): Likewise.
2333         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
2334         `katakana-jisx0208'.
2335         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
2336         `.'  in font registry of charset `katakana-jisx0201',
2337         `latin-jisx0201', `vietnamese-viscii-lower' and
2338         `vietnamese-viscii-upper'; modify DOC-string of charset
2339         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
2340         registry of charset `japanese-jisx0208' not to use font for JIS
2341         X0208:1990; add new charset `hiragana-jisx0208' and
2342         `katakana-jisx0208'.
2343
2344         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
2345         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
2346         (struct Lisp_Charset): Add `byte_offset'.
2347         (CHARSET_BYTE_OFFSET): New macro.
2348         (XCHARSET_UCS_MIN): New macro.
2349         (XCHARSET_UCS_MAX): New macro.
2350         (XCHARSET_CODE_OFFSET): New macro.
2351         (XCHARSET_BYTE_OFFSET): New macro.
2352         (MIN_CHAR_HIRAGANA): New macro.
2353         (MAX_CHAR_HIRAGANA): New macro.
2354         (MIN_CHAR_KATAKANA): New macro.
2355         (MAX_CHAR_KATAKANA): New macro.
2356         (MAKE_CHAR): Modify for new coded-charset definition; use
2357         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
2358         `XCHARSET_BYTE_OFFSET'.
2359
2360 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2361
2362         * mule-charset.c (CHAR96): Deleted.
2363         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
2364         <Lisp_Object>.
2365         (latin_iso8859_2_to_ucs): Likewise.
2366         (latin_iso8859_3_to_ucs): Likewise.
2367         (latin_iso8859_4_to_ucs): Likewise.
2368         (latin_iso8859_9_to_ucs): Likewise.
2369         (latin_viscii_lower_to_ucs): Likewise.
2370         (latin_viscii_upper_to_ucs): Likewise.
2371         (latin_tcvn5712_to_ucs): Commented out.
2372         (make_charset): Change type of argument `decoding_table' from
2373         <Emchar*> to <Lisp_Object> [vector of characters].
2374         (Fmake_charset): Modify for `make_charset'.
2375         (Fmake_reverse_direction_charset): Likewise.
2376         (Fcharset_mapping_table): New function in UTF-2000.
2377         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
2378         UTF-2000.
2379         (complex_vars_of_mule_charset): Modify for type change of
2380         `*_to_ucs'; modify for `make_charset'.
2381
2382         * char-ucs.h (struct Lisp_Charset): Change type of
2383         `decoding_table' from <Emchar*> to <Lisp_Object>.
2384         (MAKE_CHAR): Modify for new specification of `decoding_table'.
2385
2386 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
2387
2388         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
2389         error with non-UTF-2000-Mule.
2390
2391 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
2392
2393         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
2394         in lisp again].
2395         (Vcharset_chinese_cns11643_4): Likewise.
2396         (Vcharset_chinese_cns11643_5): Likewise.
2397         (Vcharset_chinese_cns11643_6): Likewise.
2398         (Vcharset_chinese_cns11643_7): Likewise.
2399         (Qchinese_cns11643_3): Likewise.
2400         (Qchinese_cns11643_4): Likewise.
2401         (Qchinese_cns11643_5): Likewise.
2402         (Qchinese_cns11643_6): Likewise.
2403         (Qchinese_cns11643_7): Likewise.
2404         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
2405         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
2406         and `chinese-cns11643-7' to lisp/mule/chinese.el.
2407         (complex_vars_of_mule_charset): Likewise.
2408
2409 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2410
2411         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
2412         96-set.
2413         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
2414         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
2415
2416 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
2417
2418         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
2419         0xFF60.
2420         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
2421         (breakup_char_1): Likewise.
2422
2423         * text-coding.c (char_encode_iso2022): Keep designated charsets if
2424         one of them includes the specified character.
2425
2426 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
2427
2428         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
2429
2430 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
2431
2432         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
2433
2434 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
2435
2436         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
2437         definition for non-UTF-2000 Mule.
2438         (latin_iso8859_3_to_ucs): Likewise.
2439         (latin_iso8859_4_to_ucs): Likewise.
2440         (latin_iso8859_9_to_ucs): Likewise.
2441         (latin_jisx0201_to_ucs): Likewise.
2442         (MIN_CHAR_THAI): Likewise.
2443         (MAX_CHAR_THAI): Likewise.
2444         (MIN_CHAR_GREEK): Likewise.
2445         (MAX_CHAR_GREEK): Likewise.
2446         (MIN_CHAR_HEBREW): Likewise.
2447         (MAX_CHAR_HEBREW): Likewise.
2448         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
2449         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
2450         (MIN_CHAR_CYRILLIC): Likewise.
2451         (MAX_CHAR_CYRILLIC): Likewise.
2452
2453 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
2454
2455         * char-ucs.h (breakup_char_1): Use
2456         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
2457         thai-tis620 and katakana-jisx0201 area.
2458
2459 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2460
2461         * char-ucs.h (breakup_char_1): Use
2462         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
2463         area.
2464
2465         * text-coding.c (reset_encoding_stream): Fixed.
2466         (char_encode_ucs4): Delete `& 255'.
2467
2468         * char-ucs.h (breakup_char_1): Use
2469         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
2470
2471 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2472
2473         * file-coding.c (Fmake_coding_system): Don't set up
2474         `codesys->fixed.size'.
2475         (encode_coding_no_conversion): Don't refer
2476         `str->codesys->fixed.size'.
2477
2478 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2479
2480         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
2481         (latin_a_char_to_byte1): Deleted.
2482         (latin_a_char_to_byte2): Deleted.
2483
2484 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2485
2486         * mule-charset.c (make_charset): Add new argument `ucs_min',
2487         `ucs_max' and `code_offset'.
2488         (charset_get_byte1): New implementation [delete specific charset
2489         depended implementations].
2490         (Fmake_charset): Modify for `make_charset'.
2491         (Fmake_reverse_direction_charset): Likewise.
2492         (complex_vars_of_mule_charset): Likewise.
2493
2494         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
2495         `code_offset'.
2496         (CHARSET_UCS_MIN): New macro.
2497         (CHARSET_UCS_MAX): New macro.
2498         (CHARSET_CODE_OFFSET): New macro.
2499         (MAKE_CHAR): Delete charset depended definitions [except
2500         katakana-jisx0201].
2501
2502 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
2503
2504         * char-ucs.h (breakup_char_1): Use
2505         `Vdefault_coded_charset_priority_list' for C0-Controls,
2506         Basic-Latin, C1-Controls and Latin-1-Supplement area.
2507
2508 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2509
2510         * char-ucs.h (charset_get_byte1): New function.
2511         (XCHARSET_GET_BYTE1): Deleted.
2512         (charset_get_byte2): New function.
2513         (XCHARSET_GET_BYTE2): Deleted.
2514         (Vdefault_coded_charset_priority_list): New external variable.
2515         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
2516         `Vdefault_preferred_coded_charset_list'.
2517
2518         * mule-charset.c (charset_get_byte1): New function.
2519         (charset_get_byte2): New function.
2520         (Vdefault_coded_charset_priority_list): New variable.
2521         (vars_of_mule_charset): Add new variable
2522         `default-coded-charset-priority-list'.
2523
2524 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2525
2526         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
2527         (XCHARSET_GET_BYTE2): New inline function.
2528         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
2529         `XCHARSET_GET_BYTE2'.
2530
2531 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2532
2533         * mule-charset.c (make_charset): Initialize
2534         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
2535         NULL if table is not defined.
2536
2537 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2538
2539         * text-coding.c (char_encode_shift_jis): Use
2540         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
2541         `ucs_to_latin_jisx0201'.
2542
2543         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
2544         (ucs_to_latin_iso8859_2): Deleted.
2545         (ucs_to_latin_iso8859_3): Deleted.
2546         (ucs_to_latin_iso8859_4): Deleted.
2547         (ucs_to_latin_iso8859_9): Deleted.
2548         (ucs_to_latin_viscii_lower): Deleted.
2549         (ucs_to_latin_viscii_upper): Deleted.
2550         (ucs_to_latin_tcvn5712): Deleted.
2551         (make_charset): Add new argument `decoding_table'; set up
2552         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
2553         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
2554         `decoding_table' is defined in UTF-2000.
2555         (Fmake_charset): Modify for `make_charset'.
2556         (Fmake_reverse_direction_charset): Likewise.
2557         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
2558         and `GENERATE_96_SET'.
2559
2560         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
2561         (ucs_to_latin_jisx0201): Deleted.
2562         (latin_iso8859_2_to_ucs): Deleted.
2563         (ucs_to_latin_iso8859_2): Deleted.
2564         (latin_iso8859_3_to_ucs): Deleted.
2565         (ucs_to_latin_iso8859_3): Deleted.
2566         (latin_iso8859_4_to_ucs): Deleted.
2567         (ucs_to_latin_iso8859_4): Deleted.
2568         (latin_iso8859_9_to_ucs): Deleted.
2569         (ucs_to_latin_iso8859_9): Deleted.
2570         (latin_viscii_lower_to_ucs): Deleted.
2571         (ucs_to_latin_viscii_lower): Deleted.
2572         (latin_viscii_upper_to_ucs): Deleted.
2573         (ucs_to_latin_viscii_upper): Deleted.
2574         (struct Lisp_Charset): Renamed `encoding_table' to
2575         `to_byte1_table'; add `to_byte2_table'.
2576         (CHARSET_DECODING_TABLE): New macro.
2577         (CHARSET_TO_BYTE1_TABLE): New macro.
2578         (CHARSET_TO_BYTE2_TABLE): New macro.
2579         (XCHARSET_DECODING_TABLE): New macro.
2580         (XCHARSET_TO_BYTE1_TABLE): New macro.
2581         (XCHARSET_TO_BYTE2_TABLE): New macro.
2582         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
2583         tables.
2584         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
2585         don't use `ucs_to_*' tables.
2586
2587 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2588
2589         * text-coding.c (Fmake_coding_system): Don't set up
2590         `codesys->fixed.size'.
2591         (encode_coding_no_conversion): Use `if' instead of `switch'.
2592
2593         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
2594
2595 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2596
2597         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
2598         (Fmake_charset): Modify for `make_charset'.
2599         (Fmake_reverse_direction_charset): Likewise.
2600         (complex_vars_of_mule_charset): Likewise.
2601
2602 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2603
2604         * text-coding.c (char_encode_shift_jis): Use table
2605         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
2606
2607 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2608
2609         * text-coding.c (text_encode_generic): Use `if' instead of
2610         `switch'.
2611         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
2612         decode JIS-Latin.
2613
2614 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2615
2616         * text-coding.c (encode_coding_sjis): Deleted.
2617         (char_encode_shift_jis): New function.
2618         (char_finish_shift_jis): New function.
2619         (reset_encoding_stream): Set up `encode_char' and `finish' for
2620         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
2621         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
2622         (char_encode_utf8): Treat `eol_type'.
2623
2624 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2625
2626         * file-coding.c (decode_coding_iso2022): Use
2627         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
2628
2629 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2630
2631         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2632         to 0.7 (Hirano).
2633
2634 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2635
2636         * char-lb.h (CHAR_COLUMNS): New macro.
2637
2638 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2639
2640         * text-coding.c (char_encode_ucs4): New function.
2641         (char_finish_ucs4): New function.
2642         (encode_coding_ucs4): Deleted.
2643         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
2644         (text_encode_generic): Delete local variable `charset' and `half'.
2645         (ucs_to_mule_table): Deleted.
2646         (mule_to_ucs_table): Deleted.
2647         (Fset_ucs_char): Deleted.
2648         (ucs_to_char): Deleted.
2649         (Fucs_char): Deleted.
2650         (Fset_char_ucs): Deleted.
2651         (Fchar_ucs): Deleted.
2652         (decode_ucs4): Deleted.
2653         (mule_char_to_ucs4): Deleted.
2654         (encode_ucs4): Deleted.
2655         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
2656         (decode_coding_utf8): Likewise.
2657         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
2658         (char_encode_iso2022): Fixed.
2659         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
2660         `Fset_char_ucs' and `Fchar_ucs'.
2661         (complex_vars_of_file_coding): Don't initialize
2662         `ucs_to_mule_table'.
2663
2664         * objects-tty.c (tty_initialize_font_instance): Don't use
2665         `XCHARSET_COLUMNS'.
2666
2667         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
2668         UTF-2000.
2669
2670         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
2671         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
2672
2673         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
2674         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
2675         (emchar_string_displayed_columns): Likewise.
2676
2677         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
2678         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
2679         (string_column_at_point): Likewise.
2680         (Fmove_to_column): Likewise.
2681
2682         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
2683         `encoding_table' and `decoding_table'.
2684         (CHARSET_REP_BYTES): Deleted.
2685         (XCHARSET_REP_BYTES): Deleted.
2686         (XCHARSET_COLUMNS): Deleted.
2687         (CHAR_COLUMNS): New macro.
2688         (lookup_composite_char): Deleted unconditionally.
2689         (composite_char_string): Likewise.
2690
2691 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2692
2693         * char-ucs.h (Emchar_to_byte_table): New type.
2694         (get_byte_from_character_table): New function interface.
2695         (Vcharset_latin_jisx0201): New variable.
2696         (latin_jisx0201_to_ucs): New variable.
2697         (ucs_to_latin_jisx0201): New variable.
2698         (Vcharset_latin_iso8859_2): New variable.
2699         (latin_iso8859_2_to_ucs): New variable.
2700         (ucs_to_latin_iso8859_2): New variable.
2701         (Vcharset_latin_iso8859_3): New variable.
2702         (latin_iso8859_3_to_ucs): New variable.
2703         (ucs_to_latin_iso8859_3): New variable.
2704         (Vcharset_latin_iso8859_4): New variable.
2705         (latin_iso8859_4_to_ucs): New variable.
2706         (ucs_to_latin_iso8859_4): New variable.
2707         (Vcharset_latin_iso8859_9): New variable.
2708         (latin_iso8859_9_to_ucs): New variable.
2709         (ucs_to_latin_iso8859_9): New variable.
2710         (Vcharset_latin_viscii_lower): New variable.
2711         (latin_viscii_lower_to_ucs): New variable.
2712         (ucs_to_latin_viscii_lower): New variable.
2713         (Vcharset_latin_viscii_upper): New variable.
2714         (latin_viscii_upper_to_ucs): New variable.
2715         (ucs_to_latin_viscii_upper): New variable.
2716         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
2717         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
2718         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
2719         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
2720         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
2721         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
2722         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
2723         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
2724         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
2725         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
2726
2727         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
2728         (Vcharset_latin_viscii_upper): New variable.
2729         (make_byte_from_character_table): New function.
2730         (put_byte_from_character_table): New function.
2731         (get_byte_from_character_table): New function.
2732         (CHAR96): New macro.
2733         (ucs_to_latin_jisx0201): New variable.
2734         (latin_jisx0201_to_ucs): New variable.
2735         (ucs_to_latin_iso8859_2): New variable.
2736         (latin_iso8859_2_to_ucs): New variable.
2737         (ucs_to_latin_iso8859_3): New variable.
2738         (latin_iso8859_3_to_ucs): New variable.
2739         (ucs_to_latin_iso8859_4): New variable.
2740         (latin_iso8859_4_to_ucs): New variable.
2741         (ucs_to_latin_iso8859_9): New variable.
2742         (latin_iso8859_9_to_ucs): New variable.
2743         (ucs_to_latin_viscii_lower): New variable.
2744         (latin_viscii_lower_to_ucs): New variable.
2745         (ucs_to_latin_viscii_upper): New variable.
2746         (latin_viscii_upper_to_ucs): New variable.
2747         (ucs_to_latin_tcvn5712): New variable.
2748         (latin_tcvn5712_to_ucs): New variable.
2749         (Qlatin_viscii_lower): New variable.
2750         (Qlatin_viscii_upper): New variable.
2751         (syms_of_mule_charset): Set up new symbol
2752         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
2753         (complex_vars_of_mule_charset): Set up new charset
2754         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
2755         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
2756         `ucs_to_<CHARSET>' tables.
2757
2758 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
2759
2760         * text-coding.c: New file.
2761
2762 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2763
2764         * mule-charset.c (Fmake_char): Fix problem of 256-set.
2765
2766         * char-ucs.h (Vcharset_ucs_bmp): New variable.
2767         (MAKE_CHAR): Modify for `ucs-bmp'.
2768         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
2769         non-MULE characters of BMP.
2770
2771 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
2772
2773         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2774         to 0.6.
2775
2776 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2777
2778         * lstream.h:
2779         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
2780         - Include character.h for `CHAR_ASCII_P'.
2781
2782         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
2783
2784         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
2785         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
2786
2787         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
2788         (BYTE_C0_P): Likewise.
2789         (BYTE_C1_P): Likewise.
2790         (Lstream_get_emchar_1): Likewise.
2791         (Lstream_fput_emchar): Likewise.
2792         (Lstream_funget_emchar): Likewise.
2793         (copy_internal_to_external): Likewise.
2794         (copy_external_to_internal): Likewise.
2795
2796         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
2797         (BYTE_C0_P): Likewise.
2798         (BYTE_C1_P): Likewise.
2799         (Lstream_get_emchar_1): Likewise.
2800         (Lstream_fput_emchar): Likewise.
2801         (Lstream_funget_emchar): Likewise.
2802         (copy_internal_to_external): Likewise.
2803         (copy_external_to_internal): Likewise.
2804
2805         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
2806         (REP_BYTES_BY_FIRST_BYTE): Likewise.
2807
2808         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
2809         (BYTE_ASCII_P): Moved to mb-1byte.h.
2810
2811 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2812
2813         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
2814
2815         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
2816         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
2817         (VALID_CHARPTR_P): Moved to mb-*byte.h.
2818         (VALIDATE_CHARPTR_BACKWARD): Likewise.
2819         (VALIDATE_CHARPTR_FORWARD): Likewise.
2820         (simple_charptr_emchar): Moved to mb-multibyte.h.
2821         (simple_set_charptr_emchar): Likewise.
2822         (simple_charptr_copy_char): Likewise.
2823         (non_ascii_charptr_emchar): Likewise.
2824         (non_ascii_set_charptr_emchar): Likewise.
2825         (non_ascii_charptr_copy_char): Likewise.
2826         (charptr_emchar): Moved to mb-*byte.h.
2827         (set_charptr_emchar): Likewise.
2828         (charptr_copy_char): Likewise.
2829
2830         * mb-1byte.h, mb-multibyte.h: New files.
2831
2832 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2833
2834         * mb-utf-8.h (MULTIBYTE): New macro.
2835         (MAX_EMCHAR_LEN): Moved from buffer.h.
2836         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
2837
2838         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
2839
2840         * mb-lb.h, multibyte.h: New files.
2841
2842         * char-1byte.h (Charset_ID): Moved from buffer.h.
2843         (MIN_LEADING_BYTE): Likewise.
2844         (LEADING_BYTE_ASCII): Likewise.
2845         (NUM_LEADING_BYTES): Likewise.
2846         (CHARSETP): Likewise.
2847         (CHARSET_BY_LEADING_BYTE): Likewise.
2848         (XCHARSET_LEADING_BYTE): Likewise.
2849         (XCHARSET_GRAPHIC): Likewise.
2850         (XCHARSET_COLUMNS): Likewise.
2851         (XCHARSET_DIMENSION): Likewise.
2852         (CHAR_CHARSET): Likewise.
2853         (CHAR_LEADING_BYTE): Likewise.
2854         (BREAKUP_CHAR): Likewise.
2855         (Vcharset_ascii): Likewise.
2856
2857         * buffer.h: Include multibyte.h unconditionally.
2858         (VALID_CHARPTR_P): Moved to multibyte.h.
2859         (ASSERT_VALID_CHARPTR): Likewise.
2860         (REAL_INC_CHARPTR): Likewise.
2861         (REAL_INC_CHARBYTIND): Likewise.
2862         (REAL_DEC_CHARPTR): Likewise.
2863         (INC_CHARPTR): Likewise.
2864         (INC_CHARBYTIND): Likewise.
2865         (DEC_CHARPTR): Likewise.
2866         (VALIDATE_CHARPTR_BACKWARD): Likewise.
2867         (VALIDATE_CHARPTR_FORWARD): Likewise.
2868         (charptr_n_addr): Likewise.
2869         (MAX_EMCHAR_LEN): Moved to mb-*.h.
2870         (simple_charptr_emchar): Moved to multibyte.h.
2871         (simple_set_charptr_emchar): Likewise.
2872         (simple_charptr_copy_char): Likewise.
2873         (non_ascii_charptr_emchar): Likewise.
2874         (non_ascii_set_charptr_emchar): Likewise.
2875         (non_ascii_charptr_copy_char): Likewise.
2876         (charptr_emchar): Likewise.
2877         (set_charptr_emchar): Likewise.
2878         (charptr_copy_char): Likewise.
2879         (charptr_emchar_n): Likewise.
2880         (Charset_ID): Moved to char-1byte.h.
2881         (Vcharset_ascii): Likewise.
2882         (CHAR_CHARSET): Likewise.
2883         (CHAR_LEADING_BYTE): Likewise.
2884         (LEADING_BYTE_ASCII): Likewise.
2885         (NUM_LEADING_BYTES): Likewise.
2886         (MIN_LEADING_BYTE): Likewise.
2887         (CHARSETP): Likewise.
2888         (CHARSET_BY_LEADING_BYTE): Likewise.
2889         (XCHARSET_LEADING_BYTE): Likewise.
2890         (XCHARSET_GRAPHIC): Likewise.
2891         (XCHARSET_COLUMNS): Likewise.
2892         (XCHARSET_DIMENSION): Likewise.
2893         (BREAKUP_CHAR): Likewise.
2894
2895 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2896
2897         * character.h: Add document about interface for characters.
2898
2899         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
2900         (MAKE_CHAR): Delete comment about
2901         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
2902         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
2903         (BREAKUP_CHAR): Modify name of arguments.
2904         (CHAR_CHARSET): Modify name of argument.
2905
2906         * buffer.h: Delete document about Emchar accessors.
2907
2908 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2909
2910         * character.h (CHAR_INTP): Moved from buffer.h
2911         (CHAR_OR_CHAR_INTP): Likewise.
2912         (XCHAR_OR_CHAR_INT): Likewise.
2913         (CHECK_CHAR_COERCE_INT): Likewise.
2914
2915         * buffer.h (CHAR_INTP): Moved to character.h
2916         (CHAR_OR_CHAR_INTP): Likewise.
2917         (XCHAR_OR_CHAR_INT): Likewise.
2918         (CHECK_CHAR_COERCE_INT): Likewise.
2919
2920 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2921
2922         * character.h:
2923         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
2924         - Include char-1byte.h, char-lb.h or char-ucs.h.
2925
2926         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
2927
2928         * buffer.h: Include character unconditionally.
2929         (valid_char_p): Moved to char-*.h.
2930         (non_ascii_valid_char_p): Moved to char-lb.h.
2931
2932         * char-1byte.h, char-lb.h, char-ucs.h: New files.
2933
2934 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2935
2936         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
2937         in UTF-2000 because it is not ported yet and not to use
2938         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
2939         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
2940         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
2941
2942         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
2943         (CHAR_ASCII_P): Moved from character.h.
2944
2945         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
2946         (CHAR_ASCII_P): Likewise.
2947         (CHAR_FIELD1_MASK): Deleted.
2948         (CHAR_FIELD2_MASK): Deleted.
2949         (CHAR_FIELD3_MASK): Deleted.
2950         (MAX_CHAR_BASIC_LATIN): New macro.
2951         (CHAR_FIELD1): Deleted.
2952         (CHAR_FIELD2_INTERNAL): Deleted.
2953         (CHAR_FIELD3_INTERNAL): Deleted.
2954         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
2955         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
2956         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
2957         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
2958         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
2959         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
2960         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
2961         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
2962         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
2963         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
2964         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
2965         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
2966         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
2967         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
2968         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
2969         (MIN_CHAR_COMPOSITION): Deleted.
2970         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
2971         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
2972
2973 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
2974
2975         * buffer.h: Include mb-utf-8.h in UTF-2000.
2976
2977         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
2978
2979         * mb-utf-8.h: New file.
2980
2981 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
2982
2983         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
2984         instead of `int'.
2985
2986         * mule-charset.h, buffer.h (Charset_ID): New type.
2987
2988 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
2989
2990         * mule-canna.c (c2mu): Use `MAKE_CHAR',
2991         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
2992         instead of `MULE_CHAR_PRIVATE_OFFSET',
2993         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
2994         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
2995         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
2996
2997         * character.h (Vcharset_japanese_jisx0212): New variable
2998         definition.
2999
3000 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
3001
3002         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
3003         (charset_by_attributes): Delete array about direction.
3004         (latin_a_char_to_charset): New variable in UTF-2000.
3005         (latin_a_char_to_byte1): New variable in UTF-2000.
3006         (latin_a_char_to_byte2): New variable in UTF-2000.
3007         (Qucs_bmp): New variable.
3008         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
3009         `Bufbyte'.
3010         (next_allocated_2_byte_leading_byte): Likewise.
3011         (non_ascii_set_charptr_emchar): Likewise.
3012         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
3013         `CHARSET_TYPE_256X256' in UTF-2000; modify for
3014         `charset_by_attributes'.
3015         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
3016         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
3017         and `CHARSET_BY_LEADING_BYTE'.
3018         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
3019         `utf-2000-version' to `vars_of_mule_charset'.
3020         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
3021         define `leading-code-private-11' in UTF-2000; move setting of
3022         `utf-2000-version' from `syms_of_mule_charset'.
3023         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
3024         UTF-2000.
3025
3026         * character.h (Charset_ID): New type.
3027         (LEADING_BYTE_UCS_BMP): New macro.
3028         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
3029         (CHARSET_ID_OFFSET_94): New macro.
3030         (MIN_CHARSET_ID_PRIVATE_94): New macro.
3031         (MAX_CHARSET_ID_PRIVATE_94): New macro.
3032         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
3033         final-byte.
3034         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
3035         (LEADING_BYTE_LATIN_JISX0201): Likewise.
3036         (CHARSET_ID_OFFSET_96): New macro.
3037         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
3038         CHARSET_ID_OFFSET_96 and final-byte.
3039         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
3040         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
3041         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
3042         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
3043         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
3044         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
3045         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
3046         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
3047         (LEADING_BYTE_THAI_TIS620): Likewise.
3048         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
3049         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
3050         (CHARSET_ID_OFFSET_94x94): New macro.
3051         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
3052         CHARSET_ID_OFFSET_94x94 and final-byte.
3053         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
3054         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
3055         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
3056         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
3057         (LEADING_BYTE_CHINESE_GB2312): Likewise.
3058         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
3059         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
3060         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
3061         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
3062         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
3063         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
3064         (CHARSET_TYPE_128X128): New macro.
3065         (CHARSET_TYPE_256X256): New macro.
3066         (XCHARSET_PRIVATE_P): Delete unconditionally.
3067         (charset_by_attributes): Delete array about direction.
3068         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
3069         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
3070         (MIN_CHAR_94): New macro.
3071         (MAX_CHAR_94): New macro.
3072         (MIN_CHAR_96): New macro.
3073         (MAX_CHAR_96): New macro.
3074         (MIN_CHAR_94x94): New macro.
3075         (MAX_CHAR_94x94): New macro.
3076         (MIN_CHAR_96x96): New macro.
3077         (MAX_CHAR_96x96): New macro.
3078         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
3079         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3080         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
3081         - 32)'.
3082         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
3083         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
3084         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
3085         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
3086         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
3087         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
3088         `XCHARSET_LEADING_BYTE' to make code-point.
3089         (latin_a_char_to_charset): New variable.
3090         (latin_a_char_to_byte1): New variable.
3091         (latin_a_char_to_byte2): New variable.
3092         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
3093         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
3094         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
3095
3096         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
3097         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
3098         (find_charsets_in_emchar_string): Likewise.
3099         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
3100
3101         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
3102         `int'.
3103         (decode_coding_iso2022): Likewise.
3104
3105         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
3106         of `unsigned char'.
3107
3108         * redisplay.c (redisplay_text_width_emchar_string): Use
3109         `Charset_ID' instead of `unsigned char'.
3110         (redisplay_frame_text_width_string): Likewise.
3111
3112         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
3113         `unsigned char'.
3114
3115         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
3116         instead of `unsigned char'.
3117         (face_cachel_charset_font_metric_info): Likewise.
3118
3119         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
3120         (get_non_ascii_char_table_value): Likewise.
3121         (get_char_table): Likewise.
3122         (put_char_table): Likewise.
3123         (map_over_other_charset): Likewise.
3124         (map_char_table): Likewise.
3125
3126         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
3127         instead of `unsigned char'.
3128
3129 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
3130
3131         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
3132         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
3133
3134         * mule-charset.c (leading_code_private_11): Don't define in
3135         UTF-2000.
3136
3137         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
3138         in UTF-2000 because it is not ported yet and not to use
3139         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
3140
3141 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
3142
3143         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
3144
3145 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3146
3147         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
3148         in UTF-2000.
3149
3150         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
3151         of unsigned char to store leading-byte.
3152
3153         * chartab.c (get_non_ascii_char_table_value): Don't use
3154         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
3155
3156         * file-coding.c (encode_coding_big5): Delete bogus implementation
3157         in UTF2000.
3158
3159         * character.h (LEADING_BYTE_*): Delete definition for
3160         non-UTF-2000.
3161         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
3162         (LEADING_BYTE_PREFIX_P): Deleted.
3163         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
3164         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
3165         (BUFBYTE_LEADING_BYTE_P): Deleted.
3166         (CHARSET_PRIVATE_P): Deleted unconditionally.
3167         (rep_bytes_by_first_byte): Deleted unconditionally.
3168         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
3169         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
3170         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3171         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
3172         (CHAR_FIELD2): Deleted.
3173         (CHAR_FIELD3): Deleted.
3174         (MAKE_CHAR): Delete definition for non-UTF-2000.
3175         (BREAKUP_CHAR_1_UNSAFE): Deleted.
3176         (breakup_char_1): New implementation.
3177         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
3178         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
3179
3180 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3181
3182         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
3183         condition.
3184
3185 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3186
3187         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
3188         (CHARSET_PRIVATE_P): Likewise.
3189         (XCHARSET_PRIVATE_P): Likewise.
3190         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
3191
3192         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
3193         UTF2000.
3194         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
3195
3196 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3197
3198         * character.h (LEADING_BYTE_*): Changed in UTF2000.
3199         (NUM_LEADING_BYTES): Changed from 128 to 256.
3200         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3201         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
3202         UTF2000.
3203         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3204
3205         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
3206         UTF2000.
3207         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
3208         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
3209         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
3210         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
3211         (Qchinese_cns11643_3): New variable in UTF2000.
3212         (Qchinese_cns11643_4): New variable in UTF2000.
3213         (Qchinese_cns11643_5): New variable in UTF2000.
3214         (Qchinese_cns11643_6): New variable in UTF2000.
3215         (Qchinese_cns11643_7): New variable in UTF2000.
3216         (syms_of_mule_charset): Define `chinese-cns11643-3',
3217         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3218         and `chinese-cns11643-7' in UTF2000.
3219         (vars_of_mule_charset): Initialize
3220         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
3221         + 1 in UTF2000.
3222         (complex_vars_of_mule_charset): Setup charset
3223         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
3224         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
3225
3226 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3227
3228         * mule-charset.c: Move setting for `leading-code-private-11' from
3229         `syms_of_mule_charset' to `vars_of_mule_charset'.
3230
3231 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3232
3233         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
3234         and `NUM_LEADING_BYTES' in assert.
3235
3236 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3237
3238         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
3239         instead of 128.
3240         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
3241         `NUM_LEADING_BYTES' instead of 128.
3242
3243 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3244
3245         * mule-charset.h (charset_by_leading_byte): Use
3246         `NUM_LEADING_BYTES' instead of 128.
3247         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
3248
3249         * mule-charset.c (charset_by_leading_byte): Use
3250         `NUM_LEADING_BYTES' instead of 128.
3251         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
3252
3253         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
3254         128.
3255
3256 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
3257
3258         * mule-charset.c (syms_of_mule_charset): Update to
3259         0.4 (Shin-Imamiya).
3260
3261 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
3262
3263         * file-coding.c (encode_coding_sjis): New implementation for
3264         UTF2000.  (decode_coding_sjis): Ditto.
3265
3266 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3267
3268         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
3269         Don't define in UTF2000.
3270
3271         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
3272         defined.
3273
3274         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3275         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
3276         MULE.
3277
3278 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3279
3280         * config.h.in (CHAR_IS_UCS4): New macro.
3281
3282         * mule-charset.c (rep_bytes_by_first_byte): Modify for
3283         conventional MULE representation.
3284         (syms_of_mule_charset): Update to 0.3 (Imamiya).
3285
3286         * mule-charset.h: Reverted to original.
3287
3288         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3289         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
3290         "mule-charset.h" if CHAR_IS_UCS4 is defined.
3291
3292         * character.h: New file.
3293
3294         * file-coding.c (Fmake_coding_system): Set 1 to
3295         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
3296         defined.
3297         (encode_coding_no_conversion): New implementation for UTF2000.
3298
3299         * file-coding.h (struct Lisp_Coding_System): Add new member
3300         `fixed.size'.
3301
3302 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
3303
3304         * file-coding.c (decode_coding_iso2022): Code-point arguments of
3305         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
3306         (encode_coding_iso2022): New implementation for UTF2000.
3307
3308 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3309
3310         * mule-canna.c (c2mu): New implementation for UTF2000.
3311         (m2c): Likewise.
3312
3313 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3314
3315         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
3316
3317 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3318
3319         * file-coding.c (reset_encoding_stream): Set 0 to
3320         `str->iso2022.current_char_boundary' in UTF2000.
3321         (encode_utf8): Don't define in UTF2000.
3322         (encode_coding_utf8): New implementation for UTF-8 representation
3323         of UTF2000.
3324         (complex_vars_of_file_coding): Define coding-system `utf-8'.
3325
3326 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3327
3328         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
3329
3330         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
3331         UTF2000.
3332         (REP_BYTES_BY_FIRST_BYTE): Likewise.
3333
3334         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
3335
3336         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
3337         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
3338         as UTF-8 in UTF2000.
3339         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
3340         (non_ascii_valid_char_p): Don't define in UTF2000.
3341         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
3342         (Lstream_get_emchar_1): Likewise.
3343         (utf-2000-version): New variable in UTF2000.
3344
3345         * lread.c (read_escape): Add new reader `u'.
3346
3347         * insdel.c (three_to_one_table): Don't define in UTF2000.
3348         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
3349         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
3350         UTF2000.
3351         (bytind_to_bufpos_func): Likewise.
3352         (buffer_mule_signal_inserted_region): Likewise.
3353         (vars_of_insdel): Don't initialize `three_to_one_table'.
3354         (init_buffer_text): Use `buf->text->mule_size' instead of
3355         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
3356         UTF2000.
3357
3358         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
3359         UTF-8 representation in UTF2000.
3360         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
3361         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
3362         (decode_coding_iso2022): Don't define local variable `lb' in
3363         UTF2000; don't use LEADING_BYTE in UTF2000; use
3364         `DECODE_ADD_UCS_CHAR' in UTF2000.
3365         (convert_to_external_format): Decode as UTF-8 in UTF2000.
3366
3367         * config.h.in (UTF2000): New macro.
3368
3369         * buffer.h (struct buffer_text): Add new member `mule_size' and
3370         don't add `mule_shifter' and `mule_three_p' in UTF2000.
3371         (valid_char_p): Return always 1 in UTF2000.
3372         (MAX_EMCHAR_LEN): 6 in UTF2000.
3373         (three_to_one_table): Don't define in UTF2000.
3374         (real_bufpos_to_bytind): Modify for UTF-8 representation in
3375         UTF2000.
3376         (real_bytind_to_bufpos): Likewise.
3377
3378         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
3379
3380 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3381
3382         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
3383         representation change.
3384         (Vutf_2000_version): New variable.
3385         (leading_code_private_11): New variable.
3386         (syms_of_mule_charset): Add new variables `utf-2000-version' and
3387         `leading-code-private-11'.
3388
3389         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
3390         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
3391         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
3392         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
3393         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
3394         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
3395         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
3396         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
3397         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
3398         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
3399         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
3400         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
3401         (MIN_CHAR_GREEK): New macro.
3402         (MAX_CHAR_GREEK): New macro.
3403         (MIN_CHAR_CYRILLIC): New macro.
3404         (MAX_CHAR_CYRILLIC): New macro.
3405         (MIN_CHAR_HEBREW): New macro.
3406         (MAX_CHAR_HEBREW): New macro.
3407         (MIN_CHAR_THAI): New macro.
3408         (MAX_CHAR_THAI): New macro.
3409         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
3410         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
3411         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
3412         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
3413         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
3414         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
3415         (CHAR_FIELD2): New inline function.
3416         (CHAR_FIELD3): New inline function.
3417         (MULE_CHAR_PRIVATE_OFFSET): New macro.
3418         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
3419         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
3420         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
3421         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
3422         (MIN_CHAR_COMPOSITION): Likewise.
3423         (CHAR_LEADING_BYTE): Modified for character representation change.
3424         (MAKE_CHAR): Likewise.
3425
3426         * lisp.h (Vcharset_latin_iso8859_1): New variable.
3427         (Vcharset_greek_iso8859_7): Likewise.
3428         (Vcharset_cyrillic_iso8859_5): Likewise.
3429         (Vcharset_hebrew_iso8859_8): Likewise.
3430         (Vcharset_thai_tis620): Likewise.
3431         (Vcharset_katakana_jisx0201): Likewise.
3432
3433 2001-01-20  Martin Buchholz <martin@xemacs.org>
3434
3435         * XEmacs 21.2.42 "Poseidon" is released.
3436
3437 2001-01-20  Martin Buchholz  <martin@xemacs.org>
3438
3439         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
3440
3441 2001-01-19  Martin Buchholz  <martin@xemacs.org>
3442
3443         De-kludgify FIXED_TYPE free list frobbing.
3444         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
3445         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
3446         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
3447         * alloc.c (Lisp_Free): New pseudo lisp object definition.
3448         * alloc.c (LRECORD_FREE_P): New.
3449         * alloc.c (MARK_LRECORD_AS_FREE): New.
3450         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
3451         * alloc.c (STRUCT_FREE_P): Deleted.
3452         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
3453         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
3454         * alloc.c (STRING_CHARS_FREE_P): New.
3455         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
3456         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
3457         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
3458         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
3459         * alloc.c (resize_string): Use new definitions.
3460         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
3461         * alloc.c (verify_string_chars_integrity): Use new definitions.
3462         * alloc.c (compact_string_chars): Use new definitions.
3463         * alloc.c: Update monster comments.
3464         * lrecord.h (lrecord_type): Add some new lrecord types for
3465         alloc.c's use.
3466
3467 2001-01-18  Martin Buchholz  <martin@xemacs.org>
3468
3469         Improve alignment hackery.
3470         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
3471         (max_align_t): Moved from opaque.h - general purpose.
3472         (ALIGN_PTR): Use size_t, not long.
3473         * opaque.h (max_align_t): Move to lisp.h.
3474
3475 2001-01-18  Norbert Koch  <nk@LF.net>
3476
3477         * gui.h: Fix and add prototypes to fix build problems.
3478
3479 2001-01-18  Martin Buchholz  <martin@xemacs.org>
3480
3481         temacs is going away, so `dump-temacs' is now a bad name.
3482         * .dbxrc (dump-temacs): Rename to `dmp'.
3483         * .gdbinit (dump-temacs): Rename to `dmp'.
3484
3485 2001-01-17  Andy Piper  <andy@xemacs.org>
3486
3487         * glyphs.c (print_image_instance): comment to make martin happy.
3488
3489         * glyphs-x.c (x_redisplay_widget): update faces after a frame
3490         change.
3491
3492         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
3493         activation.
3494         (mswindows_tab_control_redisplay): warning suppression.
3495
3496         * glyphs-widget.c (widget_update): re-write to cope with updated
3497         items.
3498         (widget_instantiate): use new gui_item functions.
3499         (tab_control_update): deleted.
3500         (progress_gauge_update): deleted.
3501         (image_instantiator_progress_guage): take out update reference.
3502         (image_instantiator_tree_view): ditto.
3503         (image_instantiator_tab_control): ditto.
3504
3505         * gui.c (widget_gui_parse_item_keywords): new function. Do things
3506         Right the new way.
3507         (gui_item_add_keyval_pair): re-write to cope with descriptors and
3508         return whether anything was changed.
3509         (update_gui_item_keywords): as it sounds.
3510
3511         * gui.h: declare widget_gui_parse_item_keywords.
3512
3513         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
3514         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
3515
3516 2001-01-17  Martin Buchholz <martin@xemacs.org>
3517
3518         * XEmacs 21.2.41 "Polyhymnia" is released.
3519
3520 2001-01-16  Didier Verna  <didier@xemacs.org>
3521
3522         * glyphs.c (image_instantiate): don't use fallbacks when
3523         instantiating a face's background pixmap by inheritance.
3524
3525 2001-01-14  Mike Sperber <mike@xemacs.org>
3526
3527         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
3528         Conditionalize accordingly.
3529
3530 2001-01-16  Martin Buchholz  <martin@xemacs.org>
3531
3532         * dumper.c (pdump_file_get): Fix a compiler warning.
3533
3534 2001-01-15  Martin Buchholz  <martin@xemacs.org>
3535
3536         Make Purify happy when pdumping.
3537         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
3538         iniitalizing all bits of new lisp object memory.
3539         * symbols.c (Fmake_local_variable): Likewise.
3540         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
3541         * symbols.c (Fdefvaralias): Likewise.
3542         * mule-charset.c (vars_of_mule_charset): Likewise.
3543
3544 2001-01-15  Martin Buchholz  <martin@xemacs.org>
3545         Add the `-nd' flag when running pre-dump operations under the debugger.
3546         * .dbxrc (run-temacs): Add `-nd'.
3547         * .dbxrc (update-elc): Likewise.
3548         * .dbxrc (dump-temacs): Likewise.
3549         * .gdbinit (run-temacs): Likewise.
3550         * .gdbinit (check-temacs): Likewise.
3551         * .gdbinit (update-elc): Likewise.
3552         * .gdbinit (dump-temacs): Likewise.
3553
3554 2001-01-14  Martin Buchholz  <martin@xemacs.org>
3555
3556         Allow building 64-bit executables on AIX with GNU malloc, e.g.
3557         export OBJECT_MODE=64
3558         configure --pdump --use-union-type=no
3559         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
3560         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
3561
3562         * miscplay.c (sndcnv8U_2mono):
3563         Avoid two uses of `++' in the same expression.
3564         Suppresses a GCC warning.
3565
3566 2001-01-13  Martin Buchholz  <martin@xemacs.org>
3567
3568         Make sure future compilers don't miscompile alloc.c.
3569         * alloc.c:
3570         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
3571         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
3572
3573 2001-01-12  Martin Buchholz  <martin@xemacs.org>
3574
3575         * dumper.c: A little post-pdump-rename comment fixup.
3576
3577 2001-01-09  Jerry James  <james@eecs.ku.edu>
3578
3579         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
3580
3581 2001-01-13  Martin Buchholz  <martin@xemacs.org>
3582
3583         * *.[ch]: Globally rename symbols using the following `pdump-rename'
3584         script:
3585         #!/bin/sh
3586         replace_symbol () {
3587           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
3588         }
3589
3590         replace_symbol pdump_wire_lists pdump_weak_object_chains
3591         replace_symbol pdump_wire_list dump_add_weak_object_chain
3592
3593         replace_symbol pdump_wires pdump_root_objects
3594         replace_symbol pdump_wire dump_add_root_object
3595
3596         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
3597         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
3598
3599         replace_symbol dumpstructinfos pdump_root_struct_ptrs
3600         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
3601         replace_symbol dumpstructinfo pdump_root_struct_ptr
3602         replace_symbol dumpstruct dump_add_root_struct_ptr
3603
3604         replace_symbol dumpopaque dump_add_opaque
3605         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
3606         replace_symbol dumpopaqueinfos pdump_opaques
3607         replace_symbol dumpopaqueinfo pdump_opaque
3608
3609         replace_symbol nb_structdump nb_root_struct_ptrs
3610         replace_symbol nb_opaquedump nb_opaques
3611
3612         replace_symbol align_table pdump_align_table
3613         replace_symbol dump_header pdump_header
3614
3615         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
3616         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
3617
3618
3619 2001-01-12  Martin Buchholz  <martin@xemacs.org>
3620
3621         * s/aix4.h: Keep the C for AIX compiler from overaggressively
3622         optimizing bytecount_to_charcount().
3623
3624 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
3625
3626         * config.h.in:
3627         (HAVE_DLFCN_H): Removed.
3628         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
3629
3630 2001-01-06  Martin Buchholz  <martin@xemacs.org>
3631
3632         Portable dumper maintainability improvements.
3633         * alloc.c (staticpro):
3634         * alloc.c (staticpro_nodump):
3635         * alloc.c (garbage_collect_1):
3636         * alloc.c (reinit_alloc_once_early):
3637         * alloc.c (init_alloc_once_early):
3638         * alloc.c: Move dumper functions to alloc.c.
3639         * dumper.c (pdump_backtrace):
3640         * dumper.c (pdump_dump_structs):
3641         * dumper.c (pdump_dump_opaques):
3642         * dumper.c (pdump_dump_rtables):
3643         * dumper.c (pdump_dump_wired):
3644         * dumper.c (pdump):
3645         * dumper.c (pdump_load_check):
3646         * dumper.c (pdump_load_finish):
3647         * dumper.c (pdump_file_unmap):
3648         * dumper.c (pdump_file_get):
3649         * dumper.c (pdump_resource_free):
3650         * dumper.c (pdump_resource_get):
3651         * dumper.c (pdump_file_free):
3652         * dumper.c (pdump_file_try):
3653         * dumper.c (pdump_load):
3654         Remove fixed size limits on staticpro(), staticpro_nodump(),
3655         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
3656         Remove custom code for dumping lrecord_implementations_table - use
3657         dumpopaque instead.
3658         Remove (most of the) custom code for dumping staticpros - dump it
3659         like any other dynarr.
3660
3661         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
3662         * dumper.c: Moved functions from alloc.c.
3663         * alloc.c (dumpstruct): Moved to dumper.c.
3664         * alloc.c (dumpopaque): Likewise.
3665         * alloc.c (pdump_wire): Likewise.
3666         * alloc.c (pdump_wire_list): Likewise.
3667
3668         * lisp.h (Dynarr_sizeof): New.
3669         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
3670         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
3671         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
3672
3673         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
3674         * lisp.h (dumpopaque): ditto.
3675         * lisp.h (pdump_wire): ditto.
3676         * lisp.h (pdump_wire_list): ditto.
3677
3678 2001-01-09  Martin Buchholz  <martin@xemacs.org>
3679
3680         * make-src-depend (PrintPatternDeps):
3681         Use `sort' to make output independent of perl version.
3682
3683 2001-01-08  Martin Buchholz  <martin@xemacs.org>
3684
3685         Port to Netbsd 1.5.
3686         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
3687         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
3688
3689 2001-01-03  Didier Verna  <didier@xemacs.org>
3690
3691         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
3692         that `focus_frame' is alive before thinking of calling
3693         `redisplay_redraw_cursor' on it.
3694
3695 2001-01-08  Martin Buchholz <martin@xemacs.org>
3696
3697         * XEmacs 21.2.40 is released.
3698
3699 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
3700
3701         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
3702
3703 2001-01-06  Martin Buchholz  <martin@xemacs.org>
3704
3705         * alloc.c (dbg_valmask): Make const.
3706         * alloc.c (dbg_typemask): Make const.
3707         * alloc.c (dbg_USE_UNION_TYPE): Make const.
3708         * alloc.c (dbg_valbits): Make const.
3709         * alloc.c (dbg_gctypebits): Make const.
3710
3711 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
3712
3713         * redisplay-x.c (x_bevel_area):
3714         redisplay.h (struct rune):
3715         Typo fixes in comments.
3716
3717 2001-01-05  Andy Piper  <andy@xemacs.org>
3718
3719         * glyphs-x.c (x_redisplay_widget): use size changed for offset
3720         adjustment.
3721
3722         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
3723
3724 2001-01-05  Martin Buchholz  <martin@xemacs.org>
3725
3726         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
3727
3728         * mule-ccl.c (stack_idx_of_map_multiple):
3729         Non const global data must not be initialized!
3730         Found by MIYASHITA Hisashi.
3731
3732 2001-01-02  Andy Piper  <andy@xemacs.org>
3733
3734         * frame.c (change_frame_size): make sure frame size is always
3735         marked as changed.
3736
3737         * glyphs.c (image_instance_layout): minor code reuse.
3738
3739         * window.c (Fcurrent_window_configuration): revert previous
3740         change.
3741
3742 2001-01-02  Martin Buchholz  <martin@xemacs.org>
3743
3744         * glyphs.h:
3745         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
3746
3747 2000-12-31  Andy Piper  <andy@xemacs.org>
3748
3749         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
3750         when widget gets unmapped.
3751
3752         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
3753         function. Make sure widgets losing focus don't just drop it.
3754         (handle_focus_event_1): record the widget with focus.
3755
3756 2000-12-31  Andy Piper  <andy@xemacs.org>
3757
3758         * window.c (allocate_window): use
3759         make_image_instance_cache_hash_table.
3760         (make_dummy_parent): ditto.
3761         (Fset_window_configuration): ditto.
3762
3763         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
3764
3765         * glyphs.c (process_image_string_instantiator): use
3766         INSTANTIATOR_TYPE.
3767         (get_image_instantiator_governing_domain): ditto.
3768         (normalize_image_instantiator): ditto.
3769         (instantiate_image_instantiator): ditto.
3770         (make_image_instance_1): ditto.
3771         (image_instantiate): ditto. Key on glyph *and* instantiator type.
3772         (instantiator_eq_equal): new function for use with instance hash
3773         tables.
3774         (instantiator_eq_hash): ditto.
3775         (make_image_instance_cache_hash_table): create a suitable hash
3776         table for storing image instances.
3777
3778         * elhash.h (hash_table_weakness): new internal weakness type
3779         HASH_TABLE_KEY_CAR_VALUE_WEAK.
3780         declare new functions.
3781
3782         * elhash.c (finish_marking_weak_hash_tables): introduce yet
3783         another weakness type for glyphs.
3784         (make_standard_lisp_hash_table): new function split out from
3785         make_general_lisp_hash_table.
3786         (make_lisp_hash_table): call make_standard_lisp_hash_table.
3787         (hash_table_instantiate): ditto.
3788         (Fmake_hash_table): ditto.
3789
3790 2000-12-31  Martin Buchholz <martin@xemacs.org>
3791
3792         * XEmacs 21.2.39 is released.
3793
3794 2000-12-29  Andy Piper  <andy@xemacs.org>
3795
3796         * menubar.c (menubar_visible_p_changed): signal the frame changed.
3797
3798         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
3799         the frame has changed so that we pick up geometry changes such as
3800         menubar visibility.
3801
3802 2000-12-28  Andy Piper  <andy@xemacs.org>
3803
3804         * lastfile.c (my_ebss): make a char array so we can pad the
3805         bss. Fixes cygwin unexec.
3806
3807         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
3808
3809 2000-12-26  Andy Piper  <andy@xemacs.org>
3810
3811         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
3812         comments and try and be more precise about a non-/SIGIO world.
3813         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
3814         SIGIO.
3815
3816         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
3817         we don't normalize to zero width or height.
3818
3819 2000-12-24  Andy Piper  <andy@xemacs.org>
3820
3821         * Makefile.in.in (ldflags): add -mwindows when appropriate.
3822
3823 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
3824
3825         * s/sco5.h: SCO 5 has pty support.
3826
3827 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
3828
3829         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
3830         input-method-xlib.c contains whole contents of input-method-xfs.c,
3831         so we can use input-method-xlib.c's code for USE_XFONTSET
3832         using #ifdefs.
3833         * input-method-xfs.c: removed.
3834
3835 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
3836
3837         * file-coding.h (enum coding_category_type): reorder enumerators to
3838         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
3839         (now one greater than largest real coding_category_type enumerator).
3840         * file-coding.c (coding_category_symbol, coding_category_by_priority,
3841         coding_category_system, fcd_descriptihon_1, decode_coding_category,
3842         Fcoding_category_list, Fset_coding_priority_list,
3843         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
3844         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
3845
3846 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
3847
3848         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
3849         * redisplay-output.c (redisplay_output_window): Clear top of window
3850         when face is changed.
3851         * redisplay-x.c (x_redraw_exposed_window): Call
3852         redisplay_clear_top_of_window.
3853         * redisplay.h: Publish redisplay_clear_top_of_window.
3854
3855 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
3856
3857         * buffer.c (Fkill_buffer): Map over all devices.
3858         * window.c (window_loop): Remove UNSHOW_BUFFER code.
3859         (list_windows): New function.
3860         (list_all_windows): Ditto.
3861         (Freplace_buffer_in_windows): Use them.
3862
3863 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
3864
3865         * database.c (berkdb_subtype): Recognize new subtype `queue'.
3866         (Fopen_database): Use `db_create' instead of `db_open'.
3867         (syms_of_database): Initialize Qqueue.
3868
3869 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
3870
3871         * buffer.c (common_init_complex_vars_of_buffer): Initialize
3872         buffer_local_face_property.
3873         * buffer.h (struct buffer): New member buffer_local_face_property.
3874         * window.c (Fset_window_buffer):  Mark window's face as changed
3875         when buffer has buffer local face.
3876         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
3877         * objects.c (color_after_change): Set buffer_local_face_property
3878         when locale of face specifier is buffer.
3879         * objects.c (font_after_change): Ditto.
3880         * objects.c (face_boolean_after_change): Ditto.
3881         * glyphs.c (image_after_change): Ditto.
3882
3883 2000-12-09  Dan Holmsand  <dan@eyebee.com>
3884
3885         * nt.c (mswindows_fstat): Report file permissions, volume serial
3886         number, etc. Code adapted from FSF Emacs 20.7.
3887
3888 2000-12-09  Dan Holmsand  <dan@eyebee.com>
3889
3890         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
3891         of stat when we don't have symbolic links, to make sure
3892         mswindows_stat is called on mswindows.
3893
3894 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
3895
3896         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
3897
3898 2000-12-12  Martin Buchholz  <martin@xemacs.org>
3899
3900         * doprnt.c (emacs_doprnt_1): More printing fixes.
3901         Make printing of numbers compatible with libc and FSF Emacs.
3902         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
3903         Use the system printf to do most of the hard work of formatting,
3904         instead of doprnt_1().
3905         Calculate memory to allocate for format string.
3906         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
3907         (doprnt_1): Cleaner code and documentation.
3908
3909 2000-12-01  Jerry James  <james@eecs.ukans.edu>
3910
3911         * Makefile.in.in: Use the loop variable to install headers.
3912
3913 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
3914
3915         * window.c (Fsplit_window): Don't invalidate face cache.
3916
3917 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
3918
3919         * minibuf.c (Fall_completions): Undo the previous change
3920         which removed checking elements start with space.
3921
3922 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
3923
3924         * mule-canna.c: Didier suppression.
3925
3926 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
3927
3928         * mule-canna.c: rename static unsigned char buf[] to key_buffer
3929         (warning suppression).  Add English comment translations.
3930
3931 2000-12-05  Martin Buchholz  <martin@xemacs.org>
3932
3933         * unexelfsgi.c (unexec): Better test for mmap failure.
3934
3935 2000-12-05  Martin Buchholz <martin@xemacs.org>
3936
3937         * XEmacs 21.2.38 is released.
3938
3939 2000-12-05  Martin Buchholz  <martin@xemacs.org>
3940
3941         * redisplay.c (bar-cursor): Make a user variable.
3942
3943         * symsinit.h: Add init_postgresql_from_environment.
3944
3945 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
3946
3947         * regex.c: Convert to clean C.
3948
3949 2000-12-05  Dan Holmsand  <dan@eyebee.com>
3950
3951         * realpath.c:
3952         Don't #include sysfile.h. Revert to duplicating PATH_MAX
3953         initialization.
3954         (sys_readlink): renamed to system_readlink to avoid conflict with
3955         the other sys_readlink.
3956
3957 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
3958
3959         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
3960
3961 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
3962
3963         * postgresql.c (init_postgresql_from_environment): new function.
3964         (vars_of_postgresql): Move code initializing Lisp variables out and
3965         into init_postgresql_from_environment.
3966         emacs.c (main_1): Call init_postgresql_from_environment if and only
3967         if running a dumped XEmacs.
3968
3969 2000-08-31  Dan Holmsand  <dan@eyebee.com>
3970
3971         * buffer.c: Make find-file-compare-truenames default to true on
3972         windows.
3973
3974         * realpath.c (win32_abs_start):
3975         (cygwin_readlink):
3976         (win32_readlink): New functions.
3977         (xrealpath): Return really real filenames on windows.
3978
3979         * fileio.c (Ffile_truename): Make file-truename work on windows.
3980
3981 2000-11-29  Didier Verna  <didier@xemacs.org>
3982
3983         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
3984         * faces.c (update_face_cachel_data): use it.
3985         * faces.c (add_face_cachel): use it. Complete background pixmap
3986         frobbing in face cache if `update_face_cachel_data' has not done so.
3987
3988 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
3989
3990         * search.c (string_match_1): Don't set last_thing_searched
3991         when search failed.
3992
3993 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
3994
3995         * buffer.c: Include casetab.h
3996         (common_init_complex_vars_of_buffer): Use new case-table object.
3997         * buffer.h: Include casetab.h
3998         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
3999         (DOWNCASE_TABLE_OF): Ditto.
4000         * bufslots.h: Remove char-tables and add case-table.
4001         * casetab.c: Include casetab.h
4002         (CASE_TABLE_P): Removed.
4003         (mark_case_table): New function.
4004         (allocate_case_table): New function.
4005         (Fcase_table_p): Use new case-table.
4006         (case_table_char): New function.
4007         (Fget_case_table): Ditto.
4008         (Fput_case_table): Ditto.
4009         (Fput_case_table_pair): Ditto.
4010         (Fcopy_case_table): Ditto.
4011         (Fcurrent_case_table): Return case-table.
4012         (Fstandard_case_table): Return case-table.
4013         (Fset_case_table): Fix doc-string.
4014         (set_case_table): Use case-table
4015         (syms_of_casetab): DEFSUBR new functions.
4016         (complex_vars_of_casetab): Set up standard case-table.
4017         * casetab.h: New file.
4018         * editfns.c: Include casetab.h
4019         (Fcompare_buffer_substrings): Use case-table.
4020         * inline.c: Include casetab.h
4021         * lisp.h: Remove bogus extern.
4022         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
4023         * search.c: Include casetab.h
4024         (TRANSLATE_ASCII): Removed.
4025         (TRANSLATE): Unconditionally translate character.
4026         (looking_at_1): Use case-table.
4027         (string_match_1): Ditto.
4028         (fast_string_match): Ditto.
4029         (search_command): Ditto.
4030         (search_buffer): Separate boyer_moore.  Check whether
4031         boyer_moore is poosible.
4032         (simple_search): New function.
4033         (boyer_moore): Separated from search_buffer. Translate char.
4034
4035 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
4036
4037         * regex.c (RE_TR_ASCII): Removed.
4038         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
4039         (PATFETCH): Call PATFETCH_RAW.
4040         (PATFETCH_RAW): Fetch Emchar.
4041         (PATUNFETCH): Decrement charptr.
4042         (GET_BUFFER_SPACE): Rename b to buf_end.
4043         (BUF_PUSH): Ditto.
4044         (BUF_PUSH_2): Ditto.
4045         (BUF_PUSH_3): Ditto.
4046         (EXTEND_BUFFER): Ditto.
4047         (SET_LIST_BIT): Ditto.
4048         (regex_compile): Ditto.  Translate non ASCII char.
4049         (compile_range): Ditto.
4050         (re_search_2): Ditto.
4051         (re_match_2_internal): Compare Emchar.
4052         (bcmp_translate): Ditto.
4053
4054 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
4055
4056         * lisp.h (basic char/int typedefs):  comment improvement.
4057
4058 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
4059
4060         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
4061         unstomp inhibit_site_lisp.  Improve comments.
4062
4063 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
4064
4065         * mule-charset.c (Fcharset_property):  improve type checking, comments.
4066
4067 2000-11-28  Andy Piper  <andy@xemacs.org>
4068
4069         * redisplay-output.c (redisplay_output_subwindow): make sure we do
4070         clipped display for windows in the gutter also.
4071         (redisplay_display_boxes_in_window_p): change semantics of return
4072         codes to be more intuitive.
4073
4074         * gutter.h: declare display_boxes_in_gutter_p.
4075
4076         * gutter.c (display_boxes_in_gutter_p): new function for
4077         redisplay.
4078
4079 2000-11-22  Andy Piper  <andy@xemacs.org>
4080
4081         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
4082         autodetect domain.
4083
4084 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
4085
4086         * callproc.c (Fold_call_process_internal):
4087         * gpm.c (Freceive_gpm_event):
4088         (tty_get_foreign_selection): Might be just warning supression.
4089         * fileio.c (Fwrite_region_internal):
4090         (Fset_visited_file_modtime):
4091         * keymap.c (event_matches_key_specifier_p):
4092         Initialize GCPROed variable.
4093
4094         * menubar-x.c (command_builder_find_menu_accelerator):
4095         Initialize before use.
4096
4097 2000-11-23  Andy Piper  <andy@xemacs.org>
4098
4099         * unexcw.c (unexec): make the resulting executable executable.
4100
4101 2000-11-21  Martin Buchholz  <martin@xemacs.org>
4102
4103         * doc.c (get_doc_string):
4104         Use size_t, not int, for result of XSTRING_LENGTH.
4105
4106         * cmds.c (Fdelete_char):
4107         * cmds.c (Fpoint_at_eol):
4108         * cmds.c (Fself_insert_command):
4109         Use EMACS_INT, not int, for result of XINT.
4110         Someday, someone will want to insert more than 2**31 identical characters.
4111
4112         * cmds.c (Fdelete_char):
4113         * cmds.c (Fdelete_backward_char):
4114         * syntax.c (Fforward_word):
4115         * syntax.c (Fforward_comment):
4116         Make COUNT argument optional, for consistency with forward-char et al.
4117
4118 2000-11-22  Martin Buchholz  <martin@xemacs.org>
4119
4120         * lisp.h:
4121         * print.c (long_to_string):
4122         Return a useful value: the pointer at end of data written.
4123
4124         * doprnt.c:
4125         Use `static const char * const' for constant strings.
4126         (union printf_arg): Delete `i', `ui' members.
4127         (get_doprnt_args):
4128         (emacs_doprnt_1):
4129         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
4130         Do all printf-ing via the `l' specifier.
4131         Use EMACS_INT instead of int.
4132         Optimize.
4133
4134 2000-11-20  Didier Verna  <didier@xemacs.org>
4135
4136         * faces.c (update_face_cachel_data): don't frob the background
4137         pixmap when the window is being created. The face is needed but
4138         does not exist yet.
4139
4140 2000-11-20  Andy Piper  <andy@xemacs.org>
4141
4142         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
4143         messing with a debug environment.
4144
4145 2000-11-20  Martin Buchholz  <martin@xemacs.org>
4146
4147         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
4148
4149 2000-11-20  Martin Buchholz  <martin@xemacs.org>
4150
4151         * casetab.c (Fcase_table_p): Fix compile error and crash.
4152
4153 2000-11-18  Philip Aston  <philipa@mail.com>
4154
4155         * s/cygwin32.h: Cygwin has SVR4-like pty support.
4156
4157 2000-11-18  Martin Buchholz  <martin@xemacs.org>
4158
4159         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
4160         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
4161
4162 2000-11-17  Martin Buchholz  <martin@xemacs.org>
4163
4164         * config.h.in: Define HAVE_ELF_H if elf.h exists.
4165         * unexelf.c: Use HAVE_ELF_H.
4166         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
4167         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
4168         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
4169         Greg Harrington <greg_harrington@hotmail.com> provided a machine
4170         for testing.
4171         So this is an unexelfsgi.c from a different line of development.
4172
4173 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
4174
4175         * regex.c (RE_TR_ASCII): New function.
4176         (RE_TRANSLATE): Call it.
4177
4178 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
4179
4180         * buffer.h (TRT_TABLE_OF): Remove assert.
4181         (IN_TRT_TABLE_DOMAIN): Removed.
4182
4183 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
4184
4185         * free-hook.c (log_gcpro):
4186         (show_gcprohist): Add support for GCPRO5.
4187
4188 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
4189
4190         * emacs.c (main_1): Improve -sd error message when --pdump=no.
4191
4192 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
4193
4194         * symeval.h: Declare flush_all_buffer_local_cache.
4195
4196         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
4197         (flush_buffer_local_cache): Added.
4198         (flush_all_buffer_local_cache): Added.
4199
4200         * lrecord.h: Remove unused XD_LO_RESET_NIL.
4201
4202         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
4203         (pdump_dump_data): Ditto.
4204         (pdump_reloc_one): Ditto.
4205         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
4206         before dumping.
4207
4208
4209 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
4210
4211         * buffer.c: Remove if 0'ed entry.
4212         * buffer.h: Rewrite TRT to use char-table.
4213         * bufslots.h: Remove mirror tables.
4214         * casetab.c: Remove mirror tables.
4215         (CASE_TABLE_P): New macro.
4216         (Fcase_table_p): Element of a case table is string or char-table.
4217         (make_mirror_trt_table): Removed.
4218         (set_case_table): Setup char-table from strings for backward
4219         compatibility.
4220         * dired.c (Fdirectory_files):
4221         * dired-msw.c: (mswindows_get_files):
4222         * lisp.h: Change prototype of re_pattern_buffer.
4223         * regex.c: (RE_TRANSLATE): New macro.
4224         (TRANSLATE_P): Ditto.
4225         Change translate to type RE_TRANSLATE_TYPE.
4226         * regex.h: Define RE_TRANSLATE_TYPE
4227         * search.c (TRANSLATE): New macro.
4228         (TRANSLATE_ASCII): New macro.
4229         Translate table is changed to Lisp_Object.
4230         (signal_failure): Inhibit return.
4231
4232 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
4233
4234         * device-msw.c:
4235         * eldap.c:
4236         * event-Xt.c:
4237         * event-stream.c:
4238         * print.c:
4239         Do UNGCPRO before return.
4240
4241 2000-11-14  Martin Buchholz <martin@xemacs.org>
4242
4243         * XEmacs 21.2.37 is released.
4244
4245 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
4246
4247         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
4248         Add comments about discarded return value.
4249
4250 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
4251
4252         * callint.c:
4253         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
4254
4255 2000-10-27  Andy Piper  <andy@xemacs.org>
4256
4257         * gutter.c (Fset_default_gutter_position): default left and right
4258         gutters to visible.
4259         (calculate_gutter_size): calculate resonable heuristic for left
4260         and right gutter sizes.
4261         (specifier_vars_of_gutter): change left and right gutter sizes to
4262         autodetect.
4263         (calculate_gutter_size_from_display_lines): new function.
4264         (output_gutter): check for resizing on left and right gutters.
4265         (clear_gutter): don't special case top and left gutters.
4266         (specifier_vars_of_gutter): use new signature for
4267         set_specifier_caching.
4268
4269         * glyphs-x.c (x_redisplay_widget): spelling fix.
4270         * glyphs.c (specifier_vars_of_glyphs):
4271         * menubar.c (specifier_vars_of_menubar):
4272         * redisplay.c (specifier_vars_of_redisplay):
4273         * toolbar.c (specifier_vars_of_toolbar):
4274         * window.c (specifier_vars_of_window):
4275         * scrollbar.c (specifier_vars_of_scrollbar):
4276         (complex_vars_of_scrollbar): use new signature for
4277         set_specifier_caching.
4278
4279         * specifier.c (set_specifier_caching): include recompute flag.
4280         (recompute_one_cached_specifier_in_window): always recompute if
4281         flag set.
4282         (recompute_one_cached_specifier_in_frame): ditto.
4283
4284         * specifier.h (struct specifier_caching): add recompute flag.
4285
4286 2000-10-24  Andy Piper  <andy@xemacs.org>
4287
4288         * unexcw.c (copy_executable_and_dump_data_section): add new
4289         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
4290         5.0 happy.
4291
4292 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
4293
4294         * console-x.h (x_device): New member modifier_release_time.
4295         * event-Xt.c (x_handle_sticky_modifiers):
4296         Bound interval modifier keys are sticky.
4297         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
4298         * events.h: extern it.
4299
4300 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
4301
4302         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
4303
4304 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
4305
4306         * event-stream.c (execute_command_event): Preserve current_events
4307         and the like when event is misc-user-event.
4308         Inhibit quit during the call to maybe_echo_keys.
4309
4310 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
4311
4312         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
4313         symlink when buffer is killed.
4314         (inhibit_clash_detection): New variable.
4315
4316 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
4317
4318         * console.c (Fset_input_method): Trigger redisplay on tty.
4319
4320 2000-11-07  Martin Buchholz  <martin@xemacs.org>
4321
4322         * process.c (Fprocess_status): Revert to previous behavior:
4323         (process-status "nosuchprocess") ==> nil
4324
4325 2000-11-06  Martin Buchholz  <martin@xemacs.org>
4326
4327         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
4328         Work around another GCC 2.95.2 optimizer bug.
4329
4330 2000-11-02  Martin Buchholz  <martin@xemacs.org>
4331
4332         * process.c (Fget_process): Use LIST_LOOP_2.
4333         (kill_buffer_processes): Use LIST_LOOP_2.
4334
4335         * minibuf.c (Fall_completions):
4336         Delete old non-functional code for FSF fourth argument.
4337
4338         * frame.c (frame_matches_frame_spec):
4339         Renamed from `frame_matches_frametype'.  Update all callers.
4340         (device_matches_device_spec):
4341         Renamed from 'device_matches_console_spec'.  Update all callers.
4342
4343         * doc.c (Fsubstitute_command_keys):
4344         Remove buffer overflow crash.  Small code cleanups.
4345
4346         * casetab.c (check_case_table): Simpler code.
4347
4348         * window.c (Freplace_buffer_in_windows):
4349         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
4350         (and similar implementation) as Fdelete_windows_on.
4351         Update all callers.
4352
4353         * alloc.c (Fmake_list):
4354         * alloc.c (make_vector):
4355         * alloc.c (Fmake_vector):
4356         * alloc.c (make_bit_vector):
4357         * alloc.c (Fmake_bit_vector):
4358         * alloc.c (Fbit_vector):
4359         * alloc.c (Fmake_string):
4360         * alloc.c (Fpurecopy):
4361         * alloc.c (Fmemory_limit):
4362         * buffer.c:
4363         * buffer.c (Fget_buffer):
4364         * buffer.c (Fkill_buffer):
4365         * buffer.c (complex_vars_of_buffer):
4366         * bytecode.c (Fcompiled_function_stack_depth):
4367         * callint.c (Fprefix_numeric_value):
4368         * event-stream.c:
4369         * event-stream.c (Fread_key_sequence):
4370         * casetab.c:
4371         * casetab.c (Fcase_table_p):
4372         * casetab.c (check_case_table):
4373         * casetab.c (Fset_case_table):
4374         * casetab.c (Fset_standard_case_table):
4375         * chartab.c:
4376         * chartab.c (Fchar_table_type):
4377         * chartab.c (Freset_char_table):
4378         * chartab.c (Fget_char_table):
4379         * chartab.c (Fget_range_char_table):
4380         * chartab.c (Fput_char_table):
4381         * chartab.c (Fmap_char_table):
4382         * chartab.c (Fcategory_table_p):
4383         * chartab.c (Fcheck_category_at):
4384         * chartab.c (Fchar_in_category_p):
4385         * chartab.c (Fcategory_table):
4386         * chartab.c (Fcopy_category_table):
4387         * chartab.c (Fset_category_table):
4388         * chartab.c (Fcategory_designator_p):
4389         * chartab.c (Fcategory_table_value_p):
4390         * cmds.c (Fdelete_char):
4391         * cmds.c (Fdelete_backward_char):
4392         * cmds.c (Fself_insert_command):
4393         * cmds.c (Fself_insert_internal):
4394         * console.c (Fvalid_console_type_p):
4395         * console.c (Fcdfw_console):
4396         * console.c (Fconsole_type):
4397         * console.c (Fconsole_name):
4398         * console.c (Fconsole_device_list):
4399         * console.c (Fconsole_on_window_system_p):
4400         * data.c:
4401         * data.c (Feq):
4402         * data.c (Fold_eq):
4403         * data.c (Fsubr_interactive):
4404         * data.c (Fchar_to_int):
4405         * data.c (Fint_to_char):
4406         * data.c (Fsetcar):
4407         * data.c (Fsetcdr):
4408         * data.c (Fnumber_to_string):
4409         * data.c (Fstring_to_number):
4410         * data.c (Frem):
4411         * database.c (mark_database):
4412         * database.c (finalize_database):
4413         * database.c (Fdatabase_live_p):
4414         * database.c (Fdatabasep):
4415         * device-x.c (Fx_get_resource):
4416         * device.c (Fdfw_device):
4417         * dired.c:
4418         * dired.c (Ffile_name_completion):
4419         * dired.c (Ffile_name_all_completions):
4420         * dired.c (Fuser_name_completion):
4421         * dired.c (Fuser_name_completion_1):
4422         * dired.c (Fuser_name_all_completions):
4423         * doc.c (Fdocumentation):
4424         * doc.c (Fdocumentation_property):
4425         * doc.c (Fsubstitute_command_keys):
4426         * editfns.c:
4427         * editfns.c (Fchar_to_string):
4428         * editfns.c (Fstring_to_char):
4429         * editfns.c (Ftemp_directory):
4430         * editfns.c (Finsert_char):
4431         * editfns.c (Fbuffer_substring_no_properties):
4432         * editfns.c (Fnarrow_to_region):
4433         * editfns.c (Fchar_equal):
4434         * editfns.c (Fchar_Equal):
4435         * editfns.c (Ftranspose_regions):
4436         * emacs.c (Fdump_emacs):
4437         * eval.c (Fthrow):
4438         * eval.c (Fcommand_execute):
4439         * eval.c (Fautoload):
4440         * eval.c (Fbacktrace):
4441         * eval.c (Fbacktrace_frame):
4442         * events.c:
4443         * events.c (Fcopy_event):
4444         * events.c (Fcharacter_to_event):
4445         * events.c (Fevent_button):
4446         * events.c (Fevent_process):
4447         * extents.c:
4448         * extents.c (Fnext_extent_change):
4449         * extents.c (Fextent_property):
4450         * faces.c (Ffacep):
4451         * faces.c (Fmake_face):
4452         * file-coding.c:
4453         * file-coding.c (Fencode_shift_jis_char):
4454         * file-coding.c (Fencode_big5_char):
4455         * fileio.c (Ffile_name_directory):
4456         * fileio.c (Ffile_name_nondirectory):
4457         * fileio.c (Ffile_name_as_directory):
4458         * fileio.c (Fdirectory_file_name):
4459         * fileio.c (Ffile_truename):
4460         * fileio.c (Fsubstitute_in_file_name):
4461         * fileio.c (Ffile_modes):
4462         * fileio.c (Fset_file_modes):
4463         * fileio.c (Fset_default_file_modes):
4464         * fileio.c (Fverify_visited_file_modtime):
4465         * floatfns.c (Facos):
4466         * floatfns.c (Fasin):
4467         * floatfns.c (Fatan):
4468         * floatfns.c (Fcos):
4469         * floatfns.c (Fsin):
4470         * floatfns.c (Ftan):
4471         * floatfns.c (Fbessel_j0):
4472         * floatfns.c (Fbessel_j1):
4473         * floatfns.c (Fbessel_jn):
4474         * floatfns.c (Fbessel_y0):
4475         * floatfns.c (Fbessel_y1):
4476         * floatfns.c (Fbessel_yn):
4477         * floatfns.c (Ferf):
4478         * floatfns.c (Ferfc):
4479         * floatfns.c (Flog_gamma):
4480         * floatfns.c (Fexp):
4481         * floatfns.c (Fexpt):
4482         * floatfns.c (Flog):
4483         * floatfns.c (Flog10):
4484         * floatfns.c (Fsqrt):
4485         * floatfns.c (Fcube_root):
4486         * floatfns.c (Facosh):
4487         * floatfns.c (Fasinh):
4488         * floatfns.c (Fatanh):
4489         * floatfns.c (Fcosh):
4490         * floatfns.c (Fsinh):
4491         * floatfns.c (Ftanh):
4492         * floatfns.c (Fabs):
4493         * floatfns.c (Ffloat):
4494         * floatfns.c (Flogb):
4495         * floatfns.c (Fceiling):
4496         * floatfns.c (Ffloor):
4497         * floatfns.c (Fround):
4498         * floatfns.c (Ftruncate):
4499         * floatfns.c (Ffceiling):
4500         * floatfns.c (Fffloor):
4501         * floatfns.c (Ffround):
4502         * floatfns.c (Fftruncate):
4503         * fns.c (Fstring_equal):
4504         * fns.c (Fstring_lessp):
4505         * fns.c (concat2):
4506         * fns.c (concat3):
4507         * fns.c (vconcat2):
4508         * fns.c (vconcat3):
4509         * fns.c (Fsubstring):
4510         * fns.c (Fassoc):
4511         * fns.c (Fold_assoc):
4512         * fns.c (assoc_no_quit):
4513         * fns.c (Fassq):
4514         * fns.c (Fold_assq):
4515         * fns.c (assq_no_quit):
4516         * fns.c (Frassoc):
4517         * fns.c (Fold_rassoc):
4518         * fns.c (Frassq):
4519         * fns.c (Fold_rassq):
4520         * fns.c (rassq_no_quit):
4521         * fns.c (Fremassoc):
4522         * fns.c (remassoc_no_quit):
4523         * fns.c (Fremassq):
4524         * fns.c (remassq_no_quit):
4525         * fns.c (Fremrassoc):
4526         * fns.c (Fremrassq):
4527         * fns.c (remrassq_no_quit):
4528         * fns.c (Fsort):
4529         * fns.c (Fplist_get):
4530         * fns.c (Fplist_put):
4531         * fns.c (Fplist_remprop):
4532         * fns.c (Fplist_member):
4533         * fns.c (Flax_plist_get):
4534         * fns.c (Flax_plist_put):
4535         * fns.c (Flax_plist_remprop):
4536         * fns.c (Flax_plist_member):
4537         * fns.c (Fequal):
4538         * fns.c (Fold_equal):
4539         * fns.c (Frequire):
4540         * fns.c (Fbase64_encode_region):
4541         * fns.c (Fbase64_encode_string):
4542         * fns.c (Fbase64_decode_region):
4543         * frame.c:
4544         * frame.c (frame_matches_frame_spec):
4545         * frame.c (device_matches_device_spec):
4546         * frame.c (next_frame):
4547         * frame.c (previous_frame):
4548         * frame.c (Fnext_frame):
4549         * frame.c (Fprevious_frame):
4550         * frame.c (Fframe_property):
4551         * frame.c (Fset_frame_height):
4552         * frame.c (Fset_frame_size):
4553         * frame.h:
4554         * glyphs.c:
4555         * glyphs.c (if):
4556         * glyphs.c (decode_error_behavior_flag):
4557         * glyphs.c (Fmake_image_instance):
4558         * indent.c (Findent_to):
4559         * intl.c (Fignore_defer_gettext):
4560         * keymap.c (Fkeymapp):
4561         * keymap.c (Flookup_key):
4562         * lread.c:
4563         * lread.c (Fload_internal):
4564         * lread.c (Feval_buffer):
4565         * lread.c (Feval_region):
4566         * macros.c (Fexecute_kbd_macro):
4567         * marker.c (set_marker_internal):
4568         * marker.c (Fset_marker):
4569         * marker.c (set_marker_restricted):
4570         * marker.c (Fcopy_marker):
4571         * marker.c (noseeum_copy_marker):
4572         * menubar.c:
4573         * menubar.c (Fpopup_menu):
4574         * minibuf.c:
4575         * mule-charset.c (Fcharset_name):
4576         * mule-charset.c (Fchar_charset):
4577         * mule-charset.c (Fchar_octet):
4578         * mule-charset.c (Fsplit_char):
4579         * mule-wnnfns.c (Fwnn_open):
4580         * mule-wnnfns.c (Fwnn_dict_comment):
4581         * mule-wnnfns.c (Fwnn_quit_henkan):
4582         * mule-wnnfns.c (Fwnn_word_toroku):
4583         * mule-wnnfns.c (Fwnn_word_sakujo):
4584         * mule-wnnfns.c (Fwnn_word_use):
4585         * mule-wnnfns.c (Fwnn_hindo_set):
4586         * objects.c:
4587         * objects.c (Fmake_color_instance):
4588         * objects.c (Fmake_font_instance):
4589         * print.c (Fwrite_char):
4590         * process.c:
4591         * process.c (mark_process):
4592         * process.c (print_process):
4593         * process.c (get_process_from_usid):
4594         * process.c (Fprocessp):
4595         * process.c (Fprocess_live_p):
4596         * process.c (Fget_process):
4597         * process.c (Fget_buffer_process):
4598         * process.c (get_process):
4599         * process.c (Fprocess_id):
4600         * process.c (Fprocess_name):
4601         * process.c (Fprocess_command):
4602         * process.c (init_process_io_handles):
4603         * process.c (start_process_unwind):
4604         * process.c (Fstart_process_internal):
4605         * process.c (Fopen_multicast_group_internal):
4606         * process.c (Fset_process_window_size):
4607         * process.c (read_process_output):
4608         * process.c (send_process):
4609         * process.c (Fprocess_tty_name):
4610         * process.c (Fset_process_buffer):
4611         * process.c (Fprocess_buffer):
4612         * process.c (Fprocess_mark):
4613         * process.c (set_process_filter):
4614         * process.c (Fset_process_filter):
4615         * process.c (Fprocess_filter):
4616         * process.c (Fprocess_send_region):
4617         * process.c (Fprocess_send_string):
4618         * process.c (exec_sentinel):
4619         * process.c (Fset_process_sentinel):
4620         * process.c (Fprocess_sentinel):
4621         * process.c (status_notify):
4622         * process.c (Fprocess_status):
4623         * process.c (Fprocess_exit_status):
4624         * process.c (process_send_signal):
4625         * process.c (Fprocess_send_eof):
4626         * process.c (deactivate_process):
4627         * process.c (remove_process):
4628         * process.c (Fdelete_process):
4629         * process.c (kill_buffer_processes):
4630         * process.c (Fprocess_kill_without_query):
4631         * process.c (Fprocess_kill_without_query_p):
4632         * rangetab.c:
4633         * rangetab.c (Fget_range_table):
4634         * rangetab.c (Fput_range_table):
4635         * rangetab.c (Fremove_range_table):
4636         * rangetab.c (Fclear_range_table):
4637         * search.c:
4638         * search.c (Fskip_chars_forward):
4639         * search.c (Fskip_chars_backward):
4640         * search.c (Fskip_syntax_forward):
4641         * search.c (Fskip_syntax_backward):
4642         * search.c (search_command):
4643         * search.c (Freplace_match):
4644         * search.c (Fregexp_quote):
4645         * select.c (Fown_selection_internal):
4646         * select.c (Fselection_owner_p):
4647         * select.c (Fselection_exists_p):
4648         * select.c (Fget_selection_internal):
4649         * specifier.c:
4650         * symbols.c:
4651         * symbols.c (Fintern):
4652         * symbols.c (Fintern_soft):
4653         * symbols.c (Funintern):
4654         * symbols.c (Fapropos_internal):
4655         * symbols.c (Fset_default):
4656         * syntax.c:
4657         * syntax.c (Fsyntax_table_p):
4658         * syntax.c (Fcopy_syntax_table):
4659         * syntax.c (Fset_syntax_table):
4660         * syntax.c (Fchar_syntax):
4661         * syntax.c (syntax_match):
4662         * syntax.c (Fmatching_paren):
4663         * syntax.c (Fforward_word):
4664         * syntax.c (scan_lists):
4665         * syntax.c (Fscan_lists):
4666         * syntax.c (Fscan_sexps):
4667         * syntax.c (Fparse_partial_sexp):
4668         * toolbar.c (Fcheck_toolbar_button_syntax):
4669         * tooltalk.doc:
4670         * window.c:
4671         * window.c (Fwindowp):
4672         * window.c (Fwindow_live_p):
4673         * window.c (Fwindow_point):
4674         * window.c (Fdelete_window):
4675         * window.c (Fnext_window):
4676         * window.c (Fprevious_window):
4677         * window.c (Fother_window):
4678         * window.c (window_loop):
4679         * window.c (Fget_lru_window):
4680         * window.c (Fsplit_window):
4681         * window.c (Fenlarge_window):
4682         * window.c (Fenlarge_window_pixels):
4683         * window.c (Fshrink_window):
4684         * window.c (Fshrink_window_pixels):
4685         * window.c (change_window_height):
4686         * window.c (Fwindow_configuration_p):
4687         * window.c (Fcurrent_window_configuration):
4688         * window.h:
4689         * casefiddle.c (casify_object):
4690         * casefiddle.c (Fupcase):
4691         * casefiddle.c (Fdowncase):
4692         * casefiddle.c (Fcapitalize):
4693         * casefiddle.c (Fupcase_initials):
4694         * casefiddle.c (casify_region_internal):
4695         * casefiddle.c (casify_region):
4696         * casefiddle.c (Fupcase_region):
4697         * casefiddle.c (Fdowncase_region):
4698         * casefiddle.c (Fcapitalize_region):
4699         * casefiddle.c (Fupcase_initials_region):
4700         * casefiddle.c (Fupcase_word):
4701         * casefiddle.c (Fdowncase_word):
4702         * casefiddle.c (Fcapitalize_word):
4703         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
4704         Replace 0 with '\0' when working with bytes.
4705         Replace initial "(" with "\(" in docstrings.
4706
4707 2000-11-01  Martin Buchholz  <martin@xemacs.org>
4708
4709         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
4710
4711         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
4712
4713 2000-10-31  Martin Buchholz  <martin@xemacs.org>
4714
4715         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
4716
4717 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
4718
4719         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
4720         correctly.
4721
4722 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
4723
4724         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
4725         (inhibit_auto_save_session): New variable.
4726         (vars_of_fileio): Declare and initialize them.
4727         * fileio.c (Fdo_auto_save): Don't create session file if
4728         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
4729
4730 2000-10-31  Martin Buchholz  <martin@xemacs.org>
4731
4732         * sgiplay.c (play_internal): C++ compilability.
4733         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
4734         * callproc.c (Fold_call_process_internal):
4735         Remove unused vars `env', `first'.
4736         * scrollbar.c (update_scrollbar_instance):
4737         #### unused var `current_window'.
4738         * redisplay-tty.c: Put currently unused vars insert_mode_on,
4739         etc. within #ifdef NOT_YET.
4740         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
4741         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
4742         * specifier.c (specifier_instance):
4743         #### unused var `tag'.
4744         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
4745
4746 2000-10-27  Martin Buchholz  <martin@xemacs.org>
4747
4748         * fns.c (Fbutlast):
4749         * fns.c (list_sort):
4750         * fns.c (Ffillarray):
4751         * fns.c (bytecode_nconc2):
4752         * fns.c (Fnconc):
4753         * fns.c (mapcar1):
4754         * fns.c (Fmapconcat):
4755         Be pedantically 64-bit correct.  For the time when someone will
4756         want to have a list with length > 2**32.
4757
4758         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
4759         Work around MIPSpro compiler bug.
4760
4761         * process-unix.c (unix_kill_child_process): Add snarky comment.
4762         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
4763
4764         * config.h.in: Oops, _getpt ==> _getpty
4765
4766 2000-10-26  Martin Buchholz  <martin@xemacs.org>
4767
4768         * config.h.in:
4769         * regex.c:
4770         Use void*, not char*, as return type of alloca().
4771
4772         * alloc.c (free_marker): Side effect inside assert expression!
4773
4774 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
4775
4776         * mule-charset.c (Fset_charset_ccl_program): To check
4777         if the given ccl program is valid, use setup_ccl_program()
4778         instead of CHECK_VECTOR().
4779         (Fmake_charset): Likewise.
4780
4781 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
4782
4783         * faces.c (get_extent_fragment_face_cache_index):
4784         Fix cachel.merged_faces memory leak.
4785
4786 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
4787
4788         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
4789         Reset MSB of octets obtained by DECODE_SJIS
4790         because of the incompatibility with Emacs.
4791         (ccl_driver)<CCL_ENCODE_SJIS>:
4792         Set MSB of octets before passing them to
4793         ENCODE_SJIS because of the incompatibility
4794         with Emacs.
4795
4796 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
4797
4798         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
4799         (DECLARE_LRECORD): Undo the last change.
4800         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
4801
4802 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
4803
4804         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
4805         the implementation to lrecord_implementations_table.
4806
4807 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
4808
4809         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
4810         initial value of `lrecord_type_##c_name' and
4811         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
4812         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
4813         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
4814         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
4815         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
4816
4817 2000-10-17  Martin Buchholz  <martin@xemacs.org>
4818
4819         * miscplay.c (sndcnv8S_2mono):
4820         (sndcnv2monounsigned):
4821         (sndcnvULaw_2linear):
4822         (sndcnv16swap):
4823         Remove implementation-defined behavior.
4824
4825 2000-10-12  Martin Buchholz  <martin@xemacs.org>
4826
4827         * input-method-xlib.c: Warning suppression.
4828
4829 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
4830
4831         * mule-ccl.c: Sync up with Emacs 21.0.90.
4832         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
4833         Do nothing.
4834         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
4835         Likewise.
4836         (ccl_driver[WriteMultibyteChar2]): Bug fix.
4837         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
4838         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
4839         leading char belongs to official 2-dimensional charset.
4840         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
4841         write the given character as is.  Otherwise,
4842         if it is a multibyte char, convert it by
4843         non_ascii_set_charptr_emchar, then write it.
4844         (CCL_WRITE_STRING): Likewise.
4845         (ccl_get_compiled_code): New function.
4846         (setup_ccl_program): When ccl_prog is invalid,
4847         return -1.
4848         (Fregister_code_conversion_map): New function.
4849         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
4850
4851         * mule-ccl.h: Sync up with Emacs 21.0.90.
4852         (Fregister_ccl_program): export it.
4853
4854         * redisplay-msw.c (separate_textual_runs):
4855         If ccl program is not valid, don't do ccl conversion.
4856
4857         * redisplay-x.c (separate_textual_runs): Ditto.
4858
4859         * file-coding.c (Fmake_coding_system):
4860         When type is ccl and value is vector, register it
4861         with a proper symbol.  And checks whether the
4862         given ccl program is valid.
4863         (mule_decode): When calling ccl_driver, if src indicates
4864         NULL pointer, set an empty string instead.
4865         (mule_encode): Likewise.
4866
4867 2000-10-11  Martin Buchholz  <martin@xemacs.org>
4868
4869         The following large batch of changes gets us back to a state of
4870         C++ compilability.  Extbyte is now a char, which means that
4871         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
4872
4873         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
4874
4875         * sound.c (Fplay_sound): Type correctness.
4876
4877         * select-x.c (hack_motif_clipboard_selection): Type correctness.
4878         (x_get_window_property): Type correctness.
4879         (receive_incremental_selection): unsigned char ==> Extbyte
4880         (selection_data_to_lisp_data): unsigned char ==> Extbyte
4881         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
4882         (Fx_store_cutbuffer_internal): Type correctness.
4883
4884         * process-unix.c (try_to_initialize_subtty): Type correctness.
4885
4886         * objects-x.c (x_print_color_instance): Type correctness.
4887         (x_print_font_instance): Type correctness.
4888         (x_list_fonts): SExtbyte ==> Extbyte.
4889         (valid_x_font_name_p): SExtbyte ==> Extbyte.
4890         (x_find_charset_font): SExtbyte ==> Extbyte.
4891         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
4892         (truename_via_XListFonts): SExtbyte ==> Extbyte.
4893         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
4894         Use bufbyte_strcmp.
4895
4896         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
4897         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
4898         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
4899         (BYTE_C0_P): Use bit ops for char-signedness safety.
4900         (BYTE_C1_P): Use bit ops for char-signedness safety.
4901         (CHARSET_BY_LEADING_BYTE):
4902         (CHARSET_BY_ATTRIBUTES):
4903         Always use inline function.
4904         Use type_checking_assert.
4905         Hide chlook.
4906
4907         * mule-charset.c (non_ascii_charptr_copy_char):
4908         Modify to work with both ASCII and non-ASCII characters.
4909         Improve docs and variable names.
4910         Replace over-clever fall-through switch with a simple loop.
4911         (Lstream_get_emchar_1):
4912         Replace over-clever fall-through switch with a simple loop.
4913
4914         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
4915         Warning suppression.
4916
4917         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
4918         the return value of Lstream_getc, which could be EOF as well.
4919
4920         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
4921
4922         * lisp.h: Make Extbyte a char, not unsigned char, so that external
4923         APIs can be used on Extbytes without casts.  Risky!
4924         (SExtbyte): Remove.
4925         (UExtbyte): Remove.
4926
4927         * input-method-xlib.c (XIM_init_device):
4928         Use Xlib.h instead of IntrinsicP.h.
4929         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
4930         which will break in X11R7.
4931         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
4932         to call XRegisterIMInstantiateCallback with correct types.
4933
4934         * gui-x.c (button_item_to_widget_value): Type correctness.
4935
4936         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
4937
4938         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
4939         (xbm_instantiate_1): Type correctness.
4940         (BUILD_GLYPH_INST):  Type correctness.
4941
4942         * fileio.c (Fsubstitute_in_file_name): Type correctness.
4943
4944         * file-coding.c:
4945         (decode_coding_sjis):
4946         (decode_coding_big5):
4947         (decode_coding_ucs4):
4948         (decode_coding_utf8):
4949         (decode_coding_iso2022):
4950         (decode_coding_no_conversion):
4951         Make all decoding functions take an Extbyte * arg.
4952         (encode_coding_sjis):
4953         (encode_coding_big5):
4954         (encode_coding_ucs4):
4955         (encode_coding_utf8):
4956         (encode_coding_iso2022):
4957         (encode_coding_no_conversion):
4958         Make all encoding functions take a Bufbyte * arg.
4959         Use size_t instead of unsigned int for memory sizes.
4960         Only cast to unsigned char whenever dereferencing Extbyte *.
4961
4962         * doc.c (unparesseuxify_doc_string): Type correctness.
4963
4964         * console-x.c (split_up_display_spec):
4965         Rewrite without using details of internal string representation.
4966         (x_semi_canonicalize_device_connection): Type correctness.
4967
4968         * config.h.in:
4969         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
4970         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
4971         (HAVE_XFREE386): Removed.
4972
4973         * buffer.h (DEC_CHARPTR): `const' correctness.
4974         (bufbyte_strcmp): New.
4975         (bufbyte_memcmp): New.
4976
4977         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
4978
4979         * buffer.h (XCHAR_OR_CHAR_INT):
4980         Always use inline function.
4981         Remove redundant type checking assert() - XINT will abort quite nicely.
4982
4983 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
4984
4985         * search.c (Freplace_match): Set newtext to an empty string.
4986
4987 2000-10-10  Martin Buchholz  <martin@xemacs.org>
4988
4989         * s/decosf1-3.h: Remove #include of stropts.h
4990         * s/ptx.h: Remove #include of stropts.h
4991         * s/usg5-4.h: Remove #include of stropts.h
4992         * sysproc.h:
4993         * config.h.in:
4994         Use stropts.h, not sys/stropts.h.
4995         Use strtio.h, not sys/strtio.h.
4996
4997 2000-10-04  Martin Buchholz <martin@xemacs.org>
4998
4999         * XEmacs 21.2.36 is released.
5000
5001 2000-09-21  Andy Piper  <andy@xemacs.org>
5002
5003         * glyphs-x.c (x_redisplay_widget): make sure non-structural
5004         changes still involve copying the widget tree.
5005         (update_widget_face): make sure a change is register in the widget
5006         tree. Call update_tab_widget_face appropriately.
5007         (update_tab_widget_face): ditto.
5008         (x_tab_control_redisplay): make sure non-structural changes still
5009         involve copying the widget tree.
5010
5011 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
5012
5013         * lread.c (locate_file): Check the path element is non-nil.
5014
5015 2000-10-02  Martin Buchholz  <martin@xemacs.org>
5016
5017         * lisp.h: Warning suppression for SCO compilers.
5018
5019         * redisplay-tty.c (reset_tty_modes): Fix crash.
5020         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
5021
5022 2000-09-27  Martin Buchholz  <martin@xemacs.org>
5023
5024         Big signal/process handling overhaul.  Bugs fixed:
5025         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
5026         M-x comint-kill-subjob should work for both values nil and t of
5027         process-connection-type. It was broken on most platforms.
5028         Testing on Irix and Cygwin still needed.  Other plaforms tested.
5029         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
5030         * process-unix.c: Signal/Process handling overhaul.
5031         (pty_name): make 64 bytes, as `expect' does, for paranoia.
5032         (allocate_pty): Use all available modern methods of allocating
5033         ptys, falling back to old style BSD allocation as a last resort.
5034         Use allegedly more secure Unix98 pty allocation by default.
5035         (allocate_pty_the_old_fashioned_way): New. the last resort.
5036         (unix_create_process): Push ptem, ldterm, ttcompat where
5037         available.  Autoconfiscate.
5038         (try_to_initialize_subtty): New.
5039         (unix_kill_child_process): Proper signal handling for ptys on most
5040         platforms, using special knowledge of AIX, BSD, etc...
5041         (unix_create_process): Always disconnect_controlling_terminal() for
5042         subprocesses, whether using ptys or not.
5043         * process.h: Remove old getpt-dependent PTY code.
5044         * process.c (Fprocess_send_signal): New, obvious generic function.
5045         (decode_signal): New.
5046         (Finterrupt_process):
5047         (Fkill_process):
5048         (Fquit_process):
5049         (Fstop_process):
5050         (Fcontinue_process):
5051         (Fsignal_process): Use decode_signal.
5052         (process_send_signal):
5053         Many docstring corrections.
5054         Allow any signal to be sent to a process object.
5055         * config.h.in: Add symbols for big signal/process overhaul.
5056         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
5057         * sysproc.h: Include process-related headers, where available:
5058         sys/stropts.h sys/strtio.h pty.h libutil.h
5059         * s/irix4-0.h:
5060         * s/irix5-0.h:
5061         * s/cygwin32.h:
5062         * s/gnu.h:
5063         * s/linux.h:
5064         * s/hpux.h:
5065         * s/aix3-1.h:
5066         Remove old S&M pty stuff.
5067         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
5068         * systty.h: Simplify cpp hackery, improve comments.
5069         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
5070
5071         * editfns.c (Fformat_time_string):
5072         Be a little more paranoid with the return value of ctime.
5073
5074         * fileio.c (check_executable):
5075         (check_writable):
5076         Use symbolic constants X_OK, W_OK.
5077
5078         * console-x.c (split_up_display_spec): Fix a warning.
5079
5080 2000-10-02  Martin Buchholz  <martin@xemacs.org>
5081
5082         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
5083         * ntproc.c (sys_spawnve): make_string ==> build_string
5084         Small clarity improvements.
5085
5086 2000-09-30  Martin Buchholz  <martin@xemacs.org>
5087
5088         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
5089
5090         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
5091
5092         * config.h.in (HAVE_STRCASECMP): Remove.
5093
5094 2000-09-29  Martin Buchholz  <martin@xemacs.org>
5095
5096         * redisplay-output.c (redisplay_output_pixmap):
5097         Cleaner and possibly more 64-bit correct code.
5098
5099 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
5100
5101         * dumper.c (pdump_load_finish): move restoration of
5102         `noninteractive1' to emacs.c (main_1).
5103         * emacs.c (main_1): protect LISP-visible command-line flags
5104         from pdump_load().
5105
5106 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
5107
5108         * Makefile.in.in (versionclean):  Use EXE_TARGET and
5109         DUMP_TARGET instead of literal program names.
5110
5111 2000-09-20  Martin Buchholz  <martin@xemacs.org>
5112
5113         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
5114
5115 2000-09-19  Martin Buchholz  <martin@xemacs.org>
5116
5117         * *: Spelling mega-patch
5118
5119 2000-09-19  Martin Buchholz  <martin@xemacs.org>
5120
5121         * fns.c (bad_bad_turtle):
5122         Delete "Eek!" comment, since we fixed the bug to which it refers.
5123
5124 2000-09-16  Martin Buchholz  <martin@xemacs.org>
5125
5126         * alloca.c: Replace REGISTER with register.
5127
5128 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
5129
5130         * file-coding.c (ucs_to_char): Use countof.
5131
5132 2000-09-16  Martin Buchholz  <martin@xemacs.org>
5133
5134         * file-coding.c: (ucs_to_char):
5135         (complex_vars_of_file_coding):
5136         Use countof instead of sizeof.
5137         Use CHECK_NATNUM instead of CHECK_INT.
5138
5139         * sysdep.c (strcasecmp): Remove.
5140         * device-x.c (ascii_strcasecmp): New.
5141         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
5142         Avoid using non-standard non-portable strcasecmp.
5143
5144 2000-09-16  Martin Buchholz  <martin@xemacs.org>
5145
5146         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
5147         * font-lock.c: remove reference to emacsfns.h.
5148         * search.c: small doc improvement.
5149         * event-Xt.c: correct file names in comments.
5150         * console-x.h Correct file names in comments.
5151         * frame.c: Correct file names in comments.
5152         * event-stream.c: remove Energize from comments.
5153
5154 2000-09-15  Martin Buchholz  <martin@xemacs.org>
5155
5156         * symeval.h (DEFERROR_STANDARD):
5157         (DEFERROR):
5158         (DEFSYMBOL):
5159         (DEFSYMBOL_NO_DUMP):
5160         (DEFSYMBOL_MULTIWORD_PREDICATE):
5161         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
5162         (DEFKEYWORD):
5163         The construct &##name is not sensible C.
5164         Fixes compilation errors with Unixware native compiler.
5165
5166 2000-09-14  Martin Buchholz  <martin@xemacs.org>
5167
5168         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
5169         (next_frame_internal): Removed.  We now just have next_frame.
5170         (next_frame):
5171         Write a simpler and cleaner one-pass algorithm.
5172         Remove called_from_delete_device arg and #ifdefed-out code.
5173         (previous_frame):
5174         Renamed from prev_frame.  Update callers.
5175         Cleaned up to have an analogous implementation to next_frame.
5176         (other_visible_frames_internal): Remove the
5177         called_from_delete_device bogus arg, and hence, remove this
5178         function.  Just use other_visible_frames().
5179
5180         * window.c (Fnext_window):
5181         Prettify docstring.
5182         Since next_frame() is guaranteed to return a frame, remove check
5183         for nil inserted in previous patch.
5184         (Fprevious_window):
5185         Prettify docstring.
5186         Make code look more like Fnext_window.
5187         (window_loop):
5188         Respect the `console' arg when iterating through windows.
5189         Fixes bug: (get-buffer-window buffer t device) not respecting
5190         the `device' arg.
5191         This function needs more work, as others have pointed out.
5192
5193         * frame.h: Rename prev_frame to previous_frame.
5194         device_matches_console_spec no longer takes a `frame' arg.
5195
5196         * s/gnu.h:
5197         * s/linux.h:
5198         * s/hpux.h:
5199         Use EMACS_BLOCK_SIGNAL instead of sigblock.
5200         From "Golubev I. N." <gin@mo.msk.ru>.
5201
5202         * make-src-depend: Fix typo.
5203
5204 2000-09-13  Martin Buchholz  <martin@xemacs.org>
5205
5206         * window.c (Fnext_window):
5207         next_frame() might return nil, not a frame.
5208         Fixes this crash:
5209         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
5210
5211         * frame.c (next_frame_internal):
5212         We've passed a frame if we've passed its device.
5213         Fixes this crash:
5214         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
5215 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
5216
5217 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
5218
5219         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
5220         Allow option to suppress accelerators in menu/dialog items.
5221         (populate_or_checksum_helper): Pass dialog title through above.
5222
5223 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
5224
5225         * event-msw.c (mswindows_key_to_emacs_keysym):
5226         Add "pause" key, fix "menu" key.
5227
5228 2000-09-09  Martin Buchholz  <martin@xemacs.org>
5229
5230         * eval.c (reinit_vars_of_eval):
5231         Increase max_lisp_eval_depth to 1000,
5232         required for thai-xtis.el to byte-compile under some circumstances.
5233
5234 2000-09-04  Martin Buchholz  <martin@xemacs.org>
5235
5236         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
5237         From Kenichi Handa.
5238
5239 2000-09-01  Martin Buchholz  <martin@xemacs.org>
5240
5241         * make-src-depend: Make the generated Makefiles smaller.
5242
5243         * s/hpux.h (SETUP_SLAVE_PTY):
5244         Provide a %d in the format string for the errno argument.
5245
5246         * editfns.c (Ftemp_directory):
5247         Warning fix.
5248         Avoid buffer overrun on very long file name.
5249
5250         * input-method-xlib.c (XIM_init_device):
5251         6th parameter of XRegisterIMInstantiateCallback has different
5252         pointer types on different OSes, so simply cast to (void *).
5253
5254         * unexhp9k800.c: Warning fixes.  Fiddly changes.
5255
5256         * sysdll.c (dll_open):
5257         shl_load will hang hard if passed a NULL filename.
5258         Simply return NULL for compatibility with dlopen.
5259         * sysdll.c: Conform to XEmacs coding standards.
5260
5261         * sysdep.c (get_pty_max_bytes):
5262         Support pty input lines longer than 512 bytes on HP-UX 10.20.
5263
5264 2000-08-31  Martin Buchholz  <martin@xemacs.org>
5265
5266         * tooltalk.c: Add #include <syssignal.h>
5267
5268 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
5269
5270         * s/hpux.h: Don't use undefined function sigunblock().
5271
5272 2000-08-31  Martin Buchholz  <martin@xemacs.org>
5273
5274         * config.h.in: Add HAVE_BALLOON_HELP.
5275         * emacs.c: Use HAVE_BALLOON_HELP.
5276         * Makefile.in.in (x_objs):
5277         Make Balloon Help conditional on finding shape.h.
5278
5279 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
5280
5281         * syntax.c (regex_emacs_buffer_p): New variable.
5282         * syntax.h (regex_emacs_buffer_p): extern.
5283         * search.c (looking_at_1):
5284         (string_match_1):
5285         (fast_string_match):
5286         (search_buffer): Set regex_emacs_buffer_p.
5287         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
5288         when before_dot, at_dot, after_dot.
5289
5290 2000-08-23  Andy Piper  <andy@xemacs.org>
5291
5292         * gui-x.c (popup_selection_callback): Only set action_occurred
5293         when we really have an image instance.
5294         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
5295
5296 2000-08-23  Andy Piper  <andy@xemacs.org>
5297
5298         * gui-msw.c (mswindows_handle_gui_wm_command): set
5299         action_occurred.
5300         * gui-x.c (popup_selection_callback): ditto.
5301
5302         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
5303         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
5304         (struct Lisp_Image_Instance): add action_occurred flag.
5305
5306         * glyphs.c (redisplay_subwindow): use action_occurred flag.
5307         (image_instance_changed): ditto.
5308         (reset_frame_subwindow_instance_cache): only unmap windows - do
5309         not remove them from the cache also.
5310
5311         * glyphs-widget.c (tab_control_update): better debug.
5312         (progress_gauge_update): ditto.
5313         (layout_update): ditto.
5314         (layout_instantiate): ditto.
5315         (tab_control_order_only_changed): cope with null pending items.
5316
5317         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
5318         debug. Force selection of an item when an action occurred. Cope
5319         with null pending_items.
5320         (mswindows_progress_gauge_redisplay): better debug.
5321         * glyphs-x.c (x_tab_control_redisplay): ditto.
5322
5323         * redisplay.c (redisplay_frame): reset the frame cache if the
5324         frame is garbaged.
5325
5326         * window.c (Fset_window_configuration): potentially re-enable
5327         frame cache reset.
5328         (window_unmap_subwindows): need to finalize instances here since
5329         it is only used in mark_window_as_deleted.
5330
5331 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
5332
5333         * nas.c (SndOpenDataForReading):
5334         nas.c (WaveOpenDataForReading):
5335         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
5336         Somehow escaped from the 2000-08-14 patch.
5337
5338 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5339
5340         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
5341         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
5342
5343 2000-08-21  Andy Piper  <andy@xemacs.org>
5344
5345         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
5346         window if it is not already displayed.
5347
5348         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
5349         it is not already displayed.
5350
5351         * window.c (Fset_window_configuration): don't reset the frame
5352         cache.
5353
5354         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
5355         instances from the frame cache if we are actually finalizing them.
5356         (reset_frame_subwindow_instance_cache): reset frame cache only
5357         after unmapping everything.
5358         (map_subwindow): set displayed flag after mapping.
5359
5360 2000-08-21  Martin Buchholz  <martin@xemacs.org>
5361
5362         * data.c (indirect_function):
5363         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
5364
5365         * eval.c (function_argcount):
5366         Use original function when signaling errors.
5367
5368 2000-08-18  Andy Piper  <andy@xemacs.org>
5369
5370         * frame.c (delete_frame_internal): use new
5371         free_frame_subwindow_instances name.
5372
5373         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
5374         (add_tab_item): make return type correct.
5375         (mswindows_tab_control_instantiate): assert index of tab.
5376         (mswindows_tab_control_redisplay): Re-code to use
5377         gui_item_equal_sans_selected and gui_item_list_find_selected.
5378
5379         * glyphs-widget.c (tab_control_update): Correct comment.
5380
5381         * window.c (window_unmap_subwindows): use new
5382         unmap_subwindow_instance_cache_mapper.
5383         (window_unmap_subwindows_cache_mapper): deleted.
5384         (Fset_window_configuration): comparisons should now be with
5385         EQ. Preserve the subwindow instance cache across configuration
5386         changes.
5387         (allocate_window): ditto.
5388         (make_dummy_parent): ditto.
5389
5390         * glyphs.c (free_frame_subwindow_instances): rename from
5391         free_frame_subwindow_instance_cache. finalize all instances rather
5392         than just those in the display cache.
5393         (finalize_all_subwindow_instances): walk windows unmapping and
5394         finalizing subwindows.
5395         (unmap_subwindow_instance_cache_mapper): moved from
5396         window.c. Allow finalization as well as unmapping.
5397
5398         * gui.c (gui_item_list_find_selected): new function.
5399
5400         * gui.h (gui_item_list_find_selected): declare.
5401
5402         * glyphs-x.c (x_tab_control_redisplay): pick tab
5403         explicitly. Re-code to use gui_item_equal_sans_selected and
5404         gui_item_list_find_selected.
5405
5406         * glyphs-x.h: add lwlib-utils.h
5407
5408         * buffer.c (Frecord_buffer): undo previous change.
5409
5410 2000-08-09  Vin Shelton  <acs@xemacs.org>
5411
5412         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
5413         possible.  Create temporary files more securely.  The patch was
5414         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
5415         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
5416         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
5417         for details.
5418
5419 2000-08-07  Ben Wing  <ben@xemacs.org>
5420
5421         * getloadavg.c: remove duplicate (and windows-breaking)
5422         includes of fcntl.h and sys/file.h.
5423
5424         * nt.c: remove duplicate getloadavg() definition.
5425
5426         * sysdll.h (Qdll_filename_encoding): add missing stand-in
5427         encodings.
5428
5429 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
5430
5431         * eval.c (function_argcount): If function needs to be autoloaded
5432         actually use the loaded definition.
5433         GCPRO function.
5434
5435 2000-08-05  Ben Wing  <ben@xemacs.org>
5436
5437         * getloadavg.c: add prototype for getloadavg().  remove
5438         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
5439         of the code).  remove duplicate header includes.
5440
5441         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
5442
5443         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
5444         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
5445         useful load average.
5446
5447         * alloc.c (reinit_alloc_once_early): removed references to
5448         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
5449         the lisp vars are the only things referencing the malloc_sbrk_*
5450         vars, and they were already if 0'd out.  these vars only exist
5451         in the older malloc.c, which is basically unused, and they're
5452         only for informational purposes.
5453
5454         * m\*.h: removed useless VIRT_ADDR_VARIES.
5455
5456         * m\powerpc.h: removed stray NO_ARG_ARRAY.
5457
5458 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
5459
5460         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
5461         color if the image is a mono pixmap.
5462
5463 2000-07-30  Ben Wing  <ben@xemacs.org>
5464
5465         * Makefile.in.in (release):
5466         Remove stray @.
5467
5468         * buffer.c (directory_is_current_directory):
5469         * dired-msw.c (mswindows_get_files):
5470         * dired.c:
5471         * dired.c (Fdirectory_files):
5472         * dired.c (file_name_completion_stat):
5473         * dired.c (Ffile_attributes):
5474         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
5475         preprocessor tricks, to avoid problems on some machines
5476         (e.g. SCO).
5477
5478         * callproc.c (egetenv): GC docs.
5479
5480         * console-msw.h:
5481         * console-msw.h (struct mswindows_dialog_id):
5482         * lrecord.h (lrecord_type):
5483         New object for use with MSW dialogs.
5484
5485         * console.h (struct console_methods):
5486         New enable/disable frame methods, for proper modal dialogs.
5487
5488         * device-msw.c (msprinter_default_printer): Fix to follow
5489         proper Mule conventions.
5490
5491         * device-msw.c:
5492         * device-msw.c (signal_open_printer_error):
5493         * device-msw.c (msprinter_init_device):
5494         * device-msw.c (ensure_not_printing):
5495         * device-msw.c (plist_get_margin):
5496         * device-msw.c (Fmsprinter_select_settings):
5497         * device-msw.c (finalize_devmode):
5498         * device-msw.c (Fmsprinter_settings_despecialize):
5499         * device-msw.c (signal_enum_priner_error):
5500         * extents.c (decode_extent):
5501         * extents.c (decode_map_extents_flags):
5502         * extents.c (decode_extent_at_flag):
5503         * extents.c (Fextent_at):
5504         * extents.c (Fextents_at):
5505         * extents.c (symbol_to_glyph_layout):
5506         [[[[2]]]] Use structured errors.
5507
5508         * dialog-msw.c:
5509         * dialog-msw.c (mswindows_is_dialog_msg):
5510         * dialog-msw.c (mark_mswindows_dialog_id):
5511         * dialog-msw.c (dialog_proc):
5512         * dialog-msw.c (handle_question_dialog_box):
5513         * dialog-msw.c (syms_of_dialog_mswindows):
5514         Define new object to clean up marking; use it as a dialog identifier.
5515         Call new delete-dialog-box-hook.
5516
5517         * dialog-x.c (dbox_selection_callback):
5518         * dialog-x.c (dbox_descriptor_to_widget_value):
5519         * dialog-x.c (x_make_dialog_box_internal):
5520         Call new delete-dialog-box-hook.
5521         Return an id.
5522
5523         * dialog.c:
5524         * dialog.c (syms_of_dialog):
5525         * dialog.c (vars_of_dialog):
5526         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
5527
5528         * eval.c:
5529         * eval.c (signal_call_debugger):
5530         when noninteractive, output stack traces on the console instead
5531         of in a (never-seen) buffer.
5532
5533         * eval.c (signal_type_error):
5534         * eval.c (invalid_argument_2):
5535         * lisp.h:
5536         new funs for use w/structured errors.
5537
5538         * event-Xt.c:
5539         * event-Xt.c (x_to_emacs_keysym):
5540         * event-Xt.c (describe_event):
5541         * event-Xt.c (emacs_Xt_event_handler):
5542         * event-Xt.c (vars_of_event_Xt):
5543         * event-msw.c:
5544         * event-msw.c (mswindows_wnd_proc):
5545         * event-msw.c (vars_of_event_mswindows):
5546         rename {x,mswindows}-debug-events to debug-{}-events for
5547         consistency with other debug-foo variables.
5548
5549         * event-stream.c:
5550         document next-event more clearly.
5551
5552         * fileio.c (Ffile_name_directory):
5553         * fileio.c (Ffile_name_nondirectory):
5554         * fileio.c (Funhandled_file_name_directory):
5555         * fileio.c (file_name_as_directory):
5556         * fileio.c (Ffile_name_as_directory):
5557         * fileio.c (directory_file_name):
5558         * fileio.c (Fdirectory_file_name):
5559         * fileio.c (Fmake_temp_name):
5560         * fileio.c (Ffile_truename):
5561         * fileio.c (Fsubstitute_in_file_name):
5562         * fileio.c (expand_and_dir_to_file):
5563         * fileio.c (barf_or_query_if_file_exists):
5564         * fileio.c (check_executable):
5565         * fileio.c (Ffile_exists_p):
5566         * fileio.c (Ffile_writable_p):
5567         * fileio.c (Ffile_directory_p):
5568         * fileio.c (Ffile_regular_p):
5569         * fileio.c (Ffile_modes):
5570         * fileio.c (Ffile_newer_than_file_p):
5571         * fileio.c (Fverify_visited_file_modtime):
5572         * fileio.c (Fset_visited_file_modtime):
5573         * fileio.c (auto_save_1):
5574         (1). (2).
5575         fix up gcpro's.
5576
5577         * frame-msw.c:
5578         * frame-msw.c (mswindows_init_frame_1):
5579         * frame-msw.c (mswindows_enable_frame):
5580         * frame-msw.c (error_frame_unsizable):
5581         * frame-msw.c (msprinter_init_frame_1):
5582         * frame-msw.c (msprinter_init_frame_3):
5583         * frame-msw.c (console_type_create_frame_mswindows):
5584         (2).
5585         implement new enable/disable frame methods.
5586
5587         * frame-x.c:
5588         * frame-x.c (x_enable_frame):
5589         * frame-x.c (console_type_create_frame_x):
5590         implement new enable/disable frame methods.
5591
5592         * frame.c:
5593         * frame.c (Fdisable_frame):
5594         * frame.c (syms_of_frame):
5595         * frame.h (struct frame):
5596         implement new enable/disable frame methods/functions.
5597
5598         * general-slots.h:
5599         add initial-focus.
5600
5601         * glyphs-msw.c (mswindows_widget_instantiate):
5602         comment that initial-focus should be implemented.
5603
5604         * glyphs-widget.c:
5605         * glyphs-widget.c (check_valid_instantiator):
5606         * glyphs-widget.c (check_valid_orientation):
5607         * glyphs-widget.c (check_valid_tab_orientation):
5608         * glyphs-widget.c (check_valid_justification):
5609         * glyphs-widget.c (check_valid_border):
5610         * glyphs-widget.c (check_valid_callback):
5611         * glyphs-widget.c (check_valid_int_or_function):
5612         * glyphs-widget.c (check_valid_string_or_vector):
5613         * glyphs-widget.c (check_valid_item_list_1):
5614         * glyphs-widget.c (widget_validate):
5615         * glyphs-widget.c (combo_box_validate):
5616         * glyphs-widget.c (widget_instantiate):
5617         * glyphs-widget.c (syms_of_glyphs_widget):
5618         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
5619         * glyphs-widget.c (image_instantiator_combo_box):
5620         * glyphs-widget.c (image_instantiator_scrollbar):
5621         * glyphs-widget.c (image_instantiator_tab_control):
5622         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
5623         (2).
5624         support (unimplemented) keyword initial-focus.
5625         reindent long macros.
5626
5627         * glyphs-x.c (x_redisplay_widget):
5628         * glyphs-x.c (x_button_instantiate):
5629         * glyphs-x.c (x_button_redisplay):
5630         * glyphs-x.c (x_progress_gauge_instantiate):
5631         * glyphs-x.c (x_edit_field_instantiate):
5632         * glyphs-x.c (x_combo_box_instantiate):
5633         * glyphs-x.c (x_tab_control_instantiate):
5634         * glyphs-x.c (x_label_instantiate):
5635         * gui-x.c:
5636         * gui-x.c (button_item_to_widget_value):
5637         * gui-x.c (gui_items_to_widget_values_1):
5638         * gui-x.c (gui_item_children_to_widget_values):
5639         * gui-x.c (gui_items_to_widget_values):
5640         * gui-x.h:
5641         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
5642         add new flag to gui-parsing routines to indicate whether
5643         accelerator specs should be supported.
5644
5645         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
5646
5647         * glyphs.h (struct Lisp_Image_Instance):
5648         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
5649         add initial-focus flag.
5650
5651         * gui.c:
5652         * gui.c (syms_of_gui):
5653         * gui.c (vars_of_gui):
5654         clean up menu-no-selection-hook.
5655
5656         * gui.h:
5657         support delete-dialog-box-hook.
5658
5659         * lread.c (Fload_internal):
5660         * lread.c (locate_file_in_directory_mapper):
5661         (1).
5662
5663         * lrecord.h:
5664         * lrecord.h (struct toolbar_button):
5665         * lrecord.h (syms_of_toolbar):
5666         document how to create a new object.
5667
5668         * menubar-msw.c (mswindows_char_is_accelerator):
5669         may be called on frames w/o menus.
5670
5671         * menubar.c (vars_of_menubar):
5672         clean up :filter docs.
5673
5674         * nt.c (readdir):
5675         * ntproc.c:
5676         (1).
5677
5678         * process-nt.c:
5679         * process-nt.c (validate_signal_number):
5680         * process-nt.c (signal_cannot_launch):
5681         * process-nt.c (nt_create_process):
5682         * process-nt.c (nt_send_process):
5683         * process-nt.c (nt_kill_child_process):
5684         * process-nt.c (nt_open_network_stream):
5685         * process-nt.c (syms_of_process_nt):
5686         (2).
5687         delete quote-handling.  call new lisp code that does it better.
5688
5689         * process-unix.c (connect_to_file_descriptor):
5690         * process-unix.c (allocate_pty):
5691         * process-unix.c (unix_send_process):
5692         * process-unix.c (unix_kill_child_process):
5693         * process-unix.c (unix_open_network_stream):
5694         * process-unix.c (unix_open_multicast_group):
5695         (1). (2).
5696
5697         * process.c:
5698         * process.c (Fstart_process_internal):
5699         (2).  need to canonicalize process path even if absolute.
5700
5701         * select-msw.c (symbol_to_ms_cf):
5702         * select-msw.c (ms_cf_to_symbol):
5703         * select-msw.c (cf_is_autofreed):
5704         * select-msw.c (mswindows_destroy_selection):
5705         * select.c:
5706         * select.c (syms_of_select):
5707         * select.h:
5708         support dibv5, fix bugs. (from Mike Alexander)
5709
5710         * select.c (Fget_selection_internal):
5711         * select.c (select_convert_out):
5712
5713         * sysdep.c:
5714         * sysdep.c (xemacs_stat):
5715         renamed.
5716
5717         * sysdep.c (mkdir):
5718         * sysdep.c (rmdir):
5719         but keep original stat() here because we provide encapsulation
5720         around these funs.
5721
5722         * sysfile.h:
5723         * sysfile.h (fstat):
5724         remove stat garbage.
5725
5726         * syswindows.h:
5727         fix X/MSW conflict.
5728         don't include tchar.h.  it's inappropriate because it makes
5729         compile-time distinctions when we want runtime distinctions.
5730         (we provide our own tchar replacements)
5731
5732         * toolbar.c:
5733         use default object printer for toolbar-button.
5734
5735         * unexcw.c:
5736         make sure we don't encapsulate.
5737
5738         * window.c (vars_of_window):
5739         emphasize that temp-buffer-show-hook is obsolete.
5740
5741 2000-08-05  Martin Buchholz  <martin@xemacs.org>
5742
5743         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
5744         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
5745
5746         * events.c (Fevent_timestamp_lessp):
5747         Not 64-bit clean.  Use EMACS_INT, not int.
5748
5749 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
5750
5751         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
5752         unsigned int and changed the last enum to
5753         lrecord_type_last_built_in_type.
5754         (lrecord_implementations_table): changed prototype to know how
5755         long the array is supposed to be.
5756         (lrecord_type_count): new unsigned int to keep track of the
5757         current number of lisp lrecord types.
5758         (DEFINE_EXTERNAL_LRECORD):
5759         (DECLARE_EXTERNAL_LRECORD): Added these two for external
5760         dynamic-modules to declare new lisp types. They are the same
5761         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
5762         int for each new type, and increment lrecord_type_count by 1.
5763
5764         * alloc.c (lrecord_implementations_table): Changed to reference
5765         lrecord_type_last_built_in_type for the size of the array.
5766         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
5767
5768 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
5769
5770         * glyphs.h (check_valid_item_list): Renamed from
5771         check_valid_item_list_1.
5772
5773 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
5774
5775         * select.c (Qselect_coerce): New.
5776         * select.c (Vselection_coercion_alist): New.
5777         * select.c (syms_of_select): Declare.
5778         * select.c (get-selection-internal): Use it.
5779         Use the new select-coerce functionality.
5780
5781         * select.c (select_coerce): New.
5782         * select.h (select_coerce): Declare.
5783         New function to coerce one type of data into another.
5784
5785 2000-08-03  Martin Buchholz  <martin@xemacs.org>
5786
5787         * callproc.c (Fcall_process_internal):
5788         (Fcall_process_internal):
5789         * process-unix.c (unix_create_process):
5790         Save and restore the value of errno, so that error messages are accurate.
5791
5792 2000-08-01  Martin Buchholz  <martin@xemacs.org>
5793
5794         * elhash.c (print_hash_table):
5795         Fix printing of hash tables to also use `key-and-value' instead of `t'.
5796         Prettify docstrings and indentation.
5797
5798 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
5799
5800         * window.c (Fwindow_pixel_edges): Subtract frame border and
5801         gutter size.
5802
5803 2000-07-31  Andy Piper  <andy@xemacs.org>
5804
5805         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
5806         will acknowledge the change.
5807
5808         * glyphs.h: declare tab_control_order_only_changed.
5809
5810         * glyphs-x.c (x_tab_control_redisplay): use
5811         tab_control_order_only_changed.
5812
5813         * glyphs-widget.c (tab_control_order_only_changed): new function.
5814
5815         * glyphs-msw.c (mswindows_tab_control_redisplay): use
5816         tab_control_order_only_changed.
5817
5818         * gui.c (gui_item_equal_sans_selected): new function.
5819         (gui_item_equal): use it.
5820
5821         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
5822         :properties in favor of :items..
5823
5824         * glyphs-widget.c (check_valid_item_list): rename from
5825         check_valid_item_list_1.
5826         (check_valid_item_list_1): renamed.
5827         (combo_box_validate): deprecate :properties in favor of :items.
5828         (widget_instantiate): ditto.
5829         (tab_control_update): ditto.
5830         (image_instantiator_combo_box): ditto.
5831         (image_instantiator_tree_view): ditto.
5832         (image_instantiator_tab_control): ditto.
5833         (layout_post_instantiate): remove dead code.
5834
5835         * print.c (debug_print_no_newline): only write to debugger if in
5836         WIN32_NATIVE.
5837
5838         * elhash.c (Fmake_hash_table): update doc string.
5839
5840         * event-msw.c (mswindows_wnd_proc): don't allow processing of
5841         messages whilst in GC. This at least stops XEmacs crashing but has
5842         the potential for wierd behaviour.
5843
5844 2000-07-31  Martin Buchholz  <martin@xemacs.org>
5845
5846         * config.h.in:
5847         Make existence of s&m files optional.
5848
5849         * s/bsd386.h: Remove HAVE_GETLOADAVG.
5850         * s/freebsd.h: Remove HAVE_GETLOADAVG.
5851         * s/gnu.h: Remove HAVE_GETLOADAVG.
5852         * s/netbsd.h: Remove HAVE_GETLOADAVG.
5853         * s/sol2.h: Remove HAVE_GETLOADAVG.
5854         * lisp.h: Remove getloadavg() declaration.
5855         * fns.c:
5856         Include <sys/loadavg.h> if available.
5857         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
5858         * config.h.in:  Group together getloadavg()-related macros.
5859         Use only configure-time tests to detect getloadavg().
5860
5861 2000-07-30  Martin Buchholz  <martin@xemacs.org>
5862
5863         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
5864
5865 2000-07-25  Andy Piper  <andy@xemacs.org>
5866
5867         * syswindows.h: add tchar.h for native builds.
5868
5869         * frame.c (syms_of_frame): remove set-glyph-image.
5870
5871         * general-slots.h: add Qset_glyph_image.
5872
5873         * glyphs-widget.c (layout_update): add domain arg to
5874         set-glyph-image.
5875         (syms_of_glyphs_widget): remove set-glyph-image.
5876
5877 2000-07-23  Ben Wing  <ben@xemacs.org>
5878
5879         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
5880         Vpopup_frame_list.
5881
5882 2000-07-22  Andy Piper  <andy@xemacs.org>
5883
5884         * symsinit.h: add syms_of_win32().
5885
5886         * gui-msw.c (syms_of_gui_mswindows): remove
5887         Fmswindows_shell_execute.
5888         (Fmswindows_shell_execute): moved to win32.c.
5889
5890         * emacs.c (main_1): add syms_of_win32 ().
5891
5892         * win32.c (init_potentially_nonexistent_functions): rewrite in
5893         compiler-friendly terms.
5894         (Fmswindows_shell_execute): move here from gui-msw.c.
5895         (syms_of_win32): new.
5896
5897         * device-msw.c (Fmswindows_printer_list): clean up args to
5898         EnumPrinters.
5899         Don't include tchar under cygwin or mingw.
5900         (msprinter_default_printer): make cygwin-friendly.
5901
5902 2000-07-21  Andy Piper  <andy@xemacs.org>
5903
5904         * glyphs-widget.c (image_instantiator_tree_view): use tab
5905         control's update function.
5906         (layout_property): new function. Retrieve items.
5907
5908         * glyphs-msw.c (mswindows_tree_view_redisplay): new
5909         function. Re-populate the tree view from the pending items.
5910
5911         * glyphs.c (instantiate_image_instantiator): Make sure the domain
5912         is designated the parent if the domain is an image instance. This
5913         is needed so that dirtiness can be cascade up the hierarchy and
5914         thus for layout children to be redisplayed correctly.
5915         (allocate_image_instance): rename glyph -> parent.
5916
5917         * redisplay.h: change redisplay_output_layout signature.
5918
5919         * redisplay-msw.c (mswindows_output_display_block): use domain
5920         arg.
5921
5922         * redisplay-x.c (x_output_display_block): use domain arg.
5923
5924 2000-07-10  Andy Piper  <andy@xemacs.org>
5925
5926         * window.c (Fset_window_configuration): add comment.
5927
5928         * redisplay-output.c (compare_runes):
5929         (redisplay_output_subwindow): redisplay rather than update subwindow.
5930         (redisplay_output_layout): ditto.
5931
5932         * redisplay-msw.c (mswindows_frame_output_end):
5933         (mswindows_frame_output_end): make defer window pos optional.
5934
5935         * lisp.h: add Flast.
5936
5937         * glyphs.h (struct image_instantiator_methods): add dest_mask top
5938         normalize method. Change update method to be for changed
5939         instantiators. Add redisplay method. Change signature of layout
5940         method.
5941         (struct Lisp_Image_Instance): add instantiator.
5942         (IMAGE_INSTANCE_INSTANTIATOR): new.
5943         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
5944         (XIMAGE_INSTANCE_INSTANTIATOR): new.
5945         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
5946
5947         * glyphs.c:
5948         (find_instantiator_differences): new function.
5949         (Fset_instantiator_property): new convenience function.
5950         (check_image_instance_structure): strictly check for vector
5951         instantiators.
5952         (normalize_image_instantiator): make non-static.
5953         (instantiate_image_instantiator): pass on dest_mask and use new
5954         signatures for image_instance_layout and friends.
5955         (mark_image_instance): mark the instantiator. Mark the subwindow
5956         face not the widget face.
5957         (image_instance_equal): add instantiator.
5958         (image_instance_hash): ditto.
5959         (allocate_image_instance): ditto.
5960         (Fset_image_instance_property): removed.
5961         (Fimage_instance_file_name): ditto.
5962         (Fcolorize_image_instance): ditto.
5963         (image_instance_layout): add offsets to be set.
5964         (update_image_instance): new function. update an image instance
5965         from its changed instantiator.
5966         (inherit_normalize): add dest_mask.
5967         (xbm_normalize): ditto.
5968         (xface_normalize): ditto.
5969         (xpm_normalize): ditto.
5970         (text_update): set_property -> update.
5971         (image_instantiate): use the glyph identity as a hash key, not the
5972         instantiator.
5973         (glyph_width): use new image_instance_layout signature.
5974         (glyph_ascent): ditto.
5975         (glyph_descent): ditto.
5976         (glyph_height): ditto.
5977         (glyph_query_geometry): ressurrect.
5978         (glyph_layout): ditto.
5979         (redisplay_subwindow): update -> redisplay.
5980         (syms_of_glyphs): add Fset_instantiator_property.
5981         (image_instantiator_format_create): set_property -> update.
5982
5983         * glyphs-x.c:
5984         (autodetect_normalize): add dest_maks to signature.
5985         (x_redisplay_subwindow): update -> redisplay.
5986         (x_redisplay_widget): ditto.
5987         (x_button_redisplay): ditto.
5988         (x_progress_gauge_redisplay): ditto.
5989         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
5990         stacking order.
5991         (console_type_create_glyphs_x): update -> redisplay.
5992         (image_instantiator_format_create_glyphs_x): ditto.
5993
5994         * glyphs-widget.c:
5995         (check_valid_instantiator): disallow glyphs in the instantiator,
5996         they must now be vectors.
5997         (check_valid_instantiator_list): ditto.
5998         (glyph_instantiator_to_glyph): use internal symbol rather than
5999         intern.
6000         (widget_update): renamed from widget_set_property. Call cascaded
6001         update methods.
6002         (redisplay_widget): renamed from update_widget.
6003         (widget_layout): image_instance_layout now takes position as well
6004         as size.
6005         (widget_normalize): ditto.
6006         (widget_instantiate): ditto.
6007         (tab_control_query_geometry) ditto.:
6008         (tab_control_update): renamed from tab_control_set_property.
6009         (progress_gauge_update): set_property -> update.
6010         (layout_normalize): rewrite so that child instantiators are
6011         normalized also.
6012         (layout_update): new function. Create glyphs from the normalized
6013         children and cope with any other layout keywords. We do not
6014         instantiate children here that will be take care of by
6015         redisplay_output_layout.
6016         (layout_instantiate): call layout_update and not much else.
6017         (layout_post_instantiate): not sure whether this is needed
6018         anymore.
6019         (layout_query_geometry): query glyph geometry rather than
6020         image_instance geometry.
6021         (layout_layout): set offsets from pass in parameters. Use glyph
6022         geometry and layout functions rather than image instance ones.
6023         (native_layout_layout): ditto.
6024         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
6025         (image_instantiator_widget): set_property -> update.
6026         (image_instantiator_buttons): ditto.
6027         (image_instantiator_progress_guage): ditto.
6028         (image_instantiator_tab_control): ditto.
6029         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
6030         (image_instantiator_layout): add update method.
6031
6032         * glyphs-msw.c (bmp_normalize):
6033         (mswindows_resource_normalize): add dest_mask so that it can be
6034         proprogated by layout_normalize.
6035         (begin_defer_window_pos): make optional because it may not be the
6036         right thing to do and it introduces differences with X.
6037         (mswindows_unmap_subwindow): ditto.
6038         (mswindows_map_subwindow): ditto.
6039         (mswindows_redisplay_subwindow): renamed from
6040         mswindows_update_subwindow.
6041         (mswindows_redisplay_widget): ditto.
6042         (mswindows_button_redisplay): renamed from
6043         mswindows_button_update. Update is now what the instantiation
6044         function does for a changed instantiator.
6045         (mswindows_progress_gauge_instantiate): set the progress value
6046         here if appropriate.
6047         (mswindows_tab_control_redisplay): cope with re-ordering of the
6048         members of the tab widget by simply selecting the new top
6049         widget. This makes things appear ok if you click on a tab.
6050         (mswindows_combo_box_instantiate): image_instance_layout now takes
6051         position as well as size.
6052         (mswindows_progress_gauge_redisplay): renamed from
6053         mswindows_progress_gauge_update.
6054         (console_type_create_glyphs_mswindows): fix update -> redisplay.
6055         (image_instantiator_format_create_glyphs_mswindows): ditto.
6056
6057         * glyphs-eimage.c (jpeg_normalize):
6058         (gif_normalize):
6059         (png_normalize):
6060         (tiff_normalize): add dest_mask so that it can be proprogated by
6061         layout_normalize.
6062
6063         * elhash.c:
6064         (print_hash_table):
6065         (hash_table_weakness_validate):
6066         (decode_hash_table_weakness):
6067         (Fhash_table_weakness):
6068         (Fhash_table_type):
6069         (syms_of_elhash): use Ben's naming scheme for hashtable types..
6070
6071         * console.h (struct console_methods): move update_* to
6072         redisplay_*.
6073
6074 2000-07-20  Ben Wing  <ben@xemacs.org>
6075
6076         * *.[ch] (XSETOBJ): remove unused middle argument.
6077         lisp-disunion.h: correct wrap_object() to one argument.
6078
6079 2000-07-15  Ben Wing  <ben@xemacs.org>
6080
6081         * s/cygwin32.h:
6082         * s/cygwin32.h (CYGWIN_CONV_PATH):
6083         Add missing logb prototype for v1.1.
6084         Use post-b20 names and alias to pre-b20 names when pre-b20.
6085
6086         * s/windowsnt.h: [5].
6087
6088 2000-07-15  Ben Wing  <ben@xemacs.org>
6089
6090         * Makefile.in.in (x_objs):
6091         * Makefile.in.in (sheap_objs):
6092         * Makefile.in.in (objs):
6093         added win32.o, cosmetic cleanups.
6094
6095         * alloc.c (Fmake_byte_code):
6096         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
6097         etc. macros which declare their own args now.
6098
6099         * alloc.c (syms_of_alloc):
6100         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
6101
6102         * buffer.c:
6103         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
6104
6105         * buffer.c (Fget_file_buffer):
6106         Fixed GCPRO problem.
6107
6108         * buffer.c (get_truename_buffer):
6109         Fixed comment about GC checking.
6110
6111         * buffer.c (syms_of_buffer):
6112         Undeclared those dedicated frame funs.
6113         [2].
6114
6115         * buffer.h:
6116         Define convenience macros for internal/external conversions.
6117         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
6118         and Qenvironment_variable_encoding for cleaner code.
6119
6120         * bufslots.h:
6121         Remove dedicated-frame; in lisp.
6122
6123         * bytecode.c (funcall_compiled_function):
6124         [1].
6125
6126         * bytecode.c (syms_of_bytecode):
6127         [2].
6128
6129         * console-msw.c:
6130         * console-msw.c (mswindows_show_console): Rewrote.
6131
6132         * console-msw.c (Fmswindows_debugging_output): New.
6133         Sends to OutputDebugString (special MSWin debugger interface).
6134
6135         * console-msw.c (Fmswindows_message_box):
6136         Fixed stupid bugs so it works when called from kill-emacs.
6137
6138         * console-msw.c (syms_of_console_mswindows):
6139         Declare Fmswindows_debugging_output.
6140
6141         * console-msw.h:
6142         New MSWin prototypes.
6143
6144         * console-msw.h (struct mswindows_frame):
6145         New entry last-click-mods for improved button-modifier support.
6146
6147         * console-msw.h (FRAME_MSWINDOWS_POPUP):
6148         New struct entry `popup' with corresponding accessor.
6149
6150         * console-x.c:
6151         * console-x.c (split_up_display_spec):
6152         * console-x.c (get_display_arg_connection):
6153         * console-x.c (x_semi_canonicalize_console_connection):
6154         * console-x.c (x_canonicalize_device_connection):
6155         [[[6]]]: Change char to more specific type.
6156         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
6157
6158         * console-x.c (x_semi_canonicalize_console_connection):
6159         * console-x.c (x_canonicalize_device_connection):
6160         [[[9]]]: Fix up error signalling to use new structured error system.
6161
6162         * console-x.h:
6163         [[[4]]]: Define codesys aliases:
6164         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
6165         Qx_color_name_encoding, Qx_display_name_encoding.
6166
6167         * console.h (struct console_methods):
6168         New method make_dialog_box_internal supersedes older
6169         popup_dialog_box method.
6170
6171         * data.c:
6172         Define many new errors, part of new structured errors.
6173
6174         * data.c (init_errors_once_early):
6175         * data.c (syms_of_data):
6176         [2].
6177
6178         * device-msw.c (mswindows_init_device):
6179         [[[5]]]: Cleanup to support NT 3.51.
6180
6181         * device-msw.c (decode_devmode): Cleanup.
6182
6183         * device-msw.c (mswindows_handle_print_setup_dialog_box):
6184         * device-msw.c (mswindows_handle_print_dialog_box):
6185         * device-msw.c (mswindows_handle_page_setup_dialog_box):
6186         * device-msw.c (syms_of_device_mswindows):
6187         Delete the dialog box primitives recently introduced by Kirill and
6188         instead interface to general dialog box interface.
6189
6190         * device-x.c:
6191         * device-x.c (compute_x_app_name):
6192         * device-x.c (x_init_device):
6193         * device-x.c (Fx_valid_keysym_name_p):
6194         * device-x.c (Fx_set_font_path):
6195         [6].
6196         [7].
6197
6198         * device.h (wrap_device): New.
6199         First of its kind; meant to replace XSETDEVICE.
6200
6201         * dialog-msw.c: Many file-dialog symbols.
6202
6203         * dialog-msw.c (mswindows_register_popup_frame): New.
6204         * dialog-msw.c (mswindows_is_dialog_msg): New.
6205         For supporting kbd traversal in dialog boxes.
6206
6207         * dialog-msw.c (dialog_proc):
6208         Support hitting ESC in dialogs.
6209
6210         * dialog-msw.c (struct):
6211         Common dialog box errors.
6212
6213         * dialog-msw.c (handle_file_dialog_box): New.
6214         Add file dialog code.
6215
6216         * dialog-msw.c (handle_question_dialog_box):
6217         Redo existing code to support new question dialog syntax.
6218
6219         * dialog-msw.c (console_type_create_dialog_mswindows):
6220         We support new dialog console method.
6221
6222         * dialog-msw.c (syms_of_dialog_mswindows):
6223         * dialog-msw.c (vars_of_dialog_mswindows):
6224         New file dialog symbols, vars.
6225
6226         * dialog-x.c:
6227         * dialog-x.c (maybe_run_dbox_text_callback):
6228         * dialog-x.c (dbox_descriptor_to_widget_value):
6229         * dialog-x.c (x_make_dialog_box_internal):
6230         * dialog-x.c (console_type_create_dialog_x):
6231         Mule-ize entire file.
6232         Redo to support question dialog syntax.
6233         [6].
6234
6235         * dialog.c:
6236         * dialog.c (Fmake_dialog_box_internal):
6237         * dialog.c (syms_of_dialog):
6238         Kill old popup-dialog-box, replace with new primitive.
6239         Just call device method or signal error.
6240
6241         * eldap.c (Fldap_open):
6242         * eldap.c (Fldap_search_basic):
6243         * eldap.c (Fldap_add):
6244         * eldap.c (Fldap_modify):
6245         [1].
6246         [7].
6247
6248         * emacs.c:
6249         * emacs.c (make_arg_list_1):
6250         * emacs.c (make_arg_list):
6251         Mule-ize call to dll_init().
6252         [6].
6253         [8].
6254
6255         * emacs.c (make_argc_argv):
6256         * emacs.c (free_argc_argv):
6257         * emacs.c (init_cmdargs):
6258         * emacs.c (main_1):
6259         * emacs.c (Fkill_emacs):
6260         * emacs.c (Fdump_emacs):
6261         Update comments about what can be used in syms_* etc.
6262         Call init_win32() when necessary.
6263         Fix up MS Win dialog box in kill-buffer to actually work right.
6264         [7].
6265
6266         * eval.c:
6267         * eval.c (For):
6268         * eval.c (Fand):
6269         * eval.c (Fprogn):
6270         * eval.c (Fprog1):
6271         * eval.c (Fprog2):
6272         * eval.c (FletX):
6273         * eval.c (Flet):
6274         * eval.c (condition_case_3):
6275         * eval.c (Feval):
6276         * eval.c (function_argcount):
6277         * eval.c (funcall_lambda):
6278         [1].
6279
6280         * eval.c (type_error): New.
6281         * eval.c (maybe_type_error): New.
6282         * eval.c (continuable_type_error): New.
6283         * eval.c (maybe_continuable_type_error): New.
6284         * eval.c (type_error_with_frob): New.
6285         * eval.c (maybe_type_error_with_frob): New.
6286         * eval.c (continuable_type_error_with_frob): New.
6287         * eval.c (maybe_continuable_type_error_with_frob): New.
6288         New functions for use with structured errors.
6289
6290         * event-Xt.c:
6291         * event-Xt.c (x_event_to_emacs_event):
6292         Buttons are now modifiers too.
6293
6294         * event-Xt.c (emacs_Xt_current_event_timestamp):
6295         Implement new event method.
6296         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
6297
6298         * event-msw.c:
6299         * event-msw.c (ntpipe_shove_writer): [5].
6300         * event-msw.c (mswindows_enqueue_mouse_button_event):
6301         * event-msw.c (mswindows_drain_windows_queue):
6302         * event-msw.c (mswindows_wnd_proc): [7].
6303         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
6304         * event-msw.c (mswindows_modifier_state):
6305         Throughout: support new button modifiers.
6306
6307         * event-msw.c (emacs_mswindows_current_event_timestamp):
6308         Implement new event method.
6309         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
6310
6311         * event-stream.c:
6312         * event-stream.c (event_stream_current_event_timestamp): New.
6313         * event-stream.c (maybe_kbd_translate): New functionality.
6314         * event-stream.c (vars_of_event_stream):
6315         Document new kbd-translate-table functionality.
6316
6317         * event-stream.c (Fcurrent_event_timestamp): New.
6318         New primitive for use in fabricated events.
6319         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
6320
6321         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
6322
6323         * events.c:
6324         * events.c (Fmake_event):
6325         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
6326         [1].
6327         [9].
6328
6329         * events.c (format_event_object): fix gcc warnings.
6330
6331         * events.c (Fevent_timestamp): Document new primitives.
6332
6333         * events.c (TIMESTAMP_HALFSPACE): New.
6334
6335         * events.c (Fevent_timestamp_lessp): New.  New primitive for
6336         comparing timestamps correctly (half-space algorithm).
6337
6338         * events.c (Fevent_modifier_bits): Doc fix.
6339
6340         * events.c (Fevent_modifiers): Major doc addition.
6341         * events.c (event_x_y_pixel_internal): Typo fix.
6342         * events.c (syms_of_events): Declare new primitives.
6343
6344         * events.h:
6345         Update long comment for button modifiers, timestamps.
6346
6347         * events.h (struct event_stream):
6348         New current_event_timestamp method.
6349
6350         * extents.c:
6351         * extents.c (extent_in_region_p):
6352         * extents.c (decode_extent):
6353         * extents.c (Fset_extent_parent):
6354         * extents.c (decode_map_extents_flags):
6355         Fix gcc warnings.
6356         [9].
6357
6358         * extents.c (struct extent_at_arg):
6359         * extents.c (decode_extent_at_flag):
6360         * extents.c (extent_at_mapper):
6361         * extents.c (extent_at_bytind):
6362         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
6363         * extents.c (Fextents_at): New primitive. [9].
6364         * extents.c (symbol_to_glyph_layout): [9].
6365         Support new primitive `extents-at'.
6366
6367
6368         * extents.c (get_text_property_bytind):
6369         extent_at_bytind has another arg.
6370         [9].
6371
6372         * extents.c (syms_of_extents): New primitive.
6373
6374         * file-coding.c (Fmake_coding_system): [1].
6375         * file-coding.c (subsidiary_coding_system): fix gcc warning
6376         * file-coding.c (syms_of_file_coding): [2].
6377
6378         * fileio.c (Fexpand_file_name):
6379         * fileio.c (Fsysnetunam):
6380         * fileio.c (Ffile_exists_p):
6381         * fileio.c (Ffile_executable_p):
6382         * fileio.c (Fverify_visited_file_modtime):
6383         Clean up GCPROing.
6384
6385         * fileio.c (syms_of_fileio): [2].
6386
6387         * filelock.c (lock_file_1):
6388         * filelock.c (current_lock_owner):
6389         * filelock.c (lock_if_free):
6390         * filelock.c (lock_file):
6391         * filelock.c (unlock_file):
6392         Clean up GCPROing.
6393
6394         * fns.c (concat): Fix gcc warning.
6395
6396         * fns.c (Fmember):
6397         * fns.c (Fold_member):
6398         * fns.c (Fmemq):
6399         * fns.c (Fold_memq):
6400         * fns.c (memq_no_quit):
6401         * fns.c (Fassoc):
6402         * fns.c (Fold_assoc):
6403         * fns.c (Fassq):
6404         * fns.c (Fold_assq):
6405         * fns.c (assq_no_quit):
6406         * fns.c (Frassoc):
6407         * fns.c (Fold_rassoc):
6408         * fns.c (Frassq):
6409         * fns.c (Fold_rassq):
6410         * fns.c (rassq_no_quit):
6411         * fns.c (Fdelete):
6412         * fns.c (Fold_delete):
6413         * fns.c (Fdelq):
6414         * fns.c (Fold_delq):
6415         * fns.c (delq_no_quit):
6416         * fns.c (Fremassoc):
6417         * fns.c (Fremassq):
6418         * fns.c (remassq_no_quit):
6419         * fns.c (Fremrassoc):
6420         * fns.c (Fremrassq):
6421         * fns.c (remrassq_no_quit):
6422         * fns.c (Freverse):
6423         * fns.c (mapcar1):
6424         [1].
6425
6426         * frame-msw.c (mswindows_init_frame_1):
6427         * frame-msw.c (mswindows_delete_frame):
6428         Register popups with dialog code so keyboard traversing works.
6429
6430         * frame-tty.c (tty_raise_frame_no_select): [1].
6431
6432         * frame-x.c:
6433         * frame-x.c (x_set_frame_text_value):
6434         * frame-x.c (x_set_frame_properties):
6435         * frame-x.c (x_create_widgets):
6436         [7].
6437
6438         * frame.c:
6439         * frame.c (Fmouse_pixel_position): Minor doc fixes.
6440
6441         * frame.h (wrap_frame): New.
6442         Macro like wrap_device.
6443
6444         * general.c:
6445         * general.c (SYMBOL):
6446         * general.c (syms_of_general):
6447         Major reorg.  This is now just a wrapper and symbols themselves
6448         are listed in general-slots.h.
6449
6450         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
6451         * glyphs-msw.c (mswindows_resource_instantiate): [5].
6452
6453         * glyphs-msw.c (mswindows_native_layout_instantiate):
6454         Add DS_CONTROL so keyboard traversal will work.
6455
6456         * glyphs-widget.c:
6457         * glyphs-widget.c (syms_of_glyphs_widget):
6458         Move some symbols to general-slots.h.
6459
6460         * glyphs-x.c:
6461         * glyphs-x.c (xbm_instantiate_1):
6462         * glyphs-x.c (x_xbm_instantiate):
6463         * glyphs-x.c (x_xface_instantiate):
6464         * glyphs-x.c (autodetect_instantiate):
6465         * glyphs-x.c (cursor_font_instantiate):
6466         * glyphs-x.c (x_update_widget):
6467         * glyphs-x.c (x_widget_instantiate):
6468         * glyphs.c (bitmap_to_lisp_data):
6469         * glyphs.c (pixmap_to_lisp_data):
6470         [7].
6471
6472         * glyphs.c (syms_of_glyphs):
6473         [2].
6474
6475         * gui-x.c:
6476         * gui-x.c (print_widget_value):
6477         * gui-x.c (menu_separator_style_and_to_external):
6478         * gui-x.c (add_accel_and_to_external):
6479         * gui-x.c (button_item_to_widget_value):
6480         * gui-x.c (gui_items_to_widget_values_1):
6481         * gui-x.c (gui_items_to_widget_values):
6482         * gui-x.c (syms_of_gui_x):
6483         * gui-x.c (vars_of_gui_x):
6484         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
6485         [9].
6486
6487         * gui-x.h:
6488         Muleize, prototype changes matching gui-x.c.
6489
6490         * gui.c:
6491         * gui.c (separator_string_p):
6492         * gui.c (gui_item_add_keyval_pair):
6493         * gui.c (make_gui_item_from_keywords_internal):
6494         * gui.c (signal_too_long_error):
6495         * gui.c (parse_gui_item_tree_item):
6496         * gui.c (syms_of_gui):
6497         * gui.c (vars_of_gui):
6498         * gui.h:
6499         menu-no-selection-hook moved here (used by MSWin).
6500         Move some symbols to general-slots.h.
6501         [6].
6502         [9].
6503
6504         * insdel.c (get_buffer_pos_char):
6505         * insdel.c (get_buffer_range_char):
6506         Add GC comments.
6507
6508         * keymap.c (keymap_lookup_directly):
6509         * keymap.c (keymap_store):
6510         * keymap.c (ensure_meta_prefix_char_keymapp):
6511         * keymap.c (describe_map):
6512         * keymap.h:
6513         Support new button modifiers.
6514
6515         * lisp-disunion.h (wrap_object):
6516         * lisp-disunion.h (XSETOBJ):
6517         Rename make_obj to wrap_object.
6518
6519         * lisp-union.h:
6520         * lisp-union.h (make_int):
6521         * lisp-union.h (make_char):
6522         Support wrap_object.
6523
6524         * lisp.h:
6525         * lisp.h (LIST_LOOP):
6526         * lisp.h (EXTERNAL_LIST_LOOP):
6527         * lisp.h (LIST_LOOP_2):
6528         * lisp.h (EXTERNAL_LIST_LOOP_1):
6529         * lisp.h (EXTERNAL_LIST_LOOP_2):
6530         * lisp.h (EXTERNAL_LIST_LOOP_3):
6531         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
6532         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
6533         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
6534         * lisp.h (EXTERNAL_ALIST_LOOP_5):
6535         * lisp.h (EXTERNAL_ALIST_LOOP_6):
6536         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
6537         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
6538         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
6539         * lisp.h (struct Lisp_Symbol):
6540         * lisp.h (maybe_continuable_error_with_frob):
6541         Fix up section comments.
6542         Add new types for char to indicate usage.
6543         Delete symbols auto-generated from general-slots.h.
6544         Add prototypes for structured error functions.
6545         Add long comments describing looping macros and change interface
6546         so that lvalues are automatically declared.
6547         Add NO_DECLARE macro in case callers want to declare lvalues
6548         themselves.
6549
6550         * lread.c (read_syntax_error):
6551         * lread.c (continuable_read_syntax_error):
6552         * lread.c (read_structure):
6553         * lread.c (sequence_reader):
6554         * lread.c (read_list_conser):
6555         * lread.c (read_compiled_function):
6556         Rename syntax_error and continuable_syntax_error to avoid clash
6557         with same-named structured error functions.
6558
6559         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
6560         * menubar-msw.c (populate_menu_add_item):
6561         * menubar-msw.c (populate_or_checksum_helper):
6562         [5].
6563         [9].
6564
6565         * menubar-x.c:
6566         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
6567         Mule-ize whole file.
6568
6569         * menubar.c (Fnormalize_menu_item_name): Add optimization.
6570
6571         * mule-charset.c (Fmake_charset):
6572         * mule-wnnfns.c (Fwnn_set_param):
6573         [1].
6574
6575         * ntproc.c (create_child):
6576         * ntproc.c (Fwin32_set_current_locale):
6577         Add comments portending doom.
6578
6579         * objects-msw.c:
6580         * objects-msw.c (old_font_enum_callback_2):
6581         * objects-msw.c (font_enum_callback_1):
6582         * objects-msw.c (mswindows_enumerate_fonts):
6583         [5].
6584
6585         * objects-x.c:
6586         * objects-x.c (allocate_nearest_color):
6587         * objects-x.c (x_parse_nearest_color):
6588         * objects-x.c (x_initialize_color_instance):
6589         * objects-x.c (x_print_color_instance):
6590         * objects-x.c (x_finalize_color_instance):
6591         * objects-x.c (x_valid_color_name_p):
6592         * objects-x.c (x_initialize_font_instance):
6593         * objects-x.c (x_print_font_instance):
6594         * objects-x.c (valid_x_font_name_p):
6595         * objects-x.c (truename_via_FONT_prop):
6596         * objects-x.c (truename_via_random_props):
6597         * objects-x.c (truename_via_XListFonts):
6598         * objects-x.c (x_font_truename):
6599         * objects-x.c (x_font_instance_truename):
6600         * objects-x.c (x_font_instance_properties):
6601         * objects-x.c (x_list_fonts):
6602         * objects-x.c (x_find_charset_font):
6603         Mule-ize entire file.
6604         [7].
6605
6606         * objects-x.h:
6607         Mule-verify.
6608
6609         * print.c:
6610         * print.c (std_handle_out_external):
6611         * print.c (debug_print_no_newline):
6612         * print.c (syms_of_print):
6613         Output to all debugger kinds in debug-print.
6614         Fix console-output code under MSWin to actually work.
6615
6616         * process-nt.c (send_signal):
6617         * process-nt.c (nt_create_process):
6618         Use newer Unicode macros.
6619
6620         * process-unix.c (unix_create_process):
6621         * process-unix.c (unix_canonicalize_host_name):
6622         * process-unix.c (unix_open_network_stream):
6623         [7].
6624
6625         * scrollbar-x.c:
6626         Mule-verify.
6627
6628         * search.c (syms_of_search):
6629         [2].
6630
6631         * select-msw.c (mswindows_destroy_selection):
6632         Use LIST_LOOP_2.
6633
6634         * select-x.c (symbol_to_x_atom):
6635         [7].
6636
6637         * select.c (syms_of_select):
6638         [2].
6639
6640         * sound.c (Fplay_sound_file):
6641         [7].
6642
6643         * specifier.c:
6644         * specifier.c (decode_specifier_type):
6645         * specifier.c (Fvalid_specifier_locale_type_p):
6646         * specifier.c (check_valid_locale_or_locale_type):
6647         * specifier.c (decode_locale):
6648         * specifier.c (decode_locale_type):
6649         * specifier.c (decode_locale_list):
6650         * specifier.c (check_valid_domain):
6651         * specifier.c (decode_specifier_tag_set):
6652         * specifier.c (Fcanonicalize_tag_set):
6653         * specifier.c (Fdefine_specifier_tag):
6654         * specifier.c (Fspecifier_tag_predicate):
6655         * specifier.c (check_valid_inst_list):
6656         * specifier.c (check_valid_spec_list):
6657         * specifier.c (decode_how_to_add_specification):
6658         * specifier.c (check_modifiable_specifier):
6659         * specifier.c (specifier_add_spec):
6660         * specifier.c (boolean_validate):
6661         * specifier.c (display_table_validate):
6662         [9].
6663
6664         * specifier.c (syms_of_specifier):
6665         Move some symbols to general-slots.h.
6666         [2].
6667
6668         * symbols.c:
6669         * symbols.c (Fmapatoms):
6670         * symbols.c (Fapropos_internal):
6671         Add GCPROs.
6672
6673         * symbols.c (set_default_buffer_slot_variable):
6674         * symbols.c (set_default_console_slot_variable):
6675         [1].
6676
6677         * symbols.c (defsymbol_massage_name_1):
6678         * symbols.c (defkeyword_massage_name):
6679         * symbols.c (deferror_1):
6680         * symbols.c (deferror):
6681         * symbols.c (deferror_massage_name_and_message):
6682         * symeval.h:
6683         * symeval.h (DEFSYMBOL):
6684         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
6685
6686         * symbols.c (syms_of_symbols):
6687         [2].
6688
6689         * symsinit.h:
6690         * symsinit.h (init_win32): New.
6691         Also new is syms_of_dialog_mswindows.
6692
6693         * syswindows.h:
6694         Add new Unicode macros, missing Cygwin wide-char functions,
6695         convenience conversion macros for Qmswindows_tstr, macros for
6696         encapsulating required MSWin <-> Cygwin filename conversions,
6697         prototype for dynamically-extracted (not in NT 3.51) functions.
6698
6699         * toolbar-x.c:
6700         Mule-verify.
6701
6702         * tooltalk.c (Fadd_tooltalk_message_arg):
6703         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
6704         * tooltalk.c (Fadd_tooltalk_pattern_arg):
6705         [7].
6706
6707         * tooltalk.c (syms_of_tooltalk):
6708         [2].
6709
6710         * unexnt.c:
6711         * unexnt.c (unexec):
6712         Fix up headers, declaration of unexec() to be more standard.
6713
6714 2000-07-20  Martin Buchholz  <martin@xemacs.org>
6715
6716         * offix.h: Revert change to guard macros - they're used in offix.c!
6717
6718 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6719
6720         * lisp.h: Defsubred Fdelete.
6721
6722         * console-msw.h:  (msprinter_default_printer): Added.
6723
6724         * console-msw.c (msprinter_canonicalize_console_connection):
6725         (msprinter_canonicalize_device_connection): Added.
6726
6727         * device-msw.c (msprinter_default_printer):
6728         (Fmswingows_get_default_printer):
6729         (signal_enum_priner_error):
6730         (Fmswingows_printer_list): Added.
6731
6732 2000-07-19  Martin Buchholz <martin@xemacs.org>
6733
6734         * XEmacs 21.2.35 is released.
6735
6736 2000-07-19  Martin Buchholz  <martin@xemacs.org>
6737
6738         * select-x.c (x_handle_selection_request):
6739         Text selected in xemacs and pasted into xterm failed to appear.
6740         Spelling fixes and cosmetic changes.
6741
6742 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6743
6744         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
6745         XEmacs frame (fix for doubling chars in dialog boxes).
6746
6747 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
6748
6749         * select.c (select_convert_in, select_convert_out):
6750         Don't call intern() every time.
6751
6752         * select.c (Qselect_convert_in, Qselect_convert_out): New.
6753         * select.c (vars_of_select): Initialise them.
6754
6755 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
6756
6757         * select.c (selection-coercible-types): New.
6758
6759         * select.c (own-selection-internal):
6760         * select.c (get-selection-internal):
6761         MULE bug fix - these should default to COMPOUND_TEXT and not
6762         STRING for MULE. I think.
6763
6764         * select.c (select_convert_out): Use selection-coercible-types
6765         to find types that we can attempt to perform coercions on.
6766
6767 2000-07-18  Martin Buchholz  <martin@xemacs.org>
6768
6769         * mule-wnnfns.c:
6770         * mule-canna.c:
6771         Add coding: cookie to identify encoding.
6772
6773         * mule-canna.c (CANNA_mode_keys): make static.
6774         Use proper prototypes, even for functions of no arguments.
6775         Remove external prototype for Fding().
6776
6777         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
6778
6779         * select.c (syms_of_select): Add missing DEFSUBR.
6780
6781 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
6782
6783         * select.c (get_selection_internal, own_selection_internal):
6784         Make the type default to STRING, rather than placing a nil type
6785         into Vselection_alist.
6786
6787 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
6788
6789         * gpmevent.c (tty_selection_exists_p):
6790         * gpmevent.c (tty_own_selection):
6791         Updated parameter lists.
6792
6793 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
6794
6795         * select.h (selection-alist): Removed declaration.
6796
6797         * select.h (get_local_selection):
6798         * select.c (get_local_selection):
6799         Made static.
6800
6801         * select.h (convert_selection): Removed declaration.
6802         * select.c (convert_selection): Removed.
6803         This function belongs in Lisp.
6804
6805         * select.h (select_convert_in): Declare.
6806         * select.h (select_convert_out): Declare.
6807         * select.c (select_convert_in): New.
6808         * select.c (select_convert_out): New.
6809         New conversion functions for other files to call.
6810
6811         * select.h (select_notify_buffer_kill): Declare.
6812         * select.c (select_notify_buffer_kill): New.
6813         New functions that get called from kill-buffer.
6814
6815         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
6816         X-specific lisp code.
6817
6818         * select.h: Declare some of the lisp-visible functions for
6819         external use.
6820
6821         * select.c (clean_local_selection_data): Removed. This was
6822         a disgusting function, and previously should have been in
6823         select-x.c in any case. The functionality is now provided
6824         in select-convert-from-integer (select.el).
6825
6826         * select.c (available-selection-types): Fixed stupidity where
6827         INTEGER and ATOM got added twice. Also add STRING when we see an
6828         extent.
6829
6830         * select.c (get-selection-internal): Removed symbol stripping. No
6831         longer causes conversion when data comes from the internal cache.
6832
6833         * select.c (syms_of_select): Added new functions.
6834
6835         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
6836         error checking - previously this called abort!
6837
6838         * select-x.c (x_own_selection): Changed comment.
6839
6840         * select-x.c (x_handle_selection_request): Use select_convert_out.
6841         Don't mess with selection-alist; it's an internal variable of select.c.
6842
6843         * select-x.c (x_get_foreign_selection): Use select_convert_in.
6844
6845         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
6846         rather than messing with selection-alist.
6847
6848         * select-msw.c (mswindows_get_foreign_selection):
6849         Use TO_INTERNAL_FORMAT rather than hacking.
6850
6851 2000-07-14  Martin Buchholz  <martin@xemacs.org>
6852
6853         * process-unix.c (unix_open_multicast_group):
6854         (unix_open_multicast_group): Remove useless casts.
6855
6856 2000-07-13  Martin Buchholz  <martin@xemacs.org>
6857
6858         * sound.c (Fplay_sound): Fix `unused variable' warning.
6859
6860         * emacs.c (main): Use correct type for _environ on SCO5.
6861
6862 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
6863
6864         * console.h (own_selection_method):
6865         * console.h (selection_exists_p_method):
6866         * console.h (available_selection_types_method): New.
6867         * console.h (register_selection_data_type_method): New.
6868         * console.h (selection_data_type_name): New.
6869
6870         * console-msw.h (mswindows_destroy_selection): Declare it.  New
6871         function & alist to track GlobalAlloc()'d handles that need
6872         releasing when the clipboard data gets replaced or emptied.
6873
6874         * event-msw.c (mswindows_wnd_proc): Call it.
6875
6876         * lisp.h, general.c (Qappend): New symbol representing a
6877         `how-to-add' mode.
6878
6879         * select.c (own-selection-internal):
6880         * select.c (selection-exists-p):
6881         * select.c (available-selection-types): New.
6882         * select.c (register-selection-data-type): New.
6883         * select.c (selection-data-type-name): New.  New functions to deal
6884         with device-specific selection data formats.
6885         * select.c (selection-converter-out-alist): Renamed.
6886         * select.c (selection-converter-in-alist): New.
6887         * select.c (selection-appender-alist): New.  Added new alists.
6888         * select.c (syms_of_select, vars_of_select): Added new symbols &
6889         variables.
6890         * select.c (get_local_selection): Split.
6891         * select.c: Removed spurious type checking - selections may now be
6892         of any type, not just strings.
6893         * select.c (own-selection-internal):
6894
6895         * select.h, select.c (convert_selection): New. Created
6896         convert_selection() function based on get_local_selection().
6897         * select.h, select.c (QCF_*): New symbols representing mswindows
6898         clipboard formats.
6899         * select.h, select.c (Qreplace_all, Qreplace_existing): New
6900         symbols representing `how-to-add' modes.
6901
6902         * select-msw.c (x_sym_p): New.
6903         * select-msw.c (symbol_to_ms_cf): New.
6904         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
6905         symbols & clipboard formats. Can also handle string names.
6906         * select-msw.c (mswindows_own_selection):
6907         * select-msw.c (mswindows_selection_exists_p):
6908         Added `data-type' parameter. Use it.
6909         * select-msw.c (mswindows_available_selection_types): New.
6910         * select-msw.c (mswindows_register_selection_data_type): New.
6911         * select-msw.c (mswindows_selection_data_type_name): New.
6912         * select-msw.c (mswindows_own_selection):
6913         * select-msw.c (mswindows_get_foreign_selection):
6914         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
6915         * select-msw.c (console_create_select_mswindows): Added new methods.
6916         * select-msw.c (mswindows_destroy_selection): New.
6917         * select-msw.c (Vhandle_alist): New list.
6918         * select-msw.c (mswindows_own_selection):
6919
6920         * select-x.c (x_own_selection):
6921         * select-x.c (x_selection_exists_p):
6922         * select-x.c: Added some comments about maybe using new
6923         functionality.
6924         * select-x.c (x_own_selection):
6925
6926         * specifier.c: Remove definition of Qappend (now in general.c)
6927         * specifier.c (syms_of_specifier): Remove Qappend.
6928
6929 2000-07-12  Martin Buchholz  <martin@xemacs.org>
6930
6931         * config.h.in: Add socklen_t.
6932
6933         * s/decosf4-0.h: No special compiler flags needed or desired.
6934         In particular, undefine _BSD for DEC OSF 4.0.
6935
6936 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6937
6938         * redisplay-msw.c (msprinter_frame_output_end): Added.
6939         (console_type_create_redisplay_mswindows): Referred the above.
6940
6941         * frame.c (setup_frame_without_minibuffer): Do not create a
6942         default minibuffer frame on a printer device.
6943
6944         * frame-msw.c (apply_dc_geometry): Added.
6945         (msprinter_start_page):
6946         (msprinter_init_frame_3):
6947         (msprinter_eject_page): Use it.
6948
6949         * console-msw.h (struct msprinter_frame): Added pix_left and top,
6950         and removed residual duplex and orientation properties.
6951
6952 2000-07-11  Martin Buchholz  <martin@xemacs.org>
6953
6954         * eval.c (function_argcount): Work around a DEC CC compiler bug.
6955
6956         * unexalpha.c: Remove system prototypes from C sources!
6957
6958 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
6959
6960         * eval.c: Remove references to M-x edit-options in DEFUNs for
6961         `defvar' and `defconst'.
6962
6963 2000-07-09  Martin Buchholz  <martin@xemacs.org>
6964
6965         * config.h.in: Remove SMART_INCLUDE hackery.
6966
6967         PostgreSQL hacking:
6968         * config.h.in: Don't use SMART_INCLUDE.
6969
6970         * postgresql.h: Include libpq-fe.h here.  Fix typo.
6971         * inline.c: Simply #include "postgresql.h"
6972         * postgresql.c:
6973         - Don't use SMART_INCLUDE
6974         - Use simply "const".
6975         - Use standard doc string conventions.
6976         - Use correct type for result of PQstatus.
6977
6978 2000-07-09  Martin Buchholz  <martin@xemacs.org>
6979
6980         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
6981
6982         C++ compilation changes.
6983         * config.h.in (EXTERN_C): Define.
6984         * config.h.in (not): This is also a C++ keyword.
6985         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
6986         * cm.c: Use EXTERN_C.
6987         * redisplay-tty.c: Use EXTERN_C.
6988         * sysdep.c: Use EXTERN_C.  Remove Gould support.
6989
6990 2000-07-09  Martin Buchholz  <martin@xemacs.org>
6991
6992         * general.c: Remove duplicate definition for Qfunction.
6993
6994 2000-07-08  Ben Wing  <ben@xemacs.org>
6995
6996         * device-msw.c (msprinter_init_device):
6997         * device-msw.c (sync_printer_with_devmode):
6998         * device-msw.c (handle_devmode_changes):
6999         * device-msw.c (print_dialog_worker):
7000         * device-msw.c (Fmsprinter_apply_settings):
7001         * device-msw.c (hash_devmode):
7002         * device-msw.c (Fmsprinter_settings_despecialize):
7003         use Qmswindows_tstr, not Qctext.
7004
7005         * vm-limit.c (check_memory_limits):
7006         avoid infinite loop printing warning messages.
7007
7008 2000-07-05  Craig Lanning  <lanning@scra.org>
7009
7010         * Makefile.in.in: Add support for including the Windows resources
7011         when building with the cygwin and mingw targets.
7012
7013         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
7014         not set or not correct.
7015         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
7016         (init_initial_directory): Don't try to use $PWD on the
7017         WIN32_NATIVE target.
7018
7019         * s\cygwin32.h:
7020         [[Add -mwindows to eliminate console window.]] not required --ben
7021         (HAVE_NATIVE_SOUND): removed; now handled by configure.
7022         (MAIL_USE_POP): removed; now handled by configure.
7023
7024         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
7025         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
7026         (HAVE_NATIVE_SOUND): removed; now handled by configure.
7027         (MAIL_USE_POP): removed; now handled by configure.
7028         (ENCAPSULATE_STAT): from Dan Holmsand, added.
7029         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
7030         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
7031         constant string.
7032         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
7033         up from <winsock.h> via systime.h.
7034         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
7035         (getpagesize): from Dan Holmsand, added.
7036         Added #endif which was left dangling by Ben's mega patch; added
7037         comment to help prevent this in the future.
7038
7039         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
7040
7041 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7042
7043         * console-msw.h (struct mswindows_device): Removed unnecessary
7044         cached device geometry values.
7045         Added update_tick and an accessor macro.
7046         (Lisp_Devmode): Added lrecord declaration.
7047         (struct msprinter_device): Contain devmode as a Lisp object.
7048         Added mswindows_get_selected_frame_hwnd();
7049
7050         * console.h (struct console_methods): Indentation nitpicking.
7051
7052         * device-msw.c (mswindows_init_device): Do not initialize geometry
7053         cache. Initialize update tick.
7054         (mswindows_device_system_metrics): Ask the device for its geometry.
7055         (global_free_2_maybe):
7056         (devmode_to_hglobal):
7057         (handle_printer_changes):
7058         (ensure_not_printing):
7059         (print_dialog_worker):
7060         (Fmsprinter_print_setup_dialog):
7061         (Fmsprinter_print_dialog):
7062         (plist_get_margin):
7063         (plist_set_margin):
7064         (Fmsprinter_page_setup_dialog): Added functions.
7065         (sync_printer_with_devmode):
7066         (handle_devmode_changes):
7067         (Fmsprinter_get_settings):
7068         (Fmsprinter_select_settings):
7069         (Fmsprinter_apply_settings):
7070         (allocate_devmode):
7071         (Fmsprinter_settings_copy):
7072         (Fmsprinter_settings_despecialize):
7073         (print_devmode):
7074         (finalize_devmode):
7075         (equal_devmode):
7076         (hash_devmode): Added functions
7077         (syms_of_device_mswindows): Init devmode lrecord class.
7078
7079         * device.h: Added an exfun for find-device.
7080
7081         * event-msw.c (mswindows_wnd_proc): Do not update the cached
7082         geometry; although, recreate the device compatible DC.
7083
7084         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
7085         (msprinter_init_frame_3):
7086         (msprinter_frame_property):
7087         (msprinter_internal_frame_property_p):
7088         (msprinter_frame_properties):
7089         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
7090         print job properties (will move to device settings).
7091
7092         * lisp.h: Added symbols.
7093
7094         * general.c (syms_of_general): Declared them.
7095
7096         * hash.c (string_hash): Added.
7097
7098         * lrecord.h (lrecord_type): Added devmode lrecord type.
7099
7100 2000-07-02  Mike Sperber <mike@xemacs.org>
7101
7102         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
7103         FreeBSD 4.0.
7104
7105 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
7106
7107         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
7108         integer.
7109
7110 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
7111
7112         * data.c (Fstring_to_number): Don't recognize floating point if
7113         base is not 10.
7114
7115 2000-06-22  Martin Buchholz  <martin@xemacs.org>
7116
7117         * glyphs-widget.c (tab_control_query_geometry):
7118         (widget_query_geometry):
7119         (button_query_geometry):
7120         * glyphs.c (text_query_geometry):
7121         Enforce type correctness.
7122
7123 2000-06-18  Martin Buchholz  <martin@xemacs.org>
7124
7125         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
7126         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
7127
7128 2000-06-17  Martin Buchholz  <martin@xemacs.org>
7129
7130         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
7131         conflicts with gcc's fixincluded version of FOO.h.
7132
7133         * glyphs.h (image_instance_geometry): Remove trailing `,'
7134
7135 2000-06-08  Mike Alexander  <mta@arbortext.com>
7136
7137         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
7138         (shove_thread): Don't write the same output twice
7139         (make_ntpipe_output_stream): Increase priority of shove thread
7140         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
7141         chance to run
7142         (ntpipe_shove_closer): Don't delete the pipe until we're done with
7143         it.
7144
7145 2000-06-12  Ben Wing  <ben@xemacs.org>
7146
7147         * s\mingw32.h (sigset):
7148         * s\windowsnt.h (sigset):
7149         rename msw_ to mswindows_ for consistency with general convention.
7150
7151 2000-06-12  Ben Wing  <ben@xemacs.org>
7152
7153         * console-msw.c:
7154         * console-msw.c (mswindows_get_console_hwnd):
7155         * console-msw.c (mswindows_ensure_console_allocated):
7156         * console-msw.c (mswindows_hide_console):
7157         * console-msw.c (mswindows_show_console):
7158         * console-msw.c (mswindows_ensure_console_buffered):
7159         * console-msw.c (mswindows_output_console_string):
7160         * console-msw.c (mswindows_windows9x_p):
7161         * console-msw.h:
7162         * device-msw.c (mswindows_get_workspace_coords):
7163         * device-msw.c (mswindows_device_system_metrics):
7164         * dialog-msw.c (mswindows_popup_dialog_box):
7165         * event-msw.c (mswindows_wnd_proc):
7166         * frame-msw.c (mswindows_size_frame_internal):
7167         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
7168         * menubar-msw.c (displayable_menu_item):
7169         * menubar-msw.c (mswindows_char_is_accelerator):
7170         * nt.c:
7171         * nt.c (mswindows_sigset):
7172         * nt.c (mswindows_sigrelse):
7173         * nt.c (mswindows_sigpause):
7174         * nt.c (mswindows_raise):
7175         * nt.c (timer_proc):
7176         * ntproc.c:
7177         * ntproc.c (find_child_console):
7178         * ntproc.c (sys_kill):
7179         * print.c:
7180         * print.c (std_handle_out_external):
7181         * process-nt.c (find_child_console):
7182         * process-nt.c (send_signal_the_95_way):
7183         * process-nt.c (ensure_console_window_exists):
7184         * process-nt.c (nt_create_process):
7185         * syssignal.h:
7186         rename msw_ to mswindows_ for consistency with general convention.
7187
7188         * emacs.c:
7189         * dumper.c:
7190         include nt.h, not syswindows.h.
7191
7192         * nt.c (mswindows_fstat):
7193         * nt.c (mswindows_stat):
7194         prefix mswindows_ instead of attempting to directly override the
7195         library functions.  fix declarations.
7196
7197         * nt.h:
7198         include syswindows.h.  move some sysdep.h stuff here.
7199
7200         * ntheap.h:
7201         include syswindows.h, not <windows.h>.
7202
7203         * ntplay.c:
7204         clean up headers.
7205
7206         * sysdep.c:
7207         clean up headers.
7208
7209         * sysdep.c (sys_fstat):
7210         * sysdep.c (sys_stat):
7211         call mswindows versions when appropriate.
7212
7213         * sysdep.h:
7214         move mswin decls to nt.h.
7215
7216         * syswindows.h:
7217         add long comment describing appropriate use of the various windows
7218         headers.
7219
7220 2000-06-11  Ben Wing  <ben@xemacs.org>
7221
7222         * device-x.c: Correct doc string for sixth arg of x-get-resource.
7223
7224 2000-06-10  Ben Wing  <ben@xemacs.org>
7225
7226         * Makefile.in.in (release):
7227         Correction to make sure xemacs.exe always dumped when correct.
7228
7229         * alloca.c:
7230         * balloon_help.c:
7231         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
7232
7233         * buffer.c (set_buffer_internal):
7234         [[[[2]]]]: Remove HAVE_FEP code.
7235
7236         * buffer.c (init_initial_directory):
7237         [3].
7238
7239         * bytecode.c:
7240         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
7241         individual files.
7242
7243         * callproc.c:
7244         * callproc.c (call_process_cleanup):
7245         * callproc.c (Fold_call_process_internal):
7246         * callproc.c (child_setup):
7247         * callproc.c (getenv_internal):
7248         * callproc.c (init_callproc):
7249         * callproc.c (vars_of_callproc):
7250         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
7251         __CYGWIN32__ -> CYGWIN.
7252         DOS_NT -> WIN32_NATIVE.
7253         Remove MSDOS support/references, converting to WIN32_NATIVE
7254           where correct.
7255         __MINGW32__ -> MINGW.
7256         Fix windows.h includes.
7257         Remove bogus HAVE_NTGUI.
7258
7259         * config.h.in:
7260         [2].
7261
7262         * console-msw.c:
7263         mswindows_message_outputted added for use in allowing startup
7264         errors on the console to be seen.
7265
7266         * console-msw.c (msw_ensure_console_allocated):
7267         * console-msw.c (msw_output_console_string):
7268         * console-msw.c (DHEADER):
7269         * console-msw.c (DOPAQUE_DATA):
7270         * console-msw.c (DEVENT):
7271         * console-msw.c (DCONS):
7272         * console-msw.c (DCONSCDR):
7273         * console-msw.c (DSTRING):
7274         * console-msw.c (DVECTOR):
7275         * console-msw.c (DSYMBOL):
7276         * console-msw.c (DSYMNAME):
7277         Fix warnings.
7278
7279         * console-stream.c (stream_init_console):
7280         Fix text/binary problems.
7281
7282         * device-msw.c:
7283         * device-msw.c (mswindows_finish_init_device):
7284         * device-msw.c (mswindows_delete_device):
7285         [1].
7286
7287         * device.c (handle_asynch_device_change):
7288         [3].
7289
7290         * dgif_lib.c:
7291         * dgif_lib.c (DGifOpenFileName):
7292         * dgif_lib.c (DGifOpenFileHandle):
7293         * dgif_lib.c (DGifGetLine):
7294         * dgif_lib.c (DGifGetPixel):
7295         Added config.h/lisp.h, fix up includes.
7296         [1].
7297
7298         * dired-msw.c:
7299         [4].
7300
7301         * dired.c:
7302         * dired.c (file_name_completion):
7303         * dired.c (Ffile_attributes):
7304         * dired.c (syms_of_dired):
7305         [1].
7306
7307         * dumper.c:
7308         * dumper.c (pdump_file_unmap):
7309         * dumper.c (pdump_load):
7310         [1].
7311
7312         * editfns.c:
7313         * editfns.c (Ftemp_directory):
7314         * editfns.c (user_login_name):
7315         * editfns.c (Fuser_real_login_name):
7316         * editfns.c (get_home_directory):
7317         [1].
7318
7319         * elhash.c (finish_marking_weak_hash_tables):
7320         [[[[5]]]]: Fix GCC warnings.
7321
7322         * emacs.c:
7323         * emacs.c (mswindows_handle_hardware_exceptions):
7324         * emacs.c (make_arg_list_1):
7325         * emacs.c (main_1):
7326         * emacs.c (Fkill_emacs):
7327         * emacs.c (Fdump_emacs):
7328         [1].
7329         Fix problems with nested crashes, add long comment.
7330
7331         * event-Xt.c (init_event_Xt_late):
7332         [1].
7333
7334         * event-msw.c:
7335         * event-msw.c (mswindows_dde_callback):
7336         * event-msw.c (mswindows_handle_sticky_modifiers):
7337         * event-msw.c (mswindows_wnd_proc):
7338         [1].
7339         [5].
7340
7341         * events.c (character_to_event):
7342         [1].
7343
7344         * fileio.c:
7345         * fileio.c (Ffile_name_directory):
7346         * fileio.c (Ffile_name_nondirectory):
7347         * fileio.c (directory_file_name):
7348         * fileio.c (Fexpand_file_name):
7349         * fileio.c (Fsubstitute_in_file_name):
7350         * fileio.c (Ffile_name_absolute_p):
7351         * fileio.c (check_executable):
7352         * fileio.c (Ffile_readable_p):
7353         * fileio.c (Ffile_accessible_directory_p):
7354         * fileio.c (Ffile_modes):
7355         * fileio.c (Funix_sync):
7356         * fileio.c (vars_of_fileio):
7357         [1]. [4].
7358
7359         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
7360
7361         Expand getdefdir defn.
7362         Fix bogus rename() comment.
7363
7364         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
7365         to use standard XEmacs include files, e.g. sysfile.h, rather
7366         than system-specific includes.
7367
7368         * fns.c:
7369         * fns.c (Fsubseq):
7370         [5]. [6].
7371
7372         * frame.c (vars_of_frame):
7373         [1].
7374
7375         * getloadavg.c:
7376         * getloadavg.c (getloadavg):
7377         [1]. [6].
7378         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
7379         (We don't use it elsewhere in the code; just add a comment.)
7380
7381         * gif_io.c:
7382         [6].
7383         Add config.h.
7384
7385         * glyphs-msw.c:
7386         * glyphs-msw.c (mswindows_resource_instantiate):
7387         [1].
7388
7389         * glyphs-x.c (x_native_layout_instantiate):
7390         [5].
7391
7392         * gui-msw.c (Fmswindows_shell_execute):
7393         [1].
7394
7395         * insdel.c:
7396         [4].
7397
7398         * lisp.h:
7399         [4]. [5].
7400
7401         * lread.c (locate_file_in_directory_mapper):
7402         [1].
7403
7404         * lstream.c:
7405         [4].
7406
7407         * mem-limits.h:
7408         * mem-limits.h (get_lim_data):
7409         [1].
7410
7411         * menubar-msw.c:
7412         [4].
7413
7414         * ndir.h:
7415         [1].
7416
7417         * nt.c:
7418         * nt.c (getwd):
7419         * nt.c (closedir):
7420         * nt.c (rva_to_section):
7421         * nt.c (mswindows_executable_type):
7422         [1]. [6].
7423         Fix closedir() defn.
7424
7425         * nt.h:
7426         [[[[8]]]]: *_OK defs moved to sysfile.h.
7427
7428         * ntproc.c:
7429         [6]. [7].
7430
7431         * objects-x.c:
7432         [4].
7433
7434         * print.c:
7435         * print.c (std_handle_out_external):
7436         [1]. [4].
7437
7438         * process-nt.c:
7439         * process-nt.c (nt_create_process):
7440         [6].
7441         try to fix process quoting somewhat.
7442
7443         * process-unix.c (unix_create_process):
7444         [1].
7445
7446         * process.c:
7447         * process.c (vars_of_process):
7448         Add Vnull_device.
7449
7450         * process.h:
7451         [1].
7452
7453         * realpath.c:
7454         * realpath.c (xrealpath):
7455         [1].
7456
7457         * redisplay-tty.c (init_tty_for_redisplay):
7458         [3].
7459
7460         * redisplay.c:
7461         [4]. [6].
7462
7463         * scrollbar-msw.c:
7464         [4].
7465
7466         * sheap.c:
7467         * sheap.c (more_static_core):
7468         * sheap.c (report_sheap_usage):
7469         [5]. [6].
7470
7471         * signal.c:
7472         * signal.c (alarm_signal):
7473         [1]. [6].
7474
7475         * sound.c:
7476         [6].
7477
7478         * strftime.c:
7479         * strftime.c (zone_name):
7480         [1]. [5].
7481
7482         * symsinit.h (init_sunpro):
7483         [1].
7484
7485         * syscommctrl.h:
7486         commctrl.h not in Cygwin b20.1.
7487
7488         * sysdep.c:
7489         * sysdep.c (endif):
7490         * sysdep.c (sys_subshell):
7491         * sysdep.c (init_baud_rate):
7492         * sysdep.c (emacs_get_tty):
7493         * sysdep.c (emacs_set_tty):
7494         * sysdep.c (tty_init_sys_modes_on_device):
7495         * sysdep.c (init_system_name):
7496         * sysdep.c (sys_open):
7497         * sysdep.c (interruptible_open):
7498         * sysdep.c (sys_fopen):
7499         * sysdep.c (sys_mkdir):
7500         * sysdep.c (sys_rename):
7501         * sysdep.c (get_process_times_1):
7502         [1]. [6].
7503
7504         * sysdep.h:
7505         [1].
7506
7507         * sysdir.h:
7508         * sysdir.h (DIRENTRY_NONEMPTY):
7509         [1]. [6].
7510
7511         * sysdll.c (dll_init):
7512         * sysdll.h:
7513         [1].
7514
7515         * sysfile.h:
7516         [1]. [6]. [8].
7517         added text/binary defs.
7518
7519         * sysfloat.h:
7520         [1].
7521
7522         * sysproc.h:
7523         * sysproc.h (EDESTADDRREQ):
7524         * sysproc.h (poll_fds_for_input):
7525         [1]. [6].
7526
7527         * syspwd.h:
7528         [6].
7529
7530         * syssignal.h:
7531         [1].
7532
7533         * systime.h:
7534         [1]. [6].
7535
7536         * systty.h:
7537         [1].
7538
7539         * syswindows.h:
7540         [1].
7541         Always define WIN32_LEAN_AND_MEAN.
7542
7543         * unexcw.c (unexec):
7544         [5].
7545
7546         * unexec.c:
7547         * unexec.c (copy_text_and_data):
7548         * unexec.c (adjust_lnnoptrs):
7549         [1].
7550
7551         * unexnt.c:
7552         * unexnt.c (_start):
7553         [1].
7554
7555 2000-06-07  Ben Wing  <ben@xemacs.org>
7556
7557         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
7558         was used only as a model.  We've long since extracted any useful
7559         logic or code out of this. (I just did an exhaustive search.)
7560
7561         * s\msdos.h: Removed.
7562
7563         * s\windows95.h: Removed.
7564
7565 2000-06-10  Ben Wing  <ben@xemacs.org>
7566
7567         * s\cygwin32.h:
7568         [1]. [5].
7569         Don't use extern with fun defs.
7570
7571         * s\mingw32.h:
7572         [1]. [7].
7573         Remove nt\inc include.
7574         Remove getdisk, getdefdir. (The former is unused, the latter
7575         expanded in fileio.h.)
7576
7577         * s\windowsnt.h:
7578         * s\windowsnt.h (WIN32_NATIVE):
7579         * s\windowsnt.h (HAVE_STRCASECMP):
7580         [1]. [7].
7581         Add long comment about preprocessor changes.
7582         Remove getdisk, getdefdir. (The former is unused, the latter
7583         expanded in fileio.h.)
7584
7585 2000-06-10  Ben Wing  <ben@xemacs.org>
7586
7587         * m\arm.h:
7588         * m\delta.h:
7589         * m\intel386.h:
7590         * m\sequent.h:
7591         * m\template.h:
7592         * m\windowsnt.h:
7593         [1].
7594         Remove bogus/unused NO_SOCK_SIGIO.
7595
7596 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
7597
7598         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
7599         not an Emchar.
7600
7601 2000-06-04  Mike Sperber <mike@xemacs.org>
7602
7603         * casetab.c (set_case_table): For `set-standard-case-table',
7604         actually deposit the new case tables where the rest of XEmacs can
7605         see them.
7606
7607 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
7608
7609         * data.c (Faset): Don't cast XCHAR() to unsigned char.
7610
7611 2000-06-05  Ben Wing  <ben@xemacs.org>
7612
7613         * callproc.c (child_setup): Don't do close_load_descs() under
7614         MS Windows.  Put in a comment explaining why.
7615
7616 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
7617
7618         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
7619         Toolkit shell" which breaks `kill-compilation' on Windows NT
7620         native, retaining STDERR handling improvements.
7621
7622 2000-06-01  Andreas Jaeger  <aj@suse.de>
7623
7624         * s/s390.h: Support for S390, based on a patch by Martin
7625         Schwidefsky <schwidefsky@de.ibm.com>.
7626
7627 2000-05-30  Andy Piper  <andy@xemacs.org>
7628
7629         * window.c (allocate_window):
7630         (make_dummy_parent):
7631         (Fset_window_configuration): use new hashtable type.
7632
7633         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
7634         (struct image_instantiator_methods):
7635         (struct Lisp_Image_Instance): make instance geometry signed.
7636
7637         * glyphs.c (instantiate_image_instantiator):
7638         (image_instance_query_geometry):
7639         (image_instance_layout):
7640         (image_instance_layout):
7641         (query_string_geometry):
7642         (text_query_geometry):
7643         (image_instantiate):
7644         (image_instantiate):
7645         (cache_subwindow_instance_in_frame_maybe):
7646         (subwindow_query_geometry): make instance geometry signed.
7647
7648         * glyphs-widget.c (widget_query_geometry):
7649         (widget_layout):
7650         (button_query_geometry):
7651         (tree_view_query_geometry):
7652         (tab_control_query_geometry):
7653         (layout_query_geometry):
7654         (layout_layout):
7655         (native_layout_layout): make instance geometry signed.
7656
7657 2000-05-29  Olivier Galibert  <galibert@pobox.com>
7658
7659         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
7660         constant.
7661
7662         * general.c (syms_of_general): Add Qfull_assoc symbol.
7663
7664         * data.c (finish_marking_weak_lists): Mark full-assoc lists
7665         correctly.
7666         (decode_weak_list_type): Decode full-assoc type.
7667         (encode_weak_list_type): Encode full-assoc type.
7668         (Fmake_weak_list): Update doc string.
7669
7670 2000-05-30  Andy Piper  <andy@xemacs.org>
7671
7672         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
7673
7674         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
7675         (decode_hash_table_weakness): ditto.
7676         (Fhash_table_weakness): ditto.
7677         (Fhash_table_type): ditto.
7678         (finish_marking_weak_hash_tables): ditto.
7679         (hash_table_weakness_validate): ditto.
7680         (syms_of_elhash): ditto.
7681
7682 2000-05-28  Martin Buchholz <martin@xemacs.org>
7683
7684         * XEmacs 21.2.34 is released.
7685
7686 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
7687
7688         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
7689         start cache.
7690         (updating_line_start_cache): Gone.
7691         (regenerate_window): Replace resetting of VERTICAL_CLIP by
7692         generic code to force a minimum of 1 line laid out in the
7693         CMOTION_DISP case.
7694
7695 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
7696
7697         * glyphs.c (instantiate_image_instantiator): Check for initialized
7698         height & width no longer special cases IMAGE_NOTHING.
7699         (nothing_instantiate): Set height and width of instance.
7700
7701 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
7702
7703         * unexelf.c (unexec): Search for ".data" section.
7704         Initialize new_data2_offset from old_data_index.
7705         Remove redundant check for ElfW.
7706
7707 2000-05-23  Andy Piper  <andy@xemacs.org>
7708
7709         * glyphs.c (get_image_instantiator_governing_domain): allow more
7710         specific domains as the governing domain rather than expecting an
7711         exact match. This fixes problems with layouts.
7712
7713 2000-05-22  Andy Piper  <andy@xemacs.org>
7714
7715         * redisplay-output.c (compare_runes): check for non-images
7716
7717         * glyphs.c (set_glyph_dirty_p): ditto.
7718         (update_glyph_cachel_data): ditto.
7719
7720         * glyphs-widget.c (layout_post_instantiate): ditto.
7721         (layout_post_instantiate): ditto.
7722
7723         * event-msw.c (mswindows_wnd_proc): warning removal.
7724
7725 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
7726
7727         * s\mingw32.h: Added #undef for CLASH_DETECTION.
7728
7729         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
7730
7731         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
7732
7733         * nt.c (rva_to_section): mingw32 needs rva_to_section.
7734         (mswindows_executable_type): mingw32 now has enough headers for
7735         this to work.
7736
7737 2000-05-20  Andy Piper  <andy@xemacs.org>
7738
7739         * console-msw.c (mswindows_output_last_error): ; -> ,
7740
7741 2000-05-12  Andy Piper  <andy@xemacs.org>
7742
7743         * console-msw.c (FROB): compare ints with ints.
7744
7745 2000-05-11  Andy Piper  <andy@xemacs.org>
7746
7747         * glyphs-x.c (x_finalize_image_instance): make minimal build
7748         happy.
7749
7750 2000-05-20  Ben Wing  <ben@xemacs.org>
7751
7752         * event-Xt.c:
7753         * event-Xt.c (vars_of_event_Xt):
7754         move modifier-keys-are-sticky to event-stream.c.
7755
7756         * event-msw.c:
7757         * event-msw.c (mswindows_enqueue_mouse_button_event):
7758         * event-msw.c (key_needs_default_processing_p):
7759         * event-msw.c (XEMSW_LCONTROL):
7760         * event-msw.c (mswindows_handle_sticky_modifiers):
7761         * event-msw.c (FROB):
7762         * event-msw.c (clear_sticky_modifiers):
7763         * event-msw.c (output_modifier_keyboard_state):
7764         * event-msw.c (output_alt_keyboard_state):
7765         * event-msw.c (mswindows_wnd_proc):
7766         * event-msw.c (mswindows_modifier_state):
7767         * event-msw.c (emacs_mswindows_handle_magic_event):
7768         implement sticky modifiers.
7769
7770         * event-stream.c:
7771         * event-stream.c (vars_of_event_stream):
7772         move modifier-keys-are-sticky here.
7773
7774         * lisp.h:
7775         add CHECK_FUNCTION.
7776
7777         * rangetab.c:
7778         implement map-range-table.
7779
7780
7781 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
7782
7783         * redisplay-tty.c (reset_tty_modes):
7784         (tty_redisplay_shutdown): Adjust argument type to
7785         tty_frame_output_end.
7786
7787 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
7788
7789         * eval.c (Fbacktrace): Don't output a line with only right
7790         parenthesis.
7791
7792 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
7793
7794         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
7795         (Fpq_reset_poll): Ditto.
7796
7797 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
7798
7799         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
7800
7801 2000-05-16  Ben Wing  <ben@xemacs.org>
7802
7803         * buffer.c:
7804         * buffer.c (dfc_convert_to/from_internal_format):
7805         * buffer.c (reinit_vars_of_buffer):
7806         Fix conversion functions to allow reentrancy.
7807
7808         * console-msw.c:
7809         * console-msw.c (mswindows_output_last_error):
7810         New fun, generally useful -- output a human-readable
7811         version of GetLastError() on the console.
7812
7813         * console-msw.h:
7814         * console-msw.h (struct mswindows_frame):
7815         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
7816
7817         * console-stream.c (stream_output_begin):
7818         * console-stream.c (stream_output_end):
7819         * console-stream.c (stream_output_vertical_divider):
7820         * console-stream.c (stream_clear_region):
7821         * console-stream.c (stream_flash):
7822         * console-stream.c (console_type_create_stream):
7823         Delete blank stream methods, not needed.
7824
7825         * console.h (struct console_methods):
7826         Split begin/end methods into window and frame.
7827
7828         * event-msw.c:
7829         * event-msw.c (mswindows_handle_paint):
7830         * event-msw.c (output_alt_keyboard_state):
7831         * event-msw.c (mswindows_wnd_proc):
7832         * event-msw.c (vars_of_event_mswindows):
7833         Comment about problems with ignored-expose.
7834         Define mswindows-debug-events; not really implemented.
7835
7836         * frame-msw.c (mswindows_init_frame_1):
7837         random cleanups.
7838
7839         * glyphs-msw.c:
7840         * glyphs-msw.c (begin_defer_window_pos):
7841         * glyphs-msw.c (mswindows_unmap_subwindow):
7842         * glyphs-msw.c (mswindows_map_subwindow):
7843         * glyphs-msw.c (mswindows_resize_subwindow):
7844         Use DeferWindowPos to reduce flashing when mapping/unmapping.
7845
7846         * glyphs.c (make_image_instance_1):
7847         Fix crash.
7848
7849         * gutter.c (Fredisplay_gutter_area):
7850         Use new begin/end methods.
7851
7852         * lisp.h (Dynarr_new2):
7853         New creation fun.
7854
7855         * redisplay-msw.c:
7856         * redisplay-msw.c (mswindows_frame_output_begin):
7857         * redisplay-msw.c (mswindows_frame_output_end):
7858         * redisplay-msw.c (console_type_create_redisplay_mswindows):
7859         New begin/end methods -- handle DeferWindowPos.
7860
7861         * redisplay-output.c (redisplay_move_cursor):
7862         * redisplay-output.c (redraw_cursor_in_window):
7863         * redisplay-output.c (redisplay_update_line):
7864         * redisplay-output.c (redisplay_output_window):
7865         New begin/end methods.
7866
7867         * redisplay-tty.c:
7868         * redisplay-tty.c (tty_frame_output_begin):
7869         * redisplay-tty.c (tty_frame_output_end):
7870         * redisplay-tty.c (console_type_create_redisplay_tty):
7871         New begin/end methods.
7872
7873         * redisplay-x.c:
7874         * redisplay-x.c (x_window_output_begin):
7875         * redisplay-x.c (x_window_output_end):
7876         * redisplay-x.c (console_type_create_redisplay_x):
7877         New begin/end methods.
7878
7879         * redisplay.c (redisplay_frame):
7880         * redisplay.c (Fredisplay_echo_area):
7881         New begin/end methods.
7882         use MAYBE_DEVMETH for clear_frame; it may not exist.
7883
7884         * window.h (WINDOW_XFRAME):
7885         WINDOW_XFOO macros -- get locale and decode struct pointer.
7886
7887
7888 2000-05-12  Ben Wing  <ben@xemacs.org>
7889
7890         * emacs.c:
7891         * emacs.c (ensure_no_quitting_from_now_on):
7892         * emacs.c (fatal_error_signal):
7893         * emacs.c (mswindows_handle_hardware_exceptions):
7894         * emacs.c (main):
7895         * emacs.c (Fkill_emacs):
7896         * emacs.c (shut_down_emacs):
7897         * emacs.c (assert_failed):
7898         various improvements in fatal error handling.
7899
7900         * eval.c:
7901         move preparing_for_armageddon to emacs.c.
7902
7903         * lisp.h:
7904         declare fatal_error_in_progress.
7905
7906         * print.c:
7907         * print.c (std_handle_out_external):
7908         * print.c (std_handle_out_va):
7909         * print.c (stderr_out):
7910         * print.c (stdout_out):
7911         use console under mswin when no standard output.
7912         don't do code conversion during fatal error.
7913
7914         * scrollbar.c (Fscrollbar_page_up):
7915         * scrollbar.c (Fscrollbar_page_down):
7916         fix missing else.  reindent.
7917
7918 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
7919
7920         Emergency fix.
7921
7922         * glyphs.h (GLYPH_CACHEL_DESCENT):
7923         (GLYPH_CACHEL_DESCENT):
7924         (GLYPH_CACHEL_DESCENT):
7925         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
7926         used in case these are inline functions.
7927         Use more absurd values to error check.
7928
7929         include window.h for error check functions.
7930
7931 2000-05-11  Ben Wing  <ben@xemacs.org>
7932
7933         * cmdloop.c (Freally_early_error_handler):
7934         Display message box under windows; otherwise, message will disappear
7935         before it can be viewed.
7936
7937         * console-msw.c:
7938         * console-msw.c (Fmswindows_message_box):
7939         * console-msw.c (FROB):
7940         * console-msw.c (syms_of_console_mswindows):
7941         Define new fun `mswindows-message-box'.
7942         #### I will merge this into `popup-dialog-box'; just give me
7943         a bit of time.
7944
7945         * general.c:
7946         * general.c (syms_of_general):
7947         Some new symbols used in `mswindows-message-box'.
7948
7949         * glyphs.c:
7950         * glyphs.c (Fset_image_instance_property):
7951         put warning in this fun.
7952
7953         * glyphs.h:
7954         * glyphs.h (GLYPH_CACHEL_WIDTH):
7955         * glyphs.h (GLYPH_CACHEL_ASCENT):
7956         * glyphs.h (GLYPH_CACHEL):
7957         * glyphs.h (GLYPH_CACHEL_GLYPH):
7958         define error-checking versions to try to catch a bug i've seen --
7959         redisplay gets in an infinite loop because the glyph width of the
7960         continuation glyph is 65535.
7961
7962         * lisp.h:
7963         Extern message-box stuff.
7964
7965         * window.c (allocate_window):
7966         * window.c (make_dummy_parent):
7967         * window.c (Fset_window_configuration):
7968         Use EQUAL not EQ for subwindow caches to make them work a bit
7969         better. (Something is still very broken.)
7970
7971
7972 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
7973
7974         * glyphs.c (image_instantiate): Suppress gcc warnings.
7975         (Fmake_image_instance): Fix doc string.
7976         * specifier.c (Fmake_specifier): Ditto.
7977
7978 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
7979
7980         * paths.h.in (PATH_LOCK): Removed.
7981         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
7982         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
7983
7984 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
7985
7986         * fns.c (Ffeaturep): Update e-mail address in doc-string.
7987         Document (featurep '(and xemacs 21.02)).
7988
7989 2000-05-09  Ben Wing  <ben@xemacs.org>
7990
7991         * buffer.c (complex_vars_of_buffer):
7992         update modeline-format doc.
7993
7994         * device.h:
7995         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
7996
7997         * emacs.c:
7998         timeline of all released versions of Emacs, for use in creating
7999         authorship comments and in synching up.
8000
8001         * glyphs-widget.c (image_instantiator_buttons):
8002         * glyphs-widget.c (image_instantiator_edit_fields):
8003         * glyphs-widget.c (image_instantiator_combo_box):
8004         * glyphs-widget.c (image_instantiator_scrollbar):
8005         * glyphs-widget.c (image_instantiator_progress_guage):
8006         * glyphs-widget.c (image_instantiator_tree_view):
8007         * glyphs-widget.c (image_instantiator_tab_control):
8008         * glyphs-widget.c (image_instantiator_labels):
8009         * glyphs-widget.c (image_instantiator_layout):
8010         * glyphs-widget.c (image_instantiator_native_layout):
8011         rename decode_domain method to governing_domain.
8012
8013         * glyphs.c:
8014         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
8015         * glyphs.c (add_entry_to_device_ii_format_list):
8016         make sure we don't put an entry more than once into the list.
8017         * glyphs.c (check_instance_cache_mapper):
8018         *************************************************************
8019         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
8020         HAVE BEEN GETTING.
8021         *************************************************************
8022         * glyphs.c (get_image_instantiator_governing_domain):
8023         clean up, expand on new concept of governing domain.
8024         * glyphs.c (instantiate_image_instantiator):
8025         * glyphs.c (allocate_image_instance):
8026         use governing_domain instead of cache_domain in naming.
8027         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
8028         * glyphs.c (make_image_instance_1):
8029         * glyphs.c (Fmake_image_instance):
8030         allow for any domain (not just device), and process the
8031         governing domain correctly.  very big doc fix.
8032         * glyphs.c (Fimage_instance_domain):
8033         new primitive, to retrieve the governing domain of an image instance.
8034         * glyphs.c (image_instantiate):
8035         use new governing_domain stuff.  this fixes a crash you could get
8036         by instantiating certain widget glyphs in frame locales. (should
8037         signal an error instead of crashing.)
8038         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
8039         * glyphs.c (Fglyphp): clean up doc.
8040         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
8041         * glyphs.c (syms_of_glyphs):
8042         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
8043         * glyphs.c (image_instantiator_format_create): add some comments about
8044         bogus code.
8045         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
8046         for current-display-table. (Apparently Hrjove implemented in 1998 a
8047         design I wrote up in 1996, but didn't update the doc string.)
8048
8049         * glyphs.h: clean up a doc string.
8050         * glyphs.h (governing_domain):
8051         * glyphs.h (struct image_instantiator_methods):
8052         changes for governing_domain stuff.
8053
8054         * gutter.c:
8055         * gutter.c (Fgutter_specifier_p):
8056         * gutter.c (Fgutter_size_specifier_p):
8057         * gutter.c (Fgutter_visible_specifier_p):
8058         * objects.c:
8059         * objects.c (Fcolor_specifier_p):
8060         * objects.c (Ffont_specifier_p):
8061         * objects.c (Fface_boolean_specifier_p):
8062         doc strings moved to make-*-specifier.
8063
8064         * redisplay.c (add_disp_table_entry_runes_1):
8065         * redisplay.c (generate_fstring_runes):
8066         * redisplay.c (screen):
8067         add random comments and doc strings.
8068
8069         * specifier.c:
8070         * specifier.c (Fmake_specifier):
8071         major overhaul of this doc string.
8072
8073         * specifier.c (Fvalid_specifier_domain_p):
8074         comment about the bogosity of image instances being domains.
8075         * specifier.c (decode_domain):
8076         now non-static, used in glyphs.c.
8077         * specifier.c (specifier_instance):
8078         comment about the bogosity of image instances being domains.
8079         * specifier.c (Fgeneric_specifier_p):
8080         move doc string to make-generic-specifier.
8081         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
8082         rebackslashify.
8083
8084         * specifier.h:
8085         * specifier.h (DOMAIN_FRAME):
8086         * specifier.h (DOMAIN_LIVE_P):
8087         * specifier.h (DOMAIN_XDEVICE):
8088         rebackslashify.
8089         add comments about problems with these macros.
8090         prototype for decode_domain.
8091
8092         * toolbar.c:
8093         * toolbar.c (Ftoolbar_specifier_p):
8094         move doc string to `make-toolbar-specifier'.
8095
8096         * window.c (window_unmap_subwindows_cache_mapper):
8097         *************************************************************
8098         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
8099         HAVE BEEN GETTING.
8100         *************************************************************
8101
8102 2000-05-09  Andy Piper  <andy@xemacs.org>
8103
8104         * glyphs.h: declare reset_frame_subwindow_instance_cache.
8105
8106         * window.c (Fset_window_configuration): reset the frame subwindow
8107         cache and re-initialize the window subwindow caches.
8108
8109         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
8110
8111 2000-05-09  Ben Wing  <ben@xemacs.org>
8112
8113         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
8114         DWORD.
8115
8116 2000-04-26  Mike Woolley  <mike@bulsara.com>
8117
8118         * ntheap.c: Changed recreate_heap to limit the amount reserved
8119         for the heap to that which is actually available. Also now
8120         displays a message box (with some dignostics) in the event that
8121         it still can't start.
8122
8123 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
8124
8125         * callproc.c (Fold_call_process_internal): GCPRO path
8126
8127 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
8128
8129         Patch by Bill Perry.
8130
8131         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
8132         back data instead of #ifdef.
8133         (Fscrollbar_page_down): ditto.
8134
8135 2000-05-07  Ben Wing  <ben@xemacs.org>
8136
8137         * buffer.h:
8138         Kludge for defining Qmswindows_tstr.
8139
8140         * nt.c:
8141         * nt.c (open_input_file):
8142         * nt.c (open_output_file):
8143         * nt.c (rva_to_section):
8144         * nt.c (mswindows_executable_type):
8145         Move all memory-mapped-file routines here (some were in unexnt.c,
8146         which is bad because they are used by process-nt.c, and unexnt
8147         won't be around when portable dumping).  Synched the above routines
8148         with FSF 20.6.
8149
8150         * nt.h:
8151         Removed ifdef'd out bogus code.
8152         Fixed some prototypes.
8153
8154         * nt.h (file_data):
8155         * nt.h (OFFSET_TO_RVA):
8156         * nt.h (RVA_TO_OFFSET):
8157         * nt.h (RVA_TO_PTR):
8158         Moved the memory-mapped-file structures, macros and prototypes
8159         here, to parallel nt.c.  ntheap.h should really be removed
8160         entirely, and it's a non-portable-dumper specific file.
8161
8162         * ntheap.h (round_to_next):
8163         Moved the memory-mapped-file structures, macros and prototypes
8164         to nt.h.
8165
8166         * ntproc.c (compare_env):
8167         Moved rva_to_section and mswindows_executable_type to nt.c.
8168         Moved compare_env to process-nt.c.
8169         ntproc.c will die, one day.
8170
8171         * ntproc.c (sys_spawnve):
8172         Account for win32_ -> mswindows_.
8173
8174         * process-nt.c:
8175         * process-nt.c (struct nt_process_data):
8176         * process-nt.c (ensure_console_window_exists):
8177         * process-nt.c (compare_env):
8178         * process-nt.c (nt_create_process):
8179         * process-nt.c (nt_kill_process_by_pid):
8180         * process-nt.c (syms_of_process_nt):
8181         * process-nt.c (vars_of_process_nt):
8182         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
8183         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
8184         changes).  Eliminate our old `nt-quote-process-args' mechanism.
8185         Synch up nt_create_process with FSF 20.6 sys_spawnve.
8186         Move compare_env here from ntproc.c.
8187
8188         * process.c (Fprocess_send_region):
8189         Takes an optional fourth argument, BUFFER, which should fix some
8190         problems with call-process.
8191
8192         * syscommctrl.h:
8193         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
8194
8195         * syswindows.h:
8196         Move ICC_BAR_CLASSES to syscommctrl.h.
8197         Add preliminary macros for MSWindows/Mule.  More to come.
8198
8199         * unexnt.c:
8200         * unexnt.c (unexec):
8201         open_output_file moved to nt.c.
8202
8203
8204 2000-05-05  Andy Piper  <andy@xemacs.org>
8205
8206         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
8207         instance from the frame cache also since GC may catch up too late
8208         to make frame deletion sane.
8209
8210 2000-05-04  Andy Piper  <andy@xemacs.org>
8211
8212         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
8213         (x_finalize_image_instance): ungcpro on deletion.
8214
8215         * glyphs.c (image_instantiator_format_create): give pointers a
8216         query geometry method so that the geometry is at least set.
8217
8218         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
8219         initialize layouts if using widgets.
8220
8221 2000-05-03  Andy Piper  <andy@xemacs.org>
8222
8223         * nt.c: remove bogus reference to sysmmsystem.h
8224
8225         * gui-x.c (popup_selection_callback): fix no selection abort.
8226
8227 2000-05-02  Andy Piper  <andy@xemacs.org>
8228
8229         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
8230         (mswindows_widget_instantiate): ditto.
8231
8232         * glyphs-widget.c (initialize_widget_image_instance): initialize
8233         children correctly.
8234         (widget_instantiate): cope with children and items in the same
8235         instance.
8236
8237         * glyphs.c (mark_image_instance): cope with children as a first
8238         class member.
8239         (image_instance_equal): ditto.
8240         (image_instance_hash): ditto.
8241         (image_instance_changed): ditto.
8242
8243 2000-04-30  Andy Piper  <andy@xemacs.org>
8244
8245         * glyphs.c (subwindow_query_geometry): new function. Return some
8246         defaults.
8247         (subwindow_instantiate): don't assign dimensions if none have been
8248         given.
8249         (image_instantiator_format_create): add subwindow_query_geometry.
8250         (print_image_instance): cope with layouts as widgets.
8251
8252 2000-04-29  Andy Piper  <andy@xemacs.org>
8253
8254         * frame.c (delete_frame_internal): call
8255         free_frame_subwindow_instance_cache so that all subwindows are
8256         finalized before their parent.
8257         (mark_frame): remove subwindow_cachels.
8258         (Fmake_frame): remove subwindow_cachel manipulation.
8259         (allocate_frame_core): subwindow_instance_cache is a weak list.
8260         (delete_frame_internal): set subwindow_instance_cache to nil.
8261
8262         * glyphs-msw.c (mswindows_finalize_image_instance): make double
8263         finalization safe.
8264         (mswindows_finalize_image_instance): use the device
8265         not the domain as the domain may have died already.
8266
8267         * glyphs-x.c (x_finalize_image_instance): ditto.
8268         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
8269         HEIGHT.
8270
8271         * redisplay-output.c (redisplay_unmap_subwindows): update for
8272         subwindow instance cache as a weak list.
8273         (redisplay_unmap_subwindows_maybe): ditto.
8274         (redisplay_unmap_subwindows_except_us): ditto.
8275
8276         * glyphs.c (unmap_subwindow): error checking will check the domain
8277         so don't deal with it here. Don't use cachels anymore.
8278         (map_subwindow): ditto.
8279         (update_subwindow_cachel_data): remove old accessor names.
8280         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
8281         (Fresize_subwindow): don't update cachel.
8282         (mark_subwindow_cachels):
8283         (update_subwindow_cachel_data):
8284         (add_subwindow_cachel):
8285         (get_subwindow_cachel_index):
8286         (update_subwindow_cachel):
8287         (reset_subwindow_cachels):
8288         (mark_subwindow_cachels_as_not_updated): deleted.
8289         (cache_subwindow_instance_in_frame_maybe): new function. Add a
8290         subwindow instance to the frame cache.
8291         (find_matching_subwindow): update for subwindow instance cache as
8292         a weak list.
8293         (update_widget_instances): ditto.
8294         (image_instance_type_to_mask):inlined.
8295         (free_frame_subwindow_instance_cache): new function. finalize all
8296         subwindows that are instantiated.
8297
8298         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
8299         of cachel information.
8300         (IMAGE_INSTANCE_DISPLAY_X):
8301         (IMAGE_INSTANCE_DISPLAY_Y):
8302         (IMAGE_INSTANCE_DISPLAY_WIDTH):
8303         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
8304         (XIMAGE_INSTANCE_DISPLAY_X):
8305         (XIMAGE_INSTANCE_DISPLAY_Y):
8306         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
8307         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
8308         remove subwindow_cachel structure and function references.
8309         (image_instance_type_to_mask): inline from glyphs.c
8310
8311         * redisplay.c (redisplay_frame): remove subwindow_cachel
8312         references.
8313
8314         * frame.h (struct frame): remove subwindow_cachels.
8315         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
8316
8317         * frameslots.h: add subwindow_instance_cache.
8318
8319         * window.c (replace_window): check subwindow cache of replacement.
8320         (window_unmap_subwindows_cache_mapper):
8321         (window_unmap_subwindows): new functions. Unmap all subwindows
8322         cached on this window.
8323         (mark_window_as_deleted): unmap all subwindows.
8324
8325 2000-04-27  Andy Piper  <andy@xemacs.org>
8326
8327         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
8328
8329         * glyphs-widget.c (widget_layout): return something.
8330         (layout_layout): return something. Fail if not initialized.
8331         (layout_query_geometry): ditto.
8332         (image_instantiator_native_layout): new function. Initialized the
8333         native layout type.
8334         (widget_instantiate): don't do layout stuff here.
8335
8336         * glyphs.c (instantiate_image_instantiator): reorded calling or
8337         instantiate and post_instantiate with layout in between.
8338         (image_instance_layout): be more selective about deciding whether
8339         the layout has been done or not.
8340
8341         * glyphs.h (struct image_instantiator_methods): return a value
8342         from layout_method.
8343
8344 2000-04-26  Andy Piper  <andy@xemacs.org>
8345
8346         * glyphs.c (allocate_image_instance): make initial width and
8347         height unspecified. Set initialized to 0.
8348
8349         * syscommctrl.h new file. Encapsulates commctrl.h.
8350
8351         * syswindows.h new file. Encapsulates windows.h.
8352
8353         * ntplay.c: use new syswindows.h and syscommctrl.h header.
8354         * nt.c: ditto.
8355         * console-msw.h: ditto.
8356
8357         * redisplay-tty.c (tty_output_display_block): remove layout references.
8358
8359         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
8360         window handle rather than just the frame.
8361
8362         * glyphs.c (mark_image_instance): remove layout references.
8363         (print_image_instance): ditto.
8364         (image_instance_equal): ditto.
8365         (image_instance_hash): ditto.
8366         (decode_image_instance_type): ditto.
8367         (encode_image_instance_type): ditto.
8368         (image_instantiate): ditto.
8369         (allocate_glyph): ditto.
8370         (Fimage_instance_height): ditto.
8371         (Fimage_instance_width): ditto.
8372         (update_subwindow): ditto.
8373
8374         * redisplay-x.c (x_output_display_block): recode for layouts as
8375         widgets.
8376
8377         * redisplay-output.c (redisplay_output_layout): recode for layouts
8378         as widgets.
8379         (compare_runes): remove layout references.
8380
8381         * redisplay-msw.c (mswindows_output_display_block): recode for
8382         layouts as widgets.
8383
8384         * glyphs-widget.c (image_instantiator_layout): remove
8385         layout_possible_dest_types.
8386         (layout_possible_dest_types): deleted.
8387
8388         * glyphs.h (image_instance_type): remove layout references.
8389         (struct Lisp_Image_Instance): ditto. Add initialized flag.
8390         (IMAGE_INSTANCE_INITIALIZED): new accessor.
8391         (XIMAGE_INSTANCE_INITIALIZED): ditto.
8392
8393 2000-04-25  Andy Piper  <andy@xemacs.org>
8394
8395         * glyphs-widget.c (image_instantiator_buttons):
8396         (image_instantiator_edit_fields):
8397         (image_instantiator_combo_box):
8398         (image_instantiator_scrollbar):
8399         (image_instantiator_progress_guage):
8400         (image_instantiator_tree_view):
8401         (image_instantiator_tab_control):
8402         (image_instantiator_labels):
8403         (image_instantiator_layout): call default post_instantiate method.
8404         (widget_post_instantiate): new function. Simply lays out the
8405         widgets.
8406
8407         * glyphs.h (struct image_instantiator_methods): add
8408         post_instantiate method.
8409
8410         * glyphs.c (instantiate_image_instantiator): add post_instantiate
8411         method calls.
8412
8413 2000-04-23  Andy Piper  <andy@xemacs.org>
8414
8415         * glyphs.h (struct image_instantiator_methods): add
8416         decode_domain_method.
8417         (struct Lisp_Image_Instance): remove subwindow frame - it can be
8418         derived from the domain.
8419         (IMAGE_INSTANCE_FRAME): new accessor.
8420         (XIMAGE_INSTANCE_FRAME): ditto.
8421
8422         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
8423         instead of _SUBWINDOW_FRAME.
8424         (finalize_image_instance): ditto.
8425         (Fimage_instance_foreground): ditto.
8426         (Fimage_instance_background): ditto.
8427         (image_instantiate): ditto.
8428         (update_subwindow_cachel): ditto.
8429         (update_subwindow): ditto.
8430         (unmap_subwindow): ditto.
8431         (map_subwindow): ditto
8432         (subwindow_instantiate): ditto.
8433         * glyphs-msw.c (mswindows_update_widget): ditto.
8434         (mswindows_progress_gauge_instantiate): ditto.
8435         (mswindows_tab_control_update): ditto.
8436         * glyphs-x.c (x_update_widget): ditto.
8437         (x_widget_instantiate): ditto.
8438         (x_tab_control_instantiate): ditto.
8439         (x_tab_control_update): ditto.
8440         * event-msw.c (mswindows_wnd_proc): ditto
8441
8442         * glyphs-widget.c (image_instantiator_layout): use
8443         subwindow_decode_domain.
8444         (image_instantiator_buttons): ditto.
8445         (image_instantiator_edit_fields): ditto.
8446         (image_instantiator_combo_box): ditto.
8447         (image_instantiator_scrollbar): ditto.
8448         (image_instantiator_progress_guage): ditto.
8449         (image_instantiator_tree_view): ditto.
8450         (image_instantiator_tab_control): ditto.
8451         (image_instantiator_labels): ditto.
8452         (image_instantiator_layout): ditto.
8453
8454         * glyphs.c: add instance error checking to many functions.
8455         (instantiate_image_instantiator): decode device from cache_domain.
8456         (image_instantiate): partially rewrite by using
8457         decode_image_instantiator_domain to determine what domain the
8458         instance needs to be cached in.
8459         (decode_image_instantiator_domain): new function. Determine what
8460         domain the image needs to be cached in.
8461         (check_window_subwindow_cache): new error checking function.
8462         (check_instance_cache_mapper): ditto.
8463         (check_image_instance_structure): ditto.
8464         (subwindow_decode_domain): new function. Encodes a window as a
8465         subwindow's cache domain.
8466         (image_instantiator_format_create): use it for text and
8467         subwindows.
8468
8469 2000-04-21  Andy Piper  <andy@xemacs.org>
8470
8471         * glyphs.c (image_instance_device): new function.
8472         (image_instance_frame): new function.
8473         (image_instance_window): new function.
8474         (image_instance_live_p): new function.
8475
8476         * window.c (mark_window_as_deleted): reset the subwindow_instance_
8477         cache to nil.
8478
8479         * glyphs.h (struct Lisp_Image_Instance): device->domain.
8480         (IMAGE_INSTANCE_DOMAIN): new accessor.
8481         (XIMAGE_INSTANCE_DOMAIN): ditto.
8482
8483         * glyphs-x.c (x_finalize_image_instance): device->domain.
8484
8485         * glyphs-msw.c (init_image_instance_geometry): device->domain.
8486         (mswindows_finalize_image_instance): ditto.
8487
8488         * glyphs-eimage.c (jpeg_instantiate): device->domain.
8489         (gif_instantiate): ditto.
8490         (png_instantiate): ditto.
8491         (tiff_instantiate): ditto.
8492
8493         * glyphs.c (instantiate_image_instantiator): use domain rather
8494         than device.
8495         (mark_image_instance): device -> domain.
8496         (print_image_instance): ditto.
8497         (finalize_image_instance): ditto.
8498         (image_instance_equal): ditto.
8499         (allocate_image_instance): ditto.
8500         (Fcolorize_image_instance): ditto.
8501         (query_string_geometry): ditto.
8502         (image_instantiate): ditto
8503         (query_string_font): ditto.
8504         (image_instantiate): ditto.
8505         (update_subwindow): ditto.
8506         (unmap_subwindow): ditto.
8507         (map_subwindow): ditto.
8508         (subwindow_instantiate): ditto.
8509
8510         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
8511         (DOMAIN_FRAME): ditto.
8512         (DOMAIN_WINDOW): ditto.
8513         (DOMAIN_LIVE_P): ditto.
8514         (XDOMAIN_DEVICE): ditto.
8515         (XDOMAIN_FRAME): ditto.
8516         (XDOMAIN_WINDOW): ditto.
8517
8518         * specifier.c (Fvalid_specifier_domain_p): add image instances as
8519         a valid specifier domain.
8520
8521 2000-04-19  Andy Piper  <andy@xemacs.org>
8522
8523         * glyphs-widget.c (syms_of_glyphs_widget): remove
8524         widget-callback-current-channel.
8525         (vars_of_glyphs_widget): ditto.
8526         * glyphs.h: ditto
8527
8528         * gui.c (get_gui_callback): revert to previous behaviour.
8529
8530 2000-04-18  Andy Piper  <andy@xemacs.org>
8531
8532         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
8533         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
8534         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
8535
8536         * glyphs.c (image_instance_equal): add margin_width.
8537         (image_instance_hash): ditto.
8538
8539         * glyphs-widget.c (widget_instantiate): deal with margin-width.
8540         (layout_query_geometry): ditto.
8541         (layout_layout): ditto.
8542         (syms_of_glyphs_widget): add margin-width.
8543         (image_instantiator_layout): allow margin-width.
8544
8545         * glyphs.c (update_widget_instances): make a normal function.
8546         (syms_of_glyphs): remove Qupdate_widget_instances.
8547         * glyphs.h: ditto.
8548
8549         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
8550         so that we don't corrupt ideas about the last event or
8551         command. Remove widget-callback-current-channel fiddling.
8552         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
8553
8554 2000-05-01  Martin Buchholz <martin@xemacs.org>
8555
8556         * XEmacs 21.2.33 is released.
8557
8558 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
8559
8560         * make-src-depend: Allow dots in header file name.
8561
8562 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
8563
8564         * mule-charset.h (struct charset_lookup): Add
8565         next_allocated_1_byte_leading_byte and
8566         next_allocated_2_byte_leading_byte.
8567         * mule-charset.c: Move above two variables so that those values
8568         will be dumped.
8569
8570 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
8571
8572         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
8573         when string length is zero.
8574         (find_charsets_in_emchar_string): Ditto.
8575
8576 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
8577
8578         * lisp.h: extern Qdialog and Qmenubar.
8579
8580         * gui-x.c: added events.h.
8581                 also fixed typo which made the file uncompilable.
8582
8583         * general.c: Added Qmenubar and Qdialog
8584
8585 2000-04-28  Ben Wing  <ben@xemacs.org>
8586
8587         * frame-msw.c (mswindows_init_frame_1):
8588         * frame-msw.c (mswindows_mark_frame):
8589         * event-msw.c (mswindows_enqueue_dispatch_event):
8590         * console-msw.h:
8591         * console-msw.h (struct mswindows_frame):
8592         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
8593         there are now three hash tables for callbacks.
8594         mswindows_enqueue_dispatch_event is no longer static.
8595
8596         * dialog-x.c (maybe_run_dbox_text_callback):
8597         * dialog-x.c (dbox_descriptor_to_widget_value):
8598         switch to new cons3 form for callbacks.
8599
8600         * glyphs-msw.c (mswindows_register_gui_item):
8601         * glyphs-msw.c (mswindows_widget_instantiate):
8602         * glyphs-msw.c (add_tree_item):
8603         * glyphs-msw.c (add_tab_item):
8604         new image instance parameter, so it can be passed to callback-ex.
8605         respect :callback-ex as well as :callback.
8606
8607         * glyphs-widget.c (VALID_GUI_KEYWORDS):
8608         add :callback-ex.
8609
8610         * glyphs.c (print_image_instance):
8611         prettify, e.g. now prints widget type.
8612
8613         * gui-x.h:
8614         certain funs have new image instance parameter.
8615
8616         * gui.c:
8617         * gui.c (get_gui_callback):
8618         * gui.c (gui_item_add_keyval_pair):
8619         * gui.c (gui_item_init):
8620         * gui.c (gui_add_item_keywords_to_plist):
8621         * gui.c (mark_gui_item):
8622         * gui.c (gui_item_hash):
8623         * gui.c (gui_item_equal):
8624         * gui.c (copy_gui_item):
8625         * gui.c (syms_of_gui):
8626         recognize callback-ex in a number of places.
8627         also, fix the annoying "can't get out of yes-no dialog" bug.
8628
8629         * gui.h:
8630         * gui.h (struct Lisp_Gui_Item):
8631         recognize callback-ex in a number of places.
8632
8633         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
8634         new parameter in button_item_to_widget_value.
8635
8636         * glyphs-x.c (x_update_widget):
8637         * glyphs-x.c (x_button_instantiate):
8638         * glyphs-x.c (x_button_update):
8639         * glyphs-x.c (x_progress_gauge_instantiate):
8640         * glyphs-x.c (x_edit_field_instantiate):
8641         * glyphs-x.c (x_combo_box_instantiate):
8642         * glyphs-x.c (x_tab_control_instantiate):
8643         * glyphs-x.c (x_label_instantiate):
8644         new image instance parameter in various places.
8645
8646         * event-Xt.c:
8647         * event-Xt.c (enqueue_Xt_dispatch_event):
8648         this fun gets exported.
8649
8650         * gui-msw.c:
8651         * gui-msw.c (mswindows_handle_gui_wm_command):
8652         handle both :callback and :callback-ex, and generate our own
8653         event because it's one of the callback-ex arguments.
8654
8655         * gui-x.c:
8656         * gui-x.c (popup_selection_callback):
8657         handle both :callback and :callback-ex, and generate our own
8658         event because it's one of the callback-ex arguments.
8659         * gui-x.c (button_item_to_widget_value):
8660         * gui-x.c (gui_items_to_widget_values_1):
8661         * gui-x.c (gui_item_children_to_widget_values):
8662         * gui-x.c (gui_items_to_widget_values):
8663         new image instance parameter in various places.
8664
8665         * fns.c (Freplace_list):
8666         fix small typo in doc string.
8667
8668         * lisp.h:
8669         declare enqueue_Xt_dispatch_event.
8670
8671 2000-04-28  Ben Wing  <ben@xemacs.org>
8672
8673         * buffer.c:
8674         * buffer.c (Frecord_buffer):
8675         * buffer.c (syms_of_buffer):
8676         delete record-buffer-hook.
8677
8678         * fns.c:
8679         * fns.c (Freplace_list):
8680         * fns.c (syms_of_fns):
8681         new primitive replace-list.
8682
8683         * frameslots.h:
8684         slot for old buffer-alist.
8685
8686         * lisp.h:
8687         exfun replace-list.
8688
8689         * redisplay.c:
8690         * redisplay.c (redisplay_frame):
8691         * redisplay.c (syms_of_redisplay):
8692         * redisplay.c (vars_of_redisplay):
8693         new hook buffer-list-changed-hook.
8694         call it.
8695
8696 2000-04-27  Ben Wing  <ben@xemacs.org>
8697
8698         * extents.h: extern in_modeline_generation.
8699
8700         * redisplay.c (generate_formatted_string_db): set
8701         in_modeline_generation.
8702
8703         * extents.c (extent_changed_for_redisplay): don't mark redisplay
8704         flags if in modeline generation.  otherwise frame-modified-tick
8705         is ticked far too often.
8706         Declare in_modeline_generation.
8707
8708 2000-04-26  Ben Wing  <ben@xemacs.org>
8709
8710         * emacs.c (vars_of_emacs): document quick-build "error-checking"
8711         option.
8712         (vars_of_emacs): add quick-build as an error-checking option.
8713         A bit kludgy, but there doesn't seem much point in creating
8714         a real var for this.
8715
8716         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
8717
8718 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
8719
8720         * redisplay.h (struct display_line): Add a new variable,
8721         line_continuation.
8722
8723         * redisplay.c (create_text_block): Set dl->line_continuation if
8724         the line continues.
8725         (create_string_text_block): Ditto.
8726         (regenerate_window_incrementally): Use line_continuation instead
8727         of searching continuation glyph.
8728         (add_margin_runes): Call add_glyph_rune.
8729         (add_glyph_rune): Handle margin glyph.
8730
8731 2000-04-20  Martin Buchholz  <martin@xemacs.org>
8732
8733         * filelock.c (fill_in_lock_file_name):
8734         ANSIfy.
8735         Check for IS_ANY_SEP instead of '/'.
8736         (lock_file_1):
8737         Avoid generating gratuitous garbage.  Call user_login_name() directly.
8738         Never check errno without first seeing that system call failed.
8739         (unlock_file): Add GCPRO.
8740         (Flock_buffer): Fix docstring.
8741         (Ffile_locked_p): Fix docstring.  Add GCPRO.
8742
8743 2000-04-19  Martin Buchholz  <martin@xemacs.org>
8744
8745         * sysdep.c (get_pty_max_bytes):
8746         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
8747         strings longer than 252 bytes.
8748
8749         * md5.c: Unconditionally include ANSI header <limits.h>
8750
8751         * glyphs-x.c (convert_EImage_to_XImage):
8752         * lisp-union.h (union Lisp_Object):
8753         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
8754
8755 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8756
8757         * filelock.c (current_lock_owner): Remove unused variable o, p.
8758
8759 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
8760
8761         * callint.c: Remove multiply defined symbol Qlet
8762         (syms_of_callint): ditto.
8763
8764 2000-04-14  Andy Piper  <andy@xemacs.org>
8765
8766         * general.c (syms_of_general): add last-command, this-command, let
8767         and funcall.
8768
8769         * lisp.h: declare various symbols.
8770
8771         * glyphs.h: declare Qwidget_callback_current_channel;
8772
8773         * glyphs-widget.c (syms_of_glyphs_widget): add
8774         Qgui_callback_current_channel.
8775         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
8776
8777         * gui-msw.c (mswindows_handle_gui_wm_command): bind
8778         widget-callback-current-channel when invoking the interactive
8779         arg. Also bind last-command and next-command when invoking the
8780         widget updates.
8781         * gui-x.c (popup_selection_callback): ditto.
8782
8783         * gui.c (get_gui_callback): massage args so that we are always
8784         calling eval. This allows us to add our own variable bindings
8785         outside.
8786
8787         * glyphs-x.c (x_button_instantiate): use
8788         gui_items_to_widget_values since this is GC safe.
8789         (x_progress_gauge_instantiate): ditto.
8790         (x_edit_field_instantiate): ditto.
8791         (x_label_instantiate): ditto.
8792
8793         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
8794         (emacs_Xt_event_widget_focus_out): new function
8795         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
8796         focus.
8797         (emacs_Xt_event_add_widget_actions): new function. add focus
8798         functions as actions.
8799         (init_event_Xt_late): use it.
8800
8801 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
8802
8803         * event-stream.c (Fdispatch_event): Doc fix.
8804
8805 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
8806
8807         * postgresql.c: Remove all references to PQsetenv*.
8808
8809         * postgresql.h: Remove references to PGsetenvHandler object.
8810         * lrecord.h (lrecord_type): Ditto.
8811
8812 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8813
8814         * glyphs-msw.h (struct mswindows_image_instance_data): Added
8815         real_heigh and real_width members, and accessor macros for these.
8816
8817         * glyphs-msw.c (init_image_instance_geometry): New function.
8818         (init_image_instance_from_dibitmap): Use it.
8819         (mswindows_resource_instantiate): Use it.
8820         (init_image_instance_from_xbm_inline): Use it.
8821         (mswindows_initialize_image_instance_mask): Use real bitmap
8822         geometry.
8823         (mswindows_create_resized_bitmap): Ditto.
8824         (mswindows_create_resized_mask): Ditto.
8825
8826         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
8827         and bitmap to their surface size.
8828
8829 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
8830
8831         * process-unix.c (unix_send_process): Guard against process MIA
8832         after Faccept_process_output.
8833
8834 2000-04-11  Ben Wing  <ben@xemacs.org>
8835
8836         * eval.c (unbind_to_hairy): fix brokenness introduced by
8837         nanosecond speed improvements.
8838
8839 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
8840
8841         * sunplay.c (init_device): To play sounds correctly, the device
8842         apparently needs to be initialized at least once by XEmacs.  Make
8843         it so.
8844
8845 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
8846
8847         * redisplay.c (add_margin_runes): Add text image glyph
8848           handling.
8849
8850 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8851
8852         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
8853         gcc is newer than 2.5.
8854
8855 2000-04-06  Colin Rafferty  <colin@xemacs.org>
8856
8857         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
8858
8859         * fns.c (size_bit_vector):
8860         * alloc.c (size_vector):
8861         (make_vector_internal):
8862         (make_bit_vector_internal):
8863         (sweep_bit_vectors_1):
8864         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
8865
8866 2000-04-06  Andy Piper  <andy@xemacs.org>
8867
8868         * gmalloc.c (malloc): undo previous change.
8869         (malloc): ditto.
8870         (free): ditto.
8871         (realloc): ditto.
8872
8873 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
8874
8875         * line-number.c (buffer_line_number): Revert to former version.
8876
8877 2000-04-06  Andy Piper  <andy@xemacs.org>
8878
8879         * gmalloc.c (malloc): add error checking.
8880         (malloc): ditto.
8881         (free): ditto.
8882         (realloc): ditto.
8883
8884         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
8885         button_item_to_widget_value arg.
8886
8887         * glyphs-x.c (x_button_instantiate): add extra
8888         button_item_to_widget_value arg.
8889         (x_progress_gauge_instantiate): ditto.
8890         (x_edit_field_instantiate): ditto.
8891         (x_label_instantiate): ditto.
8892
8893         * gui-x.c (gui_items_to_widget_values_1): add extra
8894         button_item_to_widget_value arg.
8895         (button_item_to_widget_value): add extra menu_item_p arg.
8896
8897         * gui-x.h: change signature of button_item_to_widget_value.
8898
8899         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
8900         button_item_to_widget_value arg.
8901
8902 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
8903
8904         * buffer.h (struct buffer): auto_save_modified should be long.
8905
8906 2000-04-05  Andy Piper  <andy@xemacs.org>
8907
8908         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
8909         type.
8910         (button_query_geometry): give a little more room so that athena
8911         buttons fit.
8912
8913 2000-04-05  Andy Piper  <andy@xemacs.org>
8914
8915         * faces.c (complex_vars_of_faces): The widget face should inherit
8916         the font of the gui-element face.
8917
8918 2000-04-04  Andy Piper  <andy@xemacs.org>
8919
8920         * glyphs-x.c (x_button_update): new function. unconditionally
8921         update a button's state when the instance is dirty.
8922         (image_instantiator_format_create_glyphs_x): add x_button_update.
8923         (x_widget_instantiate): remove old resize cruft.
8924
8925 2000-04-02  Andy Piper  <andy@xemacs.org>
8926
8927         * frame.c (change_frame_size_1): The introduction of gutters means
8928         that we need to allow 0 as a potential frame dimension.
8929
8930 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
8931
8932         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
8933         image glyph if allow_cursor.
8934         (add_hscroll_rune): Don't allow cursor to border glyph.
8935         (create_text_block): Ditto.
8936
8937         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
8938         text not in buffer.
8939         (redisplay_output_layout): Call ensure_face_cachel_complete for
8940         text image glyph.
8941
8942
8943 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
8944
8945         * redisplay.c (add_glyph_rune): Adding text image as text runes.
8946
8947         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
8948         not in buffer
8949
8950         * redisplay-tty.c (tty_output_display_block): Delete the routine
8951         for text image glyph
8952         * redisplay-x.c (x_output_display_block): ditto
8953         * redisplay-msw.c (mswindows_output_display_block): ditto
8954
8955 2000-02-02  Mike Alexander  <mta@arbortext.com>
8956
8957         Note: Some of these were committed by accident as part of other
8958         patches.
8959
8960         * regex.c (regex_compile): Avoid compiler warnings.
8961
8962         * ntproc.c (sys_spawnve): Avoid compiler warnings.
8963
8964         * nt.h: Declare term_ntproc correctly.
8965
8966         * nt.c: Remove incorrect declaration of get_home_directory which
8967         is declared correctly in lisp.h.
8968
8969         * keymap.c (get_keyelt): Avoid compiler warnings.
8970         (raw_lookup_key_mapper): Avoid compiler warnings.
8971
8972         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
8973
8974         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
8975
8976         * filemode.c (mode_string): Avoid compiler warnings.
8977
8978         * file-coding.c (Fcoding_system_aliasee): Add return statement to
8979         avoid warning.
8980
8981         * events-mod.h: Undef some things that winuser.h defines differently.
8982
8983         * data.c (Faset): Avoid compiler warnings.
8984
8985         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
8986
8987 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
8988
8989         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
8990         Fall through to simple beep on error.
8991         Replace "extern" by real header file.
8992
8993         * linuxplay.c: Use nativesound.h
8994         (play_sound_data): Return error code. Be less verbose on error.
8995
8996         * sunplay.c: Use nativesound.h
8997         (play_sound_data): Return error code. Be less verbose on error.
8998
8999         * ntplay.c: Use nativesound.h
9000         (play_sound_data): Return fake error code
9001
9002         * sgiplay.c: Use nativesound.h
9003         (play_sound_data): Return error code
9004
9005         * hpplay.c: Use nativesound.h, partially implement
9006         new error code. Break compilation until finished.
9007         (play_sound_data): error code.
9008
9009         * nativesound.h (play_sound_file):
9010           (play_sound_data): Prototype in new header.
9011
9012 2000-03-31  Andy Piper  <andy@xemacs.org>
9013
9014         * glyphs-widget.c: (button_query_geometry): new function. Adjust
9015         for toggle and radio buttons.
9016         (image_instantiator_buttons): use it.
9017
9018 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
9019
9020         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
9021         (x_update_horizontal_scrollbar_callback): Return if no mirror was
9022         found. Scrollbar event probably belonged to some old config.
9023
9024 2000-03-31  Andy Piper  <andy@xemacs.org>
9025
9026         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
9027         than 1.
9028         (initialize_widget_image_instance): default layout to
9029         LAYOUT_HORIZONTAL rather than 0.
9030         (widget_instantiate): reverse the item list at the end rather than
9031         every iteration.
9032         (layout_layout): re-code for the border text at the front of the
9033         item list rather than at the end.
9034         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
9035         provided by the user.
9036         (widget_query_geometry): comment.
9037
9038 2000-03-30  Andy Piper  <andy@xemacs.org>
9039
9040         * glyphs-widget.c (image_instantiator_layout): allow standard
9041         widget keywords in layouts.
9042
9043         * gutter.c (output_gutter): cope with nil gutter contents.
9044
9045         * frame.c (Fset_frame_properties): add gutter docs.
9046
9047 2000-03-29  Andy Piper  <andy@xemacs.org>
9048
9049         * toolbar-msw.c (TBSTYLE_FLAT): add.
9050         (mswindows_output_toolbar): minor fiddling.
9051
9052 2000-03-29  Andy Piper  <andy@xemacs.org>
9053
9054         * gutter.c (output_gutter): force gutter size recalculation if
9055         what we are trying to display won't fit.
9056         (update_gutter_geometry): new function. A per-gutter version of
9057         update_frame_gutter_geometry.
9058         (update_frame_gutter_geometry): use it.
9059         (redraw_exposed_gutter): add extra debugging output.
9060
9061 2000-03-28  Mike Alexander  <mta@arbortext.com>
9062
9063         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
9064         (pdump_file_unmap): Implement it on Windows
9065         (pdump_file_get): Save alocated handles for pdump_file_unmap
9066
9067 2000-03-28  Andy Piper  <andy@xemacs.org>
9068
9069         * gui.c (get_gui_callback): treat Quit specially.
9070
9071 2000-03-27  Andy Piper  <andy@xemacs.org>
9072
9073         * glyphs.c (image_instantiate): be careful to check in the same
9074         way we assigned.
9075
9076 2000-03-27  Didier Verna  <didier@xemacs.org>
9077
9078         * config.h.in: define the proper SMART_INCLUDE macro.
9079         handle renaming of `foo_h_path' to `foo_h_file'.
9080
9081         * database.c: ditto.
9082
9083         * emacs.c: ditto.
9084
9085         * linuxplay.c: ditto.
9086
9087         * terminfo.c: ditto.
9088
9089         * tooltalk.h: ditto.
9090
9091 2000-03-27  Andy Piper  <andy@xemacs.org>
9092
9093         * glyphs-msw.c (mswindows_update_widget): make sure the widget
9094         gets updated whenever the face might have changed.
9095
9096 2000-03-26  Mike Alexander  <mta@arbortext.com>
9097
9098         * dumper.c (pdump_resource_free): Fix the comment.
9099
9100 2000-03-21  Olivier Galibert  <galibert@pobox.com>
9101
9102         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
9103
9104 2000-03-22  Mike Alexander  <mta@arbortext.com>
9105
9106         * dumper.c: Include Windows headers on Windows
9107         (pdump_resource_free): Add a body to the function
9108         (pdump_load): exe_name -> exe_path and add some comments.
9109
9110 2000-03-25  Mike Alexander  <mta@arbortext.com>
9111
9112         * gui.c (copy_gui_item_tree): Return a value in all cases
9113
9114 2000-03-21  Didier Verna  <didier@xemacs.org>
9115
9116         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
9117         lwlib/config.h.in.
9118         (SMART_INCLUDE): new macro.
9119         (POSTGRES_INCLUDE): new macro to include postgresql headers from
9120         the proper location.
9121
9122         * postgresql.c: use it.
9123
9124         * inline.c: ditto.
9125
9126 2000-03-24  Andy Piper  <andy@xemacs.org>
9127
9128         * gutter.c (redraw_exposed_gutters): must be "in display" when we
9129         do this.
9130
9131 2000-03-24  Andy Piper  <andy@xemacs.org>
9132
9133         * redisplay-output.c (compare_runes): use image_instance_changed
9134         to detect changes. Do not depend on glyphs_changed, only depend on
9135         dirtiness.
9136          (redisplay_output_layout): add debug messages.
9137         (compare_runes): ditto.
9138
9139         * glyphs.h: declare new functions.
9140         (struct Lisp_Image_Instance): remove percent and associated
9141         accessors.
9142
9143         * gui.h: declare new copying functions.
9144
9145         * gui.c (copy_gui_item_tree): new function.
9146         (copy_gui_item): new function.
9147         (gui_item_id_hash): revert to standard hash.
9148         (gui_item_hash): ditto.
9149         (gui_item_hash_internal): deleted.
9150         (mark_gui_item): mark value.
9151         (gui_item_add_keyval_pair): add value.
9152         (gui_item_init): ditto.
9153         (gui_add_item_keywords_to_plist): ditto.
9154         (gui_item_equal): ditto.
9155         (syms_of_gui): add Q_value.
9156
9157         * glyphs-x.c (x_progress_gauge_update): use pending items and
9158         value for setting the state.
9159         (x_update_widget): don't set items from pending here.
9160
9161         * glyphs-widget.c (update_widget): update items here.
9162         (progress_gauge_set_property): use items for storing value. Put
9163         new value in pending items.
9164
9165         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
9166         items for new value. Convert percent -> value.
9167         (mswindows_tab_control_update): don't update items here.
9168
9169         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
9170         (update_subwindow): ditto.
9171         (image_instance_changed): new function. Compare hash values and
9172         past and present widget items.
9173         (image_instantiate): We more careful about where we instantiate
9174         things.
9175         (image_instantiate): add error checking.
9176
9177         * gutter.c (syms_of_gutter): use -hook.
9178
9179 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
9180
9181         * console-tty.c (Fset_console_tty_input_coding_system): Use
9182         Qkeyboard.
9183         (Fset_console_tty_output_coding_system): Use Qterminal.
9184         (tty_init_console): Use Qkeyboard and Qterminal.
9185
9186 2000-03-21  Ben Wing  <ben@xemacs.org>
9187
9188         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
9189         From Mike Alexander <mta@arbortext.com>.
9190
9191 2000-03-21  Ben Wing  <ben@xemacs.org>
9192
9193         * event-msw.c (mswindows_need_event): Horrible kludge to fix
9194         process brokenness.  Proper implementation to come.
9195         * callproc.c:
9196         Rename call-process-internal to old-call-process-internal.
9197         New impl. in process.el.
9198
9199 2000-03-21  Martin Buchholz  <martin@xemacs.org>
9200
9201         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
9202
9203 2000-03-20  Andy Piper  <andy@xemacs.org>
9204
9205         * glyphs.c (full_list_hash): make hashes of the same elements in
9206         different orders return different values.
9207
9208 2000-03-20  Martin Buchholz <martin@xemacs.org>
9209
9210         * XEmacs 21.2.32 is released.
9211
9212 2000-03-20  Martin Buchholz  <martin@xemacs.org>
9213
9214         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
9215         (DFC_MALLOC_USE_CONVERTED_DATA):
9216         Add aliasing-safe casts to allow use with char* or unsigned char*
9217         lvalues.
9218
9219         * eldap.c (Fldap_open):
9220         (Fldap_search_basic):
9221         (Fldap_add):
9222         (Fldap_modify):
9223         Make C++-compilable.
9224         Make sure GCPRO'ed variables are initialized.
9225         Use temp variables to avoid repeated calls to Flength.
9226
9227 2000-03-16  Martin Buchholz  <martin@xemacs.org>
9228
9229         * sysfile.h:
9230         Make sure PATH_MAX is always defined.
9231         Include limits.h for PATH_MAX.
9232         Deprecate use of MAXPATHLEN.
9233
9234 2000-03-10  Martin Buchholz  <martin@xemacs.org>
9235
9236         * emacs.c: Add reinit_vars_of_fileio.
9237         * symsinit.h: Add reinit_vars_of_fileio.
9238         * fileio.c (reinit_vars_of_fileio): New.
9239         * fileio.c (Fmake_temp_name):
9240         Initialize temp_name random number from microseconds to make
9241         collisions even less likely.  Initialize always at process startup
9242         time.  (make-temp-name) used to return the same file name twice in
9243         a row when PDUMP.
9244         Random stylistic fiddling.
9245         Comment fixes.
9246
9247 2000-03-20  Andy Piper  <andy@xemacs.org>
9248
9249         * glyphs.c (image_instantiate): allow text glyphs to be
9250         instantiated in the minibuffer window.
9251
9252 2000-03-19  Andy Piper  <andy@xemacs.org>
9253
9254         * glyphs.c (image_instance_hash): be careful about which items we
9255         hash on.
9256
9257         * glyphs-widget.c (tab_control_set_property): record into pending
9258         items rather than the actual items.
9259
9260         * glyphs-x.c (x_update_widget): use pending items to update with.
9261
9262         * glyphs-msw.c (mswindows_tab_control_update): use pending items
9263         to update with.
9264
9265         * glyphs.c (mark_image_instance): mark pending items.
9266
9267         * window.c (Fset_window_configuration): record the buffer.
9268         (Fselect_window): totally revert previous change which breaks many
9269         things.
9270
9271 2000-03-18  Andy Piper  <andy@xemacs.org>
9272
9273         * glyphs-msw.c (mswindows_tab_control_update): force selected
9274         item.
9275
9276         * glyphs.c (image_instantiate): don't allow the minibuffer as a
9277         window domain cache, otherwise we get inconsistencies at
9278         startup. There is something fishy at startup which can lead to the
9279         minibuffer being the selected window when the gutter content is
9280         instantiated.
9281
9282         * gui.c (parse_gui_item_tree_list): add probably unnecessary
9283         gcpros.
9284         (parse_gui_item_tree_children): ditto.
9285         (parse_gui_item_tree_item): ditto.
9286
9287         * glyphs.c (Fupdate_widget_instances): return something.
9288
9289 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9290
9291         * window.c (Fselect_window): Undo 2000-03-17 change.
9292
9293 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
9294
9295         * postgresql.c (Fpq_setenv): Remove this turkey when linking
9296         against v7.0 libraries.  Insta-coredump city until the postgres
9297         folks fix it.
9298
9299 2000-03-17  Andy Piper  <andy@xemacs.org>
9300
9301         * faces.c (complex_vars_of_faces): don't give the widget face an
9302         inherited background pixmap.
9303
9304         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
9305         selected item.
9306
9307         * event-stream.c (Fdispatch_non_command_events): return something.
9308
9309         * gutter.c (output_gutter): use widget face.
9310         (clear_gutter): ditto.
9311
9312         * NEWS: adjust again.
9313
9314         * window.c (Fselect_window): make sure this runs to completion to
9315         avoid oddities with Fset_window_configuration.
9316         (Fcurrent_window_configuration): in general do not save the
9317         minibuffer as the selected window.
9318
9319         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
9320
9321 2000-03-16  Olivier Galibert  <galibert@pobox.com>
9322
9323         * emacs.c (Frunning_temacs_p): Revert previous patch.
9324         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
9325
9326 2000-03-16  Andy Piper  <andy@xemacs.org>
9327
9328         * glyphs-x.c (x_tab_control_update): if no widget values then
9329         return.
9330
9331         * NEWS: update for new features.
9332
9333         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
9334         synthetic event to the native system.
9335         (reinit_vars_of_event_Xt): set force_event_pending to
9336         emacs_Xt_force_event_pending.
9337
9338         * events.h (struct event_stream): add force_event_pending.
9339
9340         * specifier.c (recompute_one_cached_specifier_in_window): add
9341         comment.
9342
9343         * redisplay.c (redisplay_frame): don't call
9344         update_frame_subwindows. Reset subwindow cachels when
9345         subwindows_changed, removing this was an optimization too far.
9346
9347         * redisplay-output.c (compare_runes): reorganize so that we catch
9348         glyph changes when we want them. Set optimize_output when this
9349         would help layouts.
9350         (redisplay_output_layout): remove frame_really_changed, use
9351         optimize_output instead.
9352
9353         * redisplay-msw.c (mswindows_output_display_block): reset
9354         optimize_output after outputting a glyph.
9355         * redisplay-x.c (x_output_display_block): ditto.
9356         * redisplay-tty.c (tty_output_display_block): ditto.
9357
9358         * gutter.c: (specifier_vars_of_gutter): use new spec changed
9359         functions.
9360         (gutter_specs_changed): do specific gutter positions.
9361         (top_gutter_specs_changed): new function. Only update the
9362         specified gutter specs.
9363         (bottom_gutter_specs_changed): ditto.
9364         (left_gutter_specs_changed): ditto.
9365         (right_gutter_specs_changed): ditto.
9366
9367         * gui.c (gui_item_hash_internal): new function, does a real hash.
9368         (gui_item_id_hash): use it.
9369         (gui_item_hash): hash the eval'ed gui_item.
9370
9371         * gui-x.c (popup_selection_callback): send an eval event to call
9372         Fupdate_widget_instances.
9373
9374         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
9375         to call Fupdate_widget_instances.
9376
9377         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
9378         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
9379
9380         * glyphs.c: (update_frame_subwindows): deleted.
9381         (Fupdate_widget_instances): new function for updating the dirty
9382         state of widgets that might have changed.
9383         (syms_of_glyphs): add Qupdate_widget_instances.
9384         (full_list_hash): hash a list completely.
9385         (image_instance_hash): use it for items and properties.
9386
9387         * frame-msw.c (mswindows_size_frame_internal): remove unused
9388         variable.
9389
9390         * faces.h (struct face_cachel): fix comment.
9391
9392         * event-stream.c (Fdispatch_non_command_events): new
9393         function. Process non-command events, forcing an event cycle
9394         beforehand.
9395         (syms_of_event_stream): declare.
9396         (event_stream_force_event_pending): new function. Force an event
9397         on the native event queue so that an event cycle will occur next
9398         time we check.
9399
9400         * event-msw.c:
9401         (struct ntpipe_shove_stream):
9402         (mswindows_enqueue_dispatch_event):
9403         (mswindows_dequeue_dispatch_event):
9404         (mswindows_cancel_dispatch_event):
9405         (mswindows_pump_outstanding_events):
9406         (mswindows_drain_windows_queue):
9407         (mswindows_handle_paint):
9408         (mswindows_wnd_proc):
9409         (mswindows_key_to_emacs_keysym):
9410         (get_process_input_waitable):
9411         (emacs_mswindows_delete_stream_pair): re-indent file.
9412         (mswindows_need_event): do not process further fds if the windows
9413         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
9414         fixes the 100% cpu problem.
9415         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
9416
9417 2000-03-15  Olivier Galibert  <galibert@pobox.com>
9418
9419         * alloc.h: New.
9420         * dumper.h: New.
9421         * dumper.c: New.
9422
9423         * emacs.c: Moved dump file searching to dumper.c.
9424         (Frunning_temacs_p): Fixed.
9425
9426         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
9427         last_lrecord_type_index_assigned.
9428
9429 2000-02-20  Olivier Galibert  <galibert@pobox.com>
9430
9431         * symsinit.h: Added reinit parameter to init_console_stream
9432         declaration.
9433
9434         * lisp.h: Added file parameter to pdump_load declaration.
9435
9436         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
9437         support.  Added dump file searching.
9438
9439         * config.h.in: Added EMACS_PROGNAME.
9440
9441         * console-stream.c (init_console_stream): Fix reinitialisation
9442         when running from temacs.
9443
9444         * alloc.c (pdump): Add id support.
9445         (pdump_load): Add file parameter and signature/id support.
9446
9447         * Makefile.in.in: Add full pdump support.
9448
9449 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
9450
9451         * postgresql.c: Update documentation to reflect latest code
9452         status.
9453         (print_result): Show tuple counts in printed representation when
9454         appropriate.
9455         (Fpq_put_nbytes): MULE-ize.
9456         (Fpq_get_line_async): Ditto.
9457
9458 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
9459
9460         * postgresql.c (Fpq_lo_import): Fix return value.
9461         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
9462
9463 2000-03-13  Ben Wing  <ben@xemacs.org>
9464
9465         * alloc.c (pdump_load):
9466         Fix compile warning under mswin.
9467
9468 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
9469
9470         * postgresql.c: Mule-ization, bug fixes.
9471         Use PG_CODING to encapsulate coding system name changes.
9472         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
9473         (pg-coding-system): Create.
9474
9475         (Fpq_conn_defaults): Mule-ize.
9476         (Fpq_connectdb): Mule-ize & bug fix.
9477         (Fpq_connect_start): Mule-ize.
9478         (Fpq_set_client_encoding): Mule-ize.
9479         (Fpq_finish): Document `DEAD' connection status.
9480         (Fpq_clear): Ditto.
9481         (Fpq_pgconn): Mule-ize.
9482         (Fpq_exec): Mule-ize & bug fix.
9483         (Fpq_send_query): Ditto.
9484         (Fpq_get_result): Ditto.
9485         (Fpq_res_status): Mule-ize.
9486         (Fpq_result_error_message): Mule-ize.
9487         (Fpq_ntuples): fix comments.
9488         (Fpq_fname): Mule-ize.
9489         (Fpq_fnumber): Mule-ize.
9490         (Fpq_ftype): fix comments.
9491         (Fpq_get_value): Mule-ize.
9492         (Fpq_cmd_status): Ditto.
9493         (Fpq_cmd_tuples): Ditto.
9494         (Fpq_oid_value): Ditto.
9495         (Fpq_notifies): Ditto.
9496         (Fpq_lo_import): Ditto.
9497         (Fpq_lo_export): Ditto.
9498         (Fpq_get_line): Ditto.
9499         (Fpq_put_line): Mule-ize and bug fix.
9500         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
9501
9502 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
9503
9504         * postgresql.c (vars_of_postgresql): Mule-ize.
9505         (Fpq_conn_defaults): Ditto.
9506
9507 2000-03-12  Ben Wing  <ben@xemacs.org>
9508
9509         * alloc.c (Fmake_byte_code):
9510         * alloc.c (debug_string_purity_print):
9511         * alloc.c (pdump_backtrace):
9512         * alloc.c (pdump_get_indirect_count):
9513         * alloc.c (pdump_register_sub):
9514         * alloc.c (pdump_register_object):
9515         * alloc.c (pdump_register_struct):
9516         * alloc.c (pdump_dump_data):
9517         * alloc.c (pdump_reloc_one):
9518         Minor cleanups.
9519
9520         * console-msw.c:
9521         * console-msw.c (GetConsoleHwnd):
9522         * console-msw.c (msw_hide_console):
9523         * console-msw.c (msw_show_console):
9524         * console-msw.c (msw_ensure_console_buffered):
9525         * console-msw.c (msw_output_console_string):
9526         * console-msw.c (console_type_create_mswindows):
9527
9528         a) Added functions to manipulate the console window for use with
9529         shell support.
9530
9531         b) Added support for writing text to the console, which is now
9532         used under Windows when xemacs is not being run non-interactively,
9533         to write text that would otherwise be destined for stdout because
9534         under these circumstances, text written to stdout tends to
9535         disappear and not be seen.
9536
9537         * console-msw.h:
9538         * event-Xt.c:
9539         * event-Xt.c (x_event_to_emacs_event):
9540         * event-Xt.c (describe_event_window):
9541         * events-mod.h (XEMACS_MOD_CONTROL):
9542         * events.c:
9543         * events.c (Fmake_event):
9544         * events.c (character_to_event):
9545         * events.c (event_to_character):
9546         * events.c (format_event_object):
9547         * events.c (Fevent_modifiers):
9548         * events.h:
9549         * events.h (struct key_data):
9550         * events.h (struct button_data):
9551         * events.h (struct misc_user_data):
9552         * frame-x.c (Fcde_start_drag_internal):
9553         * frame-x.c (Foffix_start_drag_internal):
9554         * gpmevent.c (Freceive_gpm_event):
9555         * keymap.c:
9556         * keymap.c (bucky_sym_to_bucky_bit):
9557         * keymap.c (control_meta_superify):
9558         * keymap.c (make_key_description):
9559         * keymap.c (keymap_lookup_directly):
9560         * keymap.c (create_bucky_submap):
9561         * keymap.c (keymap_store):
9562         * keymap.c (define_key_check_and_coerce_keysym):
9563         * keymap.c (define_key_parser):
9564         * keymap.c (define_key_alternate_name):
9565         * keymap.c (Fdefine_key):
9566         * keymap.c (raw_lookup_key_mapper):
9567         * keymap.c (struct map_keymap_unsorted_closure):
9568         * keymap.c (map_keymap_unsorted_mapper):
9569         * keymap.c (map_keymap_sort_predicate):
9570         * keymap.c (map_keymap_sorted):
9571         * keymap.c (accessible_keymaps_mapper_1):
9572         * keymap.c (where_is_recursive_mapper):
9573         * keymap.c (describe_map_mapper):
9574         * keymap.c (describe_map_sort_predicate):
9575         * keymap.c (describe_map):
9576         * keymap.c (complex_vars_of_keymap):
9577         And a number of other files, the key modifier preprocessor
9578         constants that xemacs uses have names that conflict with constants
9579         defined under MS Windows for other purposes, so they were renamed
9580         to begin with the prefix XEMACS_. The variables that hold such
9581         modifiers were changed to consistently be of type int to fix
9582         various compile warnings.
9583
9584         * console.c (complex_vars_of_console):
9585         * device.c:
9586         * device-msw.c:
9587         * device-msw.c (mswindows_finish_init_device):
9588         * device-msw.c (msw_get_workspace_coords):
9589         * device-msw.c (mswindows_device_system_metrics):
9590         and various other files, added support for a new
9591         device property called offset-workspace which returns the position
9592         of the upper left corner of the workspace area and goes along with
9593         the existing size-workspace property.
9594
9595         * dialog-msw.c:
9596         * dialog-msw.c (push_bufbyte_string_as_unicode):
9597         * dialog-msw.c (mswindows_popup_dialog_box):
9598         Added support for XEmacs-style accelerator specifications in
9599         button text.  Note: I didn't add support for this under X Windows,
9600         and somebody needs to do this.
9601
9602         * dialog.c:
9603         * dialog.c (Fpopup_dialog_box):
9604         Documented the support for accelerators that was just mentioned.
9605
9606         editfns.c (get_home_directory): Changed behavior under Windows
9607         when HOME not defined; former behavior was irretrievably broken.
9608
9609         * emacs.c:
9610         * emacs.c (main_1):
9611         * emacs.c (main):
9612         * minibuf.c (clear_echo_area_internal):
9613         * minibuf.c (echo_area_append):
9614         * print.c:
9615         * print.c (std_handle_out_external):
9616         * print.c (std_handle_out_va):
9617         * print.c (fatal):
9618         * print.c (write_string_to_stdio_stream):
9619         * print.c (output_string):
9620         * print.c (debug_print):
9621         * print.c (debug_backtrace):
9622         * print.c (debug_short_backtrace):
9623         Cleaned up the code that prints text to stdout so that this can be
9624         changed to output into a console window instead under MS Windows,
9625         as described above.
9626
9627         * eval.c:
9628         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
9629         * eval.c (internal_catch):
9630         * eval.c (unwind_to_catch):
9631         * eval.c (throw_or_bomb_out):
9632         * eval.c (condition_case_1):
9633         * eval.c (signal_1):
9634         * eval.c (check_error_state_sanity):
9635         * eval.c (call_with_suspended_errors_1):
9636         * eval.c (call_with_suspended_errors):
9637         * eval.c (reinit_vars_of_eval):
9638         Added code to catch throw loops and check for a pesky bug that may
9639         be gone now.
9640
9641         * event-msw.c:
9642         * event-msw.c (key_needs_default_processing_p):
9643         * event-msw.c (mswindows_wnd_proc):
9644         * event-msw.c (mswindows_modifier_state):
9645         * event-msw.c (emacs_mswindows_quit_p):
9646         * event-msw.c (vars_of_event_mswindows):
9647         a) Added support for using the alt key to select menu items as is
9648         standard under MS Windows.  This is controlled using the variable
9649         menu-accelerator-enabled, just like under X Windows.  There is an
9650         option on the options menu to turn this support on.  I really
9651         think that it should be on by default under Windows, but I'm not
9652         going to make this change yet.
9653
9654         b)  Added support for dynamic display size changes under Windows.
9655
9656         * event-stream.c:
9657         * event-stream.c (maybe_echo_keys):
9658         * event-stream.c (Fnext_event):
9659         * event-stream.c (command_builder_find_leaf):
9660         * event-stream.c (lookup_command_event):
9661         * event-stream.c (execute_command_event):
9662         * event-stream.c (pre_command_hook):
9663         * event-stream.c (post_command_hook):
9664         * event-stream.c (syms_of_event_stream):
9665         * event-stream.c (vars_of_event_stream):
9666         * event-stream.c (complex_vars_of_event_stream):
9667         * events.h (struct command_builder):
9668
9669         a) Tried to clean up a little bit the horribly written x-specific
9670         accelerator code that crept into this file.  I moved this code
9671         into menubar-x.c where it belongs. I also needed to move the
9672         command builder structure into the file events.h because it is
9673         accessed directly by this accelerator code.  What I didn't do, but
9674         which should be done at some point, is to properly abstract this
9675         code using device methods instead of the kludgy way that it
9676         currently hooks into the event code.
9677
9678         b) Added the lisp variables this-command-properties and
9679         last-command- properties, which should be used to synchronize two
9680         adjacent commands in preference to playing games with the variable
9681         this-command, which is typically what happens.
9682
9683         c) Added some slightly nasty code to hook into the lisp support
9684         for shifted- motion-key selection.  This is actually necessary for
9685         somewhat complicated reasons, which are described in
9686         simple.el. (NB: I think the proper thing would be to have the code
9687         that calls the pre and post command hooks also call out to generic
9688         lisp functions in simple.el, where all built-in stuff could be
9689         added.  I will think about this more.)
9690
9691         * event-unixoid.c (poll_fds_for_input):
9692         * lread.c (readchar):
9693         * redisplay-tty.c (tty_clear_frame):
9694         * redisplay-x.c (x_get_gc):
9695         * signal.c (interrupt_signal):
9696         And a whole bunch of other files: fixed up places that printed
9697         directly to stderr to instead call the function stderr_out so that
9698         the changes I made under Windows work correctly.
9699
9700         * filemode.c (mode_string):
9701         Warning fixes.
9702
9703         * frame-msw.c:
9704         * frame-msw.c (mswindows_size_frame_internal):
9705         Fixed the computation of frame size and position to keep the frame
9706         within the workspace area, rather than within the physical
9707         dimensions of the screen, so that the frame doesn't overlap window
9708         manager decorations, such as the start menu and toolbar, typically
9709         at the bottom of the screen.
9710
9711         * frame.c (vars_of_frame):
9712         Changed the default frame title format under MS Windows to consist
9713         of buffername-XEmacs, which is standard under MS Windows.  I think
9714         it might be a good idea to change this everywhere because I think
9715         it is superior to the current frame title format, but this is the
9716         kind of change that is likely to cause some people to get annoyed,
9717         so I'm not making it.
9718
9719         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
9720
9721         * gui-msw.c (mswindows_handle_gui_wm_command):
9722         Fixed compile warnings.
9723
9724         * gui-x.c:
9725         * gui-x.c (strdup_and_add_accel):
9726         * gui-x.c (button_item_to_widget_value):
9727         * gui-x.h:
9728         Added code to automatically put an accelerator onto the beginning
9729         of menu items that don't have one as is now the standard, and is
9730         described more later.  Also fixed things so that the menu item
9731         name can be an evaluated expression, again a new standard.
9732
9733         * gui.c:
9734         * gui.c (gui_item_add_keyval_pair):
9735         * gui.c (make_gui_item_from_keywords_internal):
9736         * gui.c (gui_add_item_keywords_to_plist):
9737         * gui.c (gui_item_accelerator):
9738         * gui.c (gui_name_accelerator):
9739         * gui.c (gui_item_included_p):
9740         * gui.c (gui_item_display_flush_left):
9741         * gui.c (gui_item_display_flush_right):
9742         * gui.c (parse_gui_item_tree_item):
9743         * gui.c (parse_gui_item_tree_children):
9744         * gui.c (parse_gui_item_tree_list):
9745         Mule-ized.  Cleanup.  GCPRO addition.
9746
9747         * line-number.c (buffer_line_number):
9748         * lisp.h:
9749         * lisp.h (EMACS_INT_MAX):
9750         Added the manifest constant EMACS_INT_MIN corresponding to the
9751         existing constant EMACS_INT_MAX.  This is partially to fix compile
9752         warnings under Windows, and partly for cleanliness.
9753
9754         * menubar-msw.c:
9755         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
9756         * menubar-msw.c (msw_translate_menu_or_dialog_item):
9757         * menubar-msw.c (displayable_menu_item):
9758         * menubar-msw.c (populate_menu_add_item):
9759         * menubar-msw.c (populate_or_checksum_helper):
9760         * menubar-msw.c (populate_menu):
9761         * menubar-msw.c (update_frame_menubar_maybe):
9762         * menubar-msw.c (prune_menubar):
9763         * menubar-msw.c (msw_char_is_accelerator):
9764         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
9765         * menubar-msw.c (mswindows_handle_wm_command):
9766         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
9767         * menubar-msw.c (mswindows_handle_wm_initmenu):
9768         * menubar-msw.c (mswindows_update_frame_menubars):
9769         * menubar-msw.c (mswindows_free_frame_menubars):
9770         * menubar-msw.c (mswindows_popup_menu):
9771         Fixed a bug in handling accelerators where an extra character
9772         would be displayed in the menu item.  Also generalized the
9773         function displayable_menu_item because it is now used by the
9774         dialog box code as well.  And finally, added code in the functions
9775         that create the menubar to extract a list of accelerators for the
9776         top level menubar, which is used in the event code to determine
9777         whether a particular alt-key combination should be used to invoke
9778         a menu item, or should be passed through to access the standard
9779         XEmacs keymap binding for this key combination.
9780
9781         Much needed GCPROing.
9782
9783         * menubar-x.c:
9784         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9785         * menubar-x.c (menu_item_descriptor_to_widget_value):
9786         * menubar-x.c (restore_in_menu_callback):
9787         * menubar-x.c (x_popup_menu):
9788         * menubar-x.c (menu_move_up):
9789         * menubar-x.c (menu_move_down):
9790         * menubar-x.c (menu_move_left):
9791         * menubar-x.c (menu_move_right):
9792         * menubar-x.c (menu_select_item):
9793         * menubar-x.c (command_builder_operate_menu_accelerator):
9794         * menubar-x.c (menu_accelerator_junk_on_error):
9795         * menubar-x.c (command_builder_find_menu_accelerator):
9796         * menubar-x.c (Faccelerate_menu):
9797         * menubar.h:
9798         Moved a whole bunch of code here that was previously in
9799         event-stream.c as described above.  There is also code connected
9800         to the new standard of adding an accelerator to the beginning of
9801         menu items that don't have one as described above and below.
9802
9803         * menubar.c:
9804         * menubar.c (menu_parse_submenu_keywords):
9805         * menubar.c (Fmenu_find_real_submenu):
9806         * menubar.c (Fnormalize_menu_item_name):
9807         * menubar.c (syms_of_menubar):
9808         * menubar.c (vars_of_menubar):
9809         * menubar.c (complex_vars_of_menubar):
9810
9811         a) Cleaned up a bunch of documentation and improved it.
9812
9813         b) XEmacs now automatically adds an accelerator onto the beginning
9814         of any menu items that don't have one.  I did this because there
9815         will inevitably be some menu items on the main menubar that don't
9816         have accelerators on them because the package that adds that
9817         particular menu item hasn't yet been fixed up to have accelerators
9818         in them and it looked rather strange to have some items with and
9819         some items without accelerators, especially since even in items
9820         without accelerators, you can, at least under windows, still
9821         access the item through an accelerator corresponding to the first
9822         character in the item's name.  If people don't like this behavior,
9823         I can add a variable to turn it off optionally, but I'm not sure
9824         this is a good idea because we really do need to have accelerators
9825         on all of the menu items, and if a package doesn't like the
9826         accelerators being put on the first character, then it should put
9827         the accelerators where they belong.
9828
9829         c) I made a behavior change, which is that the descriptor that
9830         specifies the text of the menu item, which formerly was just a
9831         string, can now also be an evaluated expression.  This makes this
9832         descriptor parallel with all of the others, which could also be
9833         evaluated expressions.  This also obviates the need for the
9834         keyword :label, which was previously listed in the documentation
9835         as unimplemented, and which was for the same purpose.
9836
9837         d) GCPROing.
9838
9839         * ntproc.c:
9840         * ntproc.c (new_child):
9841         * ntproc.c (sys_spawnve):
9842         * ntproc.c (find_child_console):
9843         * ntproc.c (sys_kill):
9844         Fixed compile warnings.  By the way, this file should really go
9845         away entirely, and this will happen as soon as Kirill makes his
9846         final round of process cleanups, which affect the function
9847         call-process.
9848
9849         * process-nt.c:
9850         * process-nt.c (struct nt_process_data):
9851         * process-nt.c (find_process_from_pid):
9852         * process-nt.c (send_signal_the_nt_way):
9853         * process-nt.c (enable_child_signals):
9854         * process-nt.c (find_child_console):
9855         * process-nt.c (send_signal_the_95_way):
9856         * process-nt.c (nt_finalize_process_data):
9857         * process-nt.c (ensure_console_window_exists):
9858         * process-nt.c (nt_create_process):
9859         * process-nt.c (nt_kill_child_process):
9860         * process-nt.c (nt_kill_process_by_pid):
9861         * process-nt.c (nt_open_network_stream):
9862         * process-nt.c (vars_of_process_nt):
9863         Copied over code from Emacs 20.5 to correctly send signals to sub-
9864         processes under Windows 95.  Also added code to automatically
9865         create and hide console window when a sub-process is created under
9866         Windows 95, which obviates the need for the separate runemacs.exe
9867         executable, and finally implemented some variables that were
9868         implemented in Emacs 20.5, but previously not in XEmacs.  These
9869         include mswindows- start-process-share-console and
9870         mswindows-start-process-inherit-error-mode. (Both of these only
9871         apply to Windows 95.)
9872
9873         * regex.c (regex_compile): Fixed a compile warning.
9874
9875         * select-msw.c:
9876         * select-msw.c (mswindows_own_selection):
9877         * select-msw.c (mswindows_get_foreign_selection):
9878         * select-msw.c (mswindows_disown_selection):
9879         * select-msw.c (console_type_create_select_mswindows):
9880         * select-msw.c (syms_of_select_mswindows):
9881         Cleaned up the file and implemented the device method
9882         selection_exists_p, which had accidentally been left out.  Also
9883         removed four lisp functions that were remnants from before the
9884         time when the selection code was properly device abstracted.
9885         These functions are no longer needed because there are generic
9886         equivalents, and because they were added recently and don't exist
9887         in FSF Emacs, I don't think there's any problem with just deleting
9888         them.
9889
9890         * sysdep.c:
9891         * sysdep.c (sys_subshell):
9892         Fixed a compile warning, although in this case there's probably
9893         something wrong with this code, and it ought to be looked into
9894         more thoroughly by somebody who understands it.
9895
9896         * window.c:
9897         * window.c (Fwindow_text_area_height):
9898         * window.c (Fwindow_width):
9899         * window.c (Fwindow_full_width):
9900         * window.c (Fwindow_pixel_width):
9901         * window.c (debug_print_window):
9902         * window.c (syms_of_window):
9903         Added functions window-text-area-height and window-full-width,
9904         which are functions for returning various width and height
9905         characteristics of a window. (One of these functions is necessary
9906         for making the file dialog box work correctly, and the other one
9907         was added for completeness.)  Also added a table to the
9908         documentation for window-height which describes the entire scheme
9909         for accessing width and height characteristics of a window.
9910
9911 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
9912
9913         * nt.c (fstat): Added a comment for another problem with
9914         non-encapsulated [f]stat(), reported by Adrian Aichner
9915         <aichner@ecf.teradyne.com>.
9916
9917 2000-03-11  Andy Piper  <andy@xemacs.org>
9918
9919         * window.c (make_dummy_parent): initialize subwindow instance
9920         cache.
9921         (Fset_window_configuration): zero extent_modiff.
9922
9923 2000-03-10  Andy Piper  <andy@xemacs.org>
9924
9925         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
9926         more changes can be triggered.
9927         (Fredisplay_frame): ditto.
9928         (Fredraw_device): ditto.
9929         (Fredisplay_device): ditto.
9930         (redisplay_frame): make non-static.
9931         (redisplay_frame): call update_frame_gutter_geometry outside of
9932         display proper.
9933
9934         * gutter.h: declare update_frame_gutter_geometry.
9935
9936         * redisplay.h: declare redisplay_frame.
9937
9938         * gutter.c (update_frame_gutter_geometry): move geometry changes
9939         in update_frame_gutters here. Geometry changes can only occur
9940         outside of redisplay.
9941         (update_frame_gutters): remove geometry change code.
9942         (Fredisplay_gutter_area): make sure that we are in display when we
9943         update and that we have flushed any size changes.
9944
9945 2000-03-11  Andy Piper  <andy@xemacs.org>
9946
9947         * alloc.c (pdump_dump_data): remove i & count shadows.
9948
9949 2000-02-27  Mike Alexander  <mta@arbortext.com>
9950
9951         * sysdep.h: Declare pdump_read_file
9952
9953         * sysdep.c (pdump_read_file): New function
9954
9955         * alloc.c (pdump_load): Call pdump_read_file to get the portable
9956         dump data
9957
9958 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
9959
9960         * lrecord.h: add `lrecord_type_pgsetenv'.
9961
9962 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
9963
9964         * symsinit.h: declare (vars|syms)_of* functions.
9965         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
9966
9967 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
9968
9969         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
9970
9971         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
9972         GCCs.
9973
9974         * emacs.c (main_1): Call postgres initialization code.
9975
9976         * postgresql.h: New file.  PostgreSQL RDBMS support.
9977         * postgresql.c: New file.
9978
9979 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
9980
9981         * redisplay-output.c (redisplay_output_display_block): Disable
9982         redundant code.
9983
9984 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
9985
9986         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
9987         (Fcanna_henkan_next): Ditto.
9988         (Fcanna_bunsetu_henkou): Ditto.
9989         (Fcanna_henkan_kakutei): Ditto.
9990         (Fcanna_henkan_end): Ditto.
9991         (Fcanna_henkan_quit): Ditto.
9992         (Fcanna_henkan_next): Set retun value correctly.
9993         (c2mu): Use unsigned char instead of signed char.
9994
9995 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
9996
9997         * emacs.c (main_1): Always call syms_of_gui.
9998         * inline.c: include gui.h
9999
10000 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10001
10002         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
10003         converted to Lisp_Object.
10004         (Qtop_bottom): New variable.
10005         (syms_of_redisplay): Initialize it.
10006         * redisplay.h (Vvisible_bell): Ditto.
10007         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
10008         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
10009         only flash top and bottom.
10010
10011 2000-03-08  Andy Piper  <andy@xemacs.org>
10012
10013         * buffer.c (Frename_buffer): record new buffer name the right way.
10014
10015 2000-03-08  Andy Piper  <andy@xemacs.org>
10016
10017         * glyphs.c (update_subwindow): increase hash depth so that widget
10018         items get picked up properly.
10019
10020         * redisplay-output.c (compare_runes): increase hash depth so that
10021         widget items get picked up properly.
10022
10023 2000-03-08  Andy Piper  <andy@xemacs.org>
10024
10025         * gutter.c (output_gutter): add some debug.
10026
10027         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
10028         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
10029         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
10030
10031         * redisplay-output.c (compare_runes): use display_hash to
10032         determine if glyphs really are not the same.
10033
10034         * glyphs.c (update_subwindow): check display_hash to see if
10035         anything really needs to be updated. If not then do
10036         nothing. Record the display_hash after updating.
10037         (image_instance_equal): compare the image_instance face also.
10038
10039 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
10040
10041         * redisplay.h: Fix comment style.
10042
10043 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10044
10045         * consle-msw.h (struct mswindows_frame):
10046         Added new member paint_pending to indicate whether a WM_PAINT
10047         magic event has been queued for this frame.
10048
10049         * event-msw.c (mswindows_drain_windows_queue):
10050         Don't queue a WM_PAINT magic event if one is already queued.
10051         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
10052
10053         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
10054
10055 2000-03-07  Didier Verna  <didier@xemacs.org>
10056
10057         * dired.c: #include `regex.h' after `sysfile.h'.
10058
10059 2000-03-06  Martin Buchholz  <martin@xemacs.org>
10060
10061         * sound.c (init_nas_sound): Fix compiler warning.
10062
10063         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
10064         (FREE_STRUCT_P):
10065         (MARK_STRUCT_AS_FREE):
10066         (MARK_STRUCT_AS_NOT_FREE):
10067         Make `gcc -fstrict-aliasing' work properly.
10068
10069 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10070
10071         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
10072         (mswindows_delete_device): Call CoUnnitialize().
10073
10074         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
10075
10076 2000-02-25    <CraigL@DyCon.com>
10077
10078         * process-nt.c: MinGW now has <shellapi.h>, but still needs
10079         <errno.h>.
10080
10081         * sysdep.c: This extern declaration for environ prevents MinGW
10082         from finding the variable in CRTDLL.DLL.
10083
10084         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
10085         windows headers.
10086         (SHGFI_EXETYPE): ..
10087         (WM_MOUSEWHEEL): ..
10088         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
10089         definitions.
10090         (MMRESULT): Removed, now defined in cygwin's windows headers.
10091         (TIMECAPS): ..
10092         (uid_t,gid_t,pid_t,ssize_t): ..
10093         (_timeb): Removed, MinGW defines both _timeb and timeb.
10094         (HAVE_H_ERRNO): Added.
10095         (HAVE_TZNAME): Added, configure is not detecting this.
10096
10097 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
10098
10099         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
10100         * syntax.c (syntax_match): Use it.
10101
10102         * cmds.c: Import auto-fill-chars from FSF Emacs.
10103         (Vauto_fill_chars): New variables.
10104         (internal_self_insert): Check Vauto_fill_chars.
10105         (vars_of_cmds):
10106         Declare auto-fill-chars as a Lisp variable and initialize it.
10107
10108 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10109
10110         * fileio.c (Fmake_symbolic_link):
10111         (Ffile_symlink_p):
10112         Run handlers even if local machine doesn't have symlinks.
10113
10114 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10115
10116         * event-msw.c (mswindows_drain_windows_queue):
10117         Don't generate paint magic events for non-XEmacs frames.
10118
10119 2000-03-05  Andy Piper  <andy@xemacs.org>
10120
10121         * redisplay.c (redisplay_frame): generate_displayable_area and
10122         friends assumes that we are not in GC, we therefore have to make
10123         sure that this doesn't happen.
10124
10125         * gutter.c (calculate_gutter_size): generate_displayable_area
10126         assumes that we are not in GC, we therefore have to make sure that
10127         this doesn't happen.
10128
10129 2000-03-05  Martin Buchholz  <martin@xemacs.org>
10130
10131         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
10132
10133 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
10134
10135         * redisplay.c (regenerate_window): Make sure we set a sane value
10136         for end_pos even if we jump out of the loop.
10137         (regenerate_window): Answer Ben's question :-).
10138         (start_end_of_last_line): Add may_error argument.
10139         (start_of_last_line):
10140         (end_of_last_line): Pass may_error = 0.
10141         (end_of_last_line_may_error): New function.
10142         (pixel_to_glyph_translation): Use it, so we don't crash in
10143         event_to_glyph.
10144
10145 2000-03-04  Andy Piper  <andy@xemacs.org>
10146
10147         * window.h (struct window): add gutter_extent_modiff.
10148
10149         * window.c (allocate_window): zero out gutter_extent_modiff.
10150
10151         * redisplay.h: declare sync_display_line_structs.
10152
10153         * redisplay.c (add_glyph_rune): add a better comment.
10154
10155         * redisplay-output.c (sync_display_line_structs): made non-static.
10156         (compare_runes): remove unneccesary glyph cachel access.
10157
10158         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
10159
10160         * gutter.c (output_gutter): don't output the gutter if extent
10161         changes only involve extents in buffers. use 4 sets of display
10162         lines.
10163         (gutter_extent_signal_changed_region_maybe): new function. Mark
10164         extents in gutters as changed.
10165         (update_frame_gutters): use 4 sets of display lines.
10166         (reset_gutter_display_lines): ditto.
10167         (free_frame_gutters): ditto.
10168         (redraw_exposed_gutter): force output of gutters.
10169
10170         * frame.h (struct frame): add 4 sets of gutter display lines.
10171
10172         * extents.c: (extent_changed_for_redisplay): signal changes to
10173         extents in strings in the gutter as well as extents in buffers.
10174
10175 2000-03-02  Andy Piper  <andy@xemacs.org>
10176
10177         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
10178
10179         * frame.c (Fmake_frame): make sure the gutters get initialized
10180         after the frame is visible.
10181         (set_frame_selected_window): re-arrange compilation macros a
10182         little.
10183         (change_frame_size_1): mark gutters changed.
10184
10185         * device.c (Fset_device_class): mark gutters changed.
10186
10187 2000-03-01  Andy Piper  <andy@xemacs.org>
10188
10189         * window.c (window_top_frame_gutter_height): deleted.
10190         (window_bottom_frame_gutter_height): ditto.
10191         (window_left_frame_gutter_height): ditto.
10192         (window_right_frame_gutter_height): ditto.
10193         (window_top_gutter_height): don't use them.
10194         (window_bottom_gutter_height): ditto.
10195         (window_left_gutter_width): ditto.
10196         (window_right_gutter_width): ditto.
10197         (Fsplit_window): ditto.
10198         (Fwindow_pixel_edges): don't use border dimensions here.
10199
10200         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
10201         (update_scrollbar_instance): ditto.
10202
10203         * redisplay.c (generate_modeline): don't take gutters into account.
10204         (generate_modeline): ditto.
10205         (redisplay_frame): small gutter display optimization.
10206
10207         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
10208
10209         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
10210         gutters into account.
10211
10212         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
10213         for window position and type.
10214
10215         * gutter.c (get_gutter_coords): fix for frame gutters.
10216         (update_frame_gutters): update frame geometry if the gutters have
10217         changed.
10218         (init_frame_gutters): record current gutter geometries.
10219
10220         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
10221         var.
10222         (mswindows_widget_instantiate): ditto.
10223
10224         * frame.h (struct frame): add current_gutter_bounds.
10225
10226         * frame.c (change_frame_size_1): position window and minibuffer
10227         appropriately taking into account the frame gutters.
10228
10229         * frame-x.c: (x_initialize_frame_size): take into account the
10230         frame gutters.
10231
10232 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
10233
10234         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
10235
10236 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
10237
10238         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
10239
10240 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
10241
10242         * file-coding.c (reset_decoding_stream): Clear previous
10243         detection state when autodetect.
10244
10245 2000-02-29  Didier Verna  <didier@xemacs.org>
10246
10247         * extents.c (set_extent_glyph_1): don't require extents to be
10248         attached.
10249
10250 2000-02-27  Andy Piper  <andy@xemacs.org>
10251
10252         * gutter.c (Fset_default_gutter_position): don't default left and
10253         right gutter visibility to t.
10254         (Fset_default_gutter_position): run
10255         default-gutter-position-changed-hook.
10256         (syms_of_gutter): add default-gutter-position-changed-hook.
10257
10258 2000-02-26  Andy Piper  <andy@xemacs.org>
10259
10260         * specifier.c (Fmake_specifier): add gutter references.
10261
10262         * gutter.h (RAW_WINDOW_GUTTER): new macro.
10263
10264         * lisp.h: declare Fvalid_plist_p.
10265
10266         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
10267         as changed.
10268         (default_gutter_visible_p_changed_in_window): invalidate gutter as
10269         well as its visibility so that it gets reconstructed.
10270         (construct_window_gutter_spec): new function. Construct a string
10271         to be displayed in the gutter from a plist of strings. Take care
10272         to only use elements that are declared as visible.
10273         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
10274         WINDOW_GUTTER.
10275         (gutter_validate): allow plists of strings in the specifier.
10276         (gutter_specs_changed): construct the real_gutter from the gutter
10277         specs using construct_window_gutter_spec.
10278         (gutter_visible_validate): gutter-visible is a new specifier type.
10279         (Fgutter_visible_specifier_p): new function for the new specifier.
10280         (syms_of_gutter): declare gutter-visible and
10281         Fgutter_visible_specifier_p.
10282         (specifier_type_create_gutter): intitalize new gutter-visible
10283         specifier.
10284         (reinit_specifier_type_create_gutter): ditto.
10285         (specifier_vars_of_gutter): use new specifier type for gutter
10286         visibility.
10287         (init_frame_gutters): construct real_gutter correctly.
10288         (Fgutter_specifier_p): beef up documentation.
10289         (Fgutter_size_specifier_p): ditto.
10290
10291         * winslots.h: add real_gutter slots.
10292
10293 2000-02-25  Andy Piper  <andy@xemacs.org>
10294
10295         * device-msw.c: Be kind to older cygwin versions. From Raymond
10296         Toy <toy@rtp.ericsson.se>.
10297
10298         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
10299         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
10300
10301 2000-02-25  Martin Buchholz  <martin@xemacs.org>
10302
10303         * elhash.c (MARK_OBJ): Practice macro hygiene.
10304
10305 2000-02-24  Martin Buchholz  <martin@xemacs.org>
10306
10307         * miscplay.c: s/__inline__/inline/g;
10308         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
10309         (get_device_compdc): INLINE ==> static inline
10310         * *.[ch]: Change INLINE to INLINE_HEADER globally.
10311         find -name '*.h' | \
10312         xargs global-replace \
10313         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
10314
10315 2000-02-25  Andy Piper  <andy@xemacs.org>
10316
10317         * window.c (window_top_frame_gutter_height): new function.
10318         (window_top_window_gutter_height): ditto.
10319         (window_top_gutter_height): use them.
10320         (window_bottom_frame_gutter_height): new function.
10321         (window_bottom_window_gutter_height): ditto.
10322         (window_bottom_gutter_height): use them.
10323         (window_left_window_gutter_width): new function.
10324         (window_left_frame_gutter_width): ditto.
10325         (window_left_gutter_width): use them.
10326         (window_right_window_gutter_width): new function.
10327         (window_right_frame_gutter_width): ditto.
10328         (window_right_gutter_width): use them.
10329         (window_pixel_height): new function. calulate window pixel height
10330         with frame gutter involvement.
10331         (Fsplit_window): calculate new sizes taking frame gutters into
10332         account.
10333         (window_char_height_to_pixel_height): don't include frame gutters.
10334         (window_char_height): use window_pixel_height.
10335         (window_pixheight): rename from window_pixel_height.
10336         (change_window_height): use it.
10337         (window_pixel_height_to_char_height): don't include frame gutters.
10338         (window_char_width_to_pixel_width): ditto.
10339
10340 2000-02-25  Andy Piper  <andy@xemacs.org>
10341
10342         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
10343         if it is.
10344
10345 2000-02-24  Martin Buchholz  <martin@xemacs.org>
10346
10347         * alloc.c (staticpro):
10348         (staticpro_nodump):
10349         (dumpstruct):
10350         (dumpopaque):
10351         (pdump_wire):
10352         (pdump_wire_list):
10353         (compact_string_chars):
10354         (pdump_dump_wired):
10355         Convert:  if (foo) abort();  ==>  assert (! foo);
10356
10357         * eldap.c (Fldap_search_basic):
10358         (Fldap_add):
10359         (Fldap_modify):
10360         (Fldap_delete):
10361         Fix compiler warnings, and possible crashes if (random) return
10362         value were to be used.
10363
10364 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10365
10366         * device-msw.c: Workaround ResetDC failure.
10367
10368         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
10369         applying a devmode.
10370
10371         * redisplay-msw.c (get_frame_dc): Added start_page_p.
10372         (mswindows_text_width): Do not start printer page.
10373
10374         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
10375
10376         * glyphs-msw.c: Added image methods to msprinter console and
10377         msprinter-specific image instantiation.
10378
10379 2000-02-20  Mike Alexander  <mta@arbortext.com>
10380
10381         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
10382         to avoid crashes when selection-sets-clipboard is on
10383         (mswindows_own_selection): ditto
10384
10385 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10386
10387         * glyphs-msw.c:
10388         * redisplay-msw.c (get_frame_dc):
10389         (get_frame_compdc):
10390         * console-msw.h:
10391         * device-msw.c (mswindows_init_device):
10392         (mswindows_delete_device):
10393         (msprinter_init_device):
10394         (msprinter_delete_device):
10395         * frame-msw.c (mswindows_init_frame_1):
10396         (mswindows_delete_frame):
10397         (msprinter_init_frame_3):
10398         (msprinter_delete_frame): Move compatible DC to device object from
10399         frame object, for both mswindows and msprinter. Only one at a time
10400         is needed, it is a real waste to have one per frame!
10401
10402 2000-02-23  Andy Piper  <andy@xemacs.org>
10403
10404         * glyphs.c: add dynamic width and height elements.
10405         (image_instance_equal): ditto.
10406
10407         * glyphs-widget.c (widget_query_geometry): calculate width and
10408         height dynamically if required.
10409         (initialize_widget_image_instance): initialize dynamic dimensions.
10410         (widget_instantiate): pick-up dynamic dimensions.
10411
10412         * glyphs.h (struct Lisp_Image_Instance): add width and height for
10413         dynamic determination. Add appropriate macros.
10414
10415         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
10416         dimensions safe.
10417         (WINDOW_GUTTER_SIZE): ditto.
10418         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
10419
10420         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
10421         inline.
10422         (get_frame_dc): ditto.
10423
10424         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
10425         here.
10426
10427 2000-02-23  Martin Buchholz <martin@xemacs.org>
10428
10429         * XEmacs 21.2.31 is released.
10430
10431 2000-02-22  Ben Wing <ben@xemacs.org>
10432
10433         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
10434
10435 2000-02-22  Andy Piper  <andy@xemacs.org>
10436
10437         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
10438
10439 2000-02-21  Mike Sperber <mike@xemacs.org>
10440
10441         * .dbxrc:
10442         * .gdbinit:
10443         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
10444         variables.
10445
10446 2000-02-21  Mike Sperber <mike@xemacs.org>
10447
10448         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
10449
10450 2000-02-21  Martin Buchholz <martin@xemacs.org>
10451
10452         * XEmacs 21.2.30 is released.
10453
10454 2000-02-20  Martin Buchholz  <martin@xemacs.org>
10455
10456         Performance hacking.
10457         * *.c (syms_of_*):
10458         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
10459         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
10460         * emacs.c (main_1):
10461         * lisp.h (DEFUN):
10462         * console.c (DEFVAR_CONSOLE_LOCAL_1):
10463         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
10464         * symeval.h (DEFVAR_SYMVAL_FWD):
10465         * symbols.c (guts_of_unbound_marker):
10466         Make all c_readonly objects also lisp_readonly and marked for life.
10467         * lrecord.h (struct lrecord_implementation):
10468         Document flags better.
10469         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
10470         * lrecord.h (DECLARE_LRECORD):
10471         * lrecord.h (XSETRECORD):
10472         * lrecord.h (RECORDP):
10473         * lrecord.h (RECORD_TYPEP):
10474         * lrecord.h (RECORD_MARKER): New.
10475         * lrecord.h (error_check_*):
10476         * lrecord.h (CONCHECK_NONRECORD):
10477         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
10478         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
10479         * lrecord.h (set_lheader_implementation):
10480         * lrecord.h (enum lrecord_type): New.
10481         * symeval.h (SYMBOL_VALUE_MAGIC_P):
10482         * alloc.c (disksave_object_finalization_1):
10483         * alloc.c (mark_object):
10484         * alloc.c (lrecord_type_index):
10485         * alloc.c (tick_lcrecord_stats):
10486         * alloc.c (Fgarbage_collect):
10487         * alloc.c (init_alloc_once_early):
10488         * alloc.c (pdump_load):
10489         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
10490         * alloc.c (lrecord_type_index): Delete.
10491         Make lisp object type indexes be constant.
10492           Makes (byte-compile) 5% faster.
10493         Put all marker functions into their own array.
10494           Makes (garbage-collect) 5% faster.
10495         Optimize SYMBOL_VALUE_MAGIC_P.
10496           Makes (byte-compile) 2-3% faster.
10497         * config.h.in (gc_checking_assert): New.
10498         * alloc.c: Use gc_checking_assert().
10499         * .dbxrc: Make compatible with new object type implementation.
10500         * .gdbinit: Make compatible with new object type implementation.
10501         * alloc.c: Delete all symbols defined only for debugging, such as
10502         Lisp_Type_Vector and lrecord_charset.
10503
10504 2000-02-21  Andy Piper  <andy@xemacs.org>
10505
10506         * gui-msw.c (Fmswindows_shell_execute): fix file location
10507         problems.
10508
10509         * buffer.c (Fkill_buffer): remove buffer from alist buffer
10510         unshowing so that set_window_buffer doesn't undo
10511         kill_buffer_hook's hard work.
10512
10513         * glyphs-widget.c (tab_control_query_geometry): don't count the
10514         first item when calculating geometry.
10515
10516         * glyphs.c (map_subwindow): remove redundant code.
10517         (update_frame_subwindows): be more circumspect about when to
10518         update subwindows.
10519
10520         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
10521         when items haven't changed. Update faces if faces have changed as
10522         well as just the widget face.
10523         (x_tab_control_update): Update faces if faces have changed as well
10524         as just the widget face.
10525
10526 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10527
10528         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
10529         registration.
10530         (build_syscolor_string): Use mswindows_color_to_string to try to
10531         get a named color.
10532         (mswindows_device_system_metrics): Reverse the foreground and
10533         background colors so that they match the documentation.
10534
10535         * objects-msw.c: (mswindows_X_color_map): tweak some values so
10536         they match the default Windows palette.
10537         (mswindows_color_to_string): New function.
10538
10539 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10540
10541         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
10542
10543 2000-02-18  Olivier Galibert  <galibert@pobox.com>
10544
10545         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
10546         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
10547
10548         * symbols.c (init_symbols_once_early): Removed obsolete
10549         DATA_SEG_BITS related kludge.
10550         (defvar_magic): Ditto.
10551
10552         * malloc.c: Removed obsolete DATA_SEG_BITS
10553         * ralloc.c: Ditto.
10554         * mem-limits.h: Ditto.
10555
10556         * Makefile.in.in: Removed obsolete HAVE_SHM
10557         * emacs.c: Ditto.
10558
10559 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10560
10561         *  device-msw.c (mswindows_delete_device): Free DDE string
10562         handles.
10563
10564 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10565
10566         * keymap.c (get_keyelt):
10567         * unexnt.c (unexec):
10568         * vm-limit.c (memory_warnings):
10569         * ntheap.c (recreate_heap):
10570         * ntheap.h (UNINIT_PTR):
10571         * select-msw.c (Fmswindows_get_clipboard):
10572         (Fmswindows_set_clipboard):
10573         * objects-msw.h (MSWINDOWS_BAD_HFONT):
10574         * objects-msw.c:
10575         * menubar-msw.c (displayable_menu_item):
10576         * glyphs-msw.c:
10577         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
10578         * sysdep.c (sys_subshell):
10579         * process-nt.c (nt_create_process):
10580         * nt.c (normalize_filename):
10581         (dostounix_filename):
10582         (unixtodos_filename):
10583         * ntproc.c (win32_executable_type):
10584         * ntplay.c (play_sound_data_1):
10585         (play_sound_file):
10586         * editfns.c (get_home_directory):
10587         * event-msw.c (struct winsock_stream):
10588         (mswindows_dde_callback):
10589         * device-msw.c (msprinter_init_device):
10590         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
10591
10592         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
10593         mswindows_clear_toolbar were swapped!
10594
10595         * objects-msw.c:(colormap_t):
10596         (fontmap_t):
10597         * emacs.c (struct standard_args): Fixed const jumble.
10598
10599         * glyphs-widget.c (update_widget): Fixed comparison notation.
10600
10601         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
10602
10603         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
10604         __declspec(noreturn) syntax.
10605
10606 2000-02-19  Martin Buchholz  <martin@xemacs.org>
10607
10608         * eldap.c (Fldap_open):
10609         (Fldap_search_basic):
10610         (Fldap_add):
10611         (Fldap_modify):
10612         Use new coding system conversion macros.
10613
10614 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
10615
10616         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
10617
10618 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
10619
10620         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
10621         (Fldap_add, Fldap_modify, Fldap_delete): New functions
10622
10623         * eldap.c (Qadd, Qreplace): New constant symbols
10624         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
10625         interruptions by XEmacs signals
10626         Remove unnecessary calls to slow_down_interrupts and
10627         speed_up_interrupts
10628         (Fldap_search_basic): Renamed from Fldap_search_internal
10629         Added new optional parameter VERBOSE that triggers the
10630         display of progress messages
10631         Remove unnecessary calls to slow_down_interrupts and
10632         speed_up_interrupts
10633         LDAP result code analysis rewritten
10634         (Fldap_add, Fldap_modify, Fldap_delete): New functions
10635         (syms_of_eldap): Define the new symbols and functions
10636
10637
10638 2000-02-17  Martin Buchholz  <martin@xemacs.org>
10639
10640         * realpath.c: Determine PATH_MAX maximally portably.
10641
10642         * insdel.c (bytecount_to_charcount): Optimize.
10643         The function used to be optimized for entirely ASCII sequences.
10644         Now it is optimized for successive characters from the same
10645         charset.  This also wins big for _mostly_ ASCII sequences.
10646
10647         * fileio.c (Ffile_truename): convert return from realpath() using
10648         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
10649         - Rewrite GCPROing slightly.
10650
10651         * sysdep.c (sys_open): Do filename conversion, like all other
10652         sys_* functions.  Fixes bug:
10653         (let ((file-name-coding-system 'iso-8859-2))
10654            (write-region x y latin2-name))
10655         ==> writes filename using internal encoding.
10656
10657 2000-02-18  Martin Buchholz  <martin@xemacs.org>
10658
10659         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
10660         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
10661         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
10662         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
10663         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
10664         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
10665         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
10666         (CONST_IF_NOT_DEBUG): Delete.
10667         * alloc.c (this_one_is_unmarkable): Delete.
10668         (mark_object): Don't check for this_one_is_unmarkable. Use the
10669         c_readonly flag instead.
10670         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
10671
10672 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10673
10674         * event-msw.c (mswindows_drain_windows_queue):
10675         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
10676         away redundant repaint events.
10677
10678 2000-02-17  Andy Piper  <andy@xemacs.org>
10679
10680         * redisplay.h: declare mark_redisplay_structs.
10681
10682         * redisplay.c (redisplay_window):
10683         (redisplay_frame): don't check subwindows_state_changed.
10684         (mark_redisplay): mark gutters here.
10685
10686         * glyphs.c: (instantiate_image_instantiator): always layout if we
10687         haven't done so already.
10688         (allocate_image_instance): don't mark as dirty.
10689         (update_subwindow): bind inhibit_quit.
10690
10691         * gutter.c (mark_gutters): new function.
10692
10693         * glyphs-x.c (x_update_widget): Always resize to get round a
10694         widget bug.
10695
10696         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
10697         breaking absolutely everything.
10698
10699         * gutter.h: declare mark_gutters.
10700
10701 2000-02-16  Martin Buchholz <martin@xemacs.org>
10702
10703         * XEmacs 21.2.29 is released.
10704
10705 2000-02-15  Olivier Galibert  <galibert@pobox.com>
10706
10707         * fns.c (size_bit_vector): Fix computation of the size.
10708
10709 2000-02-15  Martin Buchholz  <martin@xemacs.org>
10710
10711         * *.[ch]: Change CONST to const globally.
10712         find -name '*.[ch]' | \
10713         xargs global-replace \
10714         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
10715         - Remove vestigial references to CONST_IS_LOSING
10716
10717 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10718
10719         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
10720         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
10721         events instead of dispatching them directly.
10722         (mswindows_handle_paint): New function to do repainting.
10723         (mswindows_wnd_proc):
10724         (emacs_mswindows_handle_magic_event): Call above function.
10725
10726 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10727
10728         * objects-msw.c (mswindows_create_font_variant): Return the new
10729         font handle.
10730         (initialize_font_instance): Get font metrics from the underlined
10731         variant of the font to cope with the case where the underlined
10732         font has a bigger descent.
10733
10734 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
10735
10736         * gui.c (gui_item_accelerator): Return the first underlined
10737         character in item name.
10738
10739 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10740
10741         * lisp.h: Added Qprinter.
10742
10743         * general.c (syms_of_general): Initialized it.
10744
10745         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
10746         (get_frame_dc):
10747         (get_frame_compdc): Made inline.
10748
10749         * console.h (struct console_methods): Added eject_page method.
10750
10751         * frame.h: Added FRAME_DISPLAY_P and friends.
10752         Aligned backslahes in many macros in more readable fashion.
10753         Added page_number to struct frame, and an accessor macro
10754         for it.
10755
10756         * defice.h: Added DEVICE_DISPLAY_P and friends.
10757
10758         * device.c (Fdevice_printer_p): Used these.
10759
10760         * frame.c (allocate_frame_core): Initialize page number.
10761         (Fprint_job_page_number):
10762         (Fprint_job_eject_page): Implemented.
10763
10764         * frame-msw.c (msprinter_eject_page): Added method.
10765         (msprinter_start_page): Added.
10766
10767         * window.c (Fwindow_truncated_p): Fixed docstring.
10768         (Fwindow_last_line_visible_height): Implemented.
10769
10770 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10771
10772         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
10773
10774 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
10775
10776         * syntax.c (scan_words): Always advance at least one character.
10777
10778 2000-02-13  Andy Piper  <andy@xemacs.org>
10779
10780         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
10781         to make sure the glyph is in the cachels.
10782
10783         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
10784         global image instance flag.
10785         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
10786         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
10787
10788         * glyphs.c (allocate_image_instance): set dirty bits correctly.
10789         (Fset_image_instance_property): mark layout as changed.
10790         (invalidate_glyph_geometry_maybe): mark layout as changed.
10791         (glyph_width): use new NEEDS_LAYOUT macro.
10792         (glyph_ascent): ditto.
10793         (glyph_descent): ditto.
10794         (glyph_height): ditto.
10795         (image_instance_layout): mark layout as clean after laying out.
10796         (update_subwindow): don't mark layout as clean here.
10797
10798         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
10799         should no longer be needed.
10800
10801         * glyphs-x.c (x_update_widget): sanitize asserts.
10802         (x_finalize_image_instance): sanitize assignment to widgets.
10803
10804         * glyphs-widget.c (widget_instantiate): don't need to clear the
10805         layout flag here.
10806
10807 2000-02-13  Martin Buchholz  <martin@xemacs.org>
10808
10809         * sysdep.c (getcwd): Use standard prototype.
10810         * sysdep.h (getcwd): Use standard prototype.
10811
10812         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
10813         (sequence, start, end).
10814         Remove redundant type checking.
10815         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
10816         view of `caller-protects') to avoid a crash where the real fix was
10817         found elsewhere.
10818
10819 2000-02-12  Martin Buchholz  <martin@xemacs.org>
10820
10821         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
10822
10823         * s/sol2.h: Remove feature macro initialization.
10824
10825         * alloc.c (alloc_lcrecord): Add more type checking assertions.
10826         (vector_hash): New.  Code from internal_hash.
10827         * lrecord.h:
10828         Fix up allocation subsystem comments.
10829
10830         * config.h.in: Add __EXTENSIONS__ for Solaris.
10831
10832         * systime.h (EMACS_GETTIMEOFDAY): New.
10833         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
10834         Remove Solaris-specific code.
10835         Use void* for the (ignored) second arg for gettimeofday().
10836
10837         * elhash.c (hash_table_hash): Implement it, finally.
10838         * elhash.c:  Use hashcode_t.
10839
10840         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
10841         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
10842
10843         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
10844         * fns.c (size_bit_vector):
10845         * alloc.c (size_vector):
10846         (make_vector_internal):
10847         (make_bit_vector_internal):
10848         (sweep_bit_vectors_1):
10849         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
10850
10851 2000-02-10  Martin Buchholz  <martin@xemacs.org>
10852
10853         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
10854         Include strings.h to avoid warnings for bzero and strcasecmp.
10855
10856 2000-02-10  Olivier Galibert  <galibert@pobox.com>
10857
10858         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
10859         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
10860
10861         * fns.c (size_bit_vector): New.  Declare bit vectors as a
10862         sequence.
10863
10864 2000-02-10  Olivier Galibert  <galibert@pobox.com>
10865
10866         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
10867         use a value field instead.
10868         (symbol_value_forward_forward): Use value field.
10869         (DEFVAR_SYMVAL_FWD): Use value field.
10870         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
10871         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
10872         (DEFVAR_CONST_INT): Ditto.
10873         (DEFVAR_BOOL): Ditto.
10874         (DEFVAR_CONST_BOOL): Ditto.
10875         (DEFVAR_INT_MAGIC): Ditto.
10876         (DEFVAR_BOOL_MAGIC): Ditto.
10877
10878         * symbols.c (guts_of_unbound_marker): Use value field.
10879         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
10880         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
10881
10882         * lisp.h: Declare dumpopaque and noninteractive1.
10883
10884         * alloc.c (dumpopaque): Added.
10885         (pdump_dump_opaquevec): Added.
10886         (pdump): Call pdump_dump_opaquevec to dump opaque data.
10887         (pdump_load): Reload opaque data.  Sync noninteractive1 with
10888         noninteractive.
10889
10890 2000-02-10  Andy Piper  <andy@xemacs.org>
10891
10892         * glyphs.c (image_instance_layout): if the size changes, mark it
10893         as such.
10894
10895         * redisplay-output.c (redisplay_output_layout): Update the
10896         subwindow here.
10897         (redisplay_output_subwindow): ditto.
10898
10899         * glyphs.c (update_subwindow): make sure we reset flags for
10900         layouts as well as everything else.
10901
10902         * glyphs-widget.c (layout_layout): don't need to set the instances
10903         dimensions here.
10904
10905 2000-02-09  Martin Buchholz  <martin@xemacs.org>
10906
10907         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
10908         not HAVE_DLOPEN, which is a lower-level thing.
10909
10910         * .cvsignore: Ignore gmon.out
10911
10912 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
10913
10914         * .cvsignore: Ignore portable dumper xemacs.dmp file
10915
10916 2000-02-09  Andy Piper  <andy@xemacs.org>
10917
10918         * redisplay-output.c (redisplay_output_layout): be more clever
10919         about when we output based on the changed flags.
10920
10921         * glyphs.h (struct image_instantiator_methods): add update_method.
10922         (struct Lisp_Image_Instance): add changed flags. Declare new
10923         macros for manipulating them.
10924
10925         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
10926         (image_instance_parent_glyph): find an image_instance's parent
10927         glyph or image_instance.
10928         (image_instance_layout): mark the size as changed.
10929         (set_image_instance_dirty_p): new function. mark an image
10930         instance, plus all of its parents, as dirty.
10931         (Fset_image_instance_property): use it.
10932         (Fglyph_animated_timeout_handler): use it.
10933         (update_subwindow): call update_widget and device methods for
10934         update_subwindow. Mark all changed flags as clean.
10935         (Fresize_subwindow): mark size as changed.
10936
10937         * glyphs-x.c (x_finalize_image_instance): try and detect gc
10938         failures.
10939         (x_update_subwindow): only resize subwindows here.
10940         (x_update_widget): new function. Update all changed properties of
10941         a widget.
10942         (x_resize_subwindow): deleted.
10943         (x_widget_set_property): deleted.
10944         (x_progress_gauge_set_property): deleted.
10945         (x_progress_gauge_update): new function. Implement recorded
10946         changes.
10947         (x_tab_control_update): ditto.
10948         (x_tab_control_set_property): deleted.
10949         (console_type_create_glyphs_x): declare new functions.
10950         (image_instantiator_format_create_glyphs_x): ditto.
10951
10952         * glyphs-widget.c (widget_set_property): mark text changed.
10953         (update_widget): new function. Update properties of a widget.
10954         (widget_instantiate): for layouts make sure we set their
10955         children's parent correctly.
10956         (tab_control_set_property): new function. Record changes that will
10957         take place under redisplay's control.
10958         (progress_gauge_set_property): ditto.
10959         (image_instantiator_progress_guage): declare new functions.
10960         (image_instantiator_tab_control): ditto.
10961
10962         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
10963         now.
10964         (mswindows_update_widget): new function. Update all properties on
10965         a widget that have changed.
10966         (mswindows_button_update): new function. Update a button's set
10967         state.
10968         (mswindows_tab_control_update): new function. Update the items in
10969         a tab.
10970         (mswindows_tab_control_set_property): deleted.
10971         (mswindows_progress_gauge_update): new function. Update the
10972         progress gauge's progress.
10973         (mswindows_widget_set_property): deleted. This is all done
10974         asynchronously now.
10975         (mswindows_progress_gauge_set_property): ditto.
10976         (console_type_create_glyphs_mswindows): declare new methods.
10977         (image_instantiator_format_create_glyphs_mswindows): ditto.
10978
10979         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
10980         (msprinter_set_frame_properties): ditto.
10981
10982         * console.h (struct console_methods): Add update_widget_method.
10983
10984 2000-02-09  Andy Piper  <andy@xemacs.org>
10985
10986         * gui-msw.c (Fmswindows_shell_execute): Make
10987         mswindows-shell-execute industrial strength.
10988
10989 2000-02-08  Martin Buchholz  <martin@xemacs.org>
10990
10991         * lrecord.h: Make macro argument `props' match member function `plist'.
10992         * fns.c (Fget):
10993         * fns.c (Fput):
10994         * fns.c (Fremprop):
10995         * fns.c (Fobject_plist):
10996         * alloc.c:
10997         * symbols.c:
10998         Object property list frobbing cleanup.
10999         - Allow any lisp object (compared with `eq'), not just symbols, as
11000           keys in object plists.
11001         - Move symbol plist frobbing into symbols.c, where it belongs.
11002         - Move string plist frobbing into alloc.c, where it belongs.
11003         - Everything's an lrecord now, so no need to test for symbolp, etc.
11004         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
11005
11006         * extents.c: Reorder code to remove declarations.
11007
11008         * frame.h (store_in_alist): Remove useless declaration.
11009
11010 2000-02-07  Martin Buchholz  <martin@xemacs.org>
11011
11012         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
11013         * config.h.in: Add HAVE_XCONVERTCASE.
11014
11015 2000-02-07  Andy Piper  <andy@xemacs.org>
11016
11017         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
11018         it breaks many things.
11019
11020 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
11021
11022         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
11023         actually can start a common comment type.
11024         * src/syntax.h (SYNTAX_END_P): ditto for end.
11025
11026 2000-02-07  Martin Buchholz <martin@xemacs.org>
11027
11028         * XEmacs 21.2.28 is released.
11029
11030 2000-02-06  Martin Buchholz  <martin@xemacs.org>
11031
11032         * event-Xt.c (x_keysym_to_character): New.
11033         (maybe_define_x_key_as_self_inserting_character): New.
11034         (x_has_keysym): New.
11035         Auto-define all keys on the keyboard as self-insert-key.
11036
11037 2000-02-02  Martin Buchholz  <martin@xemacs.org>
11038
11039         * menubar.c (vars_of_menubar): A small code simplification.
11040
11041         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
11042
11043         * ExternalShell.c:
11044         * ExternalClient.c:
11045         * EmacsShell-sub.c:
11046         * EmacsManager.c:
11047         * EmacsFrame.c:
11048         Use consistent style for specifying X resources.
11049
11050         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
11051         This makes (dontusethis-set-symbol-value-handler) actually usable.
11052
11053         * lrecord.h (lrecord_decription_type):
11054         * alloc.c (pdump_register_sub):
11055         (pdump_dump_data):
11056         (pdump_reloc_one):
11057         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
11058         Comply with XEmacs coding style.
11059         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
11060         args, and XD_LISP_OBJECT_ARRAY with 3 args.
11061
11062         * keymap.c (Faccessible_keymaps):
11063         Make (accessible-keymaps map "\C-h") do the Right Thing.
11064         Make (accessible-keymaps map []) do the Right Thing.
11065         Make (accessible-keymaps map "") do the Right Thing.
11066         (check_keymap_definition_loop): New function.
11067         (keymap_store_internal): Keep luser from shooting self in foot,
11068           via (define-key ctl-x-4-map "p" global-map).
11069         Remove fullness slot from struct Lisp_Keymap, since hash tables
11070         are now reliable.
11071         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
11072
11073 2000-01-30  Martin Buchholz  <martin@xemacs.org>
11074
11075         * redisplay.c (init_redisplay): Fix small memory leak.
11076         * elhash.h:
11077         * elhash.c (pdump_reorganize_hash_table):
11078         Rename from reorganize_hash_table. Change prototype.
11079         Reuse the original memory for hentries.  Save 100k.
11080         * alloc.c (PDUMP_READ): new macro.
11081         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
11082         * alloc.c: No need to #ifndef before #undef.
11083
11084         * print.c: Allow debug_print() to print readably by modifying
11085         debug_print_readably.  Use consistent variable names.
11086
11087         * .dbxrc: Try to get things to work even if stopped in a function
11088         without source available by explicitly specifying source files.
11089 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11090
11091         * unexnt.c (_start): Removed bogus code which caused loading heap
11092         from differrent executable file.
11093         Removed bogus assignment to _fmode, which caused inconsistencies.
11094
11095 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11096
11097         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
11098         Have spawnve encapsulation regard DONT_ENCAPSULATE.
11099         Do not preliminary `#define signal sigset'.
11100
11101         * systime.h: Do not prototype environ on windows nt and cygwin,
11102         this conflicts with system header.
11103
11104         * syssignal.h: Use correct define for WINDOWSNT
11105
11106         * sysdep.h: Do not prototype environ on windows nt, this conflicts
11107         with system header.
11108
11109         * sysdep.c (near start of file): Fixed commentary and rearranged
11110         ifdefs in readable order.
11111         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
11112         (start_of_text):
11113         (end_of_text):
11114         (end_of_data): Do not compile in if using PDUMP.
11115
11116         * symsinit.h: Prototyped vars_of_nt().
11117
11118         * ntproc.c (windows9x_p): Added, instead of os_subtype.
11119         (find_child_console): Use it.
11120         (sys_kill): Use it.
11121
11122         * ntheap.h: Do not extern os_subtype.
11123
11124         * ntheap.c (cache_system_info): Do not cache unneeded:
11125         nt_major_version, nt_minor_version and os_subtype.
11126         (recreate_heap): Do not compile in when PDUMPing.
11127
11128         * nt.c (geteuid and friends): Use the new varibale
11129         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
11130         (init_user_info): Removed the above mentioned hackery.
11131         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
11132         stat has been fixed in the C runtime.
11133         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
11134
11135         * file-coding.c (struct file_coding_dump): Do not define
11136         ucs_to_mule_table in the struct if not MULE.
11137         (struct struct lrecord_description fcd_description_1): Do not dump
11138         the above.
11139
11140         * emacs.c (main_1): Call vars_of_nt().
11141         (right before Fdump_emacs_data): Don't need lastfile if using both
11142         portabe dumper and system malloc.
11143
11144         * alloc.c (Fmemory_limit): Conditionalized out.
11145         (pdump): Use OPEN_BINARY for the portable dump file.
11146         (pdump_load): Ditto.
11147
11148 2000-02-02  Mike Alexander  <mta@arbortext.com>
11149
11150         * nt.c (convert_time): Set tm_isdst before calling mktime and
11151         avoid calling it at all if the compiler supports 64 bit integers.
11152         Also initialize utc_base_ft before using it.
11153
11154 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
11155
11156         * frame.c (change_frame_size_1): Take f->internal_border_width
11157         into consideration when calculating the width of the frame.
11158
11159 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11160
11161         * window.c (frame_min_height):
11162         (frame_size_valid_p):
11163         (frame_pixsize_valid_p): Added.
11164         (check_frame_size): Generalized.
11165
11166         * window.h: Prototyped the above.
11167
11168         * lisp.h:
11169         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
11170         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
11171         Deleted Vwin32_* and Vbinary_process_* unused variables.
11172
11173         * device-msw.c (msprinter_init_device): Do not get printer font
11174         list; Added DEVMODE functions.
11175
11176         * frame-msw.c: Added lots of printer code.
11177
11178         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
11179         general.c.
11180
11181         * console-msw.h: Added more msprinter device private slots.
11182
11183 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11184
11185         * event-msw.c (key_needs_default_processing_p): Added.
11186         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
11187
11188 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11189
11190         * glyphs.c (image_instance_layout): Mark image instance as clean
11191         after layout.
11192         (glyph_dirty_p): Removed redundant function.
11193         (invalidate_glyph_geometry_maybe): Added.
11194         (update_glyph_cachel_data): Call it.
11195
11196         * glyphs.h: Prototyped it.
11197
11198         * redisplay.c (add_glyph_rune): Call it.
11199         (redisplay_window): Reset glyphs cachels when frame faces have
11200         changed, thus forcing recomputation of built-in border glyphs.
11201
11202 2000-01-30  Martin Buchholz  <martin@xemacs.org>
11203
11204         * Makefile.in.in: Make portable dumper and purify play well together.
11205         Add imperfect, but better than nothing, support for pdump.
11206         Remove xemacs.dmp when temacs is re-generated.
11207         Don't ignore errors when dumping xemacs.
11208
11209         * symbols.c (maybe_call_magic_handler): Remove one magic number.
11210
11211 2000-01-28  Andy Piper  <andy@xemacs.org>
11212
11213         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
11214         (setup_normal_frame): ditto.
11215         (setup_frame_without_minibuffer): ditto.
11216         (setup_minibuffer_frame): ditto.
11217         (delete_frame_internal): ditto.
11218         (Fmake_frame_invisible): ditto.
11219         (Ficonify_frame): ditto.
11220
11221         * window.h: change Fset_window_buffer signature.
11222
11223         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
11224         (Fset_window_buffer): allow recording of buffer if the window is
11225         the selected window.
11226         (window_loop): Use new Fset_window signature.
11227
11228 2000-01-23  Daniel Pittman  <daniel@danann.net>
11229
11230         * config.h.in: Added template for `HAVE_ATHENA_3D'
11231
11232 2000-01-29  Andy Piper  <andy@xemacs.org>
11233
11234         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
11235
11236         * gutter.c (output_gutter): Don't output if the window isn't live.
11237
11238 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11239
11240         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
11241         of 01/12/00: Moved SetFocus back here where it belongs.
11242
11243 2000-01-23  Andy Piper  <andy@xemacs.org>
11244
11245         * s/cygwin32.h: declare printer things.
11246
11247 2000-01-26  Andy Piper  <andy@xemacs.org>
11248
11249         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
11250         Alexander.
11251
11252 2000-01-24  Andy Piper  <andy@xemacs.org>
11253
11254         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
11255         (mswindows_button_instantiate): Make sure glyph is a pixmap.
11256
11257         * glyphs-widget.c (widget_instantiate): Avoid shadows.
11258
11259         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
11260
11261         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
11262
11263         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
11264         (mswindows_output_display_block): Avoid local shadows.
11265
11266         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
11267         (mswindows_enqueue_mouse_button_event): ditto.
11268         (mswindows_handle_gui_wm_command): remove declaration.
11269
11270         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
11271         warnings.
11272
11273         * console-msw.h: Avoid shadows.
11274         (mswindows_get_toolbar_button_text):
11275         (emacs_mswindows_create_stream_pair):
11276         (emacs_mswindows_delete_stream_pair):
11277         (mswindows_handle_toolbar_wm_command): declare.
11278
11279         * device-msw.c (build_syscolor_string): Avoid shadows.
11280
11281 2000-01-23  Andy Piper  <andy@xemacs.org>
11282
11283         * glyphs-widget.c (widget_instantiate): reverse the items for
11284         layouts so that children are in the expected order.
11285
11286 2000-01-28  Martin Buchholz  <martin@xemacs.org>
11287
11288         * ralloc.c: safe_bcopy ==> memmove
11289         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
11290         * s/msdos.h: Remove BCOPY macros.
11291         * insdel.c (gap_right): Remove BCOPY conditional code.
11292         * insdel.c (gap_left): Remove BCOPY conditional code.
11293         XEmacs demands a working ANSI C compiler - hence memmove.
11294
11295         * regex.c (regex_compile): Remove accidental use of trigraphs.
11296
11297 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11298
11299         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
11300         event timestamp.
11301
11302 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11303
11304         * event-msw.c (mswindows_drain_windows_queue): Added the
11305         parameter.
11306         (mswindows_need_event): Commented the call to
11307         mswindows_drain_windows_queue().
11308         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
11309         only.
11310
11311         * console-msw.h: Moved a few function prototypes here from
11312         event-msw.c.
11313
11314         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
11315         parameter from unsigned short to unsigned long.
11316         (Fmswindows_shell_execute): Added return value.
11317
11318 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
11319
11320         * sysdep.c (init_system_name):
11321           process-unix.c (unix_canonicalized_host_name):
11322         Don't call freeaddrinfo() if getaddrinfo() fails.
11323
11324         * process-unix.c (unix_open_unix_network_stream):
11325         Moved the code to get a port # into address loop.
11326
11327 2000-01-27  Martin Buchholz  <martin@xemacs.org>
11328
11329         * buffer.c (reinit_vars_of_buffer):
11330         The right place to initialize conversion_in_dynarr and
11331         conversion_out_dynarr.
11332
11333         * alloc.c (pdump): Use the real open() till sys_open() is functional.
11334
11335         * process-unix.c (unix_canonicalize_host_name): Muleize.
11336         (unix_open_network_stream): Muleize.
11337
11338         * buffer.h: Fix up prototypes for ralloc.c functions.
11339
11340 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
11341         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
11342         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
11343                 instead of gethostbyname()
11344         * process-unix.c: In unix_canonicalize_host_name() and
11345                 unix_open_network_stream(), add code to use getaddrinfo()
11346                 instead of gethostbyname().
11347
11348 2000-01-27  Daniel Pittman <daniel@danann.net>
11349
11350         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
11351         libs when built with flat Athena.
11352
11353 2000-01-27  Martin Buchholz  <martin@xemacs.org>
11354
11355         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
11356         Use coding standards for function prototypes.
11357
11358 2000-01-25  Martin Buchholz  <martin@xemacs.org>
11359
11360         * dialog-msw.c (push_lisp_string_as_unicode):
11361         * doc.c (unparesseuxify_doc_string):
11362         * dired.c (Fuser_name_completion_1):
11363         * dired.c (Fuser_name_all_completions):
11364         * dired.c (free_user_cache):
11365         * dired.c (user_name_completion):
11366         * console-x.c (get_display_arg_connection):
11367         * minibuf.c (clear_echo_area_internal):
11368         * minibuf.c (echo_area_append):
11369         * eldap.c (Fldap_open):
11370         * eldap.c (Fldap_search_internal):
11371         * frame-x.c (x_set_frame_text_value):
11372         * frame-x.c (x_set_frame_properties):
11373         * frame-x.c (x_create_widgets):
11374         * redisplay-tty.c (term_get_fkeys_1):
11375         * objects-x.c (x_parse_nearest_color):
11376         * objects-x.c (x_valid_color_name_p):
11377         * objects-x.c (x_initialize_font_instance):
11378         * objects-x.c (x_list_fonts):
11379         * objects-x.c (x_find_charset_font):
11380         * tooltalk.c (Fadd_tooltalk_message_arg):
11381         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
11382         * tooltalk.c (Fadd_tooltalk_pattern_arg):
11383         * process-unix.c (unix_create_process):
11384         * ntproc.c (sys_spawnve):
11385         * sound.c (Fplay_sound_file):
11386         * sound.c (Fplay_sound):
11387         * buffer.c (init_initial_directory):
11388         * buffer.c (init_buffer):
11389         * editfns.c (init_editfns):
11390         * editfns.c (Ftemp_directory):
11391         * editfns.c (Fuser_full_name):
11392         * editfns.c (uncache_home_directory):
11393         * editfns.c (get_home_directory):
11394         * editfns.c (Fuser_home_directory):
11395         * editfns.c (Fformat_time_string):
11396         * editfns.c (Fcurrent_time_string):
11397         * gui-x.c (button_item_to_widget_value):
11398         * database.c (Fopen_database):
11399         * event-Xt.c (x_to_emacs_keysym):
11400         * event-Xt.c (x_event_to_emacs_event):
11401         * event-Xt.c (describe_event_window):
11402         * event-msw.c (mswindows_wnd_proc):
11403         * glyphs-eimage.c (jpeg_instantiate):
11404         * glyphs-eimage.c (gif_instantiate):
11405         * glyphs-eimage.c (png_instantiate):
11406         * glyphs-eimage.c (tiff_instantiate):
11407         * glyphs-x.c (xbm_instantiate_1):
11408         * glyphs-x.c (x_xbm_instantiate):
11409         * glyphs-x.c (x_xface_instantiate):
11410         * glyphs-x.c (autodetect_instantiate):
11411         * glyphs-x.c (cursor_font_instantiate):
11412         * glyphs-x.c (x_widget_instantiate):
11413         * glyphs-x.c (x_widget_set_property):
11414         * glyphs-x.c (x_widget_property):
11415         * glyphs-x.c (BUILD_GLYPH_INST):
11416         * print.c (write_string_to_stdio_stream):
11417         * print.c (output_string):
11418         * print.c (Falternate_debugging_output):
11419         * print.c (Fexternal_debugging_output):
11420         * glyphs-msw.c (extract_xpm_color_names):
11421         * glyphs-msw.c (mswindows_xpm_instantiate):
11422         * glyphs-msw.c (bmp_instantiate):
11423         * glyphs-msw.c (resource_name_to_resource):
11424         * glyphs-msw.c (mswindows_resource_instantiate):
11425         * glyphs-msw.c (xbm_instantiate_1):
11426         * glyphs-msw.c (mswindows_xbm_instantiate):
11427         * glyphs-msw.c (mswindows_xface_instantiate):
11428         * glyphs-msw.c (mswindows_widget_instantiate):
11429         * glyphs-msw.c (add_tree_item):
11430         * glyphs-msw.c (add_tab_item):
11431         * glyphs-msw.c (mswindows_combo_box_instantiate):
11432         * glyphs-msw.c (mswindows_widget_property):
11433         * glyphs-msw.c (mswindows_combo_box_property):
11434         * glyphs-msw.c (mswindows_widget_set_property):
11435         * console.c (stuff_buffered_input):
11436         * objects-msw.c (mswindows_initialize_color_instance):
11437         * objects-msw.c (mswindows_valid_color_name_p):
11438         * objects-msw.c (mswindows_list_fonts):
11439         * objects-msw.c (mswindows_font_instance_truename):
11440         * bytecode.c (optimize_compiled_function):
11441         * select-x.c (symbol_to_x_atom):
11442         * select-x.c (x_atom_to_symbol):
11443         * select-x.c (hack_motif_clipboard_selection):
11444         * select-x.c (selection_data_to_lisp_data):
11445         * select-x.c (lisp_data_to_selection_data):
11446         * select-x.c (Fx_get_cutbuffer_internal):
11447         * select-x.c (Fx_store_cutbuffer_internal):
11448         * buffer.h (TO_EXTERNAL_FORMAT): New function.
11449         * buffer.h (TO_INTERNAL_FORMAT): New function.
11450         * emacs.c (make_arg_list_1):
11451         * emacs.c (make_argc_argv):
11452         * emacs.c (main_1):
11453         * emacs.c (Fdump_emacs):
11454         * emacs.c (split_string_by_emchar_1):
11455         * file-coding.h:
11456         * lisp.h:
11457         * lstream.h:
11458         * symsinit.h:
11459         * device-x.c (x_init_device):
11460         * device-x.c (Fx_valid_keysym_name_p):
11461         * device-x.c (Fx_get_font_path):
11462         * device-x.c (Fx_set_font_path):
11463         * glyphs.c (bitmap_to_lisp_data):
11464         * glyphs.c (pixmap_to_lisp_data):
11465         * alloc.c (make_ext_string): Use coding system arguments.  Update
11466         all callers.
11467         * alloc.c (build_string):
11468         * callproc.c (child_setup):
11469         * callproc.c (init_callproc):
11470         * fileio.c (lisp_strerror):
11471         * fileio.c (directory_file_name):
11472         * fileio.c (Fexpand_file_name):
11473         * fileio.c (Ffile_truename):
11474         * fileio.c (Fsysnetunam):
11475         * fileio.c (Fdo_auto_save):
11476         * sysdep.c (sys_readdir):
11477         * tests.c: New file.  Allow adding C tests.
11478         Replace GET_* macros with a more comprehensible and flexible
11479         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
11480         Modify all calls.
11481         Any coding system can be used to do format conversion.
11482         Eliminate enum external_data_format.
11483         Eliminate convert_to_external_format.
11484         Eliminate convert_to_internal_format.
11485         Make sure file-name, keyboard, terminal, and ctext are always
11486         defined as coding systems or aliases.  Make
11487         file-name-coding-system, terminal-coding-system, and
11488         keyboard-coding-system magical variables that are equivalent to
11489         defining the corresponding coding system aliases.
11490
11491         * file-coding.c (Fcoding_system_canonical_name_p): New function.
11492         * file-coding.c (Fcoding_system_alias_p): New function.
11493         * file-coding.c (Fcoding_system_aliasee): New function.
11494         * file-coding.c (append_suffix_to_symbol): New function.
11495         * file-coding.c (dangling_coding_system_alias_p): New function.
11496         * file-coding.c (Ffind_coding_system):
11497         * file-coding.c (Fcopy_coding_system):
11498         * file-coding.c (encode_coding_no_conversion):
11499         * file-coding.c (syms_of_file_coding):
11500         * file-coding.c (vars_of_file_coding):
11501         Rewrite coding system alias code.
11502         Allow nested aliases, like symbolic links.
11503         Allow redefinition of coding system aliases.
11504         Prevent existence of dangling coding system aliases.
11505
11506         * dired.c (Fuser_name_completion_1):
11507         * dired.c (Fuser_name_all_completions):
11508         A crash would happen if user did QUIT in the middle of building
11509         user_name_cache.  Remove redundant code in mainline and unwind_protect.
11510
11511         * lisp.h:
11512         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
11513
11514         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
11515         an unsigned char *.  Update all callers.
11516
11517 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11518
11519         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
11520
11521 2000-01-25  Martin Buchholz  <martin@xemacs.org>
11522
11523         * elhash.c (hentry_description): Use more portable definition.
11524         (resize_hash_table): Initialize new hentries using
11525         xnew_array_and_zero, thereby simplifying the code.
11526
11527         * mule-charset.c (make_charset): Make sure entire object is
11528         initialized, to avoid Purify warnings.
11529
11530         * alloc.c (resize_string): Fix unlikely crash with big strings.
11531
11532 2000-01-24  Martin Buchholz  <martin@xemacs.org>
11533
11534         * realpath.c (xrealpath):
11535         Don't call getwd().
11536
11537 2000-01-25  Martin Buchholz  <martin@xemacs.org>
11538
11539         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
11540
11541 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
11542
11543         * unexelfsgi.c (unexec): Change the way we decide which segment
11544         should be extended.
11545
11546         Assumption that .bss section should be outside the PT_LOADable
11547         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
11548         it's present) is inside the 'data' segment. This would fail the
11549         test which was used to find a segment to grow and cover new
11550         heap. Instead of this assumption, I created another one - on IRIX
11551         the segment to grow should start below .bss and it's address
11552         should extent above the end of .bss. Once this segment is
11553         identified, it's grown to accommodate the new heap and new
11554         zero-length .bss section is added at the end of .data2.
11555
11556 2000-01-25  Martin Buchholz  <martin@xemacs.org>
11557
11558         * eval.c (Feval): Wrong number of arguments should use original
11559         function, not the indirect_function version of it.
11560
11561 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
11562
11563         * glyphs-x.c (x_button_instantiate): Don't add image if
11564         it is not a pixmap.
11565         (x_locate_pixmap_file): Call Fexpand_file_name when file name
11566         is relative.
11567
11568 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
11569
11570         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
11571         declaration.
11572         (DEFVAR_INT_MAGIC): Ditto.
11573         (DEFVAR_BOOL_MAGIC): Ditto.
11574         * glyphs.h: Reindent backslash.
11575
11576 2000-01-24  Martin Buchholz  <martin@xemacs.org>
11577
11578         * glyphs-widget.c (layout_query_geometry):
11579         (layout_layout): Use correct types for gheight, gwidth.
11580
11581 2000-01-24  Martin Buchholz  <martin@xemacs.org>
11582
11583         * EmacsManager.c (QueryGeometry): Purified.
11584
11585 2000-01-23  Martin Buchholz  <martin@xemacs.org>
11586
11587         * alloc.c (make_float): Make sure entire object is initialized, to
11588         avoid Purify warnings.
11589         (pdump_register_sub): Remove useless assignment.
11590         (pdump): Use xmalloc, not malloc.
11591         (pdump_load): Use xmalloc, not malloc.
11592
11593 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11594
11595         * callproc.c:
11596         * dired-msw.c:
11597         * fileio.c:
11598         * process-nt.c:
11599         * redisplay-msw.c:
11600         * sysdep.c: Removed redundant #include <windows.h>
11601
11602 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11603
11604         * frame.c (delete_frame_internal): Do not delete device when its
11605         implementation so declares.
11606         (delete_frame_internal): Set device selected frame to nil when
11607         last frame goes away.
11608
11609         * device-msw.c (msprinter_device_system_metrics): Implemented.
11610         (mswindows_device_system_metrics): Added 'device-dpi property.
11611
11612         * device.c: (Fdevice_printer_p): Added.
11613         Added 'offset-workspace device metric.
11614
11615         * console.h (device_metrics): Declared DM_offset_workspace.
11616
11617 2000-01-23  Martin Buchholz  <martin@xemacs.org>
11618
11619         * fileio.c (Ffile_truename): Remove pointless and confusing
11620         initialization of elen.
11621
11622         * glyphs-widget.c: Compiler warning fixes.
11623
11624 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
11625
11626         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
11627         instead of a Lisp_Object as argument to make it consistent with
11628         the other LIVE_P macros.
11629         (CHECK_LIVE_PROCESS): New macro.
11630
11631         * process.c: Declare Qprocess_live_p.
11632         (Fprocess_live_p): New function.
11633         (create_process): Use PROCESS_LIVE_P.
11634         (read_process_output): Ditto.
11635         (set_process_filter): Ditto.
11636         (Fdelete_process): Ditto.
11637         (kill_buffer_processes): Ditto
11638         (process_send_signal): Use CHECK_LIVE_PROCESS.
11639         (Fprocess_input_coding_system): Check whether process is still
11640         alive (fix PR#1061).
11641         (Fprocess_output_coding_system): Ditto.
11642         (Fprocess_coding_system): Ditto.
11643         (Fset_process_input_coding_system): Ditto.
11644         (Fset_process_output_coding_system): Ditto.
11645
11646 2000-01-23  Andy Piper  <andy@xemacs.org>
11647
11648         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
11649         layout and widget.
11650
11651         * glyphs.c (mark_image_instance): take into account changed
11652         image_instance format.
11653         (image_instance_equal): ditto.
11654         (image_instance_hash): ditto.
11655
11656         * glyphs-widget.c (widget_instantiate): Incorporate layout
11657         instantiation here. Delay layout of the layout until later.
11658         (layout_instantiate): deleted.
11659         (layout_query_geometry): new function. get the geometry of a
11660         layout.
11661         (layout_layout): layout a layout dynamically.
11662         (image_instantiator_widget): New function - splitting up
11663         image_instantiator_format_create_glyphs_widget for netwinder
11664         compilation.
11665         (image_instantiator_buttons):
11666         (image_instantiator_edit_fields):
11667         (image_instantiator_combo_box):
11668         (image_instantiator_scrollbar):
11669         (image_instantiator_progress_guage):
11670         (image_instantiator_tree_view):
11671         (image_instantiator_tab_control):
11672         (image_instantiator_labels):
11673         (image_instantiator_layout): ditto.
11674         (image_instantiator_format_create_glyphs_widget): Call preceding
11675         functions.
11676
11677 2000-01-22  Martin Buchholz  <martin@xemacs.org>
11678
11679         * process.c (Fset_process_coding_system):
11680         * device-x.c (Fx_keysym_hash_table):
11681         Docstring fixes.
11682
11683         * lstream.c (Lstream_write): Return documented value, not 0.
11684
11685         * fileio.c (directory_file_name):
11686         (Fsubstitute_in_file_name):
11687         (Fsubstitute_insert_file_contents_internal):
11688         (Fwrite_region_internal):
11689         * emacs.c:
11690         * sysdep.c:
11691         * getloadavg.c:
11692         * systty.h:
11693         Remove vestigial APOLLO-conditional code.
11694
11695 2000-01-21  Martin Buchholz  <martin@xemacs.org>
11696
11697         * getpagesize.h: Add guard macros.
11698         * libsst.h: Add guard macros.
11699         * libst.h: Add guard macros.
11700         * line-number.h: Add guard macros.
11701         * ndir.h: Add guard macros.
11702         * sysfloat.h: Add guard macros.
11703         * sysfile.h: Add guard macros.
11704         * sysproc.h: Add guard macros.
11705         * syswait.h: Add guard macros.
11706         * xintrinsic.h: Add guard macros.
11707         * xintrinsicp.h: Add guard macros.
11708         * xmmanager.h: Add guard macros.
11709         * xmmanagerp.h: Add guard macros.
11710         * xmprimitive.h: Add guard macros.
11711         * xmu.h: Add guard macros.
11712         * gpmevent.h: Add copyright statement. Add guard macros.
11713         * miscplay.h: Add guard macros.
11714         * *.h: Use consistent C-standards-approved guard macro names.
11715
11716         * opaque.c (make_opaque): Switch parameter order.
11717         * opaque.h (make_opaque): Switch parameter order.
11718         Update all callers.
11719         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
11720
11721         * config.h.in (type_checking_assert): Added.
11722         (bufpos_checking_assert): Added.
11723
11724 2000-01-21  Martin Buchholz  <martin@xemacs.org>
11725
11726         * alloc.c: Harmless pdump changes.
11727         - Use countof().
11728         - spell alignment correctly.
11729         * sysdep.c: Use countof()
11730
11731 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11732
11733         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
11734         initially_selected_for_input() console method, default to 0.
11735         (semi_canonicalize_console_connection): Try to delegate to
11736         canonicalize_console_connection if no such console method.
11737         (canonicalize_console_connection): Vice versa.
11738         (print_console): Do not print nil connection.
11739
11740         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
11741         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
11742         (XDEVIMPF_FRAMELESS_OK): Added.
11743         (CONSOLE_INHERITS_METHOD): Added.
11744
11745         * console-msw.c (mswindows_canonicalize_console_connection):
11746         Added.
11747         (mswindows_canonicalize_device_connection): Added.
11748
11749         * console-msw.h (struct msprinter_device): Added this struct and
11750         accessor macros.
11751         (mswindows_device): Made fontlist a lisp object.
11752
11753         * device.c (semi_canonicalize_device_connection):  Try to delegate
11754         to canonicalize_device_connection if no such console method.
11755         (canonicalize_device_connection): Vice versa.
11756         (print_device): Do not print nil connection.
11757
11758         * device-msw.c (mswindows_init_device): Call InitCommonControls
11759         when have widgets.
11760         (mswindows_delete_device): Removed fontlist deallocation.
11761         (mswindows_mark_device): Added.
11762
11763         * events.c (event_equal): Added abort() at unreached code.
11764         (event_hash): Ditto.
11765
11766         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
11767         fallback tags of Windows devices.
11768
11769         * general.c (syms_of_general): Initialized Qmsprinter.
11770
11771         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
11772         of fallback tags of Windows devices.
11773
11774         * lisp.h: Declared Qmsprinter.
11775
11776         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
11777         of strings.
11778         (mswindows_list_fonts): Ditto.
11779         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
11780         that it can be used by both mswindows and msprinter devices.
11781         (initialize_font_instance): Added.
11782         (mswindows_initialize_font_instance): Use it.
11783         (msprinter_initialize_font_instance): Added.
11784
11785         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
11786         and implementation flags check.
11787         (redisplay_without_hooks): Changed the call to the above.
11788         (Fredraw_device): Ditto.
11789         (Fredisplay_device): Ditto.
11790
11791         * redisplay-msw.c (get_frame_dc): Implemented.
11792         (get_frame_compdc): Implemented.
11793         (many functions): Use the two functions above to get device
11794         contexts, ether for a window or a printer.
11795
11796 2000-01-21  Olivier Galibert  <galibert@pobox.com>
11797
11798         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
11799         initialization here.
11800         (init_symbols_once_early): Call it.
11801         * emacs.c (main_1): Call it.
11802         * symsinit.h: Declare it.
11803
11804 2000-01-19  Olivier Galibert  <galibert@pobox.com>
11805
11806         * alloc.c: Use a lrecord_header * in the backtrace instead of a
11807         Lisp_Object.
11808         (pdump_backtrace): Ditto.
11809         (pdump_register_object): Ditto.  Cleanup use of the pointers.
11810         (pdump_get_entry): Abort if trying to register a null pointer.
11811         (pdump_dump_data): Cleanup types when relocating.
11812         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
11813         (pdump_dump_rtables): Remove bad casts.
11814         (pdump_load): Cleanup relocation w.r.t union type.  Use a
11815         Lisp_Object instead of a EMACS_INT for the hashtable
11816         reorganization.
11817
11818 2000-01-20  Martin Buchholz  <martin@xemacs.org>
11819
11820         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
11821
11822         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
11823
11824         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
11825
11826         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
11827
11828 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11829
11830         * faces.h (FACE_STRIKETHRU_P): Added.
11831
11832         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
11833         of font variants.
11834
11835         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
11836         (mswindows_set_dc_font): New function, aware of font variants,
11837         separated from mswindows_update_dc.
11838
11839         * objects-msw.h (struct mswindows_font_instance_data): Added
11840         definition.
11841
11842         * objects-msw.c (mswindows_finalize_font_instance): Delete all
11843         cached fonts and the data structure.
11844         (mswindows_initialize_font_instance): Added creation of font data
11845         structure.
11846         (mswindows_print_font_instance): Print at least something.
11847         (mswindows_create_font_variant): Implemented.
11848         (mswindows_get_hfont): Implemented.
11849
11850 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
11851
11852         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
11853         prototyping problem with msvc.
11854
11855         * emacs.c (main_1): added syms_of_gui_mswindows() call
11856
11857         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
11858         syms_of_gui_mswindows() function
11859
11860         * symsinit.h: added the prototype for syms_of_gui_mswindows()
11861
11862 2000-01-18  Martin Buchholz <martin@xemacs.org>
11863
11864         * XEmacs 21.2.27 is released.
11865
11866 2000-01-18  Martin Buchholz  <martin@xemacs.org>
11867
11868         * glyphs-eimage.c (struct tiff_error_struct):
11869         (tiff_error_func):
11870         (tiff_warning_func):
11871         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
11872
11873         * unexmips.c:
11874         * unexhp9k3.c:
11875         * unexfreebsd.c:
11876         * unexec.c: Remove vestigial Lucid C code.
11877         * unexalpha.c:
11878         * unexaix.c:
11879         * termcap.c:
11880         * libsst.c: Ansify.
11881         Remove declarations of errno and strerror().
11882
11883         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
11884
11885         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
11886
11887 2000-01-16  Martin Buchholz  <martin@xemacs.org>
11888
11889         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
11890         Optimize.
11891
11892 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11893
11894         * md5.c:
11895         * file-coding.c:
11896         * file-coding.h:
11897         Change enum eol_type to eol_type_t.
11898
11899 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11900
11901         * gui.c (get_gui_callback): Check cons before accessing car.
11902
11903 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11904
11905         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
11906         (XSETSPECIFIER_TYPE): Ditto.
11907
11908 2000-01-17  Didier Verna  <didier@xemacs.org>
11909
11910         * redisplay.c (generate_fstring_runes): compute string size in
11911         characters, not bytes.
11912
11913 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
11914
11915         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
11916
11917 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
11918
11919         * print.c (print_error_message): Call print_prepare().
11920
11921 2000-01-14  Martin Buchholz  <martin@xemacs.org>
11922
11923         * .dbxrc: Renamed from dbxrc.
11924
11925         * events.c (event_to_character):
11926         Use `assert (foo)' instead of `if (!foo) abort()'
11927
11928         * .gdbinit (xtype): Add documentation.
11929         * .gdbinit (check-temacs): New function.
11930         * .gdbinit (check-xemacs): New function.
11931         * dbxrc (check-xemacs): New function.
11932         * dbxrc (check-xemacs): New function.
11933
11934 2000-01-14  Andy Piper  <andy@xemacs.org>
11935
11936         * glyphs-widget.c (widget_query_geometry): Make sure that we
11937         calculate default dimensions correctly.
11938
11939 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11940
11941         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
11942
11943         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
11944         pdump_wire'd variable.
11945
11946         * emacs.c: (main_1): Conditionalized calls to
11947         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
11948
11949 2000-01-13  Martin Buchholz  <martin@xemacs.org>
11950
11951         * window.c (Fset_window_configuration):
11952         * sysdep.c (_start):
11953         * input-method-motif.c (res):
11954         * event-Xt.c (Xt_process_to_emacs_event):
11955         Simple compiler warning fixes.
11956
11957         * bytecode.c (funcall_compiled_function): Use the original
11958         function symbol on the backtrace list in preference to the
11959         compiled_function object in error messages.
11960
11961 2000-01-13  Andy Piper  <andy@xemacs.org>
11962
11963         * glyphs-x.c (update_widget_face): Make sure we update the widget
11964         background as well as foreground.
11965
11966 2000-01-13  Andy Piper  <andy@xemacs.org>
11967
11968         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
11969         fields to subwindow.
11970         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
11971         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
11972         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
11973         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
11974
11975         * glyphs-widget.c (check_valid_tab_orientation): new function.
11976         (initialize_widget_image_instance): zero orientation and
11977         justification.
11978         (widget_instantiate): pick up orientation.
11979         (tab_control_query_geometry): return appropriate values for
11980         vertical tabs.
11981
11982         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
11983         appropriate creation flags for left, right and bottom tabs.
11984
11985         * s/cygwin32.h: add tab definitions.
11986
11987 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11988
11989         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
11990         frame upon hiding a subwindow.
11991         (mswindows_button_instantiate): Changed the push button style to
11992         BS_PUSHBUTTON.
11993         (mswindows_button_instantiate): Removed button BS_NOTIFY
11994         style.
11995         (mswindows_button_instantiate): Removed redundant check for
11996         a disabled gui item.
11997         (mswindows_button_instantiate): Made use of WS_TABSTOP
11998         consistent: "operable" controls (edit, button, tree, scroll) have
11999         this style, "display-only" ones (static, progress gauge) do
12000         not. This style is currently ignored by XEmacs though. Also,
12001         removed the WS_EX_CONTROLPARENT style - it is not for children,
12002         it is for their parents!
12003         (mswindows_edit_field_instantiate): Ditto.
12004         (mswindows_progress_gauge_instantiate): Ditto.
12005         (mswindows_tree_view_instantiate): Ditto.
12006         (mswindows_tab_control_instantiate): Ditto.
12007         (mswindows_scrollbar_instantiate): Ditto.
12008         (mswindows_combo_box_instantiate): Ditto.
12009         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
12010         style to the "clip" window.
12011         (mswindows_button_instantiate): Removed compilation warning by
12012         equally typing terms of the ?: operator.
12013
12014 2000-01-12  Didier Verna  <didier@xemacs.org>
12015
12016         * redisplay.c (generate_fstring_runes): new parameter holding the
12017         last modeline-format extent.
12018         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
12019         extent, fill the glyph block with it.
12020         (generate_fstring_runes): handle these parameters.
12021         (generate_formatted_string_db): ditto.
12022
12023         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
12024         glyphs'extents in the modeline.
12025
12026 1999-01-11  Mike Woolley  <mike@bulsara.com>
12027
12028         * ntheap.c: Reduced the reserved heap space from 1Gb down to
12029         256Mb, as a workaround for the non-starting problem many people
12030         have experienced.
12031
12032 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12033
12034         * console-tty.c (Fset_console_tty_output_coding_system):
12035         Force redrawing tty frame.
12036
12037 2000-01-10  Didier Verna  <didier@xemacs.org>
12038
12039         * redisplay.c (generate_fstring_runes): fix size computation bug.
12040
12041 2000-01-09  William M. Perry <wmperry@aventail.com>
12042
12043         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
12044
12045 2000-01-09  Andy Piper  <andy@xemacs.org>
12046
12047         * glyphs-msw.c: index -> i to avoid shadows.
12048         (xbm_create_bitmap_from_data): make static.
12049         (check_valid_string_or_int): deleted.
12050         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
12051
12052         * glyphs-x.c (x_update_subwindow): remove unused args.
12053
12054         * glyphs.c (glyph_image_instance): return the thing. Don't set the
12055         back pointer - this is done in allocate_image_instance.
12056         (query_string_font): return Qnil to make the compiler happy.
12057         (unmap_subwindow): set to ~0 to make the compiler happy.
12058         (glyph_query_geometry): comment out until used.
12059         (glyph_layout): ditto.
12060
12061 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
12062
12063         * insdel.c (signal_after_change): Remove extraneous unbind_to().