debe45d8ace6e0860da0e3e4ed41d2117692f4c3
[chise/xemacs-chise.git-] / src / ChangeLog
1 2001-11-05  MORIOKA Tomohiko  <tomo@localhost>
2
3         * chartab.c (uint8_byte_table_description): New constant.
4         (uint8-byte-table): Use `uint8_byte_table_description'.
5         (uint16_byte_table_description): New constant.
6         (uint16-byte-table): Use `uint16_byte_table_description'.
7
8 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
9
10         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
11         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
12
13 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
14
15         * mule-charset.c (Vcharset_ucs_ks): New variable.
16         (Qucs_ks): New variable.
17         (syms_of_mule_charset): Add new symbol `ucs-ks'.
18         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
19
20         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
21
22 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
23
24         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
25         (Fdecode_char): Likewise.
26
27         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
28         chartab.h.
29         (Fdefine_char): Modify for Fdecode_char.
30         (Ffind_char): Likewise.
31
32         * mule-charset.c (Fdecode_char): Add new optional argument
33         `defined-only'.
34         (Fdecode_builtin_char): Modify for `Fdecode_char'.
35
36 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
37
38         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
39         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
40         (allocate_coding_system): Initialize initial-charsets of
41         CODESYS_BIG5 in XEmacs UTF-2000.
42         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
43         CODESYS_BIG5 in XEmacs UTF-2000.
44         (decode_coding_big5): Use initial-charset-g0 and -g1 of
45         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
46
47         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
48         variables.
49         (Qideograph_hanziku_{1 .. 12}): Likewise.
50         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
51         .. 12}'.
52         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
53         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
54         `ideograph-hanziku-{1 .. 12}'.
55
56         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
57         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
58         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
59         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
60         (DECODE_DEFINED_CHAR): New inline function.
61         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
62
63 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
64
65         * mule-charset.c (Vcharset_china3_jef): Renamed from
66         `Vcharset_japanese_jef_china3'.
67         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
68         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
69         `{MIN|MAX}_CHAR_JEF_CHINA3'..
70         (syms_of_mule_charset): Rename `china3-jef' from
71         `japanese-jef-china3'.
72         (complex_vars_of_mule_charset): Likewise; rename
73         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
74
75         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
76         `LEADING_BYTE_JEF_CHINA3'.
77         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
78         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
79
80 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
81
82         * mule-charset.c (encode_builtin_char_1): Comment out special code
83         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
84
85         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
86         (MAX_CHAR_MOJIKYO_0): Comment out.
87         (MIN_CHAR_CBETA): Changed to 0x00E20000.
88         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
89         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
90         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
91
92 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
93
94         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
95         (Qideograph_cbeta): New variable.
96         (encode_builtin_char_1): Comment out special code for
97         coded-charset `mojikyo' and `japanese-jef-china3'.
98         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
99         (complex_vars_of_mule_charset): Add new coded-charset
100         `ideograph-cbeta'.
101
102         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
103         (MIN_CHAR_CBETA): New macro.
104         (MAX_CHAR_CBETA): New macro.
105
106 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
107
108         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
109         (LEADING_BYTE_JEF_CHINA3): New macro.
110         (MIN_CHAR_JEF_CHINA3): New macro.
111         (MAX_CHAR_JEF_CHINA3): Likewise.
112         (DECODE_CHAR): Fixed.
113
114 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
115
116         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
117         (Qjapanese_jef_china3): New variable.
118         (encode_builtin_char_1): Support `japanese-jef-china3'.
119         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
120         (complex_vars_of_mule_charset): Add new coded-charset
121         `japanese-jef-china3'.
122
123 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
124
125         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
126         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
127         94^4, 96^3, 96^4, 128^n and 256^n set.
128         (put_char_table): Use `XCHARSET_CELL_RANGE'.
129         (map_char_table): Likewise.
130
131 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
132
133         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
134         UTF-2000.
135
136 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
137
138         * chartab.h (get_char_id_table): New inline function.
139
140         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
141         function.
142
143 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
144
145         * chartab.h (decode_char_table_range): New prototype in XEmacs
146         UTF-2000.
147         (put_char_id_table): New inline function in XEmacs UTF-2000.
148
149         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
150         function.
151         (decode_char_table_range): Delete static declaration in XEmacs
152         UTF-2000.
153
154 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
155
156         * chartab.c (put_char_id_table): Use `put_char_table'.
157
158 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
159
160         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
161         (map_over_uint16_byte_table): Likewise.
162         (map_over_byte_table): Likewise.
163         (map_char_table): Modify for `map_over_uint8_byte_table',
164         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
165         UTF-2000.
166
167 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
168
169         * chartab.c (struct map_char_table_for_charset_arg): New
170         structure.
171         (map_char_table_for_charset_fun): New function.
172         (map_char_table): Use `map_char_table' for encoding_table of
173         `range->charset'.
174
175 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
176
177         * chartab.c (map_char_table): Check a character is found in
178         range->charset instead of non default value is defined in
179         char-table when range is CHARTAB_RANGE_ROW.
180
181 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
182
183         * chartab.c (map_char_id_table): Deleted.
184         (Fmap_char_attribute): Use `map_char_table' instead of
185         `map_char_id_table'.
186
187 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
188
189         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
190         UTF-2000.
191         (update_syntax_table): Deleted in XEmacs UTF-2000.
192
193         * syntax.c (find_defun_start): Use `syntax_table' instead of
194         `mirror_syntax_table' in XEmacs UTF-2000.
195         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
196         UTF-2000.
197         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
198         XEmacs UTF-2000.
199         (Fmatching_paren): Likewise.
200         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
201         in XEmacs UTF-2000.
202         (find_start_of_comment): Likewise.
203         (find_end_of_comment): Likewise.
204         (Fforward_comment): Likewise.
205         (scan_lists): Likewise.
206         (char_quoted): Likewise.
207         (Fbackward_prefix_chars): Likewise.
208         (scan_sexps_forward): Likewise.
209         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
210         (update_syntax_table): Likewise.
211
212         * search.c (skip_chars): Use `syntax_table' instead of
213         `mirror_syntax_table' in XEmacs UTF-2000.
214         (wordify): Likewise.
215         (Freplace_match): Likewise.
216
217         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
218         `mirror_syntax_table' in XEmacs UTF-2000.
219         (WORDCHAR_P_UNSAFE): Likewise.
220         (re_match_2_internal): Likewise.
221
222         * font-lock.c (find_context): Use `buf->syntax_table' instead of
223         `buf->mirror_syntax_table' in XEmacs UTF-2000.
224
225         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
226         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
227
228         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
229         XEmacs UTF-2000.
230
231         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
232         UTF-2000.
233         (print_char_table): Print `default_value' in XEmacs UTF-2000.
234         (char_table_description): Delete `mirror_table' in XEmacs
235         UTF-2000.
236         (fill_char_table): Don't call `update_syntax_table' in XEmacs
237         UTF-2000.
238         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
239         (Fcopy_char_table): Likewise.
240         (put_char_table): Don't call `update_syntax_table' in XEmacs
241         UTF-2000.
242
243         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
244         `buf->mirror_syntax_table' in XEmacs UTF-2000.
245         (casify_region_internal): Likewise.
246
247         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
248
249         * buffer.c (common_init_complex_vars_of_buffer): Don't use
250         `mirror_syntax_table' in XEmacs UTF-2000.
251
252         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
253         `buf->mirror_syntax_table' in XEmacs UTF-2000.
254         (Fexpand_abbrev): Likewise.
255
256 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
257
258         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
259
260 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
261
262         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
263         (map_over_uint16_byte_table): Likewise.
264         (map_over_byte_table): Likewise.
265         (get_char_id_table): Refer `cit->default_value'.
266         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
267         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
268         of character-id ranges.
269         (mark_char_table): Mark `ct->default_value'.
270         (char_table_description): Add `default_value'.
271         (fill_char_table): Use `default_value'.
272         (decode_char_table_range): Decode `nil' as
273         `CHARTAB_RANGE_DEFAULT'.
274         (get_char_id_table): Refer `cit->default_value'.
275         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
276         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
277         temporary hack; check value of char-table is bound or not.
278         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
279
280         * chartab.h (struct Lisp_Char_Table): Add new member
281         `default_value' in XEmacs UTF-2000.
282         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
283         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
284         UTF-2000.
285
286 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
287
288         * chartab.h (Lisp_Char_ID_Table): Deleted.
289
290         * chartab.c (char_table_description): Fix typo.
291         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
292         `Lisp_Char_ID_Table'.
293
294 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
295
296         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
297         `CHAR_ID_TABLE_P'.
298
299         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
300         `CHAR_ID_TABLE_P'.
301
302         * chartab.h (XCHAR_ID_TABLE): Deleted.
303         (XSETCHAR_ID_TABLE): Deleted.
304         (CHAR_ID_TABLE_P): Deleted.
305
306         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
307         `CHAR_ID_TABLE_P'.
308         (Fget_composite_char): Likewise.
309         (put_char_table): Likewise.
310         (add_char_attribute_alist_mapper): Fixed.
311         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
312         `CHAR_ID_TABLE_P'.
313         (Fget_char_attribute): Likewise.
314         (Fget_char_attribute): Likewise.
315         (Fmap_char_attribute): Likewise.
316
317         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
318         `CHAR_ID_TABLE_P'.
319         (encode_char_1): Likewise.
320
321 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
322
323         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
324         `XCHAR_ID_TABLE'.
325
326         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
327         instead of `XCHAR_ID_TABLE'.
328         (remove_char_ccs): Likewise.
329
330         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
331         `XCHAR_ID_TABLE'.
332         (Fget_composite_char): Likewise.
333         (Fchar_variants): Likewise.
334         (put_char_table): Likewise.
335         (add_char_attribute_alist_mapper): Likewise.
336         (Fchar_attribute_alist): Likewise.
337         (Fget_char_attribute): Likewise.
338         (Fput_char_attribute): Likewise.
339         (Fmap_char_attribute): Likewise.
340         (Fmap_char_attribute): Likewise.
341
342         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
343         `XCHAR_ID_TABLE'.
344         (encode_char_1): Likewise.
345
346 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
347
348         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
349         `Lisp_Char_ID_Table'.
350         (mark_char_id_table): Deleted.
351         (print_char_id_table): Likewise.
352         (char_id_table_equal): Likewise.
353         (char_id_table_hash): Likewise.
354         (char_id_table_description): Likewise.
355         (char_id_table): Likewise.
356         (make_char_id_table): Use `Fmake_char_table' and
357         `fill_char_table'.
358         (get_char_id_table): Use `Lisp_Char_Table' instead of
359         `Lisp_Char_ID_Table'.
360         (put_char_id_table): Likewise.
361         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
362         `XCHAR_ID_TABLE'.
363         (Fremove_char_attribute): Likewise.
364         (syms_of_chartab): Don't define type `char-id-table'.
365
366         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
367         (char_id_table): Likewise.
368         (GC_CHAR_ID_TABLE_P): Likewise.
369         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
370         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
371         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
372         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
373         (get_char_id_table): Use `Lisp_Char_Table' instead of
374         `Lisp_Char_ID_Table'.
375         (put_char_id_table_0): Likewise.
376         (put_char_id_table): Likewise.
377
378 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
379
380         * chartab.h: Lisp_Byte_Table related codes are moved from
381         chartab.h.
382
383         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
384
385 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
386
387         * chartab.h: Don't include "chartab.h".
388         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
389         (Lisp_Char_ID_Table): Likewise.
390         (char_id_table): Likewise.
391         (XCHAR_ID_TABLE): Likewise.
392         (XSETCHAR_ID_TABLE): Likewise.
393         (CHAR_ID_TABLE_P): Likewise.
394         (GC_CHAR_ID_TABLE_P): Likewise.
395         (get_char_id_table): Likewise.
396
397         * char-ucs.h: Include "chartab.h".
398         (struct Lisp_Char_ID_Table): Moved to chartab.h.
399         (Lisp_Char_ID_Table): Likewise.
400         (char_id_table): Likewise.
401         (XCHAR_ID_TABLE): Likewise.
402         (XSETCHAR_ID_TABLE): Likewise.
403         (CHAR_ID_TABLE_P): Likewise.
404         (GC_CHAR_ID_TABLE_P): Likewise.
405         (get_char_id_table): Likewise.
406
407 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
408
409         * chartab.c (copy_uint8_byte_table): New function.
410         (copy_uint16_byte_table): New function.
411         (copy_byte_table): New function.
412         (map_over_uint8_byte_table): Modify to avoid huge numbers of
413         characters to call.
414         (map_over_uint16_byte_table): Likewise.
415         (map_over_byte_table): Likewise.
416         (get_byte_table): Move prototype to chartab.h.
417         (put_byte_table): Likewise.
418         (put_char_id_table_0): Moved to chartab.h.
419         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
420         (char_table_entry_equal): Likewise.
421         (char_table_entry_hash): Likewise.
422         (char_table_entry_description): Likewise.
423         (char_table_entry): Likewise.
424         (make_char_table_entry): Likewise.
425         (copy_char_table_entry): Likewise.
426         (get_non_ascii_char_table_value): Likewise.
427         (map_over_charset_ascii): Likewise.
428         (map_over_charset_control_1): Likewise.
429         (map_over_charset_row): Likewise.
430         (map_over_other_charset): Likewise.
431         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
432         (print_char_table): Likewise.
433         (char_table_equal): Likewise.
434         (char_table_hash): Likewise.
435         (char_table_description): Likewise.
436         (fill_char_table): Likewise.
437         (Fcopy_char_table): Likewise.
438         (get_char_table): Likewise.
439         (Fget_range_char_table): Likewise.
440         (put_char_table): Likewise.
441         (map_char_table): Likewise.
442         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
443         UTF-2000.
444
445 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
446
447         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
448         `Vauto_fill_chars' in XEmacs UTF-2000.
449
450         * chartab.h (get_byte_table): New prototype [moved from
451         chartab.c].
452         (put_byte_table): Likewise [moved from chartab.c].
453         (put_char_id_table_0): New inline function [moved from chartab.c].
454         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
455         (Lisp_Char_Table_Entry): Likewise.
456         (char_table_entry): Likewise.
457         (XCHAR_TABLE_ENTRY): Likewise.
458         (XSETCHAR_TABLE_ENTRY): Likewise.
459         (CHAR_TABLE_ENTRYP): Likewise.
460         (CHECK_CHAR_TABLE_ENTRY): Likewise.
461         (NUM_ASCII_CHARS): Likewise.
462         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
463         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
464
465 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
466
467         * chartab.c (get_char_id_table): Change interface.
468         (put_char_id_table_0): New function.
469         (put_char_id_table): Change interface; new implementation.
470         (Fget_composite_char): Modify for interface change of
471         `get_char_id_table'.
472         (Fchar_variants): Likewise.
473         (add_char_attribute_alist_mapper): Likewise.
474         (Fchar_attribute_alist): Likewise.
475         (Fget_char_attribute): Likewise.
476         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
477         as same as character as the first argument like `put-char-table';
478         modify for interface change of `put_char_id_table'.
479         (Fremove_char_attribute): Modify for interface change of
480         `put_char_id_table'.
481
482 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
483
484         * text-coding.c: Sync up with XEmacs 21.2.41.
485         (COMPOSE_ADD_CHAR): Modify for interface change of
486         `get_char_id_table'.
487
488         * mule-charset.c (put_char_ccs_code_point): Modify for interface
489         change of `put_char_id_table'.
490         (remove_char_ccs): Likewise.
491
492         * chartab.h (put_char_id_table): Change interface.
493
494         * char-ucs.h (get_char_id_table): Change interface.
495         (charset_code_point): Modify for interface change of
496         `get_char_id_table'.
497         (encode_char_1): Likewise.
498
499 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
500
501         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
502         argument `ccs'.
503         (map_over_uint16_byte_table): Likewise.
504         (map_over_byte_table): Likewise.
505         (map_char_id_table): Add new argument `range' like
506         `map_char_table'.
507         (Fmap_char_attribute): Add new argument `range' like
508         `Fmap_char_table'.
509
510 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
511
512         * chartab.c (map_over_uint8_byte_table): Change interface of
513         mapping function to use struct chartab_range instead of Emchar.
514         (map_over_uint16_byte_table): Likewise.
515         (map_over_byte_table): Likewise.
516         (map_char_id_table): Likewise.
517         (struct slow_map_char_id_table_arg): Deleted.
518         (slow_map_char_id_table_fun): Deleted.
519         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
520         function `slow_map_char_table_fun' instead of struct
521         `slow_map_char_id_table_arg' and function
522         `slow_map_char_id_table_fun'.
523
524 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
525
526         * mule-charset.c: Move char-it-table related codes to chartab.c.
527         (Vutf_2000_version): Moved to chartab.c.
528         (Fdefine_char): Likewise.
529         (Ffind_char): Likewise.
530         (syms_of_mule_charset): Move types `uint8-byte-table',
531         `uint16-byte-table', `byte-table' and `char-id-table' to
532         chartab.c; move functions `char_attribute_list,
533         `find_char_attribute_table, `char_attribute_alist,
534         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
535         `map_char_attribute, `define_char, `find_char, `char_variants and
536         `get_composite_char to chartab.c; move symbols `=>ucs',
537         `->decomposition', `compat', `isolated', `initial', `medial',
538         `final', `vertical', `noBreak', `fraction', `super', `sub',
539         `circle', `square', `wide', `narrow', `small' and `font' to
540         chartab.c.
541         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
542         setting codes for `Vcharacter_composition_table' and
543         `Vcharacter_variant_table' to chartab.c.
544         (complex_vars_of_mule_charset): Move setting code for
545         `Vchar_attribute_hash_table' to chartab.c.
546
547         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
548         (make_char_id_table): New prototype.
549         (put_char_id_table): Likewise.
550         (Fget_char_attribute): Likewise.
551
552         * chartab.c: Move char-id-table related code from mule-charset.c.
553         (Vutf_2000_version): Moved from mule-charset.c.
554
555         * char-ucs.h (Qucs): New external variable.
556         (put_char_ccs_code_point): New prototype.
557         (remove_char_ccs): Likewise.
558
559 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
560
561         * mule-charset.c (Vcharset_ucs_jis): New variable.
562         (Qucs_jis): Likewise.
563         (syms_of_mule_charset): Add new symbol `ucs-jis'.
564         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
565
566         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
567
568 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
569
570         * mule-charset.c (map_over_uint8_byte_table): New function.
571         (map_over_uint16_byte_table): Likewise.
572         (map_over_byte_table): Likewise.
573         (map_char_id_table): Likewise.
574         (slow_map_char_id_table_fun): Likewise.
575         (Fmap_char_attribute): Likewise.
576         (syms_of_mule_charset): Add new function `map-char-attribute'.
577
578 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
579
580         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
581         (syms_of_mule_charset): Add new function `find-char'.
582
583 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
584
585         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
586         XEmacs UTF-2000.
587         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
588         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
589         XEmacs UTF-2000.
590         (complex_vars_of_mule_charset): Add new coded-charset
591         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
592         `ideograph-gt-pj-*'.
593
594         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
595
596 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
597
598         * mule-charset.c (encode_builtin_char_1): Purge codes about
599         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
600         {MIN|MAX}_CHAR_HEBREW.
601         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
602         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
603
604         * char-ucs.h (MIN_CHAR_GREEK): Purged.
605         (MAX_CHAR_GREEK): Purged.
606         (MIN_CHAR_CYRILLIC): Purged.
607         (MAX_CHAR_CYRILLIC): Purged.
608         (MIN_CHAR_HEBREW): Commented out.
609         (MAX_CHAR_HEBREW): Likewise.
610
611 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
612
613         * mule-charset.c (Qto_ucs): New variable.
614         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
615         (Fdefine_char): Likewise.
616         (syms_of_mule_charset): Add new symbol `=>ucs'.
617
618 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
619
620         * mule-charset.c (Fdecode_char): Fixed.
621
622 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
623
624         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
625         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
626         "tcvn5712-1".
627
628 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
629
630         * mule-charset.c (Vcharset_ucs_big5): New variable.
631         (Qucs_big5): Likewise.
632         (syms_of_mule_charset): Add new symbol `ucs-big5'.
633         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
634
635         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
636
637 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
638
639         * mule-charset.c (decode_builtin_char): Check Big5 code range
640         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
641
642 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
643
644         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
645         (Qchinese_gb12345): Likewise.
646         (Fdecode_builtin_char): Fixed.
647         (syms_of_mule_charset): Add `chinese-gb12345'.
648         (complex_vars_of_mule_charset): Add coded-charset
649         `chinese-gb12345'.
650
651         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
652         (LEADING_BYTE_CHINESE_GB12345): New macro.
653
654 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
655
656         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
657         and `latin-viscii-upper' for `latin-viscii'.
658
659 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
660
661         * mule-charset.c (Fdecode_builtin_char): Comment out
662         regularization code for ISO-IR GR representation.
663
664 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
665
666         * mule-charset.c (decode_builtin_char): New function; renamed from
667         `make_builtin_char'; return -1 instead of signal.
668         (Fdecode_builtin_char): Use `decode_builtin_char'.
669
670         * char-ucs.h (decode_builtin_char): New prototype; renamed from
671         `make_builtin_char'.
672         (DECODE_CHAR): Use `decode_builtin_char' instead of
673         `make_builtin_char'; use mapping table of `chinese-big5' for
674         `chinese-big5-{1,2}'.
675
676 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
677
678         * text-coding.c (char_encode_big5): New function.
679         (char_finish_big5): Likewise.
680         (reset_encoding_stream): Use `char_encode_big5' and
681         `char_finish_big5' for CODESYS_BIG5.
682         (mule_encode): Don't use `encode_coding_big5'.
683         (encode_coding_big5): Deleted.
684
685 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
686
687         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
688         0x81- in XEmacs UTF-2000.
689         (detect_coding_big5): Likewise.
690
691 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
692
693         * mule-charset.c (Fdefine_char): Don't use a CCS property to
694         generate character-id if the CCS property does not have
695         corresponding predefined character.
696         (make_builtin_char): Return -1 if corresponding predefined
697         character is not found.
698         (Fdecode_char): Return nil if corresponding character is not
699         found.
700         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
701         don't map to builtin ucs space.
702
703 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
704
705         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
706         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
707
708 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
709
710         * mule-charset.c (Vcharset_ideograph_gt): New variable.
711         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
712         (Qideograph_gt): Likewise.
713         (Qideograph_gt_pj_{1..11}): Likewise.
714         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
715         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
716         `ideograph-gt-pj-11'.
717         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
718         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
719         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
720
721         * char-ucs.h (LEADING_BYTE_GT): New macro.
722         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
723         (MIN_CHAR_GT): Likewise.
724         (MAX_CHAR_GT): Likewise.
725
726 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
727
728         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
729         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
730
731         * doprnt.c (unsigned_int_converters): Add `c'.
732         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
733
734         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
735         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
736         `MIN_CHAR_MOJIKYO'.
737         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
738         (MAX_CHAR_MOJIKYO_0): New macro.
739         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
740
741 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
742
743         * mule-charset.c (Fdefine_char): Delete cemented out code.
744         (encode_builtin_char_1): Modify for new allocation of builtin
745         Mojikyo characters.
746
747         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
748
749 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
750
751         * mule-charset.c (Vcharset_ucs_cns): New variable.
752         (Qucs_cns): New variable.
753         (syms_of_mule_charset): Add new symbol `ucs-cns'.
754         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
755
756 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
757
758         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
759
760 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
761
762         * search.c (search_buffer): Make `charset_base_code' as
763         character-id >> 6 to eliminate the corresponding last byte in
764         UTF-8 representation [I'm not sure it is right thing].
765         (boyer_moore): Likewise.
766
767 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
768
769         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
770         representation in MULE.
771
772 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
773
774         * text-coding.c (Fmake_coding_system): Use
775         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
776         `EXTERNAL_PROPERTY_LIST_LOOP'.
777
778 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
779
780         * text-coding.c (decode_output_utf8_partial_char): New function.
781         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
782
783 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
784
785         * text-coding.c (decode_coding_utf8): Output original byte
786         sequence if it is broken; change order of conditions.
787
788         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
789         of conditions.
790
791         * mb-multibyte.h (BYTE_ASCII_P):
792         Use bit ops for char-signedness safety.
793         (BYTE_C0_P): Use bit ops for char-signedness safety.
794         (BYTE_C1_P): Use bit ops for char-signedness safety.
795
796         * character.h: (XCHAR_OR_CHAR_INT):
797         Always use inline function.
798         Remove redundant type checking assert() - XINT will abort quite
799         nicely.
800
801 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
802
803         * text-coding.c: (Fencode_shift_jis_char):
804         (Fencode_big5_char):
805         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
806         Replace 0 with '\0' when working with bytes.
807         Replace initial "(" with "\(" in docstrings.
808
809         (Fmake_coding_system):
810         When type is ccl and value is vector, register it with a proper
811         symbol.  And checks whether the given ccl program is valid.
812         (mule_decode): When calling ccl_driver, if src indicates
813         NULL pointer, set an empty string instead.
814         (mule_encode): Likewise.
815
816         (detect_eol_type):
817         (detect_coding_sjis):
818         (decode_coding_sjis):
819         (detect_coding_big5):
820         (decode_coding_big5):
821         (detect_coding_ucs4):
822         (decode_coding_ucs4):
823         (detect_coding_utf8):
824         (decode_coding_utf8):
825         (detect_coding_iso2022):
826         (decode_coding_iso2022):
827         (decode_coding_no_conversion):
828         (mule_decode):
829         Make all detecting and decoding functions take an Extbyte * arg.
830         (text_encode_generic):
831         (encode_coding_big5):
832         (encode_coding_no_conversion):
833         (mule_encode):
834         Make all encoding functions take a Bufbyte * arg.
835         Use size_t instead of unsigned int for memory sizes.
836         Only cast to unsigned char whenever dereferencing Extbyte *.
837
838         (struct lrecord_description fcd_description_1): Use countof.
839         (complex_vars_of_file_coding):
840         Use countof instead of sizeof.
841         Use CHECK_NATNUM instead of CHECK_INT.
842
843 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
844
845         * mule-charset.c (Fget_char_attribute): Add new optional argument
846         `default-value'.
847         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
848         (remove_char_ccs): Likewise.
849
850 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
851
852         * text-coding.c (char_encode_shift_jis): New implementation in
853         UTF-2000.
854         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
855         ...)'.
856
857         * mule-charset.c (Vcharset_chinese_big5): New variable in
858         UTF-2000.
859         (Qchinese_big5): New variable in UTF-2000.
860         (BIG5_SAME_ROW): New macro in UTF-2000.
861         (make_builtin_char): Use builtin characters of
862         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
863         characters of `Vcharset_chinese_big5'.
864         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
865         (complex_vars_of_mule_charset): Add new coded-charset
866         `chinese-big5' in UTF-2000.
867
868         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
869         (Vcharset_chinese_big5): New external variable declaration.
870         (Vcharset_japanese_jisx0208_1990): Likewise.
871
872 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
873
874         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
875         function.
876         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
877
878 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
879
880         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
881         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
882         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
883         `mojikyo-pj-*'.
884
885 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
886
887         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
888
889 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
890
891         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
892         to 0.17.
893
894 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
895
896         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
897         for `CHARSET_BY_ATTRIBUTES'.
898         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
899         `CHARSET_BY_ATTRIBUTES'.
900
901         * text-coding.c (struct decoding_stream): Rename member `CH' to
902         `CPOS'.
903         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
904         (decode_coding_sjis): Likewise.
905         (decode_coding_big5): Likewise.
906         (decode_coding_ucs4): Likewise.
907         (decode_coding_utf8): Likewise.
908         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
909         `CHARSET_BY_ATTRIBUTES'.
910         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
911         `str->counter'; decode 3, 4 bytes sets.
912         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
913         sets.
914         (decode_coding_no_conversion): Use `str->cpos' instead of
915         `str->ch'.
916
917         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
918         (Qmojikyo_2022_1): New variable.
919         (make_charset): Don't use `CHARSET_TYPE_*'.
920         (range_charset_code_point): Support coded-charset
921         `mojikyo-2022-1'.
922         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
923         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
924         `CHARSET_BY_ATTRIBUTES'.
925         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
926         `CHARSET_BY_ATTRIBUTES'.
927         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
928         (complex_vars_of_mule_charset): Add new coded-charset
929         `mojikyo-2022-1'.
930
931         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
932         interface; changed to inline function.
933
934         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
935         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
936         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
937         (CHARSET_TYPE_94): Deleted.
938         (CHARSET_TYPE_94X94): Deleted.
939         (CHARSET_TYPE_96): Deleted.
940         (CHARSET_TYPE_96X96): Deleted.
941         (CHARSET_TYPE_128): Deleted.
942         (CHARSET_TYPE_128X128): Deleted.
943         (CHARSET_TYPE_256): Deleted.
944         (CHARSET_TYPE_256X256): Deleted.
945         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
946         to inline function.
947         (DECODE_MOJIKYO_2022): New inline function.
948         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
949         `Vcharset_mojikyo_2022_1'.
950
951 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
952
953         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
954         instead of `EQ'.
955         (put_byte_table): Likewise.
956         (char_id_table_equal): Use `get_byte_table' [new implementation].
957
958 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
959
960         * mule-charset.c: Include <limits.h> in UTF-2000.
961         (BT_UINT8_MIN): New macro in UTF-2000.
962         (BT_UINT8_MAX): New macro in UTF-2000.
963         (BT_UINT8_t): New macro in UTF-2000.
964         (BT_UINT8_nil): New macro in UTF-2000.
965         (BT_UINT8_unbound): New macro in UTF-2000.
966         (INT_UINT8_P): New inline function in UTF-2000.
967         (UINT8_VALUE_P): New inline function in UTF-2000.
968         (UINT8_ENCODE): New inline function in UTF-2000.
969         (UINT8_DECODE): New inline function in UTF-2000.
970         (mark_uint8_byte_table): New function in UTF-2000.
971         (print_uint8_byte_table): New function in UTF-2000.
972         (uint8_byte_table_equal): New function in UTF-2000.
973         (uint8_byte_table_hash): New function in UTF-2000.
974         (make_uint8_byte_table): New function in UTF-2000.
975         (uint8_byte_table_same_value_p): New function in UTF-2000.
976         (BT_UINT16_MIN): New macro in UTF-2000.
977         (BT_UINT16_MAX): New macro in UTF-2000.
978         (BT_UINT16_t): New macro in UTF-2000.
979         (BT_UINT16_nil): New macro in UTF-2000.
980         (BT_UINT16_unbound): New macro in UTF-2000.
981         (INT_UINT16_P): New inline function in UTF-2000.
982         (UINT16_VALUE_P): New inline function in UTF-2000.
983         (UINT16_ENCODE): New inline function in UTF-2000.
984         (UINT16_DECODE): New inline function in UTF-2000.
985         (UINT8_TO_UINT16): New inline function in UTF-2000.
986         (mark_uint16_byte_table): New function in UTF-2000.
987         (print_uint16_byte_table): New function in UTF-2000.
988         (uint16_byte_table_equal): New function in UTF-2000.
989         (uint16_byte_table_hash): New function in UTF-2000.
990         (make_uint16_byte_table): New function in UTF-2000.
991         (uint16_byte_table_same_value_p): New function in UTF-2000.
992         (print_byte_table): New function in UTF-2000.
993         (byte-table): Use `print_byte_table' as printer.
994         (make_byte_table): Delete second argument `older'.
995         (byte_table_same_value_p): New function in UTF-2000.
996         (copy_byte_table): Deleted.
997         (get_byte_table): New function in UTF-2000.
998         (put_byte_table): New function in UTF-2000.
999         (print_char_id_table): New function in UTF-2000.
1000         (char-id-table): Use `print_char_id_table' as printer.
1001         (make_char_id_table): Delete second argument `older'.
1002         (get_char_id_table): Use `get_byte_table [new implementation].
1003         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
1004         implementation].
1005         (Ffind_char_attribute_table): New function in UTF-2000.
1006         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
1007         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
1008         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
1009         (syms_of_mule_charset): Add new function
1010         `find-char-attribute-table' in UTF-2000.
1011
1012         * lrecord.h (enum lrecord_type): Add
1013         `lrecord_type_uint16_byte_table' and
1014         `lrecord_type_uint8_byte_table'.
1015
1016         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
1017         (Lisp_Uint8_Byte_Table): New type.
1018         (XUINT8_BYTE_TABLE): New macro.
1019         (XSETUINT8_BYTE_TABLE): New macro.
1020         (UINT8_BYTE_TABLE_P): New macro.
1021         (GC_UINT8_BYTE_TABLE_P): New macro.
1022         (struct Lisp_Uint16_Byte_Table): New structure.
1023         (Lisp_Uint16_Byte_Table): New type.
1024         (XUINT16_BYTE_TABLE): New macro.
1025         (XSETUINT16_BYTE_TABLE): New macro.
1026         (UINT16_BYTE_TABLE_P): New macro.
1027         (GC_UINT16_BYTE_TABLE_P): New macro.
1028
1029 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1030
1031         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
1032         (Vcharacter_ideographic_strokes_table): Deleted.
1033         (Vcharacter_total_strokes_table): Deleted.
1034         (Vcharacter_morohashi_daikanwa_table): Deleted.
1035         (Vcharacter_decomposition_table): Deleted.
1036         (Qname): Deleted because it is duplicated.
1037         (Qideographic_radical): Deleted.
1038         (Qideographic_strokes): Deleted.
1039         (Qtotal_strokes): Deleted.
1040         (Qmorohashi_daikanwa): Deleted.
1041         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
1042         `ideographic-radical', `ideographic-strokes', `total-strokes',
1043         `morohashi-daikanwa' and `->decomposition'.
1044         (Fget_char_attribute): Likewise.
1045         (Fput_char_attribute): Likewise; use `make-vector' instead of
1046         `make_older_vector' for `->decomposition' value.
1047         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
1048         `ideograph-daikanwa'.
1049         (syms_of_mule_charset): Delete builtin symbols `name',
1050         `ideographic-radical', `ideographic-strokes', `total-strokes' and
1051         `morohashi-daikanwa'.
1052         (vars_of_mule_charset): Don't setup
1053         `Vcharacter_ideographic_radical_table',
1054         `Vcharacter_ideographic_strokes_table',
1055         `Vcharacter_total_strokes_table',
1056         `Vcharacter_morohashi_daikanwa_table' and
1057         `Vcharacter_decomposition_table'.
1058
1059 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1060
1061         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
1062         `make_older_vector', `make_vector_newer_1' and
1063         `make_vector_newer'.
1064
1065         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
1066         `make_older_vector' and `make_vector_newer'.
1067
1068         * config.h.in (HAVE_GGC): New macro.
1069
1070 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1071
1072         * mule-charset.c (struct char_attribute_list_closure): New
1073         structure in UTF-2000.
1074         (add_char_attribute_to_list_mapper): New function in UTF-2000.
1075         (Fchar_attribute_list): Likewise.
1076         (Fset_charset_mapping_table): Use `make_vector_newer'.
1077         (Fdecode_builtin_char): New function in UTF-2000.
1078         (syms_of_mule_charset): Add new function `char-attribute-list' and
1079         `decode-builtin-char' in UTF-2000.
1080
1081         * lisp.h (make_vector_newer): New prototype.
1082
1083         * alloc.c (make_vector_newer_1): New function.
1084         (make_vector_newer): New function.
1085
1086 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1087
1088         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
1089         50100)'.
1090
1091 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1092
1093         * mule-charset.c (Vchar_attribute_hash_table): New variable.
1094         (Vcharacter_attribute_table): Deleted.
1095         (Vcharacter_name_table): Deleted.
1096         (put_char_attribute): Deleted.
1097         (remove_char_attribute): Deleted.
1098         (struct char_attribute_alist_closure): New structure.
1099         (add_char_attribute_alist_mapper): New function.
1100         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
1101         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
1102         (Fget_char_attribute): Likewise.
1103         (Fput_char_attribute): Likewise.
1104         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
1105         of `remove_char_attribute'.
1106         (Fdefine_char): Return character.
1107         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
1108         and `Vcharacter_name_table'.
1109         (complex_vars_of_mule_charset): Likewise
1110         `Vchar_attribute_hash_table'.
1111
1112 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1113
1114         * character.h (CHARC_CHARSET): New macro.
1115         (CHARC_CHARSET_ID): New macro.
1116         (CHARC_CODE_POINT): New macro.
1117         (CHARC_COLUMNS): New macro.
1118         (CHARC_TO_CHAR): New inline function.
1119         (CHARC_EQ): New inline function.
1120         (CHARC_ASCII_EQ): New inline function.
1121         (CHARC_IS_SPACE): New inline function.
1122         (ASCII_TO_CHARC): New inline function.
1123
1124         * char-ucs.h (encode_char_2): Deleted.
1125         (ENCODE_CHAR): Use `encode_char_1' again.
1126         (breakup_char_1): Likewise.
1127         (CHAR_TO_CHARC): New inline function.
1128
1129         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
1130
1131 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1132
1133         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
1134         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
1135         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
1136         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
1137         (create_string_text_block): Use `CHARC_ASCII_EQ' and
1138         `CHARC_IS_SPACE'.
1139         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
1140
1141         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
1142         `CHARC_CODE_POINT'.
1143         (x_output_display_block): Use `CHARC_CHARSET' and
1144         `CHARC_ASCII_EQ'.
1145
1146         * redisplay-tty.c (tty_output_display_block): Use
1147         `CHARC_ASCII_EQ'.
1148         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
1149
1150         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
1151
1152         * insdel.c (find_charsets_in_charc_string): Use
1153         `CHARC_CHARSET_ID'.
1154         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
1155         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
1156         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
1157         (convert_charc_string_into_malloced_string): Likewise.
1158
1159 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1160
1161         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
1162         instead of <Emchar_dynarr *> for buf; use
1163         `convert_bufbyte_string_into_charc_dynarr' instead of
1164         `convert_bufbyte_string_into_emchar_dynarr'; use
1165         `find_charsets_in_charc_string' instead of
1166         `find_charsets_in_emchar_string'.
1167
1168         * redisplay.h:
1169         - Include "character.h".
1170         (struct rune): New member `cglyph'; delete member `chr'.
1171
1172         * redisplay.c (redisplay_text_width_charc_string): New function;
1173         delete `redisplay_text_width_emchar_string'.
1174         (rtw_charc_dynarr): New variable; renamed from
1175         `rtw_emchar_dynarr'.
1176         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
1177         `rtw_emchar_dynarr'; use
1178         `convert_bufbyte_string_into_charc_dynarr' instead of
1179         `convert_bufbyte_string_into_emchar_dynarr'; use
1180         `redisplay_text_width_charc_string' instead of
1181         `redisplay_text_width_emchar_string'.
1182         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
1183         instead of `rtw_emchar_dynarr'; use
1184         `convert_bufbyte_string_into_charc_dynarr' instead of
1185         `convert_bufbyte_string_into_emchar_dynarr'.
1186         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
1187         `redisplay_text_width_charc_string' instead of
1188         `redisplay_text_width_emchar_string'.
1189         (create_text_block): Modify for <struct rune> change.
1190         (generate_formatted_string_db): Likewise.
1191         (create_string_text_block): Likewise.
1192         (pixel_to_glyph_translation): Likewise.
1193
1194         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
1195         instead of <const Emchar *>.
1196         (x_text_width): Likewise.
1197         (x_output_display_block): Use <Charc_dynarr *> instead
1198         <Emchar_dynarr *>; modify for <structure rune> change.
1199         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
1200         *>.
1201
1202         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
1203         <const Emchar *>; use `charc_string_displayed_columns' instead of
1204         `emchar_string_displayed_columns'.
1205         (tty_output_display_block): Use <Charc_dynarr *> instead of
1206         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
1207         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
1208         (tty_output_charc_dynarr_dynarr): New variable; renamed from
1209         `tty_output_emchar_dynarr_dynarr'.
1210         (tty_output_charc_dynarr): New function; delete
1211         `tty_output_charc_dynarr'.
1212
1213         * redisplay-output.c (compare_runes): Modify for `struct rune'.
1214         (redisplay_output_layout): Use <Charc_dynarr *> instead of
1215         <Emchar_dynarr *> for buf; use
1216         `convert_bufbyte_string_into_charc_dynarr' instead of
1217         `convert_bufbyte_string_into_emchar_dynarr'.
1218
1219         * frame.c (title_string_charc_dynarr): New variable; renamed from
1220         `title_string_emchar_dynarr'.
1221         (generate_title_string): Use `title_string_charc_dynarr' instead
1222         of `title_string_emchar_dynarr'; use
1223         `convert_charc_string_into_malloced_string' instead of
1224         `convert_emchar_string_into_malloced_string'.
1225         (init_frame): Use `title_string_charc_dynarr' instead of
1226         `title_string_emchar_dynarr'.
1227
1228         * console.h:
1229         - Include "character.h".
1230         (struct console_methods): Use <const Charc *> instead of <const
1231         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
1232         <Emchar_dynarr *> in output_string_method.
1233
1234         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
1235         <Emchar_dynarr *>.
1236
1237         * console-stream.c (stream_text_width): Use <const Charc *>
1238         instead of <const Emchar *>.
1239
1240         * character.h (Charc_dynarr): New type.
1241
1242         * char-ucs.h (structure Charc): New structure; define new type
1243         `Charc'.
1244
1245         * char-lb.h (DECODE_CHAR): New inline function.
1246         (encode_char_1): New inline function.
1247         (ENCODE_CHAR): New macro.
1248         (structure Charc): New structure; define new type `Charc'.
1249
1250         * char-1byte.h (Vcharset_control_1): New macro.
1251         (Vcharset_latin_iso8859_1): New macro.
1252         (DECODE_CHAR): New inline function.
1253         (encode_char_1): New inline function.
1254         (ENCODE_CHAR): New macro.
1255         (structure Charc): New structure; define new type `Charc'.
1256
1257         * insdel.c (find_charsets_in_charc_string): New function; delete
1258         `find_charsets_in_emchar_string'.
1259         (charc_string_displayed_columns): New function; delete
1260         `emchar_string_displayed_columns'.
1261         (convert_bufbyte_string_into_charc_dynarr): New function; delete
1262         `convert_bufbyte_string_into_emchar_dynarr'.
1263         (convert_charc_string_into_bufbyte_dynarr): New function; delete
1264         `convert_charc_string_into_bufbyte_dynarr'.
1265         (convert_charc_string_into_malloced_string): New function; delete
1266         `convert_charc_string_into_malloced_string'.
1267
1268         * buffer.h (find_charsets_in_charc_string): New prototype; delete
1269         `find_charsets_in_emchar_string'.
1270         (charc_string_displayed_columns): New prototype; delete
1271         `emchar_string_displayed_columns'.
1272         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
1273         `convert_charc_string_into_bufbyte_dynarr'.
1274         (convert_charc_string_into_malloced_string): New prototype; delete
1275         `convert_charc_string_into_malloced_string'.
1276
1277 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1278
1279         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
1280
1281 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1282
1283         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
1284
1285         * char-ucs.h: Use <short> for <Charset_ID>.
1286
1287         * mule-charset.h, char-1byte.h: Use <unsigned char> for
1288         <Charset_ID>.
1289
1290 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1291
1292         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1293         to 0.16.
1294
1295 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1296
1297         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
1298         variable.
1299         (Qmorohashi_daikanwa): New variable.
1300         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
1301         for `morohashi-daikanwa' attribute.
1302         (Fget_char_attribute): Likewise.
1303         (Fput_char_attribute): Likewise.
1304         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
1305         has the same value of `ideograph-daikanwa'.
1306         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
1307         (vars_of_mule_charset): Setup
1308         `Vcharacter_morohashi_daikanwa_table'.
1309
1310 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1311
1312         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
1313         attributes.
1314         (add_charset_to_list_mapper): Add `key' instead of
1315         `XCHARSET_NAME (value)' to return aliases.
1316
1317 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1318
1319         * mule-charset.c (Vcharacter_ideographic_radical_table): New
1320         variable.
1321         (Vcharacter_ideographic_strokes_table): New variable.
1322         (Qideographic_radical): New variable.
1323         (Qideographic_strokes): New variable.
1324         (Fchar_attribute_alist): Use
1325         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
1326         attribute; use `Vcharacter_ideographic_strokes_table' for
1327         `ideographic-strokes' attribute.
1328         (Fget_char_attribute): Likewise.
1329         (Fput_char_attribute): Likewise.
1330         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
1331         `ideographic-strokes'.
1332         (vars_of_mule_charset): Setup
1333         `Vcharacter_ideographic_radical_table' and
1334         `Vcharacter_ideographic_strokes_table'.
1335
1336 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1337
1338         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
1339         (Qtotal_strokes): New variable.
1340         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
1341         `total-strokes' attribute.
1342         (Fget_char_attribute): Likewise.
1343         (Fput_char_attribute): Likewise.
1344         (syms_of_mule_charset): Add new symbol `total-strokes'.
1345         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
1346
1347 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1348
1349         * mule-charset.c (Vcharacter_decomposition_table): New variable.
1350         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
1351         are found.
1352         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
1353         `->decomposition' attribute.
1354         (Fput_char_attribute): Likewise.
1355         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
1356
1357 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1358
1359         * mule-charset.c (decoding_table_check_elements): New function.
1360         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
1361
1362 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1363
1364         * mule-charset.c (Fset_charset_mapping_table): Use
1365         `put_char_ccs_code_point'.
1366
1367 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1368
1369         * mule-charset.c (decoding_table_put_char): New inline function.
1370         (put_char_ccs_code_point): Use `decoding_table_put_char'.
1371
1372 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1373
1374         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
1375         (XCHARSET_BYTE_SIZE): New macro.
1376         (decoding_table_remove_char): New inline function.
1377         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
1378         `decoding_table_remove_char'.
1379         (remove_char_ccs): Use `decoding_table_remove_char'.
1380         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
1381
1382 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1383
1384         * mule-charset.c (Vcharacter_name_table): New variable.
1385         (Qname): New variable.
1386         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
1387         attribute.
1388         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
1389         `Vcharacter_name_table' for `name' attribute.
1390         (Fremove_char_attribute): Use function `remove_char_ccs'.
1391         (put_char_ccs_code_point): New function.
1392         (remove_char_ccs): New function.
1393         (syms_of_mule_charset): Add new symbol `name'.
1394         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
1395
1396 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1397
1398         * mule-charset.c (make_byte_table): Add new argument `older'.
1399         (make_char_id_table): Likewise.
1400         (copy_char_id_table): Comment out because it is not used.
1401         (put_char_id_table): Modify for `make_byte_table'.
1402         (Fput_char_attribute): Make encoding_table as older object;
1403         inherit older bit of `Vcharacter_composition_table'.
1404         (mark_charset): Don't mark `cs->encoding_table'.
1405         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
1406         normal object; make `Vcharacter_composition_table' as an older
1407         object; delete staticpro for `Vcharacter_composition_table'; make
1408         `Vcharacter_variant_table' as a normal object.
1409
1410         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
1411         (mark_object): Don't check older object in UTF-2000.
1412
1413         * lrecord.h (struct lrecord_header): Add new member `older' in
1414         UTF-2000.
1415         (set_lheader_implementation): Setup `SLI_header->older' in
1416         UTF-2000.
1417         (set_lheader_older_implementation): New macro in UTF-2000.
1418         (OLDER_RECORD_P): New macro in UTF-2000.
1419         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
1420         (alloc_older_lcrecord): New prototype in UTF-2000.
1421         (alloc_older_lcrecord_type): New macro in UTF-2000.
1422
1423 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1424
1425         * mule-charset.c (byte_table_description): Use
1426         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
1427         (char_id_table_description): Delete bogus `, 1'.
1428         (Fget_char_attribute): Refer encoding_table of each coded-charset
1429         to get value of coded-charset attribute of a character.
1430         (Fput_char_attribute): Use `make_older_vector' instead of
1431         `make_vector'; use encoding_table of each coded-charset to store
1432         value of coded-charset attribute of a character.
1433         (Fremove_char_attribute): Use encoding_table of each coded-charset
1434         to store value of coded-charset attribute of a character.
1435         (mark_charset): Mark `cs->encoding_table'; don't mark
1436         `cs->decoding_table'.
1437         (charset_description): Add description of new member
1438         `encoding_table'.
1439         (make_charset): Initialize `encoding_table'.
1440
1441         * char-ucs.h (struct Lisp_Charset): Add new member
1442         `encoding_table'.
1443         (CHARSET_ENCODING_TABLE): New macro.
1444         (XCHARSET_ENCODING_TABLE): New macro.
1445         (charset_code_point): New implementation.
1446         (encode_char_1): Likewise.
1447
1448         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
1449         (disksave_object_finalization_1): Call finalizers of
1450         `all_older_lcrecords' in UTF-2000.
1451         (make_older_vector): New function in UTF-2000.
1452         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
1453         UTF-2000.
1454
1455         * lisp.h (make_older_vector): New prototype in UTF-2000.
1456
1457 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1458
1459         * lrecord.h (enum lrecord_type): Rename
1460         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
1461
1462         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
1463         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
1464         `get_char_code_table'.
1465
1466         * mule-charset.c (mark_char_id_table): Renamed from
1467         `mark_char_code_table'.
1468         (char_id_table_equal): Renamed from `char_code_table_equal'.
1469         (char_id_table_hash): Renamed from `char_code_table_hash'.
1470         (make_char_id_table): Renamed from `make_char_code_table'.
1471         (copy_char_id_table): Renamed from `copy_char_code_table'.
1472         (get_char_id_table): Renamed from `get_char_code_table'.
1473         (put_char_id_table): Renamed from `put_char_code_table'.
1474         (to_char_id): Renamed from `to_char_code'.
1475
1476         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
1477         `Lisp_Char_Code_Table'.
1478         (char_id_table): Renamed from `char_code_table'.
1479         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
1480         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
1481         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
1482         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
1483         (get_char_id_table): Renamed from `get_char_code_table'.
1484
1485 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1486
1487         * lrecord.h (enum lrecord_type): Rename
1488         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
1489
1490         * mule-charset.c (mark_byte_table): Renamed from
1491         `mark_char_byte_table'.
1492         (byte_table_equal): Renamed from `char_byte_table_equal'.
1493         (byte_table_hash): Renamed from `byte_table_hash'.
1494         (make_byte_table): Renamed from `make_byte_table'.
1495         (copy_byte_table): Renamed from `copy_char_byte_table'.
1496
1497         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
1498         `Lisp_Char_Byte_Table'.
1499         (byte_table): Renamed from `char_byte_table'.
1500         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
1501         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
1502         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
1503         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
1504
1505 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1506
1507         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
1508         (dfc_convert_to_internal_format): Likewise.
1509         
1510         * text-coding.c (Fcoding_system_canonical_name_p): New function.
1511         * text-coding.c (Fcoding_system_alias_p): New function.
1512         * text-coding.c (Fcoding_system_aliasee): New function.
1513         * text-coding.c (append_suffix_to_symbol): New function.
1514         * text-coding.c (dangling_coding_system_alias_p): New function.
1515         * text-coding.c (Ffind_coding_system):
1516         * text-coding.c (Fcopy_coding_system):
1517         * text-coding.c (encode_coding_no_conversion):
1518         * text-coding.c (syms_of_file_coding):
1519         * text-coding.c (vars_of_file_coding):
1520         Rewrite coding system alias code.
1521         Allow nested aliases, like symbolic links.
1522         Allow redefinition of coding system aliases.
1523         Prevent existence of dangling coding system aliases.
1524         Eliminate convert_to_external_format.
1525         Eliminate convert_to_internal_format.
1526         
1527         * text-coding.c: Change enum eol_type to eol_type_t.
1528
1529 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1530
1531         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
1532         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
1533
1534         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
1535         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
1536
1537 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1538
1539         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
1540         `ideograph-daikanwa'.
1541
1542         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
1543         (Vcharset_ucs_bmp): Likewise.
1544         (Vcharset_mojikyo): Add new extern variable definition.
1545         (Vcharset_latin_iso8859_2): Deleted because it is not used.
1546         (Vcharset_latin_iso8859_3): Likewise.
1547         (Vcharset_latin_iso8859_4): Likewise.
1548         (Vcharset_latin_iso8859_9): Likewise.
1549         (Vcharset_latin_viscii_lower): Likewise.
1550         (Vcharset_latin_viscii_upper): Likewise.
1551         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
1552         `mojikyo' code-point is used to decode.
1553         (encode_char_2): New function [to convert `mojikyo' code-point to
1554         Mojikyo font encoding].
1555         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
1556         (breakup_char_1): Likewise.
1557         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
1558
1559 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1560
1561         * text-coding.c (Fmake_coding_system): Add document about
1562         `disable-composition' property.
1563
1564 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1565
1566         * text-coding.c (Qdisable_composition): New variable; delete
1567         `Qcomposite'.
1568         (Fmake_coding_system): Add new property `disable-composite';
1569         delete property `composite'.
1570         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
1571         instead of `!CODING_SYSTEM_COMPOSITE'.
1572         (syms_of_file_coding): Add new symbol `disable-composition';
1573         delete symbol `composite'.
1574
1575         * file-coding.h (struct Lisp_Coding_System): Add
1576         `disable_composition'; delete `enable_composition'.
1577         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
1578         `CODING_SYSTEM_COMPOSITE'.
1579         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
1580         `XCODING_SYSTEM_COMPOSITE'.
1581
1582 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1583
1584         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1585         to 0.15.
1586
1587 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1588
1589         * text-coding.c (Qcomposite): New variable.
1590         (Fmake_coding_system): Add new property `composite'.
1591         (struct decoding_stream): Add `combined_char_count',
1592         `combined_chars' and `combining_table' in UTF-2000.
1593         (COMPOSE_FLUSH_CHARS): New macro.
1594         (COMPOSE_ADD_CHAR): New macro.
1595         (reset_decoding_stream): Reset `str->combined_char_count' and
1596         `str->combining_table' in UTF-2000.
1597         (decode_coding_iso2022): Modify for character-decomposition.
1598         (syms_of_file_coding): Add new symbol `composite'.
1599
1600 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1601
1602         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
1603         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
1604         of `Vcharacter_composition_table' if `->decomposition' property
1605         has only 1 element.
1606         (Qlatin_tcvn5712): New variable.
1607         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
1608         (complex_vars_of_mule_charset): Add new coded-charset
1609         `latin-tcvn5712'.
1610
1611         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
1612
1613 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1614
1615         * file-coding.h (struct Lisp_Coding_System): Add
1616         `enable_composition'.
1617         (CODING_SYSTEM_COMPOSITE): New macro.
1618         (XCODING_SYSTEM_COMPOSITE): New macro.
1619
1620 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
1621
1622         * mule-canna.c (c2mu): Fix problem with UTF-2000.
1623
1624 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
1625
1626         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
1627         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
1628
1629 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
1630
1631         * mule-charset.c (Vcharset_mojikyo): New variable.
1632         (Fdefine_char): Don't use coded-charset which does not have
1633         non-builtin character range to allocate character-id.
1634         (Qmojikyo): New variable.
1635         (syms_of_mule_charset): Add new symbol `mojikyo'.
1636         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
1637
1638         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
1639         (LEADING_BYTE_MOJIKYO): New macro.
1640         (MIN_CHAR_MOJIKYO): New macro.
1641         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
1642         (MAX_CHAR_MOJIKYO): New macro.
1643
1644 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
1645
1646         * mule-charset.c (remove_char_attribute): Fixed.
1647
1648 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
1649
1650         * mule-charset.c (remove_char_attribute): New function.
1651         (Fremove_char_attribute): New function.
1652         (encode_builtin_char_1): Comment out builtin-support for
1653         greek-iso8859-7 and cyrillic-iso8859-5.
1654         (Fdecode_char): Check `code' is an integer.
1655         (syms_of_mule_charset): Add `remove-char-attribute'.
1656         (MIN_CHAR_GREEK): Deleted.
1657         (MAX_CHAR_GREEK): Likewise.
1658         (MIN_CHAR_CYRILLIC): Likewise.
1659         (MAX_CHAR_CYRILLIC): Likewise.
1660         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
1661         MAX_CHAR_GREEK for `greek-iso8859-7'.
1662
1663         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
1664         (MAX_CHAR_GREEK): Likewise.
1665         (MIN_CHAR_CYRILLIC): Likewise.
1666         (MAX_CHAR_CYRILLIC): Likewise.
1667
1668 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
1669
1670         * mule-charset.c (Fdefine_char): Fix problem when new code-point
1671         format is used without `ucs' property.
1672         (Fdecode_char): Fix problem with GR representation.
1673         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
1674         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
1675
1676 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
1677
1678         * mule-charset.c (make_builtin_char): New function.
1679         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
1680         (Fset_charset_mapping_table): Modify for new representation of
1681         code-point.
1682         (Fdecode_char): New function.
1683         (syms_of_mule_charset): Add new builtin function `decode-char' in
1684         UTF-2000.
1685
1686         * char-ucs.h (make_builtin_char): New prototype.
1687         (DECODE_CHAR): New inline function.
1688         (MAKE_CHAR): Use `DECODE_CHAR'.
1689
1690 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
1691
1692         * text-coding.c (parse_charset_conversion_specs): Use
1693         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
1694         `XCHARSET_TYPE'.
1695         (iso2022_designate): Likewise.
1696
1697         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
1698         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
1699
1700         * mule-charset.c (Vcharset_ucs): New variable.
1701         (print_charset): Change design; use `CHARSET_CHARS' and
1702         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
1703         (make_charset): Change signature to specify `chars' and
1704         `dimension' instead of `type'.
1705         (range_charset_code_point): Modify for 256^n-set.
1706         (encode_builtin_char_1): Encode as `ucs' in default.
1707         (Fmake_charset): Modify for `make_charset'.
1708         (Fmake_reverse_direction_charset): Likewise.
1709         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
1710         UTF-2000.
1711         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
1712         for `make_charset'.
1713
1714         * char-ucs.h (Vcharset_ucs): New variable.
1715         (LEADING_BYTE_UCS): New macro.
1716         (struct Lisp_Charset): Delete `type'; change type of `dimension'
1717         and `chars' to `unsigned short' from `unsigned int'.
1718         (CHARSET_TYPE): Deleted.
1719         (XCHARSET_TYPE): Deleted.
1720
1721 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
1722
1723         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
1724
1725         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
1726         (ENCODE_CHAR): New macro.
1727
1728 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
1729
1730         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1731         to 0.14 (Kawachi-Katakami).
1732
1733 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
1734
1735         * text-coding.c (char_encode_shift_jis): Modify for
1736         `charset_code_point'.
1737         (char_encode_iso2022): Likewise.
1738
1739         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
1740         (integer) instead of list of <Lisp_Object>s (integers) as the
1741         format of code-point of a coded-charset.
1742         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
1743         (encode_builtin_char_1): New function; delete
1744         `split_builtin_char'.
1745         (charset_code_point): Return <int> instead of <Lisp_Object>.
1746         (Fsplit_char): Don't use `SPLIT_CHAR'.
1747
1748         * char-ucs.h (encode_builtin_char_1): New prototype; delete
1749         prototype for `split_builtin_char'.
1750         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
1751         (charset_code_point): Likewise.
1752         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
1753         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
1754
1755 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
1756
1757         * mule-charset.c (complex_vars_of_mule_charset): Don't define
1758         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
1759
1760 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
1761
1762         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
1763
1764         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
1765         (MAX_CHAR_OBS_94x94): Deleted.
1766
1767 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
1768
1769         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
1770
1771         * char-ucs.h (MAX_CHAR_BMP): New macro.
1772
1773 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
1774
1775         * text-coding.c: Sync with r21-2-24.
1776
1777 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
1778
1779         * file-coding.c: Modify for UTF-2000.
1780
1781 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
1782
1783         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1784         to 0.13 (Takaida).
1785
1786 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
1787
1788         * mule-charset.c (split_builtin_char): Delete builtin support for
1789         `katakana-jisx0201'.
1790         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
1791         BMP area in builtin representation.
1792
1793         * char-ucs.h (MAKE_CHAR): Delete builtin support for
1794         `Vcharset_katakana_jisx0201'.
1795
1796 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
1797
1798         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
1799         (Qisolated): New variable.
1800         (Qinitial): New variable.
1801         (Qmedial): New variable.
1802         (Qfinal): New variable.
1803         (Qvertical): New variable.
1804         (Qsmall): New variable.
1805         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
1806         `Qvertical' and `Qsmall'.
1807         (Qmojikyo_pj_[1 .. 21]): New variable.
1808         (syms_of_mule_charset): Add new symbols `isolated', `initial',
1809         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
1810         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
1811         .. 21]'.
1812
1813 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
1814
1815         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
1816         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
1817         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
1818
1819 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
1820
1821         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
1822         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
1823         BMP.
1824         (Qjapanese_jisx0208_1990): New variable.
1825         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
1826         (complex_vars_of_mule_charset): Add new coded-charset
1827         `japanese-jisx0208-1990'.
1828
1829         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
1830         (MIN_CHAR_JIS_X0208_1990): New macro.
1831         (MAX_CHAR_JIS_X0208_1990): New macro.
1832
1833 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1834
1835         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
1836         coded-charset is not found.
1837
1838 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1839
1840         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
1841         (Fdefine_char): Use `Fmake_char'.
1842
1843 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1844
1845         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
1846         (Vcharset_hiragana_jisx0208): Deleted.
1847         (Vcharset_katakana_jisx0208): Deleted.
1848         (Qideograph_daikanwa): New variable.
1849         (Qhiragana_jisx0208): Deleted.
1850         (Qkatakana_jisx0208): Deleted.
1851         (split_builtin_char): Split `ideograph-daikanwa'.
1852         (Fsplit_char): New implementation for UTF-2000.
1853         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
1854         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
1855         (complex_vars_of_mule_charset): Add new coded-charset
1856         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
1857         `katakana-jisx0208'.
1858
1859         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
1860         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
1861         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
1862         (MIN_CHAR_DAIKANWA): New macro.
1863         (MAX_CHAR_DAIKANWA): New macro.
1864
1865 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1866
1867         * data.c (Fstring_to_number): Don't recognize floating point if
1868         base is not 10.
1869
1870 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1871
1872         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
1873
1874 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1875
1876         * mule-charset.c (Qsquare): New variable.
1877         (to_char_code): Add `Qsquare'.
1878         (syms_of_mule_charset): Add new symbol `square'.
1879
1880 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1881
1882         * mule-charset.c (Qcircle): New variable.
1883         (to_char_code): Add `Qcircle'.
1884         (syms_of_mule_charset): Add new symbol `circle'.
1885
1886 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1887
1888         * mule-charset.c (Qfont): New variable.
1889         (to_char_code): Add `Qfont'.
1890         (syms_of_mule_charset): Add new symbol `font'.
1891
1892 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1893
1894         * mule-charset.c (Qsub): New variable.
1895         (to_char_code): Add `Qsub'.
1896         (syms_of_mule_charset): Add new symbol `sub'.
1897
1898 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1899
1900         * mule-charset.c (Fput_char_attribute): Convert each element of
1901         VALUE to GL position if ATTRIBUTE is a GR-set,
1902
1903 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1904
1905         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
1906         coded-charset is a GR-set.
1907
1908 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1909
1910         * mule-charset.c (Fput_char_attribute): Check each element of
1911         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
1912
1913 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1914
1915         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
1916         UTF-2000.
1917         (Qethiopic_ucs): New variable in UTF-2000.
1918         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
1919         (complex_vars_of_mule_charset): Add new coded-charset
1920         `ethiopic-ucs' in UTF-2000.
1921
1922         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
1923         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
1924         9)'.
1925         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
1926         10)'.
1927         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
1928
1929 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
1930
1931         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
1932         `ascii'.
1933
1934 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1935
1936         * mule-charset.c (Vcharacter_variant_table): New variable.
1937         (Q_ucs): New variable.
1938         (Fchar_variants): New function.
1939         (Fput_char_attribute): Register `->ucs' value to
1940         `Vcharacter_variant_table'.
1941         (syms_of_mule_charset): Add new function `char-variants' and new
1942         symbol `->ucs'.
1943         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
1944
1945 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1946
1947         * mule-charset.c (get_char_code_table): Allow negative character
1948         code.
1949         (put_char_code_table): Likewise.
1950         (Vcharacter_composition_table): New variable.
1951         (Q_decomposition): New variable.
1952         (Qwide): New variable.
1953         (Qnarrow): New variable.
1954         (Qcompat): New variable.
1955         (QnoBreak): New variable.
1956         (Qsuper): New variable.
1957         (Qfraction): New variable.
1958         (to_char_code): New function.
1959         (Fget_composite_char): New function.
1960         (Fput_char_attribute): Register `->decomposition' value to
1961         `Vcharacter_composition_table'.
1962         (syms_of_mule_charset): Add new function `get-composite-char', new
1963         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
1964         `super' and `fraction'.
1965         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
1966
1967 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1968
1969         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
1970         character; copy the return value.
1971
1972 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
1973
1974         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
1975
1976         * mule-charset.c (range_charset_code_point): Must use make_int.
1977         (split_builtin_char): New function.
1978
1979 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
1980
1981         * mule-charset.c (char_byte_table): Change name from
1982         "char-code-table" to "char-byte-table".
1983         (mark_char_code_table): New function.
1984         (char_code_table_equal): New function.
1985         (char_code_table_hash): New function.
1986         (char_code_table_description): New constant.
1987         (char_code_table): New type.
1988         (make_char_code_table): New function.
1989         (copy_char_code_table): New function.
1990         (get_char_code_table): Modify for `char_code_table' type.
1991         (put_char_code_table): Likewise.
1992         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
1993         (Kashiwara).
1994
1995         * char-ucs.h (char_code_table): New type.
1996         (XCHAR_CODE_TABLE): New macro.
1997         (XSETCHAR_CODE_TABLE): New macro.
1998         (CHAR_CODE_TABLE_P): New macro.
1999         (GC_CHAR_CODE_TABLE_P): New macro.
2000         (struct Lisp_Char_Code_Table): New structure.
2001
2002 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2003
2004         * mule-charset.c (Fmake_charset): Setup byte_offset for
2005         {94|96}^n-set.
2006
2007 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2008
2009         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
2010         character.
2011
2012 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2013
2014         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
2015         is found.
2016
2017 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2018
2019         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
2020         charset, it is regarded as a charset.
2021         (put_char_attribute): New function in UTF-2000.
2022         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
2023         charset, mapping-table of the charset is modified.
2024         (Fdefine_char): New function in UTF-2000.
2025         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
2026         `Fput_char_attribute'.
2027         (syms_of_mule_charset): Add new function `define-char' and new
2028         symbol `ucs' in UTF-2000.
2029         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
2030
2031 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2032
2033         * mule-charset.c (Fcharset_name): Define `byte_offset' in
2034         non-UTF-2000 configuration.
2035
2036 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2037
2038         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
2039         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
2040
2041         * mule-charset.c (mark_charset): `cs->encoding_table' has been
2042         deleted.
2043         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
2044         (Fset_charset_mapping_table): Likewise.
2045
2046         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
2047         (CHARSET_ENCODING_TABLE): Delete.
2048         (XCHARSET_ENCODING_TABLE): Delete.
2049         (charset_code_point): New interface.
2050
2051 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2052
2053         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
2054         instead of `charset_get_byte1' and `charset_get_byte2'.
2055
2056         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
2057         (charset_get_byte2): Deleted.
2058
2059 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2060
2061         * char-ucs.h (SPLIT_CHAR): New inline function.
2062         (breakup_char_1): Use `SPLIT_CHAR'.
2063
2064         * mule-charset.c (range_charset_code_point): New function.
2065         (charset_code_point): New function.
2066
2067         * char-ucs.h (range_charset_code_point): New interface.
2068         (breakup_char_1): Use `range_charset_code_point'.
2069
2070 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2071
2072         * mule-charset.c (Fmake_charset): Delete unused local variable
2073         `code_offset'.
2074
2075         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
2076         (breakup_char_1): Find a charset and code-point in
2077         `Vcharacter_attribute_table'.
2078
2079 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2080
2081         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2082         to 0.10 (Yao).
2083
2084 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
2085
2086         * mule-charset.c (Vcharacter_attribute_table): New variable.
2087         (Fchar_attribute_alist): New function.
2088         (Fget_char_attribute): New function.
2089         (Fput_char_attribute): New function.
2090         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
2091         too.
2092         (syms_of_mule_charset): Add new function `char-attribute-alist',
2093         `get-char-attribute' and `put-char-attribute'.
2094         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
2095
2096 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
2097
2098         * mule-charset.c (Fmake_charset): Just use
2099         `get_unallocated_leading_byte'.
2100
2101         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
2102         sets; don't use final-byte based number for private sets.
2103
2104 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2105
2106         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
2107         integer.
2108
2109 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2110
2111         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2112         to 0.9.
2113
2114 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2115
2116         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
2117         of `CHAR_LEADING_BYTE' in UTF-2000.
2118
2119         * insdel.c (find_charsets_in_bufbyte_string): Use
2120         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2121         (find_charsets_in_emchar_string): Likewise.
2122
2123         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
2124         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2125
2126         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
2127         (CHAR_CHARSET_ID): New macro.
2128
2129 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2130
2131         * chartab.c (get_char_table): Don't use type `Charset_ID' for
2132         charset-id - MIN_LEADING_BYTE.
2133         (put_char_table): Likewise.
2134
2135 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2136
2137         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
2138         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
2139         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
2140         (CHARSET_ID_OFFSET): New macro.
2141         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
2142         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
2143         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
2144         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2145         4).
2146         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2147         5).
2148         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
2149         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
2150         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
2151         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
2152         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
2153
2154 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2155
2156         * mule-charset.c (next_allocated_leading_byte): New variable in
2157         UTF-2000.
2158         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
2159         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
2160         (get_unallocated_leading_byte): Simply use
2161         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
2162         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
2163         UTF-2000.
2164
2165         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
2166         (MAX_LEADING_BYTE_PRIVATE): New macro.
2167         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
2168         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
2169
2170 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2171
2172         * mule-charset.c (Fmake_charset): Allocate final-byte based
2173         charset-id for 94-set, 96-set and 94x94-set.
2174
2175 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2176
2177         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
2178         ambiguous `else'.
2179         (Fmake_charset): Likewise.
2180         (complex_vars_of_mule_charset): Modify the font registry of
2181         `ucs-bmp' not to match `Ethiopic-Unicode'.
2182
2183 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2184
2185         * mule-charset.c (complex_vars_of_mule_charset): Add font
2186         registory of `ucs-bmp'.
2187
2188 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2189
2190         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
2191         coded-charsets in `default-coded-charset-priority-list' when
2192         breaking up a character.
2193
2194         * mule-charset.c (Vcharset_latin_viscii): New variable.
2195         (Qlatin_viscii): New variable.
2196         (make_charset): Don't use `decoding_table'.
2197         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
2198         byte_offset.
2199         (Fset_charset_mapping_table): New implementation.
2200         (syms_of_mule_charset): Add new symbol `latin-viscii'.
2201         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
2202         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
2203         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
2204         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
2205         charset `latin_viscii'.
2206
2207         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
2208         (CHARSET_TYPE_94X94): Change to 1 from 2.
2209         (CHARSET_TYPE_96): Change to 2 from 1.
2210         (CHARSET_TYPE_128): New macro.
2211         (CHARSET_TYPE_128X128): Change to 5 from 4.
2212         (CHARSET_TYPE_256): New macro.
2213         (CHARSET_TYPE_256X256): Change to 7 from 5.
2214         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
2215
2216 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2217
2218         * text-coding.c (char_encode_shift_jis): Refer
2219         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
2220         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
2221
2222         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
2223         (char_byte_table_equal): New function in UTF-2000.
2224         (char_byte_table_hash): New function in UTF-2000.
2225         (char_byte_table_description): New constant in UTF-2000.
2226         (char_byte_table): New type in UTF-2000.
2227         (make_char_byte_table): New function in UTF-2000.
2228         (copy_char_byte_table): New function in UTF-2000.
2229         (make_char_code_table): New macro in UTF-2000.
2230         (get_char_code_table): New function in UTF-2000.
2231         (put_char_code_table): New function in UTF-2000.
2232         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2233         (charset_description): Add setting in UTF-2000.
2234         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
2235         `CHARSET_TO_BYTE1_TABLE(cs)'.
2236         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
2237         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
2238         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
2239         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
2240         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
2241         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
2242         `CHARSET_TO_BYTE2_TABLE(cs)'.
2243
2244         * char-ucs.h (char_byte_table): New type.
2245         (XCHAR_BYTE_TABLE): New macro.
2246         (XSETCHAR_BYTE_TABLE): New macro.
2247         (CHAR_BYTE_TABLE_P): New macro.
2248         (GC_CHAR_BYTE_TABLE_P): New macro.
2249         (struct Lisp_Char_Byte_Table): New structure.
2250         (get_char_code_table): New interface.
2251         (Emchar_to_byte_table): Deleted.
2252         (get_byte_from_character_table): Deleted.
2253         (struct Lisp_Charset): Add `encoding_table'; delete
2254         `to_byte1_table' and `to_byte2_table'.
2255         (CHARSET_ENCODING_TABLE): New macro.
2256         (CHARSET_TO_BYTE1_TABLE): Deleted.
2257         (CHARSET_TO_BYTE2_TABLE): Deleted.
2258         (XCHARSET_ENCODING_TABLE): New macro.
2259         (XCHARSET_TO_BYTE1_TABLE): Deleted.
2260         (XCHARSET_TO_BYTE2_TABLE): Deleted.
2261
2262 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2263
2264         * mule-charset.c (syms_of_mule_charset): Delete charset alias
2265         `vietnamese-viscii-*'.
2266
2267 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2268
2269         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
2270         (Qvietnamese_viscii_upper): New variable.
2271         (Fdefine_charset_alias): New function.
2272         (syms_of_mule_charset): Add new function `define-charset-alias'.
2273         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
2274         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
2275         `latin-viscii-*'.
2276
2277 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
2278
2279         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
2280         (MAX_CHAR_OBS_94x94): New macro.
2281         (breakup_char_1): Support obsolete XEmacs-UCS private code space
2282         for 94x94 sets.
2283
2284         * mule-charset.c (put_byte_from_character_table): Change unit size
2285         from 128 to 256.
2286         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
2287         not defined.
2288         (Fmake_reverse_direction_charset): Modify dummy argument of
2289         `make_charset' for non-UTF-2000 environment.
2290
2291 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2292
2293         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
2294
2295         * mule-charset.c (destroy_byte_from_character_table): New macro.
2296         (latin_jisx0201_to_ucs): Deleted.
2297         (latin_iso8859_2_to_ucs): Deleted.
2298         (latin_iso8859_3_to_ucs): Deleted.
2299         (latin_iso8859_4_to_ucs): Deleted.
2300         (latin_iso8859_9_to_ucs): Deleted.
2301         (latin_viscii_lower_to_ucs): Deleted.
2302         (latin_viscii_upper_to_ucs): Deleted.
2303         (mark_charset): Mark `cs->decoding_table'.
2304         (Fcharset_mapping_table): Fix DOC-string.
2305         (Fset_charset_mapping_table): New function.
2306         (syms_of_mule_charset): Add nwe function
2307         `set-charset-mapping-table'.
2308         (complex_vars_of_mule_charset): Don't setup and use
2309         `latin_*_to_ucs'.
2310
2311 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2312
2313         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
2314         charset.
2315
2316 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2317
2318         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
2319         (Vcharset_katakana_jisx0208): New variable.
2320         (Qhiragana_jisx0208): New variable.
2321         (Qkatakana_jisx0208): New variable.
2322         (make_charset): Add new argument `byte_offset'.
2323         (charset_get_byte1): Modify for new coded-charset definition; use
2324         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
2325         `XCHARSET_BYTE_OFFSET'.
2326         (Fmake_charset): Modify for `make_charset'.
2327         (Fmake_reverse_direction_charset): Likewise.
2328         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
2329         `katakana-jisx0208'.
2330         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
2331         `.'  in font registry of charset `katakana-jisx0201',
2332         `latin-jisx0201', `vietnamese-viscii-lower' and
2333         `vietnamese-viscii-upper'; modify DOC-string of charset
2334         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
2335         registry of charset `japanese-jisx0208' not to use font for JIS
2336         X0208:1990; add new charset `hiragana-jisx0208' and
2337         `katakana-jisx0208'.
2338
2339         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
2340         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
2341         (struct Lisp_Charset): Add `byte_offset'.
2342         (CHARSET_BYTE_OFFSET): New macro.
2343         (XCHARSET_UCS_MIN): New macro.
2344         (XCHARSET_UCS_MAX): New macro.
2345         (XCHARSET_CODE_OFFSET): New macro.
2346         (XCHARSET_BYTE_OFFSET): New macro.
2347         (MIN_CHAR_HIRAGANA): New macro.
2348         (MAX_CHAR_HIRAGANA): New macro.
2349         (MIN_CHAR_KATAKANA): New macro.
2350         (MAX_CHAR_KATAKANA): New macro.
2351         (MAKE_CHAR): Modify for new coded-charset definition; use
2352         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
2353         `XCHARSET_BYTE_OFFSET'.
2354
2355 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2356
2357         * mule-charset.c (CHAR96): Deleted.
2358         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
2359         <Lisp_Object>.
2360         (latin_iso8859_2_to_ucs): Likewise.
2361         (latin_iso8859_3_to_ucs): Likewise.
2362         (latin_iso8859_4_to_ucs): Likewise.
2363         (latin_iso8859_9_to_ucs): Likewise.
2364         (latin_viscii_lower_to_ucs): Likewise.
2365         (latin_viscii_upper_to_ucs): Likewise.
2366         (latin_tcvn5712_to_ucs): Commented out.
2367         (make_charset): Change type of argument `decoding_table' from
2368         <Emchar*> to <Lisp_Object> [vector of characters].
2369         (Fmake_charset): Modify for `make_charset'.
2370         (Fmake_reverse_direction_charset): Likewise.
2371         (Fcharset_mapping_table): New function in UTF-2000.
2372         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
2373         UTF-2000.
2374         (complex_vars_of_mule_charset): Modify for type change of
2375         `*_to_ucs'; modify for `make_charset'.
2376
2377         * char-ucs.h (struct Lisp_Charset): Change type of
2378         `decoding_table' from <Emchar*> to <Lisp_Object>.
2379         (MAKE_CHAR): Modify for new specification of `decoding_table'.
2380
2381 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
2382
2383         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
2384         error with non-UTF-2000-Mule.
2385
2386 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
2387
2388         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
2389         in lisp again].
2390         (Vcharset_chinese_cns11643_4): Likewise.
2391         (Vcharset_chinese_cns11643_5): Likewise.
2392         (Vcharset_chinese_cns11643_6): Likewise.
2393         (Vcharset_chinese_cns11643_7): Likewise.
2394         (Qchinese_cns11643_3): Likewise.
2395         (Qchinese_cns11643_4): Likewise.
2396         (Qchinese_cns11643_5): Likewise.
2397         (Qchinese_cns11643_6): Likewise.
2398         (Qchinese_cns11643_7): Likewise.
2399         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
2400         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
2401         and `chinese-cns11643-7' to lisp/mule/chinese.el.
2402         (complex_vars_of_mule_charset): Likewise.
2403
2404 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2405
2406         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
2407         96-set.
2408         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
2409         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
2410
2411 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
2412
2413         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
2414         0xFF60.
2415         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
2416         (breakup_char_1): Likewise.
2417
2418         * text-coding.c (char_encode_iso2022): Keep designated charsets if
2419         one of them includes the specified character.
2420
2421 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
2422
2423         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
2424
2425 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
2426
2427         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
2428
2429 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
2430
2431         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
2432         definition for non-UTF-2000 Mule.
2433         (latin_iso8859_3_to_ucs): Likewise.
2434         (latin_iso8859_4_to_ucs): Likewise.
2435         (latin_iso8859_9_to_ucs): Likewise.
2436         (latin_jisx0201_to_ucs): Likewise.
2437         (MIN_CHAR_THAI): Likewise.
2438         (MAX_CHAR_THAI): Likewise.
2439         (MIN_CHAR_GREEK): Likewise.
2440         (MAX_CHAR_GREEK): Likewise.
2441         (MIN_CHAR_HEBREW): Likewise.
2442         (MAX_CHAR_HEBREW): Likewise.
2443         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
2444         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
2445         (MIN_CHAR_CYRILLIC): Likewise.
2446         (MAX_CHAR_CYRILLIC): Likewise.
2447
2448 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
2449
2450         * char-ucs.h (breakup_char_1): Use
2451         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
2452         thai-tis620 and katakana-jisx0201 area.
2453
2454 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2455
2456         * char-ucs.h (breakup_char_1): Use
2457         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
2458         area.
2459
2460         * text-coding.c (reset_encoding_stream): Fixed.
2461         (char_encode_ucs4): Delete `& 255'.
2462
2463         * char-ucs.h (breakup_char_1): Use
2464         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
2465
2466 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2467
2468         * file-coding.c (Fmake_coding_system): Don't set up
2469         `codesys->fixed.size'.
2470         (encode_coding_no_conversion): Don't refer
2471         `str->codesys->fixed.size'.
2472
2473 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2474
2475         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
2476         (latin_a_char_to_byte1): Deleted.
2477         (latin_a_char_to_byte2): Deleted.
2478
2479 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2480
2481         * mule-charset.c (make_charset): Add new argument `ucs_min',
2482         `ucs_max' and `code_offset'.
2483         (charset_get_byte1): New implementation [delete specific charset
2484         depended implementations].
2485         (Fmake_charset): Modify for `make_charset'.
2486         (Fmake_reverse_direction_charset): Likewise.
2487         (complex_vars_of_mule_charset): Likewise.
2488
2489         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
2490         `code_offset'.
2491         (CHARSET_UCS_MIN): New macro.
2492         (CHARSET_UCS_MAX): New macro.
2493         (CHARSET_CODE_OFFSET): New macro.
2494         (MAKE_CHAR): Delete charset depended definitions [except
2495         katakana-jisx0201].
2496
2497 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
2498
2499         * char-ucs.h (breakup_char_1): Use
2500         `Vdefault_coded_charset_priority_list' for C0-Controls,
2501         Basic-Latin, C1-Controls and Latin-1-Supplement area.
2502
2503 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2504
2505         * char-ucs.h (charset_get_byte1): New function.
2506         (XCHARSET_GET_BYTE1): Deleted.
2507         (charset_get_byte2): New function.
2508         (XCHARSET_GET_BYTE2): Deleted.
2509         (Vdefault_coded_charset_priority_list): New external variable.
2510         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
2511         `Vdefault_preferred_coded_charset_list'.
2512
2513         * mule-charset.c (charset_get_byte1): New function.
2514         (charset_get_byte2): New function.
2515         (Vdefault_coded_charset_priority_list): New variable.
2516         (vars_of_mule_charset): Add new variable
2517         `default-coded-charset-priority-list'.
2518
2519 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2520
2521         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
2522         (XCHARSET_GET_BYTE2): New inline function.
2523         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
2524         `XCHARSET_GET_BYTE2'.
2525
2526 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2527
2528         * mule-charset.c (make_charset): Initialize
2529         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
2530         NULL if table is not defined.
2531
2532 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2533
2534         * text-coding.c (char_encode_shift_jis): Use
2535         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
2536         `ucs_to_latin_jisx0201'.
2537
2538         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
2539         (ucs_to_latin_iso8859_2): Deleted.
2540         (ucs_to_latin_iso8859_3): Deleted.
2541         (ucs_to_latin_iso8859_4): Deleted.
2542         (ucs_to_latin_iso8859_9): Deleted.
2543         (ucs_to_latin_viscii_lower): Deleted.
2544         (ucs_to_latin_viscii_upper): Deleted.
2545         (ucs_to_latin_tcvn5712): Deleted.
2546         (make_charset): Add new argument `decoding_table'; set up
2547         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
2548         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
2549         `decoding_table' is defined in UTF-2000.
2550         (Fmake_charset): Modify for `make_charset'.
2551         (Fmake_reverse_direction_charset): Likewise.
2552         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
2553         and `GENERATE_96_SET'.
2554
2555         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
2556         (ucs_to_latin_jisx0201): Deleted.
2557         (latin_iso8859_2_to_ucs): Deleted.
2558         (ucs_to_latin_iso8859_2): Deleted.
2559         (latin_iso8859_3_to_ucs): Deleted.
2560         (ucs_to_latin_iso8859_3): Deleted.
2561         (latin_iso8859_4_to_ucs): Deleted.
2562         (ucs_to_latin_iso8859_4): Deleted.
2563         (latin_iso8859_9_to_ucs): Deleted.
2564         (ucs_to_latin_iso8859_9): Deleted.
2565         (latin_viscii_lower_to_ucs): Deleted.
2566         (ucs_to_latin_viscii_lower): Deleted.
2567         (latin_viscii_upper_to_ucs): Deleted.
2568         (ucs_to_latin_viscii_upper): Deleted.
2569         (struct Lisp_Charset): Renamed `encoding_table' to
2570         `to_byte1_table'; add `to_byte2_table'.
2571         (CHARSET_DECODING_TABLE): New macro.
2572         (CHARSET_TO_BYTE1_TABLE): New macro.
2573         (CHARSET_TO_BYTE2_TABLE): New macro.
2574         (XCHARSET_DECODING_TABLE): New macro.
2575         (XCHARSET_TO_BYTE1_TABLE): New macro.
2576         (XCHARSET_TO_BYTE2_TABLE): New macro.
2577         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
2578         tables.
2579         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
2580         don't use `ucs_to_*' tables.
2581
2582 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2583
2584         * text-coding.c (Fmake_coding_system): Don't set up
2585         `codesys->fixed.size'.
2586         (encode_coding_no_conversion): Use `if' instead of `switch'.
2587
2588         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
2589
2590 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2591
2592         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
2593         (Fmake_charset): Modify for `make_charset'.
2594         (Fmake_reverse_direction_charset): Likewise.
2595         (complex_vars_of_mule_charset): Likewise.
2596
2597 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2598
2599         * text-coding.c (char_encode_shift_jis): Use table
2600         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
2601
2602 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2603
2604         * text-coding.c (text_encode_generic): Use `if' instead of
2605         `switch'.
2606         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
2607         decode JIS-Latin.
2608
2609 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2610
2611         * text-coding.c (encode_coding_sjis): Deleted.
2612         (char_encode_shift_jis): New function.
2613         (char_finish_shift_jis): New function.
2614         (reset_encoding_stream): Set up `encode_char' and `finish' for
2615         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
2616         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
2617         (char_encode_utf8): Treat `eol_type'.
2618
2619 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2620
2621         * file-coding.c (decode_coding_iso2022): Use
2622         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
2623
2624 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2625
2626         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2627         to 0.7 (Hirano).
2628
2629 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2630
2631         * char-lb.h (CHAR_COLUMNS): New macro.
2632
2633 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2634
2635         * text-coding.c (char_encode_ucs4): New function.
2636         (char_finish_ucs4): New function.
2637         (encode_coding_ucs4): Deleted.
2638         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
2639         (text_encode_generic): Delete local variable `charset' and `half'.
2640         (ucs_to_mule_table): Deleted.
2641         (mule_to_ucs_table): Deleted.
2642         (Fset_ucs_char): Deleted.
2643         (ucs_to_char): Deleted.
2644         (Fucs_char): Deleted.
2645         (Fset_char_ucs): Deleted.
2646         (Fchar_ucs): Deleted.
2647         (decode_ucs4): Deleted.
2648         (mule_char_to_ucs4): Deleted.
2649         (encode_ucs4): Deleted.
2650         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
2651         (decode_coding_utf8): Likewise.
2652         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
2653         (char_encode_iso2022): Fixed.
2654         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
2655         `Fset_char_ucs' and `Fchar_ucs'.
2656         (complex_vars_of_file_coding): Don't initialize
2657         `ucs_to_mule_table'.
2658
2659         * objects-tty.c (tty_initialize_font_instance): Don't use
2660         `XCHARSET_COLUMNS'.
2661
2662         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
2663         UTF-2000.
2664
2665         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
2666         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
2667
2668         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
2669         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
2670         (emchar_string_displayed_columns): Likewise.
2671
2672         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
2673         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
2674         (string_column_at_point): Likewise.
2675         (Fmove_to_column): Likewise.
2676
2677         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
2678         `encoding_table' and `decoding_table'.
2679         (CHARSET_REP_BYTES): Deleted.
2680         (XCHARSET_REP_BYTES): Deleted.
2681         (XCHARSET_COLUMNS): Deleted.
2682         (CHAR_COLUMNS): New macro.
2683         (lookup_composite_char): Deleted unconditionally.
2684         (composite_char_string): Likewise.
2685
2686 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2687
2688         * char-ucs.h (Emchar_to_byte_table): New type.
2689         (get_byte_from_character_table): New function interface.
2690         (Vcharset_latin_jisx0201): New variable.
2691         (latin_jisx0201_to_ucs): New variable.
2692         (ucs_to_latin_jisx0201): New variable.
2693         (Vcharset_latin_iso8859_2): New variable.
2694         (latin_iso8859_2_to_ucs): New variable.
2695         (ucs_to_latin_iso8859_2): New variable.
2696         (Vcharset_latin_iso8859_3): New variable.
2697         (latin_iso8859_3_to_ucs): New variable.
2698         (ucs_to_latin_iso8859_3): New variable.
2699         (Vcharset_latin_iso8859_4): New variable.
2700         (latin_iso8859_4_to_ucs): New variable.
2701         (ucs_to_latin_iso8859_4): New variable.
2702         (Vcharset_latin_iso8859_9): New variable.
2703         (latin_iso8859_9_to_ucs): New variable.
2704         (ucs_to_latin_iso8859_9): New variable.
2705         (Vcharset_latin_viscii_lower): New variable.
2706         (latin_viscii_lower_to_ucs): New variable.
2707         (ucs_to_latin_viscii_lower): New variable.
2708         (Vcharset_latin_viscii_upper): New variable.
2709         (latin_viscii_upper_to_ucs): New variable.
2710         (ucs_to_latin_viscii_upper): New variable.
2711         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
2712         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
2713         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
2714         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
2715         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
2716         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
2717         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
2718         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
2719         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
2720         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
2721
2722         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
2723         (Vcharset_latin_viscii_upper): New variable.
2724         (make_byte_from_character_table): New function.
2725         (put_byte_from_character_table): New function.
2726         (get_byte_from_character_table): New function.
2727         (CHAR96): New macro.
2728         (ucs_to_latin_jisx0201): New variable.
2729         (latin_jisx0201_to_ucs): New variable.
2730         (ucs_to_latin_iso8859_2): New variable.
2731         (latin_iso8859_2_to_ucs): New variable.
2732         (ucs_to_latin_iso8859_3): New variable.
2733         (latin_iso8859_3_to_ucs): New variable.
2734         (ucs_to_latin_iso8859_4): New variable.
2735         (latin_iso8859_4_to_ucs): New variable.
2736         (ucs_to_latin_iso8859_9): New variable.
2737         (latin_iso8859_9_to_ucs): New variable.
2738         (ucs_to_latin_viscii_lower): New variable.
2739         (latin_viscii_lower_to_ucs): New variable.
2740         (ucs_to_latin_viscii_upper): New variable.
2741         (latin_viscii_upper_to_ucs): New variable.
2742         (ucs_to_latin_tcvn5712): New variable.
2743         (latin_tcvn5712_to_ucs): New variable.
2744         (Qlatin_viscii_lower): New variable.
2745         (Qlatin_viscii_upper): New variable.
2746         (syms_of_mule_charset): Set up new symbol
2747         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
2748         (complex_vars_of_mule_charset): Set up new charset
2749         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
2750         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
2751         `ucs_to_<CHARSET>' tables.
2752
2753 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
2754
2755         * text-coding.c: New file.
2756
2757 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2758
2759         * mule-charset.c (Fmake_char): Fix problem of 256-set.
2760
2761         * char-ucs.h (Vcharset_ucs_bmp): New variable.
2762         (MAKE_CHAR): Modify for `ucs-bmp'.
2763         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
2764         non-MULE characters of BMP.
2765
2766 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
2767
2768         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2769         to 0.6.
2770
2771 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2772
2773         * lstream.h:
2774         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
2775         - Include character.h for `CHAR_ASCII_P'.
2776
2777         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
2778
2779         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
2780         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
2781
2782         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
2783         (BYTE_C0_P): Likewise.
2784         (BYTE_C1_P): Likewise.
2785         (Lstream_get_emchar_1): Likewise.
2786         (Lstream_fput_emchar): Likewise.
2787         (Lstream_funget_emchar): Likewise.
2788         (copy_internal_to_external): Likewise.
2789         (copy_external_to_internal): Likewise.
2790
2791         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
2792         (BYTE_C0_P): Likewise.
2793         (BYTE_C1_P): Likewise.
2794         (Lstream_get_emchar_1): Likewise.
2795         (Lstream_fput_emchar): Likewise.
2796         (Lstream_funget_emchar): Likewise.
2797         (copy_internal_to_external): Likewise.
2798         (copy_external_to_internal): Likewise.
2799
2800         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
2801         (REP_BYTES_BY_FIRST_BYTE): Likewise.
2802
2803         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
2804         (BYTE_ASCII_P): Moved to mb-1byte.h.
2805
2806 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2807
2808         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
2809
2810         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
2811         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
2812         (VALID_CHARPTR_P): Moved to mb-*byte.h.
2813         (VALIDATE_CHARPTR_BACKWARD): Likewise.
2814         (VALIDATE_CHARPTR_FORWARD): Likewise.
2815         (simple_charptr_emchar): Moved to mb-multibyte.h.
2816         (simple_set_charptr_emchar): Likewise.
2817         (simple_charptr_copy_char): Likewise.
2818         (non_ascii_charptr_emchar): Likewise.
2819         (non_ascii_set_charptr_emchar): Likewise.
2820         (non_ascii_charptr_copy_char): Likewise.
2821         (charptr_emchar): Moved to mb-*byte.h.
2822         (set_charptr_emchar): Likewise.
2823         (charptr_copy_char): Likewise.
2824
2825         * mb-1byte.h, mb-multibyte.h: New files.
2826
2827 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2828
2829         * mb-utf-8.h (MULTIBYTE): New macro.
2830         (MAX_EMCHAR_LEN): Moved from buffer.h.
2831         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
2832
2833         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
2834
2835         * mb-lb.h, multibyte.h: New files.
2836
2837         * char-1byte.h (Charset_ID): Moved from buffer.h.
2838         (MIN_LEADING_BYTE): Likewise.
2839         (LEADING_BYTE_ASCII): Likewise.
2840         (NUM_LEADING_BYTES): Likewise.
2841         (CHARSETP): Likewise.
2842         (CHARSET_BY_LEADING_BYTE): Likewise.
2843         (XCHARSET_LEADING_BYTE): Likewise.
2844         (XCHARSET_GRAPHIC): Likewise.
2845         (XCHARSET_COLUMNS): Likewise.
2846         (XCHARSET_DIMENSION): Likewise.
2847         (CHAR_CHARSET): Likewise.
2848         (CHAR_LEADING_BYTE): Likewise.
2849         (BREAKUP_CHAR): Likewise.
2850         (Vcharset_ascii): Likewise.
2851
2852         * buffer.h: Include multibyte.h unconditionally.
2853         (VALID_CHARPTR_P): Moved to multibyte.h.
2854         (ASSERT_VALID_CHARPTR): Likewise.
2855         (REAL_INC_CHARPTR): Likewise.
2856         (REAL_INC_CHARBYTIND): Likewise.
2857         (REAL_DEC_CHARPTR): Likewise.
2858         (INC_CHARPTR): Likewise.
2859         (INC_CHARBYTIND): Likewise.
2860         (DEC_CHARPTR): Likewise.
2861         (VALIDATE_CHARPTR_BACKWARD): Likewise.
2862         (VALIDATE_CHARPTR_FORWARD): Likewise.
2863         (charptr_n_addr): Likewise.
2864         (MAX_EMCHAR_LEN): Moved to mb-*.h.
2865         (simple_charptr_emchar): Moved to multibyte.h.
2866         (simple_set_charptr_emchar): Likewise.
2867         (simple_charptr_copy_char): Likewise.
2868         (non_ascii_charptr_emchar): Likewise.
2869         (non_ascii_set_charptr_emchar): Likewise.
2870         (non_ascii_charptr_copy_char): Likewise.
2871         (charptr_emchar): Likewise.
2872         (set_charptr_emchar): Likewise.
2873         (charptr_copy_char): Likewise.
2874         (charptr_emchar_n): Likewise.
2875         (Charset_ID): Moved to char-1byte.h.
2876         (Vcharset_ascii): Likewise.
2877         (CHAR_CHARSET): Likewise.
2878         (CHAR_LEADING_BYTE): Likewise.
2879         (LEADING_BYTE_ASCII): Likewise.
2880         (NUM_LEADING_BYTES): Likewise.
2881         (MIN_LEADING_BYTE): Likewise.
2882         (CHARSETP): Likewise.
2883         (CHARSET_BY_LEADING_BYTE): Likewise.
2884         (XCHARSET_LEADING_BYTE): Likewise.
2885         (XCHARSET_GRAPHIC): Likewise.
2886         (XCHARSET_COLUMNS): Likewise.
2887         (XCHARSET_DIMENSION): Likewise.
2888         (BREAKUP_CHAR): Likewise.
2889
2890 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2891
2892         * character.h: Add document about interface for characters.
2893
2894         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
2895         (MAKE_CHAR): Delete comment about
2896         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
2897         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
2898         (BREAKUP_CHAR): Modify name of arguments.
2899         (CHAR_CHARSET): Modify name of argument.
2900
2901         * buffer.h: Delete document about Emchar accessors.
2902
2903 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2904
2905         * character.h (CHAR_INTP): Moved from buffer.h
2906         (CHAR_OR_CHAR_INTP): Likewise.
2907         (XCHAR_OR_CHAR_INT): Likewise.
2908         (CHECK_CHAR_COERCE_INT): Likewise.
2909
2910         * buffer.h (CHAR_INTP): Moved to character.h
2911         (CHAR_OR_CHAR_INTP): Likewise.
2912         (XCHAR_OR_CHAR_INT): Likewise.
2913         (CHECK_CHAR_COERCE_INT): Likewise.
2914
2915 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2916
2917         * character.h:
2918         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
2919         - Include char-1byte.h, char-lb.h or char-ucs.h.
2920
2921         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
2922
2923         * buffer.h: Include character unconditionally.
2924         (valid_char_p): Moved to char-*.h.
2925         (non_ascii_valid_char_p): Moved to char-lb.h.
2926
2927         * char-1byte.h, char-lb.h, char-ucs.h: New files.
2928
2929 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2930
2931         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
2932         in UTF-2000 because it is not ported yet and not to use
2933         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
2934         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
2935         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
2936
2937         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
2938         (CHAR_ASCII_P): Moved from character.h.
2939
2940         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
2941         (CHAR_ASCII_P): Likewise.
2942         (CHAR_FIELD1_MASK): Deleted.
2943         (CHAR_FIELD2_MASK): Deleted.
2944         (CHAR_FIELD3_MASK): Deleted.
2945         (MAX_CHAR_BASIC_LATIN): New macro.
2946         (CHAR_FIELD1): Deleted.
2947         (CHAR_FIELD2_INTERNAL): Deleted.
2948         (CHAR_FIELD3_INTERNAL): Deleted.
2949         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
2950         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
2951         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
2952         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
2953         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
2954         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
2955         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
2956         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
2957         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
2958         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
2959         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
2960         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
2961         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
2962         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
2963         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
2964         (MIN_CHAR_COMPOSITION): Deleted.
2965         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
2966         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
2967
2968 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
2969
2970         * buffer.h: Include mb-utf-8.h in UTF-2000.
2971
2972         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
2973
2974         * mb-utf-8.h: New file.
2975
2976 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
2977
2978         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
2979         instead of `int'.
2980
2981         * mule-charset.h, buffer.h (Charset_ID): New type.
2982
2983 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
2984
2985         * mule-canna.c (c2mu): Use `MAKE_CHAR',
2986         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
2987         instead of `MULE_CHAR_PRIVATE_OFFSET',
2988         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
2989         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
2990         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
2991
2992         * character.h (Vcharset_japanese_jisx0212): New variable
2993         definition.
2994
2995 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
2996
2997         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
2998         (charset_by_attributes): Delete array about direction.
2999         (latin_a_char_to_charset): New variable in UTF-2000.
3000         (latin_a_char_to_byte1): New variable in UTF-2000.
3001         (latin_a_char_to_byte2): New variable in UTF-2000.
3002         (Qucs_bmp): New variable.
3003         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
3004         `Bufbyte'.
3005         (next_allocated_2_byte_leading_byte): Likewise.
3006         (non_ascii_set_charptr_emchar): Likewise.
3007         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
3008         `CHARSET_TYPE_256X256' in UTF-2000; modify for
3009         `charset_by_attributes'.
3010         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
3011         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
3012         and `CHARSET_BY_LEADING_BYTE'.
3013         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
3014         `utf-2000-version' to `vars_of_mule_charset'.
3015         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
3016         define `leading-code-private-11' in UTF-2000; move setting of
3017         `utf-2000-version' from `syms_of_mule_charset'.
3018         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
3019         UTF-2000.
3020
3021         * character.h (Charset_ID): New type.
3022         (LEADING_BYTE_UCS_BMP): New macro.
3023         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
3024         (CHARSET_ID_OFFSET_94): New macro.
3025         (MIN_CHARSET_ID_PRIVATE_94): New macro.
3026         (MAX_CHARSET_ID_PRIVATE_94): New macro.
3027         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
3028         final-byte.
3029         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
3030         (LEADING_BYTE_LATIN_JISX0201): Likewise.
3031         (CHARSET_ID_OFFSET_96): New macro.
3032         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
3033         CHARSET_ID_OFFSET_96 and final-byte.
3034         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
3035         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
3036         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
3037         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
3038         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
3039         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
3040         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
3041         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
3042         (LEADING_BYTE_THAI_TIS620): Likewise.
3043         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
3044         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
3045         (CHARSET_ID_OFFSET_94x94): New macro.
3046         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
3047         CHARSET_ID_OFFSET_94x94 and final-byte.
3048         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
3049         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
3050         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
3051         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
3052         (LEADING_BYTE_CHINESE_GB2312): Likewise.
3053         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
3054         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
3055         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
3056         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
3057         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
3058         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
3059         (CHARSET_TYPE_128X128): New macro.
3060         (CHARSET_TYPE_256X256): New macro.
3061         (XCHARSET_PRIVATE_P): Delete unconditionally.
3062         (charset_by_attributes): Delete array about direction.
3063         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
3064         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
3065         (MIN_CHAR_94): New macro.
3066         (MAX_CHAR_94): New macro.
3067         (MIN_CHAR_96): New macro.
3068         (MAX_CHAR_96): New macro.
3069         (MIN_CHAR_94x94): New macro.
3070         (MAX_CHAR_94x94): New macro.
3071         (MIN_CHAR_96x96): New macro.
3072         (MAX_CHAR_96x96): New macro.
3073         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
3074         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3075         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
3076         - 32)'.
3077         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
3078         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
3079         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
3080         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
3081         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
3082         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
3083         `XCHARSET_LEADING_BYTE' to make code-point.
3084         (latin_a_char_to_charset): New variable.
3085         (latin_a_char_to_byte1): New variable.
3086         (latin_a_char_to_byte2): New variable.
3087         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
3088         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
3089         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
3090
3091         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
3092         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
3093         (find_charsets_in_emchar_string): Likewise.
3094         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
3095
3096         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
3097         `int'.
3098         (decode_coding_iso2022): Likewise.
3099
3100         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
3101         of `unsigned char'.
3102
3103         * redisplay.c (redisplay_text_width_emchar_string): Use
3104         `Charset_ID' instead of `unsigned char'.
3105         (redisplay_frame_text_width_string): Likewise.
3106
3107         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
3108         `unsigned char'.
3109
3110         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
3111         instead of `unsigned char'.
3112         (face_cachel_charset_font_metric_info): Likewise.
3113
3114         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
3115         (get_non_ascii_char_table_value): Likewise.
3116         (get_char_table): Likewise.
3117         (put_char_table): Likewise.
3118         (map_over_other_charset): Likewise.
3119         (map_char_table): Likewise.
3120
3121         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
3122         instead of `unsigned char'.
3123
3124 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
3125
3126         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
3127         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
3128
3129         * mule-charset.c (leading_code_private_11): Don't define in
3130         UTF-2000.
3131
3132         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
3133         in UTF-2000 because it is not ported yet and not to use
3134         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
3135
3136 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
3137
3138         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
3139
3140 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3141
3142         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
3143         in UTF-2000.
3144
3145         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
3146         of unsigned char to store leading-byte.
3147
3148         * chartab.c (get_non_ascii_char_table_value): Don't use
3149         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
3150
3151         * file-coding.c (encode_coding_big5): Delete bogus implementation
3152         in UTF2000.
3153
3154         * character.h (LEADING_BYTE_*): Delete definition for
3155         non-UTF-2000.
3156         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
3157         (LEADING_BYTE_PREFIX_P): Deleted.
3158         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
3159         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
3160         (BUFBYTE_LEADING_BYTE_P): Deleted.
3161         (CHARSET_PRIVATE_P): Deleted unconditionally.
3162         (rep_bytes_by_first_byte): Deleted unconditionally.
3163         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
3164         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
3165         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3166         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
3167         (CHAR_FIELD2): Deleted.
3168         (CHAR_FIELD3): Deleted.
3169         (MAKE_CHAR): Delete definition for non-UTF-2000.
3170         (BREAKUP_CHAR_1_UNSAFE): Deleted.
3171         (breakup_char_1): New implementation.
3172         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
3173         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
3174
3175 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3176
3177         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
3178         condition.
3179
3180 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3181
3182         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
3183         (CHARSET_PRIVATE_P): Likewise.
3184         (XCHARSET_PRIVATE_P): Likewise.
3185         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
3186
3187         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
3188         UTF2000.
3189         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
3190
3191 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3192
3193         * character.h (LEADING_BYTE_*): Changed in UTF2000.
3194         (NUM_LEADING_BYTES): Changed from 128 to 256.
3195         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3196         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
3197         UTF2000.
3198         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3199
3200         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
3201         UTF2000.
3202         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
3203         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
3204         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
3205         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
3206         (Qchinese_cns11643_3): New variable in UTF2000.
3207         (Qchinese_cns11643_4): New variable in UTF2000.
3208         (Qchinese_cns11643_5): New variable in UTF2000.
3209         (Qchinese_cns11643_6): New variable in UTF2000.
3210         (Qchinese_cns11643_7): New variable in UTF2000.
3211         (syms_of_mule_charset): Define `chinese-cns11643-3',
3212         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3213         and `chinese-cns11643-7' in UTF2000.
3214         (vars_of_mule_charset): Initialize
3215         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
3216         + 1 in UTF2000.
3217         (complex_vars_of_mule_charset): Setup charset
3218         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
3219         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
3220
3221 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3222
3223         * mule-charset.c: Move setting for `leading-code-private-11' from
3224         `syms_of_mule_charset' to `vars_of_mule_charset'.
3225
3226 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3227
3228         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
3229         and `NUM_LEADING_BYTES' in assert.
3230
3231 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3232
3233         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
3234         instead of 128.
3235         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
3236         `NUM_LEADING_BYTES' instead of 128.
3237
3238 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3239
3240         * mule-charset.h (charset_by_leading_byte): Use
3241         `NUM_LEADING_BYTES' instead of 128.
3242         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
3243
3244         * mule-charset.c (charset_by_leading_byte): Use
3245         `NUM_LEADING_BYTES' instead of 128.
3246         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
3247
3248         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
3249         128.
3250
3251 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
3252
3253         * mule-charset.c (syms_of_mule_charset): Update to
3254         0.4 (Shin-Imamiya).
3255
3256 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
3257
3258         * file-coding.c (encode_coding_sjis): New implementation for
3259         UTF2000.  (decode_coding_sjis): Ditto.
3260
3261 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3262
3263         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
3264         Don't define in UTF2000.
3265
3266         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
3267         defined.
3268
3269         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3270         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
3271         MULE.
3272
3273 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3274
3275         * config.h.in (CHAR_IS_UCS4): New macro.
3276
3277         * mule-charset.c (rep_bytes_by_first_byte): Modify for
3278         conventional MULE representation.
3279         (syms_of_mule_charset): Update to 0.3 (Imamiya).
3280
3281         * mule-charset.h: Reverted to original.
3282
3283         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3284         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
3285         "mule-charset.h" if CHAR_IS_UCS4 is defined.
3286
3287         * character.h: New file.
3288
3289         * file-coding.c (Fmake_coding_system): Set 1 to
3290         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
3291         defined.
3292         (encode_coding_no_conversion): New implementation for UTF2000.
3293
3294         * file-coding.h (struct Lisp_Coding_System): Add new member
3295         `fixed.size'.
3296
3297 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
3298
3299         * file-coding.c (decode_coding_iso2022): Code-point arguments of
3300         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
3301         (encode_coding_iso2022): New implementation for UTF2000.
3302
3303 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3304
3305         * mule-canna.c (c2mu): New implementation for UTF2000.
3306         (m2c): Likewise.
3307
3308 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3309
3310         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
3311
3312 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3313
3314         * file-coding.c (reset_encoding_stream): Set 0 to
3315         `str->iso2022.current_char_boundary' in UTF2000.
3316         (encode_utf8): Don't define in UTF2000.
3317         (encode_coding_utf8): New implementation for UTF-8 representation
3318         of UTF2000.
3319         (complex_vars_of_file_coding): Define coding-system `utf-8'.
3320
3321 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3322
3323         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
3324
3325         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
3326         UTF2000.
3327         (REP_BYTES_BY_FIRST_BYTE): Likewise.
3328
3329         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
3330
3331         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
3332         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
3333         as UTF-8 in UTF2000.
3334         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
3335         (non_ascii_valid_char_p): Don't define in UTF2000.
3336         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
3337         (Lstream_get_emchar_1): Likewise.
3338         (utf-2000-version): New variable in UTF2000.
3339
3340         * lread.c (read_escape): Add new reader `u'.
3341
3342         * insdel.c (three_to_one_table): Don't define in UTF2000.
3343         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
3344         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
3345         UTF2000.
3346         (bytind_to_bufpos_func): Likewise.
3347         (buffer_mule_signal_inserted_region): Likewise.
3348         (vars_of_insdel): Don't initialize `three_to_one_table'.
3349         (init_buffer_text): Use `buf->text->mule_size' instead of
3350         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
3351         UTF2000.
3352
3353         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
3354         UTF-8 representation in UTF2000.
3355         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
3356         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
3357         (decode_coding_iso2022): Don't define local variable `lb' in
3358         UTF2000; don't use LEADING_BYTE in UTF2000; use
3359         `DECODE_ADD_UCS_CHAR' in UTF2000.
3360         (convert_to_external_format): Decode as UTF-8 in UTF2000.
3361
3362         * config.h.in (UTF2000): New macro.
3363
3364         * buffer.h (struct buffer_text): Add new member `mule_size' and
3365         don't add `mule_shifter' and `mule_three_p' in UTF2000.
3366         (valid_char_p): Return always 1 in UTF2000.
3367         (MAX_EMCHAR_LEN): 6 in UTF2000.
3368         (three_to_one_table): Don't define in UTF2000.
3369         (real_bufpos_to_bytind): Modify for UTF-8 representation in
3370         UTF2000.
3371         (real_bytind_to_bufpos): Likewise.
3372
3373         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
3374
3375 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3376
3377         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
3378         representation change.
3379         (Vutf_2000_version): New variable.
3380         (leading_code_private_11): New variable.
3381         (syms_of_mule_charset): Add new variables `utf-2000-version' and
3382         `leading-code-private-11'.
3383
3384         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
3385         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
3386         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
3387         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
3388         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
3389         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
3390         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
3391         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
3392         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
3393         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
3394         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
3395         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
3396         (MIN_CHAR_GREEK): New macro.
3397         (MAX_CHAR_GREEK): New macro.
3398         (MIN_CHAR_CYRILLIC): New macro.
3399         (MAX_CHAR_CYRILLIC): New macro.
3400         (MIN_CHAR_HEBREW): New macro.
3401         (MAX_CHAR_HEBREW): New macro.
3402         (MIN_CHAR_THAI): New macro.
3403         (MAX_CHAR_THAI): New macro.
3404         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
3405         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
3406         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
3407         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
3408         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
3409         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
3410         (CHAR_FIELD2): New inline function.
3411         (CHAR_FIELD3): New inline function.
3412         (MULE_CHAR_PRIVATE_OFFSET): New macro.
3413         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
3414         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
3415         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
3416         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
3417         (MIN_CHAR_COMPOSITION): Likewise.
3418         (CHAR_LEADING_BYTE): Modified for character representation change.
3419         (MAKE_CHAR): Likewise.
3420
3421         * lisp.h (Vcharset_latin_iso8859_1): New variable.
3422         (Vcharset_greek_iso8859_7): Likewise.
3423         (Vcharset_cyrillic_iso8859_5): Likewise.
3424         (Vcharset_hebrew_iso8859_8): Likewise.
3425         (Vcharset_thai_tis620): Likewise.
3426         (Vcharset_katakana_jisx0201): Likewise.
3427
3428 2001-01-17  Martin Buchholz <martin@xemacs.org>
3429
3430         * XEmacs 21.2.41 "Polyhymnia" is released.
3431
3432 2001-01-16  Didier Verna  <didier@xemacs.org>
3433
3434         * glyphs.c (image_instantiate): don't use fallbacks when
3435         instantiating a face's background pixmap by inheritance.
3436
3437 2001-01-14  Mike Sperber <mike@xemacs.org>
3438
3439         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
3440         Conditionalize accordingly.
3441
3442 2001-01-16  Martin Buchholz  <martin@xemacs.org>
3443
3444         * dumper.c (pdump_file_get): Fix a compiler warning.
3445
3446 2001-01-15  Martin Buchholz  <martin@xemacs.org>
3447
3448         Make Purify happy when pdumping.
3449         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
3450         iniitalizing all bits of new lisp object memory.
3451         * symbols.c (Fmake_local_variable): Likewise.
3452         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
3453         * symbols.c (Fdefvaralias): Likewise.
3454         * mule-charset.c (vars_of_mule_charset): Likewise.
3455
3456 2001-01-15  Martin Buchholz  <martin@xemacs.org>
3457         Add the `-nd' flag when running pre-dump operations under the debugger.
3458         * .dbxrc (run-temacs): Add `-nd'.
3459         * .dbxrc (update-elc): Likewise.
3460         * .dbxrc (dump-temacs): Likewise.
3461         * .gdbinit (run-temacs): Likewise.
3462         * .gdbinit (check-temacs): Likewise.
3463         * .gdbinit (update-elc): Likewise.
3464         * .gdbinit (dump-temacs): Likewise.
3465
3466 2001-01-14  Martin Buchholz  <martin@xemacs.org>
3467
3468         Allow building 64-bit executables on AIX with GNU malloc, e.g.
3469         export OBJECT_MODE=64
3470         configure --pdump --use-union-type=no
3471         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
3472         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
3473
3474         * miscplay.c (sndcnv8U_2mono):
3475         Avoid two uses of `++' in the same expression.
3476         Suppresses a GCC warning.
3477
3478 2001-01-13  Martin Buchholz  <martin@xemacs.org>
3479
3480         Make sure future compilers don't miscompile alloc.c.
3481         * alloc.c:
3482         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
3483         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
3484
3485 2001-01-12  Martin Buchholz  <martin@xemacs.org>
3486
3487         * dumper.c: A little post-pdump-rename comment fixup.
3488
3489 2001-01-09  Jerry James  <james@eecs.ku.edu>
3490
3491         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
3492
3493 2001-01-13  Martin Buchholz  <martin@xemacs.org>
3494
3495         * *.[ch]: Globally rename symbols using the following `pdump-rename'
3496         script:
3497         #!/bin/sh
3498         replace_symbol () {
3499           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
3500         }
3501
3502         replace_symbol pdump_wire_lists pdump_weak_object_chains
3503         replace_symbol pdump_wire_list dump_add_weak_object_chain
3504
3505         replace_symbol pdump_wires pdump_root_objects
3506         replace_symbol pdump_wire dump_add_root_object
3507
3508         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
3509         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
3510
3511         replace_symbol dumpstructinfos pdump_root_struct_ptrs
3512         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
3513         replace_symbol dumpstructinfo pdump_root_struct_ptr
3514         replace_symbol dumpstruct dump_add_root_struct_ptr
3515
3516         replace_symbol dumpopaque dump_add_opaque
3517         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
3518         replace_symbol dumpopaqueinfos pdump_opaques
3519         replace_symbol dumpopaqueinfo pdump_opaque
3520
3521         replace_symbol nb_structdump nb_root_struct_ptrs
3522         replace_symbol nb_opaquedump nb_opaques
3523
3524         replace_symbol align_table pdump_align_table
3525         replace_symbol dump_header pdump_header
3526
3527         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
3528         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
3529
3530
3531 2001-01-12  Martin Buchholz  <martin@xemacs.org>
3532
3533         * s/aix4.h: Keep the C for AIX compiler from overaggressively
3534         optimizing bytecount_to_charcount().
3535
3536 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
3537
3538         * config.h.in:
3539         (HAVE_DLFCN_H): Removed.
3540         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
3541
3542 2001-01-06  Martin Buchholz  <martin@xemacs.org>
3543
3544         Portable dumper maintainability improvements.
3545         * alloc.c (staticpro):
3546         * alloc.c (staticpro_nodump):
3547         * alloc.c (garbage_collect_1):
3548         * alloc.c (reinit_alloc_once_early):
3549         * alloc.c (init_alloc_once_early):
3550         * alloc.c: Move dumper functions to alloc.c.
3551         * dumper.c (pdump_backtrace):
3552         * dumper.c (pdump_dump_structs):
3553         * dumper.c (pdump_dump_opaques):
3554         * dumper.c (pdump_dump_rtables):
3555         * dumper.c (pdump_dump_wired):
3556         * dumper.c (pdump):
3557         * dumper.c (pdump_load_check):
3558         * dumper.c (pdump_load_finish):
3559         * dumper.c (pdump_file_unmap):
3560         * dumper.c (pdump_file_get):
3561         * dumper.c (pdump_resource_free):
3562         * dumper.c (pdump_resource_get):
3563         * dumper.c (pdump_file_free):
3564         * dumper.c (pdump_file_try):
3565         * dumper.c (pdump_load):
3566         Remove fixed size limits on staticpro(), staticpro_nodump(),
3567         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
3568         Remove custom code for dumping lrecord_implementations_table - use
3569         dumpopaque instead.
3570         Remove (most of the) custom code for dumping staticpros - dump it
3571         like any other dynarr.
3572
3573         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
3574         * dumper.c: Moved functions from alloc.c.
3575         * alloc.c (dumpstruct): Moved to dumper.c.
3576         * alloc.c (dumpopaque): Likewise.
3577         * alloc.c (pdump_wire): Likewise.
3578         * alloc.c (pdump_wire_list): Likewise.
3579
3580         * lisp.h (Dynarr_sizeof): New.
3581         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
3582         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
3583         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
3584
3585         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
3586         * lisp.h (dumpopaque): ditto.
3587         * lisp.h (pdump_wire): ditto.
3588         * lisp.h (pdump_wire_list): ditto.
3589
3590 2001-01-09  Martin Buchholz  <martin@xemacs.org>
3591
3592         * make-src-depend (PrintPatternDeps):
3593         Use `sort' to make output independent of perl version.
3594
3595 2001-01-08  Martin Buchholz  <martin@xemacs.org>
3596
3597         Port to Netbsd 1.5.
3598         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
3599         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
3600
3601 2001-01-03  Didier Verna  <didier@xemacs.org>
3602
3603         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
3604         that `focus_frame' is alive before thinking of calling
3605         `redisplay_redraw_cursor' on it.
3606
3607 2001-01-08  Martin Buchholz <martin@xemacs.org>
3608
3609         * XEmacs 21.2.40 is released.
3610
3611 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
3612
3613         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
3614
3615 2001-01-06  Martin Buchholz  <martin@xemacs.org>
3616
3617         * alloc.c (dbg_valmask): Make const.
3618         * alloc.c (dbg_typemask): Make const.
3619         * alloc.c (dbg_USE_UNION_TYPE): Make const.
3620         * alloc.c (dbg_valbits): Make const.
3621         * alloc.c (dbg_gctypebits): Make const.
3622
3623 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
3624
3625         * redisplay-x.c (x_bevel_area):
3626         redisplay.h (struct rune):
3627         Typo fixes in comments.
3628
3629 2001-01-05  Andy Piper  <andy@xemacs.org>
3630
3631         * glyphs-x.c (x_redisplay_widget): use size changed for offset
3632         adjustment.
3633
3634         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
3635
3636 2001-01-05  Martin Buchholz  <martin@xemacs.org>
3637
3638         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
3639
3640         * mule-ccl.c (stack_idx_of_map_multiple):
3641         Non const global data must not be initialized!
3642         Found by MIYASHITA Hisashi.
3643
3644 2001-01-02  Andy Piper  <andy@xemacs.org>
3645
3646         * frame.c (change_frame_size): make sure frame size is always
3647         marked as changed.
3648
3649         * glyphs.c (image_instance_layout): minor code reuse.
3650
3651         * window.c (Fcurrent_window_configuration): revert previous
3652         change.
3653
3654 2001-01-02  Martin Buchholz  <martin@xemacs.org>
3655
3656         * glyphs.h:
3657         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
3658
3659 2000-12-31  Andy Piper  <andy@xemacs.org>
3660
3661         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
3662         when widget gets unmapped.
3663
3664         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
3665         function. Make sure widgets losing focus don't just drop it.
3666         (handle_focus_event_1): record the widget with focus.
3667
3668 2000-12-31  Andy Piper  <andy@xemacs.org>
3669
3670         * window.c (allocate_window): use
3671         make_image_instance_cache_hash_table.
3672         (make_dummy_parent): ditto.
3673         (Fset_window_configuration): ditto.
3674
3675         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
3676
3677         * glyphs.c (process_image_string_instantiator): use
3678         INSTANTIATOR_TYPE.
3679         (get_image_instantiator_governing_domain): ditto.
3680         (normalize_image_instantiator): ditto.
3681         (instantiate_image_instantiator): ditto.
3682         (make_image_instance_1): ditto.
3683         (image_instantiate): ditto. Key on glyph *and* instantiator type.
3684         (instantiator_eq_equal): new function for use with instance hash
3685         tables.
3686         (instantiator_eq_hash): ditto.
3687         (make_image_instance_cache_hash_table): create a suitable hash
3688         table for storing image instances.
3689
3690         * elhash.h (hash_table_weakness): new internal weakness type
3691         HASH_TABLE_KEY_CAR_VALUE_WEAK.
3692         declare new functions.
3693
3694         * elhash.c (finish_marking_weak_hash_tables): introduce yet
3695         another weakness type for glyphs.
3696         (make_standard_lisp_hash_table): new function split out from
3697         make_general_lisp_hash_table.
3698         (make_lisp_hash_table): call make_standard_lisp_hash_table.
3699         (hash_table_instantiate): ditto.
3700         (Fmake_hash_table): ditto.
3701
3702 2000-12-31  Martin Buchholz <martin@xemacs.org>
3703
3704         * XEmacs 21.2.39 is released.
3705
3706 2000-12-29  Andy Piper  <andy@xemacs.org>
3707
3708         * menubar.c (menubar_visible_p_changed): signal the frame changed.
3709
3710         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
3711         the frame has changed so that we pick up geometry changes such as
3712         menubar visibility.
3713
3714 2000-12-28  Andy Piper  <andy@xemacs.org>
3715
3716         * lastfile.c (my_ebss): make a char array so we can pad the
3717         bss. Fixes cygwin unexec.
3718
3719         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
3720
3721 2000-12-26  Andy Piper  <andy@xemacs.org>
3722
3723         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
3724         comments and try and be more precise about a non-/SIGIO world.
3725         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
3726         SIGIO.
3727
3728         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
3729         we don't normalize to zero width or height.
3730
3731 2000-12-24  Andy Piper  <andy@xemacs.org>
3732
3733         * Makefile.in.in (ldflags): add -mwindows when appropriate.
3734
3735 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
3736
3737         * s/sco5.h: SCO 5 has pty support.
3738
3739 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
3740
3741         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
3742         input-method-xlib.c contains whole contents of input-method-xfs.c,
3743         so we can use input-method-xlib.c's code for USE_XFONTSET
3744         using #ifdefs.
3745         * input-method-xfs.c: removed.
3746
3747 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
3748
3749         * file-coding.h (enum coding_category_type): reorder enumerators to
3750         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
3751         (now one greater than largest real coding_category_type enumerator).
3752         * file-coding.c (coding_category_symbol, coding_category_by_priority,
3753         coding_category_system, fcd_descriptihon_1, decode_coding_category,
3754         Fcoding_category_list, Fset_coding_priority_list,
3755         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
3756         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
3757
3758 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
3759
3760         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
3761         * redisplay-output.c (redisplay_output_window): Clear top of window
3762         when face is changed.
3763         * redisplay-x.c (x_redraw_exposed_window): Call
3764         redisplay_clear_top_of_window.
3765         * redisplay.h: Publish redisplay_clear_top_of_window.
3766
3767 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
3768
3769         * buffer.c (Fkill_buffer): Map over all devices.
3770         * window.c (window_loop): Remove UNSHOW_BUFFER code.
3771         (list_windows): New function.
3772         (list_all_windows): Ditto.
3773         (Freplace_buffer_in_windows): Use them.
3774
3775 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
3776
3777         * database.c (berkdb_subtype): Recognize new subtype `queue'.
3778         (Fopen_database): Use `db_create' instead of `db_open'.
3779         (syms_of_database): Initialize Qqueue.
3780
3781 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
3782
3783         * buffer.c (common_init_complex_vars_of_buffer): Initialize
3784         buffer_local_face_property.
3785         * buffer.h (struct buffer): New member buffer_local_face_property.
3786         * window.c (Fset_window_buffer):  Mark window's face as changed
3787         when buffer has buffer local face.
3788         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
3789         * objects.c (color_after_change): Set buffer_local_face_property
3790         when locale of face specifier is buffer.
3791         * objects.c (font_after_change): Ditto.
3792         * objects.c (face_boolean_after_change): Ditto.
3793         * glyphs.c (image_after_change): Ditto.
3794
3795 2000-12-09  Dan Holmsand  <dan@eyebee.com>
3796
3797         * nt.c (mswindows_fstat): Report file permissions, volume serial
3798         number, etc. Code adapted from FSF Emacs 20.7.
3799
3800 2000-12-09  Dan Holmsand  <dan@eyebee.com>
3801
3802         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
3803         of stat when we don't have symbolic links, to make sure
3804         mswindows_stat is called on mswindows.
3805
3806 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
3807
3808         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
3809
3810 2000-12-12  Martin Buchholz  <martin@xemacs.org>
3811
3812         * doprnt.c (emacs_doprnt_1): More printing fixes.
3813         Make printing of numbers compatible with libc and FSF Emacs.
3814         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
3815         Use the system printf to do most of the hard work of formatting,
3816         instead of doprnt_1().
3817         Calculate memory to allocate for format string.
3818         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
3819         (doprnt_1): Cleaner code and documentation.
3820
3821 2000-12-01  Jerry James  <james@eecs.ukans.edu>
3822
3823         * Makefile.in.in: Use the loop variable to install headers.
3824
3825 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
3826
3827         * window.c (Fsplit_window): Don't invalidate face cache.
3828
3829 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
3830
3831         * minibuf.c (Fall_completions): Undo the previous change
3832         which removed checking elements start with space.
3833
3834 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
3835
3836         * mule-canna.c: Didier suppression.
3837
3838 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
3839
3840         * mule-canna.c: rename static unsigned char buf[] to key_buffer
3841         (warning suppression).  Add English comment translations.
3842
3843 2000-12-05  Martin Buchholz  <martin@xemacs.org>
3844
3845         * unexelfsgi.c (unexec): Better test for mmap failure.
3846
3847 2000-12-05  Martin Buchholz <martin@xemacs.org>
3848
3849         * XEmacs 21.2.38 is released.
3850
3851 2000-12-05  Martin Buchholz  <martin@xemacs.org>
3852
3853         * redisplay.c (bar-cursor): Make a user variable.
3854
3855         * symsinit.h: Add init_postgresql_from_environment.
3856
3857 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
3858
3859         * regex.c: Convert to clean C.
3860
3861 2000-12-05  Dan Holmsand  <dan@eyebee.com>
3862
3863         * realpath.c:
3864         Don't #include sysfile.h. Revert to duplicating PATH_MAX
3865         initialization.
3866         (sys_readlink): renamed to system_readlink to avoid conflict with
3867         the other sys_readlink.
3868
3869 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
3870
3871         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
3872
3873 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
3874
3875         * postgresql.c (init_postgresql_from_environment): new function.
3876         (vars_of_postgresql): Move code initializing Lisp variables out and
3877         into init_postgresql_from_environment.
3878         emacs.c (main_1): Call init_postgresql_from_environment if and only
3879         if running a dumped XEmacs.
3880
3881 2000-08-31  Dan Holmsand  <dan@eyebee.com>
3882
3883         * buffer.c: Make find-file-compare-truenames default to true on
3884         windows.
3885
3886         * realpath.c (win32_abs_start):
3887         (cygwin_readlink):
3888         (win32_readlink): New functions.
3889         (xrealpath): Return really real filenames on windows.
3890
3891         * fileio.c (Ffile_truename): Make file-truename work on windows.
3892
3893 2000-11-29  Didier Verna  <didier@xemacs.org>
3894
3895         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
3896         * faces.c (update_face_cachel_data): use it.
3897         * faces.c (add_face_cachel): use it. Complete background pixmap
3898         frobbing in face cache if `update_face_cachel_data' has not done so.
3899
3900 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
3901
3902         * search.c (string_match_1): Don't set last_thing_searched
3903         when search failed.
3904
3905 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
3906
3907         * buffer.c: Include casetab.h
3908         (common_init_complex_vars_of_buffer): Use new case-table object.
3909         * buffer.h: Include casetab.h
3910         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
3911         (DOWNCASE_TABLE_OF): Ditto.
3912         * bufslots.h: Remove char-tables and add case-table.
3913         * casetab.c: Include casetab.h
3914         (CASE_TABLE_P): Removed.
3915         (mark_case_table): New function.
3916         (allocate_case_table): New function.
3917         (Fcase_table_p): Use new case-table.
3918         (case_table_char): New function.
3919         (Fget_case_table): Ditto.
3920         (Fput_case_table): Ditto.
3921         (Fput_case_table_pair): Ditto.
3922         (Fcopy_case_table): Ditto.
3923         (Fcurrent_case_table): Return case-table.
3924         (Fstandard_case_table): Return case-table.
3925         (Fset_case_table): Fix doc-string.
3926         (set_case_table): Use case-table
3927         (syms_of_casetab): DEFSUBR new functions.
3928         (complex_vars_of_casetab): Set up standard case-table.
3929         * casetab.h: New file.
3930         * editfns.c: Include casetab.h
3931         (Fcompare_buffer_substrings): Use case-table.
3932         * inline.c: Include casetab.h
3933         * lisp.h: Remove bogus extern.
3934         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
3935         * search.c: Include casetab.h
3936         (TRANSLATE_ASCII): Removed.
3937         (TRANSLATE): Unconditionally translate character.
3938         (looking_at_1): Use case-table.
3939         (string_match_1): Ditto.
3940         (fast_string_match): Ditto.
3941         (search_command): Ditto.
3942         (search_buffer): Separate boyer_moore.  Check whether
3943         boyer_moore is poosible.
3944         (simple_search): New function.
3945         (boyer_moore): Separated from search_buffer. Translate char.
3946
3947 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
3948
3949         * regex.c (RE_TR_ASCII): Removed.
3950         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
3951         (PATFETCH): Call PATFETCH_RAW.
3952         (PATFETCH_RAW): Fetch Emchar.
3953         (PATUNFETCH): Decrement charptr.
3954         (GET_BUFFER_SPACE): Rename b to buf_end.
3955         (BUF_PUSH): Ditto.
3956         (BUF_PUSH_2): Ditto.
3957         (BUF_PUSH_3): Ditto.
3958         (EXTEND_BUFFER): Ditto.
3959         (SET_LIST_BIT): Ditto.
3960         (regex_compile): Ditto.  Translate non ASCII char.
3961         (compile_range): Ditto.
3962         (re_search_2): Ditto.
3963         (re_match_2_internal): Compare Emchar.
3964         (bcmp_translate): Ditto.
3965
3966 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
3967
3968         * lisp.h (basic char/int typedefs):  comment improvement.
3969
3970 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
3971
3972         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
3973         unstomp inhibit_site_lisp.  Improve comments.
3974
3975 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
3976
3977         * mule-charset.c (Fcharset_property):  improve type checking, comments.
3978
3979 2000-11-28  Andy Piper  <andy@xemacs.org>
3980
3981         * redisplay-output.c (redisplay_output_subwindow): make sure we do
3982         clipped display for windows in the gutter also.
3983         (redisplay_display_boxes_in_window_p): change semantics of return
3984         codes to be more intuitive.
3985
3986         * gutter.h: declare display_boxes_in_gutter_p.
3987
3988         * gutter.c (display_boxes_in_gutter_p): new function for
3989         redisplay.
3990
3991 2000-11-22  Andy Piper  <andy@xemacs.org>
3992
3993         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
3994         autodetect domain.
3995
3996 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
3997
3998         * callproc.c (Fold_call_process_internal):
3999         * gpm.c (Freceive_gpm_event):
4000         (tty_get_foreign_selection): Might be just warning supression.
4001         * fileio.c (Fwrite_region_internal):
4002         (Fset_visited_file_modtime):
4003         * keymap.c (event_matches_key_specifier_p):
4004         Initialize GCPROed variable.
4005
4006         * menubar-x.c (command_builder_find_menu_accelerator):
4007         Initialize before use.
4008
4009 2000-11-23  Andy Piper  <andy@xemacs.org>
4010
4011         * unexcw.c (unexec): make the resulting executable executable.
4012
4013 2000-11-21  Martin Buchholz  <martin@xemacs.org>
4014
4015         * doc.c (get_doc_string):
4016         Use size_t, not int, for result of XSTRING_LENGTH.
4017
4018         * cmds.c (Fdelete_char):
4019         * cmds.c (Fpoint_at_eol):
4020         * cmds.c (Fself_insert_command):
4021         Use EMACS_INT, not int, for result of XINT.
4022         Someday, someone will want to insert more than 2**31 identical characters.
4023
4024         * cmds.c (Fdelete_char):
4025         * cmds.c (Fdelete_backward_char):
4026         * syntax.c (Fforward_word):
4027         * syntax.c (Fforward_comment):
4028         Make COUNT argument optional, for consistency with forward-char et al.
4029
4030 2000-11-22  Martin Buchholz  <martin@xemacs.org>
4031
4032         * lisp.h:
4033         * print.c (long_to_string):
4034         Return a useful value: the pointer at end of data written.
4035
4036         * doprnt.c:
4037         Use `static const char * const' for constant strings.
4038         (union printf_arg): Delete `i', `ui' members.
4039         (get_doprnt_args):
4040         (emacs_doprnt_1):
4041         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
4042         Do all printf-ing via the `l' specifier.
4043         Use EMACS_INT instead of int.
4044         Optimize.
4045
4046 2000-11-20  Didier Verna  <didier@xemacs.org>
4047
4048         * faces.c (update_face_cachel_data): don't frob the background
4049         pixmap when the window is being created. The face is needed but
4050         does not exist yet.
4051
4052 2000-11-20  Andy Piper  <andy@xemacs.org>
4053
4054         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
4055         messing with a debug environment.
4056
4057 2000-11-20  Martin Buchholz  <martin@xemacs.org>
4058
4059         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
4060
4061 2000-11-20  Martin Buchholz  <martin@xemacs.org>
4062
4063         * casetab.c (Fcase_table_p): Fix compile error and crash.
4064
4065 2000-11-18  Philip Aston  <philipa@mail.com>
4066
4067         * s/cygwin32.h: Cygwin has SVR4-like pty support.
4068
4069 2000-11-18  Martin Buchholz  <martin@xemacs.org>
4070
4071         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
4072         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
4073
4074 2000-11-17  Martin Buchholz  <martin@xemacs.org>
4075
4076         * config.h.in: Define HAVE_ELF_H if elf.h exists.
4077         * unexelf.c: Use HAVE_ELF_H.
4078         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
4079         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
4080         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
4081         Greg Harrington <greg_harrington@hotmail.com> provided a machine
4082         for testing.
4083         So this is an unexelfsgi.c from a different line of development.
4084
4085 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
4086
4087         * regex.c (RE_TR_ASCII): New function.
4088         (RE_TRANSLATE): Call it.
4089
4090 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
4091
4092         * buffer.h (TRT_TABLE_OF): Remove assert.
4093         (IN_TRT_TABLE_DOMAIN): Removed.
4094
4095 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
4096
4097         * free-hook.c (log_gcpro):
4098         (show_gcprohist): Add support for GCPRO5.
4099
4100 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
4101
4102         * emacs.c (main_1): Improve -sd error message when --pdump=no.
4103
4104 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
4105
4106         * symeval.h: Declare flush_all_buffer_local_cache.
4107
4108         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
4109         (flush_buffer_local_cache): Added.
4110         (flush_all_buffer_local_cache): Added.
4111
4112         * lrecord.h: Remove unused XD_LO_RESET_NIL.
4113
4114         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
4115         (pdump_dump_data): Ditto.
4116         (pdump_reloc_one): Ditto.
4117         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
4118         before dumping.
4119
4120
4121 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
4122
4123         * buffer.c: Remove if 0'ed entry.
4124         * buffer.h: Rewrite TRT to use char-table.
4125         * bufslots.h: Remove mirror tables.
4126         * casetab.c: Remove mirror tables.
4127         (CASE_TABLE_P): New macro.
4128         (Fcase_table_p): Element of a case table is string or char-table.
4129         (make_mirror_trt_table): Removed.
4130         (set_case_table): Setup char-table from strings for backward
4131         compatibility.
4132         * dired.c (Fdirectory_files):
4133         * dired-msw.c: (mswindows_get_files):
4134         * lisp.h: Change prototype of re_pattern_buffer.
4135         * regex.c: (RE_TRANSLATE): New macro.
4136         (TRANSLATE_P): Ditto.
4137         Change translate to type RE_TRANSLATE_TYPE.
4138         * regex.h: Define RE_TRANSLATE_TYPE
4139         * search.c (TRANSLATE): New macro.
4140         (TRANSLATE_ASCII): New macro.
4141         Translate table is changed to Lisp_Object.
4142         (signal_failure): Inhibit return.
4143
4144 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
4145
4146         * device-msw.c:
4147         * eldap.c:
4148         * event-Xt.c:
4149         * event-stream.c:
4150         * print.c:
4151         Do UNGCPRO before return.
4152
4153 2000-11-14  Martin Buchholz <martin@xemacs.org>
4154
4155         * XEmacs 21.2.37 is released.
4156
4157 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
4158
4159         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
4160         Add comments about discarded return value.
4161
4162 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
4163
4164         * callint.c:
4165         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
4166
4167 2000-10-27  Andy Piper  <andy@xemacs.org>
4168
4169         * gutter.c (Fset_default_gutter_position): default left and right
4170         gutters to visible.
4171         (calculate_gutter_size): calculate resonable heuristic for left
4172         and right gutter sizes.
4173         (specifier_vars_of_gutter): change left and right gutter sizes to
4174         autodetect.
4175         (calculate_gutter_size_from_display_lines): new function.
4176         (output_gutter): check for resizing on left and right gutters.
4177         (clear_gutter): don't special case top and left gutters.
4178         (specifier_vars_of_gutter): use new signature for
4179         set_specifier_caching.
4180
4181         * glyphs-x.c (x_redisplay_widget): spelling fix.
4182         * glyphs.c (specifier_vars_of_glyphs):
4183         * menubar.c (specifier_vars_of_menubar):
4184         * redisplay.c (specifier_vars_of_redisplay):
4185         * toolbar.c (specifier_vars_of_toolbar):
4186         * window.c (specifier_vars_of_window):
4187         * scrollbar.c (specifier_vars_of_scrollbar):
4188         (complex_vars_of_scrollbar): use new signature for
4189         set_specifier_caching.
4190
4191         * specifier.c (set_specifier_caching): include recompute flag.
4192         (recompute_one_cached_specifier_in_window): always recompute if
4193         flag set.
4194         (recompute_one_cached_specifier_in_frame): ditto.
4195
4196         * specifier.h (struct specifier_caching): add recompute flag.
4197
4198 2000-10-24  Andy Piper  <andy@xemacs.org>
4199
4200         * unexcw.c (copy_executable_and_dump_data_section): add new
4201         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
4202         5.0 happy.
4203
4204 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
4205
4206         * console-x.h (x_device): New member modifier_release_time.
4207         * event-Xt.c (x_handle_sticky_modifiers):
4208         Bound interval modifier keys are sticky.
4209         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
4210         * events.h: extern it.
4211
4212 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
4213
4214         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
4215
4216 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
4217
4218         * event-stream.c (execute_command_event): Preserve current_events
4219         and the like when event is misc-user-event.
4220         Inhibit quit during the call to maybe_echo_keys.
4221
4222 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
4223
4224         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
4225         symlink when buffer is killed.
4226         (inhibit_clash_detection): New variable.
4227
4228 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
4229
4230         * console.c (Fset_input_method): Trigger redisplay on tty.
4231
4232 2000-11-07  Martin Buchholz  <martin@xemacs.org>
4233
4234         * process.c (Fprocess_status): Revert to previous behavior:
4235         (process-status "nosuchprocess") ==> nil
4236
4237 2000-11-06  Martin Buchholz  <martin@xemacs.org>
4238
4239         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
4240         Work around another GCC 2.95.2 optimizer bug.
4241
4242 2000-11-02  Martin Buchholz  <martin@xemacs.org>
4243
4244         * process.c (Fget_process): Use LIST_LOOP_2.
4245         (kill_buffer_processes): Use LIST_LOOP_2.
4246
4247         * minibuf.c (Fall_completions):
4248         Delete old non-functional code for FSF fourth argument.
4249
4250         * frame.c (frame_matches_frame_spec):
4251         Renamed from `frame_matches_frametype'.  Update all callers.
4252         (device_matches_device_spec):
4253         Renamed from 'device_matches_console_spec'.  Update all callers.
4254
4255         * doc.c (Fsubstitute_command_keys):
4256         Remove buffer overflow crash.  Small code cleanups.
4257
4258         * casetab.c (check_case_table): Simpler code.
4259
4260         * window.c (Freplace_buffer_in_windows):
4261         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
4262         (and similar implementation) as Fdelete_windows_on.
4263         Update all callers.
4264
4265         * alloc.c (Fmake_list):
4266         * alloc.c (make_vector):
4267         * alloc.c (Fmake_vector):
4268         * alloc.c (make_bit_vector):
4269         * alloc.c (Fmake_bit_vector):
4270         * alloc.c (Fbit_vector):
4271         * alloc.c (Fmake_string):
4272         * alloc.c (Fpurecopy):
4273         * alloc.c (Fmemory_limit):
4274         * buffer.c:
4275         * buffer.c (Fget_buffer):
4276         * buffer.c (Fkill_buffer):
4277         * buffer.c (complex_vars_of_buffer):
4278         * bytecode.c (Fcompiled_function_stack_depth):
4279         * callint.c (Fprefix_numeric_value):
4280         * event-stream.c:
4281         * event-stream.c (Fread_key_sequence):
4282         * casetab.c:
4283         * casetab.c (Fcase_table_p):
4284         * casetab.c (check_case_table):
4285         * casetab.c (Fset_case_table):
4286         * casetab.c (Fset_standard_case_table):
4287         * chartab.c:
4288         * chartab.c (Fchar_table_type):
4289         * chartab.c (Freset_char_table):
4290         * chartab.c (Fget_char_table):
4291         * chartab.c (Fget_range_char_table):
4292         * chartab.c (Fput_char_table):
4293         * chartab.c (Fmap_char_table):
4294         * chartab.c (Fcategory_table_p):
4295         * chartab.c (Fcheck_category_at):
4296         * chartab.c (Fchar_in_category_p):
4297         * chartab.c (Fcategory_table):
4298         * chartab.c (Fcopy_category_table):
4299         * chartab.c (Fset_category_table):
4300         * chartab.c (Fcategory_designator_p):
4301         * chartab.c (Fcategory_table_value_p):
4302         * cmds.c (Fdelete_char):
4303         * cmds.c (Fdelete_backward_char):
4304         * cmds.c (Fself_insert_command):
4305         * cmds.c (Fself_insert_internal):
4306         * console.c (Fvalid_console_type_p):
4307         * console.c (Fcdfw_console):
4308         * console.c (Fconsole_type):
4309         * console.c (Fconsole_name):
4310         * console.c (Fconsole_device_list):
4311         * console.c (Fconsole_on_window_system_p):
4312         * data.c:
4313         * data.c (Feq):
4314         * data.c (Fold_eq):
4315         * data.c (Fsubr_interactive):
4316         * data.c (Fchar_to_int):
4317         * data.c (Fint_to_char):
4318         * data.c (Fsetcar):
4319         * data.c (Fsetcdr):
4320         * data.c (Fnumber_to_string):
4321         * data.c (Fstring_to_number):
4322         * data.c (Frem):
4323         * database.c (mark_database):
4324         * database.c (finalize_database):
4325         * database.c (Fdatabase_live_p):
4326         * database.c (Fdatabasep):
4327         * device-x.c (Fx_get_resource):
4328         * device.c (Fdfw_device):
4329         * dired.c:
4330         * dired.c (Ffile_name_completion):
4331         * dired.c (Ffile_name_all_completions):
4332         * dired.c (Fuser_name_completion):
4333         * dired.c (Fuser_name_completion_1):
4334         * dired.c (Fuser_name_all_completions):
4335         * doc.c (Fdocumentation):
4336         * doc.c (Fdocumentation_property):
4337         * doc.c (Fsubstitute_command_keys):
4338         * editfns.c:
4339         * editfns.c (Fchar_to_string):
4340         * editfns.c (Fstring_to_char):
4341         * editfns.c (Ftemp_directory):
4342         * editfns.c (Finsert_char):
4343         * editfns.c (Fbuffer_substring_no_properties):
4344         * editfns.c (Fnarrow_to_region):
4345         * editfns.c (Fchar_equal):
4346         * editfns.c (Fchar_Equal):
4347         * editfns.c (Ftranspose_regions):
4348         * emacs.c (Fdump_emacs):
4349         * eval.c (Fthrow):
4350         * eval.c (Fcommand_execute):
4351         * eval.c (Fautoload):
4352         * eval.c (Fbacktrace):
4353         * eval.c (Fbacktrace_frame):
4354         * events.c:
4355         * events.c (Fcopy_event):
4356         * events.c (Fcharacter_to_event):
4357         * events.c (Fevent_button):
4358         * events.c (Fevent_process):
4359         * extents.c:
4360         * extents.c (Fnext_extent_change):
4361         * extents.c (Fextent_property):
4362         * faces.c (Ffacep):
4363         * faces.c (Fmake_face):
4364         * file-coding.c:
4365         * file-coding.c (Fencode_shift_jis_char):
4366         * file-coding.c (Fencode_big5_char):
4367         * fileio.c (Ffile_name_directory):
4368         * fileio.c (Ffile_name_nondirectory):
4369         * fileio.c (Ffile_name_as_directory):
4370         * fileio.c (Fdirectory_file_name):
4371         * fileio.c (Ffile_truename):
4372         * fileio.c (Fsubstitute_in_file_name):
4373         * fileio.c (Ffile_modes):
4374         * fileio.c (Fset_file_modes):
4375         * fileio.c (Fset_default_file_modes):
4376         * fileio.c (Fverify_visited_file_modtime):
4377         * floatfns.c (Facos):
4378         * floatfns.c (Fasin):
4379         * floatfns.c (Fatan):
4380         * floatfns.c (Fcos):
4381         * floatfns.c (Fsin):
4382         * floatfns.c (Ftan):
4383         * floatfns.c (Fbessel_j0):
4384         * floatfns.c (Fbessel_j1):
4385         * floatfns.c (Fbessel_jn):
4386         * floatfns.c (Fbessel_y0):
4387         * floatfns.c (Fbessel_y1):
4388         * floatfns.c (Fbessel_yn):
4389         * floatfns.c (Ferf):
4390         * floatfns.c (Ferfc):
4391         * floatfns.c (Flog_gamma):
4392         * floatfns.c (Fexp):
4393         * floatfns.c (Fexpt):
4394         * floatfns.c (Flog):
4395         * floatfns.c (Flog10):
4396         * floatfns.c (Fsqrt):
4397         * floatfns.c (Fcube_root):
4398         * floatfns.c (Facosh):
4399         * floatfns.c (Fasinh):
4400         * floatfns.c (Fatanh):
4401         * floatfns.c (Fcosh):
4402         * floatfns.c (Fsinh):
4403         * floatfns.c (Ftanh):
4404         * floatfns.c (Fabs):
4405         * floatfns.c (Ffloat):
4406         * floatfns.c (Flogb):
4407         * floatfns.c (Fceiling):
4408         * floatfns.c (Ffloor):
4409         * floatfns.c (Fround):
4410         * floatfns.c (Ftruncate):
4411         * floatfns.c (Ffceiling):
4412         * floatfns.c (Fffloor):
4413         * floatfns.c (Ffround):
4414         * floatfns.c (Fftruncate):
4415         * fns.c (Fstring_equal):
4416         * fns.c (Fstring_lessp):
4417         * fns.c (concat2):
4418         * fns.c (concat3):
4419         * fns.c (vconcat2):
4420         * fns.c (vconcat3):
4421         * fns.c (Fsubstring):
4422         * fns.c (Fassoc):
4423         * fns.c (Fold_assoc):
4424         * fns.c (assoc_no_quit):
4425         * fns.c (Fassq):
4426         * fns.c (Fold_assq):
4427         * fns.c (assq_no_quit):
4428         * fns.c (Frassoc):
4429         * fns.c (Fold_rassoc):
4430         * fns.c (Frassq):
4431         * fns.c (Fold_rassq):
4432         * fns.c (rassq_no_quit):
4433         * fns.c (Fremassoc):
4434         * fns.c (remassoc_no_quit):
4435         * fns.c (Fremassq):
4436         * fns.c (remassq_no_quit):
4437         * fns.c (Fremrassoc):
4438         * fns.c (Fremrassq):
4439         * fns.c (remrassq_no_quit):
4440         * fns.c (Fsort):
4441         * fns.c (Fplist_get):
4442         * fns.c (Fplist_put):
4443         * fns.c (Fplist_remprop):
4444         * fns.c (Fplist_member):
4445         * fns.c (Flax_plist_get):
4446         * fns.c (Flax_plist_put):
4447         * fns.c (Flax_plist_remprop):
4448         * fns.c (Flax_plist_member):
4449         * fns.c (Fequal):
4450         * fns.c (Fold_equal):
4451         * fns.c (Frequire):
4452         * fns.c (Fbase64_encode_region):
4453         * fns.c (Fbase64_encode_string):
4454         * fns.c (Fbase64_decode_region):
4455         * frame.c:
4456         * frame.c (frame_matches_frame_spec):
4457         * frame.c (device_matches_device_spec):
4458         * frame.c (next_frame):
4459         * frame.c (previous_frame):
4460         * frame.c (Fnext_frame):
4461         * frame.c (Fprevious_frame):
4462         * frame.c (Fframe_property):
4463         * frame.c (Fset_frame_height):
4464         * frame.c (Fset_frame_size):
4465         * frame.h:
4466         * glyphs.c:
4467         * glyphs.c (if):
4468         * glyphs.c (decode_error_behavior_flag):
4469         * glyphs.c (Fmake_image_instance):
4470         * indent.c (Findent_to):
4471         * intl.c (Fignore_defer_gettext):
4472         * keymap.c (Fkeymapp):
4473         * keymap.c (Flookup_key):
4474         * lread.c:
4475         * lread.c (Fload_internal):
4476         * lread.c (Feval_buffer):
4477         * lread.c (Feval_region):
4478         * macros.c (Fexecute_kbd_macro):
4479         * marker.c (set_marker_internal):
4480         * marker.c (Fset_marker):
4481         * marker.c (set_marker_restricted):
4482         * marker.c (Fcopy_marker):
4483         * marker.c (noseeum_copy_marker):
4484         * menubar.c:
4485         * menubar.c (Fpopup_menu):
4486         * minibuf.c:
4487         * mule-charset.c (Fcharset_name):
4488         * mule-charset.c (Fchar_charset):
4489         * mule-charset.c (Fchar_octet):
4490         * mule-charset.c (Fsplit_char):
4491         * mule-wnnfns.c (Fwnn_open):
4492         * mule-wnnfns.c (Fwnn_dict_comment):
4493         * mule-wnnfns.c (Fwnn_quit_henkan):
4494         * mule-wnnfns.c (Fwnn_word_toroku):
4495         * mule-wnnfns.c (Fwnn_word_sakujo):
4496         * mule-wnnfns.c (Fwnn_word_use):
4497         * mule-wnnfns.c (Fwnn_hindo_set):
4498         * objects.c:
4499         * objects.c (Fmake_color_instance):
4500         * objects.c (Fmake_font_instance):
4501         * print.c (Fwrite_char):
4502         * process.c:
4503         * process.c (mark_process):
4504         * process.c (print_process):
4505         * process.c (get_process_from_usid):
4506         * process.c (Fprocessp):
4507         * process.c (Fprocess_live_p):
4508         * process.c (Fget_process):
4509         * process.c (Fget_buffer_process):
4510         * process.c (get_process):
4511         * process.c (Fprocess_id):
4512         * process.c (Fprocess_name):
4513         * process.c (Fprocess_command):
4514         * process.c (init_process_io_handles):
4515         * process.c (start_process_unwind):
4516         * process.c (Fstart_process_internal):
4517         * process.c (Fopen_multicast_group_internal):
4518         * process.c (Fset_process_window_size):
4519         * process.c (read_process_output):
4520         * process.c (send_process):
4521         * process.c (Fprocess_tty_name):
4522         * process.c (Fset_process_buffer):
4523         * process.c (Fprocess_buffer):
4524         * process.c (Fprocess_mark):
4525         * process.c (set_process_filter):
4526         * process.c (Fset_process_filter):
4527         * process.c (Fprocess_filter):
4528         * process.c (Fprocess_send_region):
4529         * process.c (Fprocess_send_string):
4530         * process.c (exec_sentinel):
4531         * process.c (Fset_process_sentinel):
4532         * process.c (Fprocess_sentinel):
4533         * process.c (status_notify):
4534         * process.c (Fprocess_status):
4535         * process.c (Fprocess_exit_status):
4536         * process.c (process_send_signal):
4537         * process.c (Fprocess_send_eof):
4538         * process.c (deactivate_process):
4539         * process.c (remove_process):
4540         * process.c (Fdelete_process):
4541         * process.c (kill_buffer_processes):
4542         * process.c (Fprocess_kill_without_query):
4543         * process.c (Fprocess_kill_without_query_p):
4544         * rangetab.c:
4545         * rangetab.c (Fget_range_table):
4546         * rangetab.c (Fput_range_table):
4547         * rangetab.c (Fremove_range_table):
4548         * rangetab.c (Fclear_range_table):
4549         * search.c:
4550         * search.c (Fskip_chars_forward):
4551         * search.c (Fskip_chars_backward):
4552         * search.c (Fskip_syntax_forward):
4553         * search.c (Fskip_syntax_backward):
4554         * search.c (search_command):
4555         * search.c (Freplace_match):
4556         * search.c (Fregexp_quote):
4557         * select.c (Fown_selection_internal):
4558         * select.c (Fselection_owner_p):
4559         * select.c (Fselection_exists_p):
4560         * select.c (Fget_selection_internal):
4561         * specifier.c:
4562         * symbols.c:
4563         * symbols.c (Fintern):
4564         * symbols.c (Fintern_soft):
4565         * symbols.c (Funintern):
4566         * symbols.c (Fapropos_internal):
4567         * symbols.c (Fset_default):
4568         * syntax.c:
4569         * syntax.c (Fsyntax_table_p):
4570         * syntax.c (Fcopy_syntax_table):
4571         * syntax.c (Fset_syntax_table):
4572         * syntax.c (Fchar_syntax):
4573         * syntax.c (syntax_match):
4574         * syntax.c (Fmatching_paren):
4575         * syntax.c (Fforward_word):
4576         * syntax.c (scan_lists):
4577         * syntax.c (Fscan_lists):
4578         * syntax.c (Fscan_sexps):
4579         * syntax.c (Fparse_partial_sexp):
4580         * toolbar.c (Fcheck_toolbar_button_syntax):
4581         * tooltalk.doc:
4582         * window.c:
4583         * window.c (Fwindowp):
4584         * window.c (Fwindow_live_p):
4585         * window.c (Fwindow_point):
4586         * window.c (Fdelete_window):
4587         * window.c (Fnext_window):
4588         * window.c (Fprevious_window):
4589         * window.c (Fother_window):
4590         * window.c (window_loop):
4591         * window.c (Fget_lru_window):
4592         * window.c (Fsplit_window):
4593         * window.c (Fenlarge_window):
4594         * window.c (Fenlarge_window_pixels):
4595         * window.c (Fshrink_window):
4596         * window.c (Fshrink_window_pixels):
4597         * window.c (change_window_height):
4598         * window.c (Fwindow_configuration_p):
4599         * window.c (Fcurrent_window_configuration):
4600         * window.h:
4601         * casefiddle.c (casify_object):
4602         * casefiddle.c (Fupcase):
4603         * casefiddle.c (Fdowncase):
4604         * casefiddle.c (Fcapitalize):
4605         * casefiddle.c (Fupcase_initials):
4606         * casefiddle.c (casify_region_internal):
4607         * casefiddle.c (casify_region):
4608         * casefiddle.c (Fupcase_region):
4609         * casefiddle.c (Fdowncase_region):
4610         * casefiddle.c (Fcapitalize_region):
4611         * casefiddle.c (Fupcase_initials_region):
4612         * casefiddle.c (Fupcase_word):
4613         * casefiddle.c (Fdowncase_word):
4614         * casefiddle.c (Fcapitalize_word):
4615         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
4616         Replace 0 with '\0' when working with bytes.
4617         Replace initial "(" with "\(" in docstrings.
4618
4619 2000-11-01  Martin Buchholz  <martin@xemacs.org>
4620
4621         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
4622
4623         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
4624
4625 2000-10-31  Martin Buchholz  <martin@xemacs.org>
4626
4627         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
4628
4629 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
4630
4631         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
4632         correctly.
4633
4634 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
4635
4636         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
4637         (inhibit_auto_save_session): New variable.
4638         (vars_of_fileio): Declare and initialize them.
4639         * fileio.c (Fdo_auto_save): Don't create session file if
4640         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
4641
4642 2000-10-31  Martin Buchholz  <martin@xemacs.org>
4643
4644         * sgiplay.c (play_internal): C++ compilability.
4645         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
4646         * callproc.c (Fold_call_process_internal):
4647         Remove unused vars `env', `first'.
4648         * scrollbar.c (update_scrollbar_instance):
4649         #### unused var `current_window'.
4650         * redisplay-tty.c: Put currently unused vars insert_mode_on,
4651         etc. within #ifdef NOT_YET.
4652         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
4653         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
4654         * specifier.c (specifier_instance):
4655         #### unused var `tag'.
4656         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
4657
4658 2000-10-27  Martin Buchholz  <martin@xemacs.org>
4659
4660         * fns.c (Fbutlast):
4661         * fns.c (list_sort):
4662         * fns.c (Ffillarray):
4663         * fns.c (bytecode_nconc2):
4664         * fns.c (Fnconc):
4665         * fns.c (mapcar1):
4666         * fns.c (Fmapconcat):
4667         Be pedantically 64-bit correct.  For the time when someone will
4668         want to have a list with length > 2**32.
4669
4670         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
4671         Work around MIPSpro compiler bug.
4672
4673         * process-unix.c (unix_kill_child_process): Add snarky comment.
4674         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
4675
4676         * config.h.in: Oops, _getpt ==> _getpty
4677
4678 2000-10-26  Martin Buchholz  <martin@xemacs.org>
4679
4680         * config.h.in:
4681         * regex.c:
4682         Use void*, not char*, as return type of alloca().
4683
4684         * alloc.c (free_marker): Side effect inside assert expression!
4685
4686 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
4687
4688         * mule-charset.c (Fset_charset_ccl_program): To check
4689         if the given ccl program is valid, use setup_ccl_program()
4690         instead of CHECK_VECTOR().
4691         (Fmake_charset): Likewise.
4692
4693 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
4694
4695         * faces.c (get_extent_fragment_face_cache_index):
4696         Fix cachel.merged_faces memory leak.
4697
4698 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
4699
4700         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
4701         Reset MSB of octets obtained by DECODE_SJIS
4702         because of the incompatibility with Emacs.
4703         (ccl_driver)<CCL_ENCODE_SJIS>:
4704         Set MSB of octets before passing them to
4705         ENCODE_SJIS because of the incompatibility
4706         with Emacs.
4707
4708 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
4709
4710         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
4711         (DECLARE_LRECORD): Undo the last change.
4712         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
4713
4714 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
4715
4716         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
4717         the implementation to lrecord_implementations_table.
4718
4719 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
4720
4721         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
4722         initial value of `lrecord_type_##c_name' and
4723         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
4724         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
4725         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
4726         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
4727         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
4728
4729 2000-10-17  Martin Buchholz  <martin@xemacs.org>
4730
4731         * miscplay.c (sndcnv8S_2mono):
4732         (sndcnv2monounsigned):
4733         (sndcnvULaw_2linear):
4734         (sndcnv16swap):
4735         Remove implementation-defined behavior.
4736
4737 2000-10-12  Martin Buchholz  <martin@xemacs.org>
4738
4739         * input-method-xlib.c: Warning suppression.
4740
4741 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
4742
4743         * mule-ccl.c: Sync up with Emacs 21.0.90.
4744         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
4745         Do nothing.
4746         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
4747         Likewise.
4748         (ccl_driver[WriteMultibyteChar2]): Bug fix.
4749         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
4750         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
4751         leading char belongs to official 2-dimensional charset.
4752         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
4753         write the given character as is.  Otherwise,
4754         if it is a multibyte char, convert it by
4755         non_ascii_set_charptr_emchar, then write it.
4756         (CCL_WRITE_STRING): Likewise.
4757         (ccl_get_compiled_code): New function.
4758         (setup_ccl_program): When ccl_prog is invalid,
4759         return -1.
4760         (Fregister_code_conversion_map): New function.
4761         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
4762
4763         * mule-ccl.h: Sync up with Emacs 21.0.90.
4764         (Fregister_ccl_program): export it.
4765
4766         * redisplay-msw.c (separate_textual_runs):
4767         If ccl program is not valid, don't do ccl conversion.
4768
4769         * redisplay-x.c (separate_textual_runs): Ditto.
4770
4771         * file-coding.c (Fmake_coding_system):
4772         When type is ccl and value is vector, register it
4773         with a proper symbol.  And checks whether the
4774         given ccl program is valid.
4775         (mule_decode): When calling ccl_driver, if src indicates
4776         NULL pointer, set an empty string instead.
4777         (mule_encode): Likewise.
4778
4779 2000-10-11  Martin Buchholz  <martin@xemacs.org>
4780
4781         The following large batch of changes gets us back to a state of
4782         C++ compilability.  Extbyte is now a char, which means that
4783         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
4784
4785         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
4786
4787         * sound.c (Fplay_sound): Type correctness.
4788
4789         * select-x.c (hack_motif_clipboard_selection): Type correctness.
4790         (x_get_window_property): Type correctness.
4791         (receive_incremental_selection): unsigned char ==> Extbyte
4792         (selection_data_to_lisp_data): unsigned char ==> Extbyte
4793         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
4794         (Fx_store_cutbuffer_internal): Type correctness.
4795
4796         * process-unix.c (try_to_initialize_subtty): Type correctness.
4797
4798         * objects-x.c (x_print_color_instance): Type correctness.
4799         (x_print_font_instance): Type correctness.
4800         (x_list_fonts): SExtbyte ==> Extbyte.
4801         (valid_x_font_name_p): SExtbyte ==> Extbyte.
4802         (x_find_charset_font): SExtbyte ==> Extbyte.
4803         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
4804         (truename_via_XListFonts): SExtbyte ==> Extbyte.
4805         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
4806         Use bufbyte_strcmp.
4807
4808         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
4809         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
4810         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
4811         (BYTE_C0_P): Use bit ops for char-signedness safety.
4812         (BYTE_C1_P): Use bit ops for char-signedness safety.
4813         (CHARSET_BY_LEADING_BYTE):
4814         (CHARSET_BY_ATTRIBUTES):
4815         Always use inline function.
4816         Use type_checking_assert.
4817         Hide chlook.
4818
4819         * mule-charset.c (non_ascii_charptr_copy_char):
4820         Modify to work with both ASCII and non-ASCII characters.
4821         Improve docs and variable names.
4822         Replace over-clever fall-through switch with a simple loop.
4823         (Lstream_get_emchar_1):
4824         Replace over-clever fall-through switch with a simple loop.
4825
4826         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
4827         Warning suppression.
4828
4829         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
4830         the return value of Lstream_getc, which could be EOF as well.
4831
4832         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
4833
4834         * lisp.h: Make Extbyte a char, not unsigned char, so that external
4835         APIs can be used on Extbytes without casts.  Risky!
4836         (SExtbyte): Remove.
4837         (UExtbyte): Remove.
4838
4839         * input-method-xlib.c (XIM_init_device):
4840         Use Xlib.h instead of IntrinsicP.h.
4841         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
4842         which will break in X11R7.
4843         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
4844         to call XRegisterIMInstantiateCallback with correct types.
4845
4846         * gui-x.c (button_item_to_widget_value): Type correctness.
4847
4848         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
4849
4850         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
4851         (xbm_instantiate_1): Type correctness.
4852         (BUILD_GLYPH_INST):  Type correctness.
4853
4854         * fileio.c (Fsubstitute_in_file_name): Type correctness.
4855
4856         * file-coding.c:
4857         (decode_coding_sjis):
4858         (decode_coding_big5):
4859         (decode_coding_ucs4):
4860         (decode_coding_utf8):
4861         (decode_coding_iso2022):
4862         (decode_coding_no_conversion):
4863         Make all decoding functions take an Extbyte * arg.
4864         (encode_coding_sjis):
4865         (encode_coding_big5):
4866         (encode_coding_ucs4):
4867         (encode_coding_utf8):
4868         (encode_coding_iso2022):
4869         (encode_coding_no_conversion):
4870         Make all encoding functions take a Bufbyte * arg.
4871         Use size_t instead of unsigned int for memory sizes.
4872         Only cast to unsigned char whenever dereferencing Extbyte *.
4873
4874         * doc.c (unparesseuxify_doc_string): Type correctness.
4875
4876         * console-x.c (split_up_display_spec):
4877         Rewrite without using details of internal string representation.
4878         (x_semi_canonicalize_device_connection): Type correctness.
4879
4880         * config.h.in:
4881         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
4882         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
4883         (HAVE_XFREE386): Removed.
4884
4885         * buffer.h (DEC_CHARPTR): `const' correctness.
4886         (bufbyte_strcmp): New.
4887         (bufbyte_memcmp): New.
4888
4889         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
4890
4891         * buffer.h (XCHAR_OR_CHAR_INT):
4892         Always use inline function.
4893         Remove redundant type checking assert() - XINT will abort quite nicely.
4894
4895 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
4896
4897         * search.c (Freplace_match): Set newtext to an empty string.
4898
4899 2000-10-10  Martin Buchholz  <martin@xemacs.org>
4900
4901         * s/decosf1-3.h: Remove #include of stropts.h
4902         * s/ptx.h: Remove #include of stropts.h
4903         * s/usg5-4.h: Remove #include of stropts.h
4904         * sysproc.h:
4905         * config.h.in:
4906         Use stropts.h, not sys/stropts.h.
4907         Use strtio.h, not sys/strtio.h.
4908
4909 2000-10-04  Martin Buchholz <martin@xemacs.org>
4910
4911         * XEmacs 21.2.36 is released.
4912
4913 2000-09-21  Andy Piper  <andy@xemacs.org>
4914
4915         * glyphs-x.c (x_redisplay_widget): make sure non-structural
4916         changes still involve copying the widget tree.
4917         (update_widget_face): make sure a change is register in the widget
4918         tree. Call update_tab_widget_face appropriately.
4919         (update_tab_widget_face): ditto.
4920         (x_tab_control_redisplay): make sure non-structural changes still
4921         involve copying the widget tree.
4922
4923 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
4924
4925         * lread.c (locate_file): Check the path element is non-nil.
4926
4927 2000-10-02  Martin Buchholz  <martin@xemacs.org>
4928
4929         * lisp.h: Warning suppression for SCO compilers.
4930
4931         * redisplay-tty.c (reset_tty_modes): Fix crash.
4932         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
4933
4934 2000-09-27  Martin Buchholz  <martin@xemacs.org>
4935
4936         Big signal/process handling overhaul.  Bugs fixed:
4937         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
4938         M-x comint-kill-subjob should work for both values nil and t of
4939         process-connection-type. It was broken on most platforms.
4940         Testing on Irix and Cygwin still needed.  Other plaforms tested.
4941         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
4942         * process-unix.c: Signal/Process handling overhaul.
4943         (pty_name): make 64 bytes, as `expect' does, for paranoia.
4944         (allocate_pty): Use all available modern methods of allocating
4945         ptys, falling back to old style BSD allocation as a last resort.
4946         Use allegedly more secure Unix98 pty allocation by default.
4947         (allocate_pty_the_old_fashioned_way): New. the last resort.
4948         (unix_create_process): Push ptem, ldterm, ttcompat where
4949         available.  Autoconfiscate.
4950         (try_to_initialize_subtty): New.
4951         (unix_kill_child_process): Proper signal handling for ptys on most
4952         platforms, using special knowledge of AIX, BSD, etc...
4953         (unix_create_process): Always disconnect_controlling_terminal() for
4954         subprocesses, whether using ptys or not.
4955         * process.h: Remove old getpt-dependent PTY code.
4956         * process.c (Fprocess_send_signal): New, obvious generic function.
4957         (decode_signal): New.
4958         (Finterrupt_process):
4959         (Fkill_process):
4960         (Fquit_process):
4961         (Fstop_process):
4962         (Fcontinue_process):
4963         (Fsignal_process): Use decode_signal.
4964         (process_send_signal):
4965         Many docstring corrections.
4966         Allow any signal to be sent to a process object.
4967         * config.h.in: Add symbols for big signal/process overhaul.
4968         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
4969         * sysproc.h: Include process-related headers, where available:
4970         sys/stropts.h sys/strtio.h pty.h libutil.h
4971         * s/irix4-0.h:
4972         * s/irix5-0.h:
4973         * s/cygwin32.h:
4974         * s/gnu.h:
4975         * s/linux.h:
4976         * s/hpux.h:
4977         * s/aix3-1.h:
4978         Remove old S&M pty stuff.
4979         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
4980         * systty.h: Simplify cpp hackery, improve comments.
4981         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
4982
4983         * editfns.c (Fformat_time_string):
4984         Be a little more paranoid with the return value of ctime.
4985
4986         * fileio.c (check_executable):
4987         (check_writable):
4988         Use symbolic constants X_OK, W_OK.
4989
4990         * console-x.c (split_up_display_spec): Fix a warning.
4991
4992 2000-10-02  Martin Buchholz  <martin@xemacs.org>
4993
4994         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
4995         * ntproc.c (sys_spawnve): make_string ==> build_string
4996         Small clarity improvements.
4997
4998 2000-09-30  Martin Buchholz  <martin@xemacs.org>
4999
5000         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
5001
5002         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
5003
5004         * config.h.in (HAVE_STRCASECMP): Remove.
5005
5006 2000-09-29  Martin Buchholz  <martin@xemacs.org>
5007
5008         * redisplay-output.c (redisplay_output_pixmap):
5009         Cleaner and possibly more 64-bit correct code.
5010
5011 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
5012
5013         * dumper.c (pdump_load_finish): move restoration of
5014         `noninteractive1' to emacs.c (main_1).
5015         * emacs.c (main_1): protect LISP-visible command-line flags
5016         from pdump_load().
5017
5018 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
5019
5020         * Makefile.in.in (versionclean):  Use EXE_TARGET and
5021         DUMP_TARGET instead of literal program names.
5022
5023 2000-09-20  Martin Buchholz  <martin@xemacs.org>
5024
5025         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
5026
5027 2000-09-19  Martin Buchholz  <martin@xemacs.org>
5028
5029         * *: Spelling mega-patch
5030
5031 2000-09-19  Martin Buchholz  <martin@xemacs.org>
5032
5033         * fns.c (bad_bad_turtle):
5034         Delete "Eek!" comment, since we fixed the bug to which it refers.
5035
5036 2000-09-16  Martin Buchholz  <martin@xemacs.org>
5037
5038         * alloca.c: Replace REGISTER with register.
5039
5040 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
5041
5042         * file-coding.c (ucs_to_char): Use countof.
5043
5044 2000-09-16  Martin Buchholz  <martin@xemacs.org>
5045
5046         * file-coding.c: (ucs_to_char):
5047         (complex_vars_of_file_coding):
5048         Use countof instead of sizeof.
5049         Use CHECK_NATNUM instead of CHECK_INT.
5050
5051         * sysdep.c (strcasecmp): Remove.
5052         * device-x.c (ascii_strcasecmp): New.
5053         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
5054         Avoid using non-standard non-portable strcasecmp.
5055
5056 2000-09-16  Martin Buchholz  <martin@xemacs.org>
5057
5058         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
5059         * font-lock.c: remove reference to emacsfns.h.
5060         * search.c: small doc improvement.
5061         * event-Xt.c: correct file names in comments.
5062         * console-x.h Correct file names in comments.
5063         * frame.c: Correct file names in comments.
5064         * event-stream.c: remove Energize from comments.
5065
5066 2000-09-15  Martin Buchholz  <martin@xemacs.org>
5067
5068         * symeval.h (DEFERROR_STANDARD):
5069         (DEFERROR):
5070         (DEFSYMBOL):
5071         (DEFSYMBOL_NO_DUMP):
5072         (DEFSYMBOL_MULTIWORD_PREDICATE):
5073         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
5074         (DEFKEYWORD):
5075         The construct &##name is not sensible C.
5076         Fixes compilation errors with Unixware native compiler.
5077
5078 2000-09-14  Martin Buchholz  <martin@xemacs.org>
5079
5080         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
5081         (next_frame_internal): Removed.  We now just have next_frame.
5082         (next_frame):
5083         Write a simpler and cleaner one-pass algorithm.
5084         Remove called_from_delete_device arg and #ifdefed-out code.
5085         (previous_frame):
5086         Renamed from prev_frame.  Update callers.
5087         Cleaned up to have an analogous implementation to next_frame.
5088         (other_visible_frames_internal): Remove the
5089         called_from_delete_device bogus arg, and hence, remove this
5090         function.  Just use other_visible_frames().
5091
5092         * window.c (Fnext_window):
5093         Prettify docstring.
5094         Since next_frame() is guaranteed to return a frame, remove check
5095         for nil inserted in previous patch.
5096         (Fprevious_window):
5097         Prettify docstring.
5098         Make code look more like Fnext_window.
5099         (window_loop):
5100         Respect the `console' arg when iterating through windows.
5101         Fixes bug: (get-buffer-window buffer t device) not respecting
5102         the `device' arg.
5103         This function needs more work, as others have pointed out.
5104
5105         * frame.h: Rename prev_frame to previous_frame.
5106         device_matches_console_spec no longer takes a `frame' arg.
5107
5108         * s/gnu.h:
5109         * s/linux.h:
5110         * s/hpux.h:
5111         Use EMACS_BLOCK_SIGNAL instead of sigblock.
5112         From "Golubev I. N." <gin@mo.msk.ru>.
5113
5114         * make-src-depend: Fix typo.
5115
5116 2000-09-13  Martin Buchholz  <martin@xemacs.org>
5117
5118         * window.c (Fnext_window):
5119         next_frame() might return nil, not a frame.
5120         Fixes this crash:
5121         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
5122
5123         * frame.c (next_frame_internal):
5124         We've passed a frame if we've passed its device.
5125         Fixes this crash:
5126         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
5127 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
5128
5129 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
5130
5131         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
5132         Allow option to suppress accelerators in menu/dialog items.
5133         (populate_or_checksum_helper): Pass dialog title through above.
5134
5135 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
5136
5137         * event-msw.c (mswindows_key_to_emacs_keysym):
5138         Add "pause" key, fix "menu" key.
5139
5140 2000-09-09  Martin Buchholz  <martin@xemacs.org>
5141
5142         * eval.c (reinit_vars_of_eval):
5143         Increase max_lisp_eval_depth to 1000,
5144         required for thai-xtis.el to byte-compile under some circumstances.
5145
5146 2000-09-04  Martin Buchholz  <martin@xemacs.org>
5147
5148         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
5149         From Kenichi Handa.
5150
5151 2000-09-01  Martin Buchholz  <martin@xemacs.org>
5152
5153         * make-src-depend: Make the generated Makefiles smaller.
5154
5155         * s/hpux.h (SETUP_SLAVE_PTY):
5156         Provide a %d in the format string for the errno argument.
5157
5158         * editfns.c (Ftemp_directory):
5159         Warning fix.
5160         Avoid buffer overrun on very long file name.
5161
5162         * input-method-xlib.c (XIM_init_device):
5163         6th parameter of XRegisterIMInstantiateCallback has different
5164         pointer types on different OSes, so simply cast to (void *).
5165
5166         * unexhp9k800.c: Warning fixes.  Fiddly changes.
5167
5168         * sysdll.c (dll_open):
5169         shl_load will hang hard if passed a NULL filename.
5170         Simply return NULL for compatibility with dlopen.
5171         * sysdll.c: Conform to XEmacs coding standards.
5172
5173         * sysdep.c (get_pty_max_bytes):
5174         Support pty input lines longer than 512 bytes on HP-UX 10.20.
5175
5176 2000-08-31  Martin Buchholz  <martin@xemacs.org>
5177
5178         * tooltalk.c: Add #include <syssignal.h>
5179
5180 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
5181
5182         * s/hpux.h: Don't use undefined function sigunblock().
5183
5184 2000-08-31  Martin Buchholz  <martin@xemacs.org>
5185
5186         * config.h.in: Add HAVE_BALLOON_HELP.
5187         * emacs.c: Use HAVE_BALLOON_HELP.
5188         * Makefile.in.in (x_objs):
5189         Make Balloon Help conditional on finding shape.h.
5190
5191 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
5192
5193         * syntax.c (regex_emacs_buffer_p): New variable.
5194         * syntax.h (regex_emacs_buffer_p): extern.
5195         * search.c (looking_at_1):
5196         (string_match_1):
5197         (fast_string_match):
5198         (search_buffer): Set regex_emacs_buffer_p.
5199         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
5200         when before_dot, at_dot, after_dot.
5201
5202 2000-08-23  Andy Piper  <andy@xemacs.org>
5203
5204         * gui-x.c (popup_selection_callback): Only set action_occurred
5205         when we really have an image instance.
5206         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
5207
5208 2000-08-23  Andy Piper  <andy@xemacs.org>
5209
5210         * gui-msw.c (mswindows_handle_gui_wm_command): set
5211         action_occurred.
5212         * gui-x.c (popup_selection_callback): ditto.
5213
5214         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
5215         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
5216         (struct Lisp_Image_Instance): add action_occurred flag.
5217
5218         * glyphs.c (redisplay_subwindow): use action_occurred flag.
5219         (image_instance_changed): ditto.
5220         (reset_frame_subwindow_instance_cache): only unmap windows - do
5221         not remove them from the cache also.
5222
5223         * glyphs-widget.c (tab_control_update): better debug.
5224         (progress_gauge_update): ditto.
5225         (layout_update): ditto.
5226         (layout_instantiate): ditto.
5227         (tab_control_order_only_changed): cope with null pending items.
5228
5229         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
5230         debug. Force selection of an item when an action occurred. Cope
5231         with null pending_items.
5232         (mswindows_progress_gauge_redisplay): better debug.
5233         * glyphs-x.c (x_tab_control_redisplay): ditto.
5234
5235         * redisplay.c (redisplay_frame): reset the frame cache if the
5236         frame is garbaged.
5237
5238         * window.c (Fset_window_configuration): potentially re-enable
5239         frame cache reset.
5240         (window_unmap_subwindows): need to finalize instances here since
5241         it is only used in mark_window_as_deleted.
5242
5243 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
5244
5245         * nas.c (SndOpenDataForReading):
5246         nas.c (WaveOpenDataForReading):
5247         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
5248         Somehow escaped from the 2000-08-14 patch.
5249
5250 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5251
5252         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
5253         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
5254
5255 2000-08-21  Andy Piper  <andy@xemacs.org>
5256
5257         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
5258         window if it is not already displayed.
5259
5260         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
5261         it is not already displayed.
5262
5263         * window.c (Fset_window_configuration): don't reset the frame
5264         cache.
5265
5266         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
5267         instances from the frame cache if we are actually finalizing them.
5268         (reset_frame_subwindow_instance_cache): reset frame cache only
5269         after unmapping everything.
5270         (map_subwindow): set displayed flag after mapping.
5271
5272 2000-08-21  Martin Buchholz  <martin@xemacs.org>
5273
5274         * data.c (indirect_function):
5275         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
5276
5277         * eval.c (function_argcount):
5278         Use original function when signaling errors.
5279
5280 2000-08-18  Andy Piper  <andy@xemacs.org>
5281
5282         * frame.c (delete_frame_internal): use new
5283         free_frame_subwindow_instances name.
5284
5285         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
5286         (add_tab_item): make return type correct.
5287         (mswindows_tab_control_instantiate): assert index of tab.
5288         (mswindows_tab_control_redisplay): Re-code to use
5289         gui_item_equal_sans_selected and gui_item_list_find_selected.
5290
5291         * glyphs-widget.c (tab_control_update): Correct comment.
5292
5293         * window.c (window_unmap_subwindows): use new
5294         unmap_subwindow_instance_cache_mapper.
5295         (window_unmap_subwindows_cache_mapper): deleted.
5296         (Fset_window_configuration): comparisons should now be with
5297         EQ. Preserve the subwindow instance cache across configuration
5298         changes.
5299         (allocate_window): ditto.
5300         (make_dummy_parent): ditto.
5301
5302         * glyphs.c (free_frame_subwindow_instances): rename from
5303         free_frame_subwindow_instance_cache. finalize all instances rather
5304         than just those in the display cache.
5305         (finalize_all_subwindow_instances): walk windows unmapping and
5306         finalizing subwindows.
5307         (unmap_subwindow_instance_cache_mapper): moved from
5308         window.c. Allow finalization as well as unmapping.
5309
5310         * gui.c (gui_item_list_find_selected): new function.
5311
5312         * gui.h (gui_item_list_find_selected): declare.
5313
5314         * glyphs-x.c (x_tab_control_redisplay): pick tab
5315         explicitly. Re-code to use gui_item_equal_sans_selected and
5316         gui_item_list_find_selected.
5317
5318         * glyphs-x.h: add lwlib-utils.h
5319
5320         * buffer.c (Frecord_buffer): undo previous change.
5321
5322 2000-08-09  Vin Shelton  <acs@xemacs.org>
5323
5324         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
5325         possible.  Create temporary files more securely.  The patch was
5326         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
5327         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
5328         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
5329         for details.
5330
5331 2000-08-07  Ben Wing  <ben@xemacs.org>
5332
5333         * getloadavg.c: remove duplicate (and windows-breaking)
5334         includes of fcntl.h and sys/file.h.
5335
5336         * nt.c: remove duplicate getloadavg() definition.
5337
5338         * sysdll.h (Qdll_filename_encoding): add missing stand-in
5339         encodings.
5340
5341 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
5342
5343         * eval.c (function_argcount): If function needs to be autoloaded
5344         actually use the loaded definition.
5345         GCPRO function.
5346
5347 2000-08-05  Ben Wing  <ben@xemacs.org>
5348
5349         * getloadavg.c: add prototype for getloadavg().  remove
5350         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
5351         of the code).  remove duplicate header includes.
5352
5353         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
5354
5355         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
5356         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
5357         useful load average.
5358
5359         * alloc.c (reinit_alloc_once_early): removed references to
5360         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
5361         the lisp vars are the only things referencing the malloc_sbrk_*
5362         vars, and they were already if 0'd out.  these vars only exist
5363         in the older malloc.c, which is basically unused, and they're
5364         only for informational purposes.
5365
5366         * m\*.h: removed useless VIRT_ADDR_VARIES.
5367
5368         * m\powerpc.h: removed stray NO_ARG_ARRAY.
5369
5370 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
5371
5372         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
5373         color if the image is a mono pixmap.
5374
5375 2000-07-30  Ben Wing  <ben@xemacs.org>
5376
5377         * Makefile.in.in (release):
5378         Remove stray @.
5379
5380         * buffer.c (directory_is_current_directory):
5381         * dired-msw.c (mswindows_get_files):
5382         * dired.c:
5383         * dired.c (Fdirectory_files):
5384         * dired.c (file_name_completion_stat):
5385         * dired.c (Ffile_attributes):
5386         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
5387         preprocessor tricks, to avoid problems on some machines
5388         (e.g. SCO).
5389
5390         * callproc.c (egetenv): GC docs.
5391
5392         * console-msw.h:
5393         * console-msw.h (struct mswindows_dialog_id):
5394         * lrecord.h (lrecord_type):
5395         New object for use with MSW dialogs.
5396
5397         * console.h (struct console_methods):
5398         New enable/disable frame methods, for proper modal dialogs.
5399
5400         * device-msw.c (msprinter_default_printer): Fix to follow
5401         proper Mule conventions.
5402
5403         * device-msw.c:
5404         * device-msw.c (signal_open_printer_error):
5405         * device-msw.c (msprinter_init_device):
5406         * device-msw.c (ensure_not_printing):
5407         * device-msw.c (plist_get_margin):
5408         * device-msw.c (Fmsprinter_select_settings):
5409         * device-msw.c (finalize_devmode):
5410         * device-msw.c (Fmsprinter_settings_despecialize):
5411         * device-msw.c (signal_enum_priner_error):
5412         * extents.c (decode_extent):
5413         * extents.c (decode_map_extents_flags):
5414         * extents.c (decode_extent_at_flag):
5415         * extents.c (Fextent_at):
5416         * extents.c (Fextents_at):
5417         * extents.c (symbol_to_glyph_layout):
5418         [[[[2]]]] Use structured errors.
5419
5420         * dialog-msw.c:
5421         * dialog-msw.c (mswindows_is_dialog_msg):
5422         * dialog-msw.c (mark_mswindows_dialog_id):
5423         * dialog-msw.c (dialog_proc):
5424         * dialog-msw.c (handle_question_dialog_box):
5425         * dialog-msw.c (syms_of_dialog_mswindows):
5426         Define new object to clean up marking; use it as a dialog identifier.
5427         Call new delete-dialog-box-hook.
5428
5429         * dialog-x.c (dbox_selection_callback):
5430         * dialog-x.c (dbox_descriptor_to_widget_value):
5431         * dialog-x.c (x_make_dialog_box_internal):
5432         Call new delete-dialog-box-hook.
5433         Return an id.
5434
5435         * dialog.c:
5436         * dialog.c (syms_of_dialog):
5437         * dialog.c (vars_of_dialog):
5438         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
5439
5440         * eval.c:
5441         * eval.c (signal_call_debugger):
5442         when noninteractive, output stack traces on the console instead
5443         of in a (never-seen) buffer.
5444
5445         * eval.c (signal_type_error):
5446         * eval.c (invalid_argument_2):
5447         * lisp.h:
5448         new funs for use w/structured errors.
5449
5450         * event-Xt.c:
5451         * event-Xt.c (x_to_emacs_keysym):
5452         * event-Xt.c (describe_event):
5453         * event-Xt.c (emacs_Xt_event_handler):
5454         * event-Xt.c (vars_of_event_Xt):
5455         * event-msw.c:
5456         * event-msw.c (mswindows_wnd_proc):
5457         * event-msw.c (vars_of_event_mswindows):
5458         rename {x,mswindows}-debug-events to debug-{}-events for
5459         consistency with other debug-foo variables.
5460
5461         * event-stream.c:
5462         document next-event more clearly.
5463
5464         * fileio.c (Ffile_name_directory):
5465         * fileio.c (Ffile_name_nondirectory):
5466         * fileio.c (Funhandled_file_name_directory):
5467         * fileio.c (file_name_as_directory):
5468         * fileio.c (Ffile_name_as_directory):
5469         * fileio.c (directory_file_name):
5470         * fileio.c (Fdirectory_file_name):
5471         * fileio.c (Fmake_temp_name):
5472         * fileio.c (Ffile_truename):
5473         * fileio.c (Fsubstitute_in_file_name):
5474         * fileio.c (expand_and_dir_to_file):
5475         * fileio.c (barf_or_query_if_file_exists):
5476         * fileio.c (check_executable):
5477         * fileio.c (Ffile_exists_p):
5478         * fileio.c (Ffile_writable_p):
5479         * fileio.c (Ffile_directory_p):
5480         * fileio.c (Ffile_regular_p):
5481         * fileio.c (Ffile_modes):
5482         * fileio.c (Ffile_newer_than_file_p):
5483         * fileio.c (Fverify_visited_file_modtime):
5484         * fileio.c (Fset_visited_file_modtime):
5485         * fileio.c (auto_save_1):
5486         (1). (2).
5487         fix up gcpro's.
5488
5489         * frame-msw.c:
5490         * frame-msw.c (mswindows_init_frame_1):
5491         * frame-msw.c (mswindows_enable_frame):
5492         * frame-msw.c (error_frame_unsizable):
5493         * frame-msw.c (msprinter_init_frame_1):
5494         * frame-msw.c (msprinter_init_frame_3):
5495         * frame-msw.c (console_type_create_frame_mswindows):
5496         (2).
5497         implement new enable/disable frame methods.
5498
5499         * frame-x.c:
5500         * frame-x.c (x_enable_frame):
5501         * frame-x.c (console_type_create_frame_x):
5502         implement new enable/disable frame methods.
5503
5504         * frame.c:
5505         * frame.c (Fdisable_frame):
5506         * frame.c (syms_of_frame):
5507         * frame.h (struct frame):
5508         implement new enable/disable frame methods/functions.
5509
5510         * general-slots.h:
5511         add initial-focus.
5512
5513         * glyphs-msw.c (mswindows_widget_instantiate):
5514         comment that initial-focus should be implemented.
5515
5516         * glyphs-widget.c:
5517         * glyphs-widget.c (check_valid_instantiator):
5518         * glyphs-widget.c (check_valid_orientation):
5519         * glyphs-widget.c (check_valid_tab_orientation):
5520         * glyphs-widget.c (check_valid_justification):
5521         * glyphs-widget.c (check_valid_border):
5522         * glyphs-widget.c (check_valid_callback):
5523         * glyphs-widget.c (check_valid_int_or_function):
5524         * glyphs-widget.c (check_valid_string_or_vector):
5525         * glyphs-widget.c (check_valid_item_list_1):
5526         * glyphs-widget.c (widget_validate):
5527         * glyphs-widget.c (combo_box_validate):
5528         * glyphs-widget.c (widget_instantiate):
5529         * glyphs-widget.c (syms_of_glyphs_widget):
5530         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
5531         * glyphs-widget.c (image_instantiator_combo_box):
5532         * glyphs-widget.c (image_instantiator_scrollbar):
5533         * glyphs-widget.c (image_instantiator_tab_control):
5534         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
5535         (2).
5536         support (unimplemented) keyword initial-focus.
5537         reindent long macros.
5538
5539         * glyphs-x.c (x_redisplay_widget):
5540         * glyphs-x.c (x_button_instantiate):
5541         * glyphs-x.c (x_button_redisplay):
5542         * glyphs-x.c (x_progress_gauge_instantiate):
5543         * glyphs-x.c (x_edit_field_instantiate):
5544         * glyphs-x.c (x_combo_box_instantiate):
5545         * glyphs-x.c (x_tab_control_instantiate):
5546         * glyphs-x.c (x_label_instantiate):
5547         * gui-x.c:
5548         * gui-x.c (button_item_to_widget_value):
5549         * gui-x.c (gui_items_to_widget_values_1):
5550         * gui-x.c (gui_item_children_to_widget_values):
5551         * gui-x.c (gui_items_to_widget_values):
5552         * gui-x.h:
5553         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
5554         add new flag to gui-parsing routines to indicate whether
5555         accelerator specs should be supported.
5556
5557         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
5558
5559         * glyphs.h (struct Lisp_Image_Instance):
5560         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
5561         add initial-focus flag.
5562
5563         * gui.c:
5564         * gui.c (syms_of_gui):
5565         * gui.c (vars_of_gui):
5566         clean up menu-no-selection-hook.
5567
5568         * gui.h:
5569         support delete-dialog-box-hook.
5570
5571         * lread.c (Fload_internal):
5572         * lread.c (locate_file_in_directory_mapper):
5573         (1).
5574
5575         * lrecord.h:
5576         * lrecord.h (struct toolbar_button):
5577         * lrecord.h (syms_of_toolbar):
5578         document how to create a new object.
5579
5580         * menubar-msw.c (mswindows_char_is_accelerator):
5581         may be called on frames w/o menus.
5582
5583         * menubar.c (vars_of_menubar):
5584         clean up :filter docs.
5585
5586         * nt.c (readdir):
5587         * ntproc.c:
5588         (1).
5589
5590         * process-nt.c:
5591         * process-nt.c (validate_signal_number):
5592         * process-nt.c (signal_cannot_launch):
5593         * process-nt.c (nt_create_process):
5594         * process-nt.c (nt_send_process):
5595         * process-nt.c (nt_kill_child_process):
5596         * process-nt.c (nt_open_network_stream):
5597         * process-nt.c (syms_of_process_nt):
5598         (2).
5599         delete quote-handling.  call new lisp code that does it better.
5600
5601         * process-unix.c (connect_to_file_descriptor):
5602         * process-unix.c (allocate_pty):
5603         * process-unix.c (unix_send_process):
5604         * process-unix.c (unix_kill_child_process):
5605         * process-unix.c (unix_open_network_stream):
5606         * process-unix.c (unix_open_multicast_group):
5607         (1). (2).
5608
5609         * process.c:
5610         * process.c (Fstart_process_internal):
5611         (2).  need to canonicalize process path even if absolute.
5612
5613         * select-msw.c (symbol_to_ms_cf):
5614         * select-msw.c (ms_cf_to_symbol):
5615         * select-msw.c (cf_is_autofreed):
5616         * select-msw.c (mswindows_destroy_selection):
5617         * select.c:
5618         * select.c (syms_of_select):
5619         * select.h:
5620         support dibv5, fix bugs. (from Mike Alexander)
5621
5622         * select.c (Fget_selection_internal):
5623         * select.c (select_convert_out):
5624
5625         * sysdep.c:
5626         * sysdep.c (xemacs_stat):
5627         renamed.
5628
5629         * sysdep.c (mkdir):
5630         * sysdep.c (rmdir):
5631         but keep original stat() here because we provide encapsulation
5632         around these funs.
5633
5634         * sysfile.h:
5635         * sysfile.h (fstat):
5636         remove stat garbage.
5637
5638         * syswindows.h:
5639         fix X/MSW conflict.
5640         don't include tchar.h.  it's inappropriate because it makes
5641         compile-time distinctions when we want runtime distinctions.
5642         (we provide our own tchar replacements)
5643
5644         * toolbar.c:
5645         use default object printer for toolbar-button.
5646
5647         * unexcw.c:
5648         make sure we don't encapsulate.
5649
5650         * window.c (vars_of_window):
5651         emphasize that temp-buffer-show-hook is obsolete.
5652
5653 2000-08-05  Martin Buchholz  <martin@xemacs.org>
5654
5655         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
5656         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
5657
5658         * events.c (Fevent_timestamp_lessp):
5659         Not 64-bit clean.  Use EMACS_INT, not int.
5660
5661 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
5662
5663         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
5664         unsigned int and changed the last enum to
5665         lrecord_type_last_built_in_type.
5666         (lrecord_implementations_table): changed prototype to know how
5667         long the array is supposed to be.
5668         (lrecord_type_count): new unsigned int to keep track of the
5669         current number of lisp lrecord types.
5670         (DEFINE_EXTERNAL_LRECORD):
5671         (DECLARE_EXTERNAL_LRECORD): Added these two for external
5672         dynamic-modules to declare new lisp types. They are the same
5673         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
5674         int for each new type, and increment lrecord_type_count by 1.
5675
5676         * alloc.c (lrecord_implementations_table): Changed to reference
5677         lrecord_type_last_built_in_type for the size of the array.
5678         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
5679
5680 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
5681
5682         * glyphs.h (check_valid_item_list): Renamed from
5683         check_valid_item_list_1.
5684
5685 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
5686
5687         * select.c (Qselect_coerce): New.
5688         * select.c (Vselection_coercion_alist): New.
5689         * select.c (syms_of_select): Declare.
5690         * select.c (get-selection-internal): Use it.
5691         Use the new select-coerce functionality.
5692
5693         * select.c (select_coerce): New.
5694         * select.h (select_coerce): Declare.
5695         New function to coerce one type of data into another.
5696
5697 2000-08-03  Martin Buchholz  <martin@xemacs.org>
5698
5699         * callproc.c (Fcall_process_internal):
5700         (Fcall_process_internal):
5701         * process-unix.c (unix_create_process):
5702         Save and restore the value of errno, so that error messages are accurate.
5703
5704 2000-08-01  Martin Buchholz  <martin@xemacs.org>
5705
5706         * elhash.c (print_hash_table):
5707         Fix printing of hash tables to also use `key-and-value' instead of `t'.
5708         Prettify docstrings and indentation.
5709
5710 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
5711
5712         * window.c (Fwindow_pixel_edges): Subtract frame border and
5713         gutter size.
5714
5715 2000-07-31  Andy Piper  <andy@xemacs.org>
5716
5717         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
5718         will acknowledge the change.
5719
5720         * glyphs.h: declare tab_control_order_only_changed.
5721
5722         * glyphs-x.c (x_tab_control_redisplay): use
5723         tab_control_order_only_changed.
5724
5725         * glyphs-widget.c (tab_control_order_only_changed): new function.
5726
5727         * glyphs-msw.c (mswindows_tab_control_redisplay): use
5728         tab_control_order_only_changed.
5729
5730         * gui.c (gui_item_equal_sans_selected): new function.
5731         (gui_item_equal): use it.
5732
5733         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
5734         :properties in favor of :items..
5735
5736         * glyphs-widget.c (check_valid_item_list): rename from
5737         check_valid_item_list_1.
5738         (check_valid_item_list_1): renamed.
5739         (combo_box_validate): deprecate :properties in favor of :items.
5740         (widget_instantiate): ditto.
5741         (tab_control_update): ditto.
5742         (image_instantiator_combo_box): ditto.
5743         (image_instantiator_tree_view): ditto.
5744         (image_instantiator_tab_control): ditto.
5745         (layout_post_instantiate): remove dead code.
5746
5747         * print.c (debug_print_no_newline): only write to debugger if in
5748         WIN32_NATIVE.
5749
5750         * elhash.c (Fmake_hash_table): update doc string.
5751
5752         * event-msw.c (mswindows_wnd_proc): don't allow processing of
5753         messages whilst in GC. This at least stops XEmacs crashing but has
5754         the potential for wierd behaviour.
5755
5756 2000-07-31  Martin Buchholz  <martin@xemacs.org>
5757
5758         * config.h.in:
5759         Make existence of s&m files optional.
5760
5761         * s/bsd386.h: Remove HAVE_GETLOADAVG.
5762         * s/freebsd.h: Remove HAVE_GETLOADAVG.
5763         * s/gnu.h: Remove HAVE_GETLOADAVG.
5764         * s/netbsd.h: Remove HAVE_GETLOADAVG.
5765         * s/sol2.h: Remove HAVE_GETLOADAVG.
5766         * lisp.h: Remove getloadavg() declaration.
5767         * fns.c:
5768         Include <sys/loadavg.h> if available.
5769         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
5770         * config.h.in:  Group together getloadavg()-related macros.
5771         Use only configure-time tests to detect getloadavg().
5772
5773 2000-07-30  Martin Buchholz  <martin@xemacs.org>
5774
5775         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
5776
5777 2000-07-25  Andy Piper  <andy@xemacs.org>
5778
5779         * syswindows.h: add tchar.h for native builds.
5780
5781         * frame.c (syms_of_frame): remove set-glyph-image.
5782
5783         * general-slots.h: add Qset_glyph_image.
5784
5785         * glyphs-widget.c (layout_update): add domain arg to
5786         set-glyph-image.
5787         (syms_of_glyphs_widget): remove set-glyph-image.
5788
5789 2000-07-23  Ben Wing  <ben@xemacs.org>
5790
5791         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
5792         Vpopup_frame_list.
5793
5794 2000-07-22  Andy Piper  <andy@xemacs.org>
5795
5796         * symsinit.h: add syms_of_win32().
5797
5798         * gui-msw.c (syms_of_gui_mswindows): remove
5799         Fmswindows_shell_execute.
5800         (Fmswindows_shell_execute): moved to win32.c.
5801
5802         * emacs.c (main_1): add syms_of_win32 ().
5803
5804         * win32.c (init_potentially_nonexistent_functions): rewrite in
5805         compiler-friendly terms.
5806         (Fmswindows_shell_execute): move here from gui-msw.c.
5807         (syms_of_win32): new.
5808
5809         * device-msw.c (Fmswindows_printer_list): clean up args to
5810         EnumPrinters.
5811         Don't include tchar under cygwin or mingw.
5812         (msprinter_default_printer): make cygwin-friendly.
5813
5814 2000-07-21  Andy Piper  <andy@xemacs.org>
5815
5816         * glyphs-widget.c (image_instantiator_tree_view): use tab
5817         control's update function.
5818         (layout_property): new function. Retrieve items.
5819
5820         * glyphs-msw.c (mswindows_tree_view_redisplay): new
5821         function. Re-populate the tree view from the pending items.
5822
5823         * glyphs.c (instantiate_image_instantiator): Make sure the domain
5824         is designated the parent if the domain is an image instance. This
5825         is needed so that dirtiness can be cascade up the hierarchy and
5826         thus for layout children to be redisplayed correctly.
5827         (allocate_image_instance): rename glyph -> parent.
5828
5829         * redisplay.h: change redisplay_output_layout signature.
5830
5831         * redisplay-msw.c (mswindows_output_display_block): use domain
5832         arg.
5833
5834         * redisplay-x.c (x_output_display_block): use domain arg.
5835
5836 2000-07-10  Andy Piper  <andy@xemacs.org>
5837
5838         * window.c (Fset_window_configuration): add comment.
5839
5840         * redisplay-output.c (compare_runes):
5841         (redisplay_output_subwindow): redisplay rather than update subwindow.
5842         (redisplay_output_layout): ditto.
5843
5844         * redisplay-msw.c (mswindows_frame_output_end):
5845         (mswindows_frame_output_end): make defer window pos optional.
5846
5847         * lisp.h: add Flast.
5848
5849         * glyphs.h (struct image_instantiator_methods): add dest_mask top
5850         normalize method. Change update method to be for changed
5851         instantiators. Add redisplay method. Change signature of layout
5852         method.
5853         (struct Lisp_Image_Instance): add instantiator.
5854         (IMAGE_INSTANCE_INSTANTIATOR): new.
5855         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
5856         (XIMAGE_INSTANCE_INSTANTIATOR): new.
5857         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
5858
5859         * glyphs.c:
5860         (find_instantiator_differences): new function.
5861         (Fset_instantiator_property): new convenience function.
5862         (check_image_instance_structure): strictly check for vector
5863         instantiators.
5864         (normalize_image_instantiator): make non-static.
5865         (instantiate_image_instantiator): pass on dest_mask and use new
5866         signatures for image_instance_layout and friends.
5867         (mark_image_instance): mark the instantiator. Mark the subwindow
5868         face not the widget face.
5869         (image_instance_equal): add instantiator.
5870         (image_instance_hash): ditto.
5871         (allocate_image_instance): ditto.
5872         (Fset_image_instance_property): removed.
5873         (Fimage_instance_file_name): ditto.
5874         (Fcolorize_image_instance): ditto.
5875         (image_instance_layout): add offsets to be set.
5876         (update_image_instance): new function. update an image instance
5877         from its changed instantiator.
5878         (inherit_normalize): add dest_mask.
5879         (xbm_normalize): ditto.
5880         (xface_normalize): ditto.
5881         (xpm_normalize): ditto.
5882         (text_update): set_property -> update.
5883         (image_instantiate): use the glyph identity as a hash key, not the
5884         instantiator.
5885         (glyph_width): use new image_instance_layout signature.
5886         (glyph_ascent): ditto.
5887         (glyph_descent): ditto.
5888         (glyph_height): ditto.
5889         (glyph_query_geometry): ressurrect.
5890         (glyph_layout): ditto.
5891         (redisplay_subwindow): update -> redisplay.
5892         (syms_of_glyphs): add Fset_instantiator_property.
5893         (image_instantiator_format_create): set_property -> update.
5894
5895         * glyphs-x.c:
5896         (autodetect_normalize): add dest_maks to signature.
5897         (x_redisplay_subwindow): update -> redisplay.
5898         (x_redisplay_widget): ditto.
5899         (x_button_redisplay): ditto.
5900         (x_progress_gauge_redisplay): ditto.
5901         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
5902         stacking order.
5903         (console_type_create_glyphs_x): update -> redisplay.
5904         (image_instantiator_format_create_glyphs_x): ditto.
5905
5906         * glyphs-widget.c:
5907         (check_valid_instantiator): disallow glyphs in the instantiator,
5908         they must now be vectors.
5909         (check_valid_instantiator_list): ditto.
5910         (glyph_instantiator_to_glyph): use internal symbol rather than
5911         intern.
5912         (widget_update): renamed from widget_set_property. Call cascaded
5913         update methods.
5914         (redisplay_widget): renamed from update_widget.
5915         (widget_layout): image_instance_layout now takes position as well
5916         as size.
5917         (widget_normalize): ditto.
5918         (widget_instantiate): ditto.
5919         (tab_control_query_geometry) ditto.:
5920         (tab_control_update): renamed from tab_control_set_property.
5921         (progress_gauge_update): set_property -> update.
5922         (layout_normalize): rewrite so that child instantiators are
5923         normalized also.
5924         (layout_update): new function. Create glyphs from the normalized
5925         children and cope with any other layout keywords. We do not
5926         instantiate children here that will be take care of by
5927         redisplay_output_layout.
5928         (layout_instantiate): call layout_update and not much else.
5929         (layout_post_instantiate): not sure whether this is needed
5930         anymore.
5931         (layout_query_geometry): query glyph geometry rather than
5932         image_instance geometry.
5933         (layout_layout): set offsets from pass in parameters. Use glyph
5934         geometry and layout functions rather than image instance ones.
5935         (native_layout_layout): ditto.
5936         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
5937         (image_instantiator_widget): set_property -> update.
5938         (image_instantiator_buttons): ditto.
5939         (image_instantiator_progress_guage): ditto.
5940         (image_instantiator_tab_control): ditto.
5941         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
5942         (image_instantiator_layout): add update method.
5943
5944         * glyphs-msw.c (bmp_normalize):
5945         (mswindows_resource_normalize): add dest_mask so that it can be
5946         proprogated by layout_normalize.
5947         (begin_defer_window_pos): make optional because it may not be the
5948         right thing to do and it introduces differences with X.
5949         (mswindows_unmap_subwindow): ditto.
5950         (mswindows_map_subwindow): ditto.
5951         (mswindows_redisplay_subwindow): renamed from
5952         mswindows_update_subwindow.
5953         (mswindows_redisplay_widget): ditto.
5954         (mswindows_button_redisplay): renamed from
5955         mswindows_button_update. Update is now what the instantiation
5956         function does for a changed instantiator.
5957         (mswindows_progress_gauge_instantiate): set the progress value
5958         here if appropriate.
5959         (mswindows_tab_control_redisplay): cope with re-ordering of the
5960         members of the tab widget by simply selecting the new top
5961         widget. This makes things appear ok if you click on a tab.
5962         (mswindows_combo_box_instantiate): image_instance_layout now takes
5963         position as well as size.
5964         (mswindows_progress_gauge_redisplay): renamed from
5965         mswindows_progress_gauge_update.
5966         (console_type_create_glyphs_mswindows): fix update -> redisplay.
5967         (image_instantiator_format_create_glyphs_mswindows): ditto.
5968
5969         * glyphs-eimage.c (jpeg_normalize):
5970         (gif_normalize):
5971         (png_normalize):
5972         (tiff_normalize): add dest_mask so that it can be proprogated by
5973         layout_normalize.
5974
5975         * elhash.c:
5976         (print_hash_table):
5977         (hash_table_weakness_validate):
5978         (decode_hash_table_weakness):
5979         (Fhash_table_weakness):
5980         (Fhash_table_type):
5981         (syms_of_elhash): use Ben's naming scheme for hashtable types..
5982
5983         * console.h (struct console_methods): move update_* to
5984         redisplay_*.
5985
5986 2000-07-20  Ben Wing  <ben@xemacs.org>
5987
5988         * *.[ch] (XSETOBJ): remove unused middle argument.
5989         lisp-disunion.h: correct wrap_object() to one argument.
5990
5991 2000-07-15  Ben Wing  <ben@xemacs.org>
5992
5993         * s/cygwin32.h:
5994         * s/cygwin32.h (CYGWIN_CONV_PATH):
5995         Add missing logb prototype for v1.1.
5996         Use post-b20 names and alias to pre-b20 names when pre-b20.
5997
5998         * s/windowsnt.h: [5].
5999
6000 2000-07-15  Ben Wing  <ben@xemacs.org>
6001
6002         * Makefile.in.in (x_objs):
6003         * Makefile.in.in (sheap_objs):
6004         * Makefile.in.in (objs):
6005         added win32.o, cosmetic cleanups.
6006
6007         * alloc.c (Fmake_byte_code):
6008         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
6009         etc. macros which declare their own args now.
6010
6011         * alloc.c (syms_of_alloc):
6012         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
6013
6014         * buffer.c:
6015         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
6016
6017         * buffer.c (Fget_file_buffer):
6018         Fixed GCPRO problem.
6019
6020         * buffer.c (get_truename_buffer):
6021         Fixed comment about GC checking.
6022
6023         * buffer.c (syms_of_buffer):
6024         Undeclared those dedicated frame funs.
6025         [2].
6026
6027         * buffer.h:
6028         Define convenience macros for internal/external conversions.
6029         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
6030         and Qenvironment_variable_encoding for cleaner code.
6031
6032         * bufslots.h:
6033         Remove dedicated-frame; in lisp.
6034
6035         * bytecode.c (funcall_compiled_function):
6036         [1].
6037
6038         * bytecode.c (syms_of_bytecode):
6039         [2].
6040
6041         * console-msw.c:
6042         * console-msw.c (mswindows_show_console): Rewrote.
6043
6044         * console-msw.c (Fmswindows_debugging_output): New.
6045         Sends to OutputDebugString (special MSWin debugger interface).
6046
6047         * console-msw.c (Fmswindows_message_box):
6048         Fixed stupid bugs so it works when called from kill-emacs.
6049
6050         * console-msw.c (syms_of_console_mswindows):
6051         Declare Fmswindows_debugging_output.
6052
6053         * console-msw.h:
6054         New MSWin prototypes.
6055
6056         * console-msw.h (struct mswindows_frame):
6057         New entry last-click-mods for improved button-modifier support.
6058
6059         * console-msw.h (FRAME_MSWINDOWS_POPUP):
6060         New struct entry `popup' with corresponding accessor.
6061
6062         * console-x.c:
6063         * console-x.c (split_up_display_spec):
6064         * console-x.c (get_display_arg_connection):
6065         * console-x.c (x_semi_canonicalize_console_connection):
6066         * console-x.c (x_canonicalize_device_connection):
6067         [[[6]]]: Change char to more specific type.
6068         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
6069
6070         * console-x.c (x_semi_canonicalize_console_connection):
6071         * console-x.c (x_canonicalize_device_connection):
6072         [[[9]]]: Fix up error signalling to use new structured error system.
6073
6074         * console-x.h:
6075         [[[4]]]: Define codesys aliases:
6076         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
6077         Qx_color_name_encoding, Qx_display_name_encoding.
6078
6079         * console.h (struct console_methods):
6080         New method make_dialog_box_internal supersedes older
6081         popup_dialog_box method.
6082
6083         * data.c:
6084         Define many new errors, part of new structured errors.
6085
6086         * data.c (init_errors_once_early):
6087         * data.c (syms_of_data):
6088         [2].
6089
6090         * device-msw.c (mswindows_init_device):
6091         [[[5]]]: Cleanup to support NT 3.51.
6092
6093         * device-msw.c (decode_devmode): Cleanup.
6094
6095         * device-msw.c (mswindows_handle_print_setup_dialog_box):
6096         * device-msw.c (mswindows_handle_print_dialog_box):
6097         * device-msw.c (mswindows_handle_page_setup_dialog_box):
6098         * device-msw.c (syms_of_device_mswindows):
6099         Delete the dialog box primitives recently introduced by Kirill and
6100         instead interface to general dialog box interface.
6101
6102         * device-x.c:
6103         * device-x.c (compute_x_app_name):
6104         * device-x.c (x_init_device):
6105         * device-x.c (Fx_valid_keysym_name_p):
6106         * device-x.c (Fx_set_font_path):
6107         [6].
6108         [7].
6109
6110         * device.h (wrap_device): New.
6111         First of its kind; meant to replace XSETDEVICE.
6112
6113         * dialog-msw.c: Many file-dialog symbols.
6114
6115         * dialog-msw.c (mswindows_register_popup_frame): New.
6116         * dialog-msw.c (mswindows_is_dialog_msg): New.
6117         For supporting kbd traversal in dialog boxes.
6118
6119         * dialog-msw.c (dialog_proc):
6120         Support hitting ESC in dialogs.
6121
6122         * dialog-msw.c (struct):
6123         Common dialog box errors.
6124
6125         * dialog-msw.c (handle_file_dialog_box): New.
6126         Add file dialog code.
6127
6128         * dialog-msw.c (handle_question_dialog_box):
6129         Redo existing code to support new question dialog syntax.
6130
6131         * dialog-msw.c (console_type_create_dialog_mswindows):
6132         We support new dialog console method.
6133
6134         * dialog-msw.c (syms_of_dialog_mswindows):
6135         * dialog-msw.c (vars_of_dialog_mswindows):
6136         New file dialog symbols, vars.
6137
6138         * dialog-x.c:
6139         * dialog-x.c (maybe_run_dbox_text_callback):
6140         * dialog-x.c (dbox_descriptor_to_widget_value):
6141         * dialog-x.c (x_make_dialog_box_internal):
6142         * dialog-x.c (console_type_create_dialog_x):
6143         Mule-ize entire file.
6144         Redo to support question dialog syntax.
6145         [6].
6146
6147         * dialog.c:
6148         * dialog.c (Fmake_dialog_box_internal):
6149         * dialog.c (syms_of_dialog):
6150         Kill old popup-dialog-box, replace with new primitive.
6151         Just call device method or signal error.
6152
6153         * eldap.c (Fldap_open):
6154         * eldap.c (Fldap_search_basic):
6155         * eldap.c (Fldap_add):
6156         * eldap.c (Fldap_modify):
6157         [1].
6158         [7].
6159
6160         * emacs.c:
6161         * emacs.c (make_arg_list_1):
6162         * emacs.c (make_arg_list):
6163         Mule-ize call to dll_init().
6164         [6].
6165         [8].
6166
6167         * emacs.c (make_argc_argv):
6168         * emacs.c (free_argc_argv):
6169         * emacs.c (init_cmdargs):
6170         * emacs.c (main_1):
6171         * emacs.c (Fkill_emacs):
6172         * emacs.c (Fdump_emacs):
6173         Update comments about what can be used in syms_* etc.
6174         Call init_win32() when necessary.
6175         Fix up MS Win dialog box in kill-buffer to actually work right.
6176         [7].
6177
6178         * eval.c:
6179         * eval.c (For):
6180         * eval.c (Fand):
6181         * eval.c (Fprogn):
6182         * eval.c (Fprog1):
6183         * eval.c (Fprog2):
6184         * eval.c (FletX):
6185         * eval.c (Flet):
6186         * eval.c (condition_case_3):
6187         * eval.c (Feval):
6188         * eval.c (function_argcount):
6189         * eval.c (funcall_lambda):
6190         [1].
6191
6192         * eval.c (type_error): New.
6193         * eval.c (maybe_type_error): New.
6194         * eval.c (continuable_type_error): New.
6195         * eval.c (maybe_continuable_type_error): New.
6196         * eval.c (type_error_with_frob): New.
6197         * eval.c (maybe_type_error_with_frob): New.
6198         * eval.c (continuable_type_error_with_frob): New.
6199         * eval.c (maybe_continuable_type_error_with_frob): New.
6200         New functions for use with structured errors.
6201
6202         * event-Xt.c:
6203         * event-Xt.c (x_event_to_emacs_event):
6204         Buttons are now modifiers too.
6205
6206         * event-Xt.c (emacs_Xt_current_event_timestamp):
6207         Implement new event method.
6208         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
6209
6210         * event-msw.c:
6211         * event-msw.c (ntpipe_shove_writer): [5].
6212         * event-msw.c (mswindows_enqueue_mouse_button_event):
6213         * event-msw.c (mswindows_drain_windows_queue):
6214         * event-msw.c (mswindows_wnd_proc): [7].
6215         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
6216         * event-msw.c (mswindows_modifier_state):
6217         Throughout: support new button modifiers.
6218
6219         * event-msw.c (emacs_mswindows_current_event_timestamp):
6220         Implement new event method.
6221         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
6222
6223         * event-stream.c:
6224         * event-stream.c (event_stream_current_event_timestamp): New.
6225         * event-stream.c (maybe_kbd_translate): New functionality.
6226         * event-stream.c (vars_of_event_stream):
6227         Document new kbd-translate-table functionality.
6228
6229         * event-stream.c (Fcurrent_event_timestamp): New.
6230         New primitive for use in fabricated events.
6231         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
6232
6233         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
6234
6235         * events.c:
6236         * events.c (Fmake_event):
6237         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
6238         [1].
6239         [9].
6240
6241         * events.c (format_event_object): fix gcc warnings.
6242
6243         * events.c (Fevent_timestamp): Document new primitives.
6244
6245         * events.c (TIMESTAMP_HALFSPACE): New.
6246
6247         * events.c (Fevent_timestamp_lessp): New.  New primitive for
6248         comparing timestamps correctly (half-space algorithm).
6249
6250         * events.c (Fevent_modifier_bits): Doc fix.
6251
6252         * events.c (Fevent_modifiers): Major doc addition.
6253         * events.c (event_x_y_pixel_internal): Typo fix.
6254         * events.c (syms_of_events): Declare new primitives.
6255
6256         * events.h:
6257         Update long comment for button modifiers, timestamps.
6258
6259         * events.h (struct event_stream):
6260         New current_event_timestamp method.
6261
6262         * extents.c:
6263         * extents.c (extent_in_region_p):
6264         * extents.c (decode_extent):
6265         * extents.c (Fset_extent_parent):
6266         * extents.c (decode_map_extents_flags):
6267         Fix gcc warnings.
6268         [9].
6269
6270         * extents.c (struct extent_at_arg):
6271         * extents.c (decode_extent_at_flag):
6272         * extents.c (extent_at_mapper):
6273         * extents.c (extent_at_bytind):
6274         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
6275         * extents.c (Fextents_at): New primitive. [9].
6276         * extents.c (symbol_to_glyph_layout): [9].
6277         Support new primitive `extents-at'.
6278
6279
6280         * extents.c (get_text_property_bytind):
6281         extent_at_bytind has another arg.
6282         [9].
6283
6284         * extents.c (syms_of_extents): New primitive.
6285
6286         * file-coding.c (Fmake_coding_system): [1].
6287         * file-coding.c (subsidiary_coding_system): fix gcc warning
6288         * file-coding.c (syms_of_file_coding): [2].
6289
6290         * fileio.c (Fexpand_file_name):
6291         * fileio.c (Fsysnetunam):
6292         * fileio.c (Ffile_exists_p):
6293         * fileio.c (Ffile_executable_p):
6294         * fileio.c (Fverify_visited_file_modtime):
6295         Clean up GCPROing.
6296
6297         * fileio.c (syms_of_fileio): [2].
6298
6299         * filelock.c (lock_file_1):
6300         * filelock.c (current_lock_owner):
6301         * filelock.c (lock_if_free):
6302         * filelock.c (lock_file):
6303         * filelock.c (unlock_file):
6304         Clean up GCPROing.
6305
6306         * fns.c (concat): Fix gcc warning.
6307
6308         * fns.c (Fmember):
6309         * fns.c (Fold_member):
6310         * fns.c (Fmemq):
6311         * fns.c (Fold_memq):
6312         * fns.c (memq_no_quit):
6313         * fns.c (Fassoc):
6314         * fns.c (Fold_assoc):
6315         * fns.c (Fassq):
6316         * fns.c (Fold_assq):
6317         * fns.c (assq_no_quit):
6318         * fns.c (Frassoc):
6319         * fns.c (Fold_rassoc):
6320         * fns.c (Frassq):
6321         * fns.c (Fold_rassq):
6322         * fns.c (rassq_no_quit):
6323         * fns.c (Fdelete):
6324         * fns.c (Fold_delete):
6325         * fns.c (Fdelq):
6326         * fns.c (Fold_delq):
6327         * fns.c (delq_no_quit):
6328         * fns.c (Fremassoc):
6329         * fns.c (Fremassq):
6330         * fns.c (remassq_no_quit):
6331         * fns.c (Fremrassoc):
6332         * fns.c (Fremrassq):
6333         * fns.c (remrassq_no_quit):
6334         * fns.c (Freverse):
6335         * fns.c (mapcar1):
6336         [1].
6337
6338         * frame-msw.c (mswindows_init_frame_1):
6339         * frame-msw.c (mswindows_delete_frame):
6340         Register popups with dialog code so keyboard traversing works.
6341
6342         * frame-tty.c (tty_raise_frame_no_select): [1].
6343
6344         * frame-x.c:
6345         * frame-x.c (x_set_frame_text_value):
6346         * frame-x.c (x_set_frame_properties):
6347         * frame-x.c (x_create_widgets):
6348         [7].
6349
6350         * frame.c:
6351         * frame.c (Fmouse_pixel_position): Minor doc fixes.
6352
6353         * frame.h (wrap_frame): New.
6354         Macro like wrap_device.
6355
6356         * general.c:
6357         * general.c (SYMBOL):
6358         * general.c (syms_of_general):
6359         Major reorg.  This is now just a wrapper and symbols themselves
6360         are listed in general-slots.h.
6361
6362         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
6363         * glyphs-msw.c (mswindows_resource_instantiate): [5].
6364
6365         * glyphs-msw.c (mswindows_native_layout_instantiate):
6366         Add DS_CONTROL so keyboard traversal will work.
6367
6368         * glyphs-widget.c:
6369         * glyphs-widget.c (syms_of_glyphs_widget):
6370         Move some symbols to general-slots.h.
6371
6372         * glyphs-x.c:
6373         * glyphs-x.c (xbm_instantiate_1):
6374         * glyphs-x.c (x_xbm_instantiate):
6375         * glyphs-x.c (x_xface_instantiate):
6376         * glyphs-x.c (autodetect_instantiate):
6377         * glyphs-x.c (cursor_font_instantiate):
6378         * glyphs-x.c (x_update_widget):
6379         * glyphs-x.c (x_widget_instantiate):
6380         * glyphs.c (bitmap_to_lisp_data):
6381         * glyphs.c (pixmap_to_lisp_data):
6382         [7].
6383
6384         * glyphs.c (syms_of_glyphs):
6385         [2].
6386
6387         * gui-x.c:
6388         * gui-x.c (print_widget_value):
6389         * gui-x.c (menu_separator_style_and_to_external):
6390         * gui-x.c (add_accel_and_to_external):
6391         * gui-x.c (button_item_to_widget_value):
6392         * gui-x.c (gui_items_to_widget_values_1):
6393         * gui-x.c (gui_items_to_widget_values):
6394         * gui-x.c (syms_of_gui_x):
6395         * gui-x.c (vars_of_gui_x):
6396         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
6397         [9].
6398
6399         * gui-x.h:
6400         Muleize, prototype changes matching gui-x.c.
6401
6402         * gui.c:
6403         * gui.c (separator_string_p):
6404         * gui.c (gui_item_add_keyval_pair):
6405         * gui.c (make_gui_item_from_keywords_internal):
6406         * gui.c (signal_too_long_error):
6407         * gui.c (parse_gui_item_tree_item):
6408         * gui.c (syms_of_gui):
6409         * gui.c (vars_of_gui):
6410         * gui.h:
6411         menu-no-selection-hook moved here (used by MSWin).
6412         Move some symbols to general-slots.h.
6413         [6].
6414         [9].
6415
6416         * insdel.c (get_buffer_pos_char):
6417         * insdel.c (get_buffer_range_char):
6418         Add GC comments.
6419
6420         * keymap.c (keymap_lookup_directly):
6421         * keymap.c (keymap_store):
6422         * keymap.c (ensure_meta_prefix_char_keymapp):
6423         * keymap.c (describe_map):
6424         * keymap.h:
6425         Support new button modifiers.
6426
6427         * lisp-disunion.h (wrap_object):
6428         * lisp-disunion.h (XSETOBJ):
6429         Rename make_obj to wrap_object.
6430
6431         * lisp-union.h:
6432         * lisp-union.h (make_int):
6433         * lisp-union.h (make_char):
6434         Support wrap_object.
6435
6436         * lisp.h:
6437         * lisp.h (LIST_LOOP):
6438         * lisp.h (EXTERNAL_LIST_LOOP):
6439         * lisp.h (LIST_LOOP_2):
6440         * lisp.h (EXTERNAL_LIST_LOOP_1):
6441         * lisp.h (EXTERNAL_LIST_LOOP_2):
6442         * lisp.h (EXTERNAL_LIST_LOOP_3):
6443         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
6444         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
6445         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
6446         * lisp.h (EXTERNAL_ALIST_LOOP_5):
6447         * lisp.h (EXTERNAL_ALIST_LOOP_6):
6448         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
6449         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
6450         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
6451         * lisp.h (struct Lisp_Symbol):
6452         * lisp.h (maybe_continuable_error_with_frob):
6453         Fix up section comments.
6454         Add new types for char to indicate usage.
6455         Delete symbols auto-generated from general-slots.h.
6456         Add prototypes for structured error functions.
6457         Add long comments describing looping macros and change interface
6458         so that lvalues are automatically declared.
6459         Add NO_DECLARE macro in case callers want to declare lvalues
6460         themselves.
6461
6462         * lread.c (read_syntax_error):
6463         * lread.c (continuable_read_syntax_error):
6464         * lread.c (read_structure):
6465         * lread.c (sequence_reader):
6466         * lread.c (read_list_conser):
6467         * lread.c (read_compiled_function):
6468         Rename syntax_error and continuable_syntax_error to avoid clash
6469         with same-named structured error functions.
6470
6471         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
6472         * menubar-msw.c (populate_menu_add_item):
6473         * menubar-msw.c (populate_or_checksum_helper):
6474         [5].
6475         [9].
6476
6477         * menubar-x.c:
6478         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
6479         Mule-ize whole file.
6480
6481         * menubar.c (Fnormalize_menu_item_name): Add optimization.
6482
6483         * mule-charset.c (Fmake_charset):
6484         * mule-wnnfns.c (Fwnn_set_param):
6485         [1].
6486
6487         * ntproc.c (create_child):
6488         * ntproc.c (Fwin32_set_current_locale):
6489         Add comments portending doom.
6490
6491         * objects-msw.c:
6492         * objects-msw.c (old_font_enum_callback_2):
6493         * objects-msw.c (font_enum_callback_1):
6494         * objects-msw.c (mswindows_enumerate_fonts):
6495         [5].
6496
6497         * objects-x.c:
6498         * objects-x.c (allocate_nearest_color):
6499         * objects-x.c (x_parse_nearest_color):
6500         * objects-x.c (x_initialize_color_instance):
6501         * objects-x.c (x_print_color_instance):
6502         * objects-x.c (x_finalize_color_instance):
6503         * objects-x.c (x_valid_color_name_p):
6504         * objects-x.c (x_initialize_font_instance):
6505         * objects-x.c (x_print_font_instance):
6506         * objects-x.c (valid_x_font_name_p):
6507         * objects-x.c (truename_via_FONT_prop):
6508         * objects-x.c (truename_via_random_props):
6509         * objects-x.c (truename_via_XListFonts):
6510         * objects-x.c (x_font_truename):
6511         * objects-x.c (x_font_instance_truename):
6512         * objects-x.c (x_font_instance_properties):
6513         * objects-x.c (x_list_fonts):
6514         * objects-x.c (x_find_charset_font):
6515         Mule-ize entire file.
6516         [7].
6517
6518         * objects-x.h:
6519         Mule-verify.
6520
6521         * print.c:
6522         * print.c (std_handle_out_external):
6523         * print.c (debug_print_no_newline):
6524         * print.c (syms_of_print):
6525         Output to all debugger kinds in debug-print.
6526         Fix console-output code under MSWin to actually work.
6527
6528         * process-nt.c (send_signal):
6529         * process-nt.c (nt_create_process):
6530         Use newer Unicode macros.
6531
6532         * process-unix.c (unix_create_process):
6533         * process-unix.c (unix_canonicalize_host_name):
6534         * process-unix.c (unix_open_network_stream):
6535         [7].
6536
6537         * scrollbar-x.c:
6538         Mule-verify.
6539
6540         * search.c (syms_of_search):
6541         [2].
6542
6543         * select-msw.c (mswindows_destroy_selection):
6544         Use LIST_LOOP_2.
6545
6546         * select-x.c (symbol_to_x_atom):
6547         [7].
6548
6549         * select.c (syms_of_select):
6550         [2].
6551
6552         * sound.c (Fplay_sound_file):
6553         [7].
6554
6555         * specifier.c:
6556         * specifier.c (decode_specifier_type):
6557         * specifier.c (Fvalid_specifier_locale_type_p):
6558         * specifier.c (check_valid_locale_or_locale_type):
6559         * specifier.c (decode_locale):
6560         * specifier.c (decode_locale_type):
6561         * specifier.c (decode_locale_list):
6562         * specifier.c (check_valid_domain):
6563         * specifier.c (decode_specifier_tag_set):
6564         * specifier.c (Fcanonicalize_tag_set):
6565         * specifier.c (Fdefine_specifier_tag):
6566         * specifier.c (Fspecifier_tag_predicate):
6567         * specifier.c (check_valid_inst_list):
6568         * specifier.c (check_valid_spec_list):
6569         * specifier.c (decode_how_to_add_specification):
6570         * specifier.c (check_modifiable_specifier):
6571         * specifier.c (specifier_add_spec):
6572         * specifier.c (boolean_validate):
6573         * specifier.c (display_table_validate):
6574         [9].
6575
6576         * specifier.c (syms_of_specifier):
6577         Move some symbols to general-slots.h.
6578         [2].
6579
6580         * symbols.c:
6581         * symbols.c (Fmapatoms):
6582         * symbols.c (Fapropos_internal):
6583         Add GCPROs.
6584
6585         * symbols.c (set_default_buffer_slot_variable):
6586         * symbols.c (set_default_console_slot_variable):
6587         [1].
6588
6589         * symbols.c (defsymbol_massage_name_1):
6590         * symbols.c (defkeyword_massage_name):
6591         * symbols.c (deferror_1):
6592         * symbols.c (deferror):
6593         * symbols.c (deferror_massage_name_and_message):
6594         * symeval.h:
6595         * symeval.h (DEFSYMBOL):
6596         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
6597
6598         * symbols.c (syms_of_symbols):
6599         [2].
6600
6601         * symsinit.h:
6602         * symsinit.h (init_win32): New.
6603         Also new is syms_of_dialog_mswindows.
6604
6605         * syswindows.h:
6606         Add new Unicode macros, missing Cygwin wide-char functions,
6607         convenience conversion macros for Qmswindows_tstr, macros for
6608         encapsulating required MSWin <-> Cygwin filename conversions,
6609         prototype for dynamically-extracted (not in NT 3.51) functions.
6610
6611         * toolbar-x.c:
6612         Mule-verify.
6613
6614         * tooltalk.c (Fadd_tooltalk_message_arg):
6615         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
6616         * tooltalk.c (Fadd_tooltalk_pattern_arg):
6617         [7].
6618
6619         * tooltalk.c (syms_of_tooltalk):
6620         [2].
6621
6622         * unexnt.c:
6623         * unexnt.c (unexec):
6624         Fix up headers, declaration of unexec() to be more standard.
6625
6626 2000-07-20  Martin Buchholz  <martin@xemacs.org>
6627
6628         * offix.h: Revert change to guard macros - they're used in offix.c!
6629
6630 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6631
6632         * lisp.h: Defsubred Fdelete.
6633
6634         * console-msw.h:  (msprinter_default_printer): Added.
6635
6636         * console-msw.c (msprinter_canonicalize_console_connection):
6637         (msprinter_canonicalize_device_connection): Added.
6638
6639         * device-msw.c (msprinter_default_printer):
6640         (Fmswingows_get_default_printer):
6641         (signal_enum_priner_error):
6642         (Fmswingows_printer_list): Added.
6643
6644 2000-07-19  Martin Buchholz <martin@xemacs.org>
6645
6646         * XEmacs 21.2.35 is released.
6647
6648 2000-07-19  Martin Buchholz  <martin@xemacs.org>
6649
6650         * select-x.c (x_handle_selection_request):
6651         Text selected in xemacs and pasted into xterm failed to appear.
6652         Spelling fixes and cosmetic changes.
6653
6654 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6655
6656         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
6657         XEmacs frame (fix for doubling chars in dialog boxes).
6658
6659 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
6660
6661         * select.c (select_convert_in, select_convert_out):
6662         Don't call intern() every time.
6663
6664         * select.c (Qselect_convert_in, Qselect_convert_out): New.
6665         * select.c (vars_of_select): Initialise them.
6666
6667 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
6668
6669         * select.c (selection-coercible-types): New.
6670
6671         * select.c (own-selection-internal):
6672         * select.c (get-selection-internal):
6673         MULE bug fix - these should default to COMPOUND_TEXT and not
6674         STRING for MULE. I think.
6675
6676         * select.c (select_convert_out): Use selection-coercible-types
6677         to find types that we can attempt to perform coercions on.
6678
6679 2000-07-18  Martin Buchholz  <martin@xemacs.org>
6680
6681         * mule-wnnfns.c:
6682         * mule-canna.c:
6683         Add coding: cookie to identify encoding.
6684
6685         * mule-canna.c (CANNA_mode_keys): make static.
6686         Use proper prototypes, even for functions of no arguments.
6687         Remove external prototype for Fding().
6688
6689         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
6690
6691         * select.c (syms_of_select): Add missing DEFSUBR.
6692
6693 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
6694
6695         * select.c (get_selection_internal, own_selection_internal):
6696         Make the type default to STRING, rather than placing a nil type
6697         into Vselection_alist.
6698
6699 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
6700
6701         * gpmevent.c (tty_selection_exists_p):
6702         * gpmevent.c (tty_own_selection):
6703         Updated parameter lists.
6704
6705 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
6706
6707         * select.h (selection-alist): Removed declaration.
6708
6709         * select.h (get_local_selection):
6710         * select.c (get_local_selection):
6711         Made static.
6712
6713         * select.h (convert_selection): Removed declaration.
6714         * select.c (convert_selection): Removed.
6715         This function belongs in Lisp.
6716
6717         * select.h (select_convert_in): Declare.
6718         * select.h (select_convert_out): Declare.
6719         * select.c (select_convert_in): New.
6720         * select.c (select_convert_out): New.
6721         New conversion functions for other files to call.
6722
6723         * select.h (select_notify_buffer_kill): Declare.
6724         * select.c (select_notify_buffer_kill): New.
6725         New functions that get called from kill-buffer.
6726
6727         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
6728         X-specific lisp code.
6729
6730         * select.h: Declare some of the lisp-visible functions for
6731         external use.
6732
6733         * select.c (clean_local_selection_data): Removed. This was
6734         a disgusting function, and previously should have been in
6735         select-x.c in any case. The functionality is now provided
6736         in select-convert-from-integer (select.el).
6737
6738         * select.c (available-selection-types): Fixed stupidity where
6739         INTEGER and ATOM got added twice. Also add STRING when we see an
6740         extent.
6741
6742         * select.c (get-selection-internal): Removed symbol stripping. No
6743         longer causes conversion when data comes from the internal cache.
6744
6745         * select.c (syms_of_select): Added new functions.
6746
6747         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
6748         error checking - previously this called abort!
6749
6750         * select-x.c (x_own_selection): Changed comment.
6751
6752         * select-x.c (x_handle_selection_request): Use select_convert_out.
6753         Don't mess with selection-alist; it's an internal variable of select.c.
6754
6755         * select-x.c (x_get_foreign_selection): Use select_convert_in.
6756
6757         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
6758         rather than messing with selection-alist.
6759
6760         * select-msw.c (mswindows_get_foreign_selection):
6761         Use TO_INTERNAL_FORMAT rather than hacking.
6762
6763 2000-07-14  Martin Buchholz  <martin@xemacs.org>
6764
6765         * process-unix.c (unix_open_multicast_group):
6766         (unix_open_multicast_group): Remove useless casts.
6767
6768 2000-07-13  Martin Buchholz  <martin@xemacs.org>
6769
6770         * sound.c (Fplay_sound): Fix `unused variable' warning.
6771
6772         * emacs.c (main): Use correct type for _environ on SCO5.
6773
6774 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
6775
6776         * console.h (own_selection_method):
6777         * console.h (selection_exists_p_method):
6778         * console.h (available_selection_types_method): New.
6779         * console.h (register_selection_data_type_method): New.
6780         * console.h (selection_data_type_name): New.
6781
6782         * console-msw.h (mswindows_destroy_selection): Declare it.  New
6783         function & alist to track GlobalAlloc()'d handles that need
6784         releasing when the clipboard data gets replaced or emptied.
6785
6786         * event-msw.c (mswindows_wnd_proc): Call it.
6787
6788         * lisp.h, general.c (Qappend): New symbol representing a
6789         `how-to-add' mode.
6790
6791         * select.c (own-selection-internal):
6792         * select.c (selection-exists-p):
6793         * select.c (available-selection-types): New.
6794         * select.c (register-selection-data-type): New.
6795         * select.c (selection-data-type-name): New.  New functions to deal
6796         with device-specific selection data formats.
6797         * select.c (selection-converter-out-alist): Renamed.
6798         * select.c (selection-converter-in-alist): New.
6799         * select.c (selection-appender-alist): New.  Added new alists.
6800         * select.c (syms_of_select, vars_of_select): Added new symbols &
6801         variables.
6802         * select.c (get_local_selection): Split.
6803         * select.c: Removed spurious type checking - selections may now be
6804         of any type, not just strings.
6805         * select.c (own-selection-internal):
6806
6807         * select.h, select.c (convert_selection): New. Created
6808         convert_selection() function based on get_local_selection().
6809         * select.h, select.c (QCF_*): New symbols representing mswindows
6810         clipboard formats.
6811         * select.h, select.c (Qreplace_all, Qreplace_existing): New
6812         symbols representing `how-to-add' modes.
6813
6814         * select-msw.c (x_sym_p): New.
6815         * select-msw.c (symbol_to_ms_cf): New.
6816         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
6817         symbols & clipboard formats. Can also handle string names.
6818         * select-msw.c (mswindows_own_selection):
6819         * select-msw.c (mswindows_selection_exists_p):
6820         Added `data-type' parameter. Use it.
6821         * select-msw.c (mswindows_available_selection_types): New.
6822         * select-msw.c (mswindows_register_selection_data_type): New.
6823         * select-msw.c (mswindows_selection_data_type_name): New.
6824         * select-msw.c (mswindows_own_selection):
6825         * select-msw.c (mswindows_get_foreign_selection):
6826         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
6827         * select-msw.c (console_create_select_mswindows): Added new methods.
6828         * select-msw.c (mswindows_destroy_selection): New.
6829         * select-msw.c (Vhandle_alist): New list.
6830         * select-msw.c (mswindows_own_selection):
6831
6832         * select-x.c (x_own_selection):
6833         * select-x.c (x_selection_exists_p):
6834         * select-x.c: Added some comments about maybe using new
6835         functionality.
6836         * select-x.c (x_own_selection):
6837
6838         * specifier.c: Remove definition of Qappend (now in general.c)
6839         * specifier.c (syms_of_specifier): Remove Qappend.
6840
6841 2000-07-12  Martin Buchholz  <martin@xemacs.org>
6842
6843         * config.h.in: Add socklen_t.
6844
6845         * s/decosf4-0.h: No special compiler flags needed or desired.
6846         In particular, undefine _BSD for DEC OSF 4.0.
6847
6848 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6849
6850         * redisplay-msw.c (msprinter_frame_output_end): Added.
6851         (console_type_create_redisplay_mswindows): Referred the above.
6852
6853         * frame.c (setup_frame_without_minibuffer): Do not create a
6854         default minibuffer frame on a printer device.
6855
6856         * frame-msw.c (apply_dc_geometry): Added.
6857         (msprinter_start_page):
6858         (msprinter_init_frame_3):
6859         (msprinter_eject_page): Use it.
6860
6861         * console-msw.h (struct msprinter_frame): Added pix_left and top,
6862         and removed residual duplex and orientation properties.
6863
6864 2000-07-11  Martin Buchholz  <martin@xemacs.org>
6865
6866         * eval.c (function_argcount): Work around a DEC CC compiler bug.
6867
6868         * unexalpha.c: Remove system prototypes from C sources!
6869
6870 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
6871
6872         * eval.c: Remove references to M-x edit-options in DEFUNs for
6873         `defvar' and `defconst'.
6874
6875 2000-07-09  Martin Buchholz  <martin@xemacs.org>
6876
6877         * config.h.in: Remove SMART_INCLUDE hackery.
6878
6879         PostgreSQL hacking:
6880         * config.h.in: Don't use SMART_INCLUDE.
6881
6882         * postgresql.h: Include libpq-fe.h here.  Fix typo.
6883         * inline.c: Simply #include "postgresql.h"
6884         * postgresql.c:
6885         - Don't use SMART_INCLUDE
6886         - Use simply "const".
6887         - Use standard doc string conventions.
6888         - Use correct type for result of PQstatus.
6889
6890 2000-07-09  Martin Buchholz  <martin@xemacs.org>
6891
6892         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
6893
6894         C++ compilation changes.
6895         * config.h.in (EXTERN_C): Define.
6896         * config.h.in (not): This is also a C++ keyword.
6897         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
6898         * cm.c: Use EXTERN_C.
6899         * redisplay-tty.c: Use EXTERN_C.
6900         * sysdep.c: Use EXTERN_C.  Remove Gould support.
6901
6902 2000-07-09  Martin Buchholz  <martin@xemacs.org>
6903
6904         * general.c: Remove duplicate definition for Qfunction.
6905
6906 2000-07-08  Ben Wing  <ben@xemacs.org>
6907
6908         * device-msw.c (msprinter_init_device):
6909         * device-msw.c (sync_printer_with_devmode):
6910         * device-msw.c (handle_devmode_changes):
6911         * device-msw.c (print_dialog_worker):
6912         * device-msw.c (Fmsprinter_apply_settings):
6913         * device-msw.c (hash_devmode):
6914         * device-msw.c (Fmsprinter_settings_despecialize):
6915         use Qmswindows_tstr, not Qctext.
6916
6917         * vm-limit.c (check_memory_limits):
6918         avoid infinite loop printing warning messages.
6919
6920 2000-07-05  Craig Lanning  <lanning@scra.org>
6921
6922         * Makefile.in.in: Add support for including the Windows resources
6923         when building with the cygwin and mingw targets.
6924
6925         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
6926         not set or not correct.
6927         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
6928         (init_initial_directory): Don't try to use $PWD on the
6929         WIN32_NATIVE target.
6930
6931         * s\cygwin32.h:
6932         [[Add -mwindows to eliminate console window.]] not required --ben
6933         (HAVE_NATIVE_SOUND): removed; now handled by configure.
6934         (MAIL_USE_POP): removed; now handled by configure.
6935
6936         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
6937         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
6938         (HAVE_NATIVE_SOUND): removed; now handled by configure.
6939         (MAIL_USE_POP): removed; now handled by configure.
6940         (ENCAPSULATE_STAT): from Dan Holmsand, added.
6941         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
6942         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
6943         constant string.
6944         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
6945         up from <winsock.h> via systime.h.
6946         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
6947         (getpagesize): from Dan Holmsand, added.
6948         Added #endif which was left dangling by Ben's mega patch; added
6949         comment to help prevent this in the future.
6950
6951         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
6952
6953 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6954
6955         * console-msw.h (struct mswindows_device): Removed unnecessary
6956         cached device geometry values.
6957         Added update_tick and an accessor macro.
6958         (Lisp_Devmode): Added lrecord declaration.
6959         (struct msprinter_device): Contain devmode as a Lisp object.
6960         Added mswindows_get_selected_frame_hwnd();
6961
6962         * console.h (struct console_methods): Indentation nitpicking.
6963
6964         * device-msw.c (mswindows_init_device): Do not initialize geometry
6965         cache. Initialize update tick.
6966         (mswindows_device_system_metrics): Ask the device for its geometry.
6967         (global_free_2_maybe):
6968         (devmode_to_hglobal):
6969         (handle_printer_changes):
6970         (ensure_not_printing):
6971         (print_dialog_worker):
6972         (Fmsprinter_print_setup_dialog):
6973         (Fmsprinter_print_dialog):
6974         (plist_get_margin):
6975         (plist_set_margin):
6976         (Fmsprinter_page_setup_dialog): Added functions.
6977         (sync_printer_with_devmode):
6978         (handle_devmode_changes):
6979         (Fmsprinter_get_settings):
6980         (Fmsprinter_select_settings):
6981         (Fmsprinter_apply_settings):
6982         (allocate_devmode):
6983         (Fmsprinter_settings_copy):
6984         (Fmsprinter_settings_despecialize):
6985         (print_devmode):
6986         (finalize_devmode):
6987         (equal_devmode):
6988         (hash_devmode): Added functions
6989         (syms_of_device_mswindows): Init devmode lrecord class.
6990
6991         * device.h: Added an exfun for find-device.
6992
6993         * event-msw.c (mswindows_wnd_proc): Do not update the cached
6994         geometry; although, recreate the device compatible DC.
6995
6996         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
6997         (msprinter_init_frame_3):
6998         (msprinter_frame_property):
6999         (msprinter_internal_frame_property_p):
7000         (msprinter_frame_properties):
7001         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
7002         print job properties (will move to device settings).
7003
7004         * lisp.h: Added symbols.
7005
7006         * general.c (syms_of_general): Declared them.
7007
7008         * hash.c (string_hash): Added.
7009
7010         * lrecord.h (lrecord_type): Added devmode lrecord type.
7011
7012 2000-07-02  Mike Sperber <mike@xemacs.org>
7013
7014         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
7015         FreeBSD 4.0.
7016
7017 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
7018
7019         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
7020         integer.
7021
7022 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
7023
7024         * data.c (Fstring_to_number): Don't recognize floating point if
7025         base is not 10.
7026
7027 2000-06-22  Martin Buchholz  <martin@xemacs.org>
7028
7029         * glyphs-widget.c (tab_control_query_geometry):
7030         (widget_query_geometry):
7031         (button_query_geometry):
7032         * glyphs.c (text_query_geometry):
7033         Enforce type correctness.
7034
7035 2000-06-18  Martin Buchholz  <martin@xemacs.org>
7036
7037         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
7038         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
7039
7040 2000-06-17  Martin Buchholz  <martin@xemacs.org>
7041
7042         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
7043         conflicts with gcc's fixincluded version of FOO.h.
7044
7045         * glyphs.h (image_instance_geometry): Remove trailing `,'
7046
7047 2000-06-08  Mike Alexander  <mta@arbortext.com>
7048
7049         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
7050         (shove_thread): Don't write the same output twice
7051         (make_ntpipe_output_stream): Increase priority of shove thread
7052         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
7053         chance to run
7054         (ntpipe_shove_closer): Don't delete the pipe until we're done with
7055         it.
7056
7057 2000-06-12  Ben Wing  <ben@xemacs.org>
7058
7059         * s\mingw32.h (sigset):
7060         * s\windowsnt.h (sigset):
7061         rename msw_ to mswindows_ for consistency with general convention.
7062
7063 2000-06-12  Ben Wing  <ben@xemacs.org>
7064
7065         * console-msw.c:
7066         * console-msw.c (mswindows_get_console_hwnd):
7067         * console-msw.c (mswindows_ensure_console_allocated):
7068         * console-msw.c (mswindows_hide_console):
7069         * console-msw.c (mswindows_show_console):
7070         * console-msw.c (mswindows_ensure_console_buffered):
7071         * console-msw.c (mswindows_output_console_string):
7072         * console-msw.c (mswindows_windows9x_p):
7073         * console-msw.h:
7074         * device-msw.c (mswindows_get_workspace_coords):
7075         * device-msw.c (mswindows_device_system_metrics):
7076         * dialog-msw.c (mswindows_popup_dialog_box):
7077         * event-msw.c (mswindows_wnd_proc):
7078         * frame-msw.c (mswindows_size_frame_internal):
7079         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
7080         * menubar-msw.c (displayable_menu_item):
7081         * menubar-msw.c (mswindows_char_is_accelerator):
7082         * nt.c:
7083         * nt.c (mswindows_sigset):
7084         * nt.c (mswindows_sigrelse):
7085         * nt.c (mswindows_sigpause):
7086         * nt.c (mswindows_raise):
7087         * nt.c (timer_proc):
7088         * ntproc.c:
7089         * ntproc.c (find_child_console):
7090         * ntproc.c (sys_kill):
7091         * print.c:
7092         * print.c (std_handle_out_external):
7093         * process-nt.c (find_child_console):
7094         * process-nt.c (send_signal_the_95_way):
7095         * process-nt.c (ensure_console_window_exists):
7096         * process-nt.c (nt_create_process):
7097         * syssignal.h:
7098         rename msw_ to mswindows_ for consistency with general convention.
7099
7100         * emacs.c:
7101         * dumper.c:
7102         include nt.h, not syswindows.h.
7103
7104         * nt.c (mswindows_fstat):
7105         * nt.c (mswindows_stat):
7106         prefix mswindows_ instead of attempting to directly override the
7107         library functions.  fix declarations.
7108
7109         * nt.h:
7110         include syswindows.h.  move some sysdep.h stuff here.
7111
7112         * ntheap.h:
7113         include syswindows.h, not <windows.h>.
7114
7115         * ntplay.c:
7116         clean up headers.
7117
7118         * sysdep.c:
7119         clean up headers.
7120
7121         * sysdep.c (sys_fstat):
7122         * sysdep.c (sys_stat):
7123         call mswindows versions when appropriate.
7124
7125         * sysdep.h:
7126         move mswin decls to nt.h.
7127
7128         * syswindows.h:
7129         add long comment describing appropriate use of the various windows
7130         headers.
7131
7132 2000-06-11  Ben Wing  <ben@xemacs.org>
7133
7134         * device-x.c: Correct doc string for sixth arg of x-get-resource.
7135
7136 2000-06-10  Ben Wing  <ben@xemacs.org>
7137
7138         * Makefile.in.in (release):
7139         Correction to make sure xemacs.exe always dumped when correct.
7140
7141         * alloca.c:
7142         * balloon_help.c:
7143         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
7144
7145         * buffer.c (set_buffer_internal):
7146         [[[[2]]]]: Remove HAVE_FEP code.
7147
7148         * buffer.c (init_initial_directory):
7149         [3].
7150
7151         * bytecode.c:
7152         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
7153         individual files.
7154
7155         * callproc.c:
7156         * callproc.c (call_process_cleanup):
7157         * callproc.c (Fold_call_process_internal):
7158         * callproc.c (child_setup):
7159         * callproc.c (getenv_internal):
7160         * callproc.c (init_callproc):
7161         * callproc.c (vars_of_callproc):
7162         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
7163         __CYGWIN32__ -> CYGWIN.
7164         DOS_NT -> WIN32_NATIVE.
7165         Remove MSDOS support/references, converting to WIN32_NATIVE
7166           where correct.
7167         __MINGW32__ -> MINGW.
7168         Fix windows.h includes.
7169         Remove bogus HAVE_NTGUI.
7170
7171         * config.h.in:
7172         [2].
7173
7174         * console-msw.c:
7175         mswindows_message_outputted added for use in allowing startup
7176         errors on the console to be seen.
7177
7178         * console-msw.c (msw_ensure_console_allocated):
7179         * console-msw.c (msw_output_console_string):
7180         * console-msw.c (DHEADER):
7181         * console-msw.c (DOPAQUE_DATA):
7182         * console-msw.c (DEVENT):
7183         * console-msw.c (DCONS):
7184         * console-msw.c (DCONSCDR):
7185         * console-msw.c (DSTRING):
7186         * console-msw.c (DVECTOR):
7187         * console-msw.c (DSYMBOL):
7188         * console-msw.c (DSYMNAME):
7189         Fix warnings.
7190
7191         * console-stream.c (stream_init_console):
7192         Fix text/binary problems.
7193
7194         * device-msw.c:
7195         * device-msw.c (mswindows_finish_init_device):
7196         * device-msw.c (mswindows_delete_device):
7197         [1].
7198
7199         * device.c (handle_asynch_device_change):
7200         [3].
7201
7202         * dgif_lib.c:
7203         * dgif_lib.c (DGifOpenFileName):
7204         * dgif_lib.c (DGifOpenFileHandle):
7205         * dgif_lib.c (DGifGetLine):
7206         * dgif_lib.c (DGifGetPixel):
7207         Added config.h/lisp.h, fix up includes.
7208         [1].
7209
7210         * dired-msw.c:
7211         [4].
7212
7213         * dired.c:
7214         * dired.c (file_name_completion):
7215         * dired.c (Ffile_attributes):
7216         * dired.c (syms_of_dired):
7217         [1].
7218
7219         * dumper.c:
7220         * dumper.c (pdump_file_unmap):
7221         * dumper.c (pdump_load):
7222         [1].
7223
7224         * editfns.c:
7225         * editfns.c (Ftemp_directory):
7226         * editfns.c (user_login_name):
7227         * editfns.c (Fuser_real_login_name):
7228         * editfns.c (get_home_directory):
7229         [1].
7230
7231         * elhash.c (finish_marking_weak_hash_tables):
7232         [[[[5]]]]: Fix GCC warnings.
7233
7234         * emacs.c:
7235         * emacs.c (mswindows_handle_hardware_exceptions):
7236         * emacs.c (make_arg_list_1):
7237         * emacs.c (main_1):
7238         * emacs.c (Fkill_emacs):
7239         * emacs.c (Fdump_emacs):
7240         [1].
7241         Fix problems with nested crashes, add long comment.
7242
7243         * event-Xt.c (init_event_Xt_late):
7244         [1].
7245
7246         * event-msw.c:
7247         * event-msw.c (mswindows_dde_callback):
7248         * event-msw.c (mswindows_handle_sticky_modifiers):
7249         * event-msw.c (mswindows_wnd_proc):
7250         [1].
7251         [5].
7252
7253         * events.c (character_to_event):
7254         [1].
7255
7256         * fileio.c:
7257         * fileio.c (Ffile_name_directory):
7258         * fileio.c (Ffile_name_nondirectory):
7259         * fileio.c (directory_file_name):
7260         * fileio.c (Fexpand_file_name):
7261         * fileio.c (Fsubstitute_in_file_name):
7262         * fileio.c (Ffile_name_absolute_p):
7263         * fileio.c (check_executable):
7264         * fileio.c (Ffile_readable_p):
7265         * fileio.c (Ffile_accessible_directory_p):
7266         * fileio.c (Ffile_modes):
7267         * fileio.c (Funix_sync):
7268         * fileio.c (vars_of_fileio):
7269         [1]. [4].
7270
7271         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
7272
7273         Expand getdefdir defn.
7274         Fix bogus rename() comment.
7275
7276         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
7277         to use standard XEmacs include files, e.g. sysfile.h, rather
7278         than system-specific includes.
7279
7280         * fns.c:
7281         * fns.c (Fsubseq):
7282         [5]. [6].
7283
7284         * frame.c (vars_of_frame):
7285         [1].
7286
7287         * getloadavg.c:
7288         * getloadavg.c (getloadavg):
7289         [1]. [6].
7290         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
7291         (We don't use it elsewhere in the code; just add a comment.)
7292
7293         * gif_io.c:
7294         [6].
7295         Add config.h.
7296
7297         * glyphs-msw.c:
7298         * glyphs-msw.c (mswindows_resource_instantiate):
7299         [1].
7300
7301         * glyphs-x.c (x_native_layout_instantiate):
7302         [5].
7303
7304         * gui-msw.c (Fmswindows_shell_execute):
7305         [1].
7306
7307         * insdel.c:
7308         [4].
7309
7310         * lisp.h:
7311         [4]. [5].
7312
7313         * lread.c (locate_file_in_directory_mapper):
7314         [1].
7315
7316         * lstream.c:
7317         [4].
7318
7319         * mem-limits.h:
7320         * mem-limits.h (get_lim_data):
7321         [1].
7322
7323         * menubar-msw.c:
7324         [4].
7325
7326         * ndir.h:
7327         [1].
7328
7329         * nt.c:
7330         * nt.c (getwd):
7331         * nt.c (closedir):
7332         * nt.c (rva_to_section):
7333         * nt.c (mswindows_executable_type):
7334         [1]. [6].
7335         Fix closedir() defn.
7336
7337         * nt.h:
7338         [[[[8]]]]: *_OK defs moved to sysfile.h.
7339
7340         * ntproc.c:
7341         [6]. [7].
7342
7343         * objects-x.c:
7344         [4].
7345
7346         * print.c:
7347         * print.c (std_handle_out_external):
7348         [1]. [4].
7349
7350         * process-nt.c:
7351         * process-nt.c (nt_create_process):
7352         [6].
7353         try to fix process quoting somewhat.
7354
7355         * process-unix.c (unix_create_process):
7356         [1].
7357
7358         * process.c:
7359         * process.c (vars_of_process):
7360         Add Vnull_device.
7361
7362         * process.h:
7363         [1].
7364
7365         * realpath.c:
7366         * realpath.c (xrealpath):
7367         [1].
7368
7369         * redisplay-tty.c (init_tty_for_redisplay):
7370         [3].
7371
7372         * redisplay.c:
7373         [4]. [6].
7374
7375         * scrollbar-msw.c:
7376         [4].
7377
7378         * sheap.c:
7379         * sheap.c (more_static_core):
7380         * sheap.c (report_sheap_usage):
7381         [5]. [6].
7382
7383         * signal.c:
7384         * signal.c (alarm_signal):
7385         [1]. [6].
7386
7387         * sound.c:
7388         [6].
7389
7390         * strftime.c:
7391         * strftime.c (zone_name):
7392         [1]. [5].
7393
7394         * symsinit.h (init_sunpro):
7395         [1].
7396
7397         * syscommctrl.h:
7398         commctrl.h not in Cygwin b20.1.
7399
7400         * sysdep.c:
7401         * sysdep.c (endif):
7402         * sysdep.c (sys_subshell):
7403         * sysdep.c (init_baud_rate):
7404         * sysdep.c (emacs_get_tty):
7405         * sysdep.c (emacs_set_tty):
7406         * sysdep.c (tty_init_sys_modes_on_device):
7407         * sysdep.c (init_system_name):
7408         * sysdep.c (sys_open):
7409         * sysdep.c (interruptible_open):
7410         * sysdep.c (sys_fopen):
7411         * sysdep.c (sys_mkdir):
7412         * sysdep.c (sys_rename):
7413         * sysdep.c (get_process_times_1):
7414         [1]. [6].
7415
7416         * sysdep.h:
7417         [1].
7418
7419         * sysdir.h:
7420         * sysdir.h (DIRENTRY_NONEMPTY):
7421         [1]. [6].
7422
7423         * sysdll.c (dll_init):
7424         * sysdll.h:
7425         [1].
7426
7427         * sysfile.h:
7428         [1]. [6]. [8].
7429         added text/binary defs.
7430
7431         * sysfloat.h:
7432         [1].
7433
7434         * sysproc.h:
7435         * sysproc.h (EDESTADDRREQ):
7436         * sysproc.h (poll_fds_for_input):
7437         [1]. [6].
7438
7439         * syspwd.h:
7440         [6].
7441
7442         * syssignal.h:
7443         [1].
7444
7445         * systime.h:
7446         [1]. [6].
7447
7448         * systty.h:
7449         [1].
7450
7451         * syswindows.h:
7452         [1].
7453         Always define WIN32_LEAN_AND_MEAN.
7454
7455         * unexcw.c (unexec):
7456         [5].
7457
7458         * unexec.c:
7459         * unexec.c (copy_text_and_data):
7460         * unexec.c (adjust_lnnoptrs):
7461         [1].
7462
7463         * unexnt.c:
7464         * unexnt.c (_start):
7465         [1].
7466
7467 2000-06-07  Ben Wing  <ben@xemacs.org>
7468
7469         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
7470         was used only as a model.  We've long since extracted any useful
7471         logic or code out of this. (I just did an exhaustive search.)
7472
7473         * s\msdos.h: Removed.
7474
7475         * s\windows95.h: Removed.
7476
7477 2000-06-10  Ben Wing  <ben@xemacs.org>
7478
7479         * s\cygwin32.h:
7480         [1]. [5].
7481         Don't use extern with fun defs.
7482
7483         * s\mingw32.h:
7484         [1]. [7].
7485         Remove nt\inc include.
7486         Remove getdisk, getdefdir. (The former is unused, the latter
7487         expanded in fileio.h.)
7488
7489         * s\windowsnt.h:
7490         * s\windowsnt.h (WIN32_NATIVE):
7491         * s\windowsnt.h (HAVE_STRCASECMP):
7492         [1]. [7].
7493         Add long comment about preprocessor changes.
7494         Remove getdisk, getdefdir. (The former is unused, the latter
7495         expanded in fileio.h.)
7496
7497 2000-06-10  Ben Wing  <ben@xemacs.org>
7498
7499         * m\arm.h:
7500         * m\delta.h:
7501         * m\intel386.h:
7502         * m\sequent.h:
7503         * m\template.h:
7504         * m\windowsnt.h:
7505         [1].
7506         Remove bogus/unused NO_SOCK_SIGIO.
7507
7508 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
7509
7510         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
7511         not an Emchar.
7512
7513 2000-06-04  Mike Sperber <mike@xemacs.org>
7514
7515         * casetab.c (set_case_table): For `set-standard-case-table',
7516         actually deposit the new case tables where the rest of XEmacs can
7517         see them.
7518
7519 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
7520
7521         * data.c (Faset): Don't cast XCHAR() to unsigned char.
7522
7523 2000-06-05  Ben Wing  <ben@xemacs.org>
7524
7525         * callproc.c (child_setup): Don't do close_load_descs() under
7526         MS Windows.  Put in a comment explaining why.
7527
7528 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
7529
7530         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
7531         Toolkit shell" which breaks `kill-compilation' on Windows NT
7532         native, retaining STDERR handling improvements.
7533
7534 2000-06-01  Andreas Jaeger  <aj@suse.de>
7535
7536         * s/s390.h: Support for S390, based on a patch by Martin
7537         Schwidefsky <schwidefsky@de.ibm.com>.
7538
7539 2000-05-30  Andy Piper  <andy@xemacs.org>
7540
7541         * window.c (allocate_window):
7542         (make_dummy_parent):
7543         (Fset_window_configuration): use new hashtable type.
7544
7545         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
7546         (struct image_instantiator_methods):
7547         (struct Lisp_Image_Instance): make instance geometry signed.
7548
7549         * glyphs.c (instantiate_image_instantiator):
7550         (image_instance_query_geometry):
7551         (image_instance_layout):
7552         (image_instance_layout):
7553         (query_string_geometry):
7554         (text_query_geometry):
7555         (image_instantiate):
7556         (image_instantiate):
7557         (cache_subwindow_instance_in_frame_maybe):
7558         (subwindow_query_geometry): make instance geometry signed.
7559
7560         * glyphs-widget.c (widget_query_geometry):
7561         (widget_layout):
7562         (button_query_geometry):
7563         (tree_view_query_geometry):
7564         (tab_control_query_geometry):
7565         (layout_query_geometry):
7566         (layout_layout):
7567         (native_layout_layout): make instance geometry signed.
7568
7569 2000-05-29  Olivier Galibert  <galibert@pobox.com>
7570
7571         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
7572         constant.
7573
7574         * general.c (syms_of_general): Add Qfull_assoc symbol.
7575
7576         * data.c (finish_marking_weak_lists): Mark full-assoc lists
7577         correctly.
7578         (decode_weak_list_type): Decode full-assoc type.
7579         (encode_weak_list_type): Encode full-assoc type.
7580         (Fmake_weak_list): Update doc string.
7581
7582 2000-05-30  Andy Piper  <andy@xemacs.org>
7583
7584         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
7585
7586         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
7587         (decode_hash_table_weakness): ditto.
7588         (Fhash_table_weakness): ditto.
7589         (Fhash_table_type): ditto.
7590         (finish_marking_weak_hash_tables): ditto.
7591         (hash_table_weakness_validate): ditto.
7592         (syms_of_elhash): ditto.
7593
7594 2000-05-28  Martin Buchholz <martin@xemacs.org>
7595
7596         * XEmacs 21.2.34 is released.
7597
7598 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
7599
7600         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
7601         start cache.
7602         (updating_line_start_cache): Gone.
7603         (regenerate_window): Replace resetting of VERTICAL_CLIP by
7604         generic code to force a minimum of 1 line laid out in the
7605         CMOTION_DISP case.
7606
7607 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
7608
7609         * glyphs.c (instantiate_image_instantiator): Check for initialized
7610         height & width no longer special cases IMAGE_NOTHING.
7611         (nothing_instantiate): Set height and width of instance.
7612
7613 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
7614
7615         * unexelf.c (unexec): Search for ".data" section.
7616         Initialize new_data2_offset from old_data_index.
7617         Remove redundant check for ElfW.
7618
7619 2000-05-23  Andy Piper  <andy@xemacs.org>
7620
7621         * glyphs.c (get_image_instantiator_governing_domain): allow more
7622         specific domains as the governing domain rather than expecting an
7623         exact match. This fixes problems with layouts.
7624
7625 2000-05-22  Andy Piper  <andy@xemacs.org>
7626
7627         * redisplay-output.c (compare_runes): check for non-images
7628
7629         * glyphs.c (set_glyph_dirty_p): ditto.
7630         (update_glyph_cachel_data): ditto.
7631
7632         * glyphs-widget.c (layout_post_instantiate): ditto.
7633         (layout_post_instantiate): ditto.
7634
7635         * event-msw.c (mswindows_wnd_proc): warning removal.
7636
7637 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
7638
7639         * s\mingw32.h: Added #undef for CLASH_DETECTION.
7640
7641         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
7642
7643         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
7644
7645         * nt.c (rva_to_section): mingw32 needs rva_to_section.
7646         (mswindows_executable_type): mingw32 now has enough headers for
7647         this to work.
7648
7649 2000-05-20  Andy Piper  <andy@xemacs.org>
7650
7651         * console-msw.c (mswindows_output_last_error): ; -> ,
7652
7653 2000-05-12  Andy Piper  <andy@xemacs.org>
7654
7655         * console-msw.c (FROB): compare ints with ints.
7656
7657 2000-05-11  Andy Piper  <andy@xemacs.org>
7658
7659         * glyphs-x.c (x_finalize_image_instance): make minimal build
7660         happy.
7661
7662 2000-05-20  Ben Wing  <ben@xemacs.org>
7663
7664         * event-Xt.c:
7665         * event-Xt.c (vars_of_event_Xt):
7666         move modifier-keys-are-sticky to event-stream.c.
7667
7668         * event-msw.c:
7669         * event-msw.c (mswindows_enqueue_mouse_button_event):
7670         * event-msw.c (key_needs_default_processing_p):
7671         * event-msw.c (XEMSW_LCONTROL):
7672         * event-msw.c (mswindows_handle_sticky_modifiers):
7673         * event-msw.c (FROB):
7674         * event-msw.c (clear_sticky_modifiers):
7675         * event-msw.c (output_modifier_keyboard_state):
7676         * event-msw.c (output_alt_keyboard_state):
7677         * event-msw.c (mswindows_wnd_proc):
7678         * event-msw.c (mswindows_modifier_state):
7679         * event-msw.c (emacs_mswindows_handle_magic_event):
7680         implement sticky modifiers.
7681
7682         * event-stream.c:
7683         * event-stream.c (vars_of_event_stream):
7684         move modifier-keys-are-sticky here.
7685
7686         * lisp.h:
7687         add CHECK_FUNCTION.
7688
7689         * rangetab.c:
7690         implement map-range-table.
7691
7692
7693 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
7694
7695         * redisplay-tty.c (reset_tty_modes):
7696         (tty_redisplay_shutdown): Adjust argument type to
7697         tty_frame_output_end.
7698
7699 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
7700
7701         * eval.c (Fbacktrace): Don't output a line with only right
7702         parenthesis.
7703
7704 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
7705
7706         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
7707         (Fpq_reset_poll): Ditto.
7708
7709 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
7710
7711         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
7712
7713 2000-05-16  Ben Wing  <ben@xemacs.org>
7714
7715         * buffer.c:
7716         * buffer.c (dfc_convert_to/from_internal_format):
7717         * buffer.c (reinit_vars_of_buffer):
7718         Fix conversion functions to allow reentrancy.
7719
7720         * console-msw.c:
7721         * console-msw.c (mswindows_output_last_error):
7722         New fun, generally useful -- output a human-readable
7723         version of GetLastError() on the console.
7724
7725         * console-msw.h:
7726         * console-msw.h (struct mswindows_frame):
7727         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
7728
7729         * console-stream.c (stream_output_begin):
7730         * console-stream.c (stream_output_end):
7731         * console-stream.c (stream_output_vertical_divider):
7732         * console-stream.c (stream_clear_region):
7733         * console-stream.c (stream_flash):
7734         * console-stream.c (console_type_create_stream):
7735         Delete blank stream methods, not needed.
7736
7737         * console.h (struct console_methods):
7738         Split begin/end methods into window and frame.
7739
7740         * event-msw.c:
7741         * event-msw.c (mswindows_handle_paint):
7742         * event-msw.c (output_alt_keyboard_state):
7743         * event-msw.c (mswindows_wnd_proc):
7744         * event-msw.c (vars_of_event_mswindows):
7745         Comment about problems with ignored-expose.
7746         Define mswindows-debug-events; not really implemented.
7747
7748         * frame-msw.c (mswindows_init_frame_1):
7749         random cleanups.
7750
7751         * glyphs-msw.c:
7752         * glyphs-msw.c (begin_defer_window_pos):
7753         * glyphs-msw.c (mswindows_unmap_subwindow):
7754         * glyphs-msw.c (mswindows_map_subwindow):
7755         * glyphs-msw.c (mswindows_resize_subwindow):
7756         Use DeferWindowPos to reduce flashing when mapping/unmapping.
7757
7758         * glyphs.c (make_image_instance_1):
7759         Fix crash.
7760
7761         * gutter.c (Fredisplay_gutter_area):
7762         Use new begin/end methods.
7763
7764         * lisp.h (Dynarr_new2):
7765         New creation fun.
7766
7767         * redisplay-msw.c:
7768         * redisplay-msw.c (mswindows_frame_output_begin):
7769         * redisplay-msw.c (mswindows_frame_output_end):
7770         * redisplay-msw.c (console_type_create_redisplay_mswindows):
7771         New begin/end methods -- handle DeferWindowPos.
7772
7773         * redisplay-output.c (redisplay_move_cursor):
7774         * redisplay-output.c (redraw_cursor_in_window):
7775         * redisplay-output.c (redisplay_update_line):
7776         * redisplay-output.c (redisplay_output_window):
7777         New begin/end methods.
7778
7779         * redisplay-tty.c:
7780         * redisplay-tty.c (tty_frame_output_begin):
7781         * redisplay-tty.c (tty_frame_output_end):
7782         * redisplay-tty.c (console_type_create_redisplay_tty):
7783         New begin/end methods.
7784
7785         * redisplay-x.c:
7786         * redisplay-x.c (x_window_output_begin):
7787         * redisplay-x.c (x_window_output_end):
7788         * redisplay-x.c (console_type_create_redisplay_x):
7789         New begin/end methods.
7790
7791         * redisplay.c (redisplay_frame):
7792         * redisplay.c (Fredisplay_echo_area):
7793         New begin/end methods.
7794         use MAYBE_DEVMETH for clear_frame; it may not exist.
7795
7796         * window.h (WINDOW_XFRAME):
7797         WINDOW_XFOO macros -- get locale and decode struct pointer.
7798
7799
7800 2000-05-12  Ben Wing  <ben@xemacs.org>
7801
7802         * emacs.c:
7803         * emacs.c (ensure_no_quitting_from_now_on):
7804         * emacs.c (fatal_error_signal):
7805         * emacs.c (mswindows_handle_hardware_exceptions):
7806         * emacs.c (main):
7807         * emacs.c (Fkill_emacs):
7808         * emacs.c (shut_down_emacs):
7809         * emacs.c (assert_failed):
7810         various improvements in fatal error handling.
7811
7812         * eval.c:
7813         move preparing_for_armageddon to emacs.c.
7814
7815         * lisp.h:
7816         declare fatal_error_in_progress.
7817
7818         * print.c:
7819         * print.c (std_handle_out_external):
7820         * print.c (std_handle_out_va):
7821         * print.c (stderr_out):
7822         * print.c (stdout_out):
7823         use console under mswin when no standard output.
7824         don't do code conversion during fatal error.
7825
7826         * scrollbar.c (Fscrollbar_page_up):
7827         * scrollbar.c (Fscrollbar_page_down):
7828         fix missing else.  reindent.
7829
7830 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
7831
7832         Emergency fix.
7833
7834         * glyphs.h (GLYPH_CACHEL_DESCENT):
7835         (GLYPH_CACHEL_DESCENT):
7836         (GLYPH_CACHEL_DESCENT):
7837         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
7838         used in case these are inline functions.
7839         Use more absurd values to error check.
7840
7841         include window.h for error check functions.
7842
7843 2000-05-11  Ben Wing  <ben@xemacs.org>
7844
7845         * cmdloop.c (Freally_early_error_handler):
7846         Display message box under windows; otherwise, message will disappear
7847         before it can be viewed.
7848
7849         * console-msw.c:
7850         * console-msw.c (Fmswindows_message_box):
7851         * console-msw.c (FROB):
7852         * console-msw.c (syms_of_console_mswindows):
7853         Define new fun `mswindows-message-box'.
7854         #### I will merge this into `popup-dialog-box'; just give me
7855         a bit of time.
7856
7857         * general.c:
7858         * general.c (syms_of_general):
7859         Some new symbols used in `mswindows-message-box'.
7860
7861         * glyphs.c:
7862         * glyphs.c (Fset_image_instance_property):
7863         put warning in this fun.
7864
7865         * glyphs.h:
7866         * glyphs.h (GLYPH_CACHEL_WIDTH):
7867         * glyphs.h (GLYPH_CACHEL_ASCENT):
7868         * glyphs.h (GLYPH_CACHEL):
7869         * glyphs.h (GLYPH_CACHEL_GLYPH):
7870         define error-checking versions to try to catch a bug i've seen --
7871         redisplay gets in an infinite loop because the glyph width of the
7872         continuation glyph is 65535.
7873
7874         * lisp.h:
7875         Extern message-box stuff.
7876
7877         * window.c (allocate_window):
7878         * window.c (make_dummy_parent):
7879         * window.c (Fset_window_configuration):
7880         Use EQUAL not EQ for subwindow caches to make them work a bit
7881         better. (Something is still very broken.)
7882
7883
7884 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
7885
7886         * glyphs.c (image_instantiate): Suppress gcc warnings.
7887         (Fmake_image_instance): Fix doc string.
7888         * specifier.c (Fmake_specifier): Ditto.
7889
7890 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
7891
7892         * paths.h.in (PATH_LOCK): Removed.
7893         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
7894         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
7895
7896 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
7897
7898         * fns.c (Ffeaturep): Update e-mail address in doc-string.
7899         Document (featurep '(and xemacs 21.02)).
7900
7901 2000-05-09  Ben Wing  <ben@xemacs.org>
7902
7903         * buffer.c (complex_vars_of_buffer):
7904         update modeline-format doc.
7905
7906         * device.h:
7907         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
7908
7909         * emacs.c:
7910         timeline of all released versions of Emacs, for use in creating
7911         authorship comments and in synching up.
7912
7913         * glyphs-widget.c (image_instantiator_buttons):
7914         * glyphs-widget.c (image_instantiator_edit_fields):
7915         * glyphs-widget.c (image_instantiator_combo_box):
7916         * glyphs-widget.c (image_instantiator_scrollbar):
7917         * glyphs-widget.c (image_instantiator_progress_guage):
7918         * glyphs-widget.c (image_instantiator_tree_view):
7919         * glyphs-widget.c (image_instantiator_tab_control):
7920         * glyphs-widget.c (image_instantiator_labels):
7921         * glyphs-widget.c (image_instantiator_layout):
7922         * glyphs-widget.c (image_instantiator_native_layout):
7923         rename decode_domain method to governing_domain.
7924
7925         * glyphs.c:
7926         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
7927         * glyphs.c (add_entry_to_device_ii_format_list):
7928         make sure we don't put an entry more than once into the list.
7929         * glyphs.c (check_instance_cache_mapper):
7930         *************************************************************
7931         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
7932         HAVE BEEN GETTING.
7933         *************************************************************
7934         * glyphs.c (get_image_instantiator_governing_domain):
7935         clean up, expand on new concept of governing domain.
7936         * glyphs.c (instantiate_image_instantiator):
7937         * glyphs.c (allocate_image_instance):
7938         use governing_domain instead of cache_domain in naming.
7939         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
7940         * glyphs.c (make_image_instance_1):
7941         * glyphs.c (Fmake_image_instance):
7942         allow for any domain (not just device), and process the
7943         governing domain correctly.  very big doc fix.
7944         * glyphs.c (Fimage_instance_domain):
7945         new primitive, to retrieve the governing domain of an image instance.
7946         * glyphs.c (image_instantiate):
7947         use new governing_domain stuff.  this fixes a crash you could get
7948         by instantiating certain widget glyphs in frame locales. (should
7949         signal an error instead of crashing.)
7950         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
7951         * glyphs.c (Fglyphp): clean up doc.
7952         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
7953         * glyphs.c (syms_of_glyphs):
7954         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
7955         * glyphs.c (image_instantiator_format_create): add some comments about
7956         bogus code.
7957         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
7958         for current-display-table. (Apparently Hrjove implemented in 1998 a
7959         design I wrote up in 1996, but didn't update the doc string.)
7960
7961         * glyphs.h: clean up a doc string.
7962         * glyphs.h (governing_domain):
7963         * glyphs.h (struct image_instantiator_methods):
7964         changes for governing_domain stuff.
7965
7966         * gutter.c:
7967         * gutter.c (Fgutter_specifier_p):
7968         * gutter.c (Fgutter_size_specifier_p):
7969         * gutter.c (Fgutter_visible_specifier_p):
7970         * objects.c:
7971         * objects.c (Fcolor_specifier_p):
7972         * objects.c (Ffont_specifier_p):
7973         * objects.c (Fface_boolean_specifier_p):
7974         doc strings moved to make-*-specifier.
7975
7976         * redisplay.c (add_disp_table_entry_runes_1):
7977         * redisplay.c (generate_fstring_runes):
7978         * redisplay.c (screen):
7979         add random comments and doc strings.
7980
7981         * specifier.c:
7982         * specifier.c (Fmake_specifier):
7983         major overhaul of this doc string.
7984
7985         * specifier.c (Fvalid_specifier_domain_p):
7986         comment about the bogosity of image instances being domains.
7987         * specifier.c (decode_domain):
7988         now non-static, used in glyphs.c.
7989         * specifier.c (specifier_instance):
7990         comment about the bogosity of image instances being domains.
7991         * specifier.c (Fgeneric_specifier_p):
7992         move doc string to make-generic-specifier.
7993         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
7994         rebackslashify.
7995
7996         * specifier.h:
7997         * specifier.h (DOMAIN_FRAME):
7998         * specifier.h (DOMAIN_LIVE_P):
7999         * specifier.h (DOMAIN_XDEVICE):
8000         rebackslashify.
8001         add comments about problems with these macros.
8002         prototype for decode_domain.
8003
8004         * toolbar.c:
8005         * toolbar.c (Ftoolbar_specifier_p):
8006         move doc string to `make-toolbar-specifier'.
8007
8008         * window.c (window_unmap_subwindows_cache_mapper):
8009         *************************************************************
8010         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
8011         HAVE BEEN GETTING.
8012         *************************************************************
8013
8014 2000-05-09  Andy Piper  <andy@xemacs.org>
8015
8016         * glyphs.h: declare reset_frame_subwindow_instance_cache.
8017
8018         * window.c (Fset_window_configuration): reset the frame subwindow
8019         cache and re-initialize the window subwindow caches.
8020
8021         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
8022
8023 2000-05-09  Ben Wing  <ben@xemacs.org>
8024
8025         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
8026         DWORD.
8027
8028 2000-04-26  Mike Woolley  <mike@bulsara.com>
8029
8030         * ntheap.c: Changed recreate_heap to limit the amount reserved
8031         for the heap to that which is actually available. Also now
8032         displays a message box (with some dignostics) in the event that
8033         it still can't start.
8034
8035 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
8036
8037         * callproc.c (Fold_call_process_internal): GCPRO path
8038
8039 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
8040
8041         Patch by Bill Perry.
8042
8043         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
8044         back data instead of #ifdef.
8045         (Fscrollbar_page_down): ditto.
8046
8047 2000-05-07  Ben Wing  <ben@xemacs.org>
8048
8049         * buffer.h:
8050         Kludge for defining Qmswindows_tstr.
8051
8052         * nt.c:
8053         * nt.c (open_input_file):
8054         * nt.c (open_output_file):
8055         * nt.c (rva_to_section):
8056         * nt.c (mswindows_executable_type):
8057         Move all memory-mapped-file routines here (some were in unexnt.c,
8058         which is bad because they are used by process-nt.c, and unexnt
8059         won't be around when portable dumping).  Synched the above routines
8060         with FSF 20.6.
8061
8062         * nt.h:
8063         Removed ifdef'd out bogus code.
8064         Fixed some prototypes.
8065
8066         * nt.h (file_data):
8067         * nt.h (OFFSET_TO_RVA):
8068         * nt.h (RVA_TO_OFFSET):
8069         * nt.h (RVA_TO_PTR):
8070         Moved the memory-mapped-file structures, macros and prototypes
8071         here, to parallel nt.c.  ntheap.h should really be removed
8072         entirely, and it's a non-portable-dumper specific file.
8073
8074         * ntheap.h (round_to_next):
8075         Moved the memory-mapped-file structures, macros and prototypes
8076         to nt.h.
8077
8078         * ntproc.c (compare_env):
8079         Moved rva_to_section and mswindows_executable_type to nt.c.
8080         Moved compare_env to process-nt.c.
8081         ntproc.c will die, one day.
8082
8083         * ntproc.c (sys_spawnve):
8084         Account for win32_ -> mswindows_.
8085
8086         * process-nt.c:
8087         * process-nt.c (struct nt_process_data):
8088         * process-nt.c (ensure_console_window_exists):
8089         * process-nt.c (compare_env):
8090         * process-nt.c (nt_create_process):
8091         * process-nt.c (nt_kill_process_by_pid):
8092         * process-nt.c (syms_of_process_nt):
8093         * process-nt.c (vars_of_process_nt):
8094         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
8095         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
8096         changes).  Eliminate our old `nt-quote-process-args' mechanism.
8097         Synch up nt_create_process with FSF 20.6 sys_spawnve.
8098         Move compare_env here from ntproc.c.
8099
8100         * process.c (Fprocess_send_region):
8101         Takes an optional fourth argument, BUFFER, which should fix some
8102         problems with call-process.
8103
8104         * syscommctrl.h:
8105         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
8106
8107         * syswindows.h:
8108         Move ICC_BAR_CLASSES to syscommctrl.h.
8109         Add preliminary macros for MSWindows/Mule.  More to come.
8110
8111         * unexnt.c:
8112         * unexnt.c (unexec):
8113         open_output_file moved to nt.c.
8114
8115
8116 2000-05-05  Andy Piper  <andy@xemacs.org>
8117
8118         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
8119         instance from the frame cache also since GC may catch up too late
8120         to make frame deletion sane.
8121
8122 2000-05-04  Andy Piper  <andy@xemacs.org>
8123
8124         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
8125         (x_finalize_image_instance): ungcpro on deletion.
8126
8127         * glyphs.c (image_instantiator_format_create): give pointers a
8128         query geometry method so that the geometry is at least set.
8129
8130         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
8131         initialize layouts if using widgets.
8132
8133 2000-05-03  Andy Piper  <andy@xemacs.org>
8134
8135         * nt.c: remove bogus reference to sysmmsystem.h
8136
8137         * gui-x.c (popup_selection_callback): fix no selection abort.
8138
8139 2000-05-02  Andy Piper  <andy@xemacs.org>
8140
8141         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
8142         (mswindows_widget_instantiate): ditto.
8143
8144         * glyphs-widget.c (initialize_widget_image_instance): initialize
8145         children correctly.
8146         (widget_instantiate): cope with children and items in the same
8147         instance.
8148
8149         * glyphs.c (mark_image_instance): cope with children as a first
8150         class member.
8151         (image_instance_equal): ditto.
8152         (image_instance_hash): ditto.
8153         (image_instance_changed): ditto.
8154
8155 2000-04-30  Andy Piper  <andy@xemacs.org>
8156
8157         * glyphs.c (subwindow_query_geometry): new function. Return some
8158         defaults.
8159         (subwindow_instantiate): don't assign dimensions if none have been
8160         given.
8161         (image_instantiator_format_create): add subwindow_query_geometry.
8162         (print_image_instance): cope with layouts as widgets.
8163
8164 2000-04-29  Andy Piper  <andy@xemacs.org>
8165
8166         * frame.c (delete_frame_internal): call
8167         free_frame_subwindow_instance_cache so that all subwindows are
8168         finalized before their parent.
8169         (mark_frame): remove subwindow_cachels.
8170         (Fmake_frame): remove subwindow_cachel manipulation.
8171         (allocate_frame_core): subwindow_instance_cache is a weak list.
8172         (delete_frame_internal): set subwindow_instance_cache to nil.
8173
8174         * glyphs-msw.c (mswindows_finalize_image_instance): make double
8175         finalization safe.
8176         (mswindows_finalize_image_instance): use the device
8177         not the domain as the domain may have died already.
8178
8179         * glyphs-x.c (x_finalize_image_instance): ditto.
8180         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
8181         HEIGHT.
8182
8183         * redisplay-output.c (redisplay_unmap_subwindows): update for
8184         subwindow instance cache as a weak list.
8185         (redisplay_unmap_subwindows_maybe): ditto.
8186         (redisplay_unmap_subwindows_except_us): ditto.
8187
8188         * glyphs.c (unmap_subwindow): error checking will check the domain
8189         so don't deal with it here. Don't use cachels anymore.
8190         (map_subwindow): ditto.
8191         (update_subwindow_cachel_data): remove old accessor names.
8192         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
8193         (Fresize_subwindow): don't update cachel.
8194         (mark_subwindow_cachels):
8195         (update_subwindow_cachel_data):
8196         (add_subwindow_cachel):
8197         (get_subwindow_cachel_index):
8198         (update_subwindow_cachel):
8199         (reset_subwindow_cachels):
8200         (mark_subwindow_cachels_as_not_updated): deleted.
8201         (cache_subwindow_instance_in_frame_maybe): new function. Add a
8202         subwindow instance to the frame cache.
8203         (find_matching_subwindow): update for subwindow instance cache as
8204         a weak list.
8205         (update_widget_instances): ditto.
8206         (image_instance_type_to_mask):inlined.
8207         (free_frame_subwindow_instance_cache): new function. finalize all
8208         subwindows that are instantiated.
8209
8210         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
8211         of cachel information.
8212         (IMAGE_INSTANCE_DISPLAY_X):
8213         (IMAGE_INSTANCE_DISPLAY_Y):
8214         (IMAGE_INSTANCE_DISPLAY_WIDTH):
8215         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
8216         (XIMAGE_INSTANCE_DISPLAY_X):
8217         (XIMAGE_INSTANCE_DISPLAY_Y):
8218         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
8219         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
8220         remove subwindow_cachel structure and function references.
8221         (image_instance_type_to_mask): inline from glyphs.c
8222
8223         * redisplay.c (redisplay_frame): remove subwindow_cachel
8224         references.
8225
8226         * frame.h (struct frame): remove subwindow_cachels.
8227         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
8228
8229         * frameslots.h: add subwindow_instance_cache.
8230
8231         * window.c (replace_window): check subwindow cache of replacement.
8232         (window_unmap_subwindows_cache_mapper):
8233         (window_unmap_subwindows): new functions. Unmap all subwindows
8234         cached on this window.
8235         (mark_window_as_deleted): unmap all subwindows.
8236
8237 2000-04-27  Andy Piper  <andy@xemacs.org>
8238
8239         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
8240
8241         * glyphs-widget.c (widget_layout): return something.
8242         (layout_layout): return something. Fail if not initialized.
8243         (layout_query_geometry): ditto.
8244         (image_instantiator_native_layout): new function. Initialized the
8245         native layout type.
8246         (widget_instantiate): don't do layout stuff here.
8247
8248         * glyphs.c (instantiate_image_instantiator): reorded calling or
8249         instantiate and post_instantiate with layout in between.
8250         (image_instance_layout): be more selective about deciding whether
8251         the layout has been done or not.
8252
8253         * glyphs.h (struct image_instantiator_methods): return a value
8254         from layout_method.
8255
8256 2000-04-26  Andy Piper  <andy@xemacs.org>
8257
8258         * glyphs.c (allocate_image_instance): make initial width and
8259         height unspecified. Set initialized to 0.
8260
8261         * syscommctrl.h new file. Encapsulates commctrl.h.
8262
8263         * syswindows.h new file. Encapsulates windows.h.
8264
8265         * ntplay.c: use new syswindows.h and syscommctrl.h header.
8266         * nt.c: ditto.
8267         * console-msw.h: ditto.
8268
8269         * redisplay-tty.c (tty_output_display_block): remove layout references.
8270
8271         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
8272         window handle rather than just the frame.
8273
8274         * glyphs.c (mark_image_instance): remove layout references.
8275         (print_image_instance): ditto.
8276         (image_instance_equal): ditto.
8277         (image_instance_hash): ditto.
8278         (decode_image_instance_type): ditto.
8279         (encode_image_instance_type): ditto.
8280         (image_instantiate): ditto.
8281         (allocate_glyph): ditto.
8282         (Fimage_instance_height): ditto.
8283         (Fimage_instance_width): ditto.
8284         (update_subwindow): ditto.
8285
8286         * redisplay-x.c (x_output_display_block): recode for layouts as
8287         widgets.
8288
8289         * redisplay-output.c (redisplay_output_layout): recode for layouts
8290         as widgets.
8291         (compare_runes): remove layout references.
8292
8293         * redisplay-msw.c (mswindows_output_display_block): recode for
8294         layouts as widgets.
8295
8296         * glyphs-widget.c (image_instantiator_layout): remove
8297         layout_possible_dest_types.
8298         (layout_possible_dest_types): deleted.
8299
8300         * glyphs.h (image_instance_type): remove layout references.
8301         (struct Lisp_Image_Instance): ditto. Add initialized flag.
8302         (IMAGE_INSTANCE_INITIALIZED): new accessor.
8303         (XIMAGE_INSTANCE_INITIALIZED): ditto.
8304
8305 2000-04-25  Andy Piper  <andy@xemacs.org>
8306
8307         * glyphs-widget.c (image_instantiator_buttons):
8308         (image_instantiator_edit_fields):
8309         (image_instantiator_combo_box):
8310         (image_instantiator_scrollbar):
8311         (image_instantiator_progress_guage):
8312         (image_instantiator_tree_view):
8313         (image_instantiator_tab_control):
8314         (image_instantiator_labels):
8315         (image_instantiator_layout): call default post_instantiate method.
8316         (widget_post_instantiate): new function. Simply lays out the
8317         widgets.
8318
8319         * glyphs.h (struct image_instantiator_methods): add
8320         post_instantiate method.
8321
8322         * glyphs.c (instantiate_image_instantiator): add post_instantiate
8323         method calls.
8324
8325 2000-04-23  Andy Piper  <andy@xemacs.org>
8326
8327         * glyphs.h (struct image_instantiator_methods): add
8328         decode_domain_method.
8329         (struct Lisp_Image_Instance): remove subwindow frame - it can be
8330         derived from the domain.
8331         (IMAGE_INSTANCE_FRAME): new accessor.
8332         (XIMAGE_INSTANCE_FRAME): ditto.
8333
8334         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
8335         instead of _SUBWINDOW_FRAME.
8336         (finalize_image_instance): ditto.
8337         (Fimage_instance_foreground): ditto.
8338         (Fimage_instance_background): ditto.
8339         (image_instantiate): ditto.
8340         (update_subwindow_cachel): ditto.
8341         (update_subwindow): ditto.
8342         (unmap_subwindow): ditto.
8343         (map_subwindow): ditto
8344         (subwindow_instantiate): ditto.
8345         * glyphs-msw.c (mswindows_update_widget): ditto.
8346         (mswindows_progress_gauge_instantiate): ditto.
8347         (mswindows_tab_control_update): ditto.
8348         * glyphs-x.c (x_update_widget): ditto.
8349         (x_widget_instantiate): ditto.
8350         (x_tab_control_instantiate): ditto.
8351         (x_tab_control_update): ditto.
8352         * event-msw.c (mswindows_wnd_proc): ditto
8353
8354         * glyphs-widget.c (image_instantiator_layout): use
8355         subwindow_decode_domain.
8356         (image_instantiator_buttons): ditto.
8357         (image_instantiator_edit_fields): ditto.
8358         (image_instantiator_combo_box): ditto.
8359         (image_instantiator_scrollbar): ditto.
8360         (image_instantiator_progress_guage): ditto.
8361         (image_instantiator_tree_view): ditto.
8362         (image_instantiator_tab_control): ditto.
8363         (image_instantiator_labels): ditto.
8364         (image_instantiator_layout): ditto.
8365
8366         * glyphs.c: add instance error checking to many functions.
8367         (instantiate_image_instantiator): decode device from cache_domain.
8368         (image_instantiate): partially rewrite by using
8369         decode_image_instantiator_domain to determine what domain the
8370         instance needs to be cached in.
8371         (decode_image_instantiator_domain): new function. Determine what
8372         domain the image needs to be cached in.
8373         (check_window_subwindow_cache): new error checking function.
8374         (check_instance_cache_mapper): ditto.
8375         (check_image_instance_structure): ditto.
8376         (subwindow_decode_domain): new function. Encodes a window as a
8377         subwindow's cache domain.
8378         (image_instantiator_format_create): use it for text and
8379         subwindows.
8380
8381 2000-04-21  Andy Piper  <andy@xemacs.org>
8382
8383         * glyphs.c (image_instance_device): new function.
8384         (image_instance_frame): new function.
8385         (image_instance_window): new function.
8386         (image_instance_live_p): new function.
8387
8388         * window.c (mark_window_as_deleted): reset the subwindow_instance_
8389         cache to nil.
8390
8391         * glyphs.h (struct Lisp_Image_Instance): device->domain.
8392         (IMAGE_INSTANCE_DOMAIN): new accessor.
8393         (XIMAGE_INSTANCE_DOMAIN): ditto.
8394
8395         * glyphs-x.c (x_finalize_image_instance): device->domain.
8396
8397         * glyphs-msw.c (init_image_instance_geometry): device->domain.
8398         (mswindows_finalize_image_instance): ditto.
8399
8400         * glyphs-eimage.c (jpeg_instantiate): device->domain.
8401         (gif_instantiate): ditto.
8402         (png_instantiate): ditto.
8403         (tiff_instantiate): ditto.
8404
8405         * glyphs.c (instantiate_image_instantiator): use domain rather
8406         than device.
8407         (mark_image_instance): device -> domain.
8408         (print_image_instance): ditto.
8409         (finalize_image_instance): ditto.
8410         (image_instance_equal): ditto.
8411         (allocate_image_instance): ditto.
8412         (Fcolorize_image_instance): ditto.
8413         (query_string_geometry): ditto.
8414         (image_instantiate): ditto
8415         (query_string_font): ditto.
8416         (image_instantiate): ditto.
8417         (update_subwindow): ditto.
8418         (unmap_subwindow): ditto.
8419         (map_subwindow): ditto.
8420         (subwindow_instantiate): ditto.
8421
8422         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
8423         (DOMAIN_FRAME): ditto.
8424         (DOMAIN_WINDOW): ditto.
8425         (DOMAIN_LIVE_P): ditto.
8426         (XDOMAIN_DEVICE): ditto.
8427         (XDOMAIN_FRAME): ditto.
8428         (XDOMAIN_WINDOW): ditto.
8429
8430         * specifier.c (Fvalid_specifier_domain_p): add image instances as
8431         a valid specifier domain.
8432
8433 2000-04-19  Andy Piper  <andy@xemacs.org>
8434
8435         * glyphs-widget.c (syms_of_glyphs_widget): remove
8436         widget-callback-current-channel.
8437         (vars_of_glyphs_widget): ditto.
8438         * glyphs.h: ditto
8439
8440         * gui.c (get_gui_callback): revert to previous behaviour.
8441
8442 2000-04-18  Andy Piper  <andy@xemacs.org>
8443
8444         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
8445         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
8446         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
8447
8448         * glyphs.c (image_instance_equal): add margin_width.
8449         (image_instance_hash): ditto.
8450
8451         * glyphs-widget.c (widget_instantiate): deal with margin-width.
8452         (layout_query_geometry): ditto.
8453         (layout_layout): ditto.
8454         (syms_of_glyphs_widget): add margin-width.
8455         (image_instantiator_layout): allow margin-width.
8456
8457         * glyphs.c (update_widget_instances): make a normal function.
8458         (syms_of_glyphs): remove Qupdate_widget_instances.
8459         * glyphs.h: ditto.
8460
8461         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
8462         so that we don't corrupt ideas about the last event or
8463         command. Remove widget-callback-current-channel fiddling.
8464         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
8465
8466 2000-05-01  Martin Buchholz <martin@xemacs.org>
8467
8468         * XEmacs 21.2.33 is released.
8469
8470 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
8471
8472         * make-src-depend: Allow dots in header file name.
8473
8474 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
8475
8476         * mule-charset.h (struct charset_lookup): Add
8477         next_allocated_1_byte_leading_byte and
8478         next_allocated_2_byte_leading_byte.
8479         * mule-charset.c: Move above two variables so that those values
8480         will be dumped.
8481
8482 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
8483
8484         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
8485         when string length is zero.
8486         (find_charsets_in_emchar_string): Ditto.
8487
8488 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
8489
8490         * lisp.h: extern Qdialog and Qmenubar.
8491
8492         * gui-x.c: added events.h.
8493                 also fixed typo which made the file uncompilable.
8494
8495         * general.c: Added Qmenubar and Qdialog
8496
8497 2000-04-28  Ben Wing  <ben@xemacs.org>
8498
8499         * frame-msw.c (mswindows_init_frame_1):
8500         * frame-msw.c (mswindows_mark_frame):
8501         * event-msw.c (mswindows_enqueue_dispatch_event):
8502         * console-msw.h:
8503         * console-msw.h (struct mswindows_frame):
8504         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
8505         there are now three hash tables for callbacks.
8506         mswindows_enqueue_dispatch_event is no longer static.
8507
8508         * dialog-x.c (maybe_run_dbox_text_callback):
8509         * dialog-x.c (dbox_descriptor_to_widget_value):
8510         switch to new cons3 form for callbacks.
8511
8512         * glyphs-msw.c (mswindows_register_gui_item):
8513         * glyphs-msw.c (mswindows_widget_instantiate):
8514         * glyphs-msw.c (add_tree_item):
8515         * glyphs-msw.c (add_tab_item):
8516         new image instance parameter, so it can be passed to callback-ex.
8517         respect :callback-ex as well as :callback.
8518
8519         * glyphs-widget.c (VALID_GUI_KEYWORDS):
8520         add :callback-ex.
8521
8522         * glyphs.c (print_image_instance):
8523         prettify, e.g. now prints widget type.
8524
8525         * gui-x.h:
8526         certain funs have new image instance parameter.
8527
8528         * gui.c:
8529         * gui.c (get_gui_callback):
8530         * gui.c (gui_item_add_keyval_pair):
8531         * gui.c (gui_item_init):
8532         * gui.c (gui_add_item_keywords_to_plist):
8533         * gui.c (mark_gui_item):
8534         * gui.c (gui_item_hash):
8535         * gui.c (gui_item_equal):
8536         * gui.c (copy_gui_item):
8537         * gui.c (syms_of_gui):
8538         recognize callback-ex in a number of places.
8539         also, fix the annoying "can't get out of yes-no dialog" bug.
8540
8541         * gui.h:
8542         * gui.h (struct Lisp_Gui_Item):
8543         recognize callback-ex in a number of places.
8544
8545         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
8546         new parameter in button_item_to_widget_value.
8547
8548         * glyphs-x.c (x_update_widget):
8549         * glyphs-x.c (x_button_instantiate):
8550         * glyphs-x.c (x_button_update):
8551         * glyphs-x.c (x_progress_gauge_instantiate):
8552         * glyphs-x.c (x_edit_field_instantiate):
8553         * glyphs-x.c (x_combo_box_instantiate):
8554         * glyphs-x.c (x_tab_control_instantiate):
8555         * glyphs-x.c (x_label_instantiate):
8556         new image instance parameter in various places.
8557
8558         * event-Xt.c:
8559         * event-Xt.c (enqueue_Xt_dispatch_event):
8560         this fun gets exported.
8561
8562         * gui-msw.c:
8563         * gui-msw.c (mswindows_handle_gui_wm_command):
8564         handle both :callback and :callback-ex, and generate our own
8565         event because it's one of the callback-ex arguments.
8566
8567         * gui-x.c:
8568         * gui-x.c (popup_selection_callback):
8569         handle both :callback and :callback-ex, and generate our own
8570         event because it's one of the callback-ex arguments.
8571         * gui-x.c (button_item_to_widget_value):
8572         * gui-x.c (gui_items_to_widget_values_1):
8573         * gui-x.c (gui_item_children_to_widget_values):
8574         * gui-x.c (gui_items_to_widget_values):
8575         new image instance parameter in various places.
8576
8577         * fns.c (Freplace_list):
8578         fix small typo in doc string.
8579
8580         * lisp.h:
8581         declare enqueue_Xt_dispatch_event.
8582
8583 2000-04-28  Ben Wing  <ben@xemacs.org>
8584
8585         * buffer.c:
8586         * buffer.c (Frecord_buffer):
8587         * buffer.c (syms_of_buffer):
8588         delete record-buffer-hook.
8589
8590         * fns.c:
8591         * fns.c (Freplace_list):
8592         * fns.c (syms_of_fns):
8593         new primitive replace-list.
8594
8595         * frameslots.h:
8596         slot for old buffer-alist.
8597
8598         * lisp.h:
8599         exfun replace-list.
8600
8601         * redisplay.c:
8602         * redisplay.c (redisplay_frame):
8603         * redisplay.c (syms_of_redisplay):
8604         * redisplay.c (vars_of_redisplay):
8605         new hook buffer-list-changed-hook.
8606         call it.
8607
8608 2000-04-27  Ben Wing  <ben@xemacs.org>
8609
8610         * extents.h: extern in_modeline_generation.
8611
8612         * redisplay.c (generate_formatted_string_db): set
8613         in_modeline_generation.
8614
8615         * extents.c (extent_changed_for_redisplay): don't mark redisplay
8616         flags if in modeline generation.  otherwise frame-modified-tick
8617         is ticked far too often.
8618         Declare in_modeline_generation.
8619
8620 2000-04-26  Ben Wing  <ben@xemacs.org>
8621
8622         * emacs.c (vars_of_emacs): document quick-build "error-checking"
8623         option.
8624         (vars_of_emacs): add quick-build as an error-checking option.
8625         A bit kludgy, but there doesn't seem much point in creating
8626         a real var for this.
8627
8628         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
8629
8630 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
8631
8632         * redisplay.h (struct display_line): Add a new variable,
8633         line_continuation.
8634
8635         * redisplay.c (create_text_block): Set dl->line_continuation if
8636         the line continues.
8637         (create_string_text_block): Ditto.
8638         (regenerate_window_incrementally): Use line_continuation instead
8639         of searching continuation glyph.
8640         (add_margin_runes): Call add_glyph_rune.
8641         (add_glyph_rune): Handle margin glyph.
8642
8643 2000-04-20  Martin Buchholz  <martin@xemacs.org>
8644
8645         * filelock.c (fill_in_lock_file_name):
8646         ANSIfy.
8647         Check for IS_ANY_SEP instead of '/'.
8648         (lock_file_1):
8649         Avoid generating gratuitous garbage.  Call user_login_name() directly.
8650         Never check errno without first seeing that system call failed.
8651         (unlock_file): Add GCPRO.
8652         (Flock_buffer): Fix docstring.
8653         (Ffile_locked_p): Fix docstring.  Add GCPRO.
8654
8655 2000-04-19  Martin Buchholz  <martin@xemacs.org>
8656
8657         * sysdep.c (get_pty_max_bytes):
8658         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
8659         strings longer than 252 bytes.
8660
8661         * md5.c: Unconditionally include ANSI header <limits.h>
8662
8663         * glyphs-x.c (convert_EImage_to_XImage):
8664         * lisp-union.h (union Lisp_Object):
8665         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
8666
8667 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8668
8669         * filelock.c (current_lock_owner): Remove unused variable o, p.
8670
8671 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
8672
8673         * callint.c: Remove multiply defined symbol Qlet
8674         (syms_of_callint): ditto.
8675
8676 2000-04-14  Andy Piper  <andy@xemacs.org>
8677
8678         * general.c (syms_of_general): add last-command, this-command, let
8679         and funcall.
8680
8681         * lisp.h: declare various symbols.
8682
8683         * glyphs.h: declare Qwidget_callback_current_channel;
8684
8685         * glyphs-widget.c (syms_of_glyphs_widget): add
8686         Qgui_callback_current_channel.
8687         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
8688
8689         * gui-msw.c (mswindows_handle_gui_wm_command): bind
8690         widget-callback-current-channel when invoking the interactive
8691         arg. Also bind last-command and next-command when invoking the
8692         widget updates.
8693         * gui-x.c (popup_selection_callback): ditto.
8694
8695         * gui.c (get_gui_callback): massage args so that we are always
8696         calling eval. This allows us to add our own variable bindings
8697         outside.
8698
8699         * glyphs-x.c (x_button_instantiate): use
8700         gui_items_to_widget_values since this is GC safe.
8701         (x_progress_gauge_instantiate): ditto.
8702         (x_edit_field_instantiate): ditto.
8703         (x_label_instantiate): ditto.
8704
8705         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
8706         (emacs_Xt_event_widget_focus_out): new function
8707         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
8708         focus.
8709         (emacs_Xt_event_add_widget_actions): new function. add focus
8710         functions as actions.
8711         (init_event_Xt_late): use it.
8712
8713 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
8714
8715         * event-stream.c (Fdispatch_event): Doc fix.
8716
8717 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
8718
8719         * postgresql.c: Remove all references to PQsetenv*.
8720
8721         * postgresql.h: Remove references to PGsetenvHandler object.
8722         * lrecord.h (lrecord_type): Ditto.
8723
8724 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8725
8726         * glyphs-msw.h (struct mswindows_image_instance_data): Added
8727         real_heigh and real_width members, and accessor macros for these.
8728
8729         * glyphs-msw.c (init_image_instance_geometry): New function.
8730         (init_image_instance_from_dibitmap): Use it.
8731         (mswindows_resource_instantiate): Use it.
8732         (init_image_instance_from_xbm_inline): Use it.
8733         (mswindows_initialize_image_instance_mask): Use real bitmap
8734         geometry.
8735         (mswindows_create_resized_bitmap): Ditto.
8736         (mswindows_create_resized_mask): Ditto.
8737
8738         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
8739         and bitmap to their surface size.
8740
8741 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
8742
8743         * process-unix.c (unix_send_process): Guard against process MIA
8744         after Faccept_process_output.
8745
8746 2000-04-11  Ben Wing  <ben@xemacs.org>
8747
8748         * eval.c (unbind_to_hairy): fix brokenness introduced by
8749         nanosecond speed improvements.
8750
8751 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
8752
8753         * sunplay.c (init_device): To play sounds correctly, the device
8754         apparently needs to be initialized at least once by XEmacs.  Make
8755         it so.
8756
8757 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
8758
8759         * redisplay.c (add_margin_runes): Add text image glyph
8760           handling.
8761
8762 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8763
8764         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
8765         gcc is newer than 2.5.
8766
8767 2000-04-06  Colin Rafferty  <colin@xemacs.org>
8768
8769         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
8770
8771         * fns.c (size_bit_vector):
8772         * alloc.c (size_vector):
8773         (make_vector_internal):
8774         (make_bit_vector_internal):
8775         (sweep_bit_vectors_1):
8776         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
8777
8778 2000-04-06  Andy Piper  <andy@xemacs.org>
8779
8780         * gmalloc.c (malloc): undo previous change.
8781         (malloc): ditto.
8782         (free): ditto.
8783         (realloc): ditto.
8784
8785 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
8786
8787         * line-number.c (buffer_line_number): Revert to former version.
8788
8789 2000-04-06  Andy Piper  <andy@xemacs.org>
8790
8791         * gmalloc.c (malloc): add error checking.
8792         (malloc): ditto.
8793         (free): ditto.
8794         (realloc): ditto.
8795
8796         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
8797         button_item_to_widget_value arg.
8798
8799         * glyphs-x.c (x_button_instantiate): add extra
8800         button_item_to_widget_value arg.
8801         (x_progress_gauge_instantiate): ditto.
8802         (x_edit_field_instantiate): ditto.
8803         (x_label_instantiate): ditto.
8804
8805         * gui-x.c (gui_items_to_widget_values_1): add extra
8806         button_item_to_widget_value arg.
8807         (button_item_to_widget_value): add extra menu_item_p arg.
8808
8809         * gui-x.h: change signature of button_item_to_widget_value.
8810
8811         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
8812         button_item_to_widget_value arg.
8813
8814 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
8815
8816         * buffer.h (struct buffer): auto_save_modified should be long.
8817
8818 2000-04-05  Andy Piper  <andy@xemacs.org>
8819
8820         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
8821         type.
8822         (button_query_geometry): give a little more room so that athena
8823         buttons fit.
8824
8825 2000-04-05  Andy Piper  <andy@xemacs.org>
8826
8827         * faces.c (complex_vars_of_faces): The widget face should inherit
8828         the font of the gui-element face.
8829
8830 2000-04-04  Andy Piper  <andy@xemacs.org>
8831
8832         * glyphs-x.c (x_button_update): new function. unconditionally
8833         update a button's state when the instance is dirty.
8834         (image_instantiator_format_create_glyphs_x): add x_button_update.
8835         (x_widget_instantiate): remove old resize cruft.
8836
8837 2000-04-02  Andy Piper  <andy@xemacs.org>
8838
8839         * frame.c (change_frame_size_1): The introduction of gutters means
8840         that we need to allow 0 as a potential frame dimension.
8841
8842 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
8843
8844         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
8845         image glyph if allow_cursor.
8846         (add_hscroll_rune): Don't allow cursor to border glyph.
8847         (create_text_block): Ditto.
8848
8849         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
8850         text not in buffer.
8851         (redisplay_output_layout): Call ensure_face_cachel_complete for
8852         text image glyph.
8853
8854
8855 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
8856
8857         * redisplay.c (add_glyph_rune): Adding text image as text runes.
8858
8859         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
8860         not in buffer
8861
8862         * redisplay-tty.c (tty_output_display_block): Delete the routine
8863         for text image glyph
8864         * redisplay-x.c (x_output_display_block): ditto
8865         * redisplay-msw.c (mswindows_output_display_block): ditto
8866
8867 2000-02-02  Mike Alexander  <mta@arbortext.com>
8868
8869         Note: Some of these were committed by accident as part of other
8870         patches.
8871
8872         * regex.c (regex_compile): Avoid compiler warnings.
8873
8874         * ntproc.c (sys_spawnve): Avoid compiler warnings.
8875
8876         * nt.h: Declare term_ntproc correctly.
8877
8878         * nt.c: Remove incorrect declaration of get_home_directory which
8879         is declared correctly in lisp.h.
8880
8881         * keymap.c (get_keyelt): Avoid compiler warnings.
8882         (raw_lookup_key_mapper): Avoid compiler warnings.
8883
8884         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
8885
8886         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
8887
8888         * filemode.c (mode_string): Avoid compiler warnings.
8889
8890         * file-coding.c (Fcoding_system_aliasee): Add return statement to
8891         avoid warning.
8892
8893         * events-mod.h: Undef some things that winuser.h defines differently.
8894
8895         * data.c (Faset): Avoid compiler warnings.
8896
8897         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
8898
8899 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
8900
8901         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
8902         Fall through to simple beep on error.
8903         Replace "extern" by real header file.
8904
8905         * linuxplay.c: Use nativesound.h
8906         (play_sound_data): Return error code. Be less verbose on error.
8907
8908         * sunplay.c: Use nativesound.h
8909         (play_sound_data): Return error code. Be less verbose on error.
8910
8911         * ntplay.c: Use nativesound.h
8912         (play_sound_data): Return fake error code
8913
8914         * sgiplay.c: Use nativesound.h
8915         (play_sound_data): Return error code
8916
8917         * hpplay.c: Use nativesound.h, partially implement
8918         new error code. Break compilation until finished.
8919         (play_sound_data): error code.
8920
8921         * nativesound.h (play_sound_file):
8922           (play_sound_data): Prototype in new header.
8923
8924 2000-03-31  Andy Piper  <andy@xemacs.org>
8925
8926         * glyphs-widget.c: (button_query_geometry): new function. Adjust
8927         for toggle and radio buttons.
8928         (image_instantiator_buttons): use it.
8929
8930 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
8931
8932         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
8933         (x_update_horizontal_scrollbar_callback): Return if no mirror was
8934         found. Scrollbar event probably belonged to some old config.
8935
8936 2000-03-31  Andy Piper  <andy@xemacs.org>
8937
8938         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
8939         than 1.
8940         (initialize_widget_image_instance): default layout to
8941         LAYOUT_HORIZONTAL rather than 0.
8942         (widget_instantiate): reverse the item list at the end rather than
8943         every iteration.
8944         (layout_layout): re-code for the border text at the front of the
8945         item list rather than at the end.
8946         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
8947         provided by the user.
8948         (widget_query_geometry): comment.
8949
8950 2000-03-30  Andy Piper  <andy@xemacs.org>
8951
8952         * glyphs-widget.c (image_instantiator_layout): allow standard
8953         widget keywords in layouts.
8954
8955         * gutter.c (output_gutter): cope with nil gutter contents.
8956
8957         * frame.c (Fset_frame_properties): add gutter docs.
8958
8959 2000-03-29  Andy Piper  <andy@xemacs.org>
8960
8961         * toolbar-msw.c (TBSTYLE_FLAT): add.
8962         (mswindows_output_toolbar): minor fiddling.
8963
8964 2000-03-29  Andy Piper  <andy@xemacs.org>
8965
8966         * gutter.c (output_gutter): force gutter size recalculation if
8967         what we are trying to display won't fit.
8968         (update_gutter_geometry): new function. A per-gutter version of
8969         update_frame_gutter_geometry.
8970         (update_frame_gutter_geometry): use it.
8971         (redraw_exposed_gutter): add extra debugging output.
8972
8973 2000-03-28  Mike Alexander  <mta@arbortext.com>
8974
8975         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
8976         (pdump_file_unmap): Implement it on Windows
8977         (pdump_file_get): Save alocated handles for pdump_file_unmap
8978
8979 2000-03-28  Andy Piper  <andy@xemacs.org>
8980
8981         * gui.c (get_gui_callback): treat Quit specially.
8982
8983 2000-03-27  Andy Piper  <andy@xemacs.org>
8984
8985         * glyphs.c (image_instantiate): be careful to check in the same
8986         way we assigned.
8987
8988 2000-03-27  Didier Verna  <didier@xemacs.org>
8989
8990         * config.h.in: define the proper SMART_INCLUDE macro.
8991         handle renaming of `foo_h_path' to `foo_h_file'.
8992
8993         * database.c: ditto.
8994
8995         * emacs.c: ditto.
8996
8997         * linuxplay.c: ditto.
8998
8999         * terminfo.c: ditto.
9000
9001         * tooltalk.h: ditto.
9002
9003 2000-03-27  Andy Piper  <andy@xemacs.org>
9004
9005         * glyphs-msw.c (mswindows_update_widget): make sure the widget
9006         gets updated whenever the face might have changed.
9007
9008 2000-03-26  Mike Alexander  <mta@arbortext.com>
9009
9010         * dumper.c (pdump_resource_free): Fix the comment.
9011
9012 2000-03-21  Olivier Galibert  <galibert@pobox.com>
9013
9014         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
9015
9016 2000-03-22  Mike Alexander  <mta@arbortext.com>
9017
9018         * dumper.c: Include Windows headers on Windows
9019         (pdump_resource_free): Add a body to the function
9020         (pdump_load): exe_name -> exe_path and add some comments.
9021
9022 2000-03-25  Mike Alexander  <mta@arbortext.com>
9023
9024         * gui.c (copy_gui_item_tree): Return a value in all cases
9025
9026 2000-03-21  Didier Verna  <didier@xemacs.org>
9027
9028         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
9029         lwlib/config.h.in.
9030         (SMART_INCLUDE): new macro.
9031         (POSTGRES_INCLUDE): new macro to include postgresql headers from
9032         the proper location.
9033
9034         * postgresql.c: use it.
9035
9036         * inline.c: ditto.
9037
9038 2000-03-24  Andy Piper  <andy@xemacs.org>
9039
9040         * gutter.c (redraw_exposed_gutters): must be "in display" when we
9041         do this.
9042
9043 2000-03-24  Andy Piper  <andy@xemacs.org>
9044
9045         * redisplay-output.c (compare_runes): use image_instance_changed
9046         to detect changes. Do not depend on glyphs_changed, only depend on
9047         dirtiness.
9048          (redisplay_output_layout): add debug messages.
9049         (compare_runes): ditto.
9050
9051         * glyphs.h: declare new functions.
9052         (struct Lisp_Image_Instance): remove percent and associated
9053         accessors.
9054
9055         * gui.h: declare new copying functions.
9056
9057         * gui.c (copy_gui_item_tree): new function.
9058         (copy_gui_item): new function.
9059         (gui_item_id_hash): revert to standard hash.
9060         (gui_item_hash): ditto.
9061         (gui_item_hash_internal): deleted.
9062         (mark_gui_item): mark value.
9063         (gui_item_add_keyval_pair): add value.
9064         (gui_item_init): ditto.
9065         (gui_add_item_keywords_to_plist): ditto.
9066         (gui_item_equal): ditto.
9067         (syms_of_gui): add Q_value.
9068
9069         * glyphs-x.c (x_progress_gauge_update): use pending items and
9070         value for setting the state.
9071         (x_update_widget): don't set items from pending here.
9072
9073         * glyphs-widget.c (update_widget): update items here.
9074         (progress_gauge_set_property): use items for storing value. Put
9075         new value in pending items.
9076
9077         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
9078         items for new value. Convert percent -> value.
9079         (mswindows_tab_control_update): don't update items here.
9080
9081         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
9082         (update_subwindow): ditto.
9083         (image_instance_changed): new function. Compare hash values and
9084         past and present widget items.
9085         (image_instantiate): We more careful about where we instantiate
9086         things.
9087         (image_instantiate): add error checking.
9088
9089         * gutter.c (syms_of_gutter): use -hook.
9090
9091 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
9092
9093         * console-tty.c (Fset_console_tty_input_coding_system): Use
9094         Qkeyboard.
9095         (Fset_console_tty_output_coding_system): Use Qterminal.
9096         (tty_init_console): Use Qkeyboard and Qterminal.
9097
9098 2000-03-21  Ben Wing  <ben@xemacs.org>
9099
9100         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
9101         From Mike Alexander <mta@arbortext.com>.
9102
9103 2000-03-21  Ben Wing  <ben@xemacs.org>
9104
9105         * event-msw.c (mswindows_need_event): Horrible kludge to fix
9106         process brokenness.  Proper implementation to come.
9107         * callproc.c:
9108         Rename call-process-internal to old-call-process-internal.
9109         New impl. in process.el.
9110
9111 2000-03-21  Martin Buchholz  <martin@xemacs.org>
9112
9113         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
9114
9115 2000-03-20  Andy Piper  <andy@xemacs.org>
9116
9117         * glyphs.c (full_list_hash): make hashes of the same elements in
9118         different orders return different values.
9119
9120 2000-03-20  Martin Buchholz <martin@xemacs.org>
9121
9122         * XEmacs 21.2.32 is released.
9123
9124 2000-03-20  Martin Buchholz  <martin@xemacs.org>
9125
9126         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
9127         (DFC_MALLOC_USE_CONVERTED_DATA):
9128         Add aliasing-safe casts to allow use with char* or unsigned char*
9129         lvalues.
9130
9131         * eldap.c (Fldap_open):
9132         (Fldap_search_basic):
9133         (Fldap_add):
9134         (Fldap_modify):
9135         Make C++-compilable.
9136         Make sure GCPRO'ed variables are initialized.
9137         Use temp variables to avoid repeated calls to Flength.
9138
9139 2000-03-16  Martin Buchholz  <martin@xemacs.org>
9140
9141         * sysfile.h:
9142         Make sure PATH_MAX is always defined.
9143         Include limits.h for PATH_MAX.
9144         Deprecate use of MAXPATHLEN.
9145
9146 2000-03-10  Martin Buchholz  <martin@xemacs.org>
9147
9148         * emacs.c: Add reinit_vars_of_fileio.
9149         * symsinit.h: Add reinit_vars_of_fileio.
9150         * fileio.c (reinit_vars_of_fileio): New.
9151         * fileio.c (Fmake_temp_name):
9152         Initialize temp_name random number from microseconds to make
9153         collisions even less likely.  Initialize always at process startup
9154         time.  (make-temp-name) used to return the same file name twice in
9155         a row when PDUMP.
9156         Random stylistic fiddling.
9157         Comment fixes.
9158
9159 2000-03-20  Andy Piper  <andy@xemacs.org>
9160
9161         * glyphs.c (image_instantiate): allow text glyphs to be
9162         instantiated in the minibuffer window.
9163
9164 2000-03-19  Andy Piper  <andy@xemacs.org>
9165
9166         * glyphs.c (image_instance_hash): be careful about which items we
9167         hash on.
9168
9169         * glyphs-widget.c (tab_control_set_property): record into pending
9170         items rather than the actual items.
9171
9172         * glyphs-x.c (x_update_widget): use pending items to update with.
9173
9174         * glyphs-msw.c (mswindows_tab_control_update): use pending items
9175         to update with.
9176
9177         * glyphs.c (mark_image_instance): mark pending items.
9178
9179         * window.c (Fset_window_configuration): record the buffer.
9180         (Fselect_window): totally revert previous change which breaks many
9181         things.
9182
9183 2000-03-18  Andy Piper  <andy@xemacs.org>
9184
9185         * glyphs-msw.c (mswindows_tab_control_update): force selected
9186         item.
9187
9188         * glyphs.c (image_instantiate): don't allow the minibuffer as a
9189         window domain cache, otherwise we get inconsistencies at
9190         startup. There is something fishy at startup which can lead to the
9191         minibuffer being the selected window when the gutter content is
9192         instantiated.
9193
9194         * gui.c (parse_gui_item_tree_list): add probably unnecessary
9195         gcpros.
9196         (parse_gui_item_tree_children): ditto.
9197         (parse_gui_item_tree_item): ditto.
9198
9199         * glyphs.c (Fupdate_widget_instances): return something.
9200
9201 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9202
9203         * window.c (Fselect_window): Undo 2000-03-17 change.
9204
9205 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
9206
9207         * postgresql.c (Fpq_setenv): Remove this turkey when linking
9208         against v7.0 libraries.  Insta-coredump city until the postgres
9209         folks fix it.
9210
9211 2000-03-17  Andy Piper  <andy@xemacs.org>
9212
9213         * faces.c (complex_vars_of_faces): don't give the widget face an
9214         inherited background pixmap.
9215
9216         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
9217         selected item.
9218
9219         * event-stream.c (Fdispatch_non_command_events): return something.
9220
9221         * gutter.c (output_gutter): use widget face.
9222         (clear_gutter): ditto.
9223
9224         * NEWS: adjust again.
9225
9226         * window.c (Fselect_window): make sure this runs to completion to
9227         avoid oddities with Fset_window_configuration.
9228         (Fcurrent_window_configuration): in general do not save the
9229         minibuffer as the selected window.
9230
9231         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
9232
9233 2000-03-16  Olivier Galibert  <galibert@pobox.com>
9234
9235         * emacs.c (Frunning_temacs_p): Revert previous patch.
9236         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
9237
9238 2000-03-16  Andy Piper  <andy@xemacs.org>
9239
9240         * glyphs-x.c (x_tab_control_update): if no widget values then
9241         return.
9242
9243         * NEWS: update for new features.
9244
9245         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
9246         synthetic event to the native system.
9247         (reinit_vars_of_event_Xt): set force_event_pending to
9248         emacs_Xt_force_event_pending.
9249
9250         * events.h (struct event_stream): add force_event_pending.
9251
9252         * specifier.c (recompute_one_cached_specifier_in_window): add
9253         comment.
9254
9255         * redisplay.c (redisplay_frame): don't call
9256         update_frame_subwindows. Reset subwindow cachels when
9257         subwindows_changed, removing this was an optimization too far.
9258
9259         * redisplay-output.c (compare_runes): reorganize so that we catch
9260         glyph changes when we want them. Set optimize_output when this
9261         would help layouts.
9262         (redisplay_output_layout): remove frame_really_changed, use
9263         optimize_output instead.
9264
9265         * redisplay-msw.c (mswindows_output_display_block): reset
9266         optimize_output after outputting a glyph.
9267         * redisplay-x.c (x_output_display_block): ditto.
9268         * redisplay-tty.c (tty_output_display_block): ditto.
9269
9270         * gutter.c: (specifier_vars_of_gutter): use new spec changed
9271         functions.
9272         (gutter_specs_changed): do specific gutter positions.
9273         (top_gutter_specs_changed): new function. Only update the
9274         specified gutter specs.
9275         (bottom_gutter_specs_changed): ditto.
9276         (left_gutter_specs_changed): ditto.
9277         (right_gutter_specs_changed): ditto.
9278
9279         * gui.c (gui_item_hash_internal): new function, does a real hash.
9280         (gui_item_id_hash): use it.
9281         (gui_item_hash): hash the eval'ed gui_item.
9282
9283         * gui-x.c (popup_selection_callback): send an eval event to call
9284         Fupdate_widget_instances.
9285
9286         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
9287         to call Fupdate_widget_instances.
9288
9289         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
9290         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
9291
9292         * glyphs.c: (update_frame_subwindows): deleted.
9293         (Fupdate_widget_instances): new function for updating the dirty
9294         state of widgets that might have changed.
9295         (syms_of_glyphs): add Qupdate_widget_instances.
9296         (full_list_hash): hash a list completely.
9297         (image_instance_hash): use it for items and properties.
9298
9299         * frame-msw.c (mswindows_size_frame_internal): remove unused
9300         variable.
9301
9302         * faces.h (struct face_cachel): fix comment.
9303
9304         * event-stream.c (Fdispatch_non_command_events): new
9305         function. Process non-command events, forcing an event cycle
9306         beforehand.
9307         (syms_of_event_stream): declare.
9308         (event_stream_force_event_pending): new function. Force an event
9309         on the native event queue so that an event cycle will occur next
9310         time we check.
9311
9312         * event-msw.c:
9313         (struct ntpipe_shove_stream):
9314         (mswindows_enqueue_dispatch_event):
9315         (mswindows_dequeue_dispatch_event):
9316         (mswindows_cancel_dispatch_event):
9317         (mswindows_pump_outstanding_events):
9318         (mswindows_drain_windows_queue):
9319         (mswindows_handle_paint):
9320         (mswindows_wnd_proc):
9321         (mswindows_key_to_emacs_keysym):
9322         (get_process_input_waitable):
9323         (emacs_mswindows_delete_stream_pair): re-indent file.
9324         (mswindows_need_event): do not process further fds if the windows
9325         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
9326         fixes the 100% cpu problem.
9327         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
9328
9329 2000-03-15  Olivier Galibert  <galibert@pobox.com>
9330
9331         * alloc.h: New.
9332         * dumper.h: New.
9333         * dumper.c: New.
9334
9335         * emacs.c: Moved dump file searching to dumper.c.
9336         (Frunning_temacs_p): Fixed.
9337
9338         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
9339         last_lrecord_type_index_assigned.
9340
9341 2000-02-20  Olivier Galibert  <galibert@pobox.com>
9342
9343         * symsinit.h: Added reinit parameter to init_console_stream
9344         declaration.
9345
9346         * lisp.h: Added file parameter to pdump_load declaration.
9347
9348         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
9349         support.  Added dump file searching.
9350
9351         * config.h.in: Added EMACS_PROGNAME.
9352
9353         * console-stream.c (init_console_stream): Fix reinitialisation
9354         when running from temacs.
9355
9356         * alloc.c (pdump): Add id support.
9357         (pdump_load): Add file parameter and signature/id support.
9358
9359         * Makefile.in.in: Add full pdump support.
9360
9361 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
9362
9363         * postgresql.c: Update documentation to reflect latest code
9364         status.
9365         (print_result): Show tuple counts in printed representation when
9366         appropriate.
9367         (Fpq_put_nbytes): MULE-ize.
9368         (Fpq_get_line_async): Ditto.
9369
9370 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
9371
9372         * postgresql.c (Fpq_lo_import): Fix return value.
9373         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
9374
9375 2000-03-13  Ben Wing  <ben@xemacs.org>
9376
9377         * alloc.c (pdump_load):
9378         Fix compile warning under mswin.
9379
9380 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
9381
9382         * postgresql.c: Mule-ization, bug fixes.
9383         Use PG_CODING to encapsulate coding system name changes.
9384         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
9385         (pg-coding-system): Create.
9386
9387         (Fpq_conn_defaults): Mule-ize.
9388         (Fpq_connectdb): Mule-ize & bug fix.
9389         (Fpq_connect_start): Mule-ize.
9390         (Fpq_set_client_encoding): Mule-ize.
9391         (Fpq_finish): Document `DEAD' connection status.
9392         (Fpq_clear): Ditto.
9393         (Fpq_pgconn): Mule-ize.
9394         (Fpq_exec): Mule-ize & bug fix.
9395         (Fpq_send_query): Ditto.
9396         (Fpq_get_result): Ditto.
9397         (Fpq_res_status): Mule-ize.
9398         (Fpq_result_error_message): Mule-ize.
9399         (Fpq_ntuples): fix comments.
9400         (Fpq_fname): Mule-ize.
9401         (Fpq_fnumber): Mule-ize.
9402         (Fpq_ftype): fix comments.
9403         (Fpq_get_value): Mule-ize.
9404         (Fpq_cmd_status): Ditto.
9405         (Fpq_cmd_tuples): Ditto.
9406         (Fpq_oid_value): Ditto.
9407         (Fpq_notifies): Ditto.
9408         (Fpq_lo_import): Ditto.
9409         (Fpq_lo_export): Ditto.
9410         (Fpq_get_line): Ditto.
9411         (Fpq_put_line): Mule-ize and bug fix.
9412         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
9413
9414 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
9415
9416         * postgresql.c (vars_of_postgresql): Mule-ize.
9417         (Fpq_conn_defaults): Ditto.
9418
9419 2000-03-12  Ben Wing  <ben@xemacs.org>
9420
9421         * alloc.c (Fmake_byte_code):
9422         * alloc.c (debug_string_purity_print):
9423         * alloc.c (pdump_backtrace):
9424         * alloc.c (pdump_get_indirect_count):
9425         * alloc.c (pdump_register_sub):
9426         * alloc.c (pdump_register_object):
9427         * alloc.c (pdump_register_struct):
9428         * alloc.c (pdump_dump_data):
9429         * alloc.c (pdump_reloc_one):
9430         Minor cleanups.
9431
9432         * console-msw.c:
9433         * console-msw.c (GetConsoleHwnd):
9434         * console-msw.c (msw_hide_console):
9435         * console-msw.c (msw_show_console):
9436         * console-msw.c (msw_ensure_console_buffered):
9437         * console-msw.c (msw_output_console_string):
9438         * console-msw.c (console_type_create_mswindows):
9439
9440         a) Added functions to manipulate the console window for use with
9441         shell support.
9442
9443         b) Added support for writing text to the console, which is now
9444         used under Windows when xemacs is not being run non-interactively,
9445         to write text that would otherwise be destined for stdout because
9446         under these circumstances, text written to stdout tends to
9447         disappear and not be seen.
9448
9449         * console-msw.h:
9450         * event-Xt.c:
9451         * event-Xt.c (x_event_to_emacs_event):
9452         * event-Xt.c (describe_event_window):
9453         * events-mod.h (XEMACS_MOD_CONTROL):
9454         * events.c:
9455         * events.c (Fmake_event):
9456         * events.c (character_to_event):
9457         * events.c (event_to_character):
9458         * events.c (format_event_object):
9459         * events.c (Fevent_modifiers):
9460         * events.h:
9461         * events.h (struct key_data):
9462         * events.h (struct button_data):
9463         * events.h (struct misc_user_data):
9464         * frame-x.c (Fcde_start_drag_internal):
9465         * frame-x.c (Foffix_start_drag_internal):
9466         * gpmevent.c (Freceive_gpm_event):
9467         * keymap.c:
9468         * keymap.c (bucky_sym_to_bucky_bit):
9469         * keymap.c (control_meta_superify):
9470         * keymap.c (make_key_description):
9471         * keymap.c (keymap_lookup_directly):
9472         * keymap.c (create_bucky_submap):
9473         * keymap.c (keymap_store):
9474         * keymap.c (define_key_check_and_coerce_keysym):
9475         * keymap.c (define_key_parser):
9476         * keymap.c (define_key_alternate_name):
9477         * keymap.c (Fdefine_key):
9478         * keymap.c (raw_lookup_key_mapper):
9479         * keymap.c (struct map_keymap_unsorted_closure):
9480         * keymap.c (map_keymap_unsorted_mapper):
9481         * keymap.c (map_keymap_sort_predicate):
9482         * keymap.c (map_keymap_sorted):
9483         * keymap.c (accessible_keymaps_mapper_1):
9484         * keymap.c (where_is_recursive_mapper):
9485         * keymap.c (describe_map_mapper):
9486         * keymap.c (describe_map_sort_predicate):
9487         * keymap.c (describe_map):
9488         * keymap.c (complex_vars_of_keymap):
9489         And a number of other files, the key modifier preprocessor
9490         constants that xemacs uses have names that conflict with constants
9491         defined under MS Windows for other purposes, so they were renamed
9492         to begin with the prefix XEMACS_. The variables that hold such
9493         modifiers were changed to consistently be of type int to fix
9494         various compile warnings.
9495
9496         * console.c (complex_vars_of_console):
9497         * device.c:
9498         * device-msw.c:
9499         * device-msw.c (mswindows_finish_init_device):
9500         * device-msw.c (msw_get_workspace_coords):
9501         * device-msw.c (mswindows_device_system_metrics):
9502         and various other files, added support for a new
9503         device property called offset-workspace which returns the position
9504         of the upper left corner of the workspace area and goes along with
9505         the existing size-workspace property.
9506
9507         * dialog-msw.c:
9508         * dialog-msw.c (push_bufbyte_string_as_unicode):
9509         * dialog-msw.c (mswindows_popup_dialog_box):
9510         Added support for XEmacs-style accelerator specifications in
9511         button text.  Note: I didn't add support for this under X Windows,
9512         and somebody needs to do this.
9513
9514         * dialog.c:
9515         * dialog.c (Fpopup_dialog_box):
9516         Documented the support for accelerators that was just mentioned.
9517
9518         editfns.c (get_home_directory): Changed behavior under Windows
9519         when HOME not defined; former behavior was irretrievably broken.
9520
9521         * emacs.c:
9522         * emacs.c (main_1):
9523         * emacs.c (main):
9524         * minibuf.c (clear_echo_area_internal):
9525         * minibuf.c (echo_area_append):
9526         * print.c:
9527         * print.c (std_handle_out_external):
9528         * print.c (std_handle_out_va):
9529         * print.c (fatal):
9530         * print.c (write_string_to_stdio_stream):
9531         * print.c (output_string):
9532         * print.c (debug_print):
9533         * print.c (debug_backtrace):
9534         * print.c (debug_short_backtrace):
9535         Cleaned up the code that prints text to stdout so that this can be
9536         changed to output into a console window instead under MS Windows,
9537         as described above.
9538
9539         * eval.c:
9540         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
9541         * eval.c (internal_catch):
9542         * eval.c (unwind_to_catch):
9543         * eval.c (throw_or_bomb_out):
9544         * eval.c (condition_case_1):
9545         * eval.c (signal_1):
9546         * eval.c (check_error_state_sanity):
9547         * eval.c (call_with_suspended_errors_1):
9548         * eval.c (call_with_suspended_errors):
9549         * eval.c (reinit_vars_of_eval):
9550         Added code to catch throw loops and check for a pesky bug that may
9551         be gone now.
9552
9553         * event-msw.c:
9554         * event-msw.c (key_needs_default_processing_p):
9555         * event-msw.c (mswindows_wnd_proc):
9556         * event-msw.c (mswindows_modifier_state):
9557         * event-msw.c (emacs_mswindows_quit_p):
9558         * event-msw.c (vars_of_event_mswindows):
9559         a) Added support for using the alt key to select menu items as is
9560         standard under MS Windows.  This is controlled using the variable
9561         menu-accelerator-enabled, just like under X Windows.  There is an
9562         option on the options menu to turn this support on.  I really
9563         think that it should be on by default under Windows, but I'm not
9564         going to make this change yet.
9565
9566         b)  Added support for dynamic display size changes under Windows.
9567
9568         * event-stream.c:
9569         * event-stream.c (maybe_echo_keys):
9570         * event-stream.c (Fnext_event):
9571         * event-stream.c (command_builder_find_leaf):
9572         * event-stream.c (lookup_command_event):
9573         * event-stream.c (execute_command_event):
9574         * event-stream.c (pre_command_hook):
9575         * event-stream.c (post_command_hook):
9576         * event-stream.c (syms_of_event_stream):
9577         * event-stream.c (vars_of_event_stream):
9578         * event-stream.c (complex_vars_of_event_stream):
9579         * events.h (struct command_builder):
9580
9581         a) Tried to clean up a little bit the horribly written x-specific
9582         accelerator code that crept into this file.  I moved this code
9583         into menubar-x.c where it belongs. I also needed to move the
9584         command builder structure into the file events.h because it is
9585         accessed directly by this accelerator code.  What I didn't do, but
9586         which should be done at some point, is to properly abstract this
9587         code using device methods instead of the kludgy way that it
9588         currently hooks into the event code.
9589
9590         b) Added the lisp variables this-command-properties and
9591         last-command- properties, which should be used to synchronize two
9592         adjacent commands in preference to playing games with the variable
9593         this-command, which is typically what happens.
9594
9595         c) Added some slightly nasty code to hook into the lisp support
9596         for shifted- motion-key selection.  This is actually necessary for
9597         somewhat complicated reasons, which are described in
9598         simple.el. (NB: I think the proper thing would be to have the code
9599         that calls the pre and post command hooks also call out to generic
9600         lisp functions in simple.el, where all built-in stuff could be
9601         added.  I will think about this more.)
9602
9603         * event-unixoid.c (poll_fds_for_input):
9604         * lread.c (readchar):
9605         * redisplay-tty.c (tty_clear_frame):
9606         * redisplay-x.c (x_get_gc):
9607         * signal.c (interrupt_signal):
9608         And a whole bunch of other files: fixed up places that printed
9609         directly to stderr to instead call the function stderr_out so that
9610         the changes I made under Windows work correctly.
9611
9612         * filemode.c (mode_string):
9613         Warning fixes.
9614
9615         * frame-msw.c:
9616         * frame-msw.c (mswindows_size_frame_internal):
9617         Fixed the computation of frame size and position to keep the frame
9618         within the workspace area, rather than within the physical
9619         dimensions of the screen, so that the frame doesn't overlap window
9620         manager decorations, such as the start menu and toolbar, typically
9621         at the bottom of the screen.
9622
9623         * frame.c (vars_of_frame):
9624         Changed the default frame title format under MS Windows to consist
9625         of buffername-XEmacs, which is standard under MS Windows.  I think
9626         it might be a good idea to change this everywhere because I think
9627         it is superior to the current frame title format, but this is the
9628         kind of change that is likely to cause some people to get annoyed,
9629         so I'm not making it.
9630
9631         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
9632
9633         * gui-msw.c (mswindows_handle_gui_wm_command):
9634         Fixed compile warnings.
9635
9636         * gui-x.c:
9637         * gui-x.c (strdup_and_add_accel):
9638         * gui-x.c (button_item_to_widget_value):
9639         * gui-x.h:
9640         Added code to automatically put an accelerator onto the beginning
9641         of menu items that don't have one as is now the standard, and is
9642         described more later.  Also fixed things so that the menu item
9643         name can be an evaluated expression, again a new standard.
9644
9645         * gui.c:
9646         * gui.c (gui_item_add_keyval_pair):
9647         * gui.c (make_gui_item_from_keywords_internal):
9648         * gui.c (gui_add_item_keywords_to_plist):
9649         * gui.c (gui_item_accelerator):
9650         * gui.c (gui_name_accelerator):
9651         * gui.c (gui_item_included_p):
9652         * gui.c (gui_item_display_flush_left):
9653         * gui.c (gui_item_display_flush_right):
9654         * gui.c (parse_gui_item_tree_item):
9655         * gui.c (parse_gui_item_tree_children):
9656         * gui.c (parse_gui_item_tree_list):
9657         Mule-ized.  Cleanup.  GCPRO addition.
9658
9659         * line-number.c (buffer_line_number):
9660         * lisp.h:
9661         * lisp.h (EMACS_INT_MAX):
9662         Added the manifest constant EMACS_INT_MIN corresponding to the
9663         existing constant EMACS_INT_MAX.  This is partially to fix compile
9664         warnings under Windows, and partly for cleanliness.
9665
9666         * menubar-msw.c:
9667         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
9668         * menubar-msw.c (msw_translate_menu_or_dialog_item):
9669         * menubar-msw.c (displayable_menu_item):
9670         * menubar-msw.c (populate_menu_add_item):
9671         * menubar-msw.c (populate_or_checksum_helper):
9672         * menubar-msw.c (populate_menu):
9673         * menubar-msw.c (update_frame_menubar_maybe):
9674         * menubar-msw.c (prune_menubar):
9675         * menubar-msw.c (msw_char_is_accelerator):
9676         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
9677         * menubar-msw.c (mswindows_handle_wm_command):
9678         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
9679         * menubar-msw.c (mswindows_handle_wm_initmenu):
9680         * menubar-msw.c (mswindows_update_frame_menubars):
9681         * menubar-msw.c (mswindows_free_frame_menubars):
9682         * menubar-msw.c (mswindows_popup_menu):
9683         Fixed a bug in handling accelerators where an extra character
9684         would be displayed in the menu item.  Also generalized the
9685         function displayable_menu_item because it is now used by the
9686         dialog box code as well.  And finally, added code in the functions
9687         that create the menubar to extract a list of accelerators for the
9688         top level menubar, which is used in the event code to determine
9689         whether a particular alt-key combination should be used to invoke
9690         a menu item, or should be passed through to access the standard
9691         XEmacs keymap binding for this key combination.
9692
9693         Much needed GCPROing.
9694
9695         * menubar-x.c:
9696         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9697         * menubar-x.c (menu_item_descriptor_to_widget_value):
9698         * menubar-x.c (restore_in_menu_callback):
9699         * menubar-x.c (x_popup_menu):
9700         * menubar-x.c (menu_move_up):
9701         * menubar-x.c (menu_move_down):
9702         * menubar-x.c (menu_move_left):
9703         * menubar-x.c (menu_move_right):
9704         * menubar-x.c (menu_select_item):
9705         * menubar-x.c (command_builder_operate_menu_accelerator):
9706         * menubar-x.c (menu_accelerator_junk_on_error):
9707         * menubar-x.c (command_builder_find_menu_accelerator):
9708         * menubar-x.c (Faccelerate_menu):
9709         * menubar.h:
9710         Moved a whole bunch of code here that was previously in
9711         event-stream.c as described above.  There is also code connected
9712         to the new standard of adding an accelerator to the beginning of
9713         menu items that don't have one as described above and below.
9714
9715         * menubar.c:
9716         * menubar.c (menu_parse_submenu_keywords):
9717         * menubar.c (Fmenu_find_real_submenu):
9718         * menubar.c (Fnormalize_menu_item_name):
9719         * menubar.c (syms_of_menubar):
9720         * menubar.c (vars_of_menubar):
9721         * menubar.c (complex_vars_of_menubar):
9722
9723         a) Cleaned up a bunch of documentation and improved it.
9724
9725         b) XEmacs now automatically adds an accelerator onto the beginning
9726         of any menu items that don't have one.  I did this because there
9727         will inevitably be some menu items on the main menubar that don't
9728         have accelerators on them because the package that adds that
9729         particular menu item hasn't yet been fixed up to have accelerators
9730         in them and it looked rather strange to have some items with and
9731         some items without accelerators, especially since even in items
9732         without accelerators, you can, at least under windows, still
9733         access the item through an accelerator corresponding to the first
9734         character in the item's name.  If people don't like this behavior,
9735         I can add a variable to turn it off optionally, but I'm not sure
9736         this is a good idea because we really do need to have accelerators
9737         on all of the menu items, and if a package doesn't like the
9738         accelerators being put on the first character, then it should put
9739         the accelerators where they belong.
9740
9741         c) I made a behavior change, which is that the descriptor that
9742         specifies the text of the menu item, which formerly was just a
9743         string, can now also be an evaluated expression.  This makes this
9744         descriptor parallel with all of the others, which could also be
9745         evaluated expressions.  This also obviates the need for the
9746         keyword :label, which was previously listed in the documentation
9747         as unimplemented, and which was for the same purpose.
9748
9749         d) GCPROing.
9750
9751         * ntproc.c:
9752         * ntproc.c (new_child):
9753         * ntproc.c (sys_spawnve):
9754         * ntproc.c (find_child_console):
9755         * ntproc.c (sys_kill):
9756         Fixed compile warnings.  By the way, this file should really go
9757         away entirely, and this will happen as soon as Kirill makes his
9758         final round of process cleanups, which affect the function
9759         call-process.
9760
9761         * process-nt.c:
9762         * process-nt.c (struct nt_process_data):
9763         * process-nt.c (find_process_from_pid):
9764         * process-nt.c (send_signal_the_nt_way):
9765         * process-nt.c (enable_child_signals):
9766         * process-nt.c (find_child_console):
9767         * process-nt.c (send_signal_the_95_way):
9768         * process-nt.c (nt_finalize_process_data):
9769         * process-nt.c (ensure_console_window_exists):
9770         * process-nt.c (nt_create_process):
9771         * process-nt.c (nt_kill_child_process):
9772         * process-nt.c (nt_kill_process_by_pid):
9773         * process-nt.c (nt_open_network_stream):
9774         * process-nt.c (vars_of_process_nt):
9775         Copied over code from Emacs 20.5 to correctly send signals to sub-
9776         processes under Windows 95.  Also added code to automatically
9777         create and hide console window when a sub-process is created under
9778         Windows 95, which obviates the need for the separate runemacs.exe
9779         executable, and finally implemented some variables that were
9780         implemented in Emacs 20.5, but previously not in XEmacs.  These
9781         include mswindows- start-process-share-console and
9782         mswindows-start-process-inherit-error-mode. (Both of these only
9783         apply to Windows 95.)
9784
9785         * regex.c (regex_compile): Fixed a compile warning.
9786
9787         * select-msw.c:
9788         * select-msw.c (mswindows_own_selection):
9789         * select-msw.c (mswindows_get_foreign_selection):
9790         * select-msw.c (mswindows_disown_selection):
9791         * select-msw.c (console_type_create_select_mswindows):
9792         * select-msw.c (syms_of_select_mswindows):
9793         Cleaned up the file and implemented the device method
9794         selection_exists_p, which had accidentally been left out.  Also
9795         removed four lisp functions that were remnants from before the
9796         time when the selection code was properly device abstracted.
9797         These functions are no longer needed because there are generic
9798         equivalents, and because they were added recently and don't exist
9799         in FSF Emacs, I don't think there's any problem with just deleting
9800         them.
9801
9802         * sysdep.c:
9803         * sysdep.c (sys_subshell):
9804         Fixed a compile warning, although in this case there's probably
9805         something wrong with this code, and it ought to be looked into
9806         more thoroughly by somebody who understands it.
9807
9808         * window.c:
9809         * window.c (Fwindow_text_area_height):
9810         * window.c (Fwindow_width):
9811         * window.c (Fwindow_full_width):
9812         * window.c (Fwindow_pixel_width):
9813         * window.c (debug_print_window):
9814         * window.c (syms_of_window):
9815         Added functions window-text-area-height and window-full-width,
9816         which are functions for returning various width and height
9817         characteristics of a window. (One of these functions is necessary
9818         for making the file dialog box work correctly, and the other one
9819         was added for completeness.)  Also added a table to the
9820         documentation for window-height which describes the entire scheme
9821         for accessing width and height characteristics of a window.
9822
9823 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
9824
9825         * nt.c (fstat): Added a comment for another problem with
9826         non-encapsulated [f]stat(), reported by Adrian Aichner
9827         <aichner@ecf.teradyne.com>.
9828
9829 2000-03-11  Andy Piper  <andy@xemacs.org>
9830
9831         * window.c (make_dummy_parent): initialize subwindow instance
9832         cache.
9833         (Fset_window_configuration): zero extent_modiff.
9834
9835 2000-03-10  Andy Piper  <andy@xemacs.org>
9836
9837         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
9838         more changes can be triggered.
9839         (Fredisplay_frame): ditto.
9840         (Fredraw_device): ditto.
9841         (Fredisplay_device): ditto.
9842         (redisplay_frame): make non-static.
9843         (redisplay_frame): call update_frame_gutter_geometry outside of
9844         display proper.
9845
9846         * gutter.h: declare update_frame_gutter_geometry.
9847
9848         * redisplay.h: declare redisplay_frame.
9849
9850         * gutter.c (update_frame_gutter_geometry): move geometry changes
9851         in update_frame_gutters here. Geometry changes can only occur
9852         outside of redisplay.
9853         (update_frame_gutters): remove geometry change code.
9854         (Fredisplay_gutter_area): make sure that we are in display when we
9855         update and that we have flushed any size changes.
9856
9857 2000-03-11  Andy Piper  <andy@xemacs.org>
9858
9859         * alloc.c (pdump_dump_data): remove i & count shadows.
9860
9861 2000-02-27  Mike Alexander  <mta@arbortext.com>
9862
9863         * sysdep.h: Declare pdump_read_file
9864
9865         * sysdep.c (pdump_read_file): New function
9866
9867         * alloc.c (pdump_load): Call pdump_read_file to get the portable
9868         dump data
9869
9870 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
9871
9872         * lrecord.h: add `lrecord_type_pgsetenv'.
9873
9874 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
9875
9876         * symsinit.h: declare (vars|syms)_of* functions.
9877         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
9878
9879 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
9880
9881         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
9882
9883         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
9884         GCCs.
9885
9886         * emacs.c (main_1): Call postgres initialization code.
9887
9888         * postgresql.h: New file.  PostgreSQL RDBMS support.
9889         * postgresql.c: New file.
9890
9891 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
9892
9893         * redisplay-output.c (redisplay_output_display_block): Disable
9894         redundant code.
9895
9896 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
9897
9898         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
9899         (Fcanna_henkan_next): Ditto.
9900         (Fcanna_bunsetu_henkou): Ditto.
9901         (Fcanna_henkan_kakutei): Ditto.
9902         (Fcanna_henkan_end): Ditto.
9903         (Fcanna_henkan_quit): Ditto.
9904         (Fcanna_henkan_next): Set retun value correctly.
9905         (c2mu): Use unsigned char instead of signed char.
9906
9907 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
9908
9909         * emacs.c (main_1): Always call syms_of_gui.
9910         * inline.c: include gui.h
9911
9912 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
9913
9914         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
9915         converted to Lisp_Object.
9916         (Qtop_bottom): New variable.
9917         (syms_of_redisplay): Initialize it.
9918         * redisplay.h (Vvisible_bell): Ditto.
9919         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
9920         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
9921         only flash top and bottom.
9922
9923 2000-03-08  Andy Piper  <andy@xemacs.org>
9924
9925         * buffer.c (Frename_buffer): record new buffer name the right way.
9926
9927 2000-03-08  Andy Piper  <andy@xemacs.org>
9928
9929         * glyphs.c (update_subwindow): increase hash depth so that widget
9930         items get picked up properly.
9931
9932         * redisplay-output.c (compare_runes): increase hash depth so that
9933         widget items get picked up properly.
9934
9935 2000-03-08  Andy Piper  <andy@xemacs.org>
9936
9937         * gutter.c (output_gutter): add some debug.
9938
9939         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
9940         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
9941         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
9942
9943         * redisplay-output.c (compare_runes): use display_hash to
9944         determine if glyphs really are not the same.
9945
9946         * glyphs.c (update_subwindow): check display_hash to see if
9947         anything really needs to be updated. If not then do
9948         nothing. Record the display_hash after updating.
9949         (image_instance_equal): compare the image_instance face also.
9950
9951 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
9952
9953         * redisplay.h: Fix comment style.
9954
9955 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9956
9957         * consle-msw.h (struct mswindows_frame):
9958         Added new member paint_pending to indicate whether a WM_PAINT
9959         magic event has been queued for this frame.
9960
9961         * event-msw.c (mswindows_drain_windows_queue):
9962         Don't queue a WM_PAINT magic event if one is already queued.
9963         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
9964
9965         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
9966
9967 2000-03-07  Didier Verna  <didier@xemacs.org>
9968
9969         * dired.c: #include `regex.h' after `sysfile.h'.
9970
9971 2000-03-06  Martin Buchholz  <martin@xemacs.org>
9972
9973         * sound.c (init_nas_sound): Fix compiler warning.
9974
9975         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
9976         (FREE_STRUCT_P):
9977         (MARK_STRUCT_AS_FREE):
9978         (MARK_STRUCT_AS_NOT_FREE):
9979         Make `gcc -fstrict-aliasing' work properly.
9980
9981 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9982
9983         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
9984         (mswindows_delete_device): Call CoUnnitialize().
9985
9986         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
9987
9988 2000-02-25    <CraigL@DyCon.com>
9989
9990         * process-nt.c: MinGW now has <shellapi.h>, but still needs
9991         <errno.h>.
9992
9993         * sysdep.c: This extern declaration for environ prevents MinGW
9994         from finding the variable in CRTDLL.DLL.
9995
9996         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
9997         windows headers.
9998         (SHGFI_EXETYPE): ..
9999         (WM_MOUSEWHEEL): ..
10000         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
10001         definitions.
10002         (MMRESULT): Removed, now defined in cygwin's windows headers.
10003         (TIMECAPS): ..
10004         (uid_t,gid_t,pid_t,ssize_t): ..
10005         (_timeb): Removed, MinGW defines both _timeb and timeb.
10006         (HAVE_H_ERRNO): Added.
10007         (HAVE_TZNAME): Added, configure is not detecting this.
10008
10009 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
10010
10011         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
10012         * syntax.c (syntax_match): Use it.
10013
10014         * cmds.c: Import auto-fill-chars from FSF Emacs.
10015         (Vauto_fill_chars): New variables.
10016         (internal_self_insert): Check Vauto_fill_chars.
10017         (vars_of_cmds):
10018         Declare auto-fill-chars as a Lisp variable and initialize it.
10019
10020 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10021
10022         * fileio.c (Fmake_symbolic_link):
10023         (Ffile_symlink_p):
10024         Run handlers even if local machine doesn't have symlinks.
10025
10026 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10027
10028         * event-msw.c (mswindows_drain_windows_queue):
10029         Don't generate paint magic events for non-XEmacs frames.
10030
10031 2000-03-05  Andy Piper  <andy@xemacs.org>
10032
10033         * redisplay.c (redisplay_frame): generate_displayable_area and
10034         friends assumes that we are not in GC, we therefore have to make
10035         sure that this doesn't happen.
10036
10037         * gutter.c (calculate_gutter_size): generate_displayable_area
10038         assumes that we are not in GC, we therefore have to make sure that
10039         this doesn't happen.
10040
10041 2000-03-05  Martin Buchholz  <martin@xemacs.org>
10042
10043         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
10044
10045 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
10046
10047         * redisplay.c (regenerate_window): Make sure we set a sane value
10048         for end_pos even if we jump out of the loop.
10049         (regenerate_window): Answer Ben's question :-).
10050         (start_end_of_last_line): Add may_error argument.
10051         (start_of_last_line):
10052         (end_of_last_line): Pass may_error = 0.
10053         (end_of_last_line_may_error): New function.
10054         (pixel_to_glyph_translation): Use it, so we don't crash in
10055         event_to_glyph.
10056
10057 2000-03-04  Andy Piper  <andy@xemacs.org>
10058
10059         * window.h (struct window): add gutter_extent_modiff.
10060
10061         * window.c (allocate_window): zero out gutter_extent_modiff.
10062
10063         * redisplay.h: declare sync_display_line_structs.
10064
10065         * redisplay.c (add_glyph_rune): add a better comment.
10066
10067         * redisplay-output.c (sync_display_line_structs): made non-static.
10068         (compare_runes): remove unneccesary glyph cachel access.
10069
10070         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
10071
10072         * gutter.c (output_gutter): don't output the gutter if extent
10073         changes only involve extents in buffers. use 4 sets of display
10074         lines.
10075         (gutter_extent_signal_changed_region_maybe): new function. Mark
10076         extents in gutters as changed.
10077         (update_frame_gutters): use 4 sets of display lines.
10078         (reset_gutter_display_lines): ditto.
10079         (free_frame_gutters): ditto.
10080         (redraw_exposed_gutter): force output of gutters.
10081
10082         * frame.h (struct frame): add 4 sets of gutter display lines.
10083
10084         * extents.c: (extent_changed_for_redisplay): signal changes to
10085         extents in strings in the gutter as well as extents in buffers.
10086
10087 2000-03-02  Andy Piper  <andy@xemacs.org>
10088
10089         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
10090
10091         * frame.c (Fmake_frame): make sure the gutters get initialized
10092         after the frame is visible.
10093         (set_frame_selected_window): re-arrange compilation macros a
10094         little.
10095         (change_frame_size_1): mark gutters changed.
10096
10097         * device.c (Fset_device_class): mark gutters changed.
10098
10099 2000-03-01  Andy Piper  <andy@xemacs.org>
10100
10101         * window.c (window_top_frame_gutter_height): deleted.
10102         (window_bottom_frame_gutter_height): ditto.
10103         (window_left_frame_gutter_height): ditto.
10104         (window_right_frame_gutter_height): ditto.
10105         (window_top_gutter_height): don't use them.
10106         (window_bottom_gutter_height): ditto.
10107         (window_left_gutter_width): ditto.
10108         (window_right_gutter_width): ditto.
10109         (Fsplit_window): ditto.
10110         (Fwindow_pixel_edges): don't use border dimensions here.
10111
10112         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
10113         (update_scrollbar_instance): ditto.
10114
10115         * redisplay.c (generate_modeline): don't take gutters into account.
10116         (generate_modeline): ditto.
10117         (redisplay_frame): small gutter display optimization.
10118
10119         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
10120
10121         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
10122         gutters into account.
10123
10124         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
10125         for window position and type.
10126
10127         * gutter.c (get_gutter_coords): fix for frame gutters.
10128         (update_frame_gutters): update frame geometry if the gutters have
10129         changed.
10130         (init_frame_gutters): record current gutter geometries.
10131
10132         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
10133         var.
10134         (mswindows_widget_instantiate): ditto.
10135
10136         * frame.h (struct frame): add current_gutter_bounds.
10137
10138         * frame.c (change_frame_size_1): position window and minibuffer
10139         appropriately taking into account the frame gutters.
10140
10141         * frame-x.c: (x_initialize_frame_size): take into account the
10142         frame gutters.
10143
10144 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
10145
10146         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
10147
10148 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
10149
10150         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
10151
10152 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
10153
10154         * file-coding.c (reset_decoding_stream): Clear previous
10155         detection state when autodetect.
10156
10157 2000-02-29  Didier Verna  <didier@xemacs.org>
10158
10159         * extents.c (set_extent_glyph_1): don't require extents to be
10160         attached.
10161
10162 2000-02-27  Andy Piper  <andy@xemacs.org>
10163
10164         * gutter.c (Fset_default_gutter_position): don't default left and
10165         right gutter visibility to t.
10166         (Fset_default_gutter_position): run
10167         default-gutter-position-changed-hook.
10168         (syms_of_gutter): add default-gutter-position-changed-hook.
10169
10170 2000-02-26  Andy Piper  <andy@xemacs.org>
10171
10172         * specifier.c (Fmake_specifier): add gutter references.
10173
10174         * gutter.h (RAW_WINDOW_GUTTER): new macro.
10175
10176         * lisp.h: declare Fvalid_plist_p.
10177
10178         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
10179         as changed.
10180         (default_gutter_visible_p_changed_in_window): invalidate gutter as
10181         well as its visibility so that it gets reconstructed.
10182         (construct_window_gutter_spec): new function. Construct a string
10183         to be displayed in the gutter from a plist of strings. Take care
10184         to only use elements that are declared as visible.
10185         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
10186         WINDOW_GUTTER.
10187         (gutter_validate): allow plists of strings in the specifier.
10188         (gutter_specs_changed): construct the real_gutter from the gutter
10189         specs using construct_window_gutter_spec.
10190         (gutter_visible_validate): gutter-visible is a new specifier type.
10191         (Fgutter_visible_specifier_p): new function for the new specifier.
10192         (syms_of_gutter): declare gutter-visible and
10193         Fgutter_visible_specifier_p.
10194         (specifier_type_create_gutter): intitalize new gutter-visible
10195         specifier.
10196         (reinit_specifier_type_create_gutter): ditto.
10197         (specifier_vars_of_gutter): use new specifier type for gutter
10198         visibility.
10199         (init_frame_gutters): construct real_gutter correctly.
10200         (Fgutter_specifier_p): beef up documentation.
10201         (Fgutter_size_specifier_p): ditto.
10202
10203         * winslots.h: add real_gutter slots.
10204
10205 2000-02-25  Andy Piper  <andy@xemacs.org>
10206
10207         * device-msw.c: Be kind to older cygwin versions. From Raymond
10208         Toy <toy@rtp.ericsson.se>.
10209
10210         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
10211         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
10212
10213 2000-02-25  Martin Buchholz  <martin@xemacs.org>
10214
10215         * elhash.c (MARK_OBJ): Practice macro hygiene.
10216
10217 2000-02-24  Martin Buchholz  <martin@xemacs.org>
10218
10219         * miscplay.c: s/__inline__/inline/g;
10220         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
10221         (get_device_compdc): INLINE ==> static inline
10222         * *.[ch]: Change INLINE to INLINE_HEADER globally.
10223         find -name '*.h' | \
10224         xargs global-replace \
10225         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
10226
10227 2000-02-25  Andy Piper  <andy@xemacs.org>
10228
10229         * window.c (window_top_frame_gutter_height): new function.
10230         (window_top_window_gutter_height): ditto.
10231         (window_top_gutter_height): use them.
10232         (window_bottom_frame_gutter_height): new function.
10233         (window_bottom_window_gutter_height): ditto.
10234         (window_bottom_gutter_height): use them.
10235         (window_left_window_gutter_width): new function.
10236         (window_left_frame_gutter_width): ditto.
10237         (window_left_gutter_width): use them.
10238         (window_right_window_gutter_width): new function.
10239         (window_right_frame_gutter_width): ditto.
10240         (window_right_gutter_width): use them.
10241         (window_pixel_height): new function. calulate window pixel height
10242         with frame gutter involvement.
10243         (Fsplit_window): calculate new sizes taking frame gutters into
10244         account.
10245         (window_char_height_to_pixel_height): don't include frame gutters.
10246         (window_char_height): use window_pixel_height.
10247         (window_pixheight): rename from window_pixel_height.
10248         (change_window_height): use it.
10249         (window_pixel_height_to_char_height): don't include frame gutters.
10250         (window_char_width_to_pixel_width): ditto.
10251
10252 2000-02-25  Andy Piper  <andy@xemacs.org>
10253
10254         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
10255         if it is.
10256
10257 2000-02-24  Martin Buchholz  <martin@xemacs.org>
10258
10259         * alloc.c (staticpro):
10260         (staticpro_nodump):
10261         (dumpstruct):
10262         (dumpopaque):
10263         (pdump_wire):
10264         (pdump_wire_list):
10265         (compact_string_chars):
10266         (pdump_dump_wired):
10267         Convert:  if (foo) abort();  ==>  assert (! foo);
10268
10269         * eldap.c (Fldap_search_basic):
10270         (Fldap_add):
10271         (Fldap_modify):
10272         (Fldap_delete):
10273         Fix compiler warnings, and possible crashes if (random) return
10274         value were to be used.
10275
10276 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10277
10278         * device-msw.c: Workaround ResetDC failure.
10279
10280         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
10281         applying a devmode.
10282
10283         * redisplay-msw.c (get_frame_dc): Added start_page_p.
10284         (mswindows_text_width): Do not start printer page.
10285
10286         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
10287
10288         * glyphs-msw.c: Added image methods to msprinter console and
10289         msprinter-specific image instantiation.
10290
10291 2000-02-20  Mike Alexander  <mta@arbortext.com>
10292
10293         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
10294         to avoid crashes when selection-sets-clipboard is on
10295         (mswindows_own_selection): ditto
10296
10297 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10298
10299         * glyphs-msw.c:
10300         * redisplay-msw.c (get_frame_dc):
10301         (get_frame_compdc):
10302         * console-msw.h:
10303         * device-msw.c (mswindows_init_device):
10304         (mswindows_delete_device):
10305         (msprinter_init_device):
10306         (msprinter_delete_device):
10307         * frame-msw.c (mswindows_init_frame_1):
10308         (mswindows_delete_frame):
10309         (msprinter_init_frame_3):
10310         (msprinter_delete_frame): Move compatible DC to device object from
10311         frame object, for both mswindows and msprinter. Only one at a time
10312         is needed, it is a real waste to have one per frame!
10313
10314 2000-02-23  Andy Piper  <andy@xemacs.org>
10315
10316         * glyphs.c: add dynamic width and height elements.
10317         (image_instance_equal): ditto.
10318
10319         * glyphs-widget.c (widget_query_geometry): calculate width and
10320         height dynamically if required.
10321         (initialize_widget_image_instance): initialize dynamic dimensions.
10322         (widget_instantiate): pick-up dynamic dimensions.
10323
10324         * glyphs.h (struct Lisp_Image_Instance): add width and height for
10325         dynamic determination. Add appropriate macros.
10326
10327         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
10328         dimensions safe.
10329         (WINDOW_GUTTER_SIZE): ditto.
10330         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
10331
10332         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
10333         inline.
10334         (get_frame_dc): ditto.
10335
10336         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
10337         here.
10338
10339 2000-02-23  Martin Buchholz <martin@xemacs.org>
10340
10341         * XEmacs 21.2.31 is released.
10342
10343 2000-02-22  Ben Wing <ben@xemacs.org>
10344
10345         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
10346
10347 2000-02-22  Andy Piper  <andy@xemacs.org>
10348
10349         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
10350
10351 2000-02-21  Mike Sperber <mike@xemacs.org>
10352
10353         * .dbxrc:
10354         * .gdbinit:
10355         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
10356         variables.
10357
10358 2000-02-21  Mike Sperber <mike@xemacs.org>
10359
10360         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
10361
10362 2000-02-21  Martin Buchholz <martin@xemacs.org>
10363
10364         * XEmacs 21.2.30 is released.
10365
10366 2000-02-20  Martin Buchholz  <martin@xemacs.org>
10367
10368         Performance hacking.
10369         * *.c (syms_of_*):
10370         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
10371         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
10372         * emacs.c (main_1):
10373         * lisp.h (DEFUN):
10374         * console.c (DEFVAR_CONSOLE_LOCAL_1):
10375         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
10376         * symeval.h (DEFVAR_SYMVAL_FWD):
10377         * symbols.c (guts_of_unbound_marker):
10378         Make all c_readonly objects also lisp_readonly and marked for life.
10379         * lrecord.h (struct lrecord_implementation):
10380         Document flags better.
10381         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
10382         * lrecord.h (DECLARE_LRECORD):
10383         * lrecord.h (XSETRECORD):
10384         * lrecord.h (RECORDP):
10385         * lrecord.h (RECORD_TYPEP):
10386         * lrecord.h (RECORD_MARKER): New.
10387         * lrecord.h (error_check_*):
10388         * lrecord.h (CONCHECK_NONRECORD):
10389         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
10390         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
10391         * lrecord.h (set_lheader_implementation):
10392         * lrecord.h (enum lrecord_type): New.
10393         * symeval.h (SYMBOL_VALUE_MAGIC_P):
10394         * alloc.c (disksave_object_finalization_1):
10395         * alloc.c (mark_object):
10396         * alloc.c (lrecord_type_index):
10397         * alloc.c (tick_lcrecord_stats):
10398         * alloc.c (Fgarbage_collect):
10399         * alloc.c (init_alloc_once_early):
10400         * alloc.c (pdump_load):
10401         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
10402         * alloc.c (lrecord_type_index): Delete.
10403         Make lisp object type indexes be constant.
10404           Makes (byte-compile) 5% faster.
10405         Put all marker functions into their own array.
10406           Makes (garbage-collect) 5% faster.
10407         Optimize SYMBOL_VALUE_MAGIC_P.
10408           Makes (byte-compile) 2-3% faster.
10409         * config.h.in (gc_checking_assert): New.
10410         * alloc.c: Use gc_checking_assert().
10411         * .dbxrc: Make compatible with new object type implementation.
10412         * .gdbinit: Make compatible with new object type implementation.
10413         * alloc.c: Delete all symbols defined only for debugging, such as
10414         Lisp_Type_Vector and lrecord_charset.
10415
10416 2000-02-21  Andy Piper  <andy@xemacs.org>
10417
10418         * gui-msw.c (Fmswindows_shell_execute): fix file location
10419         problems.
10420
10421         * buffer.c (Fkill_buffer): remove buffer from alist buffer
10422         unshowing so that set_window_buffer doesn't undo
10423         kill_buffer_hook's hard work.
10424
10425         * glyphs-widget.c (tab_control_query_geometry): don't count the
10426         first item when calculating geometry.
10427
10428         * glyphs.c (map_subwindow): remove redundant code.
10429         (update_frame_subwindows): be more circumspect about when to
10430         update subwindows.
10431
10432         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
10433         when items haven't changed. Update faces if faces have changed as
10434         well as just the widget face.
10435         (x_tab_control_update): Update faces if faces have changed as well
10436         as just the widget face.
10437
10438 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10439
10440         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
10441         registration.
10442         (build_syscolor_string): Use mswindows_color_to_string to try to
10443         get a named color.
10444         (mswindows_device_system_metrics): Reverse the foreground and
10445         background colors so that they match the documentation.
10446
10447         * objects-msw.c: (mswindows_X_color_map): tweak some values so
10448         they match the default Windows palette.
10449         (mswindows_color_to_string): New function.
10450
10451 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10452
10453         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
10454
10455 2000-02-18  Olivier Galibert  <galibert@pobox.com>
10456
10457         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
10458         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
10459
10460         * symbols.c (init_symbols_once_early): Removed obsolete
10461         DATA_SEG_BITS related kludge.
10462         (defvar_magic): Ditto.
10463
10464         * malloc.c: Removed obsolete DATA_SEG_BITS
10465         * ralloc.c: Ditto.
10466         * mem-limits.h: Ditto.
10467
10468         * Makefile.in.in: Removed obsolete HAVE_SHM
10469         * emacs.c: Ditto.
10470
10471 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10472
10473         *  device-msw.c (mswindows_delete_device): Free DDE string
10474         handles.
10475
10476 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10477
10478         * keymap.c (get_keyelt):
10479         * unexnt.c (unexec):
10480         * vm-limit.c (memory_warnings):
10481         * ntheap.c (recreate_heap):
10482         * ntheap.h (UNINIT_PTR):
10483         * select-msw.c (Fmswindows_get_clipboard):
10484         (Fmswindows_set_clipboard):
10485         * objects-msw.h (MSWINDOWS_BAD_HFONT):
10486         * objects-msw.c:
10487         * menubar-msw.c (displayable_menu_item):
10488         * glyphs-msw.c:
10489         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
10490         * sysdep.c (sys_subshell):
10491         * process-nt.c (nt_create_process):
10492         * nt.c (normalize_filename):
10493         (dostounix_filename):
10494         (unixtodos_filename):
10495         * ntproc.c (win32_executable_type):
10496         * ntplay.c (play_sound_data_1):
10497         (play_sound_file):
10498         * editfns.c (get_home_directory):
10499         * event-msw.c (struct winsock_stream):
10500         (mswindows_dde_callback):
10501         * device-msw.c (msprinter_init_device):
10502         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
10503
10504         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
10505         mswindows_clear_toolbar were swapped!
10506
10507         * objects-msw.c:(colormap_t):
10508         (fontmap_t):
10509         * emacs.c (struct standard_args): Fixed const jumble.
10510
10511         * glyphs-widget.c (update_widget): Fixed comparison notation.
10512
10513         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
10514
10515         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
10516         __declspec(noreturn) syntax.
10517
10518 2000-02-19  Martin Buchholz  <martin@xemacs.org>
10519
10520         * eldap.c (Fldap_open):
10521         (Fldap_search_basic):
10522         (Fldap_add):
10523         (Fldap_modify):
10524         Use new coding system conversion macros.
10525
10526 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
10527
10528         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
10529
10530 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
10531
10532         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
10533         (Fldap_add, Fldap_modify, Fldap_delete): New functions
10534
10535         * eldap.c (Qadd, Qreplace): New constant symbols
10536         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
10537         interruptions by XEmacs signals
10538         Remove unnecessary calls to slow_down_interrupts and
10539         speed_up_interrupts
10540         (Fldap_search_basic): Renamed from Fldap_search_internal
10541         Added new optional parameter VERBOSE that triggers the
10542         display of progress messages
10543         Remove unnecessary calls to slow_down_interrupts and
10544         speed_up_interrupts
10545         LDAP result code analysis rewritten
10546         (Fldap_add, Fldap_modify, Fldap_delete): New functions
10547         (syms_of_eldap): Define the new symbols and functions
10548
10549
10550 2000-02-17  Martin Buchholz  <martin@xemacs.org>
10551
10552         * realpath.c: Determine PATH_MAX maximally portably.
10553
10554         * insdel.c (bytecount_to_charcount): Optimize.
10555         The function used to be optimized for entirely ASCII sequences.
10556         Now it is optimized for successive characters from the same
10557         charset.  This also wins big for _mostly_ ASCII sequences.
10558
10559         * fileio.c (Ffile_truename): convert return from realpath() using
10560         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
10561         - Rewrite GCPROing slightly.
10562
10563         * sysdep.c (sys_open): Do filename conversion, like all other
10564         sys_* functions.  Fixes bug:
10565         (let ((file-name-coding-system 'iso-8859-2))
10566            (write-region x y latin2-name))
10567         ==> writes filename using internal encoding.
10568
10569 2000-02-18  Martin Buchholz  <martin@xemacs.org>
10570
10571         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
10572         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
10573         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
10574         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
10575         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
10576         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
10577         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
10578         (CONST_IF_NOT_DEBUG): Delete.
10579         * alloc.c (this_one_is_unmarkable): Delete.
10580         (mark_object): Don't check for this_one_is_unmarkable. Use the
10581         c_readonly flag instead.
10582         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
10583
10584 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10585
10586         * event-msw.c (mswindows_drain_windows_queue):
10587         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
10588         away redundant repaint events.
10589
10590 2000-02-17  Andy Piper  <andy@xemacs.org>
10591
10592         * redisplay.h: declare mark_redisplay_structs.
10593
10594         * redisplay.c (redisplay_window):
10595         (redisplay_frame): don't check subwindows_state_changed.
10596         (mark_redisplay): mark gutters here.
10597
10598         * glyphs.c: (instantiate_image_instantiator): always layout if we
10599         haven't done so already.
10600         (allocate_image_instance): don't mark as dirty.
10601         (update_subwindow): bind inhibit_quit.
10602
10603         * gutter.c (mark_gutters): new function.
10604
10605         * glyphs-x.c (x_update_widget): Always resize to get round a
10606         widget bug.
10607
10608         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
10609         breaking absolutely everything.
10610
10611         * gutter.h: declare mark_gutters.
10612
10613 2000-02-16  Martin Buchholz <martin@xemacs.org>
10614
10615         * XEmacs 21.2.29 is released.
10616
10617 2000-02-15  Olivier Galibert  <galibert@pobox.com>
10618
10619         * fns.c (size_bit_vector): Fix computation of the size.
10620
10621 2000-02-15  Martin Buchholz  <martin@xemacs.org>
10622
10623         * *.[ch]: Change CONST to const globally.
10624         find -name '*.[ch]' | \
10625         xargs global-replace \
10626         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
10627         - Remove vestigial references to CONST_IS_LOSING
10628
10629 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10630
10631         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
10632         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
10633         events instead of dispatching them directly.
10634         (mswindows_handle_paint): New function to do repainting.
10635         (mswindows_wnd_proc):
10636         (emacs_mswindows_handle_magic_event): Call above function.
10637
10638 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10639
10640         * objects-msw.c (mswindows_create_font_variant): Return the new
10641         font handle.
10642         (initialize_font_instance): Get font metrics from the underlined
10643         variant of the font to cope with the case where the underlined
10644         font has a bigger descent.
10645
10646 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
10647
10648         * gui.c (gui_item_accelerator): Return the first underlined
10649         character in item name.
10650
10651 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10652
10653         * lisp.h: Added Qprinter.
10654
10655         * general.c (syms_of_general): Initialized it.
10656
10657         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
10658         (get_frame_dc):
10659         (get_frame_compdc): Made inline.
10660
10661         * console.h (struct console_methods): Added eject_page method.
10662
10663         * frame.h: Added FRAME_DISPLAY_P and friends.
10664         Aligned backslahes in many macros in more readable fashion.
10665         Added page_number to struct frame, and an accessor macro
10666         for it.
10667
10668         * defice.h: Added DEVICE_DISPLAY_P and friends.
10669
10670         * device.c (Fdevice_printer_p): Used these.
10671
10672         * frame.c (allocate_frame_core): Initialize page number.
10673         (Fprint_job_page_number):
10674         (Fprint_job_eject_page): Implemented.
10675
10676         * frame-msw.c (msprinter_eject_page): Added method.
10677         (msprinter_start_page): Added.
10678
10679         * window.c (Fwindow_truncated_p): Fixed docstring.
10680         (Fwindow_last_line_visible_height): Implemented.
10681
10682 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10683
10684         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
10685
10686 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
10687
10688         * syntax.c (scan_words): Always advance at least one character.
10689
10690 2000-02-13  Andy Piper  <andy@xemacs.org>
10691
10692         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
10693         to make sure the glyph is in the cachels.
10694
10695         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
10696         global image instance flag.
10697         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
10698         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
10699
10700         * glyphs.c (allocate_image_instance): set dirty bits correctly.
10701         (Fset_image_instance_property): mark layout as changed.
10702         (invalidate_glyph_geometry_maybe): mark layout as changed.
10703         (glyph_width): use new NEEDS_LAYOUT macro.
10704         (glyph_ascent): ditto.
10705         (glyph_descent): ditto.
10706         (glyph_height): ditto.
10707         (image_instance_layout): mark layout as clean after laying out.
10708         (update_subwindow): don't mark layout as clean here.
10709
10710         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
10711         should no longer be needed.
10712
10713         * glyphs-x.c (x_update_widget): sanitize asserts.
10714         (x_finalize_image_instance): sanitize assignment to widgets.
10715
10716         * glyphs-widget.c (widget_instantiate): don't need to clear the
10717         layout flag here.
10718
10719 2000-02-13  Martin Buchholz  <martin@xemacs.org>
10720
10721         * sysdep.c (getcwd): Use standard prototype.
10722         * sysdep.h (getcwd): Use standard prototype.
10723
10724         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
10725         (sequence, start, end).
10726         Remove redundant type checking.
10727         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
10728         view of `caller-protects') to avoid a crash where the real fix was
10729         found elsewhere.
10730
10731 2000-02-12  Martin Buchholz  <martin@xemacs.org>
10732
10733         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
10734
10735         * s/sol2.h: Remove feature macro initialization.
10736
10737         * alloc.c (alloc_lcrecord): Add more type checking assertions.
10738         (vector_hash): New.  Code from internal_hash.
10739         * lrecord.h:
10740         Fix up allocation subsystem comments.
10741
10742         * config.h.in: Add __EXTENSIONS__ for Solaris.
10743
10744         * systime.h (EMACS_GETTIMEOFDAY): New.
10745         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
10746         Remove Solaris-specific code.
10747         Use void* for the (ignored) second arg for gettimeofday().
10748
10749         * elhash.c (hash_table_hash): Implement it, finally.
10750         * elhash.c:  Use hashcode_t.
10751
10752         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
10753         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
10754
10755         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
10756         * fns.c (size_bit_vector):
10757         * alloc.c (size_vector):
10758         (make_vector_internal):
10759         (make_bit_vector_internal):
10760         (sweep_bit_vectors_1):
10761         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
10762
10763 2000-02-10  Martin Buchholz  <martin@xemacs.org>
10764
10765         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
10766         Include strings.h to avoid warnings for bzero and strcasecmp.
10767
10768 2000-02-10  Olivier Galibert  <galibert@pobox.com>
10769
10770         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
10771         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
10772
10773         * fns.c (size_bit_vector): New.  Declare bit vectors as a
10774         sequence.
10775
10776 2000-02-10  Olivier Galibert  <galibert@pobox.com>
10777
10778         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
10779         use a value field instead.
10780         (symbol_value_forward_forward): Use value field.
10781         (DEFVAR_SYMVAL_FWD): Use value field.
10782         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
10783         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
10784         (DEFVAR_CONST_INT): Ditto.
10785         (DEFVAR_BOOL): Ditto.
10786         (DEFVAR_CONST_BOOL): Ditto.
10787         (DEFVAR_INT_MAGIC): Ditto.
10788         (DEFVAR_BOOL_MAGIC): Ditto.
10789
10790         * symbols.c (guts_of_unbound_marker): Use value field.
10791         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
10792         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
10793
10794         * lisp.h: Declare dumpopaque and noninteractive1.
10795
10796         * alloc.c (dumpopaque): Added.
10797         (pdump_dump_opaquevec): Added.
10798         (pdump): Call pdump_dump_opaquevec to dump opaque data.
10799         (pdump_load): Reload opaque data.  Sync noninteractive1 with
10800         noninteractive.
10801
10802 2000-02-10  Andy Piper  <andy@xemacs.org>
10803
10804         * glyphs.c (image_instance_layout): if the size changes, mark it
10805         as such.
10806
10807         * redisplay-output.c (redisplay_output_layout): Update the
10808         subwindow here.
10809         (redisplay_output_subwindow): ditto.
10810
10811         * glyphs.c (update_subwindow): make sure we reset flags for
10812         layouts as well as everything else.
10813
10814         * glyphs-widget.c (layout_layout): don't need to set the instances
10815         dimensions here.
10816
10817 2000-02-09  Martin Buchholz  <martin@xemacs.org>
10818
10819         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
10820         not HAVE_DLOPEN, which is a lower-level thing.
10821
10822         * .cvsignore: Ignore gmon.out
10823
10824 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
10825
10826         * .cvsignore: Ignore portable dumper xemacs.dmp file
10827
10828 2000-02-09  Andy Piper  <andy@xemacs.org>
10829
10830         * redisplay-output.c (redisplay_output_layout): be more clever
10831         about when we output based on the changed flags.
10832
10833         * glyphs.h (struct image_instantiator_methods): add update_method.
10834         (struct Lisp_Image_Instance): add changed flags. Declare new
10835         macros for manipulating them.
10836
10837         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
10838         (image_instance_parent_glyph): find an image_instance's parent
10839         glyph or image_instance.
10840         (image_instance_layout): mark the size as changed.
10841         (set_image_instance_dirty_p): new function. mark an image
10842         instance, plus all of its parents, as dirty.
10843         (Fset_image_instance_property): use it.
10844         (Fglyph_animated_timeout_handler): use it.
10845         (update_subwindow): call update_widget and device methods for
10846         update_subwindow. Mark all changed flags as clean.
10847         (Fresize_subwindow): mark size as changed.
10848
10849         * glyphs-x.c (x_finalize_image_instance): try and detect gc
10850         failures.
10851         (x_update_subwindow): only resize subwindows here.
10852         (x_update_widget): new function. Update all changed properties of
10853         a widget.
10854         (x_resize_subwindow): deleted.
10855         (x_widget_set_property): deleted.
10856         (x_progress_gauge_set_property): deleted.
10857         (x_progress_gauge_update): new function. Implement recorded
10858         changes.
10859         (x_tab_control_update): ditto.
10860         (x_tab_control_set_property): deleted.
10861         (console_type_create_glyphs_x): declare new functions.
10862         (image_instantiator_format_create_glyphs_x): ditto.
10863
10864         * glyphs-widget.c (widget_set_property): mark text changed.
10865         (update_widget): new function. Update properties of a widget.
10866         (widget_instantiate): for layouts make sure we set their
10867         children's parent correctly.
10868         (tab_control_set_property): new function. Record changes that will
10869         take place under redisplay's control.
10870         (progress_gauge_set_property): ditto.
10871         (image_instantiator_progress_guage): declare new functions.
10872         (image_instantiator_tab_control): ditto.
10873
10874         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
10875         now.
10876         (mswindows_update_widget): new function. Update all properties on
10877         a widget that have changed.
10878         (mswindows_button_update): new function. Update a button's set
10879         state.
10880         (mswindows_tab_control_update): new function. Update the items in
10881         a tab.
10882         (mswindows_tab_control_set_property): deleted.
10883         (mswindows_progress_gauge_update): new function. Update the
10884         progress gauge's progress.
10885         (mswindows_widget_set_property): deleted. This is all done
10886         asynchronously now.
10887         (mswindows_progress_gauge_set_property): ditto.
10888         (console_type_create_glyphs_mswindows): declare new methods.
10889         (image_instantiator_format_create_glyphs_mswindows): ditto.
10890
10891         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
10892         (msprinter_set_frame_properties): ditto.
10893
10894         * console.h (struct console_methods): Add update_widget_method.
10895
10896 2000-02-09  Andy Piper  <andy@xemacs.org>
10897
10898         * gui-msw.c (Fmswindows_shell_execute): Make
10899         mswindows-shell-execute industrial strength.
10900
10901 2000-02-08  Martin Buchholz  <martin@xemacs.org>
10902
10903         * lrecord.h: Make macro argument `props' match member function `plist'.
10904         * fns.c (Fget):
10905         * fns.c (Fput):
10906         * fns.c (Fremprop):
10907         * fns.c (Fobject_plist):
10908         * alloc.c:
10909         * symbols.c:
10910         Object property list frobbing cleanup.
10911         - Allow any lisp object (compared with `eq'), not just symbols, as
10912           keys in object plists.
10913         - Move symbol plist frobbing into symbols.c, where it belongs.
10914         - Move string plist frobbing into alloc.c, where it belongs.
10915         - Everything's an lrecord now, so no need to test for symbolp, etc.
10916         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
10917
10918         * extents.c: Reorder code to remove declarations.
10919
10920         * frame.h (store_in_alist): Remove useless declaration.
10921
10922 2000-02-07  Martin Buchholz  <martin@xemacs.org>
10923
10924         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
10925         * config.h.in: Add HAVE_XCONVERTCASE.
10926
10927 2000-02-07  Andy Piper  <andy@xemacs.org>
10928
10929         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
10930         it breaks many things.
10931
10932 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
10933
10934         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
10935         actually can start a common comment type.
10936         * src/syntax.h (SYNTAX_END_P): ditto for end.
10937
10938 2000-02-07  Martin Buchholz <martin@xemacs.org>
10939
10940         * XEmacs 21.2.28 is released.
10941
10942 2000-02-06  Martin Buchholz  <martin@xemacs.org>
10943
10944         * event-Xt.c (x_keysym_to_character): New.
10945         (maybe_define_x_key_as_self_inserting_character): New.
10946         (x_has_keysym): New.
10947         Auto-define all keys on the keyboard as self-insert-key.
10948
10949 2000-02-02  Martin Buchholz  <martin@xemacs.org>
10950
10951         * menubar.c (vars_of_menubar): A small code simplification.
10952
10953         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
10954
10955         * ExternalShell.c:
10956         * ExternalClient.c:
10957         * EmacsShell-sub.c:
10958         * EmacsManager.c:
10959         * EmacsFrame.c:
10960         Use consistent style for specifying X resources.
10961
10962         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
10963         This makes (dontusethis-set-symbol-value-handler) actually usable.
10964
10965         * lrecord.h (lrecord_decription_type):
10966         * alloc.c (pdump_register_sub):
10967         (pdump_dump_data):
10968         (pdump_reloc_one):
10969         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
10970         Comply with XEmacs coding style.
10971         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
10972         args, and XD_LISP_OBJECT_ARRAY with 3 args.
10973
10974         * keymap.c (Faccessible_keymaps):
10975         Make (accessible-keymaps map "\C-h") do the Right Thing.
10976         Make (accessible-keymaps map []) do the Right Thing.
10977         Make (accessible-keymaps map "") do the Right Thing.
10978         (check_keymap_definition_loop): New function.
10979         (keymap_store_internal): Keep luser from shooting self in foot,
10980           via (define-key ctl-x-4-map "p" global-map).
10981         Remove fullness slot from struct Lisp_Keymap, since hash tables
10982         are now reliable.
10983         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
10984
10985 2000-01-30  Martin Buchholz  <martin@xemacs.org>
10986
10987         * redisplay.c (init_redisplay): Fix small memory leak.
10988         * elhash.h:
10989         * elhash.c (pdump_reorganize_hash_table):
10990         Rename from reorganize_hash_table. Change prototype.
10991         Reuse the original memory for hentries.  Save 100k.
10992         * alloc.c (PDUMP_READ): new macro.
10993         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
10994         * alloc.c: No need to #ifndef before #undef.
10995
10996         * print.c: Allow debug_print() to print readably by modifying
10997         debug_print_readably.  Use consistent variable names.
10998
10999         * .dbxrc: Try to get things to work even if stopped in a function
11000         without source available by explicitly specifying source files.
11001 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11002
11003         * unexnt.c (_start): Removed bogus code which caused loading heap
11004         from differrent executable file.
11005         Removed bogus assignment to _fmode, which caused inconsistencies.
11006
11007 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11008
11009         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
11010         Have spawnve encapsulation regard DONT_ENCAPSULATE.
11011         Do not preliminary `#define signal sigset'.
11012
11013         * systime.h: Do not prototype environ on windows nt and cygwin,
11014         this conflicts with system header.
11015
11016         * syssignal.h: Use correct define for WINDOWSNT
11017
11018         * sysdep.h: Do not prototype environ on windows nt, this conflicts
11019         with system header.
11020
11021         * sysdep.c (near start of file): Fixed commentary and rearranged
11022         ifdefs in readable order.
11023         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
11024         (start_of_text):
11025         (end_of_text):
11026         (end_of_data): Do not compile in if using PDUMP.
11027
11028         * symsinit.h: Prototyped vars_of_nt().
11029
11030         * ntproc.c (windows9x_p): Added, instead of os_subtype.
11031         (find_child_console): Use it.
11032         (sys_kill): Use it.
11033
11034         * ntheap.h: Do not extern os_subtype.
11035
11036         * ntheap.c (cache_system_info): Do not cache unneeded:
11037         nt_major_version, nt_minor_version and os_subtype.
11038         (recreate_heap): Do not compile in when PDUMPing.
11039
11040         * nt.c (geteuid and friends): Use the new varibale
11041         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
11042         (init_user_info): Removed the above mentioned hackery.
11043         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
11044         stat has been fixed in the C runtime.
11045         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
11046
11047         * file-coding.c (struct file_coding_dump): Do not define
11048         ucs_to_mule_table in the struct if not MULE.
11049         (struct struct lrecord_description fcd_description_1): Do not dump
11050         the above.
11051
11052         * emacs.c (main_1): Call vars_of_nt().
11053         (right before Fdump_emacs_data): Don't need lastfile if using both
11054         portabe dumper and system malloc.
11055
11056         * alloc.c (Fmemory_limit): Conditionalized out.
11057         (pdump): Use OPEN_BINARY for the portable dump file.
11058         (pdump_load): Ditto.
11059
11060 2000-02-02  Mike Alexander  <mta@arbortext.com>
11061
11062         * nt.c (convert_time): Set tm_isdst before calling mktime and
11063         avoid calling it at all if the compiler supports 64 bit integers.
11064         Also initialize utc_base_ft before using it.
11065
11066 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
11067
11068         * frame.c (change_frame_size_1): Take f->internal_border_width
11069         into consideration when calculating the width of the frame.
11070
11071 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11072
11073         * window.c (frame_min_height):
11074         (frame_size_valid_p):
11075         (frame_pixsize_valid_p): Added.
11076         (check_frame_size): Generalized.
11077
11078         * window.h: Prototyped the above.
11079
11080         * lisp.h:
11081         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
11082         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
11083         Deleted Vwin32_* and Vbinary_process_* unused variables.
11084
11085         * device-msw.c (msprinter_init_device): Do not get printer font
11086         list; Added DEVMODE functions.
11087
11088         * frame-msw.c: Added lots of printer code.
11089
11090         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
11091         general.c.
11092
11093         * console-msw.h: Added more msprinter device private slots.
11094
11095 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11096
11097         * event-msw.c (key_needs_default_processing_p): Added.
11098         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
11099
11100 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11101
11102         * glyphs.c (image_instance_layout): Mark image instance as clean
11103         after layout.
11104         (glyph_dirty_p): Removed redundant function.
11105         (invalidate_glyph_geometry_maybe): Added.
11106         (update_glyph_cachel_data): Call it.
11107
11108         * glyphs.h: Prototyped it.
11109
11110         * redisplay.c (add_glyph_rune): Call it.
11111         (redisplay_window): Reset glyphs cachels when frame faces have
11112         changed, thus forcing recomputation of built-in border glyphs.
11113
11114 2000-01-30  Martin Buchholz  <martin@xemacs.org>
11115
11116         * Makefile.in.in: Make portable dumper and purify play well together.
11117         Add imperfect, but better than nothing, support for pdump.
11118         Remove xemacs.dmp when temacs is re-generated.
11119         Don't ignore errors when dumping xemacs.
11120
11121         * symbols.c (maybe_call_magic_handler): Remove one magic number.
11122
11123 2000-01-28  Andy Piper  <andy@xemacs.org>
11124
11125         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
11126         (setup_normal_frame): ditto.
11127         (setup_frame_without_minibuffer): ditto.
11128         (setup_minibuffer_frame): ditto.
11129         (delete_frame_internal): ditto.
11130         (Fmake_frame_invisible): ditto.
11131         (Ficonify_frame): ditto.
11132
11133         * window.h: change Fset_window_buffer signature.
11134
11135         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
11136         (Fset_window_buffer): allow recording of buffer if the window is
11137         the selected window.
11138         (window_loop): Use new Fset_window signature.
11139
11140 2000-01-23  Daniel Pittman  <daniel@danann.net>
11141
11142         * config.h.in: Added template for `HAVE_ATHENA_3D'
11143
11144 2000-01-29  Andy Piper  <andy@xemacs.org>
11145
11146         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
11147
11148         * gutter.c (output_gutter): Don't output if the window isn't live.
11149
11150 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11151
11152         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
11153         of 01/12/00: Moved SetFocus back here where it belongs.
11154
11155 2000-01-23  Andy Piper  <andy@xemacs.org>
11156
11157         * s/cygwin32.h: declare printer things.
11158
11159 2000-01-26  Andy Piper  <andy@xemacs.org>
11160
11161         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
11162         Alexander.
11163
11164 2000-01-24  Andy Piper  <andy@xemacs.org>
11165
11166         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
11167         (mswindows_button_instantiate): Make sure glyph is a pixmap.
11168
11169         * glyphs-widget.c (widget_instantiate): Avoid shadows.
11170
11171         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
11172
11173         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
11174
11175         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
11176         (mswindows_output_display_block): Avoid local shadows.
11177
11178         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
11179         (mswindows_enqueue_mouse_button_event): ditto.
11180         (mswindows_handle_gui_wm_command): remove declaration.
11181
11182         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
11183         warnings.
11184
11185         * console-msw.h: Avoid shadows.
11186         (mswindows_get_toolbar_button_text):
11187         (emacs_mswindows_create_stream_pair):
11188         (emacs_mswindows_delete_stream_pair):
11189         (mswindows_handle_toolbar_wm_command): declare.
11190
11191         * device-msw.c (build_syscolor_string): Avoid shadows.
11192
11193 2000-01-23  Andy Piper  <andy@xemacs.org>
11194
11195         * glyphs-widget.c (widget_instantiate): reverse the items for
11196         layouts so that children are in the expected order.
11197
11198 2000-01-28  Martin Buchholz  <martin@xemacs.org>
11199
11200         * ralloc.c: safe_bcopy ==> memmove
11201         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
11202         * s/msdos.h: Remove BCOPY macros.
11203         * insdel.c (gap_right): Remove BCOPY conditional code.
11204         * insdel.c (gap_left): Remove BCOPY conditional code.
11205         XEmacs demands a working ANSI C compiler - hence memmove.
11206
11207         * regex.c (regex_compile): Remove accidental use of trigraphs.
11208
11209 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11210
11211         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
11212         event timestamp.
11213
11214 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11215
11216         * event-msw.c (mswindows_drain_windows_queue): Added the
11217         parameter.
11218         (mswindows_need_event): Commented the call to
11219         mswindows_drain_windows_queue().
11220         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
11221         only.
11222
11223         * console-msw.h: Moved a few function prototypes here from
11224         event-msw.c.
11225
11226         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
11227         parameter from unsigned short to unsigned long.
11228         (Fmswindows_shell_execute): Added return value.
11229
11230 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
11231
11232         * sysdep.c (init_system_name):
11233           process-unix.c (unix_canonicalized_host_name):
11234         Don't call freeaddrinfo() if getaddrinfo() fails.
11235
11236         * process-unix.c (unix_open_unix_network_stream):
11237         Moved the code to get a port # into address loop.
11238
11239 2000-01-27  Martin Buchholz  <martin@xemacs.org>
11240
11241         * buffer.c (reinit_vars_of_buffer):
11242         The right place to initialize conversion_in_dynarr and
11243         conversion_out_dynarr.
11244
11245         * alloc.c (pdump): Use the real open() till sys_open() is functional.
11246
11247         * process-unix.c (unix_canonicalize_host_name): Muleize.
11248         (unix_open_network_stream): Muleize.
11249
11250         * buffer.h: Fix up prototypes for ralloc.c functions.
11251
11252 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
11253         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
11254         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
11255                 instead of gethostbyname()
11256         * process-unix.c: In unix_canonicalize_host_name() and
11257                 unix_open_network_stream(), add code to use getaddrinfo()
11258                 instead of gethostbyname().
11259
11260 2000-01-27  Daniel Pittman <daniel@danann.net>
11261
11262         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
11263         libs when built with flat Athena.
11264
11265 2000-01-27  Martin Buchholz  <martin@xemacs.org>
11266
11267         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
11268         Use coding standards for function prototypes.
11269
11270 2000-01-25  Martin Buchholz  <martin@xemacs.org>
11271
11272         * dialog-msw.c (push_lisp_string_as_unicode):
11273         * doc.c (unparesseuxify_doc_string):
11274         * dired.c (Fuser_name_completion_1):
11275         * dired.c (Fuser_name_all_completions):
11276         * dired.c (free_user_cache):
11277         * dired.c (user_name_completion):
11278         * console-x.c (get_display_arg_connection):
11279         * minibuf.c (clear_echo_area_internal):
11280         * minibuf.c (echo_area_append):
11281         * eldap.c (Fldap_open):
11282         * eldap.c (Fldap_search_internal):
11283         * frame-x.c (x_set_frame_text_value):
11284         * frame-x.c (x_set_frame_properties):
11285         * frame-x.c (x_create_widgets):
11286         * redisplay-tty.c (term_get_fkeys_1):
11287         * objects-x.c (x_parse_nearest_color):
11288         * objects-x.c (x_valid_color_name_p):
11289         * objects-x.c (x_initialize_font_instance):
11290         * objects-x.c (x_list_fonts):
11291         * objects-x.c (x_find_charset_font):
11292         * tooltalk.c (Fadd_tooltalk_message_arg):
11293         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
11294         * tooltalk.c (Fadd_tooltalk_pattern_arg):
11295         * process-unix.c (unix_create_process):
11296         * ntproc.c (sys_spawnve):
11297         * sound.c (Fplay_sound_file):
11298         * sound.c (Fplay_sound):
11299         * buffer.c (init_initial_directory):
11300         * buffer.c (init_buffer):
11301         * editfns.c (init_editfns):
11302         * editfns.c (Ftemp_directory):
11303         * editfns.c (Fuser_full_name):
11304         * editfns.c (uncache_home_directory):
11305         * editfns.c (get_home_directory):
11306         * editfns.c (Fuser_home_directory):
11307         * editfns.c (Fformat_time_string):
11308         * editfns.c (Fcurrent_time_string):
11309         * gui-x.c (button_item_to_widget_value):
11310         * database.c (Fopen_database):
11311         * event-Xt.c (x_to_emacs_keysym):
11312         * event-Xt.c (x_event_to_emacs_event):
11313         * event-Xt.c (describe_event_window):
11314         * event-msw.c (mswindows_wnd_proc):
11315         * glyphs-eimage.c (jpeg_instantiate):
11316         * glyphs-eimage.c (gif_instantiate):
11317         * glyphs-eimage.c (png_instantiate):
11318         * glyphs-eimage.c (tiff_instantiate):
11319         * glyphs-x.c (xbm_instantiate_1):
11320         * glyphs-x.c (x_xbm_instantiate):
11321         * glyphs-x.c (x_xface_instantiate):
11322         * glyphs-x.c (autodetect_instantiate):
11323         * glyphs-x.c (cursor_font_instantiate):
11324         * glyphs-x.c (x_widget_instantiate):
11325         * glyphs-x.c (x_widget_set_property):
11326         * glyphs-x.c (x_widget_property):
11327         * glyphs-x.c (BUILD_GLYPH_INST):
11328         * print.c (write_string_to_stdio_stream):
11329         * print.c (output_string):
11330         * print.c (Falternate_debugging_output):
11331         * print.c (Fexternal_debugging_output):
11332         * glyphs-msw.c (extract_xpm_color_names):
11333         * glyphs-msw.c (mswindows_xpm_instantiate):
11334         * glyphs-msw.c (bmp_instantiate):
11335         * glyphs-msw.c (resource_name_to_resource):
11336         * glyphs-msw.c (mswindows_resource_instantiate):
11337         * glyphs-msw.c (xbm_instantiate_1):
11338         * glyphs-msw.c (mswindows_xbm_instantiate):
11339         * glyphs-msw.c (mswindows_xface_instantiate):
11340         * glyphs-msw.c (mswindows_widget_instantiate):
11341         * glyphs-msw.c (add_tree_item):
11342         * glyphs-msw.c (add_tab_item):
11343         * glyphs-msw.c (mswindows_combo_box_instantiate):
11344         * glyphs-msw.c (mswindows_widget_property):
11345         * glyphs-msw.c (mswindows_combo_box_property):
11346         * glyphs-msw.c (mswindows_widget_set_property):
11347         * console.c (stuff_buffered_input):
11348         * objects-msw.c (mswindows_initialize_color_instance):
11349         * objects-msw.c (mswindows_valid_color_name_p):
11350         * objects-msw.c (mswindows_list_fonts):
11351         * objects-msw.c (mswindows_font_instance_truename):
11352         * bytecode.c (optimize_compiled_function):
11353         * select-x.c (symbol_to_x_atom):
11354         * select-x.c (x_atom_to_symbol):
11355         * select-x.c (hack_motif_clipboard_selection):
11356         * select-x.c (selection_data_to_lisp_data):
11357         * select-x.c (lisp_data_to_selection_data):
11358         * select-x.c (Fx_get_cutbuffer_internal):
11359         * select-x.c (Fx_store_cutbuffer_internal):
11360         * buffer.h (TO_EXTERNAL_FORMAT): New function.
11361         * buffer.h (TO_INTERNAL_FORMAT): New function.
11362         * emacs.c (make_arg_list_1):
11363         * emacs.c (make_argc_argv):
11364         * emacs.c (main_1):
11365         * emacs.c (Fdump_emacs):
11366         * emacs.c (split_string_by_emchar_1):
11367         * file-coding.h:
11368         * lisp.h:
11369         * lstream.h:
11370         * symsinit.h:
11371         * device-x.c (x_init_device):
11372         * device-x.c (Fx_valid_keysym_name_p):
11373         * device-x.c (Fx_get_font_path):
11374         * device-x.c (Fx_set_font_path):
11375         * glyphs.c (bitmap_to_lisp_data):
11376         * glyphs.c (pixmap_to_lisp_data):
11377         * alloc.c (make_ext_string): Use coding system arguments.  Update
11378         all callers.
11379         * alloc.c (build_string):
11380         * callproc.c (child_setup):
11381         * callproc.c (init_callproc):
11382         * fileio.c (lisp_strerror):
11383         * fileio.c (directory_file_name):
11384         * fileio.c (Fexpand_file_name):
11385         * fileio.c (Ffile_truename):
11386         * fileio.c (Fsysnetunam):
11387         * fileio.c (Fdo_auto_save):
11388         * sysdep.c (sys_readdir):
11389         * tests.c: New file.  Allow adding C tests.
11390         Replace GET_* macros with a more comprehensible and flexible
11391         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
11392         Modify all calls.
11393         Any coding system can be used to do format conversion.
11394         Eliminate enum external_data_format.
11395         Eliminate convert_to_external_format.
11396         Eliminate convert_to_internal_format.
11397         Make sure file-name, keyboard, terminal, and ctext are always
11398         defined as coding systems or aliases.  Make
11399         file-name-coding-system, terminal-coding-system, and
11400         keyboard-coding-system magical variables that are equivalent to
11401         defining the corresponding coding system aliases.
11402
11403         * file-coding.c (Fcoding_system_canonical_name_p): New function.
11404         * file-coding.c (Fcoding_system_alias_p): New function.
11405         * file-coding.c (Fcoding_system_aliasee): New function.
11406         * file-coding.c (append_suffix_to_symbol): New function.
11407         * file-coding.c (dangling_coding_system_alias_p): New function.
11408         * file-coding.c (Ffind_coding_system):
11409         * file-coding.c (Fcopy_coding_system):
11410         * file-coding.c (encode_coding_no_conversion):
11411         * file-coding.c (syms_of_file_coding):
11412         * file-coding.c (vars_of_file_coding):
11413         Rewrite coding system alias code.
11414         Allow nested aliases, like symbolic links.
11415         Allow redefinition of coding system aliases.
11416         Prevent existence of dangling coding system aliases.
11417
11418         * dired.c (Fuser_name_completion_1):
11419         * dired.c (Fuser_name_all_completions):
11420         A crash would happen if user did QUIT in the middle of building
11421         user_name_cache.  Remove redundant code in mainline and unwind_protect.
11422
11423         * lisp.h:
11424         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
11425
11426         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
11427         an unsigned char *.  Update all callers.
11428
11429 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11430
11431         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
11432
11433 2000-01-25  Martin Buchholz  <martin@xemacs.org>
11434
11435         * elhash.c (hentry_description): Use more portable definition.
11436         (resize_hash_table): Initialize new hentries using
11437         xnew_array_and_zero, thereby simplifying the code.
11438
11439         * mule-charset.c (make_charset): Make sure entire object is
11440         initialized, to avoid Purify warnings.
11441
11442         * alloc.c (resize_string): Fix unlikely crash with big strings.
11443
11444 2000-01-24  Martin Buchholz  <martin@xemacs.org>
11445
11446         * realpath.c (xrealpath):
11447         Don't call getwd().
11448
11449 2000-01-25  Martin Buchholz  <martin@xemacs.org>
11450
11451         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
11452
11453 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
11454
11455         * unexelfsgi.c (unexec): Change the way we decide which segment
11456         should be extended.
11457
11458         Assumption that .bss section should be outside the PT_LOADable
11459         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
11460         it's present) is inside the 'data' segment. This would fail the
11461         test which was used to find a segment to grow and cover new
11462         heap. Instead of this assumption, I created another one - on IRIX
11463         the segment to grow should start below .bss and it's address
11464         should extent above the end of .bss. Once this segment is
11465         identified, it's grown to accommodate the new heap and new
11466         zero-length .bss section is added at the end of .data2.
11467
11468 2000-01-25  Martin Buchholz  <martin@xemacs.org>
11469
11470         * eval.c (Feval): Wrong number of arguments should use original
11471         function, not the indirect_function version of it.
11472
11473 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
11474
11475         * glyphs-x.c (x_button_instantiate): Don't add image if
11476         it is not a pixmap.
11477         (x_locate_pixmap_file): Call Fexpand_file_name when file name
11478         is relative.
11479
11480 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
11481
11482         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
11483         declaration.
11484         (DEFVAR_INT_MAGIC): Ditto.
11485         (DEFVAR_BOOL_MAGIC): Ditto.
11486         * glyphs.h: Reindent backslash.
11487
11488 2000-01-24  Martin Buchholz  <martin@xemacs.org>
11489
11490         * glyphs-widget.c (layout_query_geometry):
11491         (layout_layout): Use correct types for gheight, gwidth.
11492
11493 2000-01-24  Martin Buchholz  <martin@xemacs.org>
11494
11495         * EmacsManager.c (QueryGeometry): Purified.
11496
11497 2000-01-23  Martin Buchholz  <martin@xemacs.org>
11498
11499         * alloc.c (make_float): Make sure entire object is initialized, to
11500         avoid Purify warnings.
11501         (pdump_register_sub): Remove useless assignment.
11502         (pdump): Use xmalloc, not malloc.
11503         (pdump_load): Use xmalloc, not malloc.
11504
11505 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11506
11507         * callproc.c:
11508         * dired-msw.c:
11509         * fileio.c:
11510         * process-nt.c:
11511         * redisplay-msw.c:
11512         * sysdep.c: Removed redundant #include <windows.h>
11513
11514 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11515
11516         * frame.c (delete_frame_internal): Do not delete device when its
11517         implementation so declares.
11518         (delete_frame_internal): Set device selected frame to nil when
11519         last frame goes away.
11520
11521         * device-msw.c (msprinter_device_system_metrics): Implemented.
11522         (mswindows_device_system_metrics): Added 'device-dpi property.
11523
11524         * device.c: (Fdevice_printer_p): Added.
11525         Added 'offset-workspace device metric.
11526
11527         * console.h (device_metrics): Declared DM_offset_workspace.
11528
11529 2000-01-23  Martin Buchholz  <martin@xemacs.org>
11530
11531         * fileio.c (Ffile_truename): Remove pointless and confusing
11532         initialization of elen.
11533
11534         * glyphs-widget.c: Compiler warning fixes.
11535
11536 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
11537
11538         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
11539         instead of a Lisp_Object as argument to make it consistent with
11540         the other LIVE_P macros.
11541         (CHECK_LIVE_PROCESS): New macro.
11542
11543         * process.c: Declare Qprocess_live_p.
11544         (Fprocess_live_p): New function.
11545         (create_process): Use PROCESS_LIVE_P.
11546         (read_process_output): Ditto.
11547         (set_process_filter): Ditto.
11548         (Fdelete_process): Ditto.
11549         (kill_buffer_processes): Ditto
11550         (process_send_signal): Use CHECK_LIVE_PROCESS.
11551         (Fprocess_input_coding_system): Check whether process is still
11552         alive (fix PR#1061).
11553         (Fprocess_output_coding_system): Ditto.
11554         (Fprocess_coding_system): Ditto.
11555         (Fset_process_input_coding_system): Ditto.
11556         (Fset_process_output_coding_system): Ditto.
11557
11558 2000-01-23  Andy Piper  <andy@xemacs.org>
11559
11560         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
11561         layout and widget.
11562
11563         * glyphs.c (mark_image_instance): take into account changed
11564         image_instance format.
11565         (image_instance_equal): ditto.
11566         (image_instance_hash): ditto.
11567
11568         * glyphs-widget.c (widget_instantiate): Incorporate layout
11569         instantiation here. Delay layout of the layout until later.
11570         (layout_instantiate): deleted.
11571         (layout_query_geometry): new function. get the geometry of a
11572         layout.
11573         (layout_layout): layout a layout dynamically.
11574         (image_instantiator_widget): New function - splitting up
11575         image_instantiator_format_create_glyphs_widget for netwinder
11576         compilation.
11577         (image_instantiator_buttons):
11578         (image_instantiator_edit_fields):
11579         (image_instantiator_combo_box):
11580         (image_instantiator_scrollbar):
11581         (image_instantiator_progress_guage):
11582         (image_instantiator_tree_view):
11583         (image_instantiator_tab_control):
11584         (image_instantiator_labels):
11585         (image_instantiator_layout): ditto.
11586         (image_instantiator_format_create_glyphs_widget): Call preceding
11587         functions.
11588
11589 2000-01-22  Martin Buchholz  <martin@xemacs.org>
11590
11591         * process.c (Fset_process_coding_system):
11592         * device-x.c (Fx_keysym_hash_table):
11593         Docstring fixes.
11594
11595         * lstream.c (Lstream_write): Return documented value, not 0.
11596
11597         * fileio.c (directory_file_name):
11598         (Fsubstitute_in_file_name):
11599         (Fsubstitute_insert_file_contents_internal):
11600         (Fwrite_region_internal):
11601         * emacs.c:
11602         * sysdep.c:
11603         * getloadavg.c:
11604         * systty.h:
11605         Remove vestigial APOLLO-conditional code.
11606
11607 2000-01-21  Martin Buchholz  <martin@xemacs.org>
11608
11609         * getpagesize.h: Add guard macros.
11610         * libsst.h: Add guard macros.
11611         * libst.h: Add guard macros.
11612         * line-number.h: Add guard macros.
11613         * ndir.h: Add guard macros.
11614         * sysfloat.h: Add guard macros.
11615         * sysfile.h: Add guard macros.
11616         * sysproc.h: Add guard macros.
11617         * syswait.h: Add guard macros.
11618         * xintrinsic.h: Add guard macros.
11619         * xintrinsicp.h: Add guard macros.
11620         * xmmanager.h: Add guard macros.
11621         * xmmanagerp.h: Add guard macros.
11622         * xmprimitive.h: Add guard macros.
11623         * xmu.h: Add guard macros.
11624         * gpmevent.h: Add copyright statement. Add guard macros.
11625         * miscplay.h: Add guard macros.
11626         * *.h: Use consistent C-standards-approved guard macro names.
11627
11628         * opaque.c (make_opaque): Switch parameter order.
11629         * opaque.h (make_opaque): Switch parameter order.
11630         Update all callers.
11631         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
11632
11633         * config.h.in (type_checking_assert): Added.
11634         (bufpos_checking_assert): Added.
11635
11636 2000-01-21  Martin Buchholz  <martin@xemacs.org>
11637
11638         * alloc.c: Harmless pdump changes.
11639         - Use countof().
11640         - spell alignment correctly.
11641         * sysdep.c: Use countof()
11642
11643 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11644
11645         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
11646         initially_selected_for_input() console method, default to 0.
11647         (semi_canonicalize_console_connection): Try to delegate to
11648         canonicalize_console_connection if no such console method.
11649         (canonicalize_console_connection): Vice versa.
11650         (print_console): Do not print nil connection.
11651
11652         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
11653         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
11654         (XDEVIMPF_FRAMELESS_OK): Added.
11655         (CONSOLE_INHERITS_METHOD): Added.
11656
11657         * console-msw.c (mswindows_canonicalize_console_connection):
11658         Added.
11659         (mswindows_canonicalize_device_connection): Added.
11660
11661         * console-msw.h (struct msprinter_device): Added this struct and
11662         accessor macros.
11663         (mswindows_device): Made fontlist a lisp object.
11664
11665         * device.c (semi_canonicalize_device_connection):  Try to delegate
11666         to canonicalize_device_connection if no such console method.
11667         (canonicalize_device_connection): Vice versa.
11668         (print_device): Do not print nil connection.
11669
11670         * device-msw.c (mswindows_init_device): Call InitCommonControls
11671         when have widgets.
11672         (mswindows_delete_device): Removed fontlist deallocation.
11673         (mswindows_mark_device): Added.
11674
11675         * events.c (event_equal): Added abort() at unreached code.
11676         (event_hash): Ditto.
11677
11678         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
11679         fallback tags of Windows devices.
11680
11681         * general.c (syms_of_general): Initialized Qmsprinter.
11682
11683         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
11684         of fallback tags of Windows devices.
11685
11686         * lisp.h: Declared Qmsprinter.
11687
11688         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
11689         of strings.
11690         (mswindows_list_fonts): Ditto.
11691         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
11692         that it can be used by both mswindows and msprinter devices.
11693         (initialize_font_instance): Added.
11694         (mswindows_initialize_font_instance): Use it.
11695         (msprinter_initialize_font_instance): Added.
11696
11697         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
11698         and implementation flags check.
11699         (redisplay_without_hooks): Changed the call to the above.
11700         (Fredraw_device): Ditto.
11701         (Fredisplay_device): Ditto.
11702
11703         * redisplay-msw.c (get_frame_dc): Implemented.
11704         (get_frame_compdc): Implemented.
11705         (many functions): Use the two functions above to get device
11706         contexts, ether for a window or a printer.
11707
11708 2000-01-21  Olivier Galibert  <galibert@pobox.com>
11709
11710         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
11711         initialization here.
11712         (init_symbols_once_early): Call it.
11713         * emacs.c (main_1): Call it.
11714         * symsinit.h: Declare it.
11715
11716 2000-01-19  Olivier Galibert  <galibert@pobox.com>
11717
11718         * alloc.c: Use a lrecord_header * in the backtrace instead of a
11719         Lisp_Object.
11720         (pdump_backtrace): Ditto.
11721         (pdump_register_object): Ditto.  Cleanup use of the pointers.
11722         (pdump_get_entry): Abort if trying to register a null pointer.
11723         (pdump_dump_data): Cleanup types when relocating.
11724         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
11725         (pdump_dump_rtables): Remove bad casts.
11726         (pdump_load): Cleanup relocation w.r.t union type.  Use a
11727         Lisp_Object instead of a EMACS_INT for the hashtable
11728         reorganization.
11729
11730 2000-01-20  Martin Buchholz  <martin@xemacs.org>
11731
11732         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
11733
11734         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
11735
11736         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
11737
11738         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
11739
11740 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11741
11742         * faces.h (FACE_STRIKETHRU_P): Added.
11743
11744         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
11745         of font variants.
11746
11747         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
11748         (mswindows_set_dc_font): New function, aware of font variants,
11749         separated from mswindows_update_dc.
11750
11751         * objects-msw.h (struct mswindows_font_instance_data): Added
11752         definition.
11753
11754         * objects-msw.c (mswindows_finalize_font_instance): Delete all
11755         cached fonts and the data structure.
11756         (mswindows_initialize_font_instance): Added creation of font data
11757         structure.
11758         (mswindows_print_font_instance): Print at least something.
11759         (mswindows_create_font_variant): Implemented.
11760         (mswindows_get_hfont): Implemented.
11761
11762 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
11763
11764         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
11765         prototyping problem with msvc.
11766
11767         * emacs.c (main_1): added syms_of_gui_mswindows() call
11768
11769         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
11770         syms_of_gui_mswindows() function
11771
11772         * symsinit.h: added the prototype for syms_of_gui_mswindows()
11773
11774 2000-01-18  Martin Buchholz <martin@xemacs.org>
11775
11776         * XEmacs 21.2.27 is released.
11777
11778 2000-01-18  Martin Buchholz  <martin@xemacs.org>
11779
11780         * glyphs-eimage.c (struct tiff_error_struct):
11781         (tiff_error_func):
11782         (tiff_warning_func):
11783         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
11784
11785         * unexmips.c:
11786         * unexhp9k3.c:
11787         * unexfreebsd.c:
11788         * unexec.c: Remove vestigial Lucid C code.
11789         * unexalpha.c:
11790         * unexaix.c:
11791         * termcap.c:
11792         * libsst.c: Ansify.
11793         Remove declarations of errno and strerror().
11794
11795         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
11796
11797         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
11798
11799 2000-01-16  Martin Buchholz  <martin@xemacs.org>
11800
11801         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
11802         Optimize.
11803
11804 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11805
11806         * md5.c:
11807         * file-coding.c:
11808         * file-coding.h:
11809         Change enum eol_type to eol_type_t.
11810
11811 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11812
11813         * gui.c (get_gui_callback): Check cons before accessing car.
11814
11815 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11816
11817         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
11818         (XSETSPECIFIER_TYPE): Ditto.
11819
11820 2000-01-17  Didier Verna  <didier@xemacs.org>
11821
11822         * redisplay.c (generate_fstring_runes): compute string size in
11823         characters, not bytes.
11824
11825 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
11826
11827         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
11828
11829 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
11830
11831         * print.c (print_error_message): Call print_prepare().
11832
11833 2000-01-14  Martin Buchholz  <martin@xemacs.org>
11834
11835         * .dbxrc: Renamed from dbxrc.
11836
11837         * events.c (event_to_character):
11838         Use `assert (foo)' instead of `if (!foo) abort()'
11839
11840         * .gdbinit (xtype): Add documentation.
11841         * .gdbinit (check-temacs): New function.
11842         * .gdbinit (check-xemacs): New function.
11843         * dbxrc (check-xemacs): New function.
11844         * dbxrc (check-xemacs): New function.
11845
11846 2000-01-14  Andy Piper  <andy@xemacs.org>
11847
11848         * glyphs-widget.c (widget_query_geometry): Make sure that we
11849         calculate default dimensions correctly.
11850
11851 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11852
11853         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
11854
11855         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
11856         pdump_wire'd variable.
11857
11858         * emacs.c: (main_1): Conditionalized calls to
11859         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
11860
11861 2000-01-13  Martin Buchholz  <martin@xemacs.org>
11862
11863         * window.c (Fset_window_configuration):
11864         * sysdep.c (_start):
11865         * input-method-motif.c (res):
11866         * event-Xt.c (Xt_process_to_emacs_event):
11867         Simple compiler warning fixes.
11868
11869         * bytecode.c (funcall_compiled_function): Use the original
11870         function symbol on the backtrace list in preference to the
11871         compiled_function object in error messages.
11872
11873 2000-01-13  Andy Piper  <andy@xemacs.org>
11874
11875         * glyphs-x.c (update_widget_face): Make sure we update the widget
11876         background as well as foreground.
11877
11878 2000-01-13  Andy Piper  <andy@xemacs.org>
11879
11880         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
11881         fields to subwindow.
11882         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
11883         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
11884         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
11885         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
11886
11887         * glyphs-widget.c (check_valid_tab_orientation): new function.
11888         (initialize_widget_image_instance): zero orientation and
11889         justification.
11890         (widget_instantiate): pick up orientation.
11891         (tab_control_query_geometry): return appropriate values for
11892         vertical tabs.
11893
11894         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
11895         appropriate creation flags for left, right and bottom tabs.
11896
11897         * s/cygwin32.h: add tab definitions.
11898
11899 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11900
11901         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
11902         frame upon hiding a subwindow.
11903         (mswindows_button_instantiate): Changed the push button style to
11904         BS_PUSHBUTTON.
11905         (mswindows_button_instantiate): Removed button BS_NOTIFY
11906         style.
11907         (mswindows_button_instantiate): Removed redundant check for
11908         a disabled gui item.
11909         (mswindows_button_instantiate): Made use of WS_TABSTOP
11910         consistent: "operable" controls (edit, button, tree, scroll) have
11911         this style, "display-only" ones (static, progress gauge) do
11912         not. This style is currently ignored by XEmacs though. Also,
11913         removed the WS_EX_CONTROLPARENT style - it is not for children,
11914         it is for their parents!
11915         (mswindows_edit_field_instantiate): Ditto.
11916         (mswindows_progress_gauge_instantiate): Ditto.
11917         (mswindows_tree_view_instantiate): Ditto.
11918         (mswindows_tab_control_instantiate): Ditto.
11919         (mswindows_scrollbar_instantiate): Ditto.
11920         (mswindows_combo_box_instantiate): Ditto.
11921         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
11922         style to the "clip" window.
11923         (mswindows_button_instantiate): Removed compilation warning by
11924         equally typing terms of the ?: operator.
11925
11926 2000-01-12  Didier Verna  <didier@xemacs.org>
11927
11928         * redisplay.c (generate_fstring_runes): new parameter holding the
11929         last modeline-format extent.
11930         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
11931         extent, fill the glyph block with it.
11932         (generate_fstring_runes): handle these parameters.
11933         (generate_formatted_string_db): ditto.
11934
11935         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
11936         glyphs'extents in the modeline.
11937
11938 1999-01-11  Mike Woolley  <mike@bulsara.com>
11939
11940         * ntheap.c: Reduced the reserved heap space from 1Gb down to
11941         256Mb, as a workaround for the non-starting problem many people
11942         have experienced.
11943
11944 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11945
11946         * console-tty.c (Fset_console_tty_output_coding_system):
11947         Force redrawing tty frame.
11948
11949 2000-01-10  Didier Verna  <didier@xemacs.org>
11950
11951         * redisplay.c (generate_fstring_runes): fix size computation bug.
11952
11953 2000-01-09  William M. Perry <wmperry@aventail.com>
11954
11955         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
11956
11957 2000-01-09  Andy Piper  <andy@xemacs.org>
11958
11959         * glyphs-msw.c: index -> i to avoid shadows.
11960         (xbm_create_bitmap_from_data): make static.
11961         (check_valid_string_or_int): deleted.
11962         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
11963
11964         * glyphs-x.c (x_update_subwindow): remove unused args.
11965
11966         * glyphs.c (glyph_image_instance): return the thing. Don't set the
11967         back pointer - this is done in allocate_image_instance.
11968         (query_string_font): return Qnil to make the compiler happy.
11969         (unmap_subwindow): set to ~0 to make the compiler happy.
11970         (glyph_query_geometry): comment out until used.
11971         (glyph_layout): ditto.
11972
11973 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
11974
11975         * insdel.c (signal_after_change): Remove extraneous unbind_to().