(insert-char-attributes): Format `hanyu-dazidian-{vol|page|char}';
[chise/xemacs-chise.git-] / src / ChangeLog
1 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
4         (Fdecode_char): Likewise.
5
6         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
7         chartab.h.
8         (Fdefine_char): Modify for Fdecode_char.
9         (Ffind_char): Likewise.
10
11         * mule-charset.c (Fdecode_char): Add new optional argument
12         `defined-only'.
13         (Fdecode_builtin_char): Modify for `Fdecode_char'.
14
15 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
16
17         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
18         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
19         (allocate_coding_system): Initialize initial-charsets of
20         CODESYS_BIG5 in XEmacs UTF-2000.
21         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
22         CODESYS_BIG5 in XEmacs UTF-2000.
23         (decode_coding_big5): Use initial-charset-g0 and -g1 of
24         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
25
26         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
27         variables.
28         (Qideograph_hanziku_{1 .. 12}): Likewise.
29         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
30         .. 12}'.
31         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
32         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
33         `ideograph-hanziku-{1 .. 12}'.
34
35         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
36         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
37         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
38         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
39         (DECODE_DEFINED_CHAR): New inline function.
40         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
41
42 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
43
44         * mule-charset.c (Vcharset_china3_jef): Renamed from
45         `Vcharset_japanese_jef_china3'.
46         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
47         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
48         `{MIN|MAX}_CHAR_JEF_CHINA3'..
49         (syms_of_mule_charset): Rename `china3-jef' from
50         `japanese-jef-china3'.
51         (complex_vars_of_mule_charset): Likewise; rename
52         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
53
54         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
55         `LEADING_BYTE_JEF_CHINA3'.
56         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
57         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
58
59 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
60
61         * mule-charset.c (encode_builtin_char_1): Comment out special code
62         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
63
64         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
65         (MAX_CHAR_MOJIKYO_0): Comment out.
66         (MIN_CHAR_CBETA): Changed to 0x00E20000.
67         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
68         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
69         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
70
71 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
72
73         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
74         (Qideograph_cbeta): New variable.
75         (encode_builtin_char_1): Comment out special code for
76         coded-charset `mojikyo' and `japanese-jef-china3'.
77         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
78         (complex_vars_of_mule_charset): Add new coded-charset
79         `ideograph-cbeta'.
80
81         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
82         (MIN_CHAR_CBETA): New macro.
83         (MAX_CHAR_CBETA): New macro.
84
85 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
86
87         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
88         (LEADING_BYTE_JEF_CHINA3): New macro.
89         (MIN_CHAR_JEF_CHINA3): New macro.
90         (MAX_CHAR_JEF_CHINA3): Likewise.
91         (DECODE_CHAR): Fixed.
92
93 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
94
95         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
96         (Qjapanese_jef_china3): New variable.
97         (encode_builtin_char_1): Support `japanese-jef-china3'.
98         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
99         (complex_vars_of_mule_charset): Add new coded-charset
100         `japanese-jef-china3'.
101
102 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
103
104         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
105         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
106         94^4, 96^3, 96^4, 128^n and 256^n set.
107         (put_char_table): Use `XCHARSET_CELL_RANGE'.
108         (map_char_table): Likewise.
109
110 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
111
112         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
113         UTF-2000.
114
115 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
116
117         * chartab.h (get_char_id_table): New inline function.
118
119         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
120         function.
121
122 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
123
124         * chartab.h (decode_char_table_range): New prototype in XEmacs
125         UTF-2000.
126         (put_char_id_table): New inline function in XEmacs UTF-2000.
127
128         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
129         function.
130         (decode_char_table_range): Delete static declaration in XEmacs
131         UTF-2000.
132
133 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
134
135         * chartab.c (put_char_id_table): Use `put_char_table'.
136
137 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
138
139         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
140         (map_over_uint16_byte_table): Likewise.
141         (map_over_byte_table): Likewise.
142         (map_char_table): Modify for `map_over_uint8_byte_table',
143         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
144         UTF-2000.
145
146 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
147
148         * chartab.c (struct map_char_table_for_charset_arg): New
149         structure.
150         (map_char_table_for_charset_fun): New function.
151         (map_char_table): Use `map_char_table' for encoding_table of
152         `range->charset'.
153
154 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
155
156         * chartab.c (map_char_table): Check a character is found in
157         range->charset instead of non default value is defined in
158         char-table when range is CHARTAB_RANGE_ROW.
159
160 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
161
162         * chartab.c (map_char_id_table): Deleted.
163         (Fmap_char_attribute): Use `map_char_table' instead of
164         `map_char_id_table'.
165
166 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
167
168         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
169         UTF-2000.
170         (update_syntax_table): Deleted in XEmacs UTF-2000.
171
172         * syntax.c (find_defun_start): Use `syntax_table' instead of
173         `mirror_syntax_table' in XEmacs UTF-2000.
174         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
175         UTF-2000.
176         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
177         XEmacs UTF-2000.
178         (Fmatching_paren): Likewise.
179         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
180         in XEmacs UTF-2000.
181         (find_start_of_comment): Likewise.
182         (find_end_of_comment): Likewise.
183         (Fforward_comment): Likewise.
184         (scan_lists): Likewise.
185         (char_quoted): Likewise.
186         (Fbackward_prefix_chars): Likewise.
187         (scan_sexps_forward): Likewise.
188         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
189         (update_syntax_table): Likewise.
190
191         * search.c (skip_chars): Use `syntax_table' instead of
192         `mirror_syntax_table' in XEmacs UTF-2000.
193         (wordify): Likewise.
194         (Freplace_match): Likewise.
195
196         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
197         `mirror_syntax_table' in XEmacs UTF-2000.
198         (WORDCHAR_P_UNSAFE): Likewise.
199         (re_match_2_internal): Likewise.
200
201         * font-lock.c (find_context): Use `buf->syntax_table' instead of
202         `buf->mirror_syntax_table' in XEmacs UTF-2000.
203
204         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
205         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
206
207         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
208         XEmacs UTF-2000.
209
210         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
211         UTF-2000.
212         (print_char_table): Print `default_value' in XEmacs UTF-2000.
213         (char_table_description): Delete `mirror_table' in XEmacs
214         UTF-2000.
215         (fill_char_table): Don't call `update_syntax_table' in XEmacs
216         UTF-2000.
217         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
218         (Fcopy_char_table): Likewise.
219         (put_char_table): Don't call `update_syntax_table' in XEmacs
220         UTF-2000.
221
222         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
223         `buf->mirror_syntax_table' in XEmacs UTF-2000.
224         (casify_region_internal): Likewise.
225
226         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
227
228         * buffer.c (common_init_complex_vars_of_buffer): Don't use
229         `mirror_syntax_table' in XEmacs UTF-2000.
230
231         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
232         `buf->mirror_syntax_table' in XEmacs UTF-2000.
233         (Fexpand_abbrev): Likewise.
234
235 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
236
237         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
238
239 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
240
241         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
242         (map_over_uint16_byte_table): Likewise.
243         (map_over_byte_table): Likewise.
244         (get_char_id_table): Refer `cit->default_value'.
245         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
246         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
247         of character-id ranges.
248         (mark_char_table): Mark `ct->default_value'.
249         (char_table_description): Add `default_value'.
250         (fill_char_table): Use `default_value'.
251         (decode_char_table_range): Decode `nil' as
252         `CHARTAB_RANGE_DEFAULT'.
253         (get_char_id_table): Refer `cit->default_value'.
254         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
255         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
256         temporary hack; check value of char-table is bound or not.
257         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
258
259         * chartab.h (struct Lisp_Char_Table): Add new member
260         `default_value' in XEmacs UTF-2000.
261         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
262         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
263         UTF-2000.
264
265 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
266
267         * chartab.h (Lisp_Char_ID_Table): Deleted.
268
269         * chartab.c (char_table_description): Fix typo.
270         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
271         `Lisp_Char_ID_Table'.
272
273 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
274
275         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
276         `CHAR_ID_TABLE_P'.
277
278         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
279         `CHAR_ID_TABLE_P'.
280
281         * chartab.h (XCHAR_ID_TABLE): Deleted.
282         (XSETCHAR_ID_TABLE): Deleted.
283         (CHAR_ID_TABLE_P): Deleted.
284
285         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
286         `CHAR_ID_TABLE_P'.
287         (Fget_composite_char): Likewise.
288         (put_char_table): Likewise.
289         (add_char_attribute_alist_mapper): Fixed.
290         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
291         `CHAR_ID_TABLE_P'.
292         (Fget_char_attribute): Likewise.
293         (Fget_char_attribute): Likewise.
294         (Fmap_char_attribute): Likewise.
295
296         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
297         `CHAR_ID_TABLE_P'.
298         (encode_char_1): Likewise.
299
300 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
301
302         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
303         `XCHAR_ID_TABLE'.
304
305         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
306         instead of `XCHAR_ID_TABLE'.
307         (remove_char_ccs): Likewise.
308
309         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
310         `XCHAR_ID_TABLE'.
311         (Fget_composite_char): Likewise.
312         (Fchar_variants): Likewise.
313         (put_char_table): Likewise.
314         (add_char_attribute_alist_mapper): Likewise.
315         (Fchar_attribute_alist): Likewise.
316         (Fget_char_attribute): Likewise.
317         (Fput_char_attribute): Likewise.
318         (Fmap_char_attribute): Likewise.
319         (Fmap_char_attribute): Likewise.
320
321         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
322         `XCHAR_ID_TABLE'.
323         (encode_char_1): Likewise.
324
325 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
326
327         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
328         `Lisp_Char_ID_Table'.
329         (mark_char_id_table): Deleted.
330         (print_char_id_table): Likewise.
331         (char_id_table_equal): Likewise.
332         (char_id_table_hash): Likewise.
333         (char_id_table_description): Likewise.
334         (char_id_table): Likewise.
335         (make_char_id_table): Use `Fmake_char_table' and
336         `fill_char_table'.
337         (get_char_id_table): Use `Lisp_Char_Table' instead of
338         `Lisp_Char_ID_Table'.
339         (put_char_id_table): Likewise.
340         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
341         `XCHAR_ID_TABLE'.
342         (Fremove_char_attribute): Likewise.
343         (syms_of_chartab): Don't define type `char-id-table'.
344
345         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
346         (char_id_table): Likewise.
347         (GC_CHAR_ID_TABLE_P): Likewise.
348         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
349         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
350         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
351         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
352         (get_char_id_table): Use `Lisp_Char_Table' instead of
353         `Lisp_Char_ID_Table'.
354         (put_char_id_table_0): Likewise.
355         (put_char_id_table): Likewise.
356
357 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
358
359         * chartab.h: Lisp_Byte_Table related codes are moved from
360         chartab.h.
361
362         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
363
364 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
365
366         * chartab.h: Don't include "chartab.h".
367         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
368         (Lisp_Char_ID_Table): Likewise.
369         (char_id_table): Likewise.
370         (XCHAR_ID_TABLE): Likewise.
371         (XSETCHAR_ID_TABLE): Likewise.
372         (CHAR_ID_TABLE_P): Likewise.
373         (GC_CHAR_ID_TABLE_P): Likewise.
374         (get_char_id_table): Likewise.
375
376         * char-ucs.h: Include "chartab.h".
377         (struct Lisp_Char_ID_Table): Moved to chartab.h.
378         (Lisp_Char_ID_Table): Likewise.
379         (char_id_table): Likewise.
380         (XCHAR_ID_TABLE): Likewise.
381         (XSETCHAR_ID_TABLE): Likewise.
382         (CHAR_ID_TABLE_P): Likewise.
383         (GC_CHAR_ID_TABLE_P): Likewise.
384         (get_char_id_table): Likewise.
385
386 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
387
388         * chartab.c (copy_uint8_byte_table): New function.
389         (copy_uint16_byte_table): New function.
390         (copy_byte_table): New function.
391         (map_over_uint8_byte_table): Modify to avoid huge numbers of
392         characters to call.
393         (map_over_uint16_byte_table): Likewise.
394         (map_over_byte_table): Likewise.
395         (get_byte_table): Move prototype to chartab.h.
396         (put_byte_table): Likewise.
397         (put_char_id_table_0): Moved to chartab.h.
398         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
399         (char_table_entry_equal): Likewise.
400         (char_table_entry_hash): Likewise.
401         (char_table_entry_description): Likewise.
402         (char_table_entry): Likewise.
403         (make_char_table_entry): Likewise.
404         (copy_char_table_entry): Likewise.
405         (get_non_ascii_char_table_value): Likewise.
406         (map_over_charset_ascii): Likewise.
407         (map_over_charset_control_1): Likewise.
408         (map_over_charset_row): Likewise.
409         (map_over_other_charset): Likewise.
410         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
411         (print_char_table): Likewise.
412         (char_table_equal): Likewise.
413         (char_table_hash): Likewise.
414         (char_table_description): Likewise.
415         (fill_char_table): Likewise.
416         (Fcopy_char_table): Likewise.
417         (get_char_table): Likewise.
418         (Fget_range_char_table): Likewise.
419         (put_char_table): Likewise.
420         (map_char_table): Likewise.
421         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
422         UTF-2000.
423
424 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
425
426         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
427         `Vauto_fill_chars' in XEmacs UTF-2000.
428
429         * chartab.h (get_byte_table): New prototype [moved from
430         chartab.c].
431         (put_byte_table): Likewise [moved from chartab.c].
432         (put_char_id_table_0): New inline function [moved from chartab.c].
433         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
434         (Lisp_Char_Table_Entry): Likewise.
435         (char_table_entry): Likewise.
436         (XCHAR_TABLE_ENTRY): Likewise.
437         (XSETCHAR_TABLE_ENTRY): Likewise.
438         (CHAR_TABLE_ENTRYP): Likewise.
439         (CHECK_CHAR_TABLE_ENTRY): Likewise.
440         (NUM_ASCII_CHARS): Likewise.
441         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
442         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
443
444 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
445
446         * chartab.c (get_char_id_table): Change interface.
447         (put_char_id_table_0): New function.
448         (put_char_id_table): Change interface; new implementation.
449         (Fget_composite_char): Modify for interface change of
450         `get_char_id_table'.
451         (Fchar_variants): Likewise.
452         (add_char_attribute_alist_mapper): Likewise.
453         (Fchar_attribute_alist): Likewise.
454         (Fget_char_attribute): Likewise.
455         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
456         as same as character as the first argument like `put-char-table';
457         modify for interface change of `put_char_id_table'.
458         (Fremove_char_attribute): Modify for interface change of
459         `put_char_id_table'.
460
461 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
462
463         * text-coding.c: Sync up with XEmacs 21.2.41.
464         (COMPOSE_ADD_CHAR): Modify for interface change of
465         `get_char_id_table'.
466
467         * mule-charset.c (put_char_ccs_code_point): Modify for interface
468         change of `put_char_id_table'.
469         (remove_char_ccs): Likewise.
470
471         * chartab.h (put_char_id_table): Change interface.
472
473         * char-ucs.h (get_char_id_table): Change interface.
474         (charset_code_point): Modify for interface change of
475         `get_char_id_table'.
476         (encode_char_1): Likewise.
477
478 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
479
480         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
481         argument `ccs'.
482         (map_over_uint16_byte_table): Likewise.
483         (map_over_byte_table): Likewise.
484         (map_char_id_table): Add new argument `range' like
485         `map_char_table'.
486         (Fmap_char_attribute): Add new argument `range' like
487         `Fmap_char_table'.
488
489 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
490
491         * chartab.c (map_over_uint8_byte_table): Change interface of
492         mapping function to use struct chartab_range instead of Emchar.
493         (map_over_uint16_byte_table): Likewise.
494         (map_over_byte_table): Likewise.
495         (map_char_id_table): Likewise.
496         (struct slow_map_char_id_table_arg): Deleted.
497         (slow_map_char_id_table_fun): Deleted.
498         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
499         function `slow_map_char_table_fun' instead of struct
500         `slow_map_char_id_table_arg' and function
501         `slow_map_char_id_table_fun'.
502
503 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
504
505         * mule-charset.c: Move char-it-table related codes to chartab.c.
506         (Vutf_2000_version): Moved to chartab.c.
507         (Fdefine_char): Likewise.
508         (Ffind_char): Likewise.
509         (syms_of_mule_charset): Move types `uint8-byte-table',
510         `uint16-byte-table', `byte-table' and `char-id-table' to
511         chartab.c; move functions `char_attribute_list,
512         `find_char_attribute_table, `char_attribute_alist,
513         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
514         `map_char_attribute, `define_char, `find_char, `char_variants and
515         `get_composite_char to chartab.c; move symbols `=>ucs',
516         `->decomposition', `compat', `isolated', `initial', `medial',
517         `final', `vertical', `noBreak', `fraction', `super', `sub',
518         `circle', `square', `wide', `narrow', `small' and `font' to
519         chartab.c.
520         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
521         setting codes for `Vcharacter_composition_table' and
522         `Vcharacter_variant_table' to chartab.c.
523         (complex_vars_of_mule_charset): Move setting code for
524         `Vchar_attribute_hash_table' to chartab.c.
525
526         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
527         (make_char_id_table): New prototype.
528         (put_char_id_table): Likewise.
529         (Fget_char_attribute): Likewise.
530
531         * chartab.c: Move char-id-table related code from mule-charset.c.
532         (Vutf_2000_version): Moved from mule-charset.c.
533
534         * char-ucs.h (Qucs): New external variable.
535         (put_char_ccs_code_point): New prototype.
536         (remove_char_ccs): Likewise.
537
538 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
539
540         * mule-charset.c (Vcharset_ucs_jis): New variable.
541         (Qucs_jis): Likewise.
542         (syms_of_mule_charset): Add new symbol `ucs-jis'.
543         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
544
545         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
546
547 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
548
549         * mule-charset.c (map_over_uint8_byte_table): New function.
550         (map_over_uint16_byte_table): Likewise.
551         (map_over_byte_table): Likewise.
552         (map_char_id_table): Likewise.
553         (slow_map_char_id_table_fun): Likewise.
554         (Fmap_char_attribute): Likewise.
555         (syms_of_mule_charset): Add new function `map-char-attribute'.
556
557 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
558
559         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
560         (syms_of_mule_charset): Add new function `find-char'.
561
562 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
563
564         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
565         XEmacs UTF-2000.
566         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
567         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
568         XEmacs UTF-2000.
569         (complex_vars_of_mule_charset): Add new coded-charset
570         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
571         `ideograph-gt-pj-*'.
572
573         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
574
575 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
576
577         * mule-charset.c (encode_builtin_char_1): Purge codes about
578         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
579         {MIN|MAX}_CHAR_HEBREW.
580         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
581         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
582
583         * char-ucs.h (MIN_CHAR_GREEK): Purged.
584         (MAX_CHAR_GREEK): Purged.
585         (MIN_CHAR_CYRILLIC): Purged.
586         (MAX_CHAR_CYRILLIC): Purged.
587         (MIN_CHAR_HEBREW): Commented out.
588         (MAX_CHAR_HEBREW): Likewise.
589
590 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
591
592         * mule-charset.c (Qto_ucs): New variable.
593         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
594         (Fdefine_char): Likewise.
595         (syms_of_mule_charset): Add new symbol `=>ucs'.
596
597 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
598
599         * mule-charset.c (Fdecode_char): Fixed.
600
601 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
602
603         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
604         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
605         "tcvn5712-1".
606
607 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
608
609         * mule-charset.c (Vcharset_ucs_big5): New variable.
610         (Qucs_big5): Likewise.
611         (syms_of_mule_charset): Add new symbol `ucs-big5'.
612         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
613
614         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
615
616 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
617
618         * mule-charset.c (decode_builtin_char): Check Big5 code range
619         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
620
621 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
622
623         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
624         (Qchinese_gb12345): Likewise.
625         (Fdecode_builtin_char): Fixed.
626         (syms_of_mule_charset): Add `chinese-gb12345'.
627         (complex_vars_of_mule_charset): Add coded-charset
628         `chinese-gb12345'.
629
630         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
631         (LEADING_BYTE_CHINESE_GB12345): New macro.
632
633 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
634
635         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
636         and `latin-viscii-upper' for `latin-viscii'.
637
638 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
639
640         * mule-charset.c (Fdecode_builtin_char): Comment out
641         regularization code for ISO-IR GR representation.
642
643 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
644
645         * mule-charset.c (decode_builtin_char): New function; renamed from
646         `make_builtin_char'; return -1 instead of signal.
647         (Fdecode_builtin_char): Use `decode_builtin_char'.
648
649         * char-ucs.h (decode_builtin_char): New prototype; renamed from
650         `make_builtin_char'.
651         (DECODE_CHAR): Use `decode_builtin_char' instead of
652         `make_builtin_char'; use mapping table of `chinese-big5' for
653         `chinese-big5-{1,2}'.
654
655 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
656
657         * text-coding.c (char_encode_big5): New function.
658         (char_finish_big5): Likewise.
659         (reset_encoding_stream): Use `char_encode_big5' and
660         `char_finish_big5' for CODESYS_BIG5.
661         (mule_encode): Don't use `encode_coding_big5'.
662         (encode_coding_big5): Deleted.
663
664 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
665
666         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
667         0x81- in XEmacs UTF-2000.
668         (detect_coding_big5): Likewise.
669
670 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
671
672         * mule-charset.c (Fdefine_char): Don't use a CCS property to
673         generate character-id if the CCS property does not have
674         corresponding predefined character.
675         (make_builtin_char): Return -1 if corresponding predefined
676         character is not found.
677         (Fdecode_char): Return nil if corresponding character is not
678         found.
679         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
680         don't map to builtin ucs space.
681
682 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
683
684         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
685         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
686
687 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
688
689         * mule-charset.c (Vcharset_ideograph_gt): New variable.
690         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
691         (Qideograph_gt): Likewise.
692         (Qideograph_gt_pj_{1..11}): Likewise.
693         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
694         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
695         `ideograph-gt-pj-11'.
696         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
697         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
698         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
699
700         * char-ucs.h (LEADING_BYTE_GT): New macro.
701         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
702         (MIN_CHAR_GT): Likewise.
703         (MAX_CHAR_GT): Likewise.
704
705 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
706
707         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
708         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
709
710         * doprnt.c (unsigned_int_converters): Add `c'.
711         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
712
713         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
714         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
715         `MIN_CHAR_MOJIKYO'.
716         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
717         (MAX_CHAR_MOJIKYO_0): New macro.
718         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
719
720 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
721
722         * mule-charset.c (Fdefine_char): Delete cemented out code.
723         (encode_builtin_char_1): Modify for new allocation of builtin
724         Mojikyo characters.
725
726         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
727
728 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
729
730         * mule-charset.c (Vcharset_ucs_cns): New variable.
731         (Qucs_cns): New variable.
732         (syms_of_mule_charset): Add new symbol `ucs-cns'.
733         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
734
735 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
736
737         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
738
739 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
740
741         * search.c (search_buffer): Make `charset_base_code' as
742         character-id >> 6 to eliminate the corresponding last byte in
743         UTF-8 representation [I'm not sure it is right thing].
744         (boyer_moore): Likewise.
745
746 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
747
748         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
749         representation in MULE.
750
751 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
752
753         * text-coding.c (Fmake_coding_system): Use
754         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
755         `EXTERNAL_PROPERTY_LIST_LOOP'.
756
757 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
758
759         * text-coding.c (decode_output_utf8_partial_char): New function.
760         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
761
762 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
763
764         * text-coding.c (decode_coding_utf8): Output original byte
765         sequence if it is broken; change order of conditions.
766
767         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
768         of conditions.
769
770         * mb-multibyte.h (BYTE_ASCII_P):
771         Use bit ops for char-signedness safety.
772         (BYTE_C0_P): Use bit ops for char-signedness safety.
773         (BYTE_C1_P): Use bit ops for char-signedness safety.
774
775         * character.h: (XCHAR_OR_CHAR_INT):
776         Always use inline function.
777         Remove redundant type checking assert() - XINT will abort quite
778         nicely.
779
780 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
781
782         * text-coding.c: (Fencode_shift_jis_char):
783         (Fencode_big5_char):
784         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
785         Replace 0 with '\0' when working with bytes.
786         Replace initial "(" with "\(" in docstrings.
787
788         (Fmake_coding_system):
789         When type is ccl and value is vector, register it with a proper
790         symbol.  And checks whether the given ccl program is valid.
791         (mule_decode): When calling ccl_driver, if src indicates
792         NULL pointer, set an empty string instead.
793         (mule_encode): Likewise.
794
795         (detect_eol_type):
796         (detect_coding_sjis):
797         (decode_coding_sjis):
798         (detect_coding_big5):
799         (decode_coding_big5):
800         (detect_coding_ucs4):
801         (decode_coding_ucs4):
802         (detect_coding_utf8):
803         (decode_coding_utf8):
804         (detect_coding_iso2022):
805         (decode_coding_iso2022):
806         (decode_coding_no_conversion):
807         (mule_decode):
808         Make all detecting and decoding functions take an Extbyte * arg.
809         (text_encode_generic):
810         (encode_coding_big5):
811         (encode_coding_no_conversion):
812         (mule_encode):
813         Make all encoding functions take a Bufbyte * arg.
814         Use size_t instead of unsigned int for memory sizes.
815         Only cast to unsigned char whenever dereferencing Extbyte *.
816
817         (struct lrecord_description fcd_description_1): Use countof.
818         (complex_vars_of_file_coding):
819         Use countof instead of sizeof.
820         Use CHECK_NATNUM instead of CHECK_INT.
821
822 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
823
824         * mule-charset.c (Fget_char_attribute): Add new optional argument
825         `default-value'.
826         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
827         (remove_char_ccs): Likewise.
828
829 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
830
831         * text-coding.c (char_encode_shift_jis): New implementation in
832         UTF-2000.
833         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
834         ...)'.
835
836         * mule-charset.c (Vcharset_chinese_big5): New variable in
837         UTF-2000.
838         (Qchinese_big5): New variable in UTF-2000.
839         (BIG5_SAME_ROW): New macro in UTF-2000.
840         (make_builtin_char): Use builtin characters of
841         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
842         characters of `Vcharset_chinese_big5'.
843         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
844         (complex_vars_of_mule_charset): Add new coded-charset
845         `chinese-big5' in UTF-2000.
846
847         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
848         (Vcharset_chinese_big5): New external variable declaration.
849         (Vcharset_japanese_jisx0208_1990): Likewise.
850
851 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
852
853         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
854         function.
855         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
856
857 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
858
859         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
860         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
861         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
862         `mojikyo-pj-*'.
863
864 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
865
866         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
867
868 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
869
870         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
871         to 0.17.
872
873 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
874
875         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
876         for `CHARSET_BY_ATTRIBUTES'.
877         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
878         `CHARSET_BY_ATTRIBUTES'.
879
880         * text-coding.c (struct decoding_stream): Rename member `CH' to
881         `CPOS'.
882         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
883         (decode_coding_sjis): Likewise.
884         (decode_coding_big5): Likewise.
885         (decode_coding_ucs4): Likewise.
886         (decode_coding_utf8): Likewise.
887         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
888         `CHARSET_BY_ATTRIBUTES'.
889         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
890         `str->counter'; decode 3, 4 bytes sets.
891         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
892         sets.
893         (decode_coding_no_conversion): Use `str->cpos' instead of
894         `str->ch'.
895
896         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
897         (Qmojikyo_2022_1): New variable.
898         (make_charset): Don't use `CHARSET_TYPE_*'.
899         (range_charset_code_point): Support coded-charset
900         `mojikyo-2022-1'.
901         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
902         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
903         `CHARSET_BY_ATTRIBUTES'.
904         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
905         `CHARSET_BY_ATTRIBUTES'.
906         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
907         (complex_vars_of_mule_charset): Add new coded-charset
908         `mojikyo-2022-1'.
909
910         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
911         interface; changed to inline function.
912
913         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
914         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
915         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
916         (CHARSET_TYPE_94): Deleted.
917         (CHARSET_TYPE_94X94): Deleted.
918         (CHARSET_TYPE_96): Deleted.
919         (CHARSET_TYPE_96X96): Deleted.
920         (CHARSET_TYPE_128): Deleted.
921         (CHARSET_TYPE_128X128): Deleted.
922         (CHARSET_TYPE_256): Deleted.
923         (CHARSET_TYPE_256X256): Deleted.
924         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
925         to inline function.
926         (DECODE_MOJIKYO_2022): New inline function.
927         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
928         `Vcharset_mojikyo_2022_1'.
929
930 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
931
932         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
933         instead of `EQ'.
934         (put_byte_table): Likewise.
935         (char_id_table_equal): Use `get_byte_table' [new implementation].
936
937 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
938
939         * mule-charset.c: Include <limits.h> in UTF-2000.
940         (BT_UINT8_MIN): New macro in UTF-2000.
941         (BT_UINT8_MAX): New macro in UTF-2000.
942         (BT_UINT8_t): New macro in UTF-2000.
943         (BT_UINT8_nil): New macro in UTF-2000.
944         (BT_UINT8_unbound): New macro in UTF-2000.
945         (INT_UINT8_P): New inline function in UTF-2000.
946         (UINT8_VALUE_P): New inline function in UTF-2000.
947         (UINT8_ENCODE): New inline function in UTF-2000.
948         (UINT8_DECODE): New inline function in UTF-2000.
949         (mark_uint8_byte_table): New function in UTF-2000.
950         (print_uint8_byte_table): New function in UTF-2000.
951         (uint8_byte_table_equal): New function in UTF-2000.
952         (uint8_byte_table_hash): New function in UTF-2000.
953         (make_uint8_byte_table): New function in UTF-2000.
954         (uint8_byte_table_same_value_p): New function in UTF-2000.
955         (BT_UINT16_MIN): New macro in UTF-2000.
956         (BT_UINT16_MAX): New macro in UTF-2000.
957         (BT_UINT16_t): New macro in UTF-2000.
958         (BT_UINT16_nil): New macro in UTF-2000.
959         (BT_UINT16_unbound): New macro in UTF-2000.
960         (INT_UINT16_P): New inline function in UTF-2000.
961         (UINT16_VALUE_P): New inline function in UTF-2000.
962         (UINT16_ENCODE): New inline function in UTF-2000.
963         (UINT16_DECODE): New inline function in UTF-2000.
964         (UINT8_TO_UINT16): New inline function in UTF-2000.
965         (mark_uint16_byte_table): New function in UTF-2000.
966         (print_uint16_byte_table): New function in UTF-2000.
967         (uint16_byte_table_equal): New function in UTF-2000.
968         (uint16_byte_table_hash): New function in UTF-2000.
969         (make_uint16_byte_table): New function in UTF-2000.
970         (uint16_byte_table_same_value_p): New function in UTF-2000.
971         (print_byte_table): New function in UTF-2000.
972         (byte-table): Use `print_byte_table' as printer.
973         (make_byte_table): Delete second argument `older'.
974         (byte_table_same_value_p): New function in UTF-2000.
975         (copy_byte_table): Deleted.
976         (get_byte_table): New function in UTF-2000.
977         (put_byte_table): New function in UTF-2000.
978         (print_char_id_table): New function in UTF-2000.
979         (char-id-table): Use `print_char_id_table' as printer.
980         (make_char_id_table): Delete second argument `older'.
981         (get_char_id_table): Use `get_byte_table [new implementation].
982         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
983         implementation].
984         (Ffind_char_attribute_table): New function in UTF-2000.
985         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
986         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
987         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
988         (syms_of_mule_charset): Add new function
989         `find-char-attribute-table' in UTF-2000.
990
991         * lrecord.h (enum lrecord_type): Add
992         `lrecord_type_uint16_byte_table' and
993         `lrecord_type_uint8_byte_table'.
994
995         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
996         (Lisp_Uint8_Byte_Table): New type.
997         (XUINT8_BYTE_TABLE): New macro.
998         (XSETUINT8_BYTE_TABLE): New macro.
999         (UINT8_BYTE_TABLE_P): New macro.
1000         (GC_UINT8_BYTE_TABLE_P): New macro.
1001         (struct Lisp_Uint16_Byte_Table): New structure.
1002         (Lisp_Uint16_Byte_Table): New type.
1003         (XUINT16_BYTE_TABLE): New macro.
1004         (XSETUINT16_BYTE_TABLE): New macro.
1005         (UINT16_BYTE_TABLE_P): New macro.
1006         (GC_UINT16_BYTE_TABLE_P): New macro.
1007
1008 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1009
1010         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
1011         (Vcharacter_ideographic_strokes_table): Deleted.
1012         (Vcharacter_total_strokes_table): Deleted.
1013         (Vcharacter_morohashi_daikanwa_table): Deleted.
1014         (Vcharacter_decomposition_table): Deleted.
1015         (Qname): Deleted because it is duplicated.
1016         (Qideographic_radical): Deleted.
1017         (Qideographic_strokes): Deleted.
1018         (Qtotal_strokes): Deleted.
1019         (Qmorohashi_daikanwa): Deleted.
1020         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
1021         `ideographic-radical', `ideographic-strokes', `total-strokes',
1022         `morohashi-daikanwa' and `->decomposition'.
1023         (Fget_char_attribute): Likewise.
1024         (Fput_char_attribute): Likewise; use `make-vector' instead of
1025         `make_older_vector' for `->decomposition' value.
1026         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
1027         `ideograph-daikanwa'.
1028         (syms_of_mule_charset): Delete builtin symbols `name',
1029         `ideographic-radical', `ideographic-strokes', `total-strokes' and
1030         `morohashi-daikanwa'.
1031         (vars_of_mule_charset): Don't setup
1032         `Vcharacter_ideographic_radical_table',
1033         `Vcharacter_ideographic_strokes_table',
1034         `Vcharacter_total_strokes_table',
1035         `Vcharacter_morohashi_daikanwa_table' and
1036         `Vcharacter_decomposition_table'.
1037
1038 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1039
1040         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
1041         `make_older_vector', `make_vector_newer_1' and
1042         `make_vector_newer'.
1043
1044         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
1045         `make_older_vector' and `make_vector_newer'.
1046
1047         * config.h.in (HAVE_GGC): New macro.
1048
1049 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1050
1051         * mule-charset.c (struct char_attribute_list_closure): New
1052         structure in UTF-2000.
1053         (add_char_attribute_to_list_mapper): New function in UTF-2000.
1054         (Fchar_attribute_list): Likewise.
1055         (Fset_charset_mapping_table): Use `make_vector_newer'.
1056         (Fdecode_builtin_char): New function in UTF-2000.
1057         (syms_of_mule_charset): Add new function `char-attribute-list' and
1058         `decode-builtin-char' in UTF-2000.
1059
1060         * lisp.h (make_vector_newer): New prototype.
1061
1062         * alloc.c (make_vector_newer_1): New function.
1063         (make_vector_newer): New function.
1064
1065 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1066
1067         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
1068         50100)'.
1069
1070 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1071
1072         * mule-charset.c (Vchar_attribute_hash_table): New variable.
1073         (Vcharacter_attribute_table): Deleted.
1074         (Vcharacter_name_table): Deleted.
1075         (put_char_attribute): Deleted.
1076         (remove_char_attribute): Deleted.
1077         (struct char_attribute_alist_closure): New structure.
1078         (add_char_attribute_alist_mapper): New function.
1079         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
1080         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
1081         (Fget_char_attribute): Likewise.
1082         (Fput_char_attribute): Likewise.
1083         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
1084         of `remove_char_attribute'.
1085         (Fdefine_char): Return character.
1086         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
1087         and `Vcharacter_name_table'.
1088         (complex_vars_of_mule_charset): Likewise
1089         `Vchar_attribute_hash_table'.
1090
1091 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1092
1093         * character.h (CHARC_CHARSET): New macro.
1094         (CHARC_CHARSET_ID): New macro.
1095         (CHARC_CODE_POINT): New macro.
1096         (CHARC_COLUMNS): New macro.
1097         (CHARC_TO_CHAR): New inline function.
1098         (CHARC_EQ): New inline function.
1099         (CHARC_ASCII_EQ): New inline function.
1100         (CHARC_IS_SPACE): New inline function.
1101         (ASCII_TO_CHARC): New inline function.
1102
1103         * char-ucs.h (encode_char_2): Deleted.
1104         (ENCODE_CHAR): Use `encode_char_1' again.
1105         (breakup_char_1): Likewise.
1106         (CHAR_TO_CHARC): New inline function.
1107
1108         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
1109
1110 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1111
1112         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
1113         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
1114         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
1115         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
1116         (create_string_text_block): Use `CHARC_ASCII_EQ' and
1117         `CHARC_IS_SPACE'.
1118         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
1119
1120         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
1121         `CHARC_CODE_POINT'.
1122         (x_output_display_block): Use `CHARC_CHARSET' and
1123         `CHARC_ASCII_EQ'.
1124
1125         * redisplay-tty.c (tty_output_display_block): Use
1126         `CHARC_ASCII_EQ'.
1127         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
1128
1129         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
1130
1131         * insdel.c (find_charsets_in_charc_string): Use
1132         `CHARC_CHARSET_ID'.
1133         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
1134         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
1135         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
1136         (convert_charc_string_into_malloced_string): Likewise.
1137
1138 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1139
1140         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
1141         instead of <Emchar_dynarr *> for buf; use
1142         `convert_bufbyte_string_into_charc_dynarr' instead of
1143         `convert_bufbyte_string_into_emchar_dynarr'; use
1144         `find_charsets_in_charc_string' instead of
1145         `find_charsets_in_emchar_string'.
1146
1147         * redisplay.h:
1148         - Include "character.h".
1149         (struct rune): New member `cglyph'; delete member `chr'.
1150
1151         * redisplay.c (redisplay_text_width_charc_string): New function;
1152         delete `redisplay_text_width_emchar_string'.
1153         (rtw_charc_dynarr): New variable; renamed from
1154         `rtw_emchar_dynarr'.
1155         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
1156         `rtw_emchar_dynarr'; use
1157         `convert_bufbyte_string_into_charc_dynarr' instead of
1158         `convert_bufbyte_string_into_emchar_dynarr'; use
1159         `redisplay_text_width_charc_string' instead of
1160         `redisplay_text_width_emchar_string'.
1161         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
1162         instead of `rtw_emchar_dynarr'; use
1163         `convert_bufbyte_string_into_charc_dynarr' instead of
1164         `convert_bufbyte_string_into_emchar_dynarr'.
1165         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
1166         `redisplay_text_width_charc_string' instead of
1167         `redisplay_text_width_emchar_string'.
1168         (create_text_block): Modify for <struct rune> change.
1169         (generate_formatted_string_db): Likewise.
1170         (create_string_text_block): Likewise.
1171         (pixel_to_glyph_translation): Likewise.
1172
1173         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
1174         instead of <const Emchar *>.
1175         (x_text_width): Likewise.
1176         (x_output_display_block): Use <Charc_dynarr *> instead
1177         <Emchar_dynarr *>; modify for <structure rune> change.
1178         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
1179         *>.
1180
1181         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
1182         <const Emchar *>; use `charc_string_displayed_columns' instead of
1183         `emchar_string_displayed_columns'.
1184         (tty_output_display_block): Use <Charc_dynarr *> instead of
1185         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
1186         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
1187         (tty_output_charc_dynarr_dynarr): New variable; renamed from
1188         `tty_output_emchar_dynarr_dynarr'.
1189         (tty_output_charc_dynarr): New function; delete
1190         `tty_output_charc_dynarr'.
1191
1192         * redisplay-output.c (compare_runes): Modify for `struct rune'.
1193         (redisplay_output_layout): Use <Charc_dynarr *> instead of
1194         <Emchar_dynarr *> for buf; use
1195         `convert_bufbyte_string_into_charc_dynarr' instead of
1196         `convert_bufbyte_string_into_emchar_dynarr'.
1197
1198         * frame.c (title_string_charc_dynarr): New variable; renamed from
1199         `title_string_emchar_dynarr'.
1200         (generate_title_string): Use `title_string_charc_dynarr' instead
1201         of `title_string_emchar_dynarr'; use
1202         `convert_charc_string_into_malloced_string' instead of
1203         `convert_emchar_string_into_malloced_string'.
1204         (init_frame): Use `title_string_charc_dynarr' instead of
1205         `title_string_emchar_dynarr'.
1206
1207         * console.h:
1208         - Include "character.h".
1209         (struct console_methods): Use <const Charc *> instead of <const
1210         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
1211         <Emchar_dynarr *> in output_string_method.
1212
1213         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
1214         <Emchar_dynarr *>.
1215
1216         * console-stream.c (stream_text_width): Use <const Charc *>
1217         instead of <const Emchar *>.
1218
1219         * character.h (Charc_dynarr): New type.
1220
1221         * char-ucs.h (structure Charc): New structure; define new type
1222         `Charc'.
1223
1224         * char-lb.h (DECODE_CHAR): New inline function.
1225         (encode_char_1): New inline function.
1226         (ENCODE_CHAR): New macro.
1227         (structure Charc): New structure; define new type `Charc'.
1228
1229         * char-1byte.h (Vcharset_control_1): New macro.
1230         (Vcharset_latin_iso8859_1): New macro.
1231         (DECODE_CHAR): New inline function.
1232         (encode_char_1): New inline function.
1233         (ENCODE_CHAR): New macro.
1234         (structure Charc): New structure; define new type `Charc'.
1235
1236         * insdel.c (find_charsets_in_charc_string): New function; delete
1237         `find_charsets_in_emchar_string'.
1238         (charc_string_displayed_columns): New function; delete
1239         `emchar_string_displayed_columns'.
1240         (convert_bufbyte_string_into_charc_dynarr): New function; delete
1241         `convert_bufbyte_string_into_emchar_dynarr'.
1242         (convert_charc_string_into_bufbyte_dynarr): New function; delete
1243         `convert_charc_string_into_bufbyte_dynarr'.
1244         (convert_charc_string_into_malloced_string): New function; delete
1245         `convert_charc_string_into_malloced_string'.
1246
1247         * buffer.h (find_charsets_in_charc_string): New prototype; delete
1248         `find_charsets_in_emchar_string'.
1249         (charc_string_displayed_columns): New prototype; delete
1250         `emchar_string_displayed_columns'.
1251         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
1252         `convert_charc_string_into_bufbyte_dynarr'.
1253         (convert_charc_string_into_malloced_string): New prototype; delete
1254         `convert_charc_string_into_malloced_string'.
1255
1256 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1257
1258         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
1259
1260 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1261
1262         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
1263
1264         * char-ucs.h: Use <short> for <Charset_ID>.
1265
1266         * mule-charset.h, char-1byte.h: Use <unsigned char> for
1267         <Charset_ID>.
1268
1269 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1270
1271         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1272         to 0.16.
1273
1274 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1275
1276         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
1277         variable.
1278         (Qmorohashi_daikanwa): New variable.
1279         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
1280         for `morohashi-daikanwa' attribute.
1281         (Fget_char_attribute): Likewise.
1282         (Fput_char_attribute): Likewise.
1283         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
1284         has the same value of `ideograph-daikanwa'.
1285         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
1286         (vars_of_mule_charset): Setup
1287         `Vcharacter_morohashi_daikanwa_table'.
1288
1289 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1290
1291         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
1292         attributes.
1293         (add_charset_to_list_mapper): Add `key' instead of
1294         `XCHARSET_NAME (value)' to return aliases.
1295
1296 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1297
1298         * mule-charset.c (Vcharacter_ideographic_radical_table): New
1299         variable.
1300         (Vcharacter_ideographic_strokes_table): New variable.
1301         (Qideographic_radical): New variable.
1302         (Qideographic_strokes): New variable.
1303         (Fchar_attribute_alist): Use
1304         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
1305         attribute; use `Vcharacter_ideographic_strokes_table' for
1306         `ideographic-strokes' attribute.
1307         (Fget_char_attribute): Likewise.
1308         (Fput_char_attribute): Likewise.
1309         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
1310         `ideographic-strokes'.
1311         (vars_of_mule_charset): Setup
1312         `Vcharacter_ideographic_radical_table' and
1313         `Vcharacter_ideographic_strokes_table'.
1314
1315 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1316
1317         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
1318         (Qtotal_strokes): New variable.
1319         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
1320         `total-strokes' attribute.
1321         (Fget_char_attribute): Likewise.
1322         (Fput_char_attribute): Likewise.
1323         (syms_of_mule_charset): Add new symbol `total-strokes'.
1324         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
1325
1326 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1327
1328         * mule-charset.c (Vcharacter_decomposition_table): New variable.
1329         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
1330         are found.
1331         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
1332         `->decomposition' attribute.
1333         (Fput_char_attribute): Likewise.
1334         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
1335
1336 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1337
1338         * mule-charset.c (decoding_table_check_elements): New function.
1339         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
1340
1341 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1342
1343         * mule-charset.c (Fset_charset_mapping_table): Use
1344         `put_char_ccs_code_point'.
1345
1346 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1347
1348         * mule-charset.c (decoding_table_put_char): New inline function.
1349         (put_char_ccs_code_point): Use `decoding_table_put_char'.
1350
1351 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1352
1353         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
1354         (XCHARSET_BYTE_SIZE): New macro.
1355         (decoding_table_remove_char): New inline function.
1356         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
1357         `decoding_table_remove_char'.
1358         (remove_char_ccs): Use `decoding_table_remove_char'.
1359         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
1360
1361 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1362
1363         * mule-charset.c (Vcharacter_name_table): New variable.
1364         (Qname): New variable.
1365         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
1366         attribute.
1367         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
1368         `Vcharacter_name_table' for `name' attribute.
1369         (Fremove_char_attribute): Use function `remove_char_ccs'.
1370         (put_char_ccs_code_point): New function.
1371         (remove_char_ccs): New function.
1372         (syms_of_mule_charset): Add new symbol `name'.
1373         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
1374
1375 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1376
1377         * mule-charset.c (make_byte_table): Add new argument `older'.
1378         (make_char_id_table): Likewise.
1379         (copy_char_id_table): Comment out because it is not used.
1380         (put_char_id_table): Modify for `make_byte_table'.
1381         (Fput_char_attribute): Make encoding_table as older object;
1382         inherit older bit of `Vcharacter_composition_table'.
1383         (mark_charset): Don't mark `cs->encoding_table'.
1384         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
1385         normal object; make `Vcharacter_composition_table' as an older
1386         object; delete staticpro for `Vcharacter_composition_table'; make
1387         `Vcharacter_variant_table' as a normal object.
1388
1389         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
1390         (mark_object): Don't check older object in UTF-2000.
1391
1392         * lrecord.h (struct lrecord_header): Add new member `older' in
1393         UTF-2000.
1394         (set_lheader_implementation): Setup `SLI_header->older' in
1395         UTF-2000.
1396         (set_lheader_older_implementation): New macro in UTF-2000.
1397         (OLDER_RECORD_P): New macro in UTF-2000.
1398         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
1399         (alloc_older_lcrecord): New prototype in UTF-2000.
1400         (alloc_older_lcrecord_type): New macro in UTF-2000.
1401
1402 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1403
1404         * mule-charset.c (byte_table_description): Use
1405         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
1406         (char_id_table_description): Delete bogus `, 1'.
1407         (Fget_char_attribute): Refer encoding_table of each coded-charset
1408         to get value of coded-charset attribute of a character.
1409         (Fput_char_attribute): Use `make_older_vector' instead of
1410         `make_vector'; use encoding_table of each coded-charset to store
1411         value of coded-charset attribute of a character.
1412         (Fremove_char_attribute): Use encoding_table of each coded-charset
1413         to store value of coded-charset attribute of a character.
1414         (mark_charset): Mark `cs->encoding_table'; don't mark
1415         `cs->decoding_table'.
1416         (charset_description): Add description of new member
1417         `encoding_table'.
1418         (make_charset): Initialize `encoding_table'.
1419
1420         * char-ucs.h (struct Lisp_Charset): Add new member
1421         `encoding_table'.
1422         (CHARSET_ENCODING_TABLE): New macro.
1423         (XCHARSET_ENCODING_TABLE): New macro.
1424         (charset_code_point): New implementation.
1425         (encode_char_1): Likewise.
1426
1427         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
1428         (disksave_object_finalization_1): Call finalizers of
1429         `all_older_lcrecords' in UTF-2000.
1430         (make_older_vector): New function in UTF-2000.
1431         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
1432         UTF-2000.
1433
1434         * lisp.h (make_older_vector): New prototype in UTF-2000.
1435
1436 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1437
1438         * lrecord.h (enum lrecord_type): Rename
1439         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
1440
1441         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
1442         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
1443         `get_char_code_table'.
1444
1445         * mule-charset.c (mark_char_id_table): Renamed from
1446         `mark_char_code_table'.
1447         (char_id_table_equal): Renamed from `char_code_table_equal'.
1448         (char_id_table_hash): Renamed from `char_code_table_hash'.
1449         (make_char_id_table): Renamed from `make_char_code_table'.
1450         (copy_char_id_table): Renamed from `copy_char_code_table'.
1451         (get_char_id_table): Renamed from `get_char_code_table'.
1452         (put_char_id_table): Renamed from `put_char_code_table'.
1453         (to_char_id): Renamed from `to_char_code'.
1454
1455         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
1456         `Lisp_Char_Code_Table'.
1457         (char_id_table): Renamed from `char_code_table'.
1458         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
1459         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
1460         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
1461         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
1462         (get_char_id_table): Renamed from `get_char_code_table'.
1463
1464 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1465
1466         * lrecord.h (enum lrecord_type): Rename
1467         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
1468
1469         * mule-charset.c (mark_byte_table): Renamed from
1470         `mark_char_byte_table'.
1471         (byte_table_equal): Renamed from `char_byte_table_equal'.
1472         (byte_table_hash): Renamed from `byte_table_hash'.
1473         (make_byte_table): Renamed from `make_byte_table'.
1474         (copy_byte_table): Renamed from `copy_char_byte_table'.
1475
1476         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
1477         `Lisp_Char_Byte_Table'.
1478         (byte_table): Renamed from `char_byte_table'.
1479         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
1480         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
1481         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
1482         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
1483
1484 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1485
1486         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
1487         (dfc_convert_to_internal_format): Likewise.
1488         
1489         * text-coding.c (Fcoding_system_canonical_name_p): New function.
1490         * text-coding.c (Fcoding_system_alias_p): New function.
1491         * text-coding.c (Fcoding_system_aliasee): New function.
1492         * text-coding.c (append_suffix_to_symbol): New function.
1493         * text-coding.c (dangling_coding_system_alias_p): New function.
1494         * text-coding.c (Ffind_coding_system):
1495         * text-coding.c (Fcopy_coding_system):
1496         * text-coding.c (encode_coding_no_conversion):
1497         * text-coding.c (syms_of_file_coding):
1498         * text-coding.c (vars_of_file_coding):
1499         Rewrite coding system alias code.
1500         Allow nested aliases, like symbolic links.
1501         Allow redefinition of coding system aliases.
1502         Prevent existence of dangling coding system aliases.
1503         Eliminate convert_to_external_format.
1504         Eliminate convert_to_internal_format.
1505         
1506         * text-coding.c: Change enum eol_type to eol_type_t.
1507
1508 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1509
1510         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
1511         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
1512
1513         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
1514         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
1515
1516 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1517
1518         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
1519         `ideograph-daikanwa'.
1520
1521         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
1522         (Vcharset_ucs_bmp): Likewise.
1523         (Vcharset_mojikyo): Add new extern variable definition.
1524         (Vcharset_latin_iso8859_2): Deleted because it is not used.
1525         (Vcharset_latin_iso8859_3): Likewise.
1526         (Vcharset_latin_iso8859_4): Likewise.
1527         (Vcharset_latin_iso8859_9): Likewise.
1528         (Vcharset_latin_viscii_lower): Likewise.
1529         (Vcharset_latin_viscii_upper): Likewise.
1530         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
1531         `mojikyo' code-point is used to decode.
1532         (encode_char_2): New function [to convert `mojikyo' code-point to
1533         Mojikyo font encoding].
1534         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
1535         (breakup_char_1): Likewise.
1536         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
1537
1538 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1539
1540         * text-coding.c (Fmake_coding_system): Add document about
1541         `disable-composition' property.
1542
1543 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1544
1545         * text-coding.c (Qdisable_composition): New variable; delete
1546         `Qcomposite'.
1547         (Fmake_coding_system): Add new property `disable-composite';
1548         delete property `composite'.
1549         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
1550         instead of `!CODING_SYSTEM_COMPOSITE'.
1551         (syms_of_file_coding): Add new symbol `disable-composition';
1552         delete symbol `composite'.
1553
1554         * file-coding.h (struct Lisp_Coding_System): Add
1555         `disable_composition'; delete `enable_composition'.
1556         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
1557         `CODING_SYSTEM_COMPOSITE'.
1558         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
1559         `XCODING_SYSTEM_COMPOSITE'.
1560
1561 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1562
1563         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1564         to 0.15.
1565
1566 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1567
1568         * text-coding.c (Qcomposite): New variable.
1569         (Fmake_coding_system): Add new property `composite'.
1570         (struct decoding_stream): Add `combined_char_count',
1571         `combined_chars' and `combining_table' in UTF-2000.
1572         (COMPOSE_FLUSH_CHARS): New macro.
1573         (COMPOSE_ADD_CHAR): New macro.
1574         (reset_decoding_stream): Reset `str->combined_char_count' and
1575         `str->combining_table' in UTF-2000.
1576         (decode_coding_iso2022): Modify for character-decomposition.
1577         (syms_of_file_coding): Add new symbol `composite'.
1578
1579 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1580
1581         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
1582         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
1583         of `Vcharacter_composition_table' if `->decomposition' property
1584         has only 1 element.
1585         (Qlatin_tcvn5712): New variable.
1586         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
1587         (complex_vars_of_mule_charset): Add new coded-charset
1588         `latin-tcvn5712'.
1589
1590         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
1591
1592 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1593
1594         * file-coding.h (struct Lisp_Coding_System): Add
1595         `enable_composition'.
1596         (CODING_SYSTEM_COMPOSITE): New macro.
1597         (XCODING_SYSTEM_COMPOSITE): New macro.
1598
1599 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
1600
1601         * mule-canna.c (c2mu): Fix problem with UTF-2000.
1602
1603 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
1604
1605         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
1606         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
1607
1608 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
1609
1610         * mule-charset.c (Vcharset_mojikyo): New variable.
1611         (Fdefine_char): Don't use coded-charset which does not have
1612         non-builtin character range to allocate character-id.
1613         (Qmojikyo): New variable.
1614         (syms_of_mule_charset): Add new symbol `mojikyo'.
1615         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
1616
1617         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
1618         (LEADING_BYTE_MOJIKYO): New macro.
1619         (MIN_CHAR_MOJIKYO): New macro.
1620         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
1621         (MAX_CHAR_MOJIKYO): New macro.
1622
1623 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
1624
1625         * mule-charset.c (remove_char_attribute): Fixed.
1626
1627 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
1628
1629         * mule-charset.c (remove_char_attribute): New function.
1630         (Fremove_char_attribute): New function.
1631         (encode_builtin_char_1): Comment out builtin-support for
1632         greek-iso8859-7 and cyrillic-iso8859-5.
1633         (Fdecode_char): Check `code' is an integer.
1634         (syms_of_mule_charset): Add `remove-char-attribute'.
1635         (MIN_CHAR_GREEK): Deleted.
1636         (MAX_CHAR_GREEK): Likewise.
1637         (MIN_CHAR_CYRILLIC): Likewise.
1638         (MAX_CHAR_CYRILLIC): Likewise.
1639         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
1640         MAX_CHAR_GREEK for `greek-iso8859-7'.
1641
1642         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
1643         (MAX_CHAR_GREEK): Likewise.
1644         (MIN_CHAR_CYRILLIC): Likewise.
1645         (MAX_CHAR_CYRILLIC): Likewise.
1646
1647 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
1648
1649         * mule-charset.c (Fdefine_char): Fix problem when new code-point
1650         format is used without `ucs' property.
1651         (Fdecode_char): Fix problem with GR representation.
1652         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
1653         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
1654
1655 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
1656
1657         * mule-charset.c (make_builtin_char): New function.
1658         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
1659         (Fset_charset_mapping_table): Modify for new representation of
1660         code-point.
1661         (Fdecode_char): New function.
1662         (syms_of_mule_charset): Add new builtin function `decode-char' in
1663         UTF-2000.
1664
1665         * char-ucs.h (make_builtin_char): New prototype.
1666         (DECODE_CHAR): New inline function.
1667         (MAKE_CHAR): Use `DECODE_CHAR'.
1668
1669 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
1670
1671         * text-coding.c (parse_charset_conversion_specs): Use
1672         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
1673         `XCHARSET_TYPE'.
1674         (iso2022_designate): Likewise.
1675
1676         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
1677         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
1678
1679         * mule-charset.c (Vcharset_ucs): New variable.
1680         (print_charset): Change design; use `CHARSET_CHARS' and
1681         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
1682         (make_charset): Change signature to specify `chars' and
1683         `dimension' instead of `type'.
1684         (range_charset_code_point): Modify for 256^n-set.
1685         (encode_builtin_char_1): Encode as `ucs' in default.
1686         (Fmake_charset): Modify for `make_charset'.
1687         (Fmake_reverse_direction_charset): Likewise.
1688         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
1689         UTF-2000.
1690         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
1691         for `make_charset'.
1692
1693         * char-ucs.h (Vcharset_ucs): New variable.
1694         (LEADING_BYTE_UCS): New macro.
1695         (struct Lisp_Charset): Delete `type'; change type of `dimension'
1696         and `chars' to `unsigned short' from `unsigned int'.
1697         (CHARSET_TYPE): Deleted.
1698         (XCHARSET_TYPE): Deleted.
1699
1700 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
1701
1702         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
1703
1704         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
1705         (ENCODE_CHAR): New macro.
1706
1707 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
1708
1709         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1710         to 0.14 (Kawachi-Katakami).
1711
1712 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
1713
1714         * text-coding.c (char_encode_shift_jis): Modify for
1715         `charset_code_point'.
1716         (char_encode_iso2022): Likewise.
1717
1718         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
1719         (integer) instead of list of <Lisp_Object>s (integers) as the
1720         format of code-point of a coded-charset.
1721         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
1722         (encode_builtin_char_1): New function; delete
1723         `split_builtin_char'.
1724         (charset_code_point): Return <int> instead of <Lisp_Object>.
1725         (Fsplit_char): Don't use `SPLIT_CHAR'.
1726
1727         * char-ucs.h (encode_builtin_char_1): New prototype; delete
1728         prototype for `split_builtin_char'.
1729         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
1730         (charset_code_point): Likewise.
1731         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
1732         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
1733
1734 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
1735
1736         * mule-charset.c (complex_vars_of_mule_charset): Don't define
1737         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
1738
1739 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
1740
1741         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
1742
1743         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
1744         (MAX_CHAR_OBS_94x94): Deleted.
1745
1746 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
1747
1748         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
1749
1750         * char-ucs.h (MAX_CHAR_BMP): New macro.
1751
1752 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
1753
1754         * text-coding.c: Sync with r21-2-24.
1755
1756 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
1757
1758         * file-coding.c: Modify for UTF-2000.
1759
1760 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
1761
1762         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1763         to 0.13 (Takaida).
1764
1765 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
1766
1767         * mule-charset.c (split_builtin_char): Delete builtin support for
1768         `katakana-jisx0201'.
1769         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
1770         BMP area in builtin representation.
1771
1772         * char-ucs.h (MAKE_CHAR): Delete builtin support for
1773         `Vcharset_katakana_jisx0201'.
1774
1775 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
1776
1777         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
1778         (Qisolated): New variable.
1779         (Qinitial): New variable.
1780         (Qmedial): New variable.
1781         (Qfinal): New variable.
1782         (Qvertical): New variable.
1783         (Qsmall): New variable.
1784         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
1785         `Qvertical' and `Qsmall'.
1786         (Qmojikyo_pj_[1 .. 21]): New variable.
1787         (syms_of_mule_charset): Add new symbols `isolated', `initial',
1788         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
1789         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
1790         .. 21]'.
1791
1792 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
1793
1794         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
1795         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
1796         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
1797
1798 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
1799
1800         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
1801         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
1802         BMP.
1803         (Qjapanese_jisx0208_1990): New variable.
1804         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
1805         (complex_vars_of_mule_charset): Add new coded-charset
1806         `japanese-jisx0208-1990'.
1807
1808         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
1809         (MIN_CHAR_JIS_X0208_1990): New macro.
1810         (MAX_CHAR_JIS_X0208_1990): New macro.
1811
1812 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1813
1814         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
1815         coded-charset is not found.
1816
1817 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1818
1819         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
1820         (Fdefine_char): Use `Fmake_char'.
1821
1822 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1823
1824         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
1825         (Vcharset_hiragana_jisx0208): Deleted.
1826         (Vcharset_katakana_jisx0208): Deleted.
1827         (Qideograph_daikanwa): New variable.
1828         (Qhiragana_jisx0208): Deleted.
1829         (Qkatakana_jisx0208): Deleted.
1830         (split_builtin_char): Split `ideograph-daikanwa'.
1831         (Fsplit_char): New implementation for UTF-2000.
1832         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
1833         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
1834         (complex_vars_of_mule_charset): Add new coded-charset
1835         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
1836         `katakana-jisx0208'.
1837
1838         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
1839         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
1840         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
1841         (MIN_CHAR_DAIKANWA): New macro.
1842         (MAX_CHAR_DAIKANWA): New macro.
1843
1844 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1845
1846         * data.c (Fstring_to_number): Don't recognize floating point if
1847         base is not 10.
1848
1849 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1850
1851         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
1852
1853 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1854
1855         * mule-charset.c (Qsquare): New variable.
1856         (to_char_code): Add `Qsquare'.
1857         (syms_of_mule_charset): Add new symbol `square'.
1858
1859 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1860
1861         * mule-charset.c (Qcircle): New variable.
1862         (to_char_code): Add `Qcircle'.
1863         (syms_of_mule_charset): Add new symbol `circle'.
1864
1865 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1866
1867         * mule-charset.c (Qfont): New variable.
1868         (to_char_code): Add `Qfont'.
1869         (syms_of_mule_charset): Add new symbol `font'.
1870
1871 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1872
1873         * mule-charset.c (Qsub): New variable.
1874         (to_char_code): Add `Qsub'.
1875         (syms_of_mule_charset): Add new symbol `sub'.
1876
1877 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1878
1879         * mule-charset.c (Fput_char_attribute): Convert each element of
1880         VALUE to GL position if ATTRIBUTE is a GR-set,
1881
1882 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1883
1884         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
1885         coded-charset is a GR-set.
1886
1887 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1888
1889         * mule-charset.c (Fput_char_attribute): Check each element of
1890         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
1891
1892 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1893
1894         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
1895         UTF-2000.
1896         (Qethiopic_ucs): New variable in UTF-2000.
1897         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
1898         (complex_vars_of_mule_charset): Add new coded-charset
1899         `ethiopic-ucs' in UTF-2000.
1900
1901         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
1902         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
1903         9)'.
1904         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
1905         10)'.
1906         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
1907
1908 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
1909
1910         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
1911         `ascii'.
1912
1913 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1914
1915         * mule-charset.c (Vcharacter_variant_table): New variable.
1916         (Q_ucs): New variable.
1917         (Fchar_variants): New function.
1918         (Fput_char_attribute): Register `->ucs' value to
1919         `Vcharacter_variant_table'.
1920         (syms_of_mule_charset): Add new function `char-variants' and new
1921         symbol `->ucs'.
1922         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
1923
1924 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1925
1926         * mule-charset.c (get_char_code_table): Allow negative character
1927         code.
1928         (put_char_code_table): Likewise.
1929         (Vcharacter_composition_table): New variable.
1930         (Q_decomposition): New variable.
1931         (Qwide): New variable.
1932         (Qnarrow): New variable.
1933         (Qcompat): New variable.
1934         (QnoBreak): New variable.
1935         (Qsuper): New variable.
1936         (Qfraction): New variable.
1937         (to_char_code): New function.
1938         (Fget_composite_char): New function.
1939         (Fput_char_attribute): Register `->decomposition' value to
1940         `Vcharacter_composition_table'.
1941         (syms_of_mule_charset): Add new function `get-composite-char', new
1942         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
1943         `super' and `fraction'.
1944         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
1945
1946 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1947
1948         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
1949         character; copy the return value.
1950
1951 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
1952
1953         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
1954
1955         * mule-charset.c (range_charset_code_point): Must use make_int.
1956         (split_builtin_char): New function.
1957
1958 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
1959
1960         * mule-charset.c (char_byte_table): Change name from
1961         "char-code-table" to "char-byte-table".
1962         (mark_char_code_table): New function.
1963         (char_code_table_equal): New function.
1964         (char_code_table_hash): New function.
1965         (char_code_table_description): New constant.
1966         (char_code_table): New type.
1967         (make_char_code_table): New function.
1968         (copy_char_code_table): New function.
1969         (get_char_code_table): Modify for `char_code_table' type.
1970         (put_char_code_table): Likewise.
1971         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
1972         (Kashiwara).
1973
1974         * char-ucs.h (char_code_table): New type.
1975         (XCHAR_CODE_TABLE): New macro.
1976         (XSETCHAR_CODE_TABLE): New macro.
1977         (CHAR_CODE_TABLE_P): New macro.
1978         (GC_CHAR_CODE_TABLE_P): New macro.
1979         (struct Lisp_Char_Code_Table): New structure.
1980
1981 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
1982
1983         * mule-charset.c (Fmake_charset): Setup byte_offset for
1984         {94|96}^n-set.
1985
1986 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1987
1988         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
1989         character.
1990
1991 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
1992
1993         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
1994         is found.
1995
1996 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
1997
1998         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
1999         charset, it is regarded as a charset.
2000         (put_char_attribute): New function in UTF-2000.
2001         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
2002         charset, mapping-table of the charset is modified.
2003         (Fdefine_char): New function in UTF-2000.
2004         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
2005         `Fput_char_attribute'.
2006         (syms_of_mule_charset): Add new function `define-char' and new
2007         symbol `ucs' in UTF-2000.
2008         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
2009
2010 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2011
2012         * mule-charset.c (Fcharset_name): Define `byte_offset' in
2013         non-UTF-2000 configuration.
2014
2015 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2016
2017         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
2018         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
2019
2020         * mule-charset.c (mark_charset): `cs->encoding_table' has been
2021         deleted.
2022         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
2023         (Fset_charset_mapping_table): Likewise.
2024
2025         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
2026         (CHARSET_ENCODING_TABLE): Delete.
2027         (XCHARSET_ENCODING_TABLE): Delete.
2028         (charset_code_point): New interface.
2029
2030 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2031
2032         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
2033         instead of `charset_get_byte1' and `charset_get_byte2'.
2034
2035         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
2036         (charset_get_byte2): Deleted.
2037
2038 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2039
2040         * char-ucs.h (SPLIT_CHAR): New inline function.
2041         (breakup_char_1): Use `SPLIT_CHAR'.
2042
2043         * mule-charset.c (range_charset_code_point): New function.
2044         (charset_code_point): New function.
2045
2046         * char-ucs.h (range_charset_code_point): New interface.
2047         (breakup_char_1): Use `range_charset_code_point'.
2048
2049 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2050
2051         * mule-charset.c (Fmake_charset): Delete unused local variable
2052         `code_offset'.
2053
2054         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
2055         (breakup_char_1): Find a charset and code-point in
2056         `Vcharacter_attribute_table'.
2057
2058 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2059
2060         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2061         to 0.10 (Yao).
2062
2063 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
2064
2065         * mule-charset.c (Vcharacter_attribute_table): New variable.
2066         (Fchar_attribute_alist): New function.
2067         (Fget_char_attribute): New function.
2068         (Fput_char_attribute): New function.
2069         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
2070         too.
2071         (syms_of_mule_charset): Add new function `char-attribute-alist',
2072         `get-char-attribute' and `put-char-attribute'.
2073         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
2074
2075 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
2076
2077         * mule-charset.c (Fmake_charset): Just use
2078         `get_unallocated_leading_byte'.
2079
2080         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
2081         sets; don't use final-byte based number for private sets.
2082
2083 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2084
2085         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
2086         integer.
2087
2088 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2089
2090         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2091         to 0.9.
2092
2093 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2094
2095         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
2096         of `CHAR_LEADING_BYTE' in UTF-2000.
2097
2098         * insdel.c (find_charsets_in_bufbyte_string): Use
2099         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2100         (find_charsets_in_emchar_string): Likewise.
2101
2102         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
2103         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2104
2105         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
2106         (CHAR_CHARSET_ID): New macro.
2107
2108 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2109
2110         * chartab.c (get_char_table): Don't use type `Charset_ID' for
2111         charset-id - MIN_LEADING_BYTE.
2112         (put_char_table): Likewise.
2113
2114 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2115
2116         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
2117         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
2118         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
2119         (CHARSET_ID_OFFSET): New macro.
2120         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
2121         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
2122         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
2123         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2124         4).
2125         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2126         5).
2127         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
2128         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
2129         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
2130         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
2131         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
2132
2133 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2134
2135         * mule-charset.c (next_allocated_leading_byte): New variable in
2136         UTF-2000.
2137         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
2138         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
2139         (get_unallocated_leading_byte): Simply use
2140         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
2141         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
2142         UTF-2000.
2143
2144         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
2145         (MAX_LEADING_BYTE_PRIVATE): New macro.
2146         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
2147         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
2148
2149 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2150
2151         * mule-charset.c (Fmake_charset): Allocate final-byte based
2152         charset-id for 94-set, 96-set and 94x94-set.
2153
2154 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2155
2156         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
2157         ambiguous `else'.
2158         (Fmake_charset): Likewise.
2159         (complex_vars_of_mule_charset): Modify the font registry of
2160         `ucs-bmp' not to match `Ethiopic-Unicode'.
2161
2162 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2163
2164         * mule-charset.c (complex_vars_of_mule_charset): Add font
2165         registory of `ucs-bmp'.
2166
2167 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2168
2169         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
2170         coded-charsets in `default-coded-charset-priority-list' when
2171         breaking up a character.
2172
2173         * mule-charset.c (Vcharset_latin_viscii): New variable.
2174         (Qlatin_viscii): New variable.
2175         (make_charset): Don't use `decoding_table'.
2176         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
2177         byte_offset.
2178         (Fset_charset_mapping_table): New implementation.
2179         (syms_of_mule_charset): Add new symbol `latin-viscii'.
2180         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
2181         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
2182         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
2183         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
2184         charset `latin_viscii'.
2185
2186         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
2187         (CHARSET_TYPE_94X94): Change to 1 from 2.
2188         (CHARSET_TYPE_96): Change to 2 from 1.
2189         (CHARSET_TYPE_128): New macro.
2190         (CHARSET_TYPE_128X128): Change to 5 from 4.
2191         (CHARSET_TYPE_256): New macro.
2192         (CHARSET_TYPE_256X256): Change to 7 from 5.
2193         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
2194
2195 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2196
2197         * text-coding.c (char_encode_shift_jis): Refer
2198         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
2199         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
2200
2201         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
2202         (char_byte_table_equal): New function in UTF-2000.
2203         (char_byte_table_hash): New function in UTF-2000.
2204         (char_byte_table_description): New constant in UTF-2000.
2205         (char_byte_table): New type in UTF-2000.
2206         (make_char_byte_table): New function in UTF-2000.
2207         (copy_char_byte_table): New function in UTF-2000.
2208         (make_char_code_table): New macro in UTF-2000.
2209         (get_char_code_table): New function in UTF-2000.
2210         (put_char_code_table): New function in UTF-2000.
2211         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2212         (charset_description): Add setting in UTF-2000.
2213         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
2214         `CHARSET_TO_BYTE1_TABLE(cs)'.
2215         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
2216         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
2217         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
2218         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
2219         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
2220         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
2221         `CHARSET_TO_BYTE2_TABLE(cs)'.
2222
2223         * char-ucs.h (char_byte_table): New type.
2224         (XCHAR_BYTE_TABLE): New macro.
2225         (XSETCHAR_BYTE_TABLE): New macro.
2226         (CHAR_BYTE_TABLE_P): New macro.
2227         (GC_CHAR_BYTE_TABLE_P): New macro.
2228         (struct Lisp_Char_Byte_Table): New structure.
2229         (get_char_code_table): New interface.
2230         (Emchar_to_byte_table): Deleted.
2231         (get_byte_from_character_table): Deleted.
2232         (struct Lisp_Charset): Add `encoding_table'; delete
2233         `to_byte1_table' and `to_byte2_table'.
2234         (CHARSET_ENCODING_TABLE): New macro.
2235         (CHARSET_TO_BYTE1_TABLE): Deleted.
2236         (CHARSET_TO_BYTE2_TABLE): Deleted.
2237         (XCHARSET_ENCODING_TABLE): New macro.
2238         (XCHARSET_TO_BYTE1_TABLE): Deleted.
2239         (XCHARSET_TO_BYTE2_TABLE): Deleted.
2240
2241 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2242
2243         * mule-charset.c (syms_of_mule_charset): Delete charset alias
2244         `vietnamese-viscii-*'.
2245
2246 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2247
2248         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
2249         (Qvietnamese_viscii_upper): New variable.
2250         (Fdefine_charset_alias): New function.
2251         (syms_of_mule_charset): Add new function `define-charset-alias'.
2252         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
2253         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
2254         `latin-viscii-*'.
2255
2256 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
2257
2258         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
2259         (MAX_CHAR_OBS_94x94): New macro.
2260         (breakup_char_1): Support obsolete XEmacs-UCS private code space
2261         for 94x94 sets.
2262
2263         * mule-charset.c (put_byte_from_character_table): Change unit size
2264         from 128 to 256.
2265         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
2266         not defined.
2267         (Fmake_reverse_direction_charset): Modify dummy argument of
2268         `make_charset' for non-UTF-2000 environment.
2269
2270 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2271
2272         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
2273
2274         * mule-charset.c (destroy_byte_from_character_table): New macro.
2275         (latin_jisx0201_to_ucs): Deleted.
2276         (latin_iso8859_2_to_ucs): Deleted.
2277         (latin_iso8859_3_to_ucs): Deleted.
2278         (latin_iso8859_4_to_ucs): Deleted.
2279         (latin_iso8859_9_to_ucs): Deleted.
2280         (latin_viscii_lower_to_ucs): Deleted.
2281         (latin_viscii_upper_to_ucs): Deleted.
2282         (mark_charset): Mark `cs->decoding_table'.
2283         (Fcharset_mapping_table): Fix DOC-string.
2284         (Fset_charset_mapping_table): New function.
2285         (syms_of_mule_charset): Add nwe function
2286         `set-charset-mapping-table'.
2287         (complex_vars_of_mule_charset): Don't setup and use
2288         `latin_*_to_ucs'.
2289
2290 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2291
2292         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
2293         charset.
2294
2295 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2296
2297         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
2298         (Vcharset_katakana_jisx0208): New variable.
2299         (Qhiragana_jisx0208): New variable.
2300         (Qkatakana_jisx0208): New variable.
2301         (make_charset): Add new argument `byte_offset'.
2302         (charset_get_byte1): Modify for new coded-charset definition; use
2303         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
2304         `XCHARSET_BYTE_OFFSET'.
2305         (Fmake_charset): Modify for `make_charset'.
2306         (Fmake_reverse_direction_charset): Likewise.
2307         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
2308         `katakana-jisx0208'.
2309         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
2310         `.'  in font registry of charset `katakana-jisx0201',
2311         `latin-jisx0201', `vietnamese-viscii-lower' and
2312         `vietnamese-viscii-upper'; modify DOC-string of charset
2313         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
2314         registry of charset `japanese-jisx0208' not to use font for JIS
2315         X0208:1990; add new charset `hiragana-jisx0208' and
2316         `katakana-jisx0208'.
2317
2318         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
2319         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
2320         (struct Lisp_Charset): Add `byte_offset'.
2321         (CHARSET_BYTE_OFFSET): New macro.
2322         (XCHARSET_UCS_MIN): New macro.
2323         (XCHARSET_UCS_MAX): New macro.
2324         (XCHARSET_CODE_OFFSET): New macro.
2325         (XCHARSET_BYTE_OFFSET): New macro.
2326         (MIN_CHAR_HIRAGANA): New macro.
2327         (MAX_CHAR_HIRAGANA): New macro.
2328         (MIN_CHAR_KATAKANA): New macro.
2329         (MAX_CHAR_KATAKANA): New macro.
2330         (MAKE_CHAR): Modify for new coded-charset definition; use
2331         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
2332         `XCHARSET_BYTE_OFFSET'.
2333
2334 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2335
2336         * mule-charset.c (CHAR96): Deleted.
2337         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
2338         <Lisp_Object>.
2339         (latin_iso8859_2_to_ucs): Likewise.
2340         (latin_iso8859_3_to_ucs): Likewise.
2341         (latin_iso8859_4_to_ucs): Likewise.
2342         (latin_iso8859_9_to_ucs): Likewise.
2343         (latin_viscii_lower_to_ucs): Likewise.
2344         (latin_viscii_upper_to_ucs): Likewise.
2345         (latin_tcvn5712_to_ucs): Commented out.
2346         (make_charset): Change type of argument `decoding_table' from
2347         <Emchar*> to <Lisp_Object> [vector of characters].
2348         (Fmake_charset): Modify for `make_charset'.
2349         (Fmake_reverse_direction_charset): Likewise.
2350         (Fcharset_mapping_table): New function in UTF-2000.
2351         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
2352         UTF-2000.
2353         (complex_vars_of_mule_charset): Modify for type change of
2354         `*_to_ucs'; modify for `make_charset'.
2355
2356         * char-ucs.h (struct Lisp_Charset): Change type of
2357         `decoding_table' from <Emchar*> to <Lisp_Object>.
2358         (MAKE_CHAR): Modify for new specification of `decoding_table'.
2359
2360 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
2361
2362         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
2363         error with non-UTF-2000-Mule.
2364
2365 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
2366
2367         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
2368         in lisp again].
2369         (Vcharset_chinese_cns11643_4): Likewise.
2370         (Vcharset_chinese_cns11643_5): Likewise.
2371         (Vcharset_chinese_cns11643_6): Likewise.
2372         (Vcharset_chinese_cns11643_7): Likewise.
2373         (Qchinese_cns11643_3): Likewise.
2374         (Qchinese_cns11643_4): Likewise.
2375         (Qchinese_cns11643_5): Likewise.
2376         (Qchinese_cns11643_6): Likewise.
2377         (Qchinese_cns11643_7): Likewise.
2378         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
2379         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
2380         and `chinese-cns11643-7' to lisp/mule/chinese.el.
2381         (complex_vars_of_mule_charset): Likewise.
2382
2383 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2384
2385         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
2386         96-set.
2387         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
2388         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
2389
2390 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
2391
2392         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
2393         0xFF60.
2394         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
2395         (breakup_char_1): Likewise.
2396
2397         * text-coding.c (char_encode_iso2022): Keep designated charsets if
2398         one of them includes the specified character.
2399
2400 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
2401
2402         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
2403
2404 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
2405
2406         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
2407
2408 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
2409
2410         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
2411         definition for non-UTF-2000 Mule.
2412         (latin_iso8859_3_to_ucs): Likewise.
2413         (latin_iso8859_4_to_ucs): Likewise.
2414         (latin_iso8859_9_to_ucs): Likewise.
2415         (latin_jisx0201_to_ucs): Likewise.
2416         (MIN_CHAR_THAI): Likewise.
2417         (MAX_CHAR_THAI): Likewise.
2418         (MIN_CHAR_GREEK): Likewise.
2419         (MAX_CHAR_GREEK): Likewise.
2420         (MIN_CHAR_HEBREW): Likewise.
2421         (MAX_CHAR_HEBREW): Likewise.
2422         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
2423         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
2424         (MIN_CHAR_CYRILLIC): Likewise.
2425         (MAX_CHAR_CYRILLIC): Likewise.
2426
2427 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
2428
2429         * char-ucs.h (breakup_char_1): Use
2430         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
2431         thai-tis620 and katakana-jisx0201 area.
2432
2433 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2434
2435         * char-ucs.h (breakup_char_1): Use
2436         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
2437         area.
2438
2439         * text-coding.c (reset_encoding_stream): Fixed.
2440         (char_encode_ucs4): Delete `& 255'.
2441
2442         * char-ucs.h (breakup_char_1): Use
2443         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
2444
2445 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2446
2447         * file-coding.c (Fmake_coding_system): Don't set up
2448         `codesys->fixed.size'.
2449         (encode_coding_no_conversion): Don't refer
2450         `str->codesys->fixed.size'.
2451
2452 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2453
2454         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
2455         (latin_a_char_to_byte1): Deleted.
2456         (latin_a_char_to_byte2): Deleted.
2457
2458 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2459
2460         * mule-charset.c (make_charset): Add new argument `ucs_min',
2461         `ucs_max' and `code_offset'.
2462         (charset_get_byte1): New implementation [delete specific charset
2463         depended implementations].
2464         (Fmake_charset): Modify for `make_charset'.
2465         (Fmake_reverse_direction_charset): Likewise.
2466         (complex_vars_of_mule_charset): Likewise.
2467
2468         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
2469         `code_offset'.
2470         (CHARSET_UCS_MIN): New macro.
2471         (CHARSET_UCS_MAX): New macro.
2472         (CHARSET_CODE_OFFSET): New macro.
2473         (MAKE_CHAR): Delete charset depended definitions [except
2474         katakana-jisx0201].
2475
2476 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
2477
2478         * char-ucs.h (breakup_char_1): Use
2479         `Vdefault_coded_charset_priority_list' for C0-Controls,
2480         Basic-Latin, C1-Controls and Latin-1-Supplement area.
2481
2482 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2483
2484         * char-ucs.h (charset_get_byte1): New function.
2485         (XCHARSET_GET_BYTE1): Deleted.
2486         (charset_get_byte2): New function.
2487         (XCHARSET_GET_BYTE2): Deleted.
2488         (Vdefault_coded_charset_priority_list): New external variable.
2489         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
2490         `Vdefault_preferred_coded_charset_list'.
2491
2492         * mule-charset.c (charset_get_byte1): New function.
2493         (charset_get_byte2): New function.
2494         (Vdefault_coded_charset_priority_list): New variable.
2495         (vars_of_mule_charset): Add new variable
2496         `default-coded-charset-priority-list'.
2497
2498 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2499
2500         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
2501         (XCHARSET_GET_BYTE2): New inline function.
2502         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
2503         `XCHARSET_GET_BYTE2'.
2504
2505 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2506
2507         * mule-charset.c (make_charset): Initialize
2508         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
2509         NULL if table is not defined.
2510
2511 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2512
2513         * text-coding.c (char_encode_shift_jis): Use
2514         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
2515         `ucs_to_latin_jisx0201'.
2516
2517         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
2518         (ucs_to_latin_iso8859_2): Deleted.
2519         (ucs_to_latin_iso8859_3): Deleted.
2520         (ucs_to_latin_iso8859_4): Deleted.
2521         (ucs_to_latin_iso8859_9): Deleted.
2522         (ucs_to_latin_viscii_lower): Deleted.
2523         (ucs_to_latin_viscii_upper): Deleted.
2524         (ucs_to_latin_tcvn5712): Deleted.
2525         (make_charset): Add new argument `decoding_table'; set up
2526         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
2527         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
2528         `decoding_table' is defined in UTF-2000.
2529         (Fmake_charset): Modify for `make_charset'.
2530         (Fmake_reverse_direction_charset): Likewise.
2531         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
2532         and `GENERATE_96_SET'.
2533
2534         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
2535         (ucs_to_latin_jisx0201): Deleted.
2536         (latin_iso8859_2_to_ucs): Deleted.
2537         (ucs_to_latin_iso8859_2): Deleted.
2538         (latin_iso8859_3_to_ucs): Deleted.
2539         (ucs_to_latin_iso8859_3): Deleted.
2540         (latin_iso8859_4_to_ucs): Deleted.
2541         (ucs_to_latin_iso8859_4): Deleted.
2542         (latin_iso8859_9_to_ucs): Deleted.
2543         (ucs_to_latin_iso8859_9): Deleted.
2544         (latin_viscii_lower_to_ucs): Deleted.
2545         (ucs_to_latin_viscii_lower): Deleted.
2546         (latin_viscii_upper_to_ucs): Deleted.
2547         (ucs_to_latin_viscii_upper): Deleted.
2548         (struct Lisp_Charset): Renamed `encoding_table' to
2549         `to_byte1_table'; add `to_byte2_table'.
2550         (CHARSET_DECODING_TABLE): New macro.
2551         (CHARSET_TO_BYTE1_TABLE): New macro.
2552         (CHARSET_TO_BYTE2_TABLE): New macro.
2553         (XCHARSET_DECODING_TABLE): New macro.
2554         (XCHARSET_TO_BYTE1_TABLE): New macro.
2555         (XCHARSET_TO_BYTE2_TABLE): New macro.
2556         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
2557         tables.
2558         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
2559         don't use `ucs_to_*' tables.
2560
2561 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2562
2563         * text-coding.c (Fmake_coding_system): Don't set up
2564         `codesys->fixed.size'.
2565         (encode_coding_no_conversion): Use `if' instead of `switch'.
2566
2567         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
2568
2569 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2570
2571         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
2572         (Fmake_charset): Modify for `make_charset'.
2573         (Fmake_reverse_direction_charset): Likewise.
2574         (complex_vars_of_mule_charset): Likewise.
2575
2576 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2577
2578         * text-coding.c (char_encode_shift_jis): Use table
2579         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
2580
2581 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2582
2583         * text-coding.c (text_encode_generic): Use `if' instead of
2584         `switch'.
2585         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
2586         decode JIS-Latin.
2587
2588 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2589
2590         * text-coding.c (encode_coding_sjis): Deleted.
2591         (char_encode_shift_jis): New function.
2592         (char_finish_shift_jis): New function.
2593         (reset_encoding_stream): Set up `encode_char' and `finish' for
2594         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
2595         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
2596         (char_encode_utf8): Treat `eol_type'.
2597
2598 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2599
2600         * file-coding.c (decode_coding_iso2022): Use
2601         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
2602
2603 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2604
2605         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2606         to 0.7 (Hirano).
2607
2608 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2609
2610         * char-lb.h (CHAR_COLUMNS): New macro.
2611
2612 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2613
2614         * text-coding.c (char_encode_ucs4): New function.
2615         (char_finish_ucs4): New function.
2616         (encode_coding_ucs4): Deleted.
2617         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
2618         (text_encode_generic): Delete local variable `charset' and `half'.
2619         (ucs_to_mule_table): Deleted.
2620         (mule_to_ucs_table): Deleted.
2621         (Fset_ucs_char): Deleted.
2622         (ucs_to_char): Deleted.
2623         (Fucs_char): Deleted.
2624         (Fset_char_ucs): Deleted.
2625         (Fchar_ucs): Deleted.
2626         (decode_ucs4): Deleted.
2627         (mule_char_to_ucs4): Deleted.
2628         (encode_ucs4): Deleted.
2629         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
2630         (decode_coding_utf8): Likewise.
2631         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
2632         (char_encode_iso2022): Fixed.
2633         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
2634         `Fset_char_ucs' and `Fchar_ucs'.
2635         (complex_vars_of_file_coding): Don't initialize
2636         `ucs_to_mule_table'.
2637
2638         * objects-tty.c (tty_initialize_font_instance): Don't use
2639         `XCHARSET_COLUMNS'.
2640
2641         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
2642         UTF-2000.
2643
2644         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
2645         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
2646
2647         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
2648         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
2649         (emchar_string_displayed_columns): Likewise.
2650
2651         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
2652         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
2653         (string_column_at_point): Likewise.
2654         (Fmove_to_column): Likewise.
2655
2656         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
2657         `encoding_table' and `decoding_table'.
2658         (CHARSET_REP_BYTES): Deleted.
2659         (XCHARSET_REP_BYTES): Deleted.
2660         (XCHARSET_COLUMNS): Deleted.
2661         (CHAR_COLUMNS): New macro.
2662         (lookup_composite_char): Deleted unconditionally.
2663         (composite_char_string): Likewise.
2664
2665 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2666
2667         * char-ucs.h (Emchar_to_byte_table): New type.
2668         (get_byte_from_character_table): New function interface.
2669         (Vcharset_latin_jisx0201): New variable.
2670         (latin_jisx0201_to_ucs): New variable.
2671         (ucs_to_latin_jisx0201): New variable.
2672         (Vcharset_latin_iso8859_2): New variable.
2673         (latin_iso8859_2_to_ucs): New variable.
2674         (ucs_to_latin_iso8859_2): New variable.
2675         (Vcharset_latin_iso8859_3): New variable.
2676         (latin_iso8859_3_to_ucs): New variable.
2677         (ucs_to_latin_iso8859_3): New variable.
2678         (Vcharset_latin_iso8859_4): New variable.
2679         (latin_iso8859_4_to_ucs): New variable.
2680         (ucs_to_latin_iso8859_4): New variable.
2681         (Vcharset_latin_iso8859_9): New variable.
2682         (latin_iso8859_9_to_ucs): New variable.
2683         (ucs_to_latin_iso8859_9): New variable.
2684         (Vcharset_latin_viscii_lower): New variable.
2685         (latin_viscii_lower_to_ucs): New variable.
2686         (ucs_to_latin_viscii_lower): New variable.
2687         (Vcharset_latin_viscii_upper): New variable.
2688         (latin_viscii_upper_to_ucs): New variable.
2689         (ucs_to_latin_viscii_upper): New variable.
2690         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
2691         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
2692         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
2693         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
2694         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
2695         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
2696         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
2697         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
2698         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
2699         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
2700
2701         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
2702         (Vcharset_latin_viscii_upper): New variable.
2703         (make_byte_from_character_table): New function.
2704         (put_byte_from_character_table): New function.
2705         (get_byte_from_character_table): New function.
2706         (CHAR96): New macro.
2707         (ucs_to_latin_jisx0201): New variable.
2708         (latin_jisx0201_to_ucs): New variable.
2709         (ucs_to_latin_iso8859_2): New variable.
2710         (latin_iso8859_2_to_ucs): New variable.
2711         (ucs_to_latin_iso8859_3): New variable.
2712         (latin_iso8859_3_to_ucs): New variable.
2713         (ucs_to_latin_iso8859_4): New variable.
2714         (latin_iso8859_4_to_ucs): New variable.
2715         (ucs_to_latin_iso8859_9): New variable.
2716         (latin_iso8859_9_to_ucs): New variable.
2717         (ucs_to_latin_viscii_lower): New variable.
2718         (latin_viscii_lower_to_ucs): New variable.
2719         (ucs_to_latin_viscii_upper): New variable.
2720         (latin_viscii_upper_to_ucs): New variable.
2721         (ucs_to_latin_tcvn5712): New variable.
2722         (latin_tcvn5712_to_ucs): New variable.
2723         (Qlatin_viscii_lower): New variable.
2724         (Qlatin_viscii_upper): New variable.
2725         (syms_of_mule_charset): Set up new symbol
2726         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
2727         (complex_vars_of_mule_charset): Set up new charset
2728         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
2729         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
2730         `ucs_to_<CHARSET>' tables.
2731
2732 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
2733
2734         * text-coding.c: New file.
2735
2736 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2737
2738         * mule-charset.c (Fmake_char): Fix problem of 256-set.
2739
2740         * char-ucs.h (Vcharset_ucs_bmp): New variable.
2741         (MAKE_CHAR): Modify for `ucs-bmp'.
2742         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
2743         non-MULE characters of BMP.
2744
2745 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
2746
2747         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2748         to 0.6.
2749
2750 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2751
2752         * lstream.h:
2753         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
2754         - Include character.h for `CHAR_ASCII_P'.
2755
2756         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
2757
2758         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
2759         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
2760
2761         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
2762         (BYTE_C0_P): Likewise.
2763         (BYTE_C1_P): Likewise.
2764         (Lstream_get_emchar_1): Likewise.
2765         (Lstream_fput_emchar): Likewise.
2766         (Lstream_funget_emchar): Likewise.
2767         (copy_internal_to_external): Likewise.
2768         (copy_external_to_internal): Likewise.
2769
2770         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
2771         (BYTE_C0_P): Likewise.
2772         (BYTE_C1_P): Likewise.
2773         (Lstream_get_emchar_1): Likewise.
2774         (Lstream_fput_emchar): Likewise.
2775         (Lstream_funget_emchar): Likewise.
2776         (copy_internal_to_external): Likewise.
2777         (copy_external_to_internal): Likewise.
2778
2779         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
2780         (REP_BYTES_BY_FIRST_BYTE): Likewise.
2781
2782         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
2783         (BYTE_ASCII_P): Moved to mb-1byte.h.
2784
2785 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2786
2787         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
2788
2789         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
2790         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
2791         (VALID_CHARPTR_P): Moved to mb-*byte.h.
2792         (VALIDATE_CHARPTR_BACKWARD): Likewise.
2793         (VALIDATE_CHARPTR_FORWARD): Likewise.
2794         (simple_charptr_emchar): Moved to mb-multibyte.h.
2795         (simple_set_charptr_emchar): Likewise.
2796         (simple_charptr_copy_char): Likewise.
2797         (non_ascii_charptr_emchar): Likewise.
2798         (non_ascii_set_charptr_emchar): Likewise.
2799         (non_ascii_charptr_copy_char): Likewise.
2800         (charptr_emchar): Moved to mb-*byte.h.
2801         (set_charptr_emchar): Likewise.
2802         (charptr_copy_char): Likewise.
2803
2804         * mb-1byte.h, mb-multibyte.h: New files.
2805
2806 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2807
2808         * mb-utf-8.h (MULTIBYTE): New macro.
2809         (MAX_EMCHAR_LEN): Moved from buffer.h.
2810         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
2811
2812         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
2813
2814         * mb-lb.h, multibyte.h: New files.
2815
2816         * char-1byte.h (Charset_ID): Moved from buffer.h.
2817         (MIN_LEADING_BYTE): Likewise.
2818         (LEADING_BYTE_ASCII): Likewise.
2819         (NUM_LEADING_BYTES): Likewise.
2820         (CHARSETP): Likewise.
2821         (CHARSET_BY_LEADING_BYTE): Likewise.
2822         (XCHARSET_LEADING_BYTE): Likewise.
2823         (XCHARSET_GRAPHIC): Likewise.
2824         (XCHARSET_COLUMNS): Likewise.
2825         (XCHARSET_DIMENSION): Likewise.
2826         (CHAR_CHARSET): Likewise.
2827         (CHAR_LEADING_BYTE): Likewise.
2828         (BREAKUP_CHAR): Likewise.
2829         (Vcharset_ascii): Likewise.
2830
2831         * buffer.h: Include multibyte.h unconditionally.
2832         (VALID_CHARPTR_P): Moved to multibyte.h.
2833         (ASSERT_VALID_CHARPTR): Likewise.
2834         (REAL_INC_CHARPTR): Likewise.
2835         (REAL_INC_CHARBYTIND): Likewise.
2836         (REAL_DEC_CHARPTR): Likewise.
2837         (INC_CHARPTR): Likewise.
2838         (INC_CHARBYTIND): Likewise.
2839         (DEC_CHARPTR): Likewise.
2840         (VALIDATE_CHARPTR_BACKWARD): Likewise.
2841         (VALIDATE_CHARPTR_FORWARD): Likewise.
2842         (charptr_n_addr): Likewise.
2843         (MAX_EMCHAR_LEN): Moved to mb-*.h.
2844         (simple_charptr_emchar): Moved to multibyte.h.
2845         (simple_set_charptr_emchar): Likewise.
2846         (simple_charptr_copy_char): Likewise.
2847         (non_ascii_charptr_emchar): Likewise.
2848         (non_ascii_set_charptr_emchar): Likewise.
2849         (non_ascii_charptr_copy_char): Likewise.
2850         (charptr_emchar): Likewise.
2851         (set_charptr_emchar): Likewise.
2852         (charptr_copy_char): Likewise.
2853         (charptr_emchar_n): Likewise.
2854         (Charset_ID): Moved to char-1byte.h.
2855         (Vcharset_ascii): Likewise.
2856         (CHAR_CHARSET): Likewise.
2857         (CHAR_LEADING_BYTE): Likewise.
2858         (LEADING_BYTE_ASCII): Likewise.
2859         (NUM_LEADING_BYTES): Likewise.
2860         (MIN_LEADING_BYTE): Likewise.
2861         (CHARSETP): Likewise.
2862         (CHARSET_BY_LEADING_BYTE): Likewise.
2863         (XCHARSET_LEADING_BYTE): Likewise.
2864         (XCHARSET_GRAPHIC): Likewise.
2865         (XCHARSET_COLUMNS): Likewise.
2866         (XCHARSET_DIMENSION): Likewise.
2867         (BREAKUP_CHAR): Likewise.
2868
2869 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2870
2871         * character.h: Add document about interface for characters.
2872
2873         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
2874         (MAKE_CHAR): Delete comment about
2875         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
2876         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
2877         (BREAKUP_CHAR): Modify name of arguments.
2878         (CHAR_CHARSET): Modify name of argument.
2879
2880         * buffer.h: Delete document about Emchar accessors.
2881
2882 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2883
2884         * character.h (CHAR_INTP): Moved from buffer.h
2885         (CHAR_OR_CHAR_INTP): Likewise.
2886         (XCHAR_OR_CHAR_INT): Likewise.
2887         (CHECK_CHAR_COERCE_INT): Likewise.
2888
2889         * buffer.h (CHAR_INTP): Moved to character.h
2890         (CHAR_OR_CHAR_INTP): Likewise.
2891         (XCHAR_OR_CHAR_INT): Likewise.
2892         (CHECK_CHAR_COERCE_INT): Likewise.
2893
2894 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2895
2896         * character.h:
2897         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
2898         - Include char-1byte.h, char-lb.h or char-ucs.h.
2899
2900         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
2901
2902         * buffer.h: Include character unconditionally.
2903         (valid_char_p): Moved to char-*.h.
2904         (non_ascii_valid_char_p): Moved to char-lb.h.
2905
2906         * char-1byte.h, char-lb.h, char-ucs.h: New files.
2907
2908 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2909
2910         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
2911         in UTF-2000 because it is not ported yet and not to use
2912         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
2913         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
2914         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
2915
2916         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
2917         (CHAR_ASCII_P): Moved from character.h.
2918
2919         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
2920         (CHAR_ASCII_P): Likewise.
2921         (CHAR_FIELD1_MASK): Deleted.
2922         (CHAR_FIELD2_MASK): Deleted.
2923         (CHAR_FIELD3_MASK): Deleted.
2924         (MAX_CHAR_BASIC_LATIN): New macro.
2925         (CHAR_FIELD1): Deleted.
2926         (CHAR_FIELD2_INTERNAL): Deleted.
2927         (CHAR_FIELD3_INTERNAL): Deleted.
2928         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
2929         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
2930         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
2931         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
2932         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
2933         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
2934         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
2935         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
2936         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
2937         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
2938         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
2939         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
2940         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
2941         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
2942         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
2943         (MIN_CHAR_COMPOSITION): Deleted.
2944         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
2945         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
2946
2947 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
2948
2949         * buffer.h: Include mb-utf-8.h in UTF-2000.
2950
2951         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
2952
2953         * mb-utf-8.h: New file.
2954
2955 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
2956
2957         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
2958         instead of `int'.
2959
2960         * mule-charset.h, buffer.h (Charset_ID): New type.
2961
2962 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
2963
2964         * mule-canna.c (c2mu): Use `MAKE_CHAR',
2965         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
2966         instead of `MULE_CHAR_PRIVATE_OFFSET',
2967         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
2968         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
2969         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
2970
2971         * character.h (Vcharset_japanese_jisx0212): New variable
2972         definition.
2973
2974 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
2975
2976         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
2977         (charset_by_attributes): Delete array about direction.
2978         (latin_a_char_to_charset): New variable in UTF-2000.
2979         (latin_a_char_to_byte1): New variable in UTF-2000.
2980         (latin_a_char_to_byte2): New variable in UTF-2000.
2981         (Qucs_bmp): New variable.
2982         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
2983         `Bufbyte'.
2984         (next_allocated_2_byte_leading_byte): Likewise.
2985         (non_ascii_set_charptr_emchar): Likewise.
2986         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
2987         `CHARSET_TYPE_256X256' in UTF-2000; modify for
2988         `charset_by_attributes'.
2989         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
2990         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
2991         and `CHARSET_BY_LEADING_BYTE'.
2992         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
2993         `utf-2000-version' to `vars_of_mule_charset'.
2994         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
2995         define `leading-code-private-11' in UTF-2000; move setting of
2996         `utf-2000-version' from `syms_of_mule_charset'.
2997         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
2998         UTF-2000.
2999
3000         * character.h (Charset_ID): New type.
3001         (LEADING_BYTE_UCS_BMP): New macro.
3002         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
3003         (CHARSET_ID_OFFSET_94): New macro.
3004         (MIN_CHARSET_ID_PRIVATE_94): New macro.
3005         (MAX_CHARSET_ID_PRIVATE_94): New macro.
3006         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
3007         final-byte.
3008         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
3009         (LEADING_BYTE_LATIN_JISX0201): Likewise.
3010         (CHARSET_ID_OFFSET_96): New macro.
3011         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
3012         CHARSET_ID_OFFSET_96 and final-byte.
3013         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
3014         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
3015         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
3016         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
3017         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
3018         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
3019         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
3020         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
3021         (LEADING_BYTE_THAI_TIS620): Likewise.
3022         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
3023         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
3024         (CHARSET_ID_OFFSET_94x94): New macro.
3025         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
3026         CHARSET_ID_OFFSET_94x94 and final-byte.
3027         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
3028         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
3029         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
3030         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
3031         (LEADING_BYTE_CHINESE_GB2312): Likewise.
3032         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
3033         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
3034         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
3035         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
3036         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
3037         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
3038         (CHARSET_TYPE_128X128): New macro.
3039         (CHARSET_TYPE_256X256): New macro.
3040         (XCHARSET_PRIVATE_P): Delete unconditionally.
3041         (charset_by_attributes): Delete array about direction.
3042         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
3043         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
3044         (MIN_CHAR_94): New macro.
3045         (MAX_CHAR_94): New macro.
3046         (MIN_CHAR_96): New macro.
3047         (MAX_CHAR_96): New macro.
3048         (MIN_CHAR_94x94): New macro.
3049         (MAX_CHAR_94x94): New macro.
3050         (MIN_CHAR_96x96): New macro.
3051         (MAX_CHAR_96x96): New macro.
3052         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
3053         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3054         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
3055         - 32)'.
3056         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
3057         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
3058         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
3059         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
3060         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
3061         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
3062         `XCHARSET_LEADING_BYTE' to make code-point.
3063         (latin_a_char_to_charset): New variable.
3064         (latin_a_char_to_byte1): New variable.
3065         (latin_a_char_to_byte2): New variable.
3066         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
3067         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
3068         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
3069
3070         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
3071         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
3072         (find_charsets_in_emchar_string): Likewise.
3073         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
3074
3075         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
3076         `int'.
3077         (decode_coding_iso2022): Likewise.
3078
3079         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
3080         of `unsigned char'.
3081
3082         * redisplay.c (redisplay_text_width_emchar_string): Use
3083         `Charset_ID' instead of `unsigned char'.
3084         (redisplay_frame_text_width_string): Likewise.
3085
3086         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
3087         `unsigned char'.
3088
3089         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
3090         instead of `unsigned char'.
3091         (face_cachel_charset_font_metric_info): Likewise.
3092
3093         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
3094         (get_non_ascii_char_table_value): Likewise.
3095         (get_char_table): Likewise.
3096         (put_char_table): Likewise.
3097         (map_over_other_charset): Likewise.
3098         (map_char_table): Likewise.
3099
3100         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
3101         instead of `unsigned char'.
3102
3103 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
3104
3105         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
3106         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
3107
3108         * mule-charset.c (leading_code_private_11): Don't define in
3109         UTF-2000.
3110
3111         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
3112         in UTF-2000 because it is not ported yet and not to use
3113         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
3114
3115 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
3116
3117         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
3118
3119 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3120
3121         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
3122         in UTF-2000.
3123
3124         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
3125         of unsigned char to store leading-byte.
3126
3127         * chartab.c (get_non_ascii_char_table_value): Don't use
3128         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
3129
3130         * file-coding.c (encode_coding_big5): Delete bogus implementation
3131         in UTF2000.
3132
3133         * character.h (LEADING_BYTE_*): Delete definition for
3134         non-UTF-2000.
3135         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
3136         (LEADING_BYTE_PREFIX_P): Deleted.
3137         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
3138         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
3139         (BUFBYTE_LEADING_BYTE_P): Deleted.
3140         (CHARSET_PRIVATE_P): Deleted unconditionally.
3141         (rep_bytes_by_first_byte): Deleted unconditionally.
3142         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
3143         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
3144         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3145         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
3146         (CHAR_FIELD2): Deleted.
3147         (CHAR_FIELD3): Deleted.
3148         (MAKE_CHAR): Delete definition for non-UTF-2000.
3149         (BREAKUP_CHAR_1_UNSAFE): Deleted.
3150         (breakup_char_1): New implementation.
3151         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
3152         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
3153
3154 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3155
3156         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
3157         condition.
3158
3159 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3160
3161         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
3162         (CHARSET_PRIVATE_P): Likewise.
3163         (XCHARSET_PRIVATE_P): Likewise.
3164         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
3165
3166         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
3167         UTF2000.
3168         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
3169
3170 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3171
3172         * character.h (LEADING_BYTE_*): Changed in UTF2000.
3173         (NUM_LEADING_BYTES): Changed from 128 to 256.
3174         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3175         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
3176         UTF2000.
3177         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3178
3179         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
3180         UTF2000.
3181         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
3182         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
3183         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
3184         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
3185         (Qchinese_cns11643_3): New variable in UTF2000.
3186         (Qchinese_cns11643_4): New variable in UTF2000.
3187         (Qchinese_cns11643_5): New variable in UTF2000.
3188         (Qchinese_cns11643_6): New variable in UTF2000.
3189         (Qchinese_cns11643_7): New variable in UTF2000.
3190         (syms_of_mule_charset): Define `chinese-cns11643-3',
3191         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3192         and `chinese-cns11643-7' in UTF2000.
3193         (vars_of_mule_charset): Initialize
3194         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
3195         + 1 in UTF2000.
3196         (complex_vars_of_mule_charset): Setup charset
3197         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
3198         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
3199
3200 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3201
3202         * mule-charset.c: Move setting for `leading-code-private-11' from
3203         `syms_of_mule_charset' to `vars_of_mule_charset'.
3204
3205 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3206
3207         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
3208         and `NUM_LEADING_BYTES' in assert.
3209
3210 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3211
3212         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
3213         instead of 128.
3214         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
3215         `NUM_LEADING_BYTES' instead of 128.
3216
3217 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3218
3219         * mule-charset.h (charset_by_leading_byte): Use
3220         `NUM_LEADING_BYTES' instead of 128.
3221         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
3222
3223         * mule-charset.c (charset_by_leading_byte): Use
3224         `NUM_LEADING_BYTES' instead of 128.
3225         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
3226
3227         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
3228         128.
3229
3230 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
3231
3232         * mule-charset.c (syms_of_mule_charset): Update to
3233         0.4 (Shin-Imamiya).
3234
3235 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
3236
3237         * file-coding.c (encode_coding_sjis): New implementation for
3238         UTF2000.  (decode_coding_sjis): Ditto.
3239
3240 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3241
3242         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
3243         Don't define in UTF2000.
3244
3245         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
3246         defined.
3247
3248         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3249         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
3250         MULE.
3251
3252 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3253
3254         * config.h.in (CHAR_IS_UCS4): New macro.
3255
3256         * mule-charset.c (rep_bytes_by_first_byte): Modify for
3257         conventional MULE representation.
3258         (syms_of_mule_charset): Update to 0.3 (Imamiya).
3259
3260         * mule-charset.h: Reverted to original.
3261
3262         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3263         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
3264         "mule-charset.h" if CHAR_IS_UCS4 is defined.
3265
3266         * character.h: New file.
3267
3268         * file-coding.c (Fmake_coding_system): Set 1 to
3269         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
3270         defined.
3271         (encode_coding_no_conversion): New implementation for UTF2000.
3272
3273         * file-coding.h (struct Lisp_Coding_System): Add new member
3274         `fixed.size'.
3275
3276 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
3277
3278         * file-coding.c (decode_coding_iso2022): Code-point arguments of
3279         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
3280         (encode_coding_iso2022): New implementation for UTF2000.
3281
3282 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3283
3284         * mule-canna.c (c2mu): New implementation for UTF2000.
3285         (m2c): Likewise.
3286
3287 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3288
3289         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
3290
3291 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3292
3293         * file-coding.c (reset_encoding_stream): Set 0 to
3294         `str->iso2022.current_char_boundary' in UTF2000.
3295         (encode_utf8): Don't define in UTF2000.
3296         (encode_coding_utf8): New implementation for UTF-8 representation
3297         of UTF2000.
3298         (complex_vars_of_file_coding): Define coding-system `utf-8'.
3299
3300 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3301
3302         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
3303
3304         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
3305         UTF2000.
3306         (REP_BYTES_BY_FIRST_BYTE): Likewise.
3307
3308         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
3309
3310         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
3311         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
3312         as UTF-8 in UTF2000.
3313         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
3314         (non_ascii_valid_char_p): Don't define in UTF2000.
3315         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
3316         (Lstream_get_emchar_1): Likewise.
3317         (utf-2000-version): New variable in UTF2000.
3318
3319         * lread.c (read_escape): Add new reader `u'.
3320
3321         * insdel.c (three_to_one_table): Don't define in UTF2000.
3322         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
3323         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
3324         UTF2000.
3325         (bytind_to_bufpos_func): Likewise.
3326         (buffer_mule_signal_inserted_region): Likewise.
3327         (vars_of_insdel): Don't initialize `three_to_one_table'.
3328         (init_buffer_text): Use `buf->text->mule_size' instead of
3329         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
3330         UTF2000.
3331
3332         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
3333         UTF-8 representation in UTF2000.
3334         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
3335         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
3336         (decode_coding_iso2022): Don't define local variable `lb' in
3337         UTF2000; don't use LEADING_BYTE in UTF2000; use
3338         `DECODE_ADD_UCS_CHAR' in UTF2000.
3339         (convert_to_external_format): Decode as UTF-8 in UTF2000.
3340
3341         * config.h.in (UTF2000): New macro.
3342
3343         * buffer.h (struct buffer_text): Add new member `mule_size' and
3344         don't add `mule_shifter' and `mule_three_p' in UTF2000.
3345         (valid_char_p): Return always 1 in UTF2000.
3346         (MAX_EMCHAR_LEN): 6 in UTF2000.
3347         (three_to_one_table): Don't define in UTF2000.
3348         (real_bufpos_to_bytind): Modify for UTF-8 representation in
3349         UTF2000.
3350         (real_bytind_to_bufpos): Likewise.
3351
3352         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
3353
3354 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3355
3356         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
3357         representation change.
3358         (Vutf_2000_version): New variable.
3359         (leading_code_private_11): New variable.
3360         (syms_of_mule_charset): Add new variables `utf-2000-version' and
3361         `leading-code-private-11'.
3362
3363         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
3364         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
3365         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
3366         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
3367         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
3368         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
3369         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
3370         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
3371         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
3372         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
3373         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
3374         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
3375         (MIN_CHAR_GREEK): New macro.
3376         (MAX_CHAR_GREEK): New macro.
3377         (MIN_CHAR_CYRILLIC): New macro.
3378         (MAX_CHAR_CYRILLIC): New macro.
3379         (MIN_CHAR_HEBREW): New macro.
3380         (MAX_CHAR_HEBREW): New macro.
3381         (MIN_CHAR_THAI): New macro.
3382         (MAX_CHAR_THAI): New macro.
3383         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
3384         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
3385         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
3386         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
3387         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
3388         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
3389         (CHAR_FIELD2): New inline function.
3390         (CHAR_FIELD3): New inline function.
3391         (MULE_CHAR_PRIVATE_OFFSET): New macro.
3392         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
3393         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
3394         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
3395         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
3396         (MIN_CHAR_COMPOSITION): Likewise.
3397         (CHAR_LEADING_BYTE): Modified for character representation change.
3398         (MAKE_CHAR): Likewise.
3399
3400         * lisp.h (Vcharset_latin_iso8859_1): New variable.
3401         (Vcharset_greek_iso8859_7): Likewise.
3402         (Vcharset_cyrillic_iso8859_5): Likewise.
3403         (Vcharset_hebrew_iso8859_8): Likewise.
3404         (Vcharset_thai_tis620): Likewise.
3405         (Vcharset_katakana_jisx0201): Likewise.
3406
3407 2001-01-17  Martin Buchholz <martin@xemacs.org>
3408
3409         * XEmacs 21.2.41 "Polyhymnia" is released.
3410
3411 2001-01-16  Didier Verna  <didier@xemacs.org>
3412
3413         * glyphs.c (image_instantiate): don't use fallbacks when
3414         instantiating a face's background pixmap by inheritance.
3415
3416 2001-01-14  Mike Sperber <mike@xemacs.org>
3417
3418         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
3419         Conditionalize accordingly.
3420
3421 2001-01-16  Martin Buchholz  <martin@xemacs.org>
3422
3423         * dumper.c (pdump_file_get): Fix a compiler warning.
3424
3425 2001-01-15  Martin Buchholz  <martin@xemacs.org>
3426
3427         Make Purify happy when pdumping.
3428         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
3429         iniitalizing all bits of new lisp object memory.
3430         * symbols.c (Fmake_local_variable): Likewise.
3431         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
3432         * symbols.c (Fdefvaralias): Likewise.
3433         * mule-charset.c (vars_of_mule_charset): Likewise.
3434
3435 2001-01-15  Martin Buchholz  <martin@xemacs.org>
3436         Add the `-nd' flag when running pre-dump operations under the debugger.
3437         * .dbxrc (run-temacs): Add `-nd'.
3438         * .dbxrc (update-elc): Likewise.
3439         * .dbxrc (dump-temacs): Likewise.
3440         * .gdbinit (run-temacs): Likewise.
3441         * .gdbinit (check-temacs): Likewise.
3442         * .gdbinit (update-elc): Likewise.
3443         * .gdbinit (dump-temacs): Likewise.
3444
3445 2001-01-14  Martin Buchholz  <martin@xemacs.org>
3446
3447         Allow building 64-bit executables on AIX with GNU malloc, e.g.
3448         export OBJECT_MODE=64
3449         configure --pdump --use-union-type=no
3450         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
3451         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
3452
3453         * miscplay.c (sndcnv8U_2mono):
3454         Avoid two uses of `++' in the same expression.
3455         Suppresses a GCC warning.
3456
3457 2001-01-13  Martin Buchholz  <martin@xemacs.org>
3458
3459         Make sure future compilers don't miscompile alloc.c.
3460         * alloc.c:
3461         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
3462         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
3463
3464 2001-01-12  Martin Buchholz  <martin@xemacs.org>
3465
3466         * dumper.c: A little post-pdump-rename comment fixup.
3467
3468 2001-01-09  Jerry James  <james@eecs.ku.edu>
3469
3470         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
3471
3472 2001-01-13  Martin Buchholz  <martin@xemacs.org>
3473
3474         * *.[ch]: Globally rename symbols using the following `pdump-rename'
3475         script:
3476         #!/bin/sh
3477         replace_symbol () {
3478           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
3479         }
3480
3481         replace_symbol pdump_wire_lists pdump_weak_object_chains
3482         replace_symbol pdump_wire_list dump_add_weak_object_chain
3483
3484         replace_symbol pdump_wires pdump_root_objects
3485         replace_symbol pdump_wire dump_add_root_object
3486
3487         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
3488         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
3489
3490         replace_symbol dumpstructinfos pdump_root_struct_ptrs
3491         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
3492         replace_symbol dumpstructinfo pdump_root_struct_ptr
3493         replace_symbol dumpstruct dump_add_root_struct_ptr
3494
3495         replace_symbol dumpopaque dump_add_opaque
3496         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
3497         replace_symbol dumpopaqueinfos pdump_opaques
3498         replace_symbol dumpopaqueinfo pdump_opaque
3499
3500         replace_symbol nb_structdump nb_root_struct_ptrs
3501         replace_symbol nb_opaquedump nb_opaques
3502
3503         replace_symbol align_table pdump_align_table
3504         replace_symbol dump_header pdump_header
3505
3506         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
3507         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
3508
3509
3510 2001-01-12  Martin Buchholz  <martin@xemacs.org>
3511
3512         * s/aix4.h: Keep the C for AIX compiler from overaggressively
3513         optimizing bytecount_to_charcount().
3514
3515 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
3516
3517         * config.h.in:
3518         (HAVE_DLFCN_H): Removed.
3519         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
3520
3521 2001-01-06  Martin Buchholz  <martin@xemacs.org>
3522
3523         Portable dumper maintainability improvements.
3524         * alloc.c (staticpro):
3525         * alloc.c (staticpro_nodump):
3526         * alloc.c (garbage_collect_1):
3527         * alloc.c (reinit_alloc_once_early):
3528         * alloc.c (init_alloc_once_early):
3529         * alloc.c: Move dumper functions to alloc.c.
3530         * dumper.c (pdump_backtrace):
3531         * dumper.c (pdump_dump_structs):
3532         * dumper.c (pdump_dump_opaques):
3533         * dumper.c (pdump_dump_rtables):
3534         * dumper.c (pdump_dump_wired):
3535         * dumper.c (pdump):
3536         * dumper.c (pdump_load_check):
3537         * dumper.c (pdump_load_finish):
3538         * dumper.c (pdump_file_unmap):
3539         * dumper.c (pdump_file_get):
3540         * dumper.c (pdump_resource_free):
3541         * dumper.c (pdump_resource_get):
3542         * dumper.c (pdump_file_free):
3543         * dumper.c (pdump_file_try):
3544         * dumper.c (pdump_load):
3545         Remove fixed size limits on staticpro(), staticpro_nodump(),
3546         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
3547         Remove custom code for dumping lrecord_implementations_table - use
3548         dumpopaque instead.
3549         Remove (most of the) custom code for dumping staticpros - dump it
3550         like any other dynarr.
3551
3552         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
3553         * dumper.c: Moved functions from alloc.c.
3554         * alloc.c (dumpstruct): Moved to dumper.c.
3555         * alloc.c (dumpopaque): Likewise.
3556         * alloc.c (pdump_wire): Likewise.
3557         * alloc.c (pdump_wire_list): Likewise.
3558
3559         * lisp.h (Dynarr_sizeof): New.
3560         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
3561         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
3562         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
3563
3564         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
3565         * lisp.h (dumpopaque): ditto.
3566         * lisp.h (pdump_wire): ditto.
3567         * lisp.h (pdump_wire_list): ditto.
3568
3569 2001-01-09  Martin Buchholz  <martin@xemacs.org>
3570
3571         * make-src-depend (PrintPatternDeps):
3572         Use `sort' to make output independent of perl version.
3573
3574 2001-01-08  Martin Buchholz  <martin@xemacs.org>
3575
3576         Port to Netbsd 1.5.
3577         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
3578         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
3579
3580 2001-01-03  Didier Verna  <didier@xemacs.org>
3581
3582         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
3583         that `focus_frame' is alive before thinking of calling
3584         `redisplay_redraw_cursor' on it.
3585
3586 2001-01-08  Martin Buchholz <martin@xemacs.org>
3587
3588         * XEmacs 21.2.40 is released.
3589
3590 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
3591
3592         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
3593
3594 2001-01-06  Martin Buchholz  <martin@xemacs.org>
3595
3596         * alloc.c (dbg_valmask): Make const.
3597         * alloc.c (dbg_typemask): Make const.
3598         * alloc.c (dbg_USE_UNION_TYPE): Make const.
3599         * alloc.c (dbg_valbits): Make const.
3600         * alloc.c (dbg_gctypebits): Make const.
3601
3602 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
3603
3604         * redisplay-x.c (x_bevel_area):
3605         redisplay.h (struct rune):
3606         Typo fixes in comments.
3607
3608 2001-01-05  Andy Piper  <andy@xemacs.org>
3609
3610         * glyphs-x.c (x_redisplay_widget): use size changed for offset
3611         adjustment.
3612
3613         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
3614
3615 2001-01-05  Martin Buchholz  <martin@xemacs.org>
3616
3617         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
3618
3619         * mule-ccl.c (stack_idx_of_map_multiple):
3620         Non const global data must not be initialized!
3621         Found by MIYASHITA Hisashi.
3622
3623 2001-01-02  Andy Piper  <andy@xemacs.org>
3624
3625         * frame.c (change_frame_size): make sure frame size is always
3626         marked as changed.
3627
3628         * glyphs.c (image_instance_layout): minor code reuse.
3629
3630         * window.c (Fcurrent_window_configuration): revert previous
3631         change.
3632
3633 2001-01-02  Martin Buchholz  <martin@xemacs.org>
3634
3635         * glyphs.h:
3636         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
3637
3638 2000-12-31  Andy Piper  <andy@xemacs.org>
3639
3640         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
3641         when widget gets unmapped.
3642
3643         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
3644         function. Make sure widgets losing focus don't just drop it.
3645         (handle_focus_event_1): record the widget with focus.
3646
3647 2000-12-31  Andy Piper  <andy@xemacs.org>
3648
3649         * window.c (allocate_window): use
3650         make_image_instance_cache_hash_table.
3651         (make_dummy_parent): ditto.
3652         (Fset_window_configuration): ditto.
3653
3654         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
3655
3656         * glyphs.c (process_image_string_instantiator): use
3657         INSTANTIATOR_TYPE.
3658         (get_image_instantiator_governing_domain): ditto.
3659         (normalize_image_instantiator): ditto.
3660         (instantiate_image_instantiator): ditto.
3661         (make_image_instance_1): ditto.
3662         (image_instantiate): ditto. Key on glyph *and* instantiator type.
3663         (instantiator_eq_equal): new function for use with instance hash
3664         tables.
3665         (instantiator_eq_hash): ditto.
3666         (make_image_instance_cache_hash_table): create a suitable hash
3667         table for storing image instances.
3668
3669         * elhash.h (hash_table_weakness): new internal weakness type
3670         HASH_TABLE_KEY_CAR_VALUE_WEAK.
3671         declare new functions.
3672
3673         * elhash.c (finish_marking_weak_hash_tables): introduce yet
3674         another weakness type for glyphs.
3675         (make_standard_lisp_hash_table): new function split out from
3676         make_general_lisp_hash_table.
3677         (make_lisp_hash_table): call make_standard_lisp_hash_table.
3678         (hash_table_instantiate): ditto.
3679         (Fmake_hash_table): ditto.
3680
3681 2000-12-31  Martin Buchholz <martin@xemacs.org>
3682
3683         * XEmacs 21.2.39 is released.
3684
3685 2000-12-29  Andy Piper  <andy@xemacs.org>
3686
3687         * menubar.c (menubar_visible_p_changed): signal the frame changed.
3688
3689         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
3690         the frame has changed so that we pick up geometry changes such as
3691         menubar visibility.
3692
3693 2000-12-28  Andy Piper  <andy@xemacs.org>
3694
3695         * lastfile.c (my_ebss): make a char array so we can pad the
3696         bss. Fixes cygwin unexec.
3697
3698         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
3699
3700 2000-12-26  Andy Piper  <andy@xemacs.org>
3701
3702         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
3703         comments and try and be more precise about a non-/SIGIO world.
3704         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
3705         SIGIO.
3706
3707         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
3708         we don't normalize to zero width or height.
3709
3710 2000-12-24  Andy Piper  <andy@xemacs.org>
3711
3712         * Makefile.in.in (ldflags): add -mwindows when appropriate.
3713
3714 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
3715
3716         * s/sco5.h: SCO 5 has pty support.
3717
3718 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
3719
3720         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
3721         input-method-xlib.c contains whole contents of input-method-xfs.c,
3722         so we can use input-method-xlib.c's code for USE_XFONTSET
3723         using #ifdefs.
3724         * input-method-xfs.c: removed.
3725
3726 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
3727
3728         * file-coding.h (enum coding_category_type): reorder enumerators to
3729         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
3730         (now one greater than largest real coding_category_type enumerator).
3731         * file-coding.c (coding_category_symbol, coding_category_by_priority,
3732         coding_category_system, fcd_descriptihon_1, decode_coding_category,
3733         Fcoding_category_list, Fset_coding_priority_list,
3734         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
3735         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
3736
3737 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
3738
3739         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
3740         * redisplay-output.c (redisplay_output_window): Clear top of window
3741         when face is changed.
3742         * redisplay-x.c (x_redraw_exposed_window): Call
3743         redisplay_clear_top_of_window.
3744         * redisplay.h: Publish redisplay_clear_top_of_window.
3745
3746 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
3747
3748         * buffer.c (Fkill_buffer): Map over all devices.
3749         * window.c (window_loop): Remove UNSHOW_BUFFER code.
3750         (list_windows): New function.
3751         (list_all_windows): Ditto.
3752         (Freplace_buffer_in_windows): Use them.
3753
3754 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
3755
3756         * database.c (berkdb_subtype): Recognize new subtype `queue'.
3757         (Fopen_database): Use `db_create' instead of `db_open'.
3758         (syms_of_database): Initialize Qqueue.
3759
3760 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
3761
3762         * buffer.c (common_init_complex_vars_of_buffer): Initialize
3763         buffer_local_face_property.
3764         * buffer.h (struct buffer): New member buffer_local_face_property.
3765         * window.c (Fset_window_buffer):  Mark window's face as changed
3766         when buffer has buffer local face.
3767         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
3768         * objects.c (color_after_change): Set buffer_local_face_property
3769         when locale of face specifier is buffer.
3770         * objects.c (font_after_change): Ditto.
3771         * objects.c (face_boolean_after_change): Ditto.
3772         * glyphs.c (image_after_change): Ditto.
3773
3774 2000-12-09  Dan Holmsand  <dan@eyebee.com>
3775
3776         * nt.c (mswindows_fstat): Report file permissions, volume serial
3777         number, etc. Code adapted from FSF Emacs 20.7.
3778
3779 2000-12-09  Dan Holmsand  <dan@eyebee.com>
3780
3781         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
3782         of stat when we don't have symbolic links, to make sure
3783         mswindows_stat is called on mswindows.
3784
3785 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
3786
3787         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
3788
3789 2000-12-12  Martin Buchholz  <martin@xemacs.org>
3790
3791         * doprnt.c (emacs_doprnt_1): More printing fixes.
3792         Make printing of numbers compatible with libc and FSF Emacs.
3793         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
3794         Use the system printf to do most of the hard work of formatting,
3795         instead of doprnt_1().
3796         Calculate memory to allocate for format string.
3797         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
3798         (doprnt_1): Cleaner code and documentation.
3799
3800 2000-12-01  Jerry James  <james@eecs.ukans.edu>
3801
3802         * Makefile.in.in: Use the loop variable to install headers.
3803
3804 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
3805
3806         * window.c (Fsplit_window): Don't invalidate face cache.
3807
3808 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
3809
3810         * minibuf.c (Fall_completions): Undo the previous change
3811         which removed checking elements start with space.
3812
3813 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
3814
3815         * mule-canna.c: Didier suppression.
3816
3817 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
3818
3819         * mule-canna.c: rename static unsigned char buf[] to key_buffer
3820         (warning suppression).  Add English comment translations.
3821
3822 2000-12-05  Martin Buchholz  <martin@xemacs.org>
3823
3824         * unexelfsgi.c (unexec): Better test for mmap failure.
3825
3826 2000-12-05  Martin Buchholz <martin@xemacs.org>
3827
3828         * XEmacs 21.2.38 is released.
3829
3830 2000-12-05  Martin Buchholz  <martin@xemacs.org>
3831
3832         * redisplay.c (bar-cursor): Make a user variable.
3833
3834         * symsinit.h: Add init_postgresql_from_environment.
3835
3836 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
3837
3838         * regex.c: Convert to clean C.
3839
3840 2000-12-05  Dan Holmsand  <dan@eyebee.com>
3841
3842         * realpath.c:
3843         Don't #include sysfile.h. Revert to duplicating PATH_MAX
3844         initialization.
3845         (sys_readlink): renamed to system_readlink to avoid conflict with
3846         the other sys_readlink.
3847
3848 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
3849
3850         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
3851
3852 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
3853
3854         * postgresql.c (init_postgresql_from_environment): new function.
3855         (vars_of_postgresql): Move code initializing Lisp variables out and
3856         into init_postgresql_from_environment.
3857         emacs.c (main_1): Call init_postgresql_from_environment if and only
3858         if running a dumped XEmacs.
3859
3860 2000-08-31  Dan Holmsand  <dan@eyebee.com>
3861
3862         * buffer.c: Make find-file-compare-truenames default to true on
3863         windows.
3864
3865         * realpath.c (win32_abs_start):
3866         (cygwin_readlink):
3867         (win32_readlink): New functions.
3868         (xrealpath): Return really real filenames on windows.
3869
3870         * fileio.c (Ffile_truename): Make file-truename work on windows.
3871
3872 2000-11-29  Didier Verna  <didier@xemacs.org>
3873
3874         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
3875         * faces.c (update_face_cachel_data): use it.
3876         * faces.c (add_face_cachel): use it. Complete background pixmap
3877         frobbing in face cache if `update_face_cachel_data' has not done so.
3878
3879 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
3880
3881         * search.c (string_match_1): Don't set last_thing_searched
3882         when search failed.
3883
3884 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
3885
3886         * buffer.c: Include casetab.h
3887         (common_init_complex_vars_of_buffer): Use new case-table object.
3888         * buffer.h: Include casetab.h
3889         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
3890         (DOWNCASE_TABLE_OF): Ditto.
3891         * bufslots.h: Remove char-tables and add case-table.
3892         * casetab.c: Include casetab.h
3893         (CASE_TABLE_P): Removed.
3894         (mark_case_table): New function.
3895         (allocate_case_table): New function.
3896         (Fcase_table_p): Use new case-table.
3897         (case_table_char): New function.
3898         (Fget_case_table): Ditto.
3899         (Fput_case_table): Ditto.
3900         (Fput_case_table_pair): Ditto.
3901         (Fcopy_case_table): Ditto.
3902         (Fcurrent_case_table): Return case-table.
3903         (Fstandard_case_table): Return case-table.
3904         (Fset_case_table): Fix doc-string.
3905         (set_case_table): Use case-table
3906         (syms_of_casetab): DEFSUBR new functions.
3907         (complex_vars_of_casetab): Set up standard case-table.
3908         * casetab.h: New file.
3909         * editfns.c: Include casetab.h
3910         (Fcompare_buffer_substrings): Use case-table.
3911         * inline.c: Include casetab.h
3912         * lisp.h: Remove bogus extern.
3913         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
3914         * search.c: Include casetab.h
3915         (TRANSLATE_ASCII): Removed.
3916         (TRANSLATE): Unconditionally translate character.
3917         (looking_at_1): Use case-table.
3918         (string_match_1): Ditto.
3919         (fast_string_match): Ditto.
3920         (search_command): Ditto.
3921         (search_buffer): Separate boyer_moore.  Check whether
3922         boyer_moore is poosible.
3923         (simple_search): New function.
3924         (boyer_moore): Separated from search_buffer. Translate char.
3925
3926 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
3927
3928         * regex.c (RE_TR_ASCII): Removed.
3929         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
3930         (PATFETCH): Call PATFETCH_RAW.
3931         (PATFETCH_RAW): Fetch Emchar.
3932         (PATUNFETCH): Decrement charptr.
3933         (GET_BUFFER_SPACE): Rename b to buf_end.
3934         (BUF_PUSH): Ditto.
3935         (BUF_PUSH_2): Ditto.
3936         (BUF_PUSH_3): Ditto.
3937         (EXTEND_BUFFER): Ditto.
3938         (SET_LIST_BIT): Ditto.
3939         (regex_compile): Ditto.  Translate non ASCII char.
3940         (compile_range): Ditto.
3941         (re_search_2): Ditto.
3942         (re_match_2_internal): Compare Emchar.
3943         (bcmp_translate): Ditto.
3944
3945 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
3946
3947         * lisp.h (basic char/int typedefs):  comment improvement.
3948
3949 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
3950
3951         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
3952         unstomp inhibit_site_lisp.  Improve comments.
3953
3954 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
3955
3956         * mule-charset.c (Fcharset_property):  improve type checking, comments.
3957
3958 2000-11-28  Andy Piper  <andy@xemacs.org>
3959
3960         * redisplay-output.c (redisplay_output_subwindow): make sure we do
3961         clipped display for windows in the gutter also.
3962         (redisplay_display_boxes_in_window_p): change semantics of return
3963         codes to be more intuitive.
3964
3965         * gutter.h: declare display_boxes_in_gutter_p.
3966
3967         * gutter.c (display_boxes_in_gutter_p): new function for
3968         redisplay.
3969
3970 2000-11-22  Andy Piper  <andy@xemacs.org>
3971
3972         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
3973         autodetect domain.
3974
3975 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
3976
3977         * callproc.c (Fold_call_process_internal):
3978         * gpm.c (Freceive_gpm_event):
3979         (tty_get_foreign_selection): Might be just warning supression.
3980         * fileio.c (Fwrite_region_internal):
3981         (Fset_visited_file_modtime):
3982         * keymap.c (event_matches_key_specifier_p):
3983         Initialize GCPROed variable.
3984
3985         * menubar-x.c (command_builder_find_menu_accelerator):
3986         Initialize before use.
3987
3988 2000-11-23  Andy Piper  <andy@xemacs.org>
3989
3990         * unexcw.c (unexec): make the resulting executable executable.
3991
3992 2000-11-21  Martin Buchholz  <martin@xemacs.org>
3993
3994         * doc.c (get_doc_string):
3995         Use size_t, not int, for result of XSTRING_LENGTH.
3996
3997         * cmds.c (Fdelete_char):
3998         * cmds.c (Fpoint_at_eol):
3999         * cmds.c (Fself_insert_command):
4000         Use EMACS_INT, not int, for result of XINT.
4001         Someday, someone will want to insert more than 2**31 identical characters.
4002
4003         * cmds.c (Fdelete_char):
4004         * cmds.c (Fdelete_backward_char):
4005         * syntax.c (Fforward_word):
4006         * syntax.c (Fforward_comment):
4007         Make COUNT argument optional, for consistency with forward-char et al.
4008
4009 2000-11-22  Martin Buchholz  <martin@xemacs.org>
4010
4011         * lisp.h:
4012         * print.c (long_to_string):
4013         Return a useful value: the pointer at end of data written.
4014
4015         * doprnt.c:
4016         Use `static const char * const' for constant strings.
4017         (union printf_arg): Delete `i', `ui' members.
4018         (get_doprnt_args):
4019         (emacs_doprnt_1):
4020         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
4021         Do all printf-ing via the `l' specifier.
4022         Use EMACS_INT instead of int.
4023         Optimize.
4024
4025 2000-11-20  Didier Verna  <didier@xemacs.org>
4026
4027         * faces.c (update_face_cachel_data): don't frob the background
4028         pixmap when the window is being created. The face is needed but
4029         does not exist yet.
4030
4031 2000-11-20  Andy Piper  <andy@xemacs.org>
4032
4033         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
4034         messing with a debug environment.
4035
4036 2000-11-20  Martin Buchholz  <martin@xemacs.org>
4037
4038         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
4039
4040 2000-11-20  Martin Buchholz  <martin@xemacs.org>
4041
4042         * casetab.c (Fcase_table_p): Fix compile error and crash.
4043
4044 2000-11-18  Philip Aston  <philipa@mail.com>
4045
4046         * s/cygwin32.h: Cygwin has SVR4-like pty support.
4047
4048 2000-11-18  Martin Buchholz  <martin@xemacs.org>
4049
4050         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
4051         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
4052
4053 2000-11-17  Martin Buchholz  <martin@xemacs.org>
4054
4055         * config.h.in: Define HAVE_ELF_H if elf.h exists.
4056         * unexelf.c: Use HAVE_ELF_H.
4057         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
4058         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
4059         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
4060         Greg Harrington <greg_harrington@hotmail.com> provided a machine
4061         for testing.
4062         So this is an unexelfsgi.c from a different line of development.
4063
4064 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
4065
4066         * regex.c (RE_TR_ASCII): New function.
4067         (RE_TRANSLATE): Call it.
4068
4069 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
4070
4071         * buffer.h (TRT_TABLE_OF): Remove assert.
4072         (IN_TRT_TABLE_DOMAIN): Removed.
4073
4074 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
4075
4076         * free-hook.c (log_gcpro):
4077         (show_gcprohist): Add support for GCPRO5.
4078
4079 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
4080
4081         * emacs.c (main_1): Improve -sd error message when --pdump=no.
4082
4083 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
4084
4085         * symeval.h: Declare flush_all_buffer_local_cache.
4086
4087         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
4088         (flush_buffer_local_cache): Added.
4089         (flush_all_buffer_local_cache): Added.
4090
4091         * lrecord.h: Remove unused XD_LO_RESET_NIL.
4092
4093         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
4094         (pdump_dump_data): Ditto.
4095         (pdump_reloc_one): Ditto.
4096         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
4097         before dumping.
4098
4099
4100 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
4101
4102         * buffer.c: Remove if 0'ed entry.
4103         * buffer.h: Rewrite TRT to use char-table.
4104         * bufslots.h: Remove mirror tables.
4105         * casetab.c: Remove mirror tables.
4106         (CASE_TABLE_P): New macro.
4107         (Fcase_table_p): Element of a case table is string or char-table.
4108         (make_mirror_trt_table): Removed.
4109         (set_case_table): Setup char-table from strings for backward
4110         compatibility.
4111         * dired.c (Fdirectory_files):
4112         * dired-msw.c: (mswindows_get_files):
4113         * lisp.h: Change prototype of re_pattern_buffer.
4114         * regex.c: (RE_TRANSLATE): New macro.
4115         (TRANSLATE_P): Ditto.
4116         Change translate to type RE_TRANSLATE_TYPE.
4117         * regex.h: Define RE_TRANSLATE_TYPE
4118         * search.c (TRANSLATE): New macro.
4119         (TRANSLATE_ASCII): New macro.
4120         Translate table is changed to Lisp_Object.
4121         (signal_failure): Inhibit return.
4122
4123 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
4124
4125         * device-msw.c:
4126         * eldap.c:
4127         * event-Xt.c:
4128         * event-stream.c:
4129         * print.c:
4130         Do UNGCPRO before return.
4131
4132 2000-11-14  Martin Buchholz <martin@xemacs.org>
4133
4134         * XEmacs 21.2.37 is released.
4135
4136 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
4137
4138         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
4139         Add comments about discarded return value.
4140
4141 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
4142
4143         * callint.c:
4144         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
4145
4146 2000-10-27  Andy Piper  <andy@xemacs.org>
4147
4148         * gutter.c (Fset_default_gutter_position): default left and right
4149         gutters to visible.
4150         (calculate_gutter_size): calculate resonable heuristic for left
4151         and right gutter sizes.
4152         (specifier_vars_of_gutter): change left and right gutter sizes to
4153         autodetect.
4154         (calculate_gutter_size_from_display_lines): new function.
4155         (output_gutter): check for resizing on left and right gutters.
4156         (clear_gutter): don't special case top and left gutters.
4157         (specifier_vars_of_gutter): use new signature for
4158         set_specifier_caching.
4159
4160         * glyphs-x.c (x_redisplay_widget): spelling fix.
4161         * glyphs.c (specifier_vars_of_glyphs):
4162         * menubar.c (specifier_vars_of_menubar):
4163         * redisplay.c (specifier_vars_of_redisplay):
4164         * toolbar.c (specifier_vars_of_toolbar):
4165         * window.c (specifier_vars_of_window):
4166         * scrollbar.c (specifier_vars_of_scrollbar):
4167         (complex_vars_of_scrollbar): use new signature for
4168         set_specifier_caching.
4169
4170         * specifier.c (set_specifier_caching): include recompute flag.
4171         (recompute_one_cached_specifier_in_window): always recompute if
4172         flag set.
4173         (recompute_one_cached_specifier_in_frame): ditto.
4174
4175         * specifier.h (struct specifier_caching): add recompute flag.
4176
4177 2000-10-24  Andy Piper  <andy@xemacs.org>
4178
4179         * unexcw.c (copy_executable_and_dump_data_section): add new
4180         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
4181         5.0 happy.
4182
4183 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
4184
4185         * console-x.h (x_device): New member modifier_release_time.
4186         * event-Xt.c (x_handle_sticky_modifiers):
4187         Bound interval modifier keys are sticky.
4188         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
4189         * events.h: extern it.
4190
4191 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
4192
4193         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
4194
4195 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
4196
4197         * event-stream.c (execute_command_event): Preserve current_events
4198         and the like when event is misc-user-event.
4199         Inhibit quit during the call to maybe_echo_keys.
4200
4201 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
4202
4203         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
4204         symlink when buffer is killed.
4205         (inhibit_clash_detection): New variable.
4206
4207 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
4208
4209         * console.c (Fset_input_method): Trigger redisplay on tty.
4210
4211 2000-11-07  Martin Buchholz  <martin@xemacs.org>
4212
4213         * process.c (Fprocess_status): Revert to previous behavior:
4214         (process-status "nosuchprocess") ==> nil
4215
4216 2000-11-06  Martin Buchholz  <martin@xemacs.org>
4217
4218         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
4219         Work around another GCC 2.95.2 optimizer bug.
4220
4221 2000-11-02  Martin Buchholz  <martin@xemacs.org>
4222
4223         * process.c (Fget_process): Use LIST_LOOP_2.
4224         (kill_buffer_processes): Use LIST_LOOP_2.
4225
4226         * minibuf.c (Fall_completions):
4227         Delete old non-functional code for FSF fourth argument.
4228
4229         * frame.c (frame_matches_frame_spec):
4230         Renamed from `frame_matches_frametype'.  Update all callers.
4231         (device_matches_device_spec):
4232         Renamed from 'device_matches_console_spec'.  Update all callers.
4233
4234         * doc.c (Fsubstitute_command_keys):
4235         Remove buffer overflow crash.  Small code cleanups.
4236
4237         * casetab.c (check_case_table): Simpler code.
4238
4239         * window.c (Freplace_buffer_in_windows):
4240         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
4241         (and similar implementation) as Fdelete_windows_on.
4242         Update all callers.
4243
4244         * alloc.c (Fmake_list):
4245         * alloc.c (make_vector):
4246         * alloc.c (Fmake_vector):
4247         * alloc.c (make_bit_vector):
4248         * alloc.c (Fmake_bit_vector):
4249         * alloc.c (Fbit_vector):
4250         * alloc.c (Fmake_string):
4251         * alloc.c (Fpurecopy):
4252         * alloc.c (Fmemory_limit):
4253         * buffer.c:
4254         * buffer.c (Fget_buffer):
4255         * buffer.c (Fkill_buffer):
4256         * buffer.c (complex_vars_of_buffer):
4257         * bytecode.c (Fcompiled_function_stack_depth):
4258         * callint.c (Fprefix_numeric_value):
4259         * event-stream.c:
4260         * event-stream.c (Fread_key_sequence):
4261         * casetab.c:
4262         * casetab.c (Fcase_table_p):
4263         * casetab.c (check_case_table):
4264         * casetab.c (Fset_case_table):
4265         * casetab.c (Fset_standard_case_table):
4266         * chartab.c:
4267         * chartab.c (Fchar_table_type):
4268         * chartab.c (Freset_char_table):
4269         * chartab.c (Fget_char_table):
4270         * chartab.c (Fget_range_char_table):
4271         * chartab.c (Fput_char_table):
4272         * chartab.c (Fmap_char_table):
4273         * chartab.c (Fcategory_table_p):
4274         * chartab.c (Fcheck_category_at):
4275         * chartab.c (Fchar_in_category_p):
4276         * chartab.c (Fcategory_table):
4277         * chartab.c (Fcopy_category_table):
4278         * chartab.c (Fset_category_table):
4279         * chartab.c (Fcategory_designator_p):
4280         * chartab.c (Fcategory_table_value_p):
4281         * cmds.c (Fdelete_char):
4282         * cmds.c (Fdelete_backward_char):
4283         * cmds.c (Fself_insert_command):
4284         * cmds.c (Fself_insert_internal):
4285         * console.c (Fvalid_console_type_p):
4286         * console.c (Fcdfw_console):
4287         * console.c (Fconsole_type):
4288         * console.c (Fconsole_name):
4289         * console.c (Fconsole_device_list):
4290         * console.c (Fconsole_on_window_system_p):
4291         * data.c:
4292         * data.c (Feq):
4293         * data.c (Fold_eq):
4294         * data.c (Fsubr_interactive):
4295         * data.c (Fchar_to_int):
4296         * data.c (Fint_to_char):
4297         * data.c (Fsetcar):
4298         * data.c (Fsetcdr):
4299         * data.c (Fnumber_to_string):
4300         * data.c (Fstring_to_number):
4301         * data.c (Frem):
4302         * database.c (mark_database):
4303         * database.c (finalize_database):
4304         * database.c (Fdatabase_live_p):
4305         * database.c (Fdatabasep):
4306         * device-x.c (Fx_get_resource):
4307         * device.c (Fdfw_device):
4308         * dired.c:
4309         * dired.c (Ffile_name_completion):
4310         * dired.c (Ffile_name_all_completions):
4311         * dired.c (Fuser_name_completion):
4312         * dired.c (Fuser_name_completion_1):
4313         * dired.c (Fuser_name_all_completions):
4314         * doc.c (Fdocumentation):
4315         * doc.c (Fdocumentation_property):
4316         * doc.c (Fsubstitute_command_keys):
4317         * editfns.c:
4318         * editfns.c (Fchar_to_string):
4319         * editfns.c (Fstring_to_char):
4320         * editfns.c (Ftemp_directory):
4321         * editfns.c (Finsert_char):
4322         * editfns.c (Fbuffer_substring_no_properties):
4323         * editfns.c (Fnarrow_to_region):
4324         * editfns.c (Fchar_equal):
4325         * editfns.c (Fchar_Equal):
4326         * editfns.c (Ftranspose_regions):
4327         * emacs.c (Fdump_emacs):
4328         * eval.c (Fthrow):
4329         * eval.c (Fcommand_execute):
4330         * eval.c (Fautoload):
4331         * eval.c (Fbacktrace):
4332         * eval.c (Fbacktrace_frame):
4333         * events.c:
4334         * events.c (Fcopy_event):
4335         * events.c (Fcharacter_to_event):
4336         * events.c (Fevent_button):
4337         * events.c (Fevent_process):
4338         * extents.c:
4339         * extents.c (Fnext_extent_change):
4340         * extents.c (Fextent_property):
4341         * faces.c (Ffacep):
4342         * faces.c (Fmake_face):
4343         * file-coding.c:
4344         * file-coding.c (Fencode_shift_jis_char):
4345         * file-coding.c (Fencode_big5_char):
4346         * fileio.c (Ffile_name_directory):
4347         * fileio.c (Ffile_name_nondirectory):
4348         * fileio.c (Ffile_name_as_directory):
4349         * fileio.c (Fdirectory_file_name):
4350         * fileio.c (Ffile_truename):
4351         * fileio.c (Fsubstitute_in_file_name):
4352         * fileio.c (Ffile_modes):
4353         * fileio.c (Fset_file_modes):
4354         * fileio.c (Fset_default_file_modes):
4355         * fileio.c (Fverify_visited_file_modtime):
4356         * floatfns.c (Facos):
4357         * floatfns.c (Fasin):
4358         * floatfns.c (Fatan):
4359         * floatfns.c (Fcos):
4360         * floatfns.c (Fsin):
4361         * floatfns.c (Ftan):
4362         * floatfns.c (Fbessel_j0):
4363         * floatfns.c (Fbessel_j1):
4364         * floatfns.c (Fbessel_jn):
4365         * floatfns.c (Fbessel_y0):
4366         * floatfns.c (Fbessel_y1):
4367         * floatfns.c (Fbessel_yn):
4368         * floatfns.c (Ferf):
4369         * floatfns.c (Ferfc):
4370         * floatfns.c (Flog_gamma):
4371         * floatfns.c (Fexp):
4372         * floatfns.c (Fexpt):
4373         * floatfns.c (Flog):
4374         * floatfns.c (Flog10):
4375         * floatfns.c (Fsqrt):
4376         * floatfns.c (Fcube_root):
4377         * floatfns.c (Facosh):
4378         * floatfns.c (Fasinh):
4379         * floatfns.c (Fatanh):
4380         * floatfns.c (Fcosh):
4381         * floatfns.c (Fsinh):
4382         * floatfns.c (Ftanh):
4383         * floatfns.c (Fabs):
4384         * floatfns.c (Ffloat):
4385         * floatfns.c (Flogb):
4386         * floatfns.c (Fceiling):
4387         * floatfns.c (Ffloor):
4388         * floatfns.c (Fround):
4389         * floatfns.c (Ftruncate):
4390         * floatfns.c (Ffceiling):
4391         * floatfns.c (Fffloor):
4392         * floatfns.c (Ffround):
4393         * floatfns.c (Fftruncate):
4394         * fns.c (Fstring_equal):
4395         * fns.c (Fstring_lessp):
4396         * fns.c (concat2):
4397         * fns.c (concat3):
4398         * fns.c (vconcat2):
4399         * fns.c (vconcat3):
4400         * fns.c (Fsubstring):
4401         * fns.c (Fassoc):
4402         * fns.c (Fold_assoc):
4403         * fns.c (assoc_no_quit):
4404         * fns.c (Fassq):
4405         * fns.c (Fold_assq):
4406         * fns.c (assq_no_quit):
4407         * fns.c (Frassoc):
4408         * fns.c (Fold_rassoc):
4409         * fns.c (Frassq):
4410         * fns.c (Fold_rassq):
4411         * fns.c (rassq_no_quit):
4412         * fns.c (Fremassoc):
4413         * fns.c (remassoc_no_quit):
4414         * fns.c (Fremassq):
4415         * fns.c (remassq_no_quit):
4416         * fns.c (Fremrassoc):
4417         * fns.c (Fremrassq):
4418         * fns.c (remrassq_no_quit):
4419         * fns.c (Fsort):
4420         * fns.c (Fplist_get):
4421         * fns.c (Fplist_put):
4422         * fns.c (Fplist_remprop):
4423         * fns.c (Fplist_member):
4424         * fns.c (Flax_plist_get):
4425         * fns.c (Flax_plist_put):
4426         * fns.c (Flax_plist_remprop):
4427         * fns.c (Flax_plist_member):
4428         * fns.c (Fequal):
4429         * fns.c (Fold_equal):
4430         * fns.c (Frequire):
4431         * fns.c (Fbase64_encode_region):
4432         * fns.c (Fbase64_encode_string):
4433         * fns.c (Fbase64_decode_region):
4434         * frame.c:
4435         * frame.c (frame_matches_frame_spec):
4436         * frame.c (device_matches_device_spec):
4437         * frame.c (next_frame):
4438         * frame.c (previous_frame):
4439         * frame.c (Fnext_frame):
4440         * frame.c (Fprevious_frame):
4441         * frame.c (Fframe_property):
4442         * frame.c (Fset_frame_height):
4443         * frame.c (Fset_frame_size):
4444         * frame.h:
4445         * glyphs.c:
4446         * glyphs.c (if):
4447         * glyphs.c (decode_error_behavior_flag):
4448         * glyphs.c (Fmake_image_instance):
4449         * indent.c (Findent_to):
4450         * intl.c (Fignore_defer_gettext):
4451         * keymap.c (Fkeymapp):
4452         * keymap.c (Flookup_key):
4453         * lread.c:
4454         * lread.c (Fload_internal):
4455         * lread.c (Feval_buffer):
4456         * lread.c (Feval_region):
4457         * macros.c (Fexecute_kbd_macro):
4458         * marker.c (set_marker_internal):
4459         * marker.c (Fset_marker):
4460         * marker.c (set_marker_restricted):
4461         * marker.c (Fcopy_marker):
4462         * marker.c (noseeum_copy_marker):
4463         * menubar.c:
4464         * menubar.c (Fpopup_menu):
4465         * minibuf.c:
4466         * mule-charset.c (Fcharset_name):
4467         * mule-charset.c (Fchar_charset):
4468         * mule-charset.c (Fchar_octet):
4469         * mule-charset.c (Fsplit_char):
4470         * mule-wnnfns.c (Fwnn_open):
4471         * mule-wnnfns.c (Fwnn_dict_comment):
4472         * mule-wnnfns.c (Fwnn_quit_henkan):
4473         * mule-wnnfns.c (Fwnn_word_toroku):
4474         * mule-wnnfns.c (Fwnn_word_sakujo):
4475         * mule-wnnfns.c (Fwnn_word_use):
4476         * mule-wnnfns.c (Fwnn_hindo_set):
4477         * objects.c:
4478         * objects.c (Fmake_color_instance):
4479         * objects.c (Fmake_font_instance):
4480         * print.c (Fwrite_char):
4481         * process.c:
4482         * process.c (mark_process):
4483         * process.c (print_process):
4484         * process.c (get_process_from_usid):
4485         * process.c (Fprocessp):
4486         * process.c (Fprocess_live_p):
4487         * process.c (Fget_process):
4488         * process.c (Fget_buffer_process):
4489         * process.c (get_process):
4490         * process.c (Fprocess_id):
4491         * process.c (Fprocess_name):
4492         * process.c (Fprocess_command):
4493         * process.c (init_process_io_handles):
4494         * process.c (start_process_unwind):
4495         * process.c (Fstart_process_internal):
4496         * process.c (Fopen_multicast_group_internal):
4497         * process.c (Fset_process_window_size):
4498         * process.c (read_process_output):
4499         * process.c (send_process):
4500         * process.c (Fprocess_tty_name):
4501         * process.c (Fset_process_buffer):
4502         * process.c (Fprocess_buffer):
4503         * process.c (Fprocess_mark):
4504         * process.c (set_process_filter):
4505         * process.c (Fset_process_filter):
4506         * process.c (Fprocess_filter):
4507         * process.c (Fprocess_send_region):
4508         * process.c (Fprocess_send_string):
4509         * process.c (exec_sentinel):
4510         * process.c (Fset_process_sentinel):
4511         * process.c (Fprocess_sentinel):
4512         * process.c (status_notify):
4513         * process.c (Fprocess_status):
4514         * process.c (Fprocess_exit_status):
4515         * process.c (process_send_signal):
4516         * process.c (Fprocess_send_eof):
4517         * process.c (deactivate_process):
4518         * process.c (remove_process):
4519         * process.c (Fdelete_process):
4520         * process.c (kill_buffer_processes):
4521         * process.c (Fprocess_kill_without_query):
4522         * process.c (Fprocess_kill_without_query_p):
4523         * rangetab.c:
4524         * rangetab.c (Fget_range_table):
4525         * rangetab.c (Fput_range_table):
4526         * rangetab.c (Fremove_range_table):
4527         * rangetab.c (Fclear_range_table):
4528         * search.c:
4529         * search.c (Fskip_chars_forward):
4530         * search.c (Fskip_chars_backward):
4531         * search.c (Fskip_syntax_forward):
4532         * search.c (Fskip_syntax_backward):
4533         * search.c (search_command):
4534         * search.c (Freplace_match):
4535         * search.c (Fregexp_quote):
4536         * select.c (Fown_selection_internal):
4537         * select.c (Fselection_owner_p):
4538         * select.c (Fselection_exists_p):
4539         * select.c (Fget_selection_internal):
4540         * specifier.c:
4541         * symbols.c:
4542         * symbols.c (Fintern):
4543         * symbols.c (Fintern_soft):
4544         * symbols.c (Funintern):
4545         * symbols.c (Fapropos_internal):
4546         * symbols.c (Fset_default):
4547         * syntax.c:
4548         * syntax.c (Fsyntax_table_p):
4549         * syntax.c (Fcopy_syntax_table):
4550         * syntax.c (Fset_syntax_table):
4551         * syntax.c (Fchar_syntax):
4552         * syntax.c (syntax_match):
4553         * syntax.c (Fmatching_paren):
4554         * syntax.c (Fforward_word):
4555         * syntax.c (scan_lists):
4556         * syntax.c (Fscan_lists):
4557         * syntax.c (Fscan_sexps):
4558         * syntax.c (Fparse_partial_sexp):
4559         * toolbar.c (Fcheck_toolbar_button_syntax):
4560         * tooltalk.doc:
4561         * window.c:
4562         * window.c (Fwindowp):
4563         * window.c (Fwindow_live_p):
4564         * window.c (Fwindow_point):
4565         * window.c (Fdelete_window):
4566         * window.c (Fnext_window):
4567         * window.c (Fprevious_window):
4568         * window.c (Fother_window):
4569         * window.c (window_loop):
4570         * window.c (Fget_lru_window):
4571         * window.c (Fsplit_window):
4572         * window.c (Fenlarge_window):
4573         * window.c (Fenlarge_window_pixels):
4574         * window.c (Fshrink_window):
4575         * window.c (Fshrink_window_pixels):
4576         * window.c (change_window_height):
4577         * window.c (Fwindow_configuration_p):
4578         * window.c (Fcurrent_window_configuration):
4579         * window.h:
4580         * casefiddle.c (casify_object):
4581         * casefiddle.c (Fupcase):
4582         * casefiddle.c (Fdowncase):
4583         * casefiddle.c (Fcapitalize):
4584         * casefiddle.c (Fupcase_initials):
4585         * casefiddle.c (casify_region_internal):
4586         * casefiddle.c (casify_region):
4587         * casefiddle.c (Fupcase_region):
4588         * casefiddle.c (Fdowncase_region):
4589         * casefiddle.c (Fcapitalize_region):
4590         * casefiddle.c (Fupcase_initials_region):
4591         * casefiddle.c (Fupcase_word):
4592         * casefiddle.c (Fdowncase_word):
4593         * casefiddle.c (Fcapitalize_word):
4594         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
4595         Replace 0 with '\0' when working with bytes.
4596         Replace initial "(" with "\(" in docstrings.
4597
4598 2000-11-01  Martin Buchholz  <martin@xemacs.org>
4599
4600         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
4601
4602         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
4603
4604 2000-10-31  Martin Buchholz  <martin@xemacs.org>
4605
4606         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
4607
4608 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
4609
4610         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
4611         correctly.
4612
4613 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
4614
4615         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
4616         (inhibit_auto_save_session): New variable.
4617         (vars_of_fileio): Declare and initialize them.
4618         * fileio.c (Fdo_auto_save): Don't create session file if
4619         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
4620
4621 2000-10-31  Martin Buchholz  <martin@xemacs.org>
4622
4623         * sgiplay.c (play_internal): C++ compilability.
4624         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
4625         * callproc.c (Fold_call_process_internal):
4626         Remove unused vars `env', `first'.
4627         * scrollbar.c (update_scrollbar_instance):
4628         #### unused var `current_window'.
4629         * redisplay-tty.c: Put currently unused vars insert_mode_on,
4630         etc. within #ifdef NOT_YET.
4631         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
4632         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
4633         * specifier.c (specifier_instance):
4634         #### unused var `tag'.
4635         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
4636
4637 2000-10-27  Martin Buchholz  <martin@xemacs.org>
4638
4639         * fns.c (Fbutlast):
4640         * fns.c (list_sort):
4641         * fns.c (Ffillarray):
4642         * fns.c (bytecode_nconc2):
4643         * fns.c (Fnconc):
4644         * fns.c (mapcar1):
4645         * fns.c (Fmapconcat):
4646         Be pedantically 64-bit correct.  For the time when someone will
4647         want to have a list with length > 2**32.
4648
4649         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
4650         Work around MIPSpro compiler bug.
4651
4652         * process-unix.c (unix_kill_child_process): Add snarky comment.
4653         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
4654
4655         * config.h.in: Oops, _getpt ==> _getpty
4656
4657 2000-10-26  Martin Buchholz  <martin@xemacs.org>
4658
4659         * config.h.in:
4660         * regex.c:
4661         Use void*, not char*, as return type of alloca().
4662
4663         * alloc.c (free_marker): Side effect inside assert expression!
4664
4665 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
4666
4667         * mule-charset.c (Fset_charset_ccl_program): To check
4668         if the given ccl program is valid, use setup_ccl_program()
4669         instead of CHECK_VECTOR().
4670         (Fmake_charset): Likewise.
4671
4672 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
4673
4674         * faces.c (get_extent_fragment_face_cache_index):
4675         Fix cachel.merged_faces memory leak.
4676
4677 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
4678
4679         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
4680         Reset MSB of octets obtained by DECODE_SJIS
4681         because of the incompatibility with Emacs.
4682         (ccl_driver)<CCL_ENCODE_SJIS>:
4683         Set MSB of octets before passing them to
4684         ENCODE_SJIS because of the incompatibility
4685         with Emacs.
4686
4687 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
4688
4689         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
4690         (DECLARE_LRECORD): Undo the last change.
4691         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
4692
4693 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
4694
4695         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
4696         the implementation to lrecord_implementations_table.
4697
4698 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
4699
4700         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
4701         initial value of `lrecord_type_##c_name' and
4702         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
4703         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
4704         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
4705         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
4706         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
4707
4708 2000-10-17  Martin Buchholz  <martin@xemacs.org>
4709
4710         * miscplay.c (sndcnv8S_2mono):
4711         (sndcnv2monounsigned):
4712         (sndcnvULaw_2linear):
4713         (sndcnv16swap):
4714         Remove implementation-defined behavior.
4715
4716 2000-10-12  Martin Buchholz  <martin@xemacs.org>
4717
4718         * input-method-xlib.c: Warning suppression.
4719
4720 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
4721
4722         * mule-ccl.c: Sync up with Emacs 21.0.90.
4723         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
4724         Do nothing.
4725         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
4726         Likewise.
4727         (ccl_driver[WriteMultibyteChar2]): Bug fix.
4728         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
4729         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
4730         leading char belongs to official 2-dimensional charset.
4731         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
4732         write the given character as is.  Otherwise,
4733         if it is a multibyte char, convert it by
4734         non_ascii_set_charptr_emchar, then write it.
4735         (CCL_WRITE_STRING): Likewise.
4736         (ccl_get_compiled_code): New function.
4737         (setup_ccl_program): When ccl_prog is invalid,
4738         return -1.
4739         (Fregister_code_conversion_map): New function.
4740         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
4741
4742         * mule-ccl.h: Sync up with Emacs 21.0.90.
4743         (Fregister_ccl_program): export it.
4744
4745         * redisplay-msw.c (separate_textual_runs):
4746         If ccl program is not valid, don't do ccl conversion.
4747
4748         * redisplay-x.c (separate_textual_runs): Ditto.
4749
4750         * file-coding.c (Fmake_coding_system):
4751         When type is ccl and value is vector, register it
4752         with a proper symbol.  And checks whether the
4753         given ccl program is valid.
4754         (mule_decode): When calling ccl_driver, if src indicates
4755         NULL pointer, set an empty string instead.
4756         (mule_encode): Likewise.
4757
4758 2000-10-11  Martin Buchholz  <martin@xemacs.org>
4759
4760         The following large batch of changes gets us back to a state of
4761         C++ compilability.  Extbyte is now a char, which means that
4762         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
4763
4764         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
4765
4766         * sound.c (Fplay_sound): Type correctness.
4767
4768         * select-x.c (hack_motif_clipboard_selection): Type correctness.
4769         (x_get_window_property): Type correctness.
4770         (receive_incremental_selection): unsigned char ==> Extbyte
4771         (selection_data_to_lisp_data): unsigned char ==> Extbyte
4772         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
4773         (Fx_store_cutbuffer_internal): Type correctness.
4774
4775         * process-unix.c (try_to_initialize_subtty): Type correctness.
4776
4777         * objects-x.c (x_print_color_instance): Type correctness.
4778         (x_print_font_instance): Type correctness.
4779         (x_list_fonts): SExtbyte ==> Extbyte.
4780         (valid_x_font_name_p): SExtbyte ==> Extbyte.
4781         (x_find_charset_font): SExtbyte ==> Extbyte.
4782         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
4783         (truename_via_XListFonts): SExtbyte ==> Extbyte.
4784         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
4785         Use bufbyte_strcmp.
4786
4787         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
4788         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
4789         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
4790         (BYTE_C0_P): Use bit ops for char-signedness safety.
4791         (BYTE_C1_P): Use bit ops for char-signedness safety.
4792         (CHARSET_BY_LEADING_BYTE):
4793         (CHARSET_BY_ATTRIBUTES):
4794         Always use inline function.
4795         Use type_checking_assert.
4796         Hide chlook.
4797
4798         * mule-charset.c (non_ascii_charptr_copy_char):
4799         Modify to work with both ASCII and non-ASCII characters.
4800         Improve docs and variable names.
4801         Replace over-clever fall-through switch with a simple loop.
4802         (Lstream_get_emchar_1):
4803         Replace over-clever fall-through switch with a simple loop.
4804
4805         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
4806         Warning suppression.
4807
4808         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
4809         the return value of Lstream_getc, which could be EOF as well.
4810
4811         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
4812
4813         * lisp.h: Make Extbyte a char, not unsigned char, so that external
4814         APIs can be used on Extbytes without casts.  Risky!
4815         (SExtbyte): Remove.
4816         (UExtbyte): Remove.
4817
4818         * input-method-xlib.c (XIM_init_device):
4819         Use Xlib.h instead of IntrinsicP.h.
4820         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
4821         which will break in X11R7.
4822         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
4823         to call XRegisterIMInstantiateCallback with correct types.
4824
4825         * gui-x.c (button_item_to_widget_value): Type correctness.
4826
4827         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
4828
4829         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
4830         (xbm_instantiate_1): Type correctness.
4831         (BUILD_GLYPH_INST):  Type correctness.
4832
4833         * fileio.c (Fsubstitute_in_file_name): Type correctness.
4834
4835         * file-coding.c:
4836         (decode_coding_sjis):
4837         (decode_coding_big5):
4838         (decode_coding_ucs4):
4839         (decode_coding_utf8):
4840         (decode_coding_iso2022):
4841         (decode_coding_no_conversion):
4842         Make all decoding functions take an Extbyte * arg.
4843         (encode_coding_sjis):
4844         (encode_coding_big5):
4845         (encode_coding_ucs4):
4846         (encode_coding_utf8):
4847         (encode_coding_iso2022):
4848         (encode_coding_no_conversion):
4849         Make all encoding functions take a Bufbyte * arg.
4850         Use size_t instead of unsigned int for memory sizes.
4851         Only cast to unsigned char whenever dereferencing Extbyte *.
4852
4853         * doc.c (unparesseuxify_doc_string): Type correctness.
4854
4855         * console-x.c (split_up_display_spec):
4856         Rewrite without using details of internal string representation.
4857         (x_semi_canonicalize_device_connection): Type correctness.
4858
4859         * config.h.in:
4860         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
4861         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
4862         (HAVE_XFREE386): Removed.
4863
4864         * buffer.h (DEC_CHARPTR): `const' correctness.
4865         (bufbyte_strcmp): New.
4866         (bufbyte_memcmp): New.
4867
4868         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
4869
4870         * buffer.h (XCHAR_OR_CHAR_INT):
4871         Always use inline function.
4872         Remove redundant type checking assert() - XINT will abort quite nicely.
4873
4874 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
4875
4876         * search.c (Freplace_match): Set newtext to an empty string.
4877
4878 2000-10-10  Martin Buchholz  <martin@xemacs.org>
4879
4880         * s/decosf1-3.h: Remove #include of stropts.h
4881         * s/ptx.h: Remove #include of stropts.h
4882         * s/usg5-4.h: Remove #include of stropts.h
4883         * sysproc.h:
4884         * config.h.in:
4885         Use stropts.h, not sys/stropts.h.
4886         Use strtio.h, not sys/strtio.h.
4887
4888 2000-10-04  Martin Buchholz <martin@xemacs.org>
4889
4890         * XEmacs 21.2.36 is released.
4891
4892 2000-09-21  Andy Piper  <andy@xemacs.org>
4893
4894         * glyphs-x.c (x_redisplay_widget): make sure non-structural
4895         changes still involve copying the widget tree.
4896         (update_widget_face): make sure a change is register in the widget
4897         tree. Call update_tab_widget_face appropriately.
4898         (update_tab_widget_face): ditto.
4899         (x_tab_control_redisplay): make sure non-structural changes still
4900         involve copying the widget tree.
4901
4902 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
4903
4904         * lread.c (locate_file): Check the path element is non-nil.
4905
4906 2000-10-02  Martin Buchholz  <martin@xemacs.org>
4907
4908         * lisp.h: Warning suppression for SCO compilers.
4909
4910         * redisplay-tty.c (reset_tty_modes): Fix crash.
4911         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
4912
4913 2000-09-27  Martin Buchholz  <martin@xemacs.org>
4914
4915         Big signal/process handling overhaul.  Bugs fixed:
4916         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
4917         M-x comint-kill-subjob should work for both values nil and t of
4918         process-connection-type. It was broken on most platforms.
4919         Testing on Irix and Cygwin still needed.  Other plaforms tested.
4920         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
4921         * process-unix.c: Signal/Process handling overhaul.
4922         (pty_name): make 64 bytes, as `expect' does, for paranoia.
4923         (allocate_pty): Use all available modern methods of allocating
4924         ptys, falling back to old style BSD allocation as a last resort.
4925         Use allegedly more secure Unix98 pty allocation by default.
4926         (allocate_pty_the_old_fashioned_way): New. the last resort.
4927         (unix_create_process): Push ptem, ldterm, ttcompat where
4928         available.  Autoconfiscate.
4929         (try_to_initialize_subtty): New.
4930         (unix_kill_child_process): Proper signal handling for ptys on most
4931         platforms, using special knowledge of AIX, BSD, etc...
4932         (unix_create_process): Always disconnect_controlling_terminal() for
4933         subprocesses, whether using ptys or not.
4934         * process.h: Remove old getpt-dependent PTY code.
4935         * process.c (Fprocess_send_signal): New, obvious generic function.
4936         (decode_signal): New.
4937         (Finterrupt_process):
4938         (Fkill_process):
4939         (Fquit_process):
4940         (Fstop_process):
4941         (Fcontinue_process):
4942         (Fsignal_process): Use decode_signal.
4943         (process_send_signal):
4944         Many docstring corrections.
4945         Allow any signal to be sent to a process object.
4946         * config.h.in: Add symbols for big signal/process overhaul.
4947         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
4948         * sysproc.h: Include process-related headers, where available:
4949         sys/stropts.h sys/strtio.h pty.h libutil.h
4950         * s/irix4-0.h:
4951         * s/irix5-0.h:
4952         * s/cygwin32.h:
4953         * s/gnu.h:
4954         * s/linux.h:
4955         * s/hpux.h:
4956         * s/aix3-1.h:
4957         Remove old S&M pty stuff.
4958         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
4959         * systty.h: Simplify cpp hackery, improve comments.
4960         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
4961
4962         * editfns.c (Fformat_time_string):
4963         Be a little more paranoid with the return value of ctime.
4964
4965         * fileio.c (check_executable):
4966         (check_writable):
4967         Use symbolic constants X_OK, W_OK.
4968
4969         * console-x.c (split_up_display_spec): Fix a warning.
4970
4971 2000-10-02  Martin Buchholz  <martin@xemacs.org>
4972
4973         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
4974         * ntproc.c (sys_spawnve): make_string ==> build_string
4975         Small clarity improvements.
4976
4977 2000-09-30  Martin Buchholz  <martin@xemacs.org>
4978
4979         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
4980
4981         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
4982
4983         * config.h.in (HAVE_STRCASECMP): Remove.
4984
4985 2000-09-29  Martin Buchholz  <martin@xemacs.org>
4986
4987         * redisplay-output.c (redisplay_output_pixmap):
4988         Cleaner and possibly more 64-bit correct code.
4989
4990 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
4991
4992         * dumper.c (pdump_load_finish): move restoration of
4993         `noninteractive1' to emacs.c (main_1).
4994         * emacs.c (main_1): protect LISP-visible command-line flags
4995         from pdump_load().
4996
4997 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
4998
4999         * Makefile.in.in (versionclean):  Use EXE_TARGET and
5000         DUMP_TARGET instead of literal program names.
5001
5002 2000-09-20  Martin Buchholz  <martin@xemacs.org>
5003
5004         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
5005
5006 2000-09-19  Martin Buchholz  <martin@xemacs.org>
5007
5008         * *: Spelling mega-patch
5009
5010 2000-09-19  Martin Buchholz  <martin@xemacs.org>
5011
5012         * fns.c (bad_bad_turtle):
5013         Delete "Eek!" comment, since we fixed the bug to which it refers.
5014
5015 2000-09-16  Martin Buchholz  <martin@xemacs.org>
5016
5017         * alloca.c: Replace REGISTER with register.
5018
5019 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
5020
5021         * file-coding.c (ucs_to_char): Use countof.
5022
5023 2000-09-16  Martin Buchholz  <martin@xemacs.org>
5024
5025         * file-coding.c: (ucs_to_char):
5026         (complex_vars_of_file_coding):
5027         Use countof instead of sizeof.
5028         Use CHECK_NATNUM instead of CHECK_INT.
5029
5030         * sysdep.c (strcasecmp): Remove.
5031         * device-x.c (ascii_strcasecmp): New.
5032         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
5033         Avoid using non-standard non-portable strcasecmp.
5034
5035 2000-09-16  Martin Buchholz  <martin@xemacs.org>
5036
5037         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
5038         * font-lock.c: remove reference to emacsfns.h.
5039         * search.c: small doc improvement.
5040         * event-Xt.c: correct file names in comments.
5041         * console-x.h Correct file names in comments.
5042         * frame.c: Correct file names in comments.
5043         * event-stream.c: remove Energize from comments.
5044
5045 2000-09-15  Martin Buchholz  <martin@xemacs.org>
5046
5047         * symeval.h (DEFERROR_STANDARD):
5048         (DEFERROR):
5049         (DEFSYMBOL):
5050         (DEFSYMBOL_NO_DUMP):
5051         (DEFSYMBOL_MULTIWORD_PREDICATE):
5052         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
5053         (DEFKEYWORD):
5054         The construct &##name is not sensible C.
5055         Fixes compilation errors with Unixware native compiler.
5056
5057 2000-09-14  Martin Buchholz  <martin@xemacs.org>
5058
5059         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
5060         (next_frame_internal): Removed.  We now just have next_frame.
5061         (next_frame):
5062         Write a simpler and cleaner one-pass algorithm.
5063         Remove called_from_delete_device arg and #ifdefed-out code.
5064         (previous_frame):
5065         Renamed from prev_frame.  Update callers.
5066         Cleaned up to have an analogous implementation to next_frame.
5067         (other_visible_frames_internal): Remove the
5068         called_from_delete_device bogus arg, and hence, remove this
5069         function.  Just use other_visible_frames().
5070
5071         * window.c (Fnext_window):
5072         Prettify docstring.
5073         Since next_frame() is guaranteed to return a frame, remove check
5074         for nil inserted in previous patch.
5075         (Fprevious_window):
5076         Prettify docstring.
5077         Make code look more like Fnext_window.
5078         (window_loop):
5079         Respect the `console' arg when iterating through windows.
5080         Fixes bug: (get-buffer-window buffer t device) not respecting
5081         the `device' arg.
5082         This function needs more work, as others have pointed out.
5083
5084         * frame.h: Rename prev_frame to previous_frame.
5085         device_matches_console_spec no longer takes a `frame' arg.
5086
5087         * s/gnu.h:
5088         * s/linux.h:
5089         * s/hpux.h:
5090         Use EMACS_BLOCK_SIGNAL instead of sigblock.
5091         From "Golubev I. N." <gin@mo.msk.ru>.
5092
5093         * make-src-depend: Fix typo.
5094
5095 2000-09-13  Martin Buchholz  <martin@xemacs.org>
5096
5097         * window.c (Fnext_window):
5098         next_frame() might return nil, not a frame.
5099         Fixes this crash:
5100         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
5101
5102         * frame.c (next_frame_internal):
5103         We've passed a frame if we've passed its device.
5104         Fixes this crash:
5105         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
5106 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
5107
5108 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
5109
5110         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
5111         Allow option to suppress accelerators in menu/dialog items.
5112         (populate_or_checksum_helper): Pass dialog title through above.
5113
5114 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
5115
5116         * event-msw.c (mswindows_key_to_emacs_keysym):
5117         Add "pause" key, fix "menu" key.
5118
5119 2000-09-09  Martin Buchholz  <martin@xemacs.org>
5120
5121         * eval.c (reinit_vars_of_eval):
5122         Increase max_lisp_eval_depth to 1000,
5123         required for thai-xtis.el to byte-compile under some circumstances.
5124
5125 2000-09-04  Martin Buchholz  <martin@xemacs.org>
5126
5127         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
5128         From Kenichi Handa.
5129
5130 2000-09-01  Martin Buchholz  <martin@xemacs.org>
5131
5132         * make-src-depend: Make the generated Makefiles smaller.
5133
5134         * s/hpux.h (SETUP_SLAVE_PTY):
5135         Provide a %d in the format string for the errno argument.
5136
5137         * editfns.c (Ftemp_directory):
5138         Warning fix.
5139         Avoid buffer overrun on very long file name.
5140
5141         * input-method-xlib.c (XIM_init_device):
5142         6th parameter of XRegisterIMInstantiateCallback has different
5143         pointer types on different OSes, so simply cast to (void *).
5144
5145         * unexhp9k800.c: Warning fixes.  Fiddly changes.
5146
5147         * sysdll.c (dll_open):
5148         shl_load will hang hard if passed a NULL filename.
5149         Simply return NULL for compatibility with dlopen.
5150         * sysdll.c: Conform to XEmacs coding standards.
5151
5152         * sysdep.c (get_pty_max_bytes):
5153         Support pty input lines longer than 512 bytes on HP-UX 10.20.
5154
5155 2000-08-31  Martin Buchholz  <martin@xemacs.org>
5156
5157         * tooltalk.c: Add #include <syssignal.h>
5158
5159 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
5160
5161         * s/hpux.h: Don't use undefined function sigunblock().
5162
5163 2000-08-31  Martin Buchholz  <martin@xemacs.org>
5164
5165         * config.h.in: Add HAVE_BALLOON_HELP.
5166         * emacs.c: Use HAVE_BALLOON_HELP.
5167         * Makefile.in.in (x_objs):
5168         Make Balloon Help conditional on finding shape.h.
5169
5170 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
5171
5172         * syntax.c (regex_emacs_buffer_p): New variable.
5173         * syntax.h (regex_emacs_buffer_p): extern.
5174         * search.c (looking_at_1):
5175         (string_match_1):
5176         (fast_string_match):
5177         (search_buffer): Set regex_emacs_buffer_p.
5178         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
5179         when before_dot, at_dot, after_dot.
5180
5181 2000-08-23  Andy Piper  <andy@xemacs.org>
5182
5183         * gui-x.c (popup_selection_callback): Only set action_occurred
5184         when we really have an image instance.
5185         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
5186
5187 2000-08-23  Andy Piper  <andy@xemacs.org>
5188
5189         * gui-msw.c (mswindows_handle_gui_wm_command): set
5190         action_occurred.
5191         * gui-x.c (popup_selection_callback): ditto.
5192
5193         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
5194         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
5195         (struct Lisp_Image_Instance): add action_occurred flag.
5196
5197         * glyphs.c (redisplay_subwindow): use action_occurred flag.
5198         (image_instance_changed): ditto.
5199         (reset_frame_subwindow_instance_cache): only unmap windows - do
5200         not remove them from the cache also.
5201
5202         * glyphs-widget.c (tab_control_update): better debug.
5203         (progress_gauge_update): ditto.
5204         (layout_update): ditto.
5205         (layout_instantiate): ditto.
5206         (tab_control_order_only_changed): cope with null pending items.
5207
5208         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
5209         debug. Force selection of an item when an action occurred. Cope
5210         with null pending_items.
5211         (mswindows_progress_gauge_redisplay): better debug.
5212         * glyphs-x.c (x_tab_control_redisplay): ditto.
5213
5214         * redisplay.c (redisplay_frame): reset the frame cache if the
5215         frame is garbaged.
5216
5217         * window.c (Fset_window_configuration): potentially re-enable
5218         frame cache reset.
5219         (window_unmap_subwindows): need to finalize instances here since
5220         it is only used in mark_window_as_deleted.
5221
5222 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
5223
5224         * nas.c (SndOpenDataForReading):
5225         nas.c (WaveOpenDataForReading):
5226         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
5227         Somehow escaped from the 2000-08-14 patch.
5228
5229 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5230
5231         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
5232         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
5233
5234 2000-08-21  Andy Piper  <andy@xemacs.org>
5235
5236         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
5237         window if it is not already displayed.
5238
5239         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
5240         it is not already displayed.
5241
5242         * window.c (Fset_window_configuration): don't reset the frame
5243         cache.
5244
5245         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
5246         instances from the frame cache if we are actually finalizing them.
5247         (reset_frame_subwindow_instance_cache): reset frame cache only
5248         after unmapping everything.
5249         (map_subwindow): set displayed flag after mapping.
5250
5251 2000-08-21  Martin Buchholz  <martin@xemacs.org>
5252
5253         * data.c (indirect_function):
5254         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
5255
5256         * eval.c (function_argcount):
5257         Use original function when signaling errors.
5258
5259 2000-08-18  Andy Piper  <andy@xemacs.org>
5260
5261         * frame.c (delete_frame_internal): use new
5262         free_frame_subwindow_instances name.
5263
5264         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
5265         (add_tab_item): make return type correct.
5266         (mswindows_tab_control_instantiate): assert index of tab.
5267         (mswindows_tab_control_redisplay): Re-code to use
5268         gui_item_equal_sans_selected and gui_item_list_find_selected.
5269
5270         * glyphs-widget.c (tab_control_update): Correct comment.
5271
5272         * window.c (window_unmap_subwindows): use new
5273         unmap_subwindow_instance_cache_mapper.
5274         (window_unmap_subwindows_cache_mapper): deleted.
5275         (Fset_window_configuration): comparisons should now be with
5276         EQ. Preserve the subwindow instance cache across configuration
5277         changes.
5278         (allocate_window): ditto.
5279         (make_dummy_parent): ditto.
5280
5281         * glyphs.c (free_frame_subwindow_instances): rename from
5282         free_frame_subwindow_instance_cache. finalize all instances rather
5283         than just those in the display cache.
5284         (finalize_all_subwindow_instances): walk windows unmapping and
5285         finalizing subwindows.
5286         (unmap_subwindow_instance_cache_mapper): moved from
5287         window.c. Allow finalization as well as unmapping.
5288
5289         * gui.c (gui_item_list_find_selected): new function.
5290
5291         * gui.h (gui_item_list_find_selected): declare.
5292
5293         * glyphs-x.c (x_tab_control_redisplay): pick tab
5294         explicitly. Re-code to use gui_item_equal_sans_selected and
5295         gui_item_list_find_selected.
5296
5297         * glyphs-x.h: add lwlib-utils.h
5298
5299         * buffer.c (Frecord_buffer): undo previous change.
5300
5301 2000-08-09  Vin Shelton  <acs@xemacs.org>
5302
5303         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
5304         possible.  Create temporary files more securely.  The patch was
5305         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
5306         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
5307         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
5308         for details.
5309
5310 2000-08-07  Ben Wing  <ben@xemacs.org>
5311
5312         * getloadavg.c: remove duplicate (and windows-breaking)
5313         includes of fcntl.h and sys/file.h.
5314
5315         * nt.c: remove duplicate getloadavg() definition.
5316
5317         * sysdll.h (Qdll_filename_encoding): add missing stand-in
5318         encodings.
5319
5320 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
5321
5322         * eval.c (function_argcount): If function needs to be autoloaded
5323         actually use the loaded definition.
5324         GCPRO function.
5325
5326 2000-08-05  Ben Wing  <ben@xemacs.org>
5327
5328         * getloadavg.c: add prototype for getloadavg().  remove
5329         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
5330         of the code).  remove duplicate header includes.
5331
5332         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
5333
5334         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
5335         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
5336         useful load average.
5337
5338         * alloc.c (reinit_alloc_once_early): removed references to
5339         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
5340         the lisp vars are the only things referencing the malloc_sbrk_*
5341         vars, and they were already if 0'd out.  these vars only exist
5342         in the older malloc.c, which is basically unused, and they're
5343         only for informational purposes.
5344
5345         * m\*.h: removed useless VIRT_ADDR_VARIES.
5346
5347         * m\powerpc.h: removed stray NO_ARG_ARRAY.
5348
5349 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
5350
5351         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
5352         color if the image is a mono pixmap.
5353
5354 2000-07-30  Ben Wing  <ben@xemacs.org>
5355
5356         * Makefile.in.in (release):
5357         Remove stray @.
5358
5359         * buffer.c (directory_is_current_directory):
5360         * dired-msw.c (mswindows_get_files):
5361         * dired.c:
5362         * dired.c (Fdirectory_files):
5363         * dired.c (file_name_completion_stat):
5364         * dired.c (Ffile_attributes):
5365         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
5366         preprocessor tricks, to avoid problems on some machines
5367         (e.g. SCO).
5368
5369         * callproc.c (egetenv): GC docs.
5370
5371         * console-msw.h:
5372         * console-msw.h (struct mswindows_dialog_id):
5373         * lrecord.h (lrecord_type):
5374         New object for use with MSW dialogs.
5375
5376         * console.h (struct console_methods):
5377         New enable/disable frame methods, for proper modal dialogs.
5378
5379         * device-msw.c (msprinter_default_printer): Fix to follow
5380         proper Mule conventions.
5381
5382         * device-msw.c:
5383         * device-msw.c (signal_open_printer_error):
5384         * device-msw.c (msprinter_init_device):
5385         * device-msw.c (ensure_not_printing):
5386         * device-msw.c (plist_get_margin):
5387         * device-msw.c (Fmsprinter_select_settings):
5388         * device-msw.c (finalize_devmode):
5389         * device-msw.c (Fmsprinter_settings_despecialize):
5390         * device-msw.c (signal_enum_priner_error):
5391         * extents.c (decode_extent):
5392         * extents.c (decode_map_extents_flags):
5393         * extents.c (decode_extent_at_flag):
5394         * extents.c (Fextent_at):
5395         * extents.c (Fextents_at):
5396         * extents.c (symbol_to_glyph_layout):
5397         [[[[2]]]] Use structured errors.
5398
5399         * dialog-msw.c:
5400         * dialog-msw.c (mswindows_is_dialog_msg):
5401         * dialog-msw.c (mark_mswindows_dialog_id):
5402         * dialog-msw.c (dialog_proc):
5403         * dialog-msw.c (handle_question_dialog_box):
5404         * dialog-msw.c (syms_of_dialog_mswindows):
5405         Define new object to clean up marking; use it as a dialog identifier.
5406         Call new delete-dialog-box-hook.
5407
5408         * dialog-x.c (dbox_selection_callback):
5409         * dialog-x.c (dbox_descriptor_to_widget_value):
5410         * dialog-x.c (x_make_dialog_box_internal):
5411         Call new delete-dialog-box-hook.
5412         Return an id.
5413
5414         * dialog.c:
5415         * dialog.c (syms_of_dialog):
5416         * dialog.c (vars_of_dialog):
5417         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
5418
5419         * eval.c:
5420         * eval.c (signal_call_debugger):
5421         when noninteractive, output stack traces on the console instead
5422         of in a (never-seen) buffer.
5423
5424         * eval.c (signal_type_error):
5425         * eval.c (invalid_argument_2):
5426         * lisp.h:
5427         new funs for use w/structured errors.
5428
5429         * event-Xt.c:
5430         * event-Xt.c (x_to_emacs_keysym):
5431         * event-Xt.c (describe_event):
5432         * event-Xt.c (emacs_Xt_event_handler):
5433         * event-Xt.c (vars_of_event_Xt):
5434         * event-msw.c:
5435         * event-msw.c (mswindows_wnd_proc):
5436         * event-msw.c (vars_of_event_mswindows):
5437         rename {x,mswindows}-debug-events to debug-{}-events for
5438         consistency with other debug-foo variables.
5439
5440         * event-stream.c:
5441         document next-event more clearly.
5442
5443         * fileio.c (Ffile_name_directory):
5444         * fileio.c (Ffile_name_nondirectory):
5445         * fileio.c (Funhandled_file_name_directory):
5446         * fileio.c (file_name_as_directory):
5447         * fileio.c (Ffile_name_as_directory):
5448         * fileio.c (directory_file_name):
5449         * fileio.c (Fdirectory_file_name):
5450         * fileio.c (Fmake_temp_name):
5451         * fileio.c (Ffile_truename):
5452         * fileio.c (Fsubstitute_in_file_name):
5453         * fileio.c (expand_and_dir_to_file):
5454         * fileio.c (barf_or_query_if_file_exists):
5455         * fileio.c (check_executable):
5456         * fileio.c (Ffile_exists_p):
5457         * fileio.c (Ffile_writable_p):
5458         * fileio.c (Ffile_directory_p):
5459         * fileio.c (Ffile_regular_p):
5460         * fileio.c (Ffile_modes):
5461         * fileio.c (Ffile_newer_than_file_p):
5462         * fileio.c (Fverify_visited_file_modtime):
5463         * fileio.c (Fset_visited_file_modtime):
5464         * fileio.c (auto_save_1):
5465         (1). (2).
5466         fix up gcpro's.
5467
5468         * frame-msw.c:
5469         * frame-msw.c (mswindows_init_frame_1):
5470         * frame-msw.c (mswindows_enable_frame):
5471         * frame-msw.c (error_frame_unsizable):
5472         * frame-msw.c (msprinter_init_frame_1):
5473         * frame-msw.c (msprinter_init_frame_3):
5474         * frame-msw.c (console_type_create_frame_mswindows):
5475         (2).
5476         implement new enable/disable frame methods.
5477
5478         * frame-x.c:
5479         * frame-x.c (x_enable_frame):
5480         * frame-x.c (console_type_create_frame_x):
5481         implement new enable/disable frame methods.
5482
5483         * frame.c:
5484         * frame.c (Fdisable_frame):
5485         * frame.c (syms_of_frame):
5486         * frame.h (struct frame):
5487         implement new enable/disable frame methods/functions.
5488
5489         * general-slots.h:
5490         add initial-focus.
5491
5492         * glyphs-msw.c (mswindows_widget_instantiate):
5493         comment that initial-focus should be implemented.
5494
5495         * glyphs-widget.c:
5496         * glyphs-widget.c (check_valid_instantiator):
5497         * glyphs-widget.c (check_valid_orientation):
5498         * glyphs-widget.c (check_valid_tab_orientation):
5499         * glyphs-widget.c (check_valid_justification):
5500         * glyphs-widget.c (check_valid_border):
5501         * glyphs-widget.c (check_valid_callback):
5502         * glyphs-widget.c (check_valid_int_or_function):
5503         * glyphs-widget.c (check_valid_string_or_vector):
5504         * glyphs-widget.c (check_valid_item_list_1):
5505         * glyphs-widget.c (widget_validate):
5506         * glyphs-widget.c (combo_box_validate):
5507         * glyphs-widget.c (widget_instantiate):
5508         * glyphs-widget.c (syms_of_glyphs_widget):
5509         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
5510         * glyphs-widget.c (image_instantiator_combo_box):
5511         * glyphs-widget.c (image_instantiator_scrollbar):
5512         * glyphs-widget.c (image_instantiator_tab_control):
5513         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
5514         (2).
5515         support (unimplemented) keyword initial-focus.
5516         reindent long macros.
5517
5518         * glyphs-x.c (x_redisplay_widget):
5519         * glyphs-x.c (x_button_instantiate):
5520         * glyphs-x.c (x_button_redisplay):
5521         * glyphs-x.c (x_progress_gauge_instantiate):
5522         * glyphs-x.c (x_edit_field_instantiate):
5523         * glyphs-x.c (x_combo_box_instantiate):
5524         * glyphs-x.c (x_tab_control_instantiate):
5525         * glyphs-x.c (x_label_instantiate):
5526         * gui-x.c:
5527         * gui-x.c (button_item_to_widget_value):
5528         * gui-x.c (gui_items_to_widget_values_1):
5529         * gui-x.c (gui_item_children_to_widget_values):
5530         * gui-x.c (gui_items_to_widget_values):
5531         * gui-x.h:
5532         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
5533         add new flag to gui-parsing routines to indicate whether
5534         accelerator specs should be supported.
5535
5536         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
5537
5538         * glyphs.h (struct Lisp_Image_Instance):
5539         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
5540         add initial-focus flag.
5541
5542         * gui.c:
5543         * gui.c (syms_of_gui):
5544         * gui.c (vars_of_gui):
5545         clean up menu-no-selection-hook.
5546
5547         * gui.h:
5548         support delete-dialog-box-hook.
5549
5550         * lread.c (Fload_internal):
5551         * lread.c (locate_file_in_directory_mapper):
5552         (1).
5553
5554         * lrecord.h:
5555         * lrecord.h (struct toolbar_button):
5556         * lrecord.h (syms_of_toolbar):
5557         document how to create a new object.
5558
5559         * menubar-msw.c (mswindows_char_is_accelerator):
5560         may be called on frames w/o menus.
5561
5562         * menubar.c (vars_of_menubar):
5563         clean up :filter docs.
5564
5565         * nt.c (readdir):
5566         * ntproc.c:
5567         (1).
5568
5569         * process-nt.c:
5570         * process-nt.c (validate_signal_number):
5571         * process-nt.c (signal_cannot_launch):
5572         * process-nt.c (nt_create_process):
5573         * process-nt.c (nt_send_process):
5574         * process-nt.c (nt_kill_child_process):
5575         * process-nt.c (nt_open_network_stream):
5576         * process-nt.c (syms_of_process_nt):
5577         (2).
5578         delete quote-handling.  call new lisp code that does it better.
5579
5580         * process-unix.c (connect_to_file_descriptor):
5581         * process-unix.c (allocate_pty):
5582         * process-unix.c (unix_send_process):
5583         * process-unix.c (unix_kill_child_process):
5584         * process-unix.c (unix_open_network_stream):
5585         * process-unix.c (unix_open_multicast_group):
5586         (1). (2).
5587
5588         * process.c:
5589         * process.c (Fstart_process_internal):
5590         (2).  need to canonicalize process path even if absolute.
5591
5592         * select-msw.c (symbol_to_ms_cf):
5593         * select-msw.c (ms_cf_to_symbol):
5594         * select-msw.c (cf_is_autofreed):
5595         * select-msw.c (mswindows_destroy_selection):
5596         * select.c:
5597         * select.c (syms_of_select):
5598         * select.h:
5599         support dibv5, fix bugs. (from Mike Alexander)
5600
5601         * select.c (Fget_selection_internal):
5602         * select.c (select_convert_out):
5603
5604         * sysdep.c:
5605         * sysdep.c (xemacs_stat):
5606         renamed.
5607
5608         * sysdep.c (mkdir):
5609         * sysdep.c (rmdir):
5610         but keep original stat() here because we provide encapsulation
5611         around these funs.
5612
5613         * sysfile.h:
5614         * sysfile.h (fstat):
5615         remove stat garbage.
5616
5617         * syswindows.h:
5618         fix X/MSW conflict.
5619         don't include tchar.h.  it's inappropriate because it makes
5620         compile-time distinctions when we want runtime distinctions.
5621         (we provide our own tchar replacements)
5622
5623         * toolbar.c:
5624         use default object printer for toolbar-button.
5625
5626         * unexcw.c:
5627         make sure we don't encapsulate.
5628
5629         * window.c (vars_of_window):
5630         emphasize that temp-buffer-show-hook is obsolete.
5631
5632 2000-08-05  Martin Buchholz  <martin@xemacs.org>
5633
5634         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
5635         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
5636
5637         * events.c (Fevent_timestamp_lessp):
5638         Not 64-bit clean.  Use EMACS_INT, not int.
5639
5640 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
5641
5642         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
5643         unsigned int and changed the last enum to
5644         lrecord_type_last_built_in_type.
5645         (lrecord_implementations_table): changed prototype to know how
5646         long the array is supposed to be.
5647         (lrecord_type_count): new unsigned int to keep track of the
5648         current number of lisp lrecord types.
5649         (DEFINE_EXTERNAL_LRECORD):
5650         (DECLARE_EXTERNAL_LRECORD): Added these two for external
5651         dynamic-modules to declare new lisp types. They are the same
5652         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
5653         int for each new type, and increment lrecord_type_count by 1.
5654
5655         * alloc.c (lrecord_implementations_table): Changed to reference
5656         lrecord_type_last_built_in_type for the size of the array.
5657         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
5658
5659 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
5660
5661         * glyphs.h (check_valid_item_list): Renamed from
5662         check_valid_item_list_1.
5663
5664 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
5665
5666         * select.c (Qselect_coerce): New.
5667         * select.c (Vselection_coercion_alist): New.
5668         * select.c (syms_of_select): Declare.
5669         * select.c (get-selection-internal): Use it.
5670         Use the new select-coerce functionality.
5671
5672         * select.c (select_coerce): New.
5673         * select.h (select_coerce): Declare.
5674         New function to coerce one type of data into another.
5675
5676 2000-08-03  Martin Buchholz  <martin@xemacs.org>
5677
5678         * callproc.c (Fcall_process_internal):
5679         (Fcall_process_internal):
5680         * process-unix.c (unix_create_process):
5681         Save and restore the value of errno, so that error messages are accurate.
5682
5683 2000-08-01  Martin Buchholz  <martin@xemacs.org>
5684
5685         * elhash.c (print_hash_table):
5686         Fix printing of hash tables to also use `key-and-value' instead of `t'.
5687         Prettify docstrings and indentation.
5688
5689 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
5690
5691         * window.c (Fwindow_pixel_edges): Subtract frame border and
5692         gutter size.
5693
5694 2000-07-31  Andy Piper  <andy@xemacs.org>
5695
5696         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
5697         will acknowledge the change.
5698
5699         * glyphs.h: declare tab_control_order_only_changed.
5700
5701         * glyphs-x.c (x_tab_control_redisplay): use
5702         tab_control_order_only_changed.
5703
5704         * glyphs-widget.c (tab_control_order_only_changed): new function.
5705
5706         * glyphs-msw.c (mswindows_tab_control_redisplay): use
5707         tab_control_order_only_changed.
5708
5709         * gui.c (gui_item_equal_sans_selected): new function.
5710         (gui_item_equal): use it.
5711
5712         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
5713         :properties in favor of :items..
5714
5715         * glyphs-widget.c (check_valid_item_list): rename from
5716         check_valid_item_list_1.
5717         (check_valid_item_list_1): renamed.
5718         (combo_box_validate): deprecate :properties in favor of :items.
5719         (widget_instantiate): ditto.
5720         (tab_control_update): ditto.
5721         (image_instantiator_combo_box): ditto.
5722         (image_instantiator_tree_view): ditto.
5723         (image_instantiator_tab_control): ditto.
5724         (layout_post_instantiate): remove dead code.
5725
5726         * print.c (debug_print_no_newline): only write to debugger if in
5727         WIN32_NATIVE.
5728
5729         * elhash.c (Fmake_hash_table): update doc string.
5730
5731         * event-msw.c (mswindows_wnd_proc): don't allow processing of
5732         messages whilst in GC. This at least stops XEmacs crashing but has
5733         the potential for wierd behaviour.
5734
5735 2000-07-31  Martin Buchholz  <martin@xemacs.org>
5736
5737         * config.h.in:
5738         Make existence of s&m files optional.
5739
5740         * s/bsd386.h: Remove HAVE_GETLOADAVG.
5741         * s/freebsd.h: Remove HAVE_GETLOADAVG.
5742         * s/gnu.h: Remove HAVE_GETLOADAVG.
5743         * s/netbsd.h: Remove HAVE_GETLOADAVG.
5744         * s/sol2.h: Remove HAVE_GETLOADAVG.
5745         * lisp.h: Remove getloadavg() declaration.
5746         * fns.c:
5747         Include <sys/loadavg.h> if available.
5748         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
5749         * config.h.in:  Group together getloadavg()-related macros.
5750         Use only configure-time tests to detect getloadavg().
5751
5752 2000-07-30  Martin Buchholz  <martin@xemacs.org>
5753
5754         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
5755
5756 2000-07-25  Andy Piper  <andy@xemacs.org>
5757
5758         * syswindows.h: add tchar.h for native builds.
5759
5760         * frame.c (syms_of_frame): remove set-glyph-image.
5761
5762         * general-slots.h: add Qset_glyph_image.
5763
5764         * glyphs-widget.c (layout_update): add domain arg to
5765         set-glyph-image.
5766         (syms_of_glyphs_widget): remove set-glyph-image.
5767
5768 2000-07-23  Ben Wing  <ben@xemacs.org>
5769
5770         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
5771         Vpopup_frame_list.
5772
5773 2000-07-22  Andy Piper  <andy@xemacs.org>
5774
5775         * symsinit.h: add syms_of_win32().
5776
5777         * gui-msw.c (syms_of_gui_mswindows): remove
5778         Fmswindows_shell_execute.
5779         (Fmswindows_shell_execute): moved to win32.c.
5780
5781         * emacs.c (main_1): add syms_of_win32 ().
5782
5783         * win32.c (init_potentially_nonexistent_functions): rewrite in
5784         compiler-friendly terms.
5785         (Fmswindows_shell_execute): move here from gui-msw.c.
5786         (syms_of_win32): new.
5787
5788         * device-msw.c (Fmswindows_printer_list): clean up args to
5789         EnumPrinters.
5790         Don't include tchar under cygwin or mingw.
5791         (msprinter_default_printer): make cygwin-friendly.
5792
5793 2000-07-21  Andy Piper  <andy@xemacs.org>
5794
5795         * glyphs-widget.c (image_instantiator_tree_view): use tab
5796         control's update function.
5797         (layout_property): new function. Retrieve items.
5798
5799         * glyphs-msw.c (mswindows_tree_view_redisplay): new
5800         function. Re-populate the tree view from the pending items.
5801
5802         * glyphs.c (instantiate_image_instantiator): Make sure the domain
5803         is designated the parent if the domain is an image instance. This
5804         is needed so that dirtiness can be cascade up the hierarchy and
5805         thus for layout children to be redisplayed correctly.
5806         (allocate_image_instance): rename glyph -> parent.
5807
5808         * redisplay.h: change redisplay_output_layout signature.
5809
5810         * redisplay-msw.c (mswindows_output_display_block): use domain
5811         arg.
5812
5813         * redisplay-x.c (x_output_display_block): use domain arg.
5814
5815 2000-07-10  Andy Piper  <andy@xemacs.org>
5816
5817         * window.c (Fset_window_configuration): add comment.
5818
5819         * redisplay-output.c (compare_runes):
5820         (redisplay_output_subwindow): redisplay rather than update subwindow.
5821         (redisplay_output_layout): ditto.
5822
5823         * redisplay-msw.c (mswindows_frame_output_end):
5824         (mswindows_frame_output_end): make defer window pos optional.
5825
5826         * lisp.h: add Flast.
5827
5828         * glyphs.h (struct image_instantiator_methods): add dest_mask top
5829         normalize method. Change update method to be for changed
5830         instantiators. Add redisplay method. Change signature of layout
5831         method.
5832         (struct Lisp_Image_Instance): add instantiator.
5833         (IMAGE_INSTANCE_INSTANTIATOR): new.
5834         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
5835         (XIMAGE_INSTANCE_INSTANTIATOR): new.
5836         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
5837
5838         * glyphs.c:
5839         (find_instantiator_differences): new function.
5840         (Fset_instantiator_property): new convenience function.
5841         (check_image_instance_structure): strictly check for vector
5842         instantiators.
5843         (normalize_image_instantiator): make non-static.
5844         (instantiate_image_instantiator): pass on dest_mask and use new
5845         signatures for image_instance_layout and friends.
5846         (mark_image_instance): mark the instantiator. Mark the subwindow
5847         face not the widget face.
5848         (image_instance_equal): add instantiator.
5849         (image_instance_hash): ditto.
5850         (allocate_image_instance): ditto.
5851         (Fset_image_instance_property): removed.
5852         (Fimage_instance_file_name): ditto.
5853         (Fcolorize_image_instance): ditto.
5854         (image_instance_layout): add offsets to be set.
5855         (update_image_instance): new function. update an image instance
5856         from its changed instantiator.
5857         (inherit_normalize): add dest_mask.
5858         (xbm_normalize): ditto.
5859         (xface_normalize): ditto.
5860         (xpm_normalize): ditto.
5861         (text_update): set_property -> update.
5862         (image_instantiate): use the glyph identity as a hash key, not the
5863         instantiator.
5864         (glyph_width): use new image_instance_layout signature.
5865         (glyph_ascent): ditto.
5866         (glyph_descent): ditto.
5867         (glyph_height): ditto.
5868         (glyph_query_geometry): ressurrect.
5869         (glyph_layout): ditto.
5870         (redisplay_subwindow): update -> redisplay.
5871         (syms_of_glyphs): add Fset_instantiator_property.
5872         (image_instantiator_format_create): set_property -> update.
5873
5874         * glyphs-x.c:
5875         (autodetect_normalize): add dest_maks to signature.
5876         (x_redisplay_subwindow): update -> redisplay.
5877         (x_redisplay_widget): ditto.
5878         (x_button_redisplay): ditto.
5879         (x_progress_gauge_redisplay): ditto.
5880         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
5881         stacking order.
5882         (console_type_create_glyphs_x): update -> redisplay.
5883         (image_instantiator_format_create_glyphs_x): ditto.
5884
5885         * glyphs-widget.c:
5886         (check_valid_instantiator): disallow glyphs in the instantiator,
5887         they must now be vectors.
5888         (check_valid_instantiator_list): ditto.
5889         (glyph_instantiator_to_glyph): use internal symbol rather than
5890         intern.
5891         (widget_update): renamed from widget_set_property. Call cascaded
5892         update methods.
5893         (redisplay_widget): renamed from update_widget.
5894         (widget_layout): image_instance_layout now takes position as well
5895         as size.
5896         (widget_normalize): ditto.
5897         (widget_instantiate): ditto.
5898         (tab_control_query_geometry) ditto.:
5899         (tab_control_update): renamed from tab_control_set_property.
5900         (progress_gauge_update): set_property -> update.
5901         (layout_normalize): rewrite so that child instantiators are
5902         normalized also.
5903         (layout_update): new function. Create glyphs from the normalized
5904         children and cope with any other layout keywords. We do not
5905         instantiate children here that will be take care of by
5906         redisplay_output_layout.
5907         (layout_instantiate): call layout_update and not much else.
5908         (layout_post_instantiate): not sure whether this is needed
5909         anymore.
5910         (layout_query_geometry): query glyph geometry rather than
5911         image_instance geometry.
5912         (layout_layout): set offsets from pass in parameters. Use glyph
5913         geometry and layout functions rather than image instance ones.
5914         (native_layout_layout): ditto.
5915         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
5916         (image_instantiator_widget): set_property -> update.
5917         (image_instantiator_buttons): ditto.
5918         (image_instantiator_progress_guage): ditto.
5919         (image_instantiator_tab_control): ditto.
5920         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
5921         (image_instantiator_layout): add update method.
5922
5923         * glyphs-msw.c (bmp_normalize):
5924         (mswindows_resource_normalize): add dest_mask so that it can be
5925         proprogated by layout_normalize.
5926         (begin_defer_window_pos): make optional because it may not be the
5927         right thing to do and it introduces differences with X.
5928         (mswindows_unmap_subwindow): ditto.
5929         (mswindows_map_subwindow): ditto.
5930         (mswindows_redisplay_subwindow): renamed from
5931         mswindows_update_subwindow.
5932         (mswindows_redisplay_widget): ditto.
5933         (mswindows_button_redisplay): renamed from
5934         mswindows_button_update. Update is now what the instantiation
5935         function does for a changed instantiator.
5936         (mswindows_progress_gauge_instantiate): set the progress value
5937         here if appropriate.
5938         (mswindows_tab_control_redisplay): cope with re-ordering of the
5939         members of the tab widget by simply selecting the new top
5940         widget. This makes things appear ok if you click on a tab.
5941         (mswindows_combo_box_instantiate): image_instance_layout now takes
5942         position as well as size.
5943         (mswindows_progress_gauge_redisplay): renamed from
5944         mswindows_progress_gauge_update.
5945         (console_type_create_glyphs_mswindows): fix update -> redisplay.
5946         (image_instantiator_format_create_glyphs_mswindows): ditto.
5947
5948         * glyphs-eimage.c (jpeg_normalize):
5949         (gif_normalize):
5950         (png_normalize):
5951         (tiff_normalize): add dest_mask so that it can be proprogated by
5952         layout_normalize.
5953
5954         * elhash.c:
5955         (print_hash_table):
5956         (hash_table_weakness_validate):
5957         (decode_hash_table_weakness):
5958         (Fhash_table_weakness):
5959         (Fhash_table_type):
5960         (syms_of_elhash): use Ben's naming scheme for hashtable types..
5961
5962         * console.h (struct console_methods): move update_* to
5963         redisplay_*.
5964
5965 2000-07-20  Ben Wing  <ben@xemacs.org>
5966
5967         * *.[ch] (XSETOBJ): remove unused middle argument.
5968         lisp-disunion.h: correct wrap_object() to one argument.
5969
5970 2000-07-15  Ben Wing  <ben@xemacs.org>
5971
5972         * s/cygwin32.h:
5973         * s/cygwin32.h (CYGWIN_CONV_PATH):
5974         Add missing logb prototype for v1.1.
5975         Use post-b20 names and alias to pre-b20 names when pre-b20.
5976
5977         * s/windowsnt.h: [5].
5978
5979 2000-07-15  Ben Wing  <ben@xemacs.org>
5980
5981         * Makefile.in.in (x_objs):
5982         * Makefile.in.in (sheap_objs):
5983         * Makefile.in.in (objs):
5984         added win32.o, cosmetic cleanups.
5985
5986         * alloc.c (Fmake_byte_code):
5987         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
5988         etc. macros which declare their own args now.
5989
5990         * alloc.c (syms_of_alloc):
5991         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
5992
5993         * buffer.c:
5994         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
5995
5996         * buffer.c (Fget_file_buffer):
5997         Fixed GCPRO problem.
5998
5999         * buffer.c (get_truename_buffer):
6000         Fixed comment about GC checking.
6001
6002         * buffer.c (syms_of_buffer):
6003         Undeclared those dedicated frame funs.
6004         [2].
6005
6006         * buffer.h:
6007         Define convenience macros for internal/external conversions.
6008         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
6009         and Qenvironment_variable_encoding for cleaner code.
6010
6011         * bufslots.h:
6012         Remove dedicated-frame; in lisp.
6013
6014         * bytecode.c (funcall_compiled_function):
6015         [1].
6016
6017         * bytecode.c (syms_of_bytecode):
6018         [2].
6019
6020         * console-msw.c:
6021         * console-msw.c (mswindows_show_console): Rewrote.
6022
6023         * console-msw.c (Fmswindows_debugging_output): New.
6024         Sends to OutputDebugString (special MSWin debugger interface).
6025
6026         * console-msw.c (Fmswindows_message_box):
6027         Fixed stupid bugs so it works when called from kill-emacs.
6028
6029         * console-msw.c (syms_of_console_mswindows):
6030         Declare Fmswindows_debugging_output.
6031
6032         * console-msw.h:
6033         New MSWin prototypes.
6034
6035         * console-msw.h (struct mswindows_frame):
6036         New entry last-click-mods for improved button-modifier support.
6037
6038         * console-msw.h (FRAME_MSWINDOWS_POPUP):
6039         New struct entry `popup' with corresponding accessor.
6040
6041         * console-x.c:
6042         * console-x.c (split_up_display_spec):
6043         * console-x.c (get_display_arg_connection):
6044         * console-x.c (x_semi_canonicalize_console_connection):
6045         * console-x.c (x_canonicalize_device_connection):
6046         [[[6]]]: Change char to more specific type.
6047         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
6048
6049         * console-x.c (x_semi_canonicalize_console_connection):
6050         * console-x.c (x_canonicalize_device_connection):
6051         [[[9]]]: Fix up error signalling to use new structured error system.
6052
6053         * console-x.h:
6054         [[[4]]]: Define codesys aliases:
6055         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
6056         Qx_color_name_encoding, Qx_display_name_encoding.
6057
6058         * console.h (struct console_methods):
6059         New method make_dialog_box_internal supersedes older
6060         popup_dialog_box method.
6061
6062         * data.c:
6063         Define many new errors, part of new structured errors.
6064
6065         * data.c (init_errors_once_early):
6066         * data.c (syms_of_data):
6067         [2].
6068
6069         * device-msw.c (mswindows_init_device):
6070         [[[5]]]: Cleanup to support NT 3.51.
6071
6072         * device-msw.c (decode_devmode): Cleanup.
6073
6074         * device-msw.c (mswindows_handle_print_setup_dialog_box):
6075         * device-msw.c (mswindows_handle_print_dialog_box):
6076         * device-msw.c (mswindows_handle_page_setup_dialog_box):
6077         * device-msw.c (syms_of_device_mswindows):
6078         Delete the dialog box primitives recently introduced by Kirill and
6079         instead interface to general dialog box interface.
6080
6081         * device-x.c:
6082         * device-x.c (compute_x_app_name):
6083         * device-x.c (x_init_device):
6084         * device-x.c (Fx_valid_keysym_name_p):
6085         * device-x.c (Fx_set_font_path):
6086         [6].
6087         [7].
6088
6089         * device.h (wrap_device): New.
6090         First of its kind; meant to replace XSETDEVICE.
6091
6092         * dialog-msw.c: Many file-dialog symbols.
6093
6094         * dialog-msw.c (mswindows_register_popup_frame): New.
6095         * dialog-msw.c (mswindows_is_dialog_msg): New.
6096         For supporting kbd traversal in dialog boxes.
6097
6098         * dialog-msw.c (dialog_proc):
6099         Support hitting ESC in dialogs.
6100
6101         * dialog-msw.c (struct):
6102         Common dialog box errors.
6103
6104         * dialog-msw.c (handle_file_dialog_box): New.
6105         Add file dialog code.
6106
6107         * dialog-msw.c (handle_question_dialog_box):
6108         Redo existing code to support new question dialog syntax.
6109
6110         * dialog-msw.c (console_type_create_dialog_mswindows):
6111         We support new dialog console method.
6112
6113         * dialog-msw.c (syms_of_dialog_mswindows):
6114         * dialog-msw.c (vars_of_dialog_mswindows):
6115         New file dialog symbols, vars.
6116
6117         * dialog-x.c:
6118         * dialog-x.c (maybe_run_dbox_text_callback):
6119         * dialog-x.c (dbox_descriptor_to_widget_value):
6120         * dialog-x.c (x_make_dialog_box_internal):
6121         * dialog-x.c (console_type_create_dialog_x):
6122         Mule-ize entire file.
6123         Redo to support question dialog syntax.
6124         [6].
6125
6126         * dialog.c:
6127         * dialog.c (Fmake_dialog_box_internal):
6128         * dialog.c (syms_of_dialog):
6129         Kill old popup-dialog-box, replace with new primitive.
6130         Just call device method or signal error.
6131
6132         * eldap.c (Fldap_open):
6133         * eldap.c (Fldap_search_basic):
6134         * eldap.c (Fldap_add):
6135         * eldap.c (Fldap_modify):
6136         [1].
6137         [7].
6138
6139         * emacs.c:
6140         * emacs.c (make_arg_list_1):
6141         * emacs.c (make_arg_list):
6142         Mule-ize call to dll_init().
6143         [6].
6144         [8].
6145
6146         * emacs.c (make_argc_argv):
6147         * emacs.c (free_argc_argv):
6148         * emacs.c (init_cmdargs):
6149         * emacs.c (main_1):
6150         * emacs.c (Fkill_emacs):
6151         * emacs.c (Fdump_emacs):
6152         Update comments about what can be used in syms_* etc.
6153         Call init_win32() when necessary.
6154         Fix up MS Win dialog box in kill-buffer to actually work right.
6155         [7].
6156
6157         * eval.c:
6158         * eval.c (For):
6159         * eval.c (Fand):
6160         * eval.c (Fprogn):
6161         * eval.c (Fprog1):
6162         * eval.c (Fprog2):
6163         * eval.c (FletX):
6164         * eval.c (Flet):
6165         * eval.c (condition_case_3):
6166         * eval.c (Feval):
6167         * eval.c (function_argcount):
6168         * eval.c (funcall_lambda):
6169         [1].
6170
6171         * eval.c (type_error): New.
6172         * eval.c (maybe_type_error): New.
6173         * eval.c (continuable_type_error): New.
6174         * eval.c (maybe_continuable_type_error): New.
6175         * eval.c (type_error_with_frob): New.
6176         * eval.c (maybe_type_error_with_frob): New.
6177         * eval.c (continuable_type_error_with_frob): New.
6178         * eval.c (maybe_continuable_type_error_with_frob): New.
6179         New functions for use with structured errors.
6180
6181         * event-Xt.c:
6182         * event-Xt.c (x_event_to_emacs_event):
6183         Buttons are now modifiers too.
6184
6185         * event-Xt.c (emacs_Xt_current_event_timestamp):
6186         Implement new event method.
6187         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
6188
6189         * event-msw.c:
6190         * event-msw.c (ntpipe_shove_writer): [5].
6191         * event-msw.c (mswindows_enqueue_mouse_button_event):
6192         * event-msw.c (mswindows_drain_windows_queue):
6193         * event-msw.c (mswindows_wnd_proc): [7].
6194         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
6195         * event-msw.c (mswindows_modifier_state):
6196         Throughout: support new button modifiers.
6197
6198         * event-msw.c (emacs_mswindows_current_event_timestamp):
6199         Implement new event method.
6200         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
6201
6202         * event-stream.c:
6203         * event-stream.c (event_stream_current_event_timestamp): New.
6204         * event-stream.c (maybe_kbd_translate): New functionality.
6205         * event-stream.c (vars_of_event_stream):
6206         Document new kbd-translate-table functionality.
6207
6208         * event-stream.c (Fcurrent_event_timestamp): New.
6209         New primitive for use in fabricated events.
6210         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
6211
6212         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
6213
6214         * events.c:
6215         * events.c (Fmake_event):
6216         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
6217         [1].
6218         [9].
6219
6220         * events.c (format_event_object): fix gcc warnings.
6221
6222         * events.c (Fevent_timestamp): Document new primitives.
6223
6224         * events.c (TIMESTAMP_HALFSPACE): New.
6225
6226         * events.c (Fevent_timestamp_lessp): New.  New primitive for
6227         comparing timestamps correctly (half-space algorithm).
6228
6229         * events.c (Fevent_modifier_bits): Doc fix.
6230
6231         * events.c (Fevent_modifiers): Major doc addition.
6232         * events.c (event_x_y_pixel_internal): Typo fix.
6233         * events.c (syms_of_events): Declare new primitives.
6234
6235         * events.h:
6236         Update long comment for button modifiers, timestamps.
6237
6238         * events.h (struct event_stream):
6239         New current_event_timestamp method.
6240
6241         * extents.c:
6242         * extents.c (extent_in_region_p):
6243         * extents.c (decode_extent):
6244         * extents.c (Fset_extent_parent):
6245         * extents.c (decode_map_extents_flags):
6246         Fix gcc warnings.
6247         [9].
6248
6249         * extents.c (struct extent_at_arg):
6250         * extents.c (decode_extent_at_flag):
6251         * extents.c (extent_at_mapper):
6252         * extents.c (extent_at_bytind):
6253         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
6254         * extents.c (Fextents_at): New primitive. [9].
6255         * extents.c (symbol_to_glyph_layout): [9].
6256         Support new primitive `extents-at'.
6257
6258
6259         * extents.c (get_text_property_bytind):
6260         extent_at_bytind has another arg.
6261         [9].
6262
6263         * extents.c (syms_of_extents): New primitive.
6264
6265         * file-coding.c (Fmake_coding_system): [1].
6266         * file-coding.c (subsidiary_coding_system): fix gcc warning
6267         * file-coding.c (syms_of_file_coding): [2].
6268
6269         * fileio.c (Fexpand_file_name):
6270         * fileio.c (Fsysnetunam):
6271         * fileio.c (Ffile_exists_p):
6272         * fileio.c (Ffile_executable_p):
6273         * fileio.c (Fverify_visited_file_modtime):
6274         Clean up GCPROing.
6275
6276         * fileio.c (syms_of_fileio): [2].
6277
6278         * filelock.c (lock_file_1):
6279         * filelock.c (current_lock_owner):
6280         * filelock.c (lock_if_free):
6281         * filelock.c (lock_file):
6282         * filelock.c (unlock_file):
6283         Clean up GCPROing.
6284
6285         * fns.c (concat): Fix gcc warning.
6286
6287         * fns.c (Fmember):
6288         * fns.c (Fold_member):
6289         * fns.c (Fmemq):
6290         * fns.c (Fold_memq):
6291         * fns.c (memq_no_quit):
6292         * fns.c (Fassoc):
6293         * fns.c (Fold_assoc):
6294         * fns.c (Fassq):
6295         * fns.c (Fold_assq):
6296         * fns.c (assq_no_quit):
6297         * fns.c (Frassoc):
6298         * fns.c (Fold_rassoc):
6299         * fns.c (Frassq):
6300         * fns.c (Fold_rassq):
6301         * fns.c (rassq_no_quit):
6302         * fns.c (Fdelete):
6303         * fns.c (Fold_delete):
6304         * fns.c (Fdelq):
6305         * fns.c (Fold_delq):
6306         * fns.c (delq_no_quit):
6307         * fns.c (Fremassoc):
6308         * fns.c (Fremassq):
6309         * fns.c (remassq_no_quit):
6310         * fns.c (Fremrassoc):
6311         * fns.c (Fremrassq):
6312         * fns.c (remrassq_no_quit):
6313         * fns.c (Freverse):
6314         * fns.c (mapcar1):
6315         [1].
6316
6317         * frame-msw.c (mswindows_init_frame_1):
6318         * frame-msw.c (mswindows_delete_frame):
6319         Register popups with dialog code so keyboard traversing works.
6320
6321         * frame-tty.c (tty_raise_frame_no_select): [1].
6322
6323         * frame-x.c:
6324         * frame-x.c (x_set_frame_text_value):
6325         * frame-x.c (x_set_frame_properties):
6326         * frame-x.c (x_create_widgets):
6327         [7].
6328
6329         * frame.c:
6330         * frame.c (Fmouse_pixel_position): Minor doc fixes.
6331
6332         * frame.h (wrap_frame): New.
6333         Macro like wrap_device.
6334
6335         * general.c:
6336         * general.c (SYMBOL):
6337         * general.c (syms_of_general):
6338         Major reorg.  This is now just a wrapper and symbols themselves
6339         are listed in general-slots.h.
6340
6341         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
6342         * glyphs-msw.c (mswindows_resource_instantiate): [5].
6343
6344         * glyphs-msw.c (mswindows_native_layout_instantiate):
6345         Add DS_CONTROL so keyboard traversal will work.
6346
6347         * glyphs-widget.c:
6348         * glyphs-widget.c (syms_of_glyphs_widget):
6349         Move some symbols to general-slots.h.
6350
6351         * glyphs-x.c:
6352         * glyphs-x.c (xbm_instantiate_1):
6353         * glyphs-x.c (x_xbm_instantiate):
6354         * glyphs-x.c (x_xface_instantiate):
6355         * glyphs-x.c (autodetect_instantiate):
6356         * glyphs-x.c (cursor_font_instantiate):
6357         * glyphs-x.c (x_update_widget):
6358         * glyphs-x.c (x_widget_instantiate):
6359         * glyphs.c (bitmap_to_lisp_data):
6360         * glyphs.c (pixmap_to_lisp_data):
6361         [7].
6362
6363         * glyphs.c (syms_of_glyphs):
6364         [2].
6365
6366         * gui-x.c:
6367         * gui-x.c (print_widget_value):
6368         * gui-x.c (menu_separator_style_and_to_external):
6369         * gui-x.c (add_accel_and_to_external):
6370         * gui-x.c (button_item_to_widget_value):
6371         * gui-x.c (gui_items_to_widget_values_1):
6372         * gui-x.c (gui_items_to_widget_values):
6373         * gui-x.c (syms_of_gui_x):
6374         * gui-x.c (vars_of_gui_x):
6375         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
6376         [9].
6377
6378         * gui-x.h:
6379         Muleize, prototype changes matching gui-x.c.
6380
6381         * gui.c:
6382         * gui.c (separator_string_p):
6383         * gui.c (gui_item_add_keyval_pair):
6384         * gui.c (make_gui_item_from_keywords_internal):
6385         * gui.c (signal_too_long_error):
6386         * gui.c (parse_gui_item_tree_item):
6387         * gui.c (syms_of_gui):
6388         * gui.c (vars_of_gui):
6389         * gui.h:
6390         menu-no-selection-hook moved here (used by MSWin).
6391         Move some symbols to general-slots.h.
6392         [6].
6393         [9].
6394
6395         * insdel.c (get_buffer_pos_char):
6396         * insdel.c (get_buffer_range_char):
6397         Add GC comments.
6398
6399         * keymap.c (keymap_lookup_directly):
6400         * keymap.c (keymap_store):
6401         * keymap.c (ensure_meta_prefix_char_keymapp):
6402         * keymap.c (describe_map):
6403         * keymap.h:
6404         Support new button modifiers.
6405
6406         * lisp-disunion.h (wrap_object):
6407         * lisp-disunion.h (XSETOBJ):
6408         Rename make_obj to wrap_object.
6409
6410         * lisp-union.h:
6411         * lisp-union.h (make_int):
6412         * lisp-union.h (make_char):
6413         Support wrap_object.
6414
6415         * lisp.h:
6416         * lisp.h (LIST_LOOP):
6417         * lisp.h (EXTERNAL_LIST_LOOP):
6418         * lisp.h (LIST_LOOP_2):
6419         * lisp.h (EXTERNAL_LIST_LOOP_1):
6420         * lisp.h (EXTERNAL_LIST_LOOP_2):
6421         * lisp.h (EXTERNAL_LIST_LOOP_3):
6422         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
6423         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
6424         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
6425         * lisp.h (EXTERNAL_ALIST_LOOP_5):
6426         * lisp.h (EXTERNAL_ALIST_LOOP_6):
6427         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
6428         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
6429         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
6430         * lisp.h (struct Lisp_Symbol):
6431         * lisp.h (maybe_continuable_error_with_frob):
6432         Fix up section comments.
6433         Add new types for char to indicate usage.
6434         Delete symbols auto-generated from general-slots.h.
6435         Add prototypes for structured error functions.
6436         Add long comments describing looping macros and change interface
6437         so that lvalues are automatically declared.
6438         Add NO_DECLARE macro in case callers want to declare lvalues
6439         themselves.
6440
6441         * lread.c (read_syntax_error):
6442         * lread.c (continuable_read_syntax_error):
6443         * lread.c (read_structure):
6444         * lread.c (sequence_reader):
6445         * lread.c (read_list_conser):
6446         * lread.c (read_compiled_function):
6447         Rename syntax_error and continuable_syntax_error to avoid clash
6448         with same-named structured error functions.
6449
6450         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
6451         * menubar-msw.c (populate_menu_add_item):
6452         * menubar-msw.c (populate_or_checksum_helper):
6453         [5].
6454         [9].
6455
6456         * menubar-x.c:
6457         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
6458         Mule-ize whole file.
6459
6460         * menubar.c (Fnormalize_menu_item_name): Add optimization.
6461
6462         * mule-charset.c (Fmake_charset):
6463         * mule-wnnfns.c (Fwnn_set_param):
6464         [1].
6465
6466         * ntproc.c (create_child):
6467         * ntproc.c (Fwin32_set_current_locale):
6468         Add comments portending doom.
6469
6470         * objects-msw.c:
6471         * objects-msw.c (old_font_enum_callback_2):
6472         * objects-msw.c (font_enum_callback_1):
6473         * objects-msw.c (mswindows_enumerate_fonts):
6474         [5].
6475
6476         * objects-x.c:
6477         * objects-x.c (allocate_nearest_color):
6478         * objects-x.c (x_parse_nearest_color):
6479         * objects-x.c (x_initialize_color_instance):
6480         * objects-x.c (x_print_color_instance):
6481         * objects-x.c (x_finalize_color_instance):
6482         * objects-x.c (x_valid_color_name_p):
6483         * objects-x.c (x_initialize_font_instance):
6484         * objects-x.c (x_print_font_instance):
6485         * objects-x.c (valid_x_font_name_p):
6486         * objects-x.c (truename_via_FONT_prop):
6487         * objects-x.c (truename_via_random_props):
6488         * objects-x.c (truename_via_XListFonts):
6489         * objects-x.c (x_font_truename):
6490         * objects-x.c (x_font_instance_truename):
6491         * objects-x.c (x_font_instance_properties):
6492         * objects-x.c (x_list_fonts):
6493         * objects-x.c (x_find_charset_font):
6494         Mule-ize entire file.
6495         [7].
6496
6497         * objects-x.h:
6498         Mule-verify.
6499
6500         * print.c:
6501         * print.c (std_handle_out_external):
6502         * print.c (debug_print_no_newline):
6503         * print.c (syms_of_print):
6504         Output to all debugger kinds in debug-print.
6505         Fix console-output code under MSWin to actually work.
6506
6507         * process-nt.c (send_signal):
6508         * process-nt.c (nt_create_process):
6509         Use newer Unicode macros.
6510
6511         * process-unix.c (unix_create_process):
6512         * process-unix.c (unix_canonicalize_host_name):
6513         * process-unix.c (unix_open_network_stream):
6514         [7].
6515
6516         * scrollbar-x.c:
6517         Mule-verify.
6518
6519         * search.c (syms_of_search):
6520         [2].
6521
6522         * select-msw.c (mswindows_destroy_selection):
6523         Use LIST_LOOP_2.
6524
6525         * select-x.c (symbol_to_x_atom):
6526         [7].
6527
6528         * select.c (syms_of_select):
6529         [2].
6530
6531         * sound.c (Fplay_sound_file):
6532         [7].
6533
6534         * specifier.c:
6535         * specifier.c (decode_specifier_type):
6536         * specifier.c (Fvalid_specifier_locale_type_p):
6537         * specifier.c (check_valid_locale_or_locale_type):
6538         * specifier.c (decode_locale):
6539         * specifier.c (decode_locale_type):
6540         * specifier.c (decode_locale_list):
6541         * specifier.c (check_valid_domain):
6542         * specifier.c (decode_specifier_tag_set):
6543         * specifier.c (Fcanonicalize_tag_set):
6544         * specifier.c (Fdefine_specifier_tag):
6545         * specifier.c (Fspecifier_tag_predicate):
6546         * specifier.c (check_valid_inst_list):
6547         * specifier.c (check_valid_spec_list):
6548         * specifier.c (decode_how_to_add_specification):
6549         * specifier.c (check_modifiable_specifier):
6550         * specifier.c (specifier_add_spec):
6551         * specifier.c (boolean_validate):
6552         * specifier.c (display_table_validate):
6553         [9].
6554
6555         * specifier.c (syms_of_specifier):
6556         Move some symbols to general-slots.h.
6557         [2].
6558
6559         * symbols.c:
6560         * symbols.c (Fmapatoms):
6561         * symbols.c (Fapropos_internal):
6562         Add GCPROs.
6563
6564         * symbols.c (set_default_buffer_slot_variable):
6565         * symbols.c (set_default_console_slot_variable):
6566         [1].
6567
6568         * symbols.c (defsymbol_massage_name_1):
6569         * symbols.c (defkeyword_massage_name):
6570         * symbols.c (deferror_1):
6571         * symbols.c (deferror):
6572         * symbols.c (deferror_massage_name_and_message):
6573         * symeval.h:
6574         * symeval.h (DEFSYMBOL):
6575         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
6576
6577         * symbols.c (syms_of_symbols):
6578         [2].
6579
6580         * symsinit.h:
6581         * symsinit.h (init_win32): New.
6582         Also new is syms_of_dialog_mswindows.
6583
6584         * syswindows.h:
6585         Add new Unicode macros, missing Cygwin wide-char functions,
6586         convenience conversion macros for Qmswindows_tstr, macros for
6587         encapsulating required MSWin <-> Cygwin filename conversions,
6588         prototype for dynamically-extracted (not in NT 3.51) functions.
6589
6590         * toolbar-x.c:
6591         Mule-verify.
6592
6593         * tooltalk.c (Fadd_tooltalk_message_arg):
6594         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
6595         * tooltalk.c (Fadd_tooltalk_pattern_arg):
6596         [7].
6597
6598         * tooltalk.c (syms_of_tooltalk):
6599         [2].
6600
6601         * unexnt.c:
6602         * unexnt.c (unexec):
6603         Fix up headers, declaration of unexec() to be more standard.
6604
6605 2000-07-20  Martin Buchholz  <martin@xemacs.org>
6606
6607         * offix.h: Revert change to guard macros - they're used in offix.c!
6608
6609 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6610
6611         * lisp.h: Defsubred Fdelete.
6612
6613         * console-msw.h:  (msprinter_default_printer): Added.
6614
6615         * console-msw.c (msprinter_canonicalize_console_connection):
6616         (msprinter_canonicalize_device_connection): Added.
6617
6618         * device-msw.c (msprinter_default_printer):
6619         (Fmswingows_get_default_printer):
6620         (signal_enum_priner_error):
6621         (Fmswingows_printer_list): Added.
6622
6623 2000-07-19  Martin Buchholz <martin@xemacs.org>
6624
6625         * XEmacs 21.2.35 is released.
6626
6627 2000-07-19  Martin Buchholz  <martin@xemacs.org>
6628
6629         * select-x.c (x_handle_selection_request):
6630         Text selected in xemacs and pasted into xterm failed to appear.
6631         Spelling fixes and cosmetic changes.
6632
6633 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6634
6635         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
6636         XEmacs frame (fix for doubling chars in dialog boxes).
6637
6638 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
6639
6640         * select.c (select_convert_in, select_convert_out):
6641         Don't call intern() every time.
6642
6643         * select.c (Qselect_convert_in, Qselect_convert_out): New.
6644         * select.c (vars_of_select): Initialise them.
6645
6646 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
6647
6648         * select.c (selection-coercible-types): New.
6649
6650         * select.c (own-selection-internal):
6651         * select.c (get-selection-internal):
6652         MULE bug fix - these should default to COMPOUND_TEXT and not
6653         STRING for MULE. I think.
6654
6655         * select.c (select_convert_out): Use selection-coercible-types
6656         to find types that we can attempt to perform coercions on.
6657
6658 2000-07-18  Martin Buchholz  <martin@xemacs.org>
6659
6660         * mule-wnnfns.c:
6661         * mule-canna.c:
6662         Add coding: cookie to identify encoding.
6663
6664         * mule-canna.c (CANNA_mode_keys): make static.
6665         Use proper prototypes, even for functions of no arguments.
6666         Remove external prototype for Fding().
6667
6668         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
6669
6670         * select.c (syms_of_select): Add missing DEFSUBR.
6671
6672 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
6673
6674         * select.c (get_selection_internal, own_selection_internal):
6675         Make the type default to STRING, rather than placing a nil type
6676         into Vselection_alist.
6677
6678 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
6679
6680         * gpmevent.c (tty_selection_exists_p):
6681         * gpmevent.c (tty_own_selection):
6682         Updated parameter lists.
6683
6684 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
6685
6686         * select.h (selection-alist): Removed declaration.
6687
6688         * select.h (get_local_selection):
6689         * select.c (get_local_selection):
6690         Made static.
6691
6692         * select.h (convert_selection): Removed declaration.
6693         * select.c (convert_selection): Removed.
6694         This function belongs in Lisp.
6695
6696         * select.h (select_convert_in): Declare.
6697         * select.h (select_convert_out): Declare.
6698         * select.c (select_convert_in): New.
6699         * select.c (select_convert_out): New.
6700         New conversion functions for other files to call.
6701
6702         * select.h (select_notify_buffer_kill): Declare.
6703         * select.c (select_notify_buffer_kill): New.
6704         New functions that get called from kill-buffer.
6705
6706         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
6707         X-specific lisp code.
6708
6709         * select.h: Declare some of the lisp-visible functions for
6710         external use.
6711
6712         * select.c (clean_local_selection_data): Removed. This was
6713         a disgusting function, and previously should have been in
6714         select-x.c in any case. The functionality is now provided
6715         in select-convert-from-integer (select.el).
6716
6717         * select.c (available-selection-types): Fixed stupidity where
6718         INTEGER and ATOM got added twice. Also add STRING when we see an
6719         extent.
6720
6721         * select.c (get-selection-internal): Removed symbol stripping. No
6722         longer causes conversion when data comes from the internal cache.
6723
6724         * select.c (syms_of_select): Added new functions.
6725
6726         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
6727         error checking - previously this called abort!
6728
6729         * select-x.c (x_own_selection): Changed comment.
6730
6731         * select-x.c (x_handle_selection_request): Use select_convert_out.
6732         Don't mess with selection-alist; it's an internal variable of select.c.
6733
6734         * select-x.c (x_get_foreign_selection): Use select_convert_in.
6735
6736         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
6737         rather than messing with selection-alist.
6738
6739         * select-msw.c (mswindows_get_foreign_selection):
6740         Use TO_INTERNAL_FORMAT rather than hacking.
6741
6742 2000-07-14  Martin Buchholz  <martin@xemacs.org>
6743
6744         * process-unix.c (unix_open_multicast_group):
6745         (unix_open_multicast_group): Remove useless casts.
6746
6747 2000-07-13  Martin Buchholz  <martin@xemacs.org>
6748
6749         * sound.c (Fplay_sound): Fix `unused variable' warning.
6750
6751         * emacs.c (main): Use correct type for _environ on SCO5.
6752
6753 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
6754
6755         * console.h (own_selection_method):
6756         * console.h (selection_exists_p_method):
6757         * console.h (available_selection_types_method): New.
6758         * console.h (register_selection_data_type_method): New.
6759         * console.h (selection_data_type_name): New.
6760
6761         * console-msw.h (mswindows_destroy_selection): Declare it.  New
6762         function & alist to track GlobalAlloc()'d handles that need
6763         releasing when the clipboard data gets replaced or emptied.
6764
6765         * event-msw.c (mswindows_wnd_proc): Call it.
6766
6767         * lisp.h, general.c (Qappend): New symbol representing a
6768         `how-to-add' mode.
6769
6770         * select.c (own-selection-internal):
6771         * select.c (selection-exists-p):
6772         * select.c (available-selection-types): New.
6773         * select.c (register-selection-data-type): New.
6774         * select.c (selection-data-type-name): New.  New functions to deal
6775         with device-specific selection data formats.
6776         * select.c (selection-converter-out-alist): Renamed.
6777         * select.c (selection-converter-in-alist): New.
6778         * select.c (selection-appender-alist): New.  Added new alists.
6779         * select.c (syms_of_select, vars_of_select): Added new symbols &
6780         variables.
6781         * select.c (get_local_selection): Split.
6782         * select.c: Removed spurious type checking - selections may now be
6783         of any type, not just strings.
6784         * select.c (own-selection-internal):
6785
6786         * select.h, select.c (convert_selection): New. Created
6787         convert_selection() function based on get_local_selection().
6788         * select.h, select.c (QCF_*): New symbols representing mswindows
6789         clipboard formats.
6790         * select.h, select.c (Qreplace_all, Qreplace_existing): New
6791         symbols representing `how-to-add' modes.
6792
6793         * select-msw.c (x_sym_p): New.
6794         * select-msw.c (symbol_to_ms_cf): New.
6795         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
6796         symbols & clipboard formats. Can also handle string names.
6797         * select-msw.c (mswindows_own_selection):
6798         * select-msw.c (mswindows_selection_exists_p):
6799         Added `data-type' parameter. Use it.
6800         * select-msw.c (mswindows_available_selection_types): New.
6801         * select-msw.c (mswindows_register_selection_data_type): New.
6802         * select-msw.c (mswindows_selection_data_type_name): New.
6803         * select-msw.c (mswindows_own_selection):
6804         * select-msw.c (mswindows_get_foreign_selection):
6805         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
6806         * select-msw.c (console_create_select_mswindows): Added new methods.
6807         * select-msw.c (mswindows_destroy_selection): New.
6808         * select-msw.c (Vhandle_alist): New list.
6809         * select-msw.c (mswindows_own_selection):
6810
6811         * select-x.c (x_own_selection):
6812         * select-x.c (x_selection_exists_p):
6813         * select-x.c: Added some comments about maybe using new
6814         functionality.
6815         * select-x.c (x_own_selection):
6816
6817         * specifier.c: Remove definition of Qappend (now in general.c)
6818         * specifier.c (syms_of_specifier): Remove Qappend.
6819
6820 2000-07-12  Martin Buchholz  <martin@xemacs.org>
6821
6822         * config.h.in: Add socklen_t.
6823
6824         * s/decosf4-0.h: No special compiler flags needed or desired.
6825         In particular, undefine _BSD for DEC OSF 4.0.
6826
6827 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6828
6829         * redisplay-msw.c (msprinter_frame_output_end): Added.
6830         (console_type_create_redisplay_mswindows): Referred the above.
6831
6832         * frame.c (setup_frame_without_minibuffer): Do not create a
6833         default minibuffer frame on a printer device.
6834
6835         * frame-msw.c (apply_dc_geometry): Added.
6836         (msprinter_start_page):
6837         (msprinter_init_frame_3):
6838         (msprinter_eject_page): Use it.
6839
6840         * console-msw.h (struct msprinter_frame): Added pix_left and top,
6841         and removed residual duplex and orientation properties.
6842
6843 2000-07-11  Martin Buchholz  <martin@xemacs.org>
6844
6845         * eval.c (function_argcount): Work around a DEC CC compiler bug.
6846
6847         * unexalpha.c: Remove system prototypes from C sources!
6848
6849 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
6850
6851         * eval.c: Remove references to M-x edit-options in DEFUNs for
6852         `defvar' and `defconst'.
6853
6854 2000-07-09  Martin Buchholz  <martin@xemacs.org>
6855
6856         * config.h.in: Remove SMART_INCLUDE hackery.
6857
6858         PostgreSQL hacking:
6859         * config.h.in: Don't use SMART_INCLUDE.
6860
6861         * postgresql.h: Include libpq-fe.h here.  Fix typo.
6862         * inline.c: Simply #include "postgresql.h"
6863         * postgresql.c:
6864         - Don't use SMART_INCLUDE
6865         - Use simply "const".
6866         - Use standard doc string conventions.
6867         - Use correct type for result of PQstatus.
6868
6869 2000-07-09  Martin Buchholz  <martin@xemacs.org>
6870
6871         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
6872
6873         C++ compilation changes.
6874         * config.h.in (EXTERN_C): Define.
6875         * config.h.in (not): This is also a C++ keyword.
6876         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
6877         * cm.c: Use EXTERN_C.
6878         * redisplay-tty.c: Use EXTERN_C.
6879         * sysdep.c: Use EXTERN_C.  Remove Gould support.
6880
6881 2000-07-09  Martin Buchholz  <martin@xemacs.org>
6882
6883         * general.c: Remove duplicate definition for Qfunction.
6884
6885 2000-07-08  Ben Wing  <ben@xemacs.org>
6886
6887         * device-msw.c (msprinter_init_device):
6888         * device-msw.c (sync_printer_with_devmode):
6889         * device-msw.c (handle_devmode_changes):
6890         * device-msw.c (print_dialog_worker):
6891         * device-msw.c (Fmsprinter_apply_settings):
6892         * device-msw.c (hash_devmode):
6893         * device-msw.c (Fmsprinter_settings_despecialize):
6894         use Qmswindows_tstr, not Qctext.
6895
6896         * vm-limit.c (check_memory_limits):
6897         avoid infinite loop printing warning messages.
6898
6899 2000-07-05  Craig Lanning  <lanning@scra.org>
6900
6901         * Makefile.in.in: Add support for including the Windows resources
6902         when building with the cygwin and mingw targets.
6903
6904         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
6905         not set or not correct.
6906         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
6907         (init_initial_directory): Don't try to use $PWD on the
6908         WIN32_NATIVE target.
6909
6910         * s\cygwin32.h:
6911         [[Add -mwindows to eliminate console window.]] not required --ben
6912         (HAVE_NATIVE_SOUND): removed; now handled by configure.
6913         (MAIL_USE_POP): removed; now handled by configure.
6914
6915         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
6916         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
6917         (HAVE_NATIVE_SOUND): removed; now handled by configure.
6918         (MAIL_USE_POP): removed; now handled by configure.
6919         (ENCAPSULATE_STAT): from Dan Holmsand, added.
6920         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
6921         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
6922         constant string.
6923         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
6924         up from <winsock.h> via systime.h.
6925         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
6926         (getpagesize): from Dan Holmsand, added.
6927         Added #endif which was left dangling by Ben's mega patch; added
6928         comment to help prevent this in the future.
6929
6930         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
6931
6932 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6933
6934         * console-msw.h (struct mswindows_device): Removed unnecessary
6935         cached device geometry values.
6936         Added update_tick and an accessor macro.
6937         (Lisp_Devmode): Added lrecord declaration.
6938         (struct msprinter_device): Contain devmode as a Lisp object.
6939         Added mswindows_get_selected_frame_hwnd();
6940
6941         * console.h (struct console_methods): Indentation nitpicking.
6942
6943         * device-msw.c (mswindows_init_device): Do not initialize geometry
6944         cache. Initialize update tick.
6945         (mswindows_device_system_metrics): Ask the device for its geometry.
6946         (global_free_2_maybe):
6947         (devmode_to_hglobal):
6948         (handle_printer_changes):
6949         (ensure_not_printing):
6950         (print_dialog_worker):
6951         (Fmsprinter_print_setup_dialog):
6952         (Fmsprinter_print_dialog):
6953         (plist_get_margin):
6954         (plist_set_margin):
6955         (Fmsprinter_page_setup_dialog): Added functions.
6956         (sync_printer_with_devmode):
6957         (handle_devmode_changes):
6958         (Fmsprinter_get_settings):
6959         (Fmsprinter_select_settings):
6960         (Fmsprinter_apply_settings):
6961         (allocate_devmode):
6962         (Fmsprinter_settings_copy):
6963         (Fmsprinter_settings_despecialize):
6964         (print_devmode):
6965         (finalize_devmode):
6966         (equal_devmode):
6967         (hash_devmode): Added functions
6968         (syms_of_device_mswindows): Init devmode lrecord class.
6969
6970         * device.h: Added an exfun for find-device.
6971
6972         * event-msw.c (mswindows_wnd_proc): Do not update the cached
6973         geometry; although, recreate the device compatible DC.
6974
6975         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
6976         (msprinter_init_frame_3):
6977         (msprinter_frame_property):
6978         (msprinter_internal_frame_property_p):
6979         (msprinter_frame_properties):
6980         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
6981         print job properties (will move to device settings).
6982
6983         * lisp.h: Added symbols.
6984
6985         * general.c (syms_of_general): Declared them.
6986
6987         * hash.c (string_hash): Added.
6988
6989         * lrecord.h (lrecord_type): Added devmode lrecord type.
6990
6991 2000-07-02  Mike Sperber <mike@xemacs.org>
6992
6993         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
6994         FreeBSD 4.0.
6995
6996 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
6997
6998         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
6999         integer.
7000
7001 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
7002
7003         * data.c (Fstring_to_number): Don't recognize floating point if
7004         base is not 10.
7005
7006 2000-06-22  Martin Buchholz  <martin@xemacs.org>
7007
7008         * glyphs-widget.c (tab_control_query_geometry):
7009         (widget_query_geometry):
7010         (button_query_geometry):
7011         * glyphs.c (text_query_geometry):
7012         Enforce type correctness.
7013
7014 2000-06-18  Martin Buchholz  <martin@xemacs.org>
7015
7016         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
7017         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
7018
7019 2000-06-17  Martin Buchholz  <martin@xemacs.org>
7020
7021         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
7022         conflicts with gcc's fixincluded version of FOO.h.
7023
7024         * glyphs.h (image_instance_geometry): Remove trailing `,'
7025
7026 2000-06-08  Mike Alexander  <mta@arbortext.com>
7027
7028         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
7029         (shove_thread): Don't write the same output twice
7030         (make_ntpipe_output_stream): Increase priority of shove thread
7031         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
7032         chance to run
7033         (ntpipe_shove_closer): Don't delete the pipe until we're done with
7034         it.
7035
7036 2000-06-12  Ben Wing  <ben@xemacs.org>
7037
7038         * s\mingw32.h (sigset):
7039         * s\windowsnt.h (sigset):
7040         rename msw_ to mswindows_ for consistency with general convention.
7041
7042 2000-06-12  Ben Wing  <ben@xemacs.org>
7043
7044         * console-msw.c:
7045         * console-msw.c (mswindows_get_console_hwnd):
7046         * console-msw.c (mswindows_ensure_console_allocated):
7047         * console-msw.c (mswindows_hide_console):
7048         * console-msw.c (mswindows_show_console):
7049         * console-msw.c (mswindows_ensure_console_buffered):
7050         * console-msw.c (mswindows_output_console_string):
7051         * console-msw.c (mswindows_windows9x_p):
7052         * console-msw.h:
7053         * device-msw.c (mswindows_get_workspace_coords):
7054         * device-msw.c (mswindows_device_system_metrics):
7055         * dialog-msw.c (mswindows_popup_dialog_box):
7056         * event-msw.c (mswindows_wnd_proc):
7057         * frame-msw.c (mswindows_size_frame_internal):
7058         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
7059         * menubar-msw.c (displayable_menu_item):
7060         * menubar-msw.c (mswindows_char_is_accelerator):
7061         * nt.c:
7062         * nt.c (mswindows_sigset):
7063         * nt.c (mswindows_sigrelse):
7064         * nt.c (mswindows_sigpause):
7065         * nt.c (mswindows_raise):
7066         * nt.c (timer_proc):
7067         * ntproc.c:
7068         * ntproc.c (find_child_console):
7069         * ntproc.c (sys_kill):
7070         * print.c:
7071         * print.c (std_handle_out_external):
7072         * process-nt.c (find_child_console):
7073         * process-nt.c (send_signal_the_95_way):
7074         * process-nt.c (ensure_console_window_exists):
7075         * process-nt.c (nt_create_process):
7076         * syssignal.h:
7077         rename msw_ to mswindows_ for consistency with general convention.
7078
7079         * emacs.c:
7080         * dumper.c:
7081         include nt.h, not syswindows.h.
7082
7083         * nt.c (mswindows_fstat):
7084         * nt.c (mswindows_stat):
7085         prefix mswindows_ instead of attempting to directly override the
7086         library functions.  fix declarations.
7087
7088         * nt.h:
7089         include syswindows.h.  move some sysdep.h stuff here.
7090
7091         * ntheap.h:
7092         include syswindows.h, not <windows.h>.
7093
7094         * ntplay.c:
7095         clean up headers.
7096
7097         * sysdep.c:
7098         clean up headers.
7099
7100         * sysdep.c (sys_fstat):
7101         * sysdep.c (sys_stat):
7102         call mswindows versions when appropriate.
7103
7104         * sysdep.h:
7105         move mswin decls to nt.h.
7106
7107         * syswindows.h:
7108         add long comment describing appropriate use of the various windows
7109         headers.
7110
7111 2000-06-11  Ben Wing  <ben@xemacs.org>
7112
7113         * device-x.c: Correct doc string for sixth arg of x-get-resource.
7114
7115 2000-06-10  Ben Wing  <ben@xemacs.org>
7116
7117         * Makefile.in.in (release):
7118         Correction to make sure xemacs.exe always dumped when correct.
7119
7120         * alloca.c:
7121         * balloon_help.c:
7122         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
7123
7124         * buffer.c (set_buffer_internal):
7125         [[[[2]]]]: Remove HAVE_FEP code.
7126
7127         * buffer.c (init_initial_directory):
7128         [3].
7129
7130         * bytecode.c:
7131         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
7132         individual files.
7133
7134         * callproc.c:
7135         * callproc.c (call_process_cleanup):
7136         * callproc.c (Fold_call_process_internal):
7137         * callproc.c (child_setup):
7138         * callproc.c (getenv_internal):
7139         * callproc.c (init_callproc):
7140         * callproc.c (vars_of_callproc):
7141         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
7142         __CYGWIN32__ -> CYGWIN.
7143         DOS_NT -> WIN32_NATIVE.
7144         Remove MSDOS support/references, converting to WIN32_NATIVE
7145           where correct.
7146         __MINGW32__ -> MINGW.
7147         Fix windows.h includes.
7148         Remove bogus HAVE_NTGUI.
7149
7150         * config.h.in:
7151         [2].
7152
7153         * console-msw.c:
7154         mswindows_message_outputted added for use in allowing startup
7155         errors on the console to be seen.
7156
7157         * console-msw.c (msw_ensure_console_allocated):
7158         * console-msw.c (msw_output_console_string):
7159         * console-msw.c (DHEADER):
7160         * console-msw.c (DOPAQUE_DATA):
7161         * console-msw.c (DEVENT):
7162         * console-msw.c (DCONS):
7163         * console-msw.c (DCONSCDR):
7164         * console-msw.c (DSTRING):
7165         * console-msw.c (DVECTOR):
7166         * console-msw.c (DSYMBOL):
7167         * console-msw.c (DSYMNAME):
7168         Fix warnings.
7169
7170         * console-stream.c (stream_init_console):
7171         Fix text/binary problems.
7172
7173         * device-msw.c:
7174         * device-msw.c (mswindows_finish_init_device):
7175         * device-msw.c (mswindows_delete_device):
7176         [1].
7177
7178         * device.c (handle_asynch_device_change):
7179         [3].
7180
7181         * dgif_lib.c:
7182         * dgif_lib.c (DGifOpenFileName):
7183         * dgif_lib.c (DGifOpenFileHandle):
7184         * dgif_lib.c (DGifGetLine):
7185         * dgif_lib.c (DGifGetPixel):
7186         Added config.h/lisp.h, fix up includes.
7187         [1].
7188
7189         * dired-msw.c:
7190         [4].
7191
7192         * dired.c:
7193         * dired.c (file_name_completion):
7194         * dired.c (Ffile_attributes):
7195         * dired.c (syms_of_dired):
7196         [1].
7197
7198         * dumper.c:
7199         * dumper.c (pdump_file_unmap):
7200         * dumper.c (pdump_load):
7201         [1].
7202
7203         * editfns.c:
7204         * editfns.c (Ftemp_directory):
7205         * editfns.c (user_login_name):
7206         * editfns.c (Fuser_real_login_name):
7207         * editfns.c (get_home_directory):
7208         [1].
7209
7210         * elhash.c (finish_marking_weak_hash_tables):
7211         [[[[5]]]]: Fix GCC warnings.
7212
7213         * emacs.c:
7214         * emacs.c (mswindows_handle_hardware_exceptions):
7215         * emacs.c (make_arg_list_1):
7216         * emacs.c (main_1):
7217         * emacs.c (Fkill_emacs):
7218         * emacs.c (Fdump_emacs):
7219         [1].
7220         Fix problems with nested crashes, add long comment.
7221
7222         * event-Xt.c (init_event_Xt_late):
7223         [1].
7224
7225         * event-msw.c:
7226         * event-msw.c (mswindows_dde_callback):
7227         * event-msw.c (mswindows_handle_sticky_modifiers):
7228         * event-msw.c (mswindows_wnd_proc):
7229         [1].
7230         [5].
7231
7232         * events.c (character_to_event):
7233         [1].
7234
7235         * fileio.c:
7236         * fileio.c (Ffile_name_directory):
7237         * fileio.c (Ffile_name_nondirectory):
7238         * fileio.c (directory_file_name):
7239         * fileio.c (Fexpand_file_name):
7240         * fileio.c (Fsubstitute_in_file_name):
7241         * fileio.c (Ffile_name_absolute_p):
7242         * fileio.c (check_executable):
7243         * fileio.c (Ffile_readable_p):
7244         * fileio.c (Ffile_accessible_directory_p):
7245         * fileio.c (Ffile_modes):
7246         * fileio.c (Funix_sync):
7247         * fileio.c (vars_of_fileio):
7248         [1]. [4].
7249
7250         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
7251
7252         Expand getdefdir defn.
7253         Fix bogus rename() comment.
7254
7255         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
7256         to use standard XEmacs include files, e.g. sysfile.h, rather
7257         than system-specific includes.
7258
7259         * fns.c:
7260         * fns.c (Fsubseq):
7261         [5]. [6].
7262
7263         * frame.c (vars_of_frame):
7264         [1].
7265
7266         * getloadavg.c:
7267         * getloadavg.c (getloadavg):
7268         [1]. [6].
7269         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
7270         (We don't use it elsewhere in the code; just add a comment.)
7271
7272         * gif_io.c:
7273         [6].
7274         Add config.h.
7275
7276         * glyphs-msw.c:
7277         * glyphs-msw.c (mswindows_resource_instantiate):
7278         [1].
7279
7280         * glyphs-x.c (x_native_layout_instantiate):
7281         [5].
7282
7283         * gui-msw.c (Fmswindows_shell_execute):
7284         [1].
7285
7286         * insdel.c:
7287         [4].
7288
7289         * lisp.h:
7290         [4]. [5].
7291
7292         * lread.c (locate_file_in_directory_mapper):
7293         [1].
7294
7295         * lstream.c:
7296         [4].
7297
7298         * mem-limits.h:
7299         * mem-limits.h (get_lim_data):
7300         [1].
7301
7302         * menubar-msw.c:
7303         [4].
7304
7305         * ndir.h:
7306         [1].
7307
7308         * nt.c:
7309         * nt.c (getwd):
7310         * nt.c (closedir):
7311         * nt.c (rva_to_section):
7312         * nt.c (mswindows_executable_type):
7313         [1]. [6].
7314         Fix closedir() defn.
7315
7316         * nt.h:
7317         [[[[8]]]]: *_OK defs moved to sysfile.h.
7318
7319         * ntproc.c:
7320         [6]. [7].
7321
7322         * objects-x.c:
7323         [4].
7324
7325         * print.c:
7326         * print.c (std_handle_out_external):
7327         [1]. [4].
7328
7329         * process-nt.c:
7330         * process-nt.c (nt_create_process):
7331         [6].
7332         try to fix process quoting somewhat.
7333
7334         * process-unix.c (unix_create_process):
7335         [1].
7336
7337         * process.c:
7338         * process.c (vars_of_process):
7339         Add Vnull_device.
7340
7341         * process.h:
7342         [1].
7343
7344         * realpath.c:
7345         * realpath.c (xrealpath):
7346         [1].
7347
7348         * redisplay-tty.c (init_tty_for_redisplay):
7349         [3].
7350
7351         * redisplay.c:
7352         [4]. [6].
7353
7354         * scrollbar-msw.c:
7355         [4].
7356
7357         * sheap.c:
7358         * sheap.c (more_static_core):
7359         * sheap.c (report_sheap_usage):
7360         [5]. [6].
7361
7362         * signal.c:
7363         * signal.c (alarm_signal):
7364         [1]. [6].
7365
7366         * sound.c:
7367         [6].
7368
7369         * strftime.c:
7370         * strftime.c (zone_name):
7371         [1]. [5].
7372
7373         * symsinit.h (init_sunpro):
7374         [1].
7375
7376         * syscommctrl.h:
7377         commctrl.h not in Cygwin b20.1.
7378
7379         * sysdep.c:
7380         * sysdep.c (endif):
7381         * sysdep.c (sys_subshell):
7382         * sysdep.c (init_baud_rate):
7383         * sysdep.c (emacs_get_tty):
7384         * sysdep.c (emacs_set_tty):
7385         * sysdep.c (tty_init_sys_modes_on_device):
7386         * sysdep.c (init_system_name):
7387         * sysdep.c (sys_open):
7388         * sysdep.c (interruptible_open):
7389         * sysdep.c (sys_fopen):
7390         * sysdep.c (sys_mkdir):
7391         * sysdep.c (sys_rename):
7392         * sysdep.c (get_process_times_1):
7393         [1]. [6].
7394
7395         * sysdep.h:
7396         [1].
7397
7398         * sysdir.h:
7399         * sysdir.h (DIRENTRY_NONEMPTY):
7400         [1]. [6].
7401
7402         * sysdll.c (dll_init):
7403         * sysdll.h:
7404         [1].
7405
7406         * sysfile.h:
7407         [1]. [6]. [8].
7408         added text/binary defs.
7409
7410         * sysfloat.h:
7411         [1].
7412
7413         * sysproc.h:
7414         * sysproc.h (EDESTADDRREQ):
7415         * sysproc.h (poll_fds_for_input):
7416         [1]. [6].
7417
7418         * syspwd.h:
7419         [6].
7420
7421         * syssignal.h:
7422         [1].
7423
7424         * systime.h:
7425         [1]. [6].
7426
7427         * systty.h:
7428         [1].
7429
7430         * syswindows.h:
7431         [1].
7432         Always define WIN32_LEAN_AND_MEAN.
7433
7434         * unexcw.c (unexec):
7435         [5].
7436
7437         * unexec.c:
7438         * unexec.c (copy_text_and_data):
7439         * unexec.c (adjust_lnnoptrs):
7440         [1].
7441
7442         * unexnt.c:
7443         * unexnt.c (_start):
7444         [1].
7445
7446 2000-06-07  Ben Wing  <ben@xemacs.org>
7447
7448         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
7449         was used only as a model.  We've long since extracted any useful
7450         logic or code out of this. (I just did an exhaustive search.)
7451
7452         * s\msdos.h: Removed.
7453
7454         * s\windows95.h: Removed.
7455
7456 2000-06-10  Ben Wing  <ben@xemacs.org>
7457
7458         * s\cygwin32.h:
7459         [1]. [5].
7460         Don't use extern with fun defs.
7461
7462         * s\mingw32.h:
7463         [1]. [7].
7464         Remove nt\inc include.
7465         Remove getdisk, getdefdir. (The former is unused, the latter
7466         expanded in fileio.h.)
7467
7468         * s\windowsnt.h:
7469         * s\windowsnt.h (WIN32_NATIVE):
7470         * s\windowsnt.h (HAVE_STRCASECMP):
7471         [1]. [7].
7472         Add long comment about preprocessor changes.
7473         Remove getdisk, getdefdir. (The former is unused, the latter
7474         expanded in fileio.h.)
7475
7476 2000-06-10  Ben Wing  <ben@xemacs.org>
7477
7478         * m\arm.h:
7479         * m\delta.h:
7480         * m\intel386.h:
7481         * m\sequent.h:
7482         * m\template.h:
7483         * m\windowsnt.h:
7484         [1].
7485         Remove bogus/unused NO_SOCK_SIGIO.
7486
7487 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
7488
7489         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
7490         not an Emchar.
7491
7492 2000-06-04  Mike Sperber <mike@xemacs.org>
7493
7494         * casetab.c (set_case_table): For `set-standard-case-table',
7495         actually deposit the new case tables where the rest of XEmacs can
7496         see them.
7497
7498 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
7499
7500         * data.c (Faset): Don't cast XCHAR() to unsigned char.
7501
7502 2000-06-05  Ben Wing  <ben@xemacs.org>
7503
7504         * callproc.c (child_setup): Don't do close_load_descs() under
7505         MS Windows.  Put in a comment explaining why.
7506
7507 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
7508
7509         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
7510         Toolkit shell" which breaks `kill-compilation' on Windows NT
7511         native, retaining STDERR handling improvements.
7512
7513 2000-06-01  Andreas Jaeger  <aj@suse.de>
7514
7515         * s/s390.h: Support for S390, based on a patch by Martin
7516         Schwidefsky <schwidefsky@de.ibm.com>.
7517
7518 2000-05-30  Andy Piper  <andy@xemacs.org>
7519
7520         * window.c (allocate_window):
7521         (make_dummy_parent):
7522         (Fset_window_configuration): use new hashtable type.
7523
7524         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
7525         (struct image_instantiator_methods):
7526         (struct Lisp_Image_Instance): make instance geometry signed.
7527
7528         * glyphs.c (instantiate_image_instantiator):
7529         (image_instance_query_geometry):
7530         (image_instance_layout):
7531         (image_instance_layout):
7532         (query_string_geometry):
7533         (text_query_geometry):
7534         (image_instantiate):
7535         (image_instantiate):
7536         (cache_subwindow_instance_in_frame_maybe):
7537         (subwindow_query_geometry): make instance geometry signed.
7538
7539         * glyphs-widget.c (widget_query_geometry):
7540         (widget_layout):
7541         (button_query_geometry):
7542         (tree_view_query_geometry):
7543         (tab_control_query_geometry):
7544         (layout_query_geometry):
7545         (layout_layout):
7546         (native_layout_layout): make instance geometry signed.
7547
7548 2000-05-29  Olivier Galibert  <galibert@pobox.com>
7549
7550         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
7551         constant.
7552
7553         * general.c (syms_of_general): Add Qfull_assoc symbol.
7554
7555         * data.c (finish_marking_weak_lists): Mark full-assoc lists
7556         correctly.
7557         (decode_weak_list_type): Decode full-assoc type.
7558         (encode_weak_list_type): Encode full-assoc type.
7559         (Fmake_weak_list): Update doc string.
7560
7561 2000-05-30  Andy Piper  <andy@xemacs.org>
7562
7563         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
7564
7565         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
7566         (decode_hash_table_weakness): ditto.
7567         (Fhash_table_weakness): ditto.
7568         (Fhash_table_type): ditto.
7569         (finish_marking_weak_hash_tables): ditto.
7570         (hash_table_weakness_validate): ditto.
7571         (syms_of_elhash): ditto.
7572
7573 2000-05-28  Martin Buchholz <martin@xemacs.org>
7574
7575         * XEmacs 21.2.34 is released.
7576
7577 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
7578
7579         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
7580         start cache.
7581         (updating_line_start_cache): Gone.
7582         (regenerate_window): Replace resetting of VERTICAL_CLIP by
7583         generic code to force a minimum of 1 line laid out in the
7584         CMOTION_DISP case.
7585
7586 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
7587
7588         * glyphs.c (instantiate_image_instantiator): Check for initialized
7589         height & width no longer special cases IMAGE_NOTHING.
7590         (nothing_instantiate): Set height and width of instance.
7591
7592 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
7593
7594         * unexelf.c (unexec): Search for ".data" section.
7595         Initialize new_data2_offset from old_data_index.
7596         Remove redundant check for ElfW.
7597
7598 2000-05-23  Andy Piper  <andy@xemacs.org>
7599
7600         * glyphs.c (get_image_instantiator_governing_domain): allow more
7601         specific domains as the governing domain rather than expecting an
7602         exact match. This fixes problems with layouts.
7603
7604 2000-05-22  Andy Piper  <andy@xemacs.org>
7605
7606         * redisplay-output.c (compare_runes): check for non-images
7607
7608         * glyphs.c (set_glyph_dirty_p): ditto.
7609         (update_glyph_cachel_data): ditto.
7610
7611         * glyphs-widget.c (layout_post_instantiate): ditto.
7612         (layout_post_instantiate): ditto.
7613
7614         * event-msw.c (mswindows_wnd_proc): warning removal.
7615
7616 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
7617
7618         * s\mingw32.h: Added #undef for CLASH_DETECTION.
7619
7620         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
7621
7622         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
7623
7624         * nt.c (rva_to_section): mingw32 needs rva_to_section.
7625         (mswindows_executable_type): mingw32 now has enough headers for
7626         this to work.
7627
7628 2000-05-20  Andy Piper  <andy@xemacs.org>
7629
7630         * console-msw.c (mswindows_output_last_error): ; -> ,
7631
7632 2000-05-12  Andy Piper  <andy@xemacs.org>
7633
7634         * console-msw.c (FROB): compare ints with ints.
7635
7636 2000-05-11  Andy Piper  <andy@xemacs.org>
7637
7638         * glyphs-x.c (x_finalize_image_instance): make minimal build
7639         happy.
7640
7641 2000-05-20  Ben Wing  <ben@xemacs.org>
7642
7643         * event-Xt.c:
7644         * event-Xt.c (vars_of_event_Xt):
7645         move modifier-keys-are-sticky to event-stream.c.
7646
7647         * event-msw.c:
7648         * event-msw.c (mswindows_enqueue_mouse_button_event):
7649         * event-msw.c (key_needs_default_processing_p):
7650         * event-msw.c (XEMSW_LCONTROL):
7651         * event-msw.c (mswindows_handle_sticky_modifiers):
7652         * event-msw.c (FROB):
7653         * event-msw.c (clear_sticky_modifiers):
7654         * event-msw.c (output_modifier_keyboard_state):
7655         * event-msw.c (output_alt_keyboard_state):
7656         * event-msw.c (mswindows_wnd_proc):
7657         * event-msw.c (mswindows_modifier_state):
7658         * event-msw.c (emacs_mswindows_handle_magic_event):
7659         implement sticky modifiers.
7660
7661         * event-stream.c:
7662         * event-stream.c (vars_of_event_stream):
7663         move modifier-keys-are-sticky here.
7664
7665         * lisp.h:
7666         add CHECK_FUNCTION.
7667
7668         * rangetab.c:
7669         implement map-range-table.
7670
7671
7672 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
7673
7674         * redisplay-tty.c (reset_tty_modes):
7675         (tty_redisplay_shutdown): Adjust argument type to
7676         tty_frame_output_end.
7677
7678 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
7679
7680         * eval.c (Fbacktrace): Don't output a line with only right
7681         parenthesis.
7682
7683 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
7684
7685         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
7686         (Fpq_reset_poll): Ditto.
7687
7688 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
7689
7690         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
7691
7692 2000-05-16  Ben Wing  <ben@xemacs.org>
7693
7694         * buffer.c:
7695         * buffer.c (dfc_convert_to/from_internal_format):
7696         * buffer.c (reinit_vars_of_buffer):
7697         Fix conversion functions to allow reentrancy.
7698
7699         * console-msw.c:
7700         * console-msw.c (mswindows_output_last_error):
7701         New fun, generally useful -- output a human-readable
7702         version of GetLastError() on the console.
7703
7704         * console-msw.h:
7705         * console-msw.h (struct mswindows_frame):
7706         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
7707
7708         * console-stream.c (stream_output_begin):
7709         * console-stream.c (stream_output_end):
7710         * console-stream.c (stream_output_vertical_divider):
7711         * console-stream.c (stream_clear_region):
7712         * console-stream.c (stream_flash):
7713         * console-stream.c (console_type_create_stream):
7714         Delete blank stream methods, not needed.
7715
7716         * console.h (struct console_methods):
7717         Split begin/end methods into window and frame.
7718
7719         * event-msw.c:
7720         * event-msw.c (mswindows_handle_paint):
7721         * event-msw.c (output_alt_keyboard_state):
7722         * event-msw.c (mswindows_wnd_proc):
7723         * event-msw.c (vars_of_event_mswindows):
7724         Comment about problems with ignored-expose.
7725         Define mswindows-debug-events; not really implemented.
7726
7727         * frame-msw.c (mswindows_init_frame_1):
7728         random cleanups.
7729
7730         * glyphs-msw.c:
7731         * glyphs-msw.c (begin_defer_window_pos):
7732         * glyphs-msw.c (mswindows_unmap_subwindow):
7733         * glyphs-msw.c (mswindows_map_subwindow):
7734         * glyphs-msw.c (mswindows_resize_subwindow):
7735         Use DeferWindowPos to reduce flashing when mapping/unmapping.
7736
7737         * glyphs.c (make_image_instance_1):
7738         Fix crash.
7739
7740         * gutter.c (Fredisplay_gutter_area):
7741         Use new begin/end methods.
7742
7743         * lisp.h (Dynarr_new2):
7744         New creation fun.
7745
7746         * redisplay-msw.c:
7747         * redisplay-msw.c (mswindows_frame_output_begin):
7748         * redisplay-msw.c (mswindows_frame_output_end):
7749         * redisplay-msw.c (console_type_create_redisplay_mswindows):
7750         New begin/end methods -- handle DeferWindowPos.
7751
7752         * redisplay-output.c (redisplay_move_cursor):
7753         * redisplay-output.c (redraw_cursor_in_window):
7754         * redisplay-output.c (redisplay_update_line):
7755         * redisplay-output.c (redisplay_output_window):
7756         New begin/end methods.
7757
7758         * redisplay-tty.c:
7759         * redisplay-tty.c (tty_frame_output_begin):
7760         * redisplay-tty.c (tty_frame_output_end):
7761         * redisplay-tty.c (console_type_create_redisplay_tty):
7762         New begin/end methods.
7763
7764         * redisplay-x.c:
7765         * redisplay-x.c (x_window_output_begin):
7766         * redisplay-x.c (x_window_output_end):
7767         * redisplay-x.c (console_type_create_redisplay_x):
7768         New begin/end methods.
7769
7770         * redisplay.c (redisplay_frame):
7771         * redisplay.c (Fredisplay_echo_area):
7772         New begin/end methods.
7773         use MAYBE_DEVMETH for clear_frame; it may not exist.
7774
7775         * window.h (WINDOW_XFRAME):
7776         WINDOW_XFOO macros -- get locale and decode struct pointer.
7777
7778
7779 2000-05-12  Ben Wing  <ben@xemacs.org>
7780
7781         * emacs.c:
7782         * emacs.c (ensure_no_quitting_from_now_on):
7783         * emacs.c (fatal_error_signal):
7784         * emacs.c (mswindows_handle_hardware_exceptions):
7785         * emacs.c (main):
7786         * emacs.c (Fkill_emacs):
7787         * emacs.c (shut_down_emacs):
7788         * emacs.c (assert_failed):
7789         various improvements in fatal error handling.
7790
7791         * eval.c:
7792         move preparing_for_armageddon to emacs.c.
7793
7794         * lisp.h:
7795         declare fatal_error_in_progress.
7796
7797         * print.c:
7798         * print.c (std_handle_out_external):
7799         * print.c (std_handle_out_va):
7800         * print.c (stderr_out):
7801         * print.c (stdout_out):
7802         use console under mswin when no standard output.
7803         don't do code conversion during fatal error.
7804
7805         * scrollbar.c (Fscrollbar_page_up):
7806         * scrollbar.c (Fscrollbar_page_down):
7807         fix missing else.  reindent.
7808
7809 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
7810
7811         Emergency fix.
7812
7813         * glyphs.h (GLYPH_CACHEL_DESCENT):
7814         (GLYPH_CACHEL_DESCENT):
7815         (GLYPH_CACHEL_DESCENT):
7816         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
7817         used in case these are inline functions.
7818         Use more absurd values to error check.
7819
7820         include window.h for error check functions.
7821
7822 2000-05-11  Ben Wing  <ben@xemacs.org>
7823
7824         * cmdloop.c (Freally_early_error_handler):
7825         Display message box under windows; otherwise, message will disappear
7826         before it can be viewed.
7827
7828         * console-msw.c:
7829         * console-msw.c (Fmswindows_message_box):
7830         * console-msw.c (FROB):
7831         * console-msw.c (syms_of_console_mswindows):
7832         Define new fun `mswindows-message-box'.
7833         #### I will merge this into `popup-dialog-box'; just give me
7834         a bit of time.
7835
7836         * general.c:
7837         * general.c (syms_of_general):
7838         Some new symbols used in `mswindows-message-box'.
7839
7840         * glyphs.c:
7841         * glyphs.c (Fset_image_instance_property):
7842         put warning in this fun.
7843
7844         * glyphs.h:
7845         * glyphs.h (GLYPH_CACHEL_WIDTH):
7846         * glyphs.h (GLYPH_CACHEL_ASCENT):
7847         * glyphs.h (GLYPH_CACHEL):
7848         * glyphs.h (GLYPH_CACHEL_GLYPH):
7849         define error-checking versions to try to catch a bug i've seen --
7850         redisplay gets in an infinite loop because the glyph width of the
7851         continuation glyph is 65535.
7852
7853         * lisp.h:
7854         Extern message-box stuff.
7855
7856         * window.c (allocate_window):
7857         * window.c (make_dummy_parent):
7858         * window.c (Fset_window_configuration):
7859         Use EQUAL not EQ for subwindow caches to make them work a bit
7860         better. (Something is still very broken.)
7861
7862
7863 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
7864
7865         * glyphs.c (image_instantiate): Suppress gcc warnings.
7866         (Fmake_image_instance): Fix doc string.
7867         * specifier.c (Fmake_specifier): Ditto.
7868
7869 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
7870
7871         * paths.h.in (PATH_LOCK): Removed.
7872         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
7873         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
7874
7875 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
7876
7877         * fns.c (Ffeaturep): Update e-mail address in doc-string.
7878         Document (featurep '(and xemacs 21.02)).
7879
7880 2000-05-09  Ben Wing  <ben@xemacs.org>
7881
7882         * buffer.c (complex_vars_of_buffer):
7883         update modeline-format doc.
7884
7885         * device.h:
7886         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
7887
7888         * emacs.c:
7889         timeline of all released versions of Emacs, for use in creating
7890         authorship comments and in synching up.
7891
7892         * glyphs-widget.c (image_instantiator_buttons):
7893         * glyphs-widget.c (image_instantiator_edit_fields):
7894         * glyphs-widget.c (image_instantiator_combo_box):
7895         * glyphs-widget.c (image_instantiator_scrollbar):
7896         * glyphs-widget.c (image_instantiator_progress_guage):
7897         * glyphs-widget.c (image_instantiator_tree_view):
7898         * glyphs-widget.c (image_instantiator_tab_control):
7899         * glyphs-widget.c (image_instantiator_labels):
7900         * glyphs-widget.c (image_instantiator_layout):
7901         * glyphs-widget.c (image_instantiator_native_layout):
7902         rename decode_domain method to governing_domain.
7903
7904         * glyphs.c:
7905         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
7906         * glyphs.c (add_entry_to_device_ii_format_list):
7907         make sure we don't put an entry more than once into the list.
7908         * glyphs.c (check_instance_cache_mapper):
7909         *************************************************************
7910         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
7911         HAVE BEEN GETTING.
7912         *************************************************************
7913         * glyphs.c (get_image_instantiator_governing_domain):
7914         clean up, expand on new concept of governing domain.
7915         * glyphs.c (instantiate_image_instantiator):
7916         * glyphs.c (allocate_image_instance):
7917         use governing_domain instead of cache_domain in naming.
7918         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
7919         * glyphs.c (make_image_instance_1):
7920         * glyphs.c (Fmake_image_instance):
7921         allow for any domain (not just device), and process the
7922         governing domain correctly.  very big doc fix.
7923         * glyphs.c (Fimage_instance_domain):
7924         new primitive, to retrieve the governing domain of an image instance.
7925         * glyphs.c (image_instantiate):
7926         use new governing_domain stuff.  this fixes a crash you could get
7927         by instantiating certain widget glyphs in frame locales. (should
7928         signal an error instead of crashing.)
7929         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
7930         * glyphs.c (Fglyphp): clean up doc.
7931         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
7932         * glyphs.c (syms_of_glyphs):
7933         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
7934         * glyphs.c (image_instantiator_format_create): add some comments about
7935         bogus code.
7936         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
7937         for current-display-table. (Apparently Hrjove implemented in 1998 a
7938         design I wrote up in 1996, but didn't update the doc string.)
7939
7940         * glyphs.h: clean up a doc string.
7941         * glyphs.h (governing_domain):
7942         * glyphs.h (struct image_instantiator_methods):
7943         changes for governing_domain stuff.
7944
7945         * gutter.c:
7946         * gutter.c (Fgutter_specifier_p):
7947         * gutter.c (Fgutter_size_specifier_p):
7948         * gutter.c (Fgutter_visible_specifier_p):
7949         * objects.c:
7950         * objects.c (Fcolor_specifier_p):
7951         * objects.c (Ffont_specifier_p):
7952         * objects.c (Fface_boolean_specifier_p):
7953         doc strings moved to make-*-specifier.
7954
7955         * redisplay.c (add_disp_table_entry_runes_1):
7956         * redisplay.c (generate_fstring_runes):
7957         * redisplay.c (screen):
7958         add random comments and doc strings.
7959
7960         * specifier.c:
7961         * specifier.c (Fmake_specifier):
7962         major overhaul of this doc string.
7963
7964         * specifier.c (Fvalid_specifier_domain_p):
7965         comment about the bogosity of image instances being domains.
7966         * specifier.c (decode_domain):
7967         now non-static, used in glyphs.c.
7968         * specifier.c (specifier_instance):
7969         comment about the bogosity of image instances being domains.
7970         * specifier.c (Fgeneric_specifier_p):
7971         move doc string to make-generic-specifier.
7972         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
7973         rebackslashify.
7974
7975         * specifier.h:
7976         * specifier.h (DOMAIN_FRAME):
7977         * specifier.h (DOMAIN_LIVE_P):
7978         * specifier.h (DOMAIN_XDEVICE):
7979         rebackslashify.
7980         add comments about problems with these macros.
7981         prototype for decode_domain.
7982
7983         * toolbar.c:
7984         * toolbar.c (Ftoolbar_specifier_p):
7985         move doc string to `make-toolbar-specifier'.
7986
7987         * window.c (window_unmap_subwindows_cache_mapper):
7988         *************************************************************
7989         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
7990         HAVE BEEN GETTING.
7991         *************************************************************
7992
7993 2000-05-09  Andy Piper  <andy@xemacs.org>
7994
7995         * glyphs.h: declare reset_frame_subwindow_instance_cache.
7996
7997         * window.c (Fset_window_configuration): reset the frame subwindow
7998         cache and re-initialize the window subwindow caches.
7999
8000         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
8001
8002 2000-05-09  Ben Wing  <ben@xemacs.org>
8003
8004         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
8005         DWORD.
8006
8007 2000-04-26  Mike Woolley  <mike@bulsara.com>
8008
8009         * ntheap.c: Changed recreate_heap to limit the amount reserved
8010         for the heap to that which is actually available. Also now
8011         displays a message box (with some dignostics) in the event that
8012         it still can't start.
8013
8014 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
8015
8016         * callproc.c (Fold_call_process_internal): GCPRO path
8017
8018 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
8019
8020         Patch by Bill Perry.
8021
8022         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
8023         back data instead of #ifdef.
8024         (Fscrollbar_page_down): ditto.
8025
8026 2000-05-07  Ben Wing  <ben@xemacs.org>
8027
8028         * buffer.h:
8029         Kludge for defining Qmswindows_tstr.
8030
8031         * nt.c:
8032         * nt.c (open_input_file):
8033         * nt.c (open_output_file):
8034         * nt.c (rva_to_section):
8035         * nt.c (mswindows_executable_type):
8036         Move all memory-mapped-file routines here (some were in unexnt.c,
8037         which is bad because they are used by process-nt.c, and unexnt
8038         won't be around when portable dumping).  Synched the above routines
8039         with FSF 20.6.
8040
8041         * nt.h:
8042         Removed ifdef'd out bogus code.
8043         Fixed some prototypes.
8044
8045         * nt.h (file_data):
8046         * nt.h (OFFSET_TO_RVA):
8047         * nt.h (RVA_TO_OFFSET):
8048         * nt.h (RVA_TO_PTR):
8049         Moved the memory-mapped-file structures, macros and prototypes
8050         here, to parallel nt.c.  ntheap.h should really be removed
8051         entirely, and it's a non-portable-dumper specific file.
8052
8053         * ntheap.h (round_to_next):
8054         Moved the memory-mapped-file structures, macros and prototypes
8055         to nt.h.
8056
8057         * ntproc.c (compare_env):
8058         Moved rva_to_section and mswindows_executable_type to nt.c.
8059         Moved compare_env to process-nt.c.
8060         ntproc.c will die, one day.
8061
8062         * ntproc.c (sys_spawnve):
8063         Account for win32_ -> mswindows_.
8064
8065         * process-nt.c:
8066         * process-nt.c (struct nt_process_data):
8067         * process-nt.c (ensure_console_window_exists):
8068         * process-nt.c (compare_env):
8069         * process-nt.c (nt_create_process):
8070         * process-nt.c (nt_kill_process_by_pid):
8071         * process-nt.c (syms_of_process_nt):
8072         * process-nt.c (vars_of_process_nt):
8073         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
8074         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
8075         changes).  Eliminate our old `nt-quote-process-args' mechanism.
8076         Synch up nt_create_process with FSF 20.6 sys_spawnve.
8077         Move compare_env here from ntproc.c.
8078
8079         * process.c (Fprocess_send_region):
8080         Takes an optional fourth argument, BUFFER, which should fix some
8081         problems with call-process.
8082
8083         * syscommctrl.h:
8084         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
8085
8086         * syswindows.h:
8087         Move ICC_BAR_CLASSES to syscommctrl.h.
8088         Add preliminary macros for MSWindows/Mule.  More to come.
8089
8090         * unexnt.c:
8091         * unexnt.c (unexec):
8092         open_output_file moved to nt.c.
8093
8094
8095 2000-05-05  Andy Piper  <andy@xemacs.org>
8096
8097         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
8098         instance from the frame cache also since GC may catch up too late
8099         to make frame deletion sane.
8100
8101 2000-05-04  Andy Piper  <andy@xemacs.org>
8102
8103         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
8104         (x_finalize_image_instance): ungcpro on deletion.
8105
8106         * glyphs.c (image_instantiator_format_create): give pointers a
8107         query geometry method so that the geometry is at least set.
8108
8109         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
8110         initialize layouts if using widgets.
8111
8112 2000-05-03  Andy Piper  <andy@xemacs.org>
8113
8114         * nt.c: remove bogus reference to sysmmsystem.h
8115
8116         * gui-x.c (popup_selection_callback): fix no selection abort.
8117
8118 2000-05-02  Andy Piper  <andy@xemacs.org>
8119
8120         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
8121         (mswindows_widget_instantiate): ditto.
8122
8123         * glyphs-widget.c (initialize_widget_image_instance): initialize
8124         children correctly.
8125         (widget_instantiate): cope with children and items in the same
8126         instance.
8127
8128         * glyphs.c (mark_image_instance): cope with children as a first
8129         class member.
8130         (image_instance_equal): ditto.
8131         (image_instance_hash): ditto.
8132         (image_instance_changed): ditto.
8133
8134 2000-04-30  Andy Piper  <andy@xemacs.org>
8135
8136         * glyphs.c (subwindow_query_geometry): new function. Return some
8137         defaults.
8138         (subwindow_instantiate): don't assign dimensions if none have been
8139         given.
8140         (image_instantiator_format_create): add subwindow_query_geometry.
8141         (print_image_instance): cope with layouts as widgets.
8142
8143 2000-04-29  Andy Piper  <andy@xemacs.org>
8144
8145         * frame.c (delete_frame_internal): call
8146         free_frame_subwindow_instance_cache so that all subwindows are
8147         finalized before their parent.
8148         (mark_frame): remove subwindow_cachels.
8149         (Fmake_frame): remove subwindow_cachel manipulation.
8150         (allocate_frame_core): subwindow_instance_cache is a weak list.
8151         (delete_frame_internal): set subwindow_instance_cache to nil.
8152
8153         * glyphs-msw.c (mswindows_finalize_image_instance): make double
8154         finalization safe.
8155         (mswindows_finalize_image_instance): use the device
8156         not the domain as the domain may have died already.
8157
8158         * glyphs-x.c (x_finalize_image_instance): ditto.
8159         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
8160         HEIGHT.
8161
8162         * redisplay-output.c (redisplay_unmap_subwindows): update for
8163         subwindow instance cache as a weak list.
8164         (redisplay_unmap_subwindows_maybe): ditto.
8165         (redisplay_unmap_subwindows_except_us): ditto.
8166
8167         * glyphs.c (unmap_subwindow): error checking will check the domain
8168         so don't deal with it here. Don't use cachels anymore.
8169         (map_subwindow): ditto.
8170         (update_subwindow_cachel_data): remove old accessor names.
8171         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
8172         (Fresize_subwindow): don't update cachel.
8173         (mark_subwindow_cachels):
8174         (update_subwindow_cachel_data):
8175         (add_subwindow_cachel):
8176         (get_subwindow_cachel_index):
8177         (update_subwindow_cachel):
8178         (reset_subwindow_cachels):
8179         (mark_subwindow_cachels_as_not_updated): deleted.
8180         (cache_subwindow_instance_in_frame_maybe): new function. Add a
8181         subwindow instance to the frame cache.
8182         (find_matching_subwindow): update for subwindow instance cache as
8183         a weak list.
8184         (update_widget_instances): ditto.
8185         (image_instance_type_to_mask):inlined.
8186         (free_frame_subwindow_instance_cache): new function. finalize all
8187         subwindows that are instantiated.
8188
8189         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
8190         of cachel information.
8191         (IMAGE_INSTANCE_DISPLAY_X):
8192         (IMAGE_INSTANCE_DISPLAY_Y):
8193         (IMAGE_INSTANCE_DISPLAY_WIDTH):
8194         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
8195         (XIMAGE_INSTANCE_DISPLAY_X):
8196         (XIMAGE_INSTANCE_DISPLAY_Y):
8197         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
8198         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
8199         remove subwindow_cachel structure and function references.
8200         (image_instance_type_to_mask): inline from glyphs.c
8201
8202         * redisplay.c (redisplay_frame): remove subwindow_cachel
8203         references.
8204
8205         * frame.h (struct frame): remove subwindow_cachels.
8206         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
8207
8208         * frameslots.h: add subwindow_instance_cache.
8209
8210         * window.c (replace_window): check subwindow cache of replacement.
8211         (window_unmap_subwindows_cache_mapper):
8212         (window_unmap_subwindows): new functions. Unmap all subwindows
8213         cached on this window.
8214         (mark_window_as_deleted): unmap all subwindows.
8215
8216 2000-04-27  Andy Piper  <andy@xemacs.org>
8217
8218         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
8219
8220         * glyphs-widget.c (widget_layout): return something.
8221         (layout_layout): return something. Fail if not initialized.
8222         (layout_query_geometry): ditto.
8223         (image_instantiator_native_layout): new function. Initialized the
8224         native layout type.
8225         (widget_instantiate): don't do layout stuff here.
8226
8227         * glyphs.c (instantiate_image_instantiator): reorded calling or
8228         instantiate and post_instantiate with layout in between.
8229         (image_instance_layout): be more selective about deciding whether
8230         the layout has been done or not.
8231
8232         * glyphs.h (struct image_instantiator_methods): return a value
8233         from layout_method.
8234
8235 2000-04-26  Andy Piper  <andy@xemacs.org>
8236
8237         * glyphs.c (allocate_image_instance): make initial width and
8238         height unspecified. Set initialized to 0.
8239
8240         * syscommctrl.h new file. Encapsulates commctrl.h.
8241
8242         * syswindows.h new file. Encapsulates windows.h.
8243
8244         * ntplay.c: use new syswindows.h and syscommctrl.h header.
8245         * nt.c: ditto.
8246         * console-msw.h: ditto.
8247
8248         * redisplay-tty.c (tty_output_display_block): remove layout references.
8249
8250         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
8251         window handle rather than just the frame.
8252
8253         * glyphs.c (mark_image_instance): remove layout references.
8254         (print_image_instance): ditto.
8255         (image_instance_equal): ditto.
8256         (image_instance_hash): ditto.
8257         (decode_image_instance_type): ditto.
8258         (encode_image_instance_type): ditto.
8259         (image_instantiate): ditto.
8260         (allocate_glyph): ditto.
8261         (Fimage_instance_height): ditto.
8262         (Fimage_instance_width): ditto.
8263         (update_subwindow): ditto.
8264
8265         * redisplay-x.c (x_output_display_block): recode for layouts as
8266         widgets.
8267
8268         * redisplay-output.c (redisplay_output_layout): recode for layouts
8269         as widgets.
8270         (compare_runes): remove layout references.
8271
8272         * redisplay-msw.c (mswindows_output_display_block): recode for
8273         layouts as widgets.
8274
8275         * glyphs-widget.c (image_instantiator_layout): remove
8276         layout_possible_dest_types.
8277         (layout_possible_dest_types): deleted.
8278
8279         * glyphs.h (image_instance_type): remove layout references.
8280         (struct Lisp_Image_Instance): ditto. Add initialized flag.
8281         (IMAGE_INSTANCE_INITIALIZED): new accessor.
8282         (XIMAGE_INSTANCE_INITIALIZED): ditto.
8283
8284 2000-04-25  Andy Piper  <andy@xemacs.org>
8285
8286         * glyphs-widget.c (image_instantiator_buttons):
8287         (image_instantiator_edit_fields):
8288         (image_instantiator_combo_box):
8289         (image_instantiator_scrollbar):
8290         (image_instantiator_progress_guage):
8291         (image_instantiator_tree_view):
8292         (image_instantiator_tab_control):
8293         (image_instantiator_labels):
8294         (image_instantiator_layout): call default post_instantiate method.
8295         (widget_post_instantiate): new function. Simply lays out the
8296         widgets.
8297
8298         * glyphs.h (struct image_instantiator_methods): add
8299         post_instantiate method.
8300
8301         * glyphs.c (instantiate_image_instantiator): add post_instantiate
8302         method calls.
8303
8304 2000-04-23  Andy Piper  <andy@xemacs.org>
8305
8306         * glyphs.h (struct image_instantiator_methods): add
8307         decode_domain_method.
8308         (struct Lisp_Image_Instance): remove subwindow frame - it can be
8309         derived from the domain.
8310         (IMAGE_INSTANCE_FRAME): new accessor.
8311         (XIMAGE_INSTANCE_FRAME): ditto.
8312
8313         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
8314         instead of _SUBWINDOW_FRAME.
8315         (finalize_image_instance): ditto.
8316         (Fimage_instance_foreground): ditto.
8317         (Fimage_instance_background): ditto.
8318         (image_instantiate): ditto.
8319         (update_subwindow_cachel): ditto.
8320         (update_subwindow): ditto.
8321         (unmap_subwindow): ditto.
8322         (map_subwindow): ditto
8323         (subwindow_instantiate): ditto.
8324         * glyphs-msw.c (mswindows_update_widget): ditto.
8325         (mswindows_progress_gauge_instantiate): ditto.
8326         (mswindows_tab_control_update): ditto.
8327         * glyphs-x.c (x_update_widget): ditto.
8328         (x_widget_instantiate): ditto.
8329         (x_tab_control_instantiate): ditto.
8330         (x_tab_control_update): ditto.
8331         * event-msw.c (mswindows_wnd_proc): ditto
8332
8333         * glyphs-widget.c (image_instantiator_layout): use
8334         subwindow_decode_domain.
8335         (image_instantiator_buttons): ditto.
8336         (image_instantiator_edit_fields): ditto.
8337         (image_instantiator_combo_box): ditto.
8338         (image_instantiator_scrollbar): ditto.
8339         (image_instantiator_progress_guage): ditto.
8340         (image_instantiator_tree_view): ditto.
8341         (image_instantiator_tab_control): ditto.
8342         (image_instantiator_labels): ditto.
8343         (image_instantiator_layout): ditto.
8344
8345         * glyphs.c: add instance error checking to many functions.
8346         (instantiate_image_instantiator): decode device from cache_domain.
8347         (image_instantiate): partially rewrite by using
8348         decode_image_instantiator_domain to determine what domain the
8349         instance needs to be cached in.
8350         (decode_image_instantiator_domain): new function. Determine what
8351         domain the image needs to be cached in.
8352         (check_window_subwindow_cache): new error checking function.
8353         (check_instance_cache_mapper): ditto.
8354         (check_image_instance_structure): ditto.
8355         (subwindow_decode_domain): new function. Encodes a window as a
8356         subwindow's cache domain.
8357         (image_instantiator_format_create): use it for text and
8358         subwindows.
8359
8360 2000-04-21  Andy Piper  <andy@xemacs.org>
8361
8362         * glyphs.c (image_instance_device): new function.
8363         (image_instance_frame): new function.
8364         (image_instance_window): new function.
8365         (image_instance_live_p): new function.
8366
8367         * window.c (mark_window_as_deleted): reset the subwindow_instance_
8368         cache to nil.
8369
8370         * glyphs.h (struct Lisp_Image_Instance): device->domain.
8371         (IMAGE_INSTANCE_DOMAIN): new accessor.
8372         (XIMAGE_INSTANCE_DOMAIN): ditto.
8373
8374         * glyphs-x.c (x_finalize_image_instance): device->domain.
8375
8376         * glyphs-msw.c (init_image_instance_geometry): device->domain.
8377         (mswindows_finalize_image_instance): ditto.
8378
8379         * glyphs-eimage.c (jpeg_instantiate): device->domain.
8380         (gif_instantiate): ditto.
8381         (png_instantiate): ditto.
8382         (tiff_instantiate): ditto.
8383
8384         * glyphs.c (instantiate_image_instantiator): use domain rather
8385         than device.
8386         (mark_image_instance): device -> domain.
8387         (print_image_instance): ditto.
8388         (finalize_image_instance): ditto.
8389         (image_instance_equal): ditto.
8390         (allocate_image_instance): ditto.
8391         (Fcolorize_image_instance): ditto.
8392         (query_string_geometry): ditto.
8393         (image_instantiate): ditto
8394         (query_string_font): ditto.
8395         (image_instantiate): ditto.
8396         (update_subwindow): ditto.
8397         (unmap_subwindow): ditto.
8398         (map_subwindow): ditto.
8399         (subwindow_instantiate): ditto.
8400
8401         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
8402         (DOMAIN_FRAME): ditto.
8403         (DOMAIN_WINDOW): ditto.
8404         (DOMAIN_LIVE_P): ditto.
8405         (XDOMAIN_DEVICE): ditto.
8406         (XDOMAIN_FRAME): ditto.
8407         (XDOMAIN_WINDOW): ditto.
8408
8409         * specifier.c (Fvalid_specifier_domain_p): add image instances as
8410         a valid specifier domain.
8411
8412 2000-04-19  Andy Piper  <andy@xemacs.org>
8413
8414         * glyphs-widget.c (syms_of_glyphs_widget): remove
8415         widget-callback-current-channel.
8416         (vars_of_glyphs_widget): ditto.
8417         * glyphs.h: ditto
8418
8419         * gui.c (get_gui_callback): revert to previous behaviour.
8420
8421 2000-04-18  Andy Piper  <andy@xemacs.org>
8422
8423         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
8424         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
8425         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
8426
8427         * glyphs.c (image_instance_equal): add margin_width.
8428         (image_instance_hash): ditto.
8429
8430         * glyphs-widget.c (widget_instantiate): deal with margin-width.
8431         (layout_query_geometry): ditto.
8432         (layout_layout): ditto.
8433         (syms_of_glyphs_widget): add margin-width.
8434         (image_instantiator_layout): allow margin-width.
8435
8436         * glyphs.c (update_widget_instances): make a normal function.
8437         (syms_of_glyphs): remove Qupdate_widget_instances.
8438         * glyphs.h: ditto.
8439
8440         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
8441         so that we don't corrupt ideas about the last event or
8442         command. Remove widget-callback-current-channel fiddling.
8443         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
8444
8445 2000-05-01  Martin Buchholz <martin@xemacs.org>
8446
8447         * XEmacs 21.2.33 is released.
8448
8449 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
8450
8451         * make-src-depend: Allow dots in header file name.
8452
8453 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
8454
8455         * mule-charset.h (struct charset_lookup): Add
8456         next_allocated_1_byte_leading_byte and
8457         next_allocated_2_byte_leading_byte.
8458         * mule-charset.c: Move above two variables so that those values
8459         will be dumped.
8460
8461 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
8462
8463         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
8464         when string length is zero.
8465         (find_charsets_in_emchar_string): Ditto.
8466
8467 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
8468
8469         * lisp.h: extern Qdialog and Qmenubar.
8470
8471         * gui-x.c: added events.h.
8472                 also fixed typo which made the file uncompilable.
8473
8474         * general.c: Added Qmenubar and Qdialog
8475
8476 2000-04-28  Ben Wing  <ben@xemacs.org>
8477
8478         * frame-msw.c (mswindows_init_frame_1):
8479         * frame-msw.c (mswindows_mark_frame):
8480         * event-msw.c (mswindows_enqueue_dispatch_event):
8481         * console-msw.h:
8482         * console-msw.h (struct mswindows_frame):
8483         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
8484         there are now three hash tables for callbacks.
8485         mswindows_enqueue_dispatch_event is no longer static.
8486
8487         * dialog-x.c (maybe_run_dbox_text_callback):
8488         * dialog-x.c (dbox_descriptor_to_widget_value):
8489         switch to new cons3 form for callbacks.
8490
8491         * glyphs-msw.c (mswindows_register_gui_item):
8492         * glyphs-msw.c (mswindows_widget_instantiate):
8493         * glyphs-msw.c (add_tree_item):
8494         * glyphs-msw.c (add_tab_item):
8495         new image instance parameter, so it can be passed to callback-ex.
8496         respect :callback-ex as well as :callback.
8497
8498         * glyphs-widget.c (VALID_GUI_KEYWORDS):
8499         add :callback-ex.
8500
8501         * glyphs.c (print_image_instance):
8502         prettify, e.g. now prints widget type.
8503
8504         * gui-x.h:
8505         certain funs have new image instance parameter.
8506
8507         * gui.c:
8508         * gui.c (get_gui_callback):
8509         * gui.c (gui_item_add_keyval_pair):
8510         * gui.c (gui_item_init):
8511         * gui.c (gui_add_item_keywords_to_plist):
8512         * gui.c (mark_gui_item):
8513         * gui.c (gui_item_hash):
8514         * gui.c (gui_item_equal):
8515         * gui.c (copy_gui_item):
8516         * gui.c (syms_of_gui):
8517         recognize callback-ex in a number of places.
8518         also, fix the annoying "can't get out of yes-no dialog" bug.
8519
8520         * gui.h:
8521         * gui.h (struct Lisp_Gui_Item):
8522         recognize callback-ex in a number of places.
8523
8524         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
8525         new parameter in button_item_to_widget_value.
8526
8527         * glyphs-x.c (x_update_widget):
8528         * glyphs-x.c (x_button_instantiate):
8529         * glyphs-x.c (x_button_update):
8530         * glyphs-x.c (x_progress_gauge_instantiate):
8531         * glyphs-x.c (x_edit_field_instantiate):
8532         * glyphs-x.c (x_combo_box_instantiate):
8533         * glyphs-x.c (x_tab_control_instantiate):
8534         * glyphs-x.c (x_label_instantiate):
8535         new image instance parameter in various places.
8536
8537         * event-Xt.c:
8538         * event-Xt.c (enqueue_Xt_dispatch_event):
8539         this fun gets exported.
8540
8541         * gui-msw.c:
8542         * gui-msw.c (mswindows_handle_gui_wm_command):
8543         handle both :callback and :callback-ex, and generate our own
8544         event because it's one of the callback-ex arguments.
8545
8546         * gui-x.c:
8547         * gui-x.c (popup_selection_callback):
8548         handle both :callback and :callback-ex, and generate our own
8549         event because it's one of the callback-ex arguments.
8550         * gui-x.c (button_item_to_widget_value):
8551         * gui-x.c (gui_items_to_widget_values_1):
8552         * gui-x.c (gui_item_children_to_widget_values):
8553         * gui-x.c (gui_items_to_widget_values):
8554         new image instance parameter in various places.
8555
8556         * fns.c (Freplace_list):
8557         fix small typo in doc string.
8558
8559         * lisp.h:
8560         declare enqueue_Xt_dispatch_event.
8561
8562 2000-04-28  Ben Wing  <ben@xemacs.org>
8563
8564         * buffer.c:
8565         * buffer.c (Frecord_buffer):
8566         * buffer.c (syms_of_buffer):
8567         delete record-buffer-hook.
8568
8569         * fns.c:
8570         * fns.c (Freplace_list):
8571         * fns.c (syms_of_fns):
8572         new primitive replace-list.
8573
8574         * frameslots.h:
8575         slot for old buffer-alist.
8576
8577         * lisp.h:
8578         exfun replace-list.
8579
8580         * redisplay.c:
8581         * redisplay.c (redisplay_frame):
8582         * redisplay.c (syms_of_redisplay):
8583         * redisplay.c (vars_of_redisplay):
8584         new hook buffer-list-changed-hook.
8585         call it.
8586
8587 2000-04-27  Ben Wing  <ben@xemacs.org>
8588
8589         * extents.h: extern in_modeline_generation.
8590
8591         * redisplay.c (generate_formatted_string_db): set
8592         in_modeline_generation.
8593
8594         * extents.c (extent_changed_for_redisplay): don't mark redisplay
8595         flags if in modeline generation.  otherwise frame-modified-tick
8596         is ticked far too often.
8597         Declare in_modeline_generation.
8598
8599 2000-04-26  Ben Wing  <ben@xemacs.org>
8600
8601         * emacs.c (vars_of_emacs): document quick-build "error-checking"
8602         option.
8603         (vars_of_emacs): add quick-build as an error-checking option.
8604         A bit kludgy, but there doesn't seem much point in creating
8605         a real var for this.
8606
8607         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
8608
8609 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
8610
8611         * redisplay.h (struct display_line): Add a new variable,
8612         line_continuation.
8613
8614         * redisplay.c (create_text_block): Set dl->line_continuation if
8615         the line continues.
8616         (create_string_text_block): Ditto.
8617         (regenerate_window_incrementally): Use line_continuation instead
8618         of searching continuation glyph.
8619         (add_margin_runes): Call add_glyph_rune.
8620         (add_glyph_rune): Handle margin glyph.
8621
8622 2000-04-20  Martin Buchholz  <martin@xemacs.org>
8623
8624         * filelock.c (fill_in_lock_file_name):
8625         ANSIfy.
8626         Check for IS_ANY_SEP instead of '/'.
8627         (lock_file_1):
8628         Avoid generating gratuitous garbage.  Call user_login_name() directly.
8629         Never check errno without first seeing that system call failed.
8630         (unlock_file): Add GCPRO.
8631         (Flock_buffer): Fix docstring.
8632         (Ffile_locked_p): Fix docstring.  Add GCPRO.
8633
8634 2000-04-19  Martin Buchholz  <martin@xemacs.org>
8635
8636         * sysdep.c (get_pty_max_bytes):
8637         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
8638         strings longer than 252 bytes.
8639
8640         * md5.c: Unconditionally include ANSI header <limits.h>
8641
8642         * glyphs-x.c (convert_EImage_to_XImage):
8643         * lisp-union.h (union Lisp_Object):
8644         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
8645
8646 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8647
8648         * filelock.c (current_lock_owner): Remove unused variable o, p.
8649
8650 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
8651
8652         * callint.c: Remove multiply defined symbol Qlet
8653         (syms_of_callint): ditto.
8654
8655 2000-04-14  Andy Piper  <andy@xemacs.org>
8656
8657         * general.c (syms_of_general): add last-command, this-command, let
8658         and funcall.
8659
8660         * lisp.h: declare various symbols.
8661
8662         * glyphs.h: declare Qwidget_callback_current_channel;
8663
8664         * glyphs-widget.c (syms_of_glyphs_widget): add
8665         Qgui_callback_current_channel.
8666         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
8667
8668         * gui-msw.c (mswindows_handle_gui_wm_command): bind
8669         widget-callback-current-channel when invoking the interactive
8670         arg. Also bind last-command and next-command when invoking the
8671         widget updates.
8672         * gui-x.c (popup_selection_callback): ditto.
8673
8674         * gui.c (get_gui_callback): massage args so that we are always
8675         calling eval. This allows us to add our own variable bindings
8676         outside.
8677
8678         * glyphs-x.c (x_button_instantiate): use
8679         gui_items_to_widget_values since this is GC safe.
8680         (x_progress_gauge_instantiate): ditto.
8681         (x_edit_field_instantiate): ditto.
8682         (x_label_instantiate): ditto.
8683
8684         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
8685         (emacs_Xt_event_widget_focus_out): new function
8686         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
8687         focus.
8688         (emacs_Xt_event_add_widget_actions): new function. add focus
8689         functions as actions.
8690         (init_event_Xt_late): use it.
8691
8692 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
8693
8694         * event-stream.c (Fdispatch_event): Doc fix.
8695
8696 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
8697
8698         * postgresql.c: Remove all references to PQsetenv*.
8699
8700         * postgresql.h: Remove references to PGsetenvHandler object.
8701         * lrecord.h (lrecord_type): Ditto.
8702
8703 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8704
8705         * glyphs-msw.h (struct mswindows_image_instance_data): Added
8706         real_heigh and real_width members, and accessor macros for these.
8707
8708         * glyphs-msw.c (init_image_instance_geometry): New function.
8709         (init_image_instance_from_dibitmap): Use it.
8710         (mswindows_resource_instantiate): Use it.
8711         (init_image_instance_from_xbm_inline): Use it.
8712         (mswindows_initialize_image_instance_mask): Use real bitmap
8713         geometry.
8714         (mswindows_create_resized_bitmap): Ditto.
8715         (mswindows_create_resized_mask): Ditto.
8716
8717         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
8718         and bitmap to their surface size.
8719
8720 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
8721
8722         * process-unix.c (unix_send_process): Guard against process MIA
8723         after Faccept_process_output.
8724
8725 2000-04-11  Ben Wing  <ben@xemacs.org>
8726
8727         * eval.c (unbind_to_hairy): fix brokenness introduced by
8728         nanosecond speed improvements.
8729
8730 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
8731
8732         * sunplay.c (init_device): To play sounds correctly, the device
8733         apparently needs to be initialized at least once by XEmacs.  Make
8734         it so.
8735
8736 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
8737
8738         * redisplay.c (add_margin_runes): Add text image glyph
8739           handling.
8740
8741 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8742
8743         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
8744         gcc is newer than 2.5.
8745
8746 2000-04-06  Colin Rafferty  <colin@xemacs.org>
8747
8748         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
8749
8750         * fns.c (size_bit_vector):
8751         * alloc.c (size_vector):
8752         (make_vector_internal):
8753         (make_bit_vector_internal):
8754         (sweep_bit_vectors_1):
8755         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
8756
8757 2000-04-06  Andy Piper  <andy@xemacs.org>
8758
8759         * gmalloc.c (malloc): undo previous change.
8760         (malloc): ditto.
8761         (free): ditto.
8762         (realloc): ditto.
8763
8764 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
8765
8766         * line-number.c (buffer_line_number): Revert to former version.
8767
8768 2000-04-06  Andy Piper  <andy@xemacs.org>
8769
8770         * gmalloc.c (malloc): add error checking.
8771         (malloc): ditto.
8772         (free): ditto.
8773         (realloc): ditto.
8774
8775         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
8776         button_item_to_widget_value arg.
8777
8778         * glyphs-x.c (x_button_instantiate): add extra
8779         button_item_to_widget_value arg.
8780         (x_progress_gauge_instantiate): ditto.
8781         (x_edit_field_instantiate): ditto.
8782         (x_label_instantiate): ditto.
8783
8784         * gui-x.c (gui_items_to_widget_values_1): add extra
8785         button_item_to_widget_value arg.
8786         (button_item_to_widget_value): add extra menu_item_p arg.
8787
8788         * gui-x.h: change signature of button_item_to_widget_value.
8789
8790         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
8791         button_item_to_widget_value arg.
8792
8793 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
8794
8795         * buffer.h (struct buffer): auto_save_modified should be long.
8796
8797 2000-04-05  Andy Piper  <andy@xemacs.org>
8798
8799         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
8800         type.
8801         (button_query_geometry): give a little more room so that athena
8802         buttons fit.
8803
8804 2000-04-05  Andy Piper  <andy@xemacs.org>
8805
8806         * faces.c (complex_vars_of_faces): The widget face should inherit
8807         the font of the gui-element face.
8808
8809 2000-04-04  Andy Piper  <andy@xemacs.org>
8810
8811         * glyphs-x.c (x_button_update): new function. unconditionally
8812         update a button's state when the instance is dirty.
8813         (image_instantiator_format_create_glyphs_x): add x_button_update.
8814         (x_widget_instantiate): remove old resize cruft.
8815
8816 2000-04-02  Andy Piper  <andy@xemacs.org>
8817
8818         * frame.c (change_frame_size_1): The introduction of gutters means
8819         that we need to allow 0 as a potential frame dimension.
8820
8821 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
8822
8823         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
8824         image glyph if allow_cursor.
8825         (add_hscroll_rune): Don't allow cursor to border glyph.
8826         (create_text_block): Ditto.
8827
8828         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
8829         text not in buffer.
8830         (redisplay_output_layout): Call ensure_face_cachel_complete for
8831         text image glyph.
8832
8833
8834 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
8835
8836         * redisplay.c (add_glyph_rune): Adding text image as text runes.
8837
8838         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
8839         not in buffer
8840
8841         * redisplay-tty.c (tty_output_display_block): Delete the routine
8842         for text image glyph
8843         * redisplay-x.c (x_output_display_block): ditto
8844         * redisplay-msw.c (mswindows_output_display_block): ditto
8845
8846 2000-02-02  Mike Alexander  <mta@arbortext.com>
8847
8848         Note: Some of these were committed by accident as part of other
8849         patches.
8850
8851         * regex.c (regex_compile): Avoid compiler warnings.
8852
8853         * ntproc.c (sys_spawnve): Avoid compiler warnings.
8854
8855         * nt.h: Declare term_ntproc correctly.
8856
8857         * nt.c: Remove incorrect declaration of get_home_directory which
8858         is declared correctly in lisp.h.
8859
8860         * keymap.c (get_keyelt): Avoid compiler warnings.
8861         (raw_lookup_key_mapper): Avoid compiler warnings.
8862
8863         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
8864
8865         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
8866
8867         * filemode.c (mode_string): Avoid compiler warnings.
8868
8869         * file-coding.c (Fcoding_system_aliasee): Add return statement to
8870         avoid warning.
8871
8872         * events-mod.h: Undef some things that winuser.h defines differently.
8873
8874         * data.c (Faset): Avoid compiler warnings.
8875
8876         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
8877
8878 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
8879
8880         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
8881         Fall through to simple beep on error.
8882         Replace "extern" by real header file.
8883
8884         * linuxplay.c: Use nativesound.h
8885         (play_sound_data): Return error code. Be less verbose on error.
8886
8887         * sunplay.c: Use nativesound.h
8888         (play_sound_data): Return error code. Be less verbose on error.
8889
8890         * ntplay.c: Use nativesound.h
8891         (play_sound_data): Return fake error code
8892
8893         * sgiplay.c: Use nativesound.h
8894         (play_sound_data): Return error code
8895
8896         * hpplay.c: Use nativesound.h, partially implement
8897         new error code. Break compilation until finished.
8898         (play_sound_data): error code.
8899
8900         * nativesound.h (play_sound_file):
8901           (play_sound_data): Prototype in new header.
8902
8903 2000-03-31  Andy Piper  <andy@xemacs.org>
8904
8905         * glyphs-widget.c: (button_query_geometry): new function. Adjust
8906         for toggle and radio buttons.
8907         (image_instantiator_buttons): use it.
8908
8909 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
8910
8911         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
8912         (x_update_horizontal_scrollbar_callback): Return if no mirror was
8913         found. Scrollbar event probably belonged to some old config.
8914
8915 2000-03-31  Andy Piper  <andy@xemacs.org>
8916
8917         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
8918         than 1.
8919         (initialize_widget_image_instance): default layout to
8920         LAYOUT_HORIZONTAL rather than 0.
8921         (widget_instantiate): reverse the item list at the end rather than
8922         every iteration.
8923         (layout_layout): re-code for the border text at the front of the
8924         item list rather than at the end.
8925         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
8926         provided by the user.
8927         (widget_query_geometry): comment.
8928
8929 2000-03-30  Andy Piper  <andy@xemacs.org>
8930
8931         * glyphs-widget.c (image_instantiator_layout): allow standard
8932         widget keywords in layouts.
8933
8934         * gutter.c (output_gutter): cope with nil gutter contents.
8935
8936         * frame.c (Fset_frame_properties): add gutter docs.
8937
8938 2000-03-29  Andy Piper  <andy@xemacs.org>
8939
8940         * toolbar-msw.c (TBSTYLE_FLAT): add.
8941         (mswindows_output_toolbar): minor fiddling.
8942
8943 2000-03-29  Andy Piper  <andy@xemacs.org>
8944
8945         * gutter.c (output_gutter): force gutter size recalculation if
8946         what we are trying to display won't fit.
8947         (update_gutter_geometry): new function. A per-gutter version of
8948         update_frame_gutter_geometry.
8949         (update_frame_gutter_geometry): use it.
8950         (redraw_exposed_gutter): add extra debugging output.
8951
8952 2000-03-28  Mike Alexander  <mta@arbortext.com>
8953
8954         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
8955         (pdump_file_unmap): Implement it on Windows
8956         (pdump_file_get): Save alocated handles for pdump_file_unmap
8957
8958 2000-03-28  Andy Piper  <andy@xemacs.org>
8959
8960         * gui.c (get_gui_callback): treat Quit specially.
8961
8962 2000-03-27  Andy Piper  <andy@xemacs.org>
8963
8964         * glyphs.c (image_instantiate): be careful to check in the same
8965         way we assigned.
8966
8967 2000-03-27  Didier Verna  <didier@xemacs.org>
8968
8969         * config.h.in: define the proper SMART_INCLUDE macro.
8970         handle renaming of `foo_h_path' to `foo_h_file'.
8971
8972         * database.c: ditto.
8973
8974         * emacs.c: ditto.
8975
8976         * linuxplay.c: ditto.
8977
8978         * terminfo.c: ditto.
8979
8980         * tooltalk.h: ditto.
8981
8982 2000-03-27  Andy Piper  <andy@xemacs.org>
8983
8984         * glyphs-msw.c (mswindows_update_widget): make sure the widget
8985         gets updated whenever the face might have changed.
8986
8987 2000-03-26  Mike Alexander  <mta@arbortext.com>
8988
8989         * dumper.c (pdump_resource_free): Fix the comment.
8990
8991 2000-03-21  Olivier Galibert  <galibert@pobox.com>
8992
8993         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
8994
8995 2000-03-22  Mike Alexander  <mta@arbortext.com>
8996
8997         * dumper.c: Include Windows headers on Windows
8998         (pdump_resource_free): Add a body to the function
8999         (pdump_load): exe_name -> exe_path and add some comments.
9000
9001 2000-03-25  Mike Alexander  <mta@arbortext.com>
9002
9003         * gui.c (copy_gui_item_tree): Return a value in all cases
9004
9005 2000-03-21  Didier Verna  <didier@xemacs.org>
9006
9007         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
9008         lwlib/config.h.in.
9009         (SMART_INCLUDE): new macro.
9010         (POSTGRES_INCLUDE): new macro to include postgresql headers from
9011         the proper location.
9012
9013         * postgresql.c: use it.
9014
9015         * inline.c: ditto.
9016
9017 2000-03-24  Andy Piper  <andy@xemacs.org>
9018
9019         * gutter.c (redraw_exposed_gutters): must be "in display" when we
9020         do this.
9021
9022 2000-03-24  Andy Piper  <andy@xemacs.org>
9023
9024         * redisplay-output.c (compare_runes): use image_instance_changed
9025         to detect changes. Do not depend on glyphs_changed, only depend on
9026         dirtiness.
9027          (redisplay_output_layout): add debug messages.
9028         (compare_runes): ditto.
9029
9030         * glyphs.h: declare new functions.
9031         (struct Lisp_Image_Instance): remove percent and associated
9032         accessors.
9033
9034         * gui.h: declare new copying functions.
9035
9036         * gui.c (copy_gui_item_tree): new function.
9037         (copy_gui_item): new function.
9038         (gui_item_id_hash): revert to standard hash.
9039         (gui_item_hash): ditto.
9040         (gui_item_hash_internal): deleted.
9041         (mark_gui_item): mark value.
9042         (gui_item_add_keyval_pair): add value.
9043         (gui_item_init): ditto.
9044         (gui_add_item_keywords_to_plist): ditto.
9045         (gui_item_equal): ditto.
9046         (syms_of_gui): add Q_value.
9047
9048         * glyphs-x.c (x_progress_gauge_update): use pending items and
9049         value for setting the state.
9050         (x_update_widget): don't set items from pending here.
9051
9052         * glyphs-widget.c (update_widget): update items here.
9053         (progress_gauge_set_property): use items for storing value. Put
9054         new value in pending items.
9055
9056         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
9057         items for new value. Convert percent -> value.
9058         (mswindows_tab_control_update): don't update items here.
9059
9060         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
9061         (update_subwindow): ditto.
9062         (image_instance_changed): new function. Compare hash values and
9063         past and present widget items.
9064         (image_instantiate): We more careful about where we instantiate
9065         things.
9066         (image_instantiate): add error checking.
9067
9068         * gutter.c (syms_of_gutter): use -hook.
9069
9070 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
9071
9072         * console-tty.c (Fset_console_tty_input_coding_system): Use
9073         Qkeyboard.
9074         (Fset_console_tty_output_coding_system): Use Qterminal.
9075         (tty_init_console): Use Qkeyboard and Qterminal.
9076
9077 2000-03-21  Ben Wing  <ben@xemacs.org>
9078
9079         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
9080         From Mike Alexander <mta@arbortext.com>.
9081
9082 2000-03-21  Ben Wing  <ben@xemacs.org>
9083
9084         * event-msw.c (mswindows_need_event): Horrible kludge to fix
9085         process brokenness.  Proper implementation to come.
9086         * callproc.c:
9087         Rename call-process-internal to old-call-process-internal.
9088         New impl. in process.el.
9089
9090 2000-03-21  Martin Buchholz  <martin@xemacs.org>
9091
9092         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
9093
9094 2000-03-20  Andy Piper  <andy@xemacs.org>
9095
9096         * glyphs.c (full_list_hash): make hashes of the same elements in
9097         different orders return different values.
9098
9099 2000-03-20  Martin Buchholz <martin@xemacs.org>
9100
9101         * XEmacs 21.2.32 is released.
9102
9103 2000-03-20  Martin Buchholz  <martin@xemacs.org>
9104
9105         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
9106         (DFC_MALLOC_USE_CONVERTED_DATA):
9107         Add aliasing-safe casts to allow use with char* or unsigned char*
9108         lvalues.
9109
9110         * eldap.c (Fldap_open):
9111         (Fldap_search_basic):
9112         (Fldap_add):
9113         (Fldap_modify):
9114         Make C++-compilable.
9115         Make sure GCPRO'ed variables are initialized.
9116         Use temp variables to avoid repeated calls to Flength.
9117
9118 2000-03-16  Martin Buchholz  <martin@xemacs.org>
9119
9120         * sysfile.h:
9121         Make sure PATH_MAX is always defined.
9122         Include limits.h for PATH_MAX.
9123         Deprecate use of MAXPATHLEN.
9124
9125 2000-03-10  Martin Buchholz  <martin@xemacs.org>
9126
9127         * emacs.c: Add reinit_vars_of_fileio.
9128         * symsinit.h: Add reinit_vars_of_fileio.
9129         * fileio.c (reinit_vars_of_fileio): New.
9130         * fileio.c (Fmake_temp_name):
9131         Initialize temp_name random number from microseconds to make
9132         collisions even less likely.  Initialize always at process startup
9133         time.  (make-temp-name) used to return the same file name twice in
9134         a row when PDUMP.
9135         Random stylistic fiddling.
9136         Comment fixes.
9137
9138 2000-03-20  Andy Piper  <andy@xemacs.org>
9139
9140         * glyphs.c (image_instantiate): allow text glyphs to be
9141         instantiated in the minibuffer window.
9142
9143 2000-03-19  Andy Piper  <andy@xemacs.org>
9144
9145         * glyphs.c (image_instance_hash): be careful about which items we
9146         hash on.
9147
9148         * glyphs-widget.c (tab_control_set_property): record into pending
9149         items rather than the actual items.
9150
9151         * glyphs-x.c (x_update_widget): use pending items to update with.
9152
9153         * glyphs-msw.c (mswindows_tab_control_update): use pending items
9154         to update with.
9155
9156         * glyphs.c (mark_image_instance): mark pending items.
9157
9158         * window.c (Fset_window_configuration): record the buffer.
9159         (Fselect_window): totally revert previous change which breaks many
9160         things.
9161
9162 2000-03-18  Andy Piper  <andy@xemacs.org>
9163
9164         * glyphs-msw.c (mswindows_tab_control_update): force selected
9165         item.
9166
9167         * glyphs.c (image_instantiate): don't allow the minibuffer as a
9168         window domain cache, otherwise we get inconsistencies at
9169         startup. There is something fishy at startup which can lead to the
9170         minibuffer being the selected window when the gutter content is
9171         instantiated.
9172
9173         * gui.c (parse_gui_item_tree_list): add probably unnecessary
9174         gcpros.
9175         (parse_gui_item_tree_children): ditto.
9176         (parse_gui_item_tree_item): ditto.
9177
9178         * glyphs.c (Fupdate_widget_instances): return something.
9179
9180 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9181
9182         * window.c (Fselect_window): Undo 2000-03-17 change.
9183
9184 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
9185
9186         * postgresql.c (Fpq_setenv): Remove this turkey when linking
9187         against v7.0 libraries.  Insta-coredump city until the postgres
9188         folks fix it.
9189
9190 2000-03-17  Andy Piper  <andy@xemacs.org>
9191
9192         * faces.c (complex_vars_of_faces): don't give the widget face an
9193         inherited background pixmap.
9194
9195         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
9196         selected item.
9197
9198         * event-stream.c (Fdispatch_non_command_events): return something.
9199
9200         * gutter.c (output_gutter): use widget face.
9201         (clear_gutter): ditto.
9202
9203         * NEWS: adjust again.
9204
9205         * window.c (Fselect_window): make sure this runs to completion to
9206         avoid oddities with Fset_window_configuration.
9207         (Fcurrent_window_configuration): in general do not save the
9208         minibuffer as the selected window.
9209
9210         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
9211
9212 2000-03-16  Olivier Galibert  <galibert@pobox.com>
9213
9214         * emacs.c (Frunning_temacs_p): Revert previous patch.
9215         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
9216
9217 2000-03-16  Andy Piper  <andy@xemacs.org>
9218
9219         * glyphs-x.c (x_tab_control_update): if no widget values then
9220         return.
9221
9222         * NEWS: update for new features.
9223
9224         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
9225         synthetic event to the native system.
9226         (reinit_vars_of_event_Xt): set force_event_pending to
9227         emacs_Xt_force_event_pending.
9228
9229         * events.h (struct event_stream): add force_event_pending.
9230
9231         * specifier.c (recompute_one_cached_specifier_in_window): add
9232         comment.
9233
9234         * redisplay.c (redisplay_frame): don't call
9235         update_frame_subwindows. Reset subwindow cachels when
9236         subwindows_changed, removing this was an optimization too far.
9237
9238         * redisplay-output.c (compare_runes): reorganize so that we catch
9239         glyph changes when we want them. Set optimize_output when this
9240         would help layouts.
9241         (redisplay_output_layout): remove frame_really_changed, use
9242         optimize_output instead.
9243
9244         * redisplay-msw.c (mswindows_output_display_block): reset
9245         optimize_output after outputting a glyph.
9246         * redisplay-x.c (x_output_display_block): ditto.
9247         * redisplay-tty.c (tty_output_display_block): ditto.
9248
9249         * gutter.c: (specifier_vars_of_gutter): use new spec changed
9250         functions.
9251         (gutter_specs_changed): do specific gutter positions.
9252         (top_gutter_specs_changed): new function. Only update the
9253         specified gutter specs.
9254         (bottom_gutter_specs_changed): ditto.
9255         (left_gutter_specs_changed): ditto.
9256         (right_gutter_specs_changed): ditto.
9257
9258         * gui.c (gui_item_hash_internal): new function, does a real hash.
9259         (gui_item_id_hash): use it.
9260         (gui_item_hash): hash the eval'ed gui_item.
9261
9262         * gui-x.c (popup_selection_callback): send an eval event to call
9263         Fupdate_widget_instances.
9264
9265         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
9266         to call Fupdate_widget_instances.
9267
9268         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
9269         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
9270
9271         * glyphs.c: (update_frame_subwindows): deleted.
9272         (Fupdate_widget_instances): new function for updating the dirty
9273         state of widgets that might have changed.
9274         (syms_of_glyphs): add Qupdate_widget_instances.
9275         (full_list_hash): hash a list completely.
9276         (image_instance_hash): use it for items and properties.
9277
9278         * frame-msw.c (mswindows_size_frame_internal): remove unused
9279         variable.
9280
9281         * faces.h (struct face_cachel): fix comment.
9282
9283         * event-stream.c (Fdispatch_non_command_events): new
9284         function. Process non-command events, forcing an event cycle
9285         beforehand.
9286         (syms_of_event_stream): declare.
9287         (event_stream_force_event_pending): new function. Force an event
9288         on the native event queue so that an event cycle will occur next
9289         time we check.
9290
9291         * event-msw.c:
9292         (struct ntpipe_shove_stream):
9293         (mswindows_enqueue_dispatch_event):
9294         (mswindows_dequeue_dispatch_event):
9295         (mswindows_cancel_dispatch_event):
9296         (mswindows_pump_outstanding_events):
9297         (mswindows_drain_windows_queue):
9298         (mswindows_handle_paint):
9299         (mswindows_wnd_proc):
9300         (mswindows_key_to_emacs_keysym):
9301         (get_process_input_waitable):
9302         (emacs_mswindows_delete_stream_pair): re-indent file.
9303         (mswindows_need_event): do not process further fds if the windows
9304         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
9305         fixes the 100% cpu problem.
9306         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
9307
9308 2000-03-15  Olivier Galibert  <galibert@pobox.com>
9309
9310         * alloc.h: New.
9311         * dumper.h: New.
9312         * dumper.c: New.
9313
9314         * emacs.c: Moved dump file searching to dumper.c.
9315         (Frunning_temacs_p): Fixed.
9316
9317         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
9318         last_lrecord_type_index_assigned.
9319
9320 2000-02-20  Olivier Galibert  <galibert@pobox.com>
9321
9322         * symsinit.h: Added reinit parameter to init_console_stream
9323         declaration.
9324
9325         * lisp.h: Added file parameter to pdump_load declaration.
9326
9327         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
9328         support.  Added dump file searching.
9329
9330         * config.h.in: Added EMACS_PROGNAME.
9331
9332         * console-stream.c (init_console_stream): Fix reinitialisation
9333         when running from temacs.
9334
9335         * alloc.c (pdump): Add id support.
9336         (pdump_load): Add file parameter and signature/id support.
9337
9338         * Makefile.in.in: Add full pdump support.
9339
9340 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
9341
9342         * postgresql.c: Update documentation to reflect latest code
9343         status.
9344         (print_result): Show tuple counts in printed representation when
9345         appropriate.
9346         (Fpq_put_nbytes): MULE-ize.
9347         (Fpq_get_line_async): Ditto.
9348
9349 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
9350
9351         * postgresql.c (Fpq_lo_import): Fix return value.
9352         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
9353
9354 2000-03-13  Ben Wing  <ben@xemacs.org>
9355
9356         * alloc.c (pdump_load):
9357         Fix compile warning under mswin.
9358
9359 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
9360
9361         * postgresql.c: Mule-ization, bug fixes.
9362         Use PG_CODING to encapsulate coding system name changes.
9363         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
9364         (pg-coding-system): Create.
9365
9366         (Fpq_conn_defaults): Mule-ize.
9367         (Fpq_connectdb): Mule-ize & bug fix.
9368         (Fpq_connect_start): Mule-ize.
9369         (Fpq_set_client_encoding): Mule-ize.
9370         (Fpq_finish): Document `DEAD' connection status.
9371         (Fpq_clear): Ditto.
9372         (Fpq_pgconn): Mule-ize.
9373         (Fpq_exec): Mule-ize & bug fix.
9374         (Fpq_send_query): Ditto.
9375         (Fpq_get_result): Ditto.
9376         (Fpq_res_status): Mule-ize.
9377         (Fpq_result_error_message): Mule-ize.
9378         (Fpq_ntuples): fix comments.
9379         (Fpq_fname): Mule-ize.
9380         (Fpq_fnumber): Mule-ize.
9381         (Fpq_ftype): fix comments.
9382         (Fpq_get_value): Mule-ize.
9383         (Fpq_cmd_status): Ditto.
9384         (Fpq_cmd_tuples): Ditto.
9385         (Fpq_oid_value): Ditto.
9386         (Fpq_notifies): Ditto.
9387         (Fpq_lo_import): Ditto.
9388         (Fpq_lo_export): Ditto.
9389         (Fpq_get_line): Ditto.
9390         (Fpq_put_line): Mule-ize and bug fix.
9391         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
9392
9393 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
9394
9395         * postgresql.c (vars_of_postgresql): Mule-ize.
9396         (Fpq_conn_defaults): Ditto.
9397
9398 2000-03-12  Ben Wing  <ben@xemacs.org>
9399
9400         * alloc.c (Fmake_byte_code):
9401         * alloc.c (debug_string_purity_print):
9402         * alloc.c (pdump_backtrace):
9403         * alloc.c (pdump_get_indirect_count):
9404         * alloc.c (pdump_register_sub):
9405         * alloc.c (pdump_register_object):
9406         * alloc.c (pdump_register_struct):
9407         * alloc.c (pdump_dump_data):
9408         * alloc.c (pdump_reloc_one):
9409         Minor cleanups.
9410
9411         * console-msw.c:
9412         * console-msw.c (GetConsoleHwnd):
9413         * console-msw.c (msw_hide_console):
9414         * console-msw.c (msw_show_console):
9415         * console-msw.c (msw_ensure_console_buffered):
9416         * console-msw.c (msw_output_console_string):
9417         * console-msw.c (console_type_create_mswindows):
9418
9419         a) Added functions to manipulate the console window for use with
9420         shell support.
9421
9422         b) Added support for writing text to the console, which is now
9423         used under Windows when xemacs is not being run non-interactively,
9424         to write text that would otherwise be destined for stdout because
9425         under these circumstances, text written to stdout tends to
9426         disappear and not be seen.
9427
9428         * console-msw.h:
9429         * event-Xt.c:
9430         * event-Xt.c (x_event_to_emacs_event):
9431         * event-Xt.c (describe_event_window):
9432         * events-mod.h (XEMACS_MOD_CONTROL):
9433         * events.c:
9434         * events.c (Fmake_event):
9435         * events.c (character_to_event):
9436         * events.c (event_to_character):
9437         * events.c (format_event_object):
9438         * events.c (Fevent_modifiers):
9439         * events.h:
9440         * events.h (struct key_data):
9441         * events.h (struct button_data):
9442         * events.h (struct misc_user_data):
9443         * frame-x.c (Fcde_start_drag_internal):
9444         * frame-x.c (Foffix_start_drag_internal):
9445         * gpmevent.c (Freceive_gpm_event):
9446         * keymap.c:
9447         * keymap.c (bucky_sym_to_bucky_bit):
9448         * keymap.c (control_meta_superify):
9449         * keymap.c (make_key_description):
9450         * keymap.c (keymap_lookup_directly):
9451         * keymap.c (create_bucky_submap):
9452         * keymap.c (keymap_store):
9453         * keymap.c (define_key_check_and_coerce_keysym):
9454         * keymap.c (define_key_parser):
9455         * keymap.c (define_key_alternate_name):
9456         * keymap.c (Fdefine_key):
9457         * keymap.c (raw_lookup_key_mapper):
9458         * keymap.c (struct map_keymap_unsorted_closure):
9459         * keymap.c (map_keymap_unsorted_mapper):
9460         * keymap.c (map_keymap_sort_predicate):
9461         * keymap.c (map_keymap_sorted):
9462         * keymap.c (accessible_keymaps_mapper_1):
9463         * keymap.c (where_is_recursive_mapper):
9464         * keymap.c (describe_map_mapper):
9465         * keymap.c (describe_map_sort_predicate):
9466         * keymap.c (describe_map):
9467         * keymap.c (complex_vars_of_keymap):
9468         And a number of other files, the key modifier preprocessor
9469         constants that xemacs uses have names that conflict with constants
9470         defined under MS Windows for other purposes, so they were renamed
9471         to begin with the prefix XEMACS_. The variables that hold such
9472         modifiers were changed to consistently be of type int to fix
9473         various compile warnings.
9474
9475         * console.c (complex_vars_of_console):
9476         * device.c:
9477         * device-msw.c:
9478         * device-msw.c (mswindows_finish_init_device):
9479         * device-msw.c (msw_get_workspace_coords):
9480         * device-msw.c (mswindows_device_system_metrics):
9481         and various other files, added support for a new
9482         device property called offset-workspace which returns the position
9483         of the upper left corner of the workspace area and goes along with
9484         the existing size-workspace property.
9485
9486         * dialog-msw.c:
9487         * dialog-msw.c (push_bufbyte_string_as_unicode):
9488         * dialog-msw.c (mswindows_popup_dialog_box):
9489         Added support for XEmacs-style accelerator specifications in
9490         button text.  Note: I didn't add support for this under X Windows,
9491         and somebody needs to do this.
9492
9493         * dialog.c:
9494         * dialog.c (Fpopup_dialog_box):
9495         Documented the support for accelerators that was just mentioned.
9496
9497         editfns.c (get_home_directory): Changed behavior under Windows
9498         when HOME not defined; former behavior was irretrievably broken.
9499
9500         * emacs.c:
9501         * emacs.c (main_1):
9502         * emacs.c (main):
9503         * minibuf.c (clear_echo_area_internal):
9504         * minibuf.c (echo_area_append):
9505         * print.c:
9506         * print.c (std_handle_out_external):
9507         * print.c (std_handle_out_va):
9508         * print.c (fatal):
9509         * print.c (write_string_to_stdio_stream):
9510         * print.c (output_string):
9511         * print.c (debug_print):
9512         * print.c (debug_backtrace):
9513         * print.c (debug_short_backtrace):
9514         Cleaned up the code that prints text to stdout so that this can be
9515         changed to output into a console window instead under MS Windows,
9516         as described above.
9517
9518         * eval.c:
9519         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
9520         * eval.c (internal_catch):
9521         * eval.c (unwind_to_catch):
9522         * eval.c (throw_or_bomb_out):
9523         * eval.c (condition_case_1):
9524         * eval.c (signal_1):
9525         * eval.c (check_error_state_sanity):
9526         * eval.c (call_with_suspended_errors_1):
9527         * eval.c (call_with_suspended_errors):
9528         * eval.c (reinit_vars_of_eval):
9529         Added code to catch throw loops and check for a pesky bug that may
9530         be gone now.
9531
9532         * event-msw.c:
9533         * event-msw.c (key_needs_default_processing_p):
9534         * event-msw.c (mswindows_wnd_proc):
9535         * event-msw.c (mswindows_modifier_state):
9536         * event-msw.c (emacs_mswindows_quit_p):
9537         * event-msw.c (vars_of_event_mswindows):
9538         a) Added support for using the alt key to select menu items as is
9539         standard under MS Windows.  This is controlled using the variable
9540         menu-accelerator-enabled, just like under X Windows.  There is an
9541         option on the options menu to turn this support on.  I really
9542         think that it should be on by default under Windows, but I'm not
9543         going to make this change yet.
9544
9545         b)  Added support for dynamic display size changes under Windows.
9546
9547         * event-stream.c:
9548         * event-stream.c (maybe_echo_keys):
9549         * event-stream.c (Fnext_event):
9550         * event-stream.c (command_builder_find_leaf):
9551         * event-stream.c (lookup_command_event):
9552         * event-stream.c (execute_command_event):
9553         * event-stream.c (pre_command_hook):
9554         * event-stream.c (post_command_hook):
9555         * event-stream.c (syms_of_event_stream):
9556         * event-stream.c (vars_of_event_stream):
9557         * event-stream.c (complex_vars_of_event_stream):
9558         * events.h (struct command_builder):
9559
9560         a) Tried to clean up a little bit the horribly written x-specific
9561         accelerator code that crept into this file.  I moved this code
9562         into menubar-x.c where it belongs. I also needed to move the
9563         command builder structure into the file events.h because it is
9564         accessed directly by this accelerator code.  What I didn't do, but
9565         which should be done at some point, is to properly abstract this
9566         code using device methods instead of the kludgy way that it
9567         currently hooks into the event code.
9568
9569         b) Added the lisp variables this-command-properties and
9570         last-command- properties, which should be used to synchronize two
9571         adjacent commands in preference to playing games with the variable
9572         this-command, which is typically what happens.
9573
9574         c) Added some slightly nasty code to hook into the lisp support
9575         for shifted- motion-key selection.  This is actually necessary for
9576         somewhat complicated reasons, which are described in
9577         simple.el. (NB: I think the proper thing would be to have the code
9578         that calls the pre and post command hooks also call out to generic
9579         lisp functions in simple.el, where all built-in stuff could be
9580         added.  I will think about this more.)
9581
9582         * event-unixoid.c (poll_fds_for_input):
9583         * lread.c (readchar):
9584         * redisplay-tty.c (tty_clear_frame):
9585         * redisplay-x.c (x_get_gc):
9586         * signal.c (interrupt_signal):
9587         And a whole bunch of other files: fixed up places that printed
9588         directly to stderr to instead call the function stderr_out so that
9589         the changes I made under Windows work correctly.
9590
9591         * filemode.c (mode_string):
9592         Warning fixes.
9593
9594         * frame-msw.c:
9595         * frame-msw.c (mswindows_size_frame_internal):
9596         Fixed the computation of frame size and position to keep the frame
9597         within the workspace area, rather than within the physical
9598         dimensions of the screen, so that the frame doesn't overlap window
9599         manager decorations, such as the start menu and toolbar, typically
9600         at the bottom of the screen.
9601
9602         * frame.c (vars_of_frame):
9603         Changed the default frame title format under MS Windows to consist
9604         of buffername-XEmacs, which is standard under MS Windows.  I think
9605         it might be a good idea to change this everywhere because I think
9606         it is superior to the current frame title format, but this is the
9607         kind of change that is likely to cause some people to get annoyed,
9608         so I'm not making it.
9609
9610         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
9611
9612         * gui-msw.c (mswindows_handle_gui_wm_command):
9613         Fixed compile warnings.
9614
9615         * gui-x.c:
9616         * gui-x.c (strdup_and_add_accel):
9617         * gui-x.c (button_item_to_widget_value):
9618         * gui-x.h:
9619         Added code to automatically put an accelerator onto the beginning
9620         of menu items that don't have one as is now the standard, and is
9621         described more later.  Also fixed things so that the menu item
9622         name can be an evaluated expression, again a new standard.
9623
9624         * gui.c:
9625         * gui.c (gui_item_add_keyval_pair):
9626         * gui.c (make_gui_item_from_keywords_internal):
9627         * gui.c (gui_add_item_keywords_to_plist):
9628         * gui.c (gui_item_accelerator):
9629         * gui.c (gui_name_accelerator):
9630         * gui.c (gui_item_included_p):
9631         * gui.c (gui_item_display_flush_left):
9632         * gui.c (gui_item_display_flush_right):
9633         * gui.c (parse_gui_item_tree_item):
9634         * gui.c (parse_gui_item_tree_children):
9635         * gui.c (parse_gui_item_tree_list):
9636         Mule-ized.  Cleanup.  GCPRO addition.
9637
9638         * line-number.c (buffer_line_number):
9639         * lisp.h:
9640         * lisp.h (EMACS_INT_MAX):
9641         Added the manifest constant EMACS_INT_MIN corresponding to the
9642         existing constant EMACS_INT_MAX.  This is partially to fix compile
9643         warnings under Windows, and partly for cleanliness.
9644
9645         * menubar-msw.c:
9646         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
9647         * menubar-msw.c (msw_translate_menu_or_dialog_item):
9648         * menubar-msw.c (displayable_menu_item):
9649         * menubar-msw.c (populate_menu_add_item):
9650         * menubar-msw.c (populate_or_checksum_helper):
9651         * menubar-msw.c (populate_menu):
9652         * menubar-msw.c (update_frame_menubar_maybe):
9653         * menubar-msw.c (prune_menubar):
9654         * menubar-msw.c (msw_char_is_accelerator):
9655         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
9656         * menubar-msw.c (mswindows_handle_wm_command):
9657         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
9658         * menubar-msw.c (mswindows_handle_wm_initmenu):
9659         * menubar-msw.c (mswindows_update_frame_menubars):
9660         * menubar-msw.c (mswindows_free_frame_menubars):
9661         * menubar-msw.c (mswindows_popup_menu):
9662         Fixed a bug in handling accelerators where an extra character
9663         would be displayed in the menu item.  Also generalized the
9664         function displayable_menu_item because it is now used by the
9665         dialog box code as well.  And finally, added code in the functions
9666         that create the menubar to extract a list of accelerators for the
9667         top level menubar, which is used in the event code to determine
9668         whether a particular alt-key combination should be used to invoke
9669         a menu item, or should be passed through to access the standard
9670         XEmacs keymap binding for this key combination.
9671
9672         Much needed GCPROing.
9673
9674         * menubar-x.c:
9675         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9676         * menubar-x.c (menu_item_descriptor_to_widget_value):
9677         * menubar-x.c (restore_in_menu_callback):
9678         * menubar-x.c (x_popup_menu):
9679         * menubar-x.c (menu_move_up):
9680         * menubar-x.c (menu_move_down):
9681         * menubar-x.c (menu_move_left):
9682         * menubar-x.c (menu_move_right):
9683         * menubar-x.c (menu_select_item):
9684         * menubar-x.c (command_builder_operate_menu_accelerator):
9685         * menubar-x.c (menu_accelerator_junk_on_error):
9686         * menubar-x.c (command_builder_find_menu_accelerator):
9687         * menubar-x.c (Faccelerate_menu):
9688         * menubar.h:
9689         Moved a whole bunch of code here that was previously in
9690         event-stream.c as described above.  There is also code connected
9691         to the new standard of adding an accelerator to the beginning of
9692         menu items that don't have one as described above and below.
9693
9694         * menubar.c:
9695         * menubar.c (menu_parse_submenu_keywords):
9696         * menubar.c (Fmenu_find_real_submenu):
9697         * menubar.c (Fnormalize_menu_item_name):
9698         * menubar.c (syms_of_menubar):
9699         * menubar.c (vars_of_menubar):
9700         * menubar.c (complex_vars_of_menubar):
9701
9702         a) Cleaned up a bunch of documentation and improved it.
9703
9704         b) XEmacs now automatically adds an accelerator onto the beginning
9705         of any menu items that don't have one.  I did this because there
9706         will inevitably be some menu items on the main menubar that don't
9707         have accelerators on them because the package that adds that
9708         particular menu item hasn't yet been fixed up to have accelerators
9709         in them and it looked rather strange to have some items with and
9710         some items without accelerators, especially since even in items
9711         without accelerators, you can, at least under windows, still
9712         access the item through an accelerator corresponding to the first
9713         character in the item's name.  If people don't like this behavior,
9714         I can add a variable to turn it off optionally, but I'm not sure
9715         this is a good idea because we really do need to have accelerators
9716         on all of the menu items, and if a package doesn't like the
9717         accelerators being put on the first character, then it should put
9718         the accelerators where they belong.
9719
9720         c) I made a behavior change, which is that the descriptor that
9721         specifies the text of the menu item, which formerly was just a
9722         string, can now also be an evaluated expression.  This makes this
9723         descriptor parallel with all of the others, which could also be
9724         evaluated expressions.  This also obviates the need for the
9725         keyword :label, which was previously listed in the documentation
9726         as unimplemented, and which was for the same purpose.
9727
9728         d) GCPROing.
9729
9730         * ntproc.c:
9731         * ntproc.c (new_child):
9732         * ntproc.c (sys_spawnve):
9733         * ntproc.c (find_child_console):
9734         * ntproc.c (sys_kill):
9735         Fixed compile warnings.  By the way, this file should really go
9736         away entirely, and this will happen as soon as Kirill makes his
9737         final round of process cleanups, which affect the function
9738         call-process.
9739
9740         * process-nt.c:
9741         * process-nt.c (struct nt_process_data):
9742         * process-nt.c (find_process_from_pid):
9743         * process-nt.c (send_signal_the_nt_way):
9744         * process-nt.c (enable_child_signals):
9745         * process-nt.c (find_child_console):
9746         * process-nt.c (send_signal_the_95_way):
9747         * process-nt.c (nt_finalize_process_data):
9748         * process-nt.c (ensure_console_window_exists):
9749         * process-nt.c (nt_create_process):
9750         * process-nt.c (nt_kill_child_process):
9751         * process-nt.c (nt_kill_process_by_pid):
9752         * process-nt.c (nt_open_network_stream):
9753         * process-nt.c (vars_of_process_nt):
9754         Copied over code from Emacs 20.5 to correctly send signals to sub-
9755         processes under Windows 95.  Also added code to automatically
9756         create and hide console window when a sub-process is created under
9757         Windows 95, which obviates the need for the separate runemacs.exe
9758         executable, and finally implemented some variables that were
9759         implemented in Emacs 20.5, but previously not in XEmacs.  These
9760         include mswindows- start-process-share-console and
9761         mswindows-start-process-inherit-error-mode. (Both of these only
9762         apply to Windows 95.)
9763
9764         * regex.c (regex_compile): Fixed a compile warning.
9765
9766         * select-msw.c:
9767         * select-msw.c (mswindows_own_selection):
9768         * select-msw.c (mswindows_get_foreign_selection):
9769         * select-msw.c (mswindows_disown_selection):
9770         * select-msw.c (console_type_create_select_mswindows):
9771         * select-msw.c (syms_of_select_mswindows):
9772         Cleaned up the file and implemented the device method
9773         selection_exists_p, which had accidentally been left out.  Also
9774         removed four lisp functions that were remnants from before the
9775         time when the selection code was properly device abstracted.
9776         These functions are no longer needed because there are generic
9777         equivalents, and because they were added recently and don't exist
9778         in FSF Emacs, I don't think there's any problem with just deleting
9779         them.
9780
9781         * sysdep.c:
9782         * sysdep.c (sys_subshell):
9783         Fixed a compile warning, although in this case there's probably
9784         something wrong with this code, and it ought to be looked into
9785         more thoroughly by somebody who understands it.
9786
9787         * window.c:
9788         * window.c (Fwindow_text_area_height):
9789         * window.c (Fwindow_width):
9790         * window.c (Fwindow_full_width):
9791         * window.c (Fwindow_pixel_width):
9792         * window.c (debug_print_window):
9793         * window.c (syms_of_window):
9794         Added functions window-text-area-height and window-full-width,
9795         which are functions for returning various width and height
9796         characteristics of a window. (One of these functions is necessary
9797         for making the file dialog box work correctly, and the other one
9798         was added for completeness.)  Also added a table to the
9799         documentation for window-height which describes the entire scheme
9800         for accessing width and height characteristics of a window.
9801
9802 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
9803
9804         * nt.c (fstat): Added a comment for another problem with
9805         non-encapsulated [f]stat(), reported by Adrian Aichner
9806         <aichner@ecf.teradyne.com>.
9807
9808 2000-03-11  Andy Piper  <andy@xemacs.org>
9809
9810         * window.c (make_dummy_parent): initialize subwindow instance
9811         cache.
9812         (Fset_window_configuration): zero extent_modiff.
9813
9814 2000-03-10  Andy Piper  <andy@xemacs.org>
9815
9816         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
9817         more changes can be triggered.
9818         (Fredisplay_frame): ditto.
9819         (Fredraw_device): ditto.
9820         (Fredisplay_device): ditto.
9821         (redisplay_frame): make non-static.
9822         (redisplay_frame): call update_frame_gutter_geometry outside of
9823         display proper.
9824
9825         * gutter.h: declare update_frame_gutter_geometry.
9826
9827         * redisplay.h: declare redisplay_frame.
9828
9829         * gutter.c (update_frame_gutter_geometry): move geometry changes
9830         in update_frame_gutters here. Geometry changes can only occur
9831         outside of redisplay.
9832         (update_frame_gutters): remove geometry change code.
9833         (Fredisplay_gutter_area): make sure that we are in display when we
9834         update and that we have flushed any size changes.
9835
9836 2000-03-11  Andy Piper  <andy@xemacs.org>
9837
9838         * alloc.c (pdump_dump_data): remove i & count shadows.
9839
9840 2000-02-27  Mike Alexander  <mta@arbortext.com>
9841
9842         * sysdep.h: Declare pdump_read_file
9843
9844         * sysdep.c (pdump_read_file): New function
9845
9846         * alloc.c (pdump_load): Call pdump_read_file to get the portable
9847         dump data
9848
9849 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
9850
9851         * lrecord.h: add `lrecord_type_pgsetenv'.
9852
9853 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
9854
9855         * symsinit.h: declare (vars|syms)_of* functions.
9856         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
9857
9858 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
9859
9860         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
9861
9862         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
9863         GCCs.
9864
9865         * emacs.c (main_1): Call postgres initialization code.
9866
9867         * postgresql.h: New file.  PostgreSQL RDBMS support.
9868         * postgresql.c: New file.
9869
9870 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
9871
9872         * redisplay-output.c (redisplay_output_display_block): Disable
9873         redundant code.
9874
9875 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
9876
9877         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
9878         (Fcanna_henkan_next): Ditto.
9879         (Fcanna_bunsetu_henkou): Ditto.
9880         (Fcanna_henkan_kakutei): Ditto.
9881         (Fcanna_henkan_end): Ditto.
9882         (Fcanna_henkan_quit): Ditto.
9883         (Fcanna_henkan_next): Set retun value correctly.
9884         (c2mu): Use unsigned char instead of signed char.
9885
9886 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
9887
9888         * emacs.c (main_1): Always call syms_of_gui.
9889         * inline.c: include gui.h
9890
9891 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
9892
9893         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
9894         converted to Lisp_Object.
9895         (Qtop_bottom): New variable.
9896         (syms_of_redisplay): Initialize it.
9897         * redisplay.h (Vvisible_bell): Ditto.
9898         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
9899         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
9900         only flash top and bottom.
9901
9902 2000-03-08  Andy Piper  <andy@xemacs.org>
9903
9904         * buffer.c (Frename_buffer): record new buffer name the right way.
9905
9906 2000-03-08  Andy Piper  <andy@xemacs.org>
9907
9908         * glyphs.c (update_subwindow): increase hash depth so that widget
9909         items get picked up properly.
9910
9911         * redisplay-output.c (compare_runes): increase hash depth so that
9912         widget items get picked up properly.
9913
9914 2000-03-08  Andy Piper  <andy@xemacs.org>
9915
9916         * gutter.c (output_gutter): add some debug.
9917
9918         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
9919         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
9920         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
9921
9922         * redisplay-output.c (compare_runes): use display_hash to
9923         determine if glyphs really are not the same.
9924
9925         * glyphs.c (update_subwindow): check display_hash to see if
9926         anything really needs to be updated. If not then do
9927         nothing. Record the display_hash after updating.
9928         (image_instance_equal): compare the image_instance face also.
9929
9930 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
9931
9932         * redisplay.h: Fix comment style.
9933
9934 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9935
9936         * consle-msw.h (struct mswindows_frame):
9937         Added new member paint_pending to indicate whether a WM_PAINT
9938         magic event has been queued for this frame.
9939
9940         * event-msw.c (mswindows_drain_windows_queue):
9941         Don't queue a WM_PAINT magic event if one is already queued.
9942         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
9943
9944         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
9945
9946 2000-03-07  Didier Verna  <didier@xemacs.org>
9947
9948         * dired.c: #include `regex.h' after `sysfile.h'.
9949
9950 2000-03-06  Martin Buchholz  <martin@xemacs.org>
9951
9952         * sound.c (init_nas_sound): Fix compiler warning.
9953
9954         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
9955         (FREE_STRUCT_P):
9956         (MARK_STRUCT_AS_FREE):
9957         (MARK_STRUCT_AS_NOT_FREE):
9958         Make `gcc -fstrict-aliasing' work properly.
9959
9960 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9961
9962         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
9963         (mswindows_delete_device): Call CoUnnitialize().
9964
9965         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
9966
9967 2000-02-25    <CraigL@DyCon.com>
9968
9969         * process-nt.c: MinGW now has <shellapi.h>, but still needs
9970         <errno.h>.
9971
9972         * sysdep.c: This extern declaration for environ prevents MinGW
9973         from finding the variable in CRTDLL.DLL.
9974
9975         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
9976         windows headers.
9977         (SHGFI_EXETYPE): ..
9978         (WM_MOUSEWHEEL): ..
9979         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
9980         definitions.
9981         (MMRESULT): Removed, now defined in cygwin's windows headers.
9982         (TIMECAPS): ..
9983         (uid_t,gid_t,pid_t,ssize_t): ..
9984         (_timeb): Removed, MinGW defines both _timeb and timeb.
9985         (HAVE_H_ERRNO): Added.
9986         (HAVE_TZNAME): Added, configure is not detecting this.
9987
9988 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
9989
9990         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
9991         * syntax.c (syntax_match): Use it.
9992
9993         * cmds.c: Import auto-fill-chars from FSF Emacs.
9994         (Vauto_fill_chars): New variables.
9995         (internal_self_insert): Check Vauto_fill_chars.
9996         (vars_of_cmds):
9997         Declare auto-fill-chars as a Lisp variable and initialize it.
9998
9999 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10000
10001         * fileio.c (Fmake_symbolic_link):
10002         (Ffile_symlink_p):
10003         Run handlers even if local machine doesn't have symlinks.
10004
10005 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10006
10007         * event-msw.c (mswindows_drain_windows_queue):
10008         Don't generate paint magic events for non-XEmacs frames.
10009
10010 2000-03-05  Andy Piper  <andy@xemacs.org>
10011
10012         * redisplay.c (redisplay_frame): generate_displayable_area and
10013         friends assumes that we are not in GC, we therefore have to make
10014         sure that this doesn't happen.
10015
10016         * gutter.c (calculate_gutter_size): generate_displayable_area
10017         assumes that we are not in GC, we therefore have to make sure that
10018         this doesn't happen.
10019
10020 2000-03-05  Martin Buchholz  <martin@xemacs.org>
10021
10022         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
10023
10024 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
10025
10026         * redisplay.c (regenerate_window): Make sure we set a sane value
10027         for end_pos even if we jump out of the loop.
10028         (regenerate_window): Answer Ben's question :-).
10029         (start_end_of_last_line): Add may_error argument.
10030         (start_of_last_line):
10031         (end_of_last_line): Pass may_error = 0.
10032         (end_of_last_line_may_error): New function.
10033         (pixel_to_glyph_translation): Use it, so we don't crash in
10034         event_to_glyph.
10035
10036 2000-03-04  Andy Piper  <andy@xemacs.org>
10037
10038         * window.h (struct window): add gutter_extent_modiff.
10039
10040         * window.c (allocate_window): zero out gutter_extent_modiff.
10041
10042         * redisplay.h: declare sync_display_line_structs.
10043
10044         * redisplay.c (add_glyph_rune): add a better comment.
10045
10046         * redisplay-output.c (sync_display_line_structs): made non-static.
10047         (compare_runes): remove unneccesary glyph cachel access.
10048
10049         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
10050
10051         * gutter.c (output_gutter): don't output the gutter if extent
10052         changes only involve extents in buffers. use 4 sets of display
10053         lines.
10054         (gutter_extent_signal_changed_region_maybe): new function. Mark
10055         extents in gutters as changed.
10056         (update_frame_gutters): use 4 sets of display lines.
10057         (reset_gutter_display_lines): ditto.
10058         (free_frame_gutters): ditto.
10059         (redraw_exposed_gutter): force output of gutters.
10060
10061         * frame.h (struct frame): add 4 sets of gutter display lines.
10062
10063         * extents.c: (extent_changed_for_redisplay): signal changes to
10064         extents in strings in the gutter as well as extents in buffers.
10065
10066 2000-03-02  Andy Piper  <andy@xemacs.org>
10067
10068         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
10069
10070         * frame.c (Fmake_frame): make sure the gutters get initialized
10071         after the frame is visible.
10072         (set_frame_selected_window): re-arrange compilation macros a
10073         little.
10074         (change_frame_size_1): mark gutters changed.
10075
10076         * device.c (Fset_device_class): mark gutters changed.
10077
10078 2000-03-01  Andy Piper  <andy@xemacs.org>
10079
10080         * window.c (window_top_frame_gutter_height): deleted.
10081         (window_bottom_frame_gutter_height): ditto.
10082         (window_left_frame_gutter_height): ditto.
10083         (window_right_frame_gutter_height): ditto.
10084         (window_top_gutter_height): don't use them.
10085         (window_bottom_gutter_height): ditto.
10086         (window_left_gutter_width): ditto.
10087         (window_right_gutter_width): ditto.
10088         (Fsplit_window): ditto.
10089         (Fwindow_pixel_edges): don't use border dimensions here.
10090
10091         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
10092         (update_scrollbar_instance): ditto.
10093
10094         * redisplay.c (generate_modeline): don't take gutters into account.
10095         (generate_modeline): ditto.
10096         (redisplay_frame): small gutter display optimization.
10097
10098         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
10099
10100         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
10101         gutters into account.
10102
10103         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
10104         for window position and type.
10105
10106         * gutter.c (get_gutter_coords): fix for frame gutters.
10107         (update_frame_gutters): update frame geometry if the gutters have
10108         changed.
10109         (init_frame_gutters): record current gutter geometries.
10110
10111         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
10112         var.
10113         (mswindows_widget_instantiate): ditto.
10114
10115         * frame.h (struct frame): add current_gutter_bounds.
10116
10117         * frame.c (change_frame_size_1): position window and minibuffer
10118         appropriately taking into account the frame gutters.
10119
10120         * frame-x.c: (x_initialize_frame_size): take into account the
10121         frame gutters.
10122
10123 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
10124
10125         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
10126
10127 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
10128
10129         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
10130
10131 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
10132
10133         * file-coding.c (reset_decoding_stream): Clear previous
10134         detection state when autodetect.
10135
10136 2000-02-29  Didier Verna  <didier@xemacs.org>
10137
10138         * extents.c (set_extent_glyph_1): don't require extents to be
10139         attached.
10140
10141 2000-02-27  Andy Piper  <andy@xemacs.org>
10142
10143         * gutter.c (Fset_default_gutter_position): don't default left and
10144         right gutter visibility to t.
10145         (Fset_default_gutter_position): run
10146         default-gutter-position-changed-hook.
10147         (syms_of_gutter): add default-gutter-position-changed-hook.
10148
10149 2000-02-26  Andy Piper  <andy@xemacs.org>
10150
10151         * specifier.c (Fmake_specifier): add gutter references.
10152
10153         * gutter.h (RAW_WINDOW_GUTTER): new macro.
10154
10155         * lisp.h: declare Fvalid_plist_p.
10156
10157         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
10158         as changed.
10159         (default_gutter_visible_p_changed_in_window): invalidate gutter as
10160         well as its visibility so that it gets reconstructed.
10161         (construct_window_gutter_spec): new function. Construct a string
10162         to be displayed in the gutter from a plist of strings. Take care
10163         to only use elements that are declared as visible.
10164         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
10165         WINDOW_GUTTER.
10166         (gutter_validate): allow plists of strings in the specifier.
10167         (gutter_specs_changed): construct the real_gutter from the gutter
10168         specs using construct_window_gutter_spec.
10169         (gutter_visible_validate): gutter-visible is a new specifier type.
10170         (Fgutter_visible_specifier_p): new function for the new specifier.
10171         (syms_of_gutter): declare gutter-visible and
10172         Fgutter_visible_specifier_p.
10173         (specifier_type_create_gutter): intitalize new gutter-visible
10174         specifier.
10175         (reinit_specifier_type_create_gutter): ditto.
10176         (specifier_vars_of_gutter): use new specifier type for gutter
10177         visibility.
10178         (init_frame_gutters): construct real_gutter correctly.
10179         (Fgutter_specifier_p): beef up documentation.
10180         (Fgutter_size_specifier_p): ditto.
10181
10182         * winslots.h: add real_gutter slots.
10183
10184 2000-02-25  Andy Piper  <andy@xemacs.org>
10185
10186         * device-msw.c: Be kind to older cygwin versions. From Raymond
10187         Toy <toy@rtp.ericsson.se>.
10188
10189         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
10190         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
10191
10192 2000-02-25  Martin Buchholz  <martin@xemacs.org>
10193
10194         * elhash.c (MARK_OBJ): Practice macro hygiene.
10195
10196 2000-02-24  Martin Buchholz  <martin@xemacs.org>
10197
10198         * miscplay.c: s/__inline__/inline/g;
10199         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
10200         (get_device_compdc): INLINE ==> static inline
10201         * *.[ch]: Change INLINE to INLINE_HEADER globally.
10202         find -name '*.h' | \
10203         xargs global-replace \
10204         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
10205
10206 2000-02-25  Andy Piper  <andy@xemacs.org>
10207
10208         * window.c (window_top_frame_gutter_height): new function.
10209         (window_top_window_gutter_height): ditto.
10210         (window_top_gutter_height): use them.
10211         (window_bottom_frame_gutter_height): new function.
10212         (window_bottom_window_gutter_height): ditto.
10213         (window_bottom_gutter_height): use them.
10214         (window_left_window_gutter_width): new function.
10215         (window_left_frame_gutter_width): ditto.
10216         (window_left_gutter_width): use them.
10217         (window_right_window_gutter_width): new function.
10218         (window_right_frame_gutter_width): ditto.
10219         (window_right_gutter_width): use them.
10220         (window_pixel_height): new function. calulate window pixel height
10221         with frame gutter involvement.
10222         (Fsplit_window): calculate new sizes taking frame gutters into
10223         account.
10224         (window_char_height_to_pixel_height): don't include frame gutters.
10225         (window_char_height): use window_pixel_height.
10226         (window_pixheight): rename from window_pixel_height.
10227         (change_window_height): use it.
10228         (window_pixel_height_to_char_height): don't include frame gutters.
10229         (window_char_width_to_pixel_width): ditto.
10230
10231 2000-02-25  Andy Piper  <andy@xemacs.org>
10232
10233         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
10234         if it is.
10235
10236 2000-02-24  Martin Buchholz  <martin@xemacs.org>
10237
10238         * alloc.c (staticpro):
10239         (staticpro_nodump):
10240         (dumpstruct):
10241         (dumpopaque):
10242         (pdump_wire):
10243         (pdump_wire_list):
10244         (compact_string_chars):
10245         (pdump_dump_wired):
10246         Convert:  if (foo) abort();  ==>  assert (! foo);
10247
10248         * eldap.c (Fldap_search_basic):
10249         (Fldap_add):
10250         (Fldap_modify):
10251         (Fldap_delete):
10252         Fix compiler warnings, and possible crashes if (random) return
10253         value were to be used.
10254
10255 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10256
10257         * device-msw.c: Workaround ResetDC failure.
10258
10259         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
10260         applying a devmode.
10261
10262         * redisplay-msw.c (get_frame_dc): Added start_page_p.
10263         (mswindows_text_width): Do not start printer page.
10264
10265         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
10266
10267         * glyphs-msw.c: Added image methods to msprinter console and
10268         msprinter-specific image instantiation.
10269
10270 2000-02-20  Mike Alexander  <mta@arbortext.com>
10271
10272         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
10273         to avoid crashes when selection-sets-clipboard is on
10274         (mswindows_own_selection): ditto
10275
10276 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10277
10278         * glyphs-msw.c:
10279         * redisplay-msw.c (get_frame_dc):
10280         (get_frame_compdc):
10281         * console-msw.h:
10282         * device-msw.c (mswindows_init_device):
10283         (mswindows_delete_device):
10284         (msprinter_init_device):
10285         (msprinter_delete_device):
10286         * frame-msw.c (mswindows_init_frame_1):
10287         (mswindows_delete_frame):
10288         (msprinter_init_frame_3):
10289         (msprinter_delete_frame): Move compatible DC to device object from
10290         frame object, for both mswindows and msprinter. Only one at a time
10291         is needed, it is a real waste to have one per frame!
10292
10293 2000-02-23  Andy Piper  <andy@xemacs.org>
10294
10295         * glyphs.c: add dynamic width and height elements.
10296         (image_instance_equal): ditto.
10297
10298         * glyphs-widget.c (widget_query_geometry): calculate width and
10299         height dynamically if required.
10300         (initialize_widget_image_instance): initialize dynamic dimensions.
10301         (widget_instantiate): pick-up dynamic dimensions.
10302
10303         * glyphs.h (struct Lisp_Image_Instance): add width and height for
10304         dynamic determination. Add appropriate macros.
10305
10306         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
10307         dimensions safe.
10308         (WINDOW_GUTTER_SIZE): ditto.
10309         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
10310
10311         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
10312         inline.
10313         (get_frame_dc): ditto.
10314
10315         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
10316         here.
10317
10318 2000-02-23  Martin Buchholz <martin@xemacs.org>
10319
10320         * XEmacs 21.2.31 is released.
10321
10322 2000-02-22  Ben Wing <ben@xemacs.org>
10323
10324         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
10325
10326 2000-02-22  Andy Piper  <andy@xemacs.org>
10327
10328         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
10329
10330 2000-02-21  Mike Sperber <mike@xemacs.org>
10331
10332         * .dbxrc:
10333         * .gdbinit:
10334         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
10335         variables.
10336
10337 2000-02-21  Mike Sperber <mike@xemacs.org>
10338
10339         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
10340
10341 2000-02-21  Martin Buchholz <martin@xemacs.org>
10342
10343         * XEmacs 21.2.30 is released.
10344
10345 2000-02-20  Martin Buchholz  <martin@xemacs.org>
10346
10347         Performance hacking.
10348         * *.c (syms_of_*):
10349         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
10350         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
10351         * emacs.c (main_1):
10352         * lisp.h (DEFUN):
10353         * console.c (DEFVAR_CONSOLE_LOCAL_1):
10354         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
10355         * symeval.h (DEFVAR_SYMVAL_FWD):
10356         * symbols.c (guts_of_unbound_marker):
10357         Make all c_readonly objects also lisp_readonly and marked for life.
10358         * lrecord.h (struct lrecord_implementation):
10359         Document flags better.
10360         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
10361         * lrecord.h (DECLARE_LRECORD):
10362         * lrecord.h (XSETRECORD):
10363         * lrecord.h (RECORDP):
10364         * lrecord.h (RECORD_TYPEP):
10365         * lrecord.h (RECORD_MARKER): New.
10366         * lrecord.h (error_check_*):
10367         * lrecord.h (CONCHECK_NONRECORD):
10368         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
10369         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
10370         * lrecord.h (set_lheader_implementation):
10371         * lrecord.h (enum lrecord_type): New.
10372         * symeval.h (SYMBOL_VALUE_MAGIC_P):
10373         * alloc.c (disksave_object_finalization_1):
10374         * alloc.c (mark_object):
10375         * alloc.c (lrecord_type_index):
10376         * alloc.c (tick_lcrecord_stats):
10377         * alloc.c (Fgarbage_collect):
10378         * alloc.c (init_alloc_once_early):
10379         * alloc.c (pdump_load):
10380         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
10381         * alloc.c (lrecord_type_index): Delete.
10382         Make lisp object type indexes be constant.
10383           Makes (byte-compile) 5% faster.
10384         Put all marker functions into their own array.
10385           Makes (garbage-collect) 5% faster.
10386         Optimize SYMBOL_VALUE_MAGIC_P.
10387           Makes (byte-compile) 2-3% faster.
10388         * config.h.in (gc_checking_assert): New.
10389         * alloc.c: Use gc_checking_assert().
10390         * .dbxrc: Make compatible with new object type implementation.
10391         * .gdbinit: Make compatible with new object type implementation.
10392         * alloc.c: Delete all symbols defined only for debugging, such as
10393         Lisp_Type_Vector and lrecord_charset.
10394
10395 2000-02-21  Andy Piper  <andy@xemacs.org>
10396
10397         * gui-msw.c (Fmswindows_shell_execute): fix file location
10398         problems.
10399
10400         * buffer.c (Fkill_buffer): remove buffer from alist buffer
10401         unshowing so that set_window_buffer doesn't undo
10402         kill_buffer_hook's hard work.
10403
10404         * glyphs-widget.c (tab_control_query_geometry): don't count the
10405         first item when calculating geometry.
10406
10407         * glyphs.c (map_subwindow): remove redundant code.
10408         (update_frame_subwindows): be more circumspect about when to
10409         update subwindows.
10410
10411         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
10412         when items haven't changed. Update faces if faces have changed as
10413         well as just the widget face.
10414         (x_tab_control_update): Update faces if faces have changed as well
10415         as just the widget face.
10416
10417 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10418
10419         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
10420         registration.
10421         (build_syscolor_string): Use mswindows_color_to_string to try to
10422         get a named color.
10423         (mswindows_device_system_metrics): Reverse the foreground and
10424         background colors so that they match the documentation.
10425
10426         * objects-msw.c: (mswindows_X_color_map): tweak some values so
10427         they match the default Windows palette.
10428         (mswindows_color_to_string): New function.
10429
10430 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10431
10432         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
10433
10434 2000-02-18  Olivier Galibert  <galibert@pobox.com>
10435
10436         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
10437         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
10438
10439         * symbols.c (init_symbols_once_early): Removed obsolete
10440         DATA_SEG_BITS related kludge.
10441         (defvar_magic): Ditto.
10442
10443         * malloc.c: Removed obsolete DATA_SEG_BITS
10444         * ralloc.c: Ditto.
10445         * mem-limits.h: Ditto.
10446
10447         * Makefile.in.in: Removed obsolete HAVE_SHM
10448         * emacs.c: Ditto.
10449
10450 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10451
10452         *  device-msw.c (mswindows_delete_device): Free DDE string
10453         handles.
10454
10455 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10456
10457         * keymap.c (get_keyelt):
10458         * unexnt.c (unexec):
10459         * vm-limit.c (memory_warnings):
10460         * ntheap.c (recreate_heap):
10461         * ntheap.h (UNINIT_PTR):
10462         * select-msw.c (Fmswindows_get_clipboard):
10463         (Fmswindows_set_clipboard):
10464         * objects-msw.h (MSWINDOWS_BAD_HFONT):
10465         * objects-msw.c:
10466         * menubar-msw.c (displayable_menu_item):
10467         * glyphs-msw.c:
10468         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
10469         * sysdep.c (sys_subshell):
10470         * process-nt.c (nt_create_process):
10471         * nt.c (normalize_filename):
10472         (dostounix_filename):
10473         (unixtodos_filename):
10474         * ntproc.c (win32_executable_type):
10475         * ntplay.c (play_sound_data_1):
10476         (play_sound_file):
10477         * editfns.c (get_home_directory):
10478         * event-msw.c (struct winsock_stream):
10479         (mswindows_dde_callback):
10480         * device-msw.c (msprinter_init_device):
10481         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
10482
10483         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
10484         mswindows_clear_toolbar were swapped!
10485
10486         * objects-msw.c:(colormap_t):
10487         (fontmap_t):
10488         * emacs.c (struct standard_args): Fixed const jumble.
10489
10490         * glyphs-widget.c (update_widget): Fixed comparison notation.
10491
10492         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
10493
10494         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
10495         __declspec(noreturn) syntax.
10496
10497 2000-02-19  Martin Buchholz  <martin@xemacs.org>
10498
10499         * eldap.c (Fldap_open):
10500         (Fldap_search_basic):
10501         (Fldap_add):
10502         (Fldap_modify):
10503         Use new coding system conversion macros.
10504
10505 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
10506
10507         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
10508
10509 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
10510
10511         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
10512         (Fldap_add, Fldap_modify, Fldap_delete): New functions
10513
10514         * eldap.c (Qadd, Qreplace): New constant symbols
10515         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
10516         interruptions by XEmacs signals
10517         Remove unnecessary calls to slow_down_interrupts and
10518         speed_up_interrupts
10519         (Fldap_search_basic): Renamed from Fldap_search_internal
10520         Added new optional parameter VERBOSE that triggers the
10521         display of progress messages
10522         Remove unnecessary calls to slow_down_interrupts and
10523         speed_up_interrupts
10524         LDAP result code analysis rewritten
10525         (Fldap_add, Fldap_modify, Fldap_delete): New functions
10526         (syms_of_eldap): Define the new symbols and functions
10527
10528
10529 2000-02-17  Martin Buchholz  <martin@xemacs.org>
10530
10531         * realpath.c: Determine PATH_MAX maximally portably.
10532
10533         * insdel.c (bytecount_to_charcount): Optimize.
10534         The function used to be optimized for entirely ASCII sequences.
10535         Now it is optimized for successive characters from the same
10536         charset.  This also wins big for _mostly_ ASCII sequences.
10537
10538         * fileio.c (Ffile_truename): convert return from realpath() using
10539         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
10540         - Rewrite GCPROing slightly.
10541
10542         * sysdep.c (sys_open): Do filename conversion, like all other
10543         sys_* functions.  Fixes bug:
10544         (let ((file-name-coding-system 'iso-8859-2))
10545            (write-region x y latin2-name))
10546         ==> writes filename using internal encoding.
10547
10548 2000-02-18  Martin Buchholz  <martin@xemacs.org>
10549
10550         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
10551         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
10552         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
10553         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
10554         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
10555         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
10556         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
10557         (CONST_IF_NOT_DEBUG): Delete.
10558         * alloc.c (this_one_is_unmarkable): Delete.
10559         (mark_object): Don't check for this_one_is_unmarkable. Use the
10560         c_readonly flag instead.
10561         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
10562
10563 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10564
10565         * event-msw.c (mswindows_drain_windows_queue):
10566         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
10567         away redundant repaint events.
10568
10569 2000-02-17  Andy Piper  <andy@xemacs.org>
10570
10571         * redisplay.h: declare mark_redisplay_structs.
10572
10573         * redisplay.c (redisplay_window):
10574         (redisplay_frame): don't check subwindows_state_changed.
10575         (mark_redisplay): mark gutters here.
10576
10577         * glyphs.c: (instantiate_image_instantiator): always layout if we
10578         haven't done so already.
10579         (allocate_image_instance): don't mark as dirty.
10580         (update_subwindow): bind inhibit_quit.
10581
10582         * gutter.c (mark_gutters): new function.
10583
10584         * glyphs-x.c (x_update_widget): Always resize to get round a
10585         widget bug.
10586
10587         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
10588         breaking absolutely everything.
10589
10590         * gutter.h: declare mark_gutters.
10591
10592 2000-02-16  Martin Buchholz <martin@xemacs.org>
10593
10594         * XEmacs 21.2.29 is released.
10595
10596 2000-02-15  Olivier Galibert  <galibert@pobox.com>
10597
10598         * fns.c (size_bit_vector): Fix computation of the size.
10599
10600 2000-02-15  Martin Buchholz  <martin@xemacs.org>
10601
10602         * *.[ch]: Change CONST to const globally.
10603         find -name '*.[ch]' | \
10604         xargs global-replace \
10605         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
10606         - Remove vestigial references to CONST_IS_LOSING
10607
10608 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10609
10610         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
10611         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
10612         events instead of dispatching them directly.
10613         (mswindows_handle_paint): New function to do repainting.
10614         (mswindows_wnd_proc):
10615         (emacs_mswindows_handle_magic_event): Call above function.
10616
10617 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10618
10619         * objects-msw.c (mswindows_create_font_variant): Return the new
10620         font handle.
10621         (initialize_font_instance): Get font metrics from the underlined
10622         variant of the font to cope with the case where the underlined
10623         font has a bigger descent.
10624
10625 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
10626
10627         * gui.c (gui_item_accelerator): Return the first underlined
10628         character in item name.
10629
10630 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10631
10632         * lisp.h: Added Qprinter.
10633
10634         * general.c (syms_of_general): Initialized it.
10635
10636         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
10637         (get_frame_dc):
10638         (get_frame_compdc): Made inline.
10639
10640         * console.h (struct console_methods): Added eject_page method.
10641
10642         * frame.h: Added FRAME_DISPLAY_P and friends.
10643         Aligned backslahes in many macros in more readable fashion.
10644         Added page_number to struct frame, and an accessor macro
10645         for it.
10646
10647         * defice.h: Added DEVICE_DISPLAY_P and friends.
10648
10649         * device.c (Fdevice_printer_p): Used these.
10650
10651         * frame.c (allocate_frame_core): Initialize page number.
10652         (Fprint_job_page_number):
10653         (Fprint_job_eject_page): Implemented.
10654
10655         * frame-msw.c (msprinter_eject_page): Added method.
10656         (msprinter_start_page): Added.
10657
10658         * window.c (Fwindow_truncated_p): Fixed docstring.
10659         (Fwindow_last_line_visible_height): Implemented.
10660
10661 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10662
10663         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
10664
10665 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
10666
10667         * syntax.c (scan_words): Always advance at least one character.
10668
10669 2000-02-13  Andy Piper  <andy@xemacs.org>
10670
10671         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
10672         to make sure the glyph is in the cachels.
10673
10674         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
10675         global image instance flag.
10676         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
10677         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
10678
10679         * glyphs.c (allocate_image_instance): set dirty bits correctly.
10680         (Fset_image_instance_property): mark layout as changed.
10681         (invalidate_glyph_geometry_maybe): mark layout as changed.
10682         (glyph_width): use new NEEDS_LAYOUT macro.
10683         (glyph_ascent): ditto.
10684         (glyph_descent): ditto.
10685         (glyph_height): ditto.
10686         (image_instance_layout): mark layout as clean after laying out.
10687         (update_subwindow): don't mark layout as clean here.
10688
10689         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
10690         should no longer be needed.
10691
10692         * glyphs-x.c (x_update_widget): sanitize asserts.
10693         (x_finalize_image_instance): sanitize assignment to widgets.
10694
10695         * glyphs-widget.c (widget_instantiate): don't need to clear the
10696         layout flag here.
10697
10698 2000-02-13  Martin Buchholz  <martin@xemacs.org>
10699
10700         * sysdep.c (getcwd): Use standard prototype.
10701         * sysdep.h (getcwd): Use standard prototype.
10702
10703         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
10704         (sequence, start, end).
10705         Remove redundant type checking.
10706         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
10707         view of `caller-protects') to avoid a crash where the real fix was
10708         found elsewhere.
10709
10710 2000-02-12  Martin Buchholz  <martin@xemacs.org>
10711
10712         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
10713
10714         * s/sol2.h: Remove feature macro initialization.
10715
10716         * alloc.c (alloc_lcrecord): Add more type checking assertions.
10717         (vector_hash): New.  Code from internal_hash.
10718         * lrecord.h:
10719         Fix up allocation subsystem comments.
10720
10721         * config.h.in: Add __EXTENSIONS__ for Solaris.
10722
10723         * systime.h (EMACS_GETTIMEOFDAY): New.
10724         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
10725         Remove Solaris-specific code.
10726         Use void* for the (ignored) second arg for gettimeofday().
10727
10728         * elhash.c (hash_table_hash): Implement it, finally.
10729         * elhash.c:  Use hashcode_t.
10730
10731         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
10732         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
10733
10734         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
10735         * fns.c (size_bit_vector):
10736         * alloc.c (size_vector):
10737         (make_vector_internal):
10738         (make_bit_vector_internal):
10739         (sweep_bit_vectors_1):
10740         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
10741
10742 2000-02-10  Martin Buchholz  <martin@xemacs.org>
10743
10744         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
10745         Include strings.h to avoid warnings for bzero and strcasecmp.
10746
10747 2000-02-10  Olivier Galibert  <galibert@pobox.com>
10748
10749         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
10750         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
10751
10752         * fns.c (size_bit_vector): New.  Declare bit vectors as a
10753         sequence.
10754
10755 2000-02-10  Olivier Galibert  <galibert@pobox.com>
10756
10757         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
10758         use a value field instead.
10759         (symbol_value_forward_forward): Use value field.
10760         (DEFVAR_SYMVAL_FWD): Use value field.
10761         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
10762         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
10763         (DEFVAR_CONST_INT): Ditto.
10764         (DEFVAR_BOOL): Ditto.
10765         (DEFVAR_CONST_BOOL): Ditto.
10766         (DEFVAR_INT_MAGIC): Ditto.
10767         (DEFVAR_BOOL_MAGIC): Ditto.
10768
10769         * symbols.c (guts_of_unbound_marker): Use value field.
10770         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
10771         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
10772
10773         * lisp.h: Declare dumpopaque and noninteractive1.
10774
10775         * alloc.c (dumpopaque): Added.
10776         (pdump_dump_opaquevec): Added.
10777         (pdump): Call pdump_dump_opaquevec to dump opaque data.
10778         (pdump_load): Reload opaque data.  Sync noninteractive1 with
10779         noninteractive.
10780
10781 2000-02-10  Andy Piper  <andy@xemacs.org>
10782
10783         * glyphs.c (image_instance_layout): if the size changes, mark it
10784         as such.
10785
10786         * redisplay-output.c (redisplay_output_layout): Update the
10787         subwindow here.
10788         (redisplay_output_subwindow): ditto.
10789
10790         * glyphs.c (update_subwindow): make sure we reset flags for
10791         layouts as well as everything else.
10792
10793         * glyphs-widget.c (layout_layout): don't need to set the instances
10794         dimensions here.
10795
10796 2000-02-09  Martin Buchholz  <martin@xemacs.org>
10797
10798         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
10799         not HAVE_DLOPEN, which is a lower-level thing.
10800
10801         * .cvsignore: Ignore gmon.out
10802
10803 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
10804
10805         * .cvsignore: Ignore portable dumper xemacs.dmp file
10806
10807 2000-02-09  Andy Piper  <andy@xemacs.org>
10808
10809         * redisplay-output.c (redisplay_output_layout): be more clever
10810         about when we output based on the changed flags.
10811
10812         * glyphs.h (struct image_instantiator_methods): add update_method.
10813         (struct Lisp_Image_Instance): add changed flags. Declare new
10814         macros for manipulating them.
10815
10816         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
10817         (image_instance_parent_glyph): find an image_instance's parent
10818         glyph or image_instance.
10819         (image_instance_layout): mark the size as changed.
10820         (set_image_instance_dirty_p): new function. mark an image
10821         instance, plus all of its parents, as dirty.
10822         (Fset_image_instance_property): use it.
10823         (Fglyph_animated_timeout_handler): use it.
10824         (update_subwindow): call update_widget and device methods for
10825         update_subwindow. Mark all changed flags as clean.
10826         (Fresize_subwindow): mark size as changed.
10827
10828         * glyphs-x.c (x_finalize_image_instance): try and detect gc
10829         failures.
10830         (x_update_subwindow): only resize subwindows here.
10831         (x_update_widget): new function. Update all changed properties of
10832         a widget.
10833         (x_resize_subwindow): deleted.
10834         (x_widget_set_property): deleted.
10835         (x_progress_gauge_set_property): deleted.
10836         (x_progress_gauge_update): new function. Implement recorded
10837         changes.
10838         (x_tab_control_update): ditto.
10839         (x_tab_control_set_property): deleted.
10840         (console_type_create_glyphs_x): declare new functions.
10841         (image_instantiator_format_create_glyphs_x): ditto.
10842
10843         * glyphs-widget.c (widget_set_property): mark text changed.
10844         (update_widget): new function. Update properties of a widget.
10845         (widget_instantiate): for layouts make sure we set their
10846         children's parent correctly.
10847         (tab_control_set_property): new function. Record changes that will
10848         take place under redisplay's control.
10849         (progress_gauge_set_property): ditto.
10850         (image_instantiator_progress_guage): declare new functions.
10851         (image_instantiator_tab_control): ditto.
10852
10853         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
10854         now.
10855         (mswindows_update_widget): new function. Update all properties on
10856         a widget that have changed.
10857         (mswindows_button_update): new function. Update a button's set
10858         state.
10859         (mswindows_tab_control_update): new function. Update the items in
10860         a tab.
10861         (mswindows_tab_control_set_property): deleted.
10862         (mswindows_progress_gauge_update): new function. Update the
10863         progress gauge's progress.
10864         (mswindows_widget_set_property): deleted. This is all done
10865         asynchronously now.
10866         (mswindows_progress_gauge_set_property): ditto.
10867         (console_type_create_glyphs_mswindows): declare new methods.
10868         (image_instantiator_format_create_glyphs_mswindows): ditto.
10869
10870         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
10871         (msprinter_set_frame_properties): ditto.
10872
10873         * console.h (struct console_methods): Add update_widget_method.
10874
10875 2000-02-09  Andy Piper  <andy@xemacs.org>
10876
10877         * gui-msw.c (Fmswindows_shell_execute): Make
10878         mswindows-shell-execute industrial strength.
10879
10880 2000-02-08  Martin Buchholz  <martin@xemacs.org>
10881
10882         * lrecord.h: Make macro argument `props' match member function `plist'.
10883         * fns.c (Fget):
10884         * fns.c (Fput):
10885         * fns.c (Fremprop):
10886         * fns.c (Fobject_plist):
10887         * alloc.c:
10888         * symbols.c:
10889         Object property list frobbing cleanup.
10890         - Allow any lisp object (compared with `eq'), not just symbols, as
10891           keys in object plists.
10892         - Move symbol plist frobbing into symbols.c, where it belongs.
10893         - Move string plist frobbing into alloc.c, where it belongs.
10894         - Everything's an lrecord now, so no need to test for symbolp, etc.
10895         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
10896
10897         * extents.c: Reorder code to remove declarations.
10898
10899         * frame.h (store_in_alist): Remove useless declaration.
10900
10901 2000-02-07  Martin Buchholz  <martin@xemacs.org>
10902
10903         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
10904         * config.h.in: Add HAVE_XCONVERTCASE.
10905
10906 2000-02-07  Andy Piper  <andy@xemacs.org>
10907
10908         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
10909         it breaks many things.
10910
10911 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
10912
10913         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
10914         actually can start a common comment type.
10915         * src/syntax.h (SYNTAX_END_P): ditto for end.
10916
10917 2000-02-07  Martin Buchholz <martin@xemacs.org>
10918
10919         * XEmacs 21.2.28 is released.
10920
10921 2000-02-06  Martin Buchholz  <martin@xemacs.org>
10922
10923         * event-Xt.c (x_keysym_to_character): New.
10924         (maybe_define_x_key_as_self_inserting_character): New.
10925         (x_has_keysym): New.
10926         Auto-define all keys on the keyboard as self-insert-key.
10927
10928 2000-02-02  Martin Buchholz  <martin@xemacs.org>
10929
10930         * menubar.c (vars_of_menubar): A small code simplification.
10931
10932         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
10933
10934         * ExternalShell.c:
10935         * ExternalClient.c:
10936         * EmacsShell-sub.c:
10937         * EmacsManager.c:
10938         * EmacsFrame.c:
10939         Use consistent style for specifying X resources.
10940
10941         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
10942         This makes (dontusethis-set-symbol-value-handler) actually usable.
10943
10944         * lrecord.h (lrecord_decription_type):
10945         * alloc.c (pdump_register_sub):
10946         (pdump_dump_data):
10947         (pdump_reloc_one):
10948         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
10949         Comply with XEmacs coding style.
10950         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
10951         args, and XD_LISP_OBJECT_ARRAY with 3 args.
10952
10953         * keymap.c (Faccessible_keymaps):
10954         Make (accessible-keymaps map "\C-h") do the Right Thing.
10955         Make (accessible-keymaps map []) do the Right Thing.
10956         Make (accessible-keymaps map "") do the Right Thing.
10957         (check_keymap_definition_loop): New function.
10958         (keymap_store_internal): Keep luser from shooting self in foot,
10959           via (define-key ctl-x-4-map "p" global-map).
10960         Remove fullness slot from struct Lisp_Keymap, since hash tables
10961         are now reliable.
10962         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
10963
10964 2000-01-30  Martin Buchholz  <martin@xemacs.org>
10965
10966         * redisplay.c (init_redisplay): Fix small memory leak.
10967         * elhash.h:
10968         * elhash.c (pdump_reorganize_hash_table):
10969         Rename from reorganize_hash_table. Change prototype.
10970         Reuse the original memory for hentries.  Save 100k.
10971         * alloc.c (PDUMP_READ): new macro.
10972         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
10973         * alloc.c: No need to #ifndef before #undef.
10974
10975         * print.c: Allow debug_print() to print readably by modifying
10976         debug_print_readably.  Use consistent variable names.
10977
10978         * .dbxrc: Try to get things to work even if stopped in a function
10979         without source available by explicitly specifying source files.
10980 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10981
10982         * unexnt.c (_start): Removed bogus code which caused loading heap
10983         from differrent executable file.
10984         Removed bogus assignment to _fmode, which caused inconsistencies.
10985
10986 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10987
10988         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
10989         Have spawnve encapsulation regard DONT_ENCAPSULATE.
10990         Do not preliminary `#define signal sigset'.
10991
10992         * systime.h: Do not prototype environ on windows nt and cygwin,
10993         this conflicts with system header.
10994
10995         * syssignal.h: Use correct define for WINDOWSNT
10996
10997         * sysdep.h: Do not prototype environ on windows nt, this conflicts
10998         with system header.
10999
11000         * sysdep.c (near start of file): Fixed commentary and rearranged
11001         ifdefs in readable order.
11002         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
11003         (start_of_text):
11004         (end_of_text):
11005         (end_of_data): Do not compile in if using PDUMP.
11006
11007         * symsinit.h: Prototyped vars_of_nt().
11008
11009         * ntproc.c (windows9x_p): Added, instead of os_subtype.
11010         (find_child_console): Use it.
11011         (sys_kill): Use it.
11012
11013         * ntheap.h: Do not extern os_subtype.
11014
11015         * ntheap.c (cache_system_info): Do not cache unneeded:
11016         nt_major_version, nt_minor_version and os_subtype.
11017         (recreate_heap): Do not compile in when PDUMPing.
11018
11019         * nt.c (geteuid and friends): Use the new varibale
11020         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
11021         (init_user_info): Removed the above mentioned hackery.
11022         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
11023         stat has been fixed in the C runtime.
11024         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
11025
11026         * file-coding.c (struct file_coding_dump): Do not define
11027         ucs_to_mule_table in the struct if not MULE.
11028         (struct struct lrecord_description fcd_description_1): Do not dump
11029         the above.
11030
11031         * emacs.c (main_1): Call vars_of_nt().
11032         (right before Fdump_emacs_data): Don't need lastfile if using both
11033         portabe dumper and system malloc.
11034
11035         * alloc.c (Fmemory_limit): Conditionalized out.
11036         (pdump): Use OPEN_BINARY for the portable dump file.
11037         (pdump_load): Ditto.
11038
11039 2000-02-02  Mike Alexander  <mta@arbortext.com>
11040
11041         * nt.c (convert_time): Set tm_isdst before calling mktime and
11042         avoid calling it at all if the compiler supports 64 bit integers.
11043         Also initialize utc_base_ft before using it.
11044
11045 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
11046
11047         * frame.c (change_frame_size_1): Take f->internal_border_width
11048         into consideration when calculating the width of the frame.
11049
11050 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11051
11052         * window.c (frame_min_height):
11053         (frame_size_valid_p):
11054         (frame_pixsize_valid_p): Added.
11055         (check_frame_size): Generalized.
11056
11057         * window.h: Prototyped the above.
11058
11059         * lisp.h:
11060         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
11061         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
11062         Deleted Vwin32_* and Vbinary_process_* unused variables.
11063
11064         * device-msw.c (msprinter_init_device): Do not get printer font
11065         list; Added DEVMODE functions.
11066
11067         * frame-msw.c: Added lots of printer code.
11068
11069         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
11070         general.c.
11071
11072         * console-msw.h: Added more msprinter device private slots.
11073
11074 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11075
11076         * event-msw.c (key_needs_default_processing_p): Added.
11077         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
11078
11079 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11080
11081         * glyphs.c (image_instance_layout): Mark image instance as clean
11082         after layout.
11083         (glyph_dirty_p): Removed redundant function.
11084         (invalidate_glyph_geometry_maybe): Added.
11085         (update_glyph_cachel_data): Call it.
11086
11087         * glyphs.h: Prototyped it.
11088
11089         * redisplay.c (add_glyph_rune): Call it.
11090         (redisplay_window): Reset glyphs cachels when frame faces have
11091         changed, thus forcing recomputation of built-in border glyphs.
11092
11093 2000-01-30  Martin Buchholz  <martin@xemacs.org>
11094
11095         * Makefile.in.in: Make portable dumper and purify play well together.
11096         Add imperfect, but better than nothing, support for pdump.
11097         Remove xemacs.dmp when temacs is re-generated.
11098         Don't ignore errors when dumping xemacs.
11099
11100         * symbols.c (maybe_call_magic_handler): Remove one magic number.
11101
11102 2000-01-28  Andy Piper  <andy@xemacs.org>
11103
11104         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
11105         (setup_normal_frame): ditto.
11106         (setup_frame_without_minibuffer): ditto.
11107         (setup_minibuffer_frame): ditto.
11108         (delete_frame_internal): ditto.
11109         (Fmake_frame_invisible): ditto.
11110         (Ficonify_frame): ditto.
11111
11112         * window.h: change Fset_window_buffer signature.
11113
11114         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
11115         (Fset_window_buffer): allow recording of buffer if the window is
11116         the selected window.
11117         (window_loop): Use new Fset_window signature.
11118
11119 2000-01-23  Daniel Pittman  <daniel@danann.net>
11120
11121         * config.h.in: Added template for `HAVE_ATHENA_3D'
11122
11123 2000-01-29  Andy Piper  <andy@xemacs.org>
11124
11125         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
11126
11127         * gutter.c (output_gutter): Don't output if the window isn't live.
11128
11129 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11130
11131         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
11132         of 01/12/00: Moved SetFocus back here where it belongs.
11133
11134 2000-01-23  Andy Piper  <andy@xemacs.org>
11135
11136         * s/cygwin32.h: declare printer things.
11137
11138 2000-01-26  Andy Piper  <andy@xemacs.org>
11139
11140         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
11141         Alexander.
11142
11143 2000-01-24  Andy Piper  <andy@xemacs.org>
11144
11145         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
11146         (mswindows_button_instantiate): Make sure glyph is a pixmap.
11147
11148         * glyphs-widget.c (widget_instantiate): Avoid shadows.
11149
11150         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
11151
11152         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
11153
11154         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
11155         (mswindows_output_display_block): Avoid local shadows.
11156
11157         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
11158         (mswindows_enqueue_mouse_button_event): ditto.
11159         (mswindows_handle_gui_wm_command): remove declaration.
11160
11161         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
11162         warnings.
11163
11164         * console-msw.h: Avoid shadows.
11165         (mswindows_get_toolbar_button_text):
11166         (emacs_mswindows_create_stream_pair):
11167         (emacs_mswindows_delete_stream_pair):
11168         (mswindows_handle_toolbar_wm_command): declare.
11169
11170         * device-msw.c (build_syscolor_string): Avoid shadows.
11171
11172 2000-01-23  Andy Piper  <andy@xemacs.org>
11173
11174         * glyphs-widget.c (widget_instantiate): reverse the items for
11175         layouts so that children are in the expected order.
11176
11177 2000-01-28  Martin Buchholz  <martin@xemacs.org>
11178
11179         * ralloc.c: safe_bcopy ==> memmove
11180         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
11181         * s/msdos.h: Remove BCOPY macros.
11182         * insdel.c (gap_right): Remove BCOPY conditional code.
11183         * insdel.c (gap_left): Remove BCOPY conditional code.
11184         XEmacs demands a working ANSI C compiler - hence memmove.
11185
11186         * regex.c (regex_compile): Remove accidental use of trigraphs.
11187
11188 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11189
11190         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
11191         event timestamp.
11192
11193 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11194
11195         * event-msw.c (mswindows_drain_windows_queue): Added the
11196         parameter.
11197         (mswindows_need_event): Commented the call to
11198         mswindows_drain_windows_queue().
11199         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
11200         only.
11201
11202         * console-msw.h: Moved a few function prototypes here from
11203         event-msw.c.
11204
11205         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
11206         parameter from unsigned short to unsigned long.
11207         (Fmswindows_shell_execute): Added return value.
11208
11209 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
11210
11211         * sysdep.c (init_system_name):
11212           process-unix.c (unix_canonicalized_host_name):
11213         Don't call freeaddrinfo() if getaddrinfo() fails.
11214
11215         * process-unix.c (unix_open_unix_network_stream):
11216         Moved the code to get a port # into address loop.
11217
11218 2000-01-27  Martin Buchholz  <martin@xemacs.org>
11219
11220         * buffer.c (reinit_vars_of_buffer):
11221         The right place to initialize conversion_in_dynarr and
11222         conversion_out_dynarr.
11223
11224         * alloc.c (pdump): Use the real open() till sys_open() is functional.
11225
11226         * process-unix.c (unix_canonicalize_host_name): Muleize.
11227         (unix_open_network_stream): Muleize.
11228
11229         * buffer.h: Fix up prototypes for ralloc.c functions.
11230
11231 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
11232         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
11233         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
11234                 instead of gethostbyname()
11235         * process-unix.c: In unix_canonicalize_host_name() and
11236                 unix_open_network_stream(), add code to use getaddrinfo()
11237                 instead of gethostbyname().
11238
11239 2000-01-27  Daniel Pittman <daniel@danann.net>
11240
11241         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
11242         libs when built with flat Athena.
11243
11244 2000-01-27  Martin Buchholz  <martin@xemacs.org>
11245
11246         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
11247         Use coding standards for function prototypes.
11248
11249 2000-01-25  Martin Buchholz  <martin@xemacs.org>
11250
11251         * dialog-msw.c (push_lisp_string_as_unicode):
11252         * doc.c (unparesseuxify_doc_string):
11253         * dired.c (Fuser_name_completion_1):
11254         * dired.c (Fuser_name_all_completions):
11255         * dired.c (free_user_cache):
11256         * dired.c (user_name_completion):
11257         * console-x.c (get_display_arg_connection):
11258         * minibuf.c (clear_echo_area_internal):
11259         * minibuf.c (echo_area_append):
11260         * eldap.c (Fldap_open):
11261         * eldap.c (Fldap_search_internal):
11262         * frame-x.c (x_set_frame_text_value):
11263         * frame-x.c (x_set_frame_properties):
11264         * frame-x.c (x_create_widgets):
11265         * redisplay-tty.c (term_get_fkeys_1):
11266         * objects-x.c (x_parse_nearest_color):
11267         * objects-x.c (x_valid_color_name_p):
11268         * objects-x.c (x_initialize_font_instance):
11269         * objects-x.c (x_list_fonts):
11270         * objects-x.c (x_find_charset_font):
11271         * tooltalk.c (Fadd_tooltalk_message_arg):
11272         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
11273         * tooltalk.c (Fadd_tooltalk_pattern_arg):
11274         * process-unix.c (unix_create_process):
11275         * ntproc.c (sys_spawnve):
11276         * sound.c (Fplay_sound_file):
11277         * sound.c (Fplay_sound):
11278         * buffer.c (init_initial_directory):
11279         * buffer.c (init_buffer):
11280         * editfns.c (init_editfns):
11281         * editfns.c (Ftemp_directory):
11282         * editfns.c (Fuser_full_name):
11283         * editfns.c (uncache_home_directory):
11284         * editfns.c (get_home_directory):
11285         * editfns.c (Fuser_home_directory):
11286         * editfns.c (Fformat_time_string):
11287         * editfns.c (Fcurrent_time_string):
11288         * gui-x.c (button_item_to_widget_value):
11289         * database.c (Fopen_database):
11290         * event-Xt.c (x_to_emacs_keysym):
11291         * event-Xt.c (x_event_to_emacs_event):
11292         * event-Xt.c (describe_event_window):
11293         * event-msw.c (mswindows_wnd_proc):
11294         * glyphs-eimage.c (jpeg_instantiate):
11295         * glyphs-eimage.c (gif_instantiate):
11296         * glyphs-eimage.c (png_instantiate):
11297         * glyphs-eimage.c (tiff_instantiate):
11298         * glyphs-x.c (xbm_instantiate_1):
11299         * glyphs-x.c (x_xbm_instantiate):
11300         * glyphs-x.c (x_xface_instantiate):
11301         * glyphs-x.c (autodetect_instantiate):
11302         * glyphs-x.c (cursor_font_instantiate):
11303         * glyphs-x.c (x_widget_instantiate):
11304         * glyphs-x.c (x_widget_set_property):
11305         * glyphs-x.c (x_widget_property):
11306         * glyphs-x.c (BUILD_GLYPH_INST):
11307         * print.c (write_string_to_stdio_stream):
11308         * print.c (output_string):
11309         * print.c (Falternate_debugging_output):
11310         * print.c (Fexternal_debugging_output):
11311         * glyphs-msw.c (extract_xpm_color_names):
11312         * glyphs-msw.c (mswindows_xpm_instantiate):
11313         * glyphs-msw.c (bmp_instantiate):
11314         * glyphs-msw.c (resource_name_to_resource):
11315         * glyphs-msw.c (mswindows_resource_instantiate):
11316         * glyphs-msw.c (xbm_instantiate_1):
11317         * glyphs-msw.c (mswindows_xbm_instantiate):
11318         * glyphs-msw.c (mswindows_xface_instantiate):
11319         * glyphs-msw.c (mswindows_widget_instantiate):
11320         * glyphs-msw.c (add_tree_item):
11321         * glyphs-msw.c (add_tab_item):
11322         * glyphs-msw.c (mswindows_combo_box_instantiate):
11323         * glyphs-msw.c (mswindows_widget_property):
11324         * glyphs-msw.c (mswindows_combo_box_property):
11325         * glyphs-msw.c (mswindows_widget_set_property):
11326         * console.c (stuff_buffered_input):
11327         * objects-msw.c (mswindows_initialize_color_instance):
11328         * objects-msw.c (mswindows_valid_color_name_p):
11329         * objects-msw.c (mswindows_list_fonts):
11330         * objects-msw.c (mswindows_font_instance_truename):
11331         * bytecode.c (optimize_compiled_function):
11332         * select-x.c (symbol_to_x_atom):
11333         * select-x.c (x_atom_to_symbol):
11334         * select-x.c (hack_motif_clipboard_selection):
11335         * select-x.c (selection_data_to_lisp_data):
11336         * select-x.c (lisp_data_to_selection_data):
11337         * select-x.c (Fx_get_cutbuffer_internal):
11338         * select-x.c (Fx_store_cutbuffer_internal):
11339         * buffer.h (TO_EXTERNAL_FORMAT): New function.
11340         * buffer.h (TO_INTERNAL_FORMAT): New function.
11341         * emacs.c (make_arg_list_1):
11342         * emacs.c (make_argc_argv):
11343         * emacs.c (main_1):
11344         * emacs.c (Fdump_emacs):
11345         * emacs.c (split_string_by_emchar_1):
11346         * file-coding.h:
11347         * lisp.h:
11348         * lstream.h:
11349         * symsinit.h:
11350         * device-x.c (x_init_device):
11351         * device-x.c (Fx_valid_keysym_name_p):
11352         * device-x.c (Fx_get_font_path):
11353         * device-x.c (Fx_set_font_path):
11354         * glyphs.c (bitmap_to_lisp_data):
11355         * glyphs.c (pixmap_to_lisp_data):
11356         * alloc.c (make_ext_string): Use coding system arguments.  Update
11357         all callers.
11358         * alloc.c (build_string):
11359         * callproc.c (child_setup):
11360         * callproc.c (init_callproc):
11361         * fileio.c (lisp_strerror):
11362         * fileio.c (directory_file_name):
11363         * fileio.c (Fexpand_file_name):
11364         * fileio.c (Ffile_truename):
11365         * fileio.c (Fsysnetunam):
11366         * fileio.c (Fdo_auto_save):
11367         * sysdep.c (sys_readdir):
11368         * tests.c: New file.  Allow adding C tests.
11369         Replace GET_* macros with a more comprehensible and flexible
11370         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
11371         Modify all calls.
11372         Any coding system can be used to do format conversion.
11373         Eliminate enum external_data_format.
11374         Eliminate convert_to_external_format.
11375         Eliminate convert_to_internal_format.
11376         Make sure file-name, keyboard, terminal, and ctext are always
11377         defined as coding systems or aliases.  Make
11378         file-name-coding-system, terminal-coding-system, and
11379         keyboard-coding-system magical variables that are equivalent to
11380         defining the corresponding coding system aliases.
11381
11382         * file-coding.c (Fcoding_system_canonical_name_p): New function.
11383         * file-coding.c (Fcoding_system_alias_p): New function.
11384         * file-coding.c (Fcoding_system_aliasee): New function.
11385         * file-coding.c (append_suffix_to_symbol): New function.
11386         * file-coding.c (dangling_coding_system_alias_p): New function.
11387         * file-coding.c (Ffind_coding_system):
11388         * file-coding.c (Fcopy_coding_system):
11389         * file-coding.c (encode_coding_no_conversion):
11390         * file-coding.c (syms_of_file_coding):
11391         * file-coding.c (vars_of_file_coding):
11392         Rewrite coding system alias code.
11393         Allow nested aliases, like symbolic links.
11394         Allow redefinition of coding system aliases.
11395         Prevent existence of dangling coding system aliases.
11396
11397         * dired.c (Fuser_name_completion_1):
11398         * dired.c (Fuser_name_all_completions):
11399         A crash would happen if user did QUIT in the middle of building
11400         user_name_cache.  Remove redundant code in mainline and unwind_protect.
11401
11402         * lisp.h:
11403         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
11404
11405         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
11406         an unsigned char *.  Update all callers.
11407
11408 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11409
11410         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
11411
11412 2000-01-25  Martin Buchholz  <martin@xemacs.org>
11413
11414         * elhash.c (hentry_description): Use more portable definition.
11415         (resize_hash_table): Initialize new hentries using
11416         xnew_array_and_zero, thereby simplifying the code.
11417
11418         * mule-charset.c (make_charset): Make sure entire object is
11419         initialized, to avoid Purify warnings.
11420
11421         * alloc.c (resize_string): Fix unlikely crash with big strings.
11422
11423 2000-01-24  Martin Buchholz  <martin@xemacs.org>
11424
11425         * realpath.c (xrealpath):
11426         Don't call getwd().
11427
11428 2000-01-25  Martin Buchholz  <martin@xemacs.org>
11429
11430         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
11431
11432 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
11433
11434         * unexelfsgi.c (unexec): Change the way we decide which segment
11435         should be extended.
11436
11437         Assumption that .bss section should be outside the PT_LOADable
11438         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
11439         it's present) is inside the 'data' segment. This would fail the
11440         test which was used to find a segment to grow and cover new
11441         heap. Instead of this assumption, I created another one - on IRIX
11442         the segment to grow should start below .bss and it's address
11443         should extent above the end of .bss. Once this segment is
11444         identified, it's grown to accommodate the new heap and new
11445         zero-length .bss section is added at the end of .data2.
11446
11447 2000-01-25  Martin Buchholz  <martin@xemacs.org>
11448
11449         * eval.c (Feval): Wrong number of arguments should use original
11450         function, not the indirect_function version of it.
11451
11452 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
11453
11454         * glyphs-x.c (x_button_instantiate): Don't add image if
11455         it is not a pixmap.
11456         (x_locate_pixmap_file): Call Fexpand_file_name when file name
11457         is relative.
11458
11459 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
11460
11461         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
11462         declaration.
11463         (DEFVAR_INT_MAGIC): Ditto.
11464         (DEFVAR_BOOL_MAGIC): Ditto.
11465         * glyphs.h: Reindent backslash.
11466
11467 2000-01-24  Martin Buchholz  <martin@xemacs.org>
11468
11469         * glyphs-widget.c (layout_query_geometry):
11470         (layout_layout): Use correct types for gheight, gwidth.
11471
11472 2000-01-24  Martin Buchholz  <martin@xemacs.org>
11473
11474         * EmacsManager.c (QueryGeometry): Purified.
11475
11476 2000-01-23  Martin Buchholz  <martin@xemacs.org>
11477
11478         * alloc.c (make_float): Make sure entire object is initialized, to
11479         avoid Purify warnings.
11480         (pdump_register_sub): Remove useless assignment.
11481         (pdump): Use xmalloc, not malloc.
11482         (pdump_load): Use xmalloc, not malloc.
11483
11484 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11485
11486         * callproc.c:
11487         * dired-msw.c:
11488         * fileio.c:
11489         * process-nt.c:
11490         * redisplay-msw.c:
11491         * sysdep.c: Removed redundant #include <windows.h>
11492
11493 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11494
11495         * frame.c (delete_frame_internal): Do not delete device when its
11496         implementation so declares.
11497         (delete_frame_internal): Set device selected frame to nil when
11498         last frame goes away.
11499
11500         * device-msw.c (msprinter_device_system_metrics): Implemented.
11501         (mswindows_device_system_metrics): Added 'device-dpi property.
11502
11503         * device.c: (Fdevice_printer_p): Added.
11504         Added 'offset-workspace device metric.
11505
11506         * console.h (device_metrics): Declared DM_offset_workspace.
11507
11508 2000-01-23  Martin Buchholz  <martin@xemacs.org>
11509
11510         * fileio.c (Ffile_truename): Remove pointless and confusing
11511         initialization of elen.
11512
11513         * glyphs-widget.c: Compiler warning fixes.
11514
11515 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
11516
11517         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
11518         instead of a Lisp_Object as argument to make it consistent with
11519         the other LIVE_P macros.
11520         (CHECK_LIVE_PROCESS): New macro.
11521
11522         * process.c: Declare Qprocess_live_p.
11523         (Fprocess_live_p): New function.
11524         (create_process): Use PROCESS_LIVE_P.
11525         (read_process_output): Ditto.
11526         (set_process_filter): Ditto.
11527         (Fdelete_process): Ditto.
11528         (kill_buffer_processes): Ditto
11529         (process_send_signal): Use CHECK_LIVE_PROCESS.
11530         (Fprocess_input_coding_system): Check whether process is still
11531         alive (fix PR#1061).
11532         (Fprocess_output_coding_system): Ditto.
11533         (Fprocess_coding_system): Ditto.
11534         (Fset_process_input_coding_system): Ditto.
11535         (Fset_process_output_coding_system): Ditto.
11536
11537 2000-01-23  Andy Piper  <andy@xemacs.org>
11538
11539         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
11540         layout and widget.
11541
11542         * glyphs.c (mark_image_instance): take into account changed
11543         image_instance format.
11544         (image_instance_equal): ditto.
11545         (image_instance_hash): ditto.
11546
11547         * glyphs-widget.c (widget_instantiate): Incorporate layout
11548         instantiation here. Delay layout of the layout until later.
11549         (layout_instantiate): deleted.
11550         (layout_query_geometry): new function. get the geometry of a
11551         layout.
11552         (layout_layout): layout a layout dynamically.
11553         (image_instantiator_widget): New function - splitting up
11554         image_instantiator_format_create_glyphs_widget for netwinder
11555         compilation.
11556         (image_instantiator_buttons):
11557         (image_instantiator_edit_fields):
11558         (image_instantiator_combo_box):
11559         (image_instantiator_scrollbar):
11560         (image_instantiator_progress_guage):
11561         (image_instantiator_tree_view):
11562         (image_instantiator_tab_control):
11563         (image_instantiator_labels):
11564         (image_instantiator_layout): ditto.
11565         (image_instantiator_format_create_glyphs_widget): Call preceding
11566         functions.
11567
11568 2000-01-22  Martin Buchholz  <martin@xemacs.org>
11569
11570         * process.c (Fset_process_coding_system):
11571         * device-x.c (Fx_keysym_hash_table):
11572         Docstring fixes.
11573
11574         * lstream.c (Lstream_write): Return documented value, not 0.
11575
11576         * fileio.c (directory_file_name):
11577         (Fsubstitute_in_file_name):
11578         (Fsubstitute_insert_file_contents_internal):
11579         (Fwrite_region_internal):
11580         * emacs.c:
11581         * sysdep.c:
11582         * getloadavg.c:
11583         * systty.h:
11584         Remove vestigial APOLLO-conditional code.
11585
11586 2000-01-21  Martin Buchholz  <martin@xemacs.org>
11587
11588         * getpagesize.h: Add guard macros.
11589         * libsst.h: Add guard macros.
11590         * libst.h: Add guard macros.
11591         * line-number.h: Add guard macros.
11592         * ndir.h: Add guard macros.
11593         * sysfloat.h: Add guard macros.
11594         * sysfile.h: Add guard macros.
11595         * sysproc.h: Add guard macros.
11596         * syswait.h: Add guard macros.
11597         * xintrinsic.h: Add guard macros.
11598         * xintrinsicp.h: Add guard macros.
11599         * xmmanager.h: Add guard macros.
11600         * xmmanagerp.h: Add guard macros.
11601         * xmprimitive.h: Add guard macros.
11602         * xmu.h: Add guard macros.
11603         * gpmevent.h: Add copyright statement. Add guard macros.
11604         * miscplay.h: Add guard macros.
11605         * *.h: Use consistent C-standards-approved guard macro names.
11606
11607         * opaque.c (make_opaque): Switch parameter order.
11608         * opaque.h (make_opaque): Switch parameter order.
11609         Update all callers.
11610         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
11611
11612         * config.h.in (type_checking_assert): Added.
11613         (bufpos_checking_assert): Added.
11614
11615 2000-01-21  Martin Buchholz  <martin@xemacs.org>
11616
11617         * alloc.c: Harmless pdump changes.
11618         - Use countof().
11619         - spell alignment correctly.
11620         * sysdep.c: Use countof()
11621
11622 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11623
11624         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
11625         initially_selected_for_input() console method, default to 0.
11626         (semi_canonicalize_console_connection): Try to delegate to
11627         canonicalize_console_connection if no such console method.
11628         (canonicalize_console_connection): Vice versa.
11629         (print_console): Do not print nil connection.
11630
11631         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
11632         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
11633         (XDEVIMPF_FRAMELESS_OK): Added.
11634         (CONSOLE_INHERITS_METHOD): Added.
11635
11636         * console-msw.c (mswindows_canonicalize_console_connection):
11637         Added.
11638         (mswindows_canonicalize_device_connection): Added.
11639
11640         * console-msw.h (struct msprinter_device): Added this struct and
11641         accessor macros.
11642         (mswindows_device): Made fontlist a lisp object.
11643
11644         * device.c (semi_canonicalize_device_connection):  Try to delegate
11645         to canonicalize_device_connection if no such console method.
11646         (canonicalize_device_connection): Vice versa.
11647         (print_device): Do not print nil connection.
11648
11649         * device-msw.c (mswindows_init_device): Call InitCommonControls
11650         when have widgets.
11651         (mswindows_delete_device): Removed fontlist deallocation.
11652         (mswindows_mark_device): Added.
11653
11654         * events.c (event_equal): Added abort() at unreached code.
11655         (event_hash): Ditto.
11656
11657         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
11658         fallback tags of Windows devices.
11659
11660         * general.c (syms_of_general): Initialized Qmsprinter.
11661
11662         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
11663         of fallback tags of Windows devices.
11664
11665         * lisp.h: Declared Qmsprinter.
11666
11667         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
11668         of strings.
11669         (mswindows_list_fonts): Ditto.
11670         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
11671         that it can be used by both mswindows and msprinter devices.
11672         (initialize_font_instance): Added.
11673         (mswindows_initialize_font_instance): Use it.
11674         (msprinter_initialize_font_instance): Added.
11675
11676         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
11677         and implementation flags check.
11678         (redisplay_without_hooks): Changed the call to the above.
11679         (Fredraw_device): Ditto.
11680         (Fredisplay_device): Ditto.
11681
11682         * redisplay-msw.c (get_frame_dc): Implemented.
11683         (get_frame_compdc): Implemented.
11684         (many functions): Use the two functions above to get device
11685         contexts, ether for a window or a printer.
11686
11687 2000-01-21  Olivier Galibert  <galibert@pobox.com>
11688
11689         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
11690         initialization here.
11691         (init_symbols_once_early): Call it.
11692         * emacs.c (main_1): Call it.
11693         * symsinit.h: Declare it.
11694
11695 2000-01-19  Olivier Galibert  <galibert@pobox.com>
11696
11697         * alloc.c: Use a lrecord_header * in the backtrace instead of a
11698         Lisp_Object.
11699         (pdump_backtrace): Ditto.
11700         (pdump_register_object): Ditto.  Cleanup use of the pointers.
11701         (pdump_get_entry): Abort if trying to register a null pointer.
11702         (pdump_dump_data): Cleanup types when relocating.
11703         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
11704         (pdump_dump_rtables): Remove bad casts.
11705         (pdump_load): Cleanup relocation w.r.t union type.  Use a
11706         Lisp_Object instead of a EMACS_INT for the hashtable
11707         reorganization.
11708
11709 2000-01-20  Martin Buchholz  <martin@xemacs.org>
11710
11711         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
11712
11713         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
11714
11715         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
11716
11717         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
11718
11719 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11720
11721         * faces.h (FACE_STRIKETHRU_P): Added.
11722
11723         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
11724         of font variants.
11725
11726         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
11727         (mswindows_set_dc_font): New function, aware of font variants,
11728         separated from mswindows_update_dc.
11729
11730         * objects-msw.h (struct mswindows_font_instance_data): Added
11731         definition.
11732
11733         * objects-msw.c (mswindows_finalize_font_instance): Delete all
11734         cached fonts and the data structure.
11735         (mswindows_initialize_font_instance): Added creation of font data
11736         structure.
11737         (mswindows_print_font_instance): Print at least something.
11738         (mswindows_create_font_variant): Implemented.
11739         (mswindows_get_hfont): Implemented.
11740
11741 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
11742
11743         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
11744         prototyping problem with msvc.
11745
11746         * emacs.c (main_1): added syms_of_gui_mswindows() call
11747
11748         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
11749         syms_of_gui_mswindows() function
11750
11751         * symsinit.h: added the prototype for syms_of_gui_mswindows()
11752
11753 2000-01-18  Martin Buchholz <martin@xemacs.org>
11754
11755         * XEmacs 21.2.27 is released.
11756
11757 2000-01-18  Martin Buchholz  <martin@xemacs.org>
11758
11759         * glyphs-eimage.c (struct tiff_error_struct):
11760         (tiff_error_func):
11761         (tiff_warning_func):
11762         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
11763
11764         * unexmips.c:
11765         * unexhp9k3.c:
11766         * unexfreebsd.c:
11767         * unexec.c: Remove vestigial Lucid C code.
11768         * unexalpha.c:
11769         * unexaix.c:
11770         * termcap.c:
11771         * libsst.c: Ansify.
11772         Remove declarations of errno and strerror().
11773
11774         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
11775
11776         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
11777
11778 2000-01-16  Martin Buchholz  <martin@xemacs.org>
11779
11780         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
11781         Optimize.
11782
11783 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11784
11785         * md5.c:
11786         * file-coding.c:
11787         * file-coding.h:
11788         Change enum eol_type to eol_type_t.
11789
11790 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11791
11792         * gui.c (get_gui_callback): Check cons before accessing car.
11793
11794 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11795
11796         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
11797         (XSETSPECIFIER_TYPE): Ditto.
11798
11799 2000-01-17  Didier Verna  <didier@xemacs.org>
11800
11801         * redisplay.c (generate_fstring_runes): compute string size in
11802         characters, not bytes.
11803
11804 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
11805
11806         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
11807
11808 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
11809
11810         * print.c (print_error_message): Call print_prepare().
11811
11812 2000-01-14  Martin Buchholz  <martin@xemacs.org>
11813
11814         * .dbxrc: Renamed from dbxrc.
11815
11816         * events.c (event_to_character):
11817         Use `assert (foo)' instead of `if (!foo) abort()'
11818
11819         * .gdbinit (xtype): Add documentation.
11820         * .gdbinit (check-temacs): New function.
11821         * .gdbinit (check-xemacs): New function.
11822         * dbxrc (check-xemacs): New function.
11823         * dbxrc (check-xemacs): New function.
11824
11825 2000-01-14  Andy Piper  <andy@xemacs.org>
11826
11827         * glyphs-widget.c (widget_query_geometry): Make sure that we
11828         calculate default dimensions correctly.
11829
11830 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11831
11832         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
11833
11834         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
11835         pdump_wire'd variable.
11836
11837         * emacs.c: (main_1): Conditionalized calls to
11838         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
11839
11840 2000-01-13  Martin Buchholz  <martin@xemacs.org>
11841
11842         * window.c (Fset_window_configuration):
11843         * sysdep.c (_start):
11844         * input-method-motif.c (res):
11845         * event-Xt.c (Xt_process_to_emacs_event):
11846         Simple compiler warning fixes.
11847
11848         * bytecode.c (funcall_compiled_function): Use the original
11849         function symbol on the backtrace list in preference to the
11850         compiled_function object in error messages.
11851
11852 2000-01-13  Andy Piper  <andy@xemacs.org>
11853
11854         * glyphs-x.c (update_widget_face): Make sure we update the widget
11855         background as well as foreground.
11856
11857 2000-01-13  Andy Piper  <andy@xemacs.org>
11858
11859         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
11860         fields to subwindow.
11861         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
11862         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
11863         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
11864         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
11865
11866         * glyphs-widget.c (check_valid_tab_orientation): new function.
11867         (initialize_widget_image_instance): zero orientation and
11868         justification.
11869         (widget_instantiate): pick up orientation.
11870         (tab_control_query_geometry): return appropriate values for
11871         vertical tabs.
11872
11873         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
11874         appropriate creation flags for left, right and bottom tabs.
11875
11876         * s/cygwin32.h: add tab definitions.
11877
11878 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11879
11880         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
11881         frame upon hiding a subwindow.
11882         (mswindows_button_instantiate): Changed the push button style to
11883         BS_PUSHBUTTON.
11884         (mswindows_button_instantiate): Removed button BS_NOTIFY
11885         style.
11886         (mswindows_button_instantiate): Removed redundant check for
11887         a disabled gui item.
11888         (mswindows_button_instantiate): Made use of WS_TABSTOP
11889         consistent: "operable" controls (edit, button, tree, scroll) have
11890         this style, "display-only" ones (static, progress gauge) do
11891         not. This style is currently ignored by XEmacs though. Also,
11892         removed the WS_EX_CONTROLPARENT style - it is not for children,
11893         it is for their parents!
11894         (mswindows_edit_field_instantiate): Ditto.
11895         (mswindows_progress_gauge_instantiate): Ditto.
11896         (mswindows_tree_view_instantiate): Ditto.
11897         (mswindows_tab_control_instantiate): Ditto.
11898         (mswindows_scrollbar_instantiate): Ditto.
11899         (mswindows_combo_box_instantiate): Ditto.
11900         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
11901         style to the "clip" window.
11902         (mswindows_button_instantiate): Removed compilation warning by
11903         equally typing terms of the ?: operator.
11904
11905 2000-01-12  Didier Verna  <didier@xemacs.org>
11906
11907         * redisplay.c (generate_fstring_runes): new parameter holding the
11908         last modeline-format extent.
11909         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
11910         extent, fill the glyph block with it.
11911         (generate_fstring_runes): handle these parameters.
11912         (generate_formatted_string_db): ditto.
11913
11914         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
11915         glyphs'extents in the modeline.
11916
11917 1999-01-11  Mike Woolley  <mike@bulsara.com>
11918
11919         * ntheap.c: Reduced the reserved heap space from 1Gb down to
11920         256Mb, as a workaround for the non-starting problem many people
11921         have experienced.
11922
11923 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11924
11925         * console-tty.c (Fset_console_tty_output_coding_system):
11926         Force redrawing tty frame.
11927
11928 2000-01-10  Didier Verna  <didier@xemacs.org>
11929
11930         * redisplay.c (generate_fstring_runes): fix size computation bug.
11931
11932 2000-01-09  William M. Perry <wmperry@aventail.com>
11933
11934         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
11935
11936 2000-01-09  Andy Piper  <andy@xemacs.org>
11937
11938         * glyphs-msw.c: index -> i to avoid shadows.
11939         (xbm_create_bitmap_from_data): make static.
11940         (check_valid_string_or_int): deleted.
11941         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
11942
11943         * glyphs-x.c (x_update_subwindow): remove unused args.
11944
11945         * glyphs.c (glyph_image_instance): return the thing. Don't set the
11946         back pointer - this is done in allocate_image_instance.
11947         (query_string_font): return Qnil to make the compiler happy.
11948         (unmap_subwindow): set to ~0 to make the compiler happy.
11949         (glyph_query_geometry): comment out until used.
11950         (glyph_layout): ditto.
11951
11952 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
11953
11954         * insdel.c (signal_after_change): Remove extraneous unbind_to().