(U+4E2A): Unify CB-286.
[chise/xemacs-chise.git-] / src / ChangeLog
1 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * mule-charset.c (encode_builtin_char_1): Comment out special code
4         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
5
6         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
7         (MAX_CHAR_MOJIKYO_0): Comment out.
8         (MIN_CHAR_CBETA): Changed to 0x00E20000.
9         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
10         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
11         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
12
13 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
14
15         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
16         (Qideograph_cbeta): New variable.
17         (encode_builtin_char_1): Comment out special code for
18         coded-charset `mojikyo' and `japanese-jef-china3'.
19         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
20         (complex_vars_of_mule_charset): Add new coded-charset
21         `ideograph-cbeta'.
22
23         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
24         (MIN_CHAR_CBETA): New macro.
25         (MAX_CHAR_CBETA): New macro.
26
27 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
28
29         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
30         (LEADING_BYTE_JEF_CHINA3): New macro.
31         (MIN_CHAR_JEF_CHINA3): New macro.
32         (MAX_CHAR_JEF_CHINA3): Likewise.
33         (DECODE_CHAR): Fixed.
34
35 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
36
37         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
38         (Qjapanese_jef_china3): New variable.
39         (encode_builtin_char_1): Support `japanese-jef-china3'.
40         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
41         (complex_vars_of_mule_charset): Add new coded-charset
42         `japanese-jef-china3'.
43
44 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
45
46         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
47         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
48         94^4, 96^3, 96^4, 128^n and 256^n set.
49         (put_char_table): Use `XCHARSET_CELL_RANGE'.
50         (map_char_table): Likewise.
51
52 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
53
54         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
55         UTF-2000.
56
57 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
58
59         * chartab.h (get_char_id_table): New inline function.
60
61         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
62         function.
63
64 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
65
66         * chartab.h (decode_char_table_range): New prototype in XEmacs
67         UTF-2000.
68         (put_char_id_table): New inline function in XEmacs UTF-2000.
69
70         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
71         function.
72         (decode_char_table_range): Delete static declaration in XEmacs
73         UTF-2000.
74
75 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
76
77         * chartab.c (put_char_id_table): Use `put_char_table'.
78
79 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
80
81         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
82         (map_over_uint16_byte_table): Likewise.
83         (map_over_byte_table): Likewise.
84         (map_char_table): Modify for `map_over_uint8_byte_table',
85         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
86         UTF-2000.
87
88 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
89
90         * chartab.c (struct map_char_table_for_charset_arg): New
91         structure.
92         (map_char_table_for_charset_fun): New function.
93         (map_char_table): Use `map_char_table' for encoding_table of
94         `range->charset'.
95
96 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
97
98         * chartab.c (map_char_table): Check a character is found in
99         range->charset instead of non default value is defined in
100         char-table when range is CHARTAB_RANGE_ROW.
101
102 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
103
104         * chartab.c (map_char_id_table): Deleted.
105         (Fmap_char_attribute): Use `map_char_table' instead of
106         `map_char_id_table'.
107
108 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
109
110         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
111         UTF-2000.
112         (update_syntax_table): Deleted in XEmacs UTF-2000.
113
114         * syntax.c (find_defun_start): Use `syntax_table' instead of
115         `mirror_syntax_table' in XEmacs UTF-2000.
116         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
117         UTF-2000.
118         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
119         XEmacs UTF-2000.
120         (Fmatching_paren): Likewise.
121         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
122         in XEmacs UTF-2000.
123         (find_start_of_comment): Likewise.
124         (find_end_of_comment): Likewise.
125         (Fforward_comment): Likewise.
126         (scan_lists): Likewise.
127         (char_quoted): Likewise.
128         (Fbackward_prefix_chars): Likewise.
129         (scan_sexps_forward): Likewise.
130         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
131         (update_syntax_table): Likewise.
132
133         * search.c (skip_chars): Use `syntax_table' instead of
134         `mirror_syntax_table' in XEmacs UTF-2000.
135         (wordify): Likewise.
136         (Freplace_match): Likewise.
137
138         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
139         `mirror_syntax_table' in XEmacs UTF-2000.
140         (WORDCHAR_P_UNSAFE): Likewise.
141         (re_match_2_internal): Likewise.
142
143         * font-lock.c (find_context): Use `buf->syntax_table' instead of
144         `buf->mirror_syntax_table' in XEmacs UTF-2000.
145
146         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
147         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
148
149         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
150         XEmacs UTF-2000.
151
152         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
153         UTF-2000.
154         (print_char_table): Print `default_value' in XEmacs UTF-2000.
155         (char_table_description): Delete `mirror_table' in XEmacs
156         UTF-2000.
157         (fill_char_table): Don't call `update_syntax_table' in XEmacs
158         UTF-2000.
159         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
160         (Fcopy_char_table): Likewise.
161         (put_char_table): Don't call `update_syntax_table' in XEmacs
162         UTF-2000.
163
164         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
165         `buf->mirror_syntax_table' in XEmacs UTF-2000.
166         (casify_region_internal): Likewise.
167
168         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
169
170         * buffer.c (common_init_complex_vars_of_buffer): Don't use
171         `mirror_syntax_table' in XEmacs UTF-2000.
172
173         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
174         `buf->mirror_syntax_table' in XEmacs UTF-2000.
175         (Fexpand_abbrev): Likewise.
176
177 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
178
179         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
180
181 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
182
183         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
184         (map_over_uint16_byte_table): Likewise.
185         (map_over_byte_table): Likewise.
186         (get_char_id_table): Refer `cit->default_value'.
187         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
188         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
189         of character-id ranges.
190         (mark_char_table): Mark `ct->default_value'.
191         (char_table_description): Add `default_value'.
192         (fill_char_table): Use `default_value'.
193         (decode_char_table_range): Decode `nil' as
194         `CHARTAB_RANGE_DEFAULT'.
195         (get_char_id_table): Refer `cit->default_value'.
196         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
197         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
198         temporary hack; check value of char-table is bound or not.
199         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
200
201         * chartab.h (struct Lisp_Char_Table): Add new member
202         `default_value' in XEmacs UTF-2000.
203         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
204         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
205         UTF-2000.
206
207 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
208
209         * chartab.h (Lisp_Char_ID_Table): Deleted.
210
211         * chartab.c (char_table_description): Fix typo.
212         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
213         `Lisp_Char_ID_Table'.
214
215 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
216
217         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
218         `CHAR_ID_TABLE_P'.
219
220         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
221         `CHAR_ID_TABLE_P'.
222
223         * chartab.h (XCHAR_ID_TABLE): Deleted.
224         (XSETCHAR_ID_TABLE): Deleted.
225         (CHAR_ID_TABLE_P): Deleted.
226
227         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
228         `CHAR_ID_TABLE_P'.
229         (Fget_composite_char): Likewise.
230         (put_char_table): Likewise.
231         (add_char_attribute_alist_mapper): Fixed.
232         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
233         `CHAR_ID_TABLE_P'.
234         (Fget_char_attribute): Likewise.
235         (Fget_char_attribute): Likewise.
236         (Fmap_char_attribute): Likewise.
237
238         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
239         `CHAR_ID_TABLE_P'.
240         (encode_char_1): Likewise.
241
242 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
243
244         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
245         `XCHAR_ID_TABLE'.
246
247         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
248         instead of `XCHAR_ID_TABLE'.
249         (remove_char_ccs): Likewise.
250
251         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
252         `XCHAR_ID_TABLE'.
253         (Fget_composite_char): Likewise.
254         (Fchar_variants): Likewise.
255         (put_char_table): Likewise.
256         (add_char_attribute_alist_mapper): Likewise.
257         (Fchar_attribute_alist): Likewise.
258         (Fget_char_attribute): Likewise.
259         (Fput_char_attribute): Likewise.
260         (Fmap_char_attribute): Likewise.
261         (Fmap_char_attribute): Likewise.
262
263         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
264         `XCHAR_ID_TABLE'.
265         (encode_char_1): Likewise.
266
267 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
268
269         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
270         `Lisp_Char_ID_Table'.
271         (mark_char_id_table): Deleted.
272         (print_char_id_table): Likewise.
273         (char_id_table_equal): Likewise.
274         (char_id_table_hash): Likewise.
275         (char_id_table_description): Likewise.
276         (char_id_table): Likewise.
277         (make_char_id_table): Use `Fmake_char_table' and
278         `fill_char_table'.
279         (get_char_id_table): Use `Lisp_Char_Table' instead of
280         `Lisp_Char_ID_Table'.
281         (put_char_id_table): Likewise.
282         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
283         `XCHAR_ID_TABLE'.
284         (Fremove_char_attribute): Likewise.
285         (syms_of_chartab): Don't define type `char-id-table'.
286
287         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
288         (char_id_table): Likewise.
289         (GC_CHAR_ID_TABLE_P): Likewise.
290         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
291         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
292         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
293         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
294         (get_char_id_table): Use `Lisp_Char_Table' instead of
295         `Lisp_Char_ID_Table'.
296         (put_char_id_table_0): Likewise.
297         (put_char_id_table): Likewise.
298
299 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
300
301         * chartab.h: Lisp_Byte_Table related codes are moved from
302         chartab.h.
303
304         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
305
306 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
307
308         * chartab.h: Don't include "chartab.h".
309         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
310         (Lisp_Char_ID_Table): Likewise.
311         (char_id_table): Likewise.
312         (XCHAR_ID_TABLE): Likewise.
313         (XSETCHAR_ID_TABLE): Likewise.
314         (CHAR_ID_TABLE_P): Likewise.
315         (GC_CHAR_ID_TABLE_P): Likewise.
316         (get_char_id_table): Likewise.
317
318         * char-ucs.h: Include "chartab.h".
319         (struct Lisp_Char_ID_Table): Moved to chartab.h.
320         (Lisp_Char_ID_Table): Likewise.
321         (char_id_table): Likewise.
322         (XCHAR_ID_TABLE): Likewise.
323         (XSETCHAR_ID_TABLE): Likewise.
324         (CHAR_ID_TABLE_P): Likewise.
325         (GC_CHAR_ID_TABLE_P): Likewise.
326         (get_char_id_table): Likewise.
327
328 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
329
330         * chartab.c (copy_uint8_byte_table): New function.
331         (copy_uint16_byte_table): New function.
332         (copy_byte_table): New function.
333         (map_over_uint8_byte_table): Modify to avoid huge numbers of
334         characters to call.
335         (map_over_uint16_byte_table): Likewise.
336         (map_over_byte_table): Likewise.
337         (get_byte_table): Move prototype to chartab.h.
338         (put_byte_table): Likewise.
339         (put_char_id_table_0): Moved to chartab.h.
340         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
341         (char_table_entry_equal): Likewise.
342         (char_table_entry_hash): Likewise.
343         (char_table_entry_description): Likewise.
344         (char_table_entry): Likewise.
345         (make_char_table_entry): Likewise.
346         (copy_char_table_entry): Likewise.
347         (get_non_ascii_char_table_value): Likewise.
348         (map_over_charset_ascii): Likewise.
349         (map_over_charset_control_1): Likewise.
350         (map_over_charset_row): Likewise.
351         (map_over_other_charset): Likewise.
352         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
353         (print_char_table): Likewise.
354         (char_table_equal): Likewise.
355         (char_table_hash): Likewise.
356         (char_table_description): Likewise.
357         (fill_char_table): Likewise.
358         (Fcopy_char_table): Likewise.
359         (get_char_table): Likewise.
360         (Fget_range_char_table): Likewise.
361         (put_char_table): Likewise.
362         (map_char_table): Likewise.
363         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
364         UTF-2000.
365
366 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
367
368         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
369         `Vauto_fill_chars' in XEmacs UTF-2000.
370
371         * chartab.h (get_byte_table): New prototype [moved from
372         chartab.c].
373         (put_byte_table): Likewise [moved from chartab.c].
374         (put_char_id_table_0): New inline function [moved from chartab.c].
375         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
376         (Lisp_Char_Table_Entry): Likewise.
377         (char_table_entry): Likewise.
378         (XCHAR_TABLE_ENTRY): Likewise.
379         (XSETCHAR_TABLE_ENTRY): Likewise.
380         (CHAR_TABLE_ENTRYP): Likewise.
381         (CHECK_CHAR_TABLE_ENTRY): Likewise.
382         (NUM_ASCII_CHARS): Likewise.
383         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
384         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
385
386 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
387
388         * chartab.c (get_char_id_table): Change interface.
389         (put_char_id_table_0): New function.
390         (put_char_id_table): Change interface; new implementation.
391         (Fget_composite_char): Modify for interface change of
392         `get_char_id_table'.
393         (Fchar_variants): Likewise.
394         (add_char_attribute_alist_mapper): Likewise.
395         (Fchar_attribute_alist): Likewise.
396         (Fget_char_attribute): Likewise.
397         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
398         as same as character as the first argument like `put-char-table';
399         modify for interface change of `put_char_id_table'.
400         (Fremove_char_attribute): Modify for interface change of
401         `put_char_id_table'.
402
403 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
404
405         * text-coding.c: Sync up with XEmacs 21.2.41.
406         (COMPOSE_ADD_CHAR): Modify for interface change of
407         `get_char_id_table'.
408
409         * mule-charset.c (put_char_ccs_code_point): Modify for interface
410         change of `put_char_id_table'.
411         (remove_char_ccs): Likewise.
412
413         * chartab.h (put_char_id_table): Change interface.
414
415         * char-ucs.h (get_char_id_table): Change interface.
416         (charset_code_point): Modify for interface change of
417         `get_char_id_table'.
418         (encode_char_1): Likewise.
419
420 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
421
422         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
423         argument `ccs'.
424         (map_over_uint16_byte_table): Likewise.
425         (map_over_byte_table): Likewise.
426         (map_char_id_table): Add new argument `range' like
427         `map_char_table'.
428         (Fmap_char_attribute): Add new argument `range' like
429         `Fmap_char_table'.
430
431 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
432
433         * chartab.c (map_over_uint8_byte_table): Change interface of
434         mapping function to use struct chartab_range instead of Emchar.
435         (map_over_uint16_byte_table): Likewise.
436         (map_over_byte_table): Likewise.
437         (map_char_id_table): Likewise.
438         (struct slow_map_char_id_table_arg): Deleted.
439         (slow_map_char_id_table_fun): Deleted.
440         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
441         function `slow_map_char_table_fun' instead of struct
442         `slow_map_char_id_table_arg' and function
443         `slow_map_char_id_table_fun'.
444
445 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
446
447         * mule-charset.c: Move char-it-table related codes to chartab.c.
448         (Vutf_2000_version): Moved to chartab.c.
449         (Fdefine_char): Likewise.
450         (Ffind_char): Likewise.
451         (syms_of_mule_charset): Move types `uint8-byte-table',
452         `uint16-byte-table', `byte-table' and `char-id-table' to
453         chartab.c; move functions `char_attribute_list,
454         `find_char_attribute_table, `char_attribute_alist,
455         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
456         `map_char_attribute, `define_char, `find_char, `char_variants and
457         `get_composite_char to chartab.c; move symbols `=>ucs',
458         `->decomposition', `compat', `isolated', `initial', `medial',
459         `final', `vertical', `noBreak', `fraction', `super', `sub',
460         `circle', `square', `wide', `narrow', `small' and `font' to
461         chartab.c.
462         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
463         setting codes for `Vcharacter_composition_table' and
464         `Vcharacter_variant_table' to chartab.c.
465         (complex_vars_of_mule_charset): Move setting code for
466         `Vchar_attribute_hash_table' to chartab.c.
467
468         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
469         (make_char_id_table): New prototype.
470         (put_char_id_table): Likewise.
471         (Fget_char_attribute): Likewise.
472
473         * chartab.c: Move char-id-table related code from mule-charset.c.
474         (Vutf_2000_version): Moved from mule-charset.c.
475
476         * char-ucs.h (Qucs): New external variable.
477         (put_char_ccs_code_point): New prototype.
478         (remove_char_ccs): Likewise.
479
480 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
481
482         * mule-charset.c (Vcharset_ucs_jis): New variable.
483         (Qucs_jis): Likewise.
484         (syms_of_mule_charset): Add new symbol `ucs-jis'.
485         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
486
487         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
488
489 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
490
491         * mule-charset.c (map_over_uint8_byte_table): New function.
492         (map_over_uint16_byte_table): Likewise.
493         (map_over_byte_table): Likewise.
494         (map_char_id_table): Likewise.
495         (slow_map_char_id_table_fun): Likewise.
496         (Fmap_char_attribute): Likewise.
497         (syms_of_mule_charset): Add new function `map-char-attribute'.
498
499 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
500
501         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
502         (syms_of_mule_charset): Add new function `find-char'.
503
504 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
505
506         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
507         XEmacs UTF-2000.
508         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
509         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
510         XEmacs UTF-2000.
511         (complex_vars_of_mule_charset): Add new coded-charset
512         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
513         `ideograph-gt-pj-*'.
514
515         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
516
517 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
518
519         * mule-charset.c (encode_builtin_char_1): Purge codes about
520         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
521         {MIN|MAX}_CHAR_HEBREW.
522         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
523         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
524
525         * char-ucs.h (MIN_CHAR_GREEK): Purged.
526         (MAX_CHAR_GREEK): Purged.
527         (MIN_CHAR_CYRILLIC): Purged.
528         (MAX_CHAR_CYRILLIC): Purged.
529         (MIN_CHAR_HEBREW): Commented out.
530         (MAX_CHAR_HEBREW): Likewise.
531
532 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
533
534         * mule-charset.c (Qto_ucs): New variable.
535         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
536         (Fdefine_char): Likewise.
537         (syms_of_mule_charset): Add new symbol `=>ucs'.
538
539 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
540
541         * mule-charset.c (Fdecode_char): Fixed.
542
543 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
544
545         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
546         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
547         "tcvn5712-1".
548
549 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
550
551         * mule-charset.c (Vcharset_ucs_big5): New variable.
552         (Qucs_big5): Likewise.
553         (syms_of_mule_charset): Add new symbol `ucs-big5'.
554         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
555
556         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
557
558 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
559
560         * mule-charset.c (decode_builtin_char): Check Big5 code range
561         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
562
563 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
564
565         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
566         (Qchinese_gb12345): Likewise.
567         (Fdecode_builtin_char): Fixed.
568         (syms_of_mule_charset): Add `chinese-gb12345'.
569         (complex_vars_of_mule_charset): Add coded-charset
570         `chinese-gb12345'.
571
572         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
573         (LEADING_BYTE_CHINESE_GB12345): New macro.
574
575 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
576
577         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
578         and `latin-viscii-upper' for `latin-viscii'.
579
580 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
581
582         * mule-charset.c (Fdecode_builtin_char): Comment out
583         regularization code for ISO-IR GR representation.
584
585 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
586
587         * mule-charset.c (decode_builtin_char): New function; renamed from
588         `make_builtin_char'; return -1 instead of signal.
589         (Fdecode_builtin_char): Use `decode_builtin_char'.
590
591         * char-ucs.h (decode_builtin_char): New prototype; renamed from
592         `make_builtin_char'.
593         (DECODE_CHAR): Use `decode_builtin_char' instead of
594         `make_builtin_char'; use mapping table of `chinese-big5' for
595         `chinese-big5-{1,2}'.
596
597 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
598
599         * text-coding.c (char_encode_big5): New function.
600         (char_finish_big5): Likewise.
601         (reset_encoding_stream): Use `char_encode_big5' and
602         `char_finish_big5' for CODESYS_BIG5.
603         (mule_encode): Don't use `encode_coding_big5'.
604         (encode_coding_big5): Deleted.
605
606 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
607
608         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
609         0x81- in XEmacs UTF-2000.
610         (detect_coding_big5): Likewise.
611
612 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
613
614         * mule-charset.c (Fdefine_char): Don't use a CCS property to
615         generate character-id if the CCS property does not have
616         corresponding predefined character.
617         (make_builtin_char): Return -1 if corresponding predefined
618         character is not found.
619         (Fdecode_char): Return nil if corresponding character is not
620         found.
621         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
622         don't map to builtin ucs space.
623
624 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
625
626         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
627         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
628
629 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
630
631         * mule-charset.c (Vcharset_ideograph_gt): New variable.
632         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
633         (Qideograph_gt): Likewise.
634         (Qideograph_gt_pj_{1..11}): Likewise.
635         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
636         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
637         `ideograph-gt-pj-11'.
638         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
639         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
640         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
641
642         * char-ucs.h (LEADING_BYTE_GT): New macro.
643         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
644         (MIN_CHAR_GT): Likewise.
645         (MAX_CHAR_GT): Likewise.
646
647 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
648
649         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
650         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
651
652         * doprnt.c (unsigned_int_converters): Add `c'.
653         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
654
655         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
656         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
657         `MIN_CHAR_MOJIKYO'.
658         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
659         (MAX_CHAR_MOJIKYO_0): New macro.
660         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
661
662 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
663
664         * mule-charset.c (Fdefine_char): Delete cemented out code.
665         (encode_builtin_char_1): Modify for new allocation of builtin
666         Mojikyo characters.
667
668         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
669
670 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
671
672         * mule-charset.c (Vcharset_ucs_cns): New variable.
673         (Qucs_cns): New variable.
674         (syms_of_mule_charset): Add new symbol `ucs-cns'.
675         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
676
677 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
678
679         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
680
681 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
682
683         * search.c (search_buffer): Make `charset_base_code' as
684         character-id >> 6 to eliminate the corresponding last byte in
685         UTF-8 representation [I'm not sure it is right thing].
686         (boyer_moore): Likewise.
687
688 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
689
690         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
691         representation in MULE.
692
693 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
694
695         * text-coding.c (Fmake_coding_system): Use
696         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
697         `EXTERNAL_PROPERTY_LIST_LOOP'.
698
699 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
700
701         * text-coding.c (decode_output_utf8_partial_char): New function.
702         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
703
704 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
705
706         * text-coding.c (decode_coding_utf8): Output original byte
707         sequence if it is broken; change order of conditions.
708
709         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
710         of conditions.
711
712         * mb-multibyte.h (BYTE_ASCII_P):
713         Use bit ops for char-signedness safety.
714         (BYTE_C0_P): Use bit ops for char-signedness safety.
715         (BYTE_C1_P): Use bit ops for char-signedness safety.
716
717         * character.h: (XCHAR_OR_CHAR_INT):
718         Always use inline function.
719         Remove redundant type checking assert() - XINT will abort quite
720         nicely.
721
722 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
723
724         * text-coding.c: (Fencode_shift_jis_char):
725         (Fencode_big5_char):
726         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
727         Replace 0 with '\0' when working with bytes.
728         Replace initial "(" with "\(" in docstrings.
729
730         (Fmake_coding_system):
731         When type is ccl and value is vector, register it with a proper
732         symbol.  And checks whether the given ccl program is valid.
733         (mule_decode): When calling ccl_driver, if src indicates
734         NULL pointer, set an empty string instead.
735         (mule_encode): Likewise.
736
737         (detect_eol_type):
738         (detect_coding_sjis):
739         (decode_coding_sjis):
740         (detect_coding_big5):
741         (decode_coding_big5):
742         (detect_coding_ucs4):
743         (decode_coding_ucs4):
744         (detect_coding_utf8):
745         (decode_coding_utf8):
746         (detect_coding_iso2022):
747         (decode_coding_iso2022):
748         (decode_coding_no_conversion):
749         (mule_decode):
750         Make all detecting and decoding functions take an Extbyte * arg.
751         (text_encode_generic):
752         (encode_coding_big5):
753         (encode_coding_no_conversion):
754         (mule_encode):
755         Make all encoding functions take a Bufbyte * arg.
756         Use size_t instead of unsigned int for memory sizes.
757         Only cast to unsigned char whenever dereferencing Extbyte *.
758
759         (struct lrecord_description fcd_description_1): Use countof.
760         (complex_vars_of_file_coding):
761         Use countof instead of sizeof.
762         Use CHECK_NATNUM instead of CHECK_INT.
763
764 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
765
766         * mule-charset.c (Fget_char_attribute): Add new optional argument
767         `default-value'.
768         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
769         (remove_char_ccs): Likewise.
770
771 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
772
773         * text-coding.c (char_encode_shift_jis): New implementation in
774         UTF-2000.
775         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
776         ...)'.
777
778         * mule-charset.c (Vcharset_chinese_big5): New variable in
779         UTF-2000.
780         (Qchinese_big5): New variable in UTF-2000.
781         (BIG5_SAME_ROW): New macro in UTF-2000.
782         (make_builtin_char): Use builtin characters of
783         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
784         characters of `Vcharset_chinese_big5'.
785         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
786         (complex_vars_of_mule_charset): Add new coded-charset
787         `chinese-big5' in UTF-2000.
788
789         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
790         (Vcharset_chinese_big5): New external variable declaration.
791         (Vcharset_japanese_jisx0208_1990): Likewise.
792
793 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
794
795         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
796         function.
797         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
798
799 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
800
801         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
802         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
803         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
804         `mojikyo-pj-*'.
805
806 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
807
808         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
809
810 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
811
812         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
813         to 0.17.
814
815 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
816
817         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
818         for `CHARSET_BY_ATTRIBUTES'.
819         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
820         `CHARSET_BY_ATTRIBUTES'.
821
822         * text-coding.c (struct decoding_stream): Rename member `CH' to
823         `CPOS'.
824         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
825         (decode_coding_sjis): Likewise.
826         (decode_coding_big5): Likewise.
827         (decode_coding_ucs4): Likewise.
828         (decode_coding_utf8): Likewise.
829         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
830         `CHARSET_BY_ATTRIBUTES'.
831         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
832         `str->counter'; decode 3, 4 bytes sets.
833         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
834         sets.
835         (decode_coding_no_conversion): Use `str->cpos' instead of
836         `str->ch'.
837
838         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
839         (Qmojikyo_2022_1): New variable.
840         (make_charset): Don't use `CHARSET_TYPE_*'.
841         (range_charset_code_point): Support coded-charset
842         `mojikyo-2022-1'.
843         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
844         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
845         `CHARSET_BY_ATTRIBUTES'.
846         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
847         `CHARSET_BY_ATTRIBUTES'.
848         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
849         (complex_vars_of_mule_charset): Add new coded-charset
850         `mojikyo-2022-1'.
851
852         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
853         interface; changed to inline function.
854
855         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
856         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
857         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
858         (CHARSET_TYPE_94): Deleted.
859         (CHARSET_TYPE_94X94): Deleted.
860         (CHARSET_TYPE_96): Deleted.
861         (CHARSET_TYPE_96X96): Deleted.
862         (CHARSET_TYPE_128): Deleted.
863         (CHARSET_TYPE_128X128): Deleted.
864         (CHARSET_TYPE_256): Deleted.
865         (CHARSET_TYPE_256X256): Deleted.
866         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
867         to inline function.
868         (DECODE_MOJIKYO_2022): New inline function.
869         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
870         `Vcharset_mojikyo_2022_1'.
871
872 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
873
874         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
875         instead of `EQ'.
876         (put_byte_table): Likewise.
877         (char_id_table_equal): Use `get_byte_table' [new implementation].
878
879 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
880
881         * mule-charset.c: Include <limits.h> in UTF-2000.
882         (BT_UINT8_MIN): New macro in UTF-2000.
883         (BT_UINT8_MAX): New macro in UTF-2000.
884         (BT_UINT8_t): New macro in UTF-2000.
885         (BT_UINT8_nil): New macro in UTF-2000.
886         (BT_UINT8_unbound): New macro in UTF-2000.
887         (INT_UINT8_P): New inline function in UTF-2000.
888         (UINT8_VALUE_P): New inline function in UTF-2000.
889         (UINT8_ENCODE): New inline function in UTF-2000.
890         (UINT8_DECODE): New inline function in UTF-2000.
891         (mark_uint8_byte_table): New function in UTF-2000.
892         (print_uint8_byte_table): New function in UTF-2000.
893         (uint8_byte_table_equal): New function in UTF-2000.
894         (uint8_byte_table_hash): New function in UTF-2000.
895         (make_uint8_byte_table): New function in UTF-2000.
896         (uint8_byte_table_same_value_p): New function in UTF-2000.
897         (BT_UINT16_MIN): New macro in UTF-2000.
898         (BT_UINT16_MAX): New macro in UTF-2000.
899         (BT_UINT16_t): New macro in UTF-2000.
900         (BT_UINT16_nil): New macro in UTF-2000.
901         (BT_UINT16_unbound): New macro in UTF-2000.
902         (INT_UINT16_P): New inline function in UTF-2000.
903         (UINT16_VALUE_P): New inline function in UTF-2000.
904         (UINT16_ENCODE): New inline function in UTF-2000.
905         (UINT16_DECODE): New inline function in UTF-2000.
906         (UINT8_TO_UINT16): New inline function in UTF-2000.
907         (mark_uint16_byte_table): New function in UTF-2000.
908         (print_uint16_byte_table): New function in UTF-2000.
909         (uint16_byte_table_equal): New function in UTF-2000.
910         (uint16_byte_table_hash): New function in UTF-2000.
911         (make_uint16_byte_table): New function in UTF-2000.
912         (uint16_byte_table_same_value_p): New function in UTF-2000.
913         (print_byte_table): New function in UTF-2000.
914         (byte-table): Use `print_byte_table' as printer.
915         (make_byte_table): Delete second argument `older'.
916         (byte_table_same_value_p): New function in UTF-2000.
917         (copy_byte_table): Deleted.
918         (get_byte_table): New function in UTF-2000.
919         (put_byte_table): New function in UTF-2000.
920         (print_char_id_table): New function in UTF-2000.
921         (char-id-table): Use `print_char_id_table' as printer.
922         (make_char_id_table): Delete second argument `older'.
923         (get_char_id_table): Use `get_byte_table [new implementation].
924         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
925         implementation].
926         (Ffind_char_attribute_table): New function in UTF-2000.
927         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
928         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
929         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
930         (syms_of_mule_charset): Add new function
931         `find-char-attribute-table' in UTF-2000.
932
933         * lrecord.h (enum lrecord_type): Add
934         `lrecord_type_uint16_byte_table' and
935         `lrecord_type_uint8_byte_table'.
936
937         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
938         (Lisp_Uint8_Byte_Table): New type.
939         (XUINT8_BYTE_TABLE): New macro.
940         (XSETUINT8_BYTE_TABLE): New macro.
941         (UINT8_BYTE_TABLE_P): New macro.
942         (GC_UINT8_BYTE_TABLE_P): New macro.
943         (struct Lisp_Uint16_Byte_Table): New structure.
944         (Lisp_Uint16_Byte_Table): New type.
945         (XUINT16_BYTE_TABLE): New macro.
946         (XSETUINT16_BYTE_TABLE): New macro.
947         (UINT16_BYTE_TABLE_P): New macro.
948         (GC_UINT16_BYTE_TABLE_P): New macro.
949
950 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
951
952         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
953         (Vcharacter_ideographic_strokes_table): Deleted.
954         (Vcharacter_total_strokes_table): Deleted.
955         (Vcharacter_morohashi_daikanwa_table): Deleted.
956         (Vcharacter_decomposition_table): Deleted.
957         (Qname): Deleted because it is duplicated.
958         (Qideographic_radical): Deleted.
959         (Qideographic_strokes): Deleted.
960         (Qtotal_strokes): Deleted.
961         (Qmorohashi_daikanwa): Deleted.
962         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
963         `ideographic-radical', `ideographic-strokes', `total-strokes',
964         `morohashi-daikanwa' and `->decomposition'.
965         (Fget_char_attribute): Likewise.
966         (Fput_char_attribute): Likewise; use `make-vector' instead of
967         `make_older_vector' for `->decomposition' value.
968         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
969         `ideograph-daikanwa'.
970         (syms_of_mule_charset): Delete builtin symbols `name',
971         `ideographic-radical', `ideographic-strokes', `total-strokes' and
972         `morohashi-daikanwa'.
973         (vars_of_mule_charset): Don't setup
974         `Vcharacter_ideographic_radical_table',
975         `Vcharacter_ideographic_strokes_table',
976         `Vcharacter_total_strokes_table',
977         `Vcharacter_morohashi_daikanwa_table' and
978         `Vcharacter_decomposition_table'.
979
980 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
981
982         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
983         `make_older_vector', `make_vector_newer_1' and
984         `make_vector_newer'.
985
986         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
987         `make_older_vector' and `make_vector_newer'.
988
989         * config.h.in (HAVE_GGC): New macro.
990
991 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
992
993         * mule-charset.c (struct char_attribute_list_closure): New
994         structure in UTF-2000.
995         (add_char_attribute_to_list_mapper): New function in UTF-2000.
996         (Fchar_attribute_list): Likewise.
997         (Fset_charset_mapping_table): Use `make_vector_newer'.
998         (Fdecode_builtin_char): New function in UTF-2000.
999         (syms_of_mule_charset): Add new function `char-attribute-list' and
1000         `decode-builtin-char' in UTF-2000.
1001
1002         * lisp.h (make_vector_newer): New prototype.
1003
1004         * alloc.c (make_vector_newer_1): New function.
1005         (make_vector_newer): New function.
1006
1007 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1008
1009         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
1010         50100)'.
1011
1012 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1013
1014         * mule-charset.c (Vchar_attribute_hash_table): New variable.
1015         (Vcharacter_attribute_table): Deleted.
1016         (Vcharacter_name_table): Deleted.
1017         (put_char_attribute): Deleted.
1018         (remove_char_attribute): Deleted.
1019         (struct char_attribute_alist_closure): New structure.
1020         (add_char_attribute_alist_mapper): New function.
1021         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
1022         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
1023         (Fget_char_attribute): Likewise.
1024         (Fput_char_attribute): Likewise.
1025         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
1026         of `remove_char_attribute'.
1027         (Fdefine_char): Return character.
1028         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
1029         and `Vcharacter_name_table'.
1030         (complex_vars_of_mule_charset): Likewise
1031         `Vchar_attribute_hash_table'.
1032
1033 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1034
1035         * character.h (CHARC_CHARSET): New macro.
1036         (CHARC_CHARSET_ID): New macro.
1037         (CHARC_CODE_POINT): New macro.
1038         (CHARC_COLUMNS): New macro.
1039         (CHARC_TO_CHAR): New inline function.
1040         (CHARC_EQ): New inline function.
1041         (CHARC_ASCII_EQ): New inline function.
1042         (CHARC_IS_SPACE): New inline function.
1043         (ASCII_TO_CHARC): New inline function.
1044
1045         * char-ucs.h (encode_char_2): Deleted.
1046         (ENCODE_CHAR): Use `encode_char_1' again.
1047         (breakup_char_1): Likewise.
1048         (CHAR_TO_CHARC): New inline function.
1049
1050         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
1051
1052 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1053
1054         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
1055         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
1056         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
1057         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
1058         (create_string_text_block): Use `CHARC_ASCII_EQ' and
1059         `CHARC_IS_SPACE'.
1060         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
1061
1062         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
1063         `CHARC_CODE_POINT'.
1064         (x_output_display_block): Use `CHARC_CHARSET' and
1065         `CHARC_ASCII_EQ'.
1066
1067         * redisplay-tty.c (tty_output_display_block): Use
1068         `CHARC_ASCII_EQ'.
1069         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
1070
1071         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
1072
1073         * insdel.c (find_charsets_in_charc_string): Use
1074         `CHARC_CHARSET_ID'.
1075         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
1076         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
1077         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
1078         (convert_charc_string_into_malloced_string): Likewise.
1079
1080 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1081
1082         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
1083         instead of <Emchar_dynarr *> for buf; use
1084         `convert_bufbyte_string_into_charc_dynarr' instead of
1085         `convert_bufbyte_string_into_emchar_dynarr'; use
1086         `find_charsets_in_charc_string' instead of
1087         `find_charsets_in_emchar_string'.
1088
1089         * redisplay.h:
1090         - Include "character.h".
1091         (struct rune): New member `cglyph'; delete member `chr'.
1092
1093         * redisplay.c (redisplay_text_width_charc_string): New function;
1094         delete `redisplay_text_width_emchar_string'.
1095         (rtw_charc_dynarr): New variable; renamed from
1096         `rtw_emchar_dynarr'.
1097         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
1098         `rtw_emchar_dynarr'; use
1099         `convert_bufbyte_string_into_charc_dynarr' instead of
1100         `convert_bufbyte_string_into_emchar_dynarr'; use
1101         `redisplay_text_width_charc_string' instead of
1102         `redisplay_text_width_emchar_string'.
1103         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
1104         instead of `rtw_emchar_dynarr'; use
1105         `convert_bufbyte_string_into_charc_dynarr' instead of
1106         `convert_bufbyte_string_into_emchar_dynarr'.
1107         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
1108         `redisplay_text_width_charc_string' instead of
1109         `redisplay_text_width_emchar_string'.
1110         (create_text_block): Modify for <struct rune> change.
1111         (generate_formatted_string_db): Likewise.
1112         (create_string_text_block): Likewise.
1113         (pixel_to_glyph_translation): Likewise.
1114
1115         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
1116         instead of <const Emchar *>.
1117         (x_text_width): Likewise.
1118         (x_output_display_block): Use <Charc_dynarr *> instead
1119         <Emchar_dynarr *>; modify for <structure rune> change.
1120         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
1121         *>.
1122
1123         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
1124         <const Emchar *>; use `charc_string_displayed_columns' instead of
1125         `emchar_string_displayed_columns'.
1126         (tty_output_display_block): Use <Charc_dynarr *> instead of
1127         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
1128         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
1129         (tty_output_charc_dynarr_dynarr): New variable; renamed from
1130         `tty_output_emchar_dynarr_dynarr'.
1131         (tty_output_charc_dynarr): New function; delete
1132         `tty_output_charc_dynarr'.
1133
1134         * redisplay-output.c (compare_runes): Modify for `struct rune'.
1135         (redisplay_output_layout): Use <Charc_dynarr *> instead of
1136         <Emchar_dynarr *> for buf; use
1137         `convert_bufbyte_string_into_charc_dynarr' instead of
1138         `convert_bufbyte_string_into_emchar_dynarr'.
1139
1140         * frame.c (title_string_charc_dynarr): New variable; renamed from
1141         `title_string_emchar_dynarr'.
1142         (generate_title_string): Use `title_string_charc_dynarr' instead
1143         of `title_string_emchar_dynarr'; use
1144         `convert_charc_string_into_malloced_string' instead of
1145         `convert_emchar_string_into_malloced_string'.
1146         (init_frame): Use `title_string_charc_dynarr' instead of
1147         `title_string_emchar_dynarr'.
1148
1149         * console.h:
1150         - Include "character.h".
1151         (struct console_methods): Use <const Charc *> instead of <const
1152         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
1153         <Emchar_dynarr *> in output_string_method.
1154
1155         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
1156         <Emchar_dynarr *>.
1157
1158         * console-stream.c (stream_text_width): Use <const Charc *>
1159         instead of <const Emchar *>.
1160
1161         * character.h (Charc_dynarr): New type.
1162
1163         * char-ucs.h (structure Charc): New structure; define new type
1164         `Charc'.
1165
1166         * char-lb.h (DECODE_CHAR): New inline function.
1167         (encode_char_1): New inline function.
1168         (ENCODE_CHAR): New macro.
1169         (structure Charc): New structure; define new type `Charc'.
1170
1171         * char-1byte.h (Vcharset_control_1): New macro.
1172         (Vcharset_latin_iso8859_1): New macro.
1173         (DECODE_CHAR): New inline function.
1174         (encode_char_1): New inline function.
1175         (ENCODE_CHAR): New macro.
1176         (structure Charc): New structure; define new type `Charc'.
1177
1178         * insdel.c (find_charsets_in_charc_string): New function; delete
1179         `find_charsets_in_emchar_string'.
1180         (charc_string_displayed_columns): New function; delete
1181         `emchar_string_displayed_columns'.
1182         (convert_bufbyte_string_into_charc_dynarr): New function; delete
1183         `convert_bufbyte_string_into_emchar_dynarr'.
1184         (convert_charc_string_into_bufbyte_dynarr): New function; delete
1185         `convert_charc_string_into_bufbyte_dynarr'.
1186         (convert_charc_string_into_malloced_string): New function; delete
1187         `convert_charc_string_into_malloced_string'.
1188
1189         * buffer.h (find_charsets_in_charc_string): New prototype; delete
1190         `find_charsets_in_emchar_string'.
1191         (charc_string_displayed_columns): New prototype; delete
1192         `emchar_string_displayed_columns'.
1193         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
1194         `convert_charc_string_into_bufbyte_dynarr'.
1195         (convert_charc_string_into_malloced_string): New prototype; delete
1196         `convert_charc_string_into_malloced_string'.
1197
1198 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1199
1200         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
1201
1202 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1203
1204         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
1205
1206         * char-ucs.h: Use <short> for <Charset_ID>.
1207
1208         * mule-charset.h, char-1byte.h: Use <unsigned char> for
1209         <Charset_ID>.
1210
1211 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1212
1213         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1214         to 0.16.
1215
1216 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1217
1218         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
1219         variable.
1220         (Qmorohashi_daikanwa): New variable.
1221         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
1222         for `morohashi-daikanwa' attribute.
1223         (Fget_char_attribute): Likewise.
1224         (Fput_char_attribute): Likewise.
1225         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
1226         has the same value of `ideograph-daikanwa'.
1227         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
1228         (vars_of_mule_charset): Setup
1229         `Vcharacter_morohashi_daikanwa_table'.
1230
1231 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1232
1233         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
1234         attributes.
1235         (add_charset_to_list_mapper): Add `key' instead of
1236         `XCHARSET_NAME (value)' to return aliases.
1237
1238 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1239
1240         * mule-charset.c (Vcharacter_ideographic_radical_table): New
1241         variable.
1242         (Vcharacter_ideographic_strokes_table): New variable.
1243         (Qideographic_radical): New variable.
1244         (Qideographic_strokes): New variable.
1245         (Fchar_attribute_alist): Use
1246         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
1247         attribute; use `Vcharacter_ideographic_strokes_table' for
1248         `ideographic-strokes' attribute.
1249         (Fget_char_attribute): Likewise.
1250         (Fput_char_attribute): Likewise.
1251         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
1252         `ideographic-strokes'.
1253         (vars_of_mule_charset): Setup
1254         `Vcharacter_ideographic_radical_table' and
1255         `Vcharacter_ideographic_strokes_table'.
1256
1257 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1258
1259         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
1260         (Qtotal_strokes): New variable.
1261         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
1262         `total-strokes' attribute.
1263         (Fget_char_attribute): Likewise.
1264         (Fput_char_attribute): Likewise.
1265         (syms_of_mule_charset): Add new symbol `total-strokes'.
1266         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
1267
1268 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1269
1270         * mule-charset.c (Vcharacter_decomposition_table): New variable.
1271         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
1272         are found.
1273         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
1274         `->decomposition' attribute.
1275         (Fput_char_attribute): Likewise.
1276         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
1277
1278 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1279
1280         * mule-charset.c (decoding_table_check_elements): New function.
1281         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
1282
1283 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1284
1285         * mule-charset.c (Fset_charset_mapping_table): Use
1286         `put_char_ccs_code_point'.
1287
1288 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1289
1290         * mule-charset.c (decoding_table_put_char): New inline function.
1291         (put_char_ccs_code_point): Use `decoding_table_put_char'.
1292
1293 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1294
1295         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
1296         (XCHARSET_BYTE_SIZE): New macro.
1297         (decoding_table_remove_char): New inline function.
1298         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
1299         `decoding_table_remove_char'.
1300         (remove_char_ccs): Use `decoding_table_remove_char'.
1301         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
1302
1303 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1304
1305         * mule-charset.c (Vcharacter_name_table): New variable.
1306         (Qname): New variable.
1307         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
1308         attribute.
1309         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
1310         `Vcharacter_name_table' for `name' attribute.
1311         (Fremove_char_attribute): Use function `remove_char_ccs'.
1312         (put_char_ccs_code_point): New function.
1313         (remove_char_ccs): New function.
1314         (syms_of_mule_charset): Add new symbol `name'.
1315         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
1316
1317 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1318
1319         * mule-charset.c (make_byte_table): Add new argument `older'.
1320         (make_char_id_table): Likewise.
1321         (copy_char_id_table): Comment out because it is not used.
1322         (put_char_id_table): Modify for `make_byte_table'.
1323         (Fput_char_attribute): Make encoding_table as older object;
1324         inherit older bit of `Vcharacter_composition_table'.
1325         (mark_charset): Don't mark `cs->encoding_table'.
1326         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
1327         normal object; make `Vcharacter_composition_table' as an older
1328         object; delete staticpro for `Vcharacter_composition_table'; make
1329         `Vcharacter_variant_table' as a normal object.
1330
1331         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
1332         (mark_object): Don't check older object in UTF-2000.
1333
1334         * lrecord.h (struct lrecord_header): Add new member `older' in
1335         UTF-2000.
1336         (set_lheader_implementation): Setup `SLI_header->older' in
1337         UTF-2000.
1338         (set_lheader_older_implementation): New macro in UTF-2000.
1339         (OLDER_RECORD_P): New macro in UTF-2000.
1340         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
1341         (alloc_older_lcrecord): New prototype in UTF-2000.
1342         (alloc_older_lcrecord_type): New macro in UTF-2000.
1343
1344 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1345
1346         * mule-charset.c (byte_table_description): Use
1347         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
1348         (char_id_table_description): Delete bogus `, 1'.
1349         (Fget_char_attribute): Refer encoding_table of each coded-charset
1350         to get value of coded-charset attribute of a character.
1351         (Fput_char_attribute): Use `make_older_vector' instead of
1352         `make_vector'; use encoding_table of each coded-charset to store
1353         value of coded-charset attribute of a character.
1354         (Fremove_char_attribute): Use encoding_table of each coded-charset
1355         to store value of coded-charset attribute of a character.
1356         (mark_charset): Mark `cs->encoding_table'; don't mark
1357         `cs->decoding_table'.
1358         (charset_description): Add description of new member
1359         `encoding_table'.
1360         (make_charset): Initialize `encoding_table'.
1361
1362         * char-ucs.h (struct Lisp_Charset): Add new member
1363         `encoding_table'.
1364         (CHARSET_ENCODING_TABLE): New macro.
1365         (XCHARSET_ENCODING_TABLE): New macro.
1366         (charset_code_point): New implementation.
1367         (encode_char_1): Likewise.
1368
1369         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
1370         (disksave_object_finalization_1): Call finalizers of
1371         `all_older_lcrecords' in UTF-2000.
1372         (make_older_vector): New function in UTF-2000.
1373         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
1374         UTF-2000.
1375
1376         * lisp.h (make_older_vector): New prototype in UTF-2000.
1377
1378 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1379
1380         * lrecord.h (enum lrecord_type): Rename
1381         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
1382
1383         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
1384         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
1385         `get_char_code_table'.
1386
1387         * mule-charset.c (mark_char_id_table): Renamed from
1388         `mark_char_code_table'.
1389         (char_id_table_equal): Renamed from `char_code_table_equal'.
1390         (char_id_table_hash): Renamed from `char_code_table_hash'.
1391         (make_char_id_table): Renamed from `make_char_code_table'.
1392         (copy_char_id_table): Renamed from `copy_char_code_table'.
1393         (get_char_id_table): Renamed from `get_char_code_table'.
1394         (put_char_id_table): Renamed from `put_char_code_table'.
1395         (to_char_id): Renamed from `to_char_code'.
1396
1397         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
1398         `Lisp_Char_Code_Table'.
1399         (char_id_table): Renamed from `char_code_table'.
1400         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
1401         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
1402         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
1403         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
1404         (get_char_id_table): Renamed from `get_char_code_table'.
1405
1406 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1407
1408         * lrecord.h (enum lrecord_type): Rename
1409         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
1410
1411         * mule-charset.c (mark_byte_table): Renamed from
1412         `mark_char_byte_table'.
1413         (byte_table_equal): Renamed from `char_byte_table_equal'.
1414         (byte_table_hash): Renamed from `byte_table_hash'.
1415         (make_byte_table): Renamed from `make_byte_table'.
1416         (copy_byte_table): Renamed from `copy_char_byte_table'.
1417
1418         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
1419         `Lisp_Char_Byte_Table'.
1420         (byte_table): Renamed from `char_byte_table'.
1421         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
1422         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
1423         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
1424         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
1425
1426 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1427
1428         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
1429         (dfc_convert_to_internal_format): Likewise.
1430         
1431         * text-coding.c (Fcoding_system_canonical_name_p): New function.
1432         * text-coding.c (Fcoding_system_alias_p): New function.
1433         * text-coding.c (Fcoding_system_aliasee): New function.
1434         * text-coding.c (append_suffix_to_symbol): New function.
1435         * text-coding.c (dangling_coding_system_alias_p): New function.
1436         * text-coding.c (Ffind_coding_system):
1437         * text-coding.c (Fcopy_coding_system):
1438         * text-coding.c (encode_coding_no_conversion):
1439         * text-coding.c (syms_of_file_coding):
1440         * text-coding.c (vars_of_file_coding):
1441         Rewrite coding system alias code.
1442         Allow nested aliases, like symbolic links.
1443         Allow redefinition of coding system aliases.
1444         Prevent existence of dangling coding system aliases.
1445         Eliminate convert_to_external_format.
1446         Eliminate convert_to_internal_format.
1447         
1448         * text-coding.c: Change enum eol_type to eol_type_t.
1449
1450 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1451
1452         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
1453         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
1454
1455         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
1456         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
1457
1458 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1459
1460         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
1461         `ideograph-daikanwa'.
1462
1463         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
1464         (Vcharset_ucs_bmp): Likewise.
1465         (Vcharset_mojikyo): Add new extern variable definition.
1466         (Vcharset_latin_iso8859_2): Deleted because it is not used.
1467         (Vcharset_latin_iso8859_3): Likewise.
1468         (Vcharset_latin_iso8859_4): Likewise.
1469         (Vcharset_latin_iso8859_9): Likewise.
1470         (Vcharset_latin_viscii_lower): Likewise.
1471         (Vcharset_latin_viscii_upper): Likewise.
1472         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
1473         `mojikyo' code-point is used to decode.
1474         (encode_char_2): New function [to convert `mojikyo' code-point to
1475         Mojikyo font encoding].
1476         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
1477         (breakup_char_1): Likewise.
1478         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
1479
1480 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1481
1482         * text-coding.c (Fmake_coding_system): Add document about
1483         `disable-composition' property.
1484
1485 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1486
1487         * text-coding.c (Qdisable_composition): New variable; delete
1488         `Qcomposite'.
1489         (Fmake_coding_system): Add new property `disable-composite';
1490         delete property `composite'.
1491         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
1492         instead of `!CODING_SYSTEM_COMPOSITE'.
1493         (syms_of_file_coding): Add new symbol `disable-composition';
1494         delete symbol `composite'.
1495
1496         * file-coding.h (struct Lisp_Coding_System): Add
1497         `disable_composition'; delete `enable_composition'.
1498         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
1499         `CODING_SYSTEM_COMPOSITE'.
1500         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
1501         `XCODING_SYSTEM_COMPOSITE'.
1502
1503 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1504
1505         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1506         to 0.15.
1507
1508 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1509
1510         * text-coding.c (Qcomposite): New variable.
1511         (Fmake_coding_system): Add new property `composite'.
1512         (struct decoding_stream): Add `combined_char_count',
1513         `combined_chars' and `combining_table' in UTF-2000.
1514         (COMPOSE_FLUSH_CHARS): New macro.
1515         (COMPOSE_ADD_CHAR): New macro.
1516         (reset_decoding_stream): Reset `str->combined_char_count' and
1517         `str->combining_table' in UTF-2000.
1518         (decode_coding_iso2022): Modify for character-decomposition.
1519         (syms_of_file_coding): Add new symbol `composite'.
1520
1521 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1522
1523         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
1524         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
1525         of `Vcharacter_composition_table' if `->decomposition' property
1526         has only 1 element.
1527         (Qlatin_tcvn5712): New variable.
1528         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
1529         (complex_vars_of_mule_charset): Add new coded-charset
1530         `latin-tcvn5712'.
1531
1532         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
1533
1534 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1535
1536         * file-coding.h (struct Lisp_Coding_System): Add
1537         `enable_composition'.
1538         (CODING_SYSTEM_COMPOSITE): New macro.
1539         (XCODING_SYSTEM_COMPOSITE): New macro.
1540
1541 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
1542
1543         * mule-canna.c (c2mu): Fix problem with UTF-2000.
1544
1545 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
1546
1547         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
1548         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
1549
1550 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
1551
1552         * mule-charset.c (Vcharset_mojikyo): New variable.
1553         (Fdefine_char): Don't use coded-charset which does not have
1554         non-builtin character range to allocate character-id.
1555         (Qmojikyo): New variable.
1556         (syms_of_mule_charset): Add new symbol `mojikyo'.
1557         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
1558
1559         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
1560         (LEADING_BYTE_MOJIKYO): New macro.
1561         (MIN_CHAR_MOJIKYO): New macro.
1562         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
1563         (MAX_CHAR_MOJIKYO): New macro.
1564
1565 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
1566
1567         * mule-charset.c (remove_char_attribute): Fixed.
1568
1569 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
1570
1571         * mule-charset.c (remove_char_attribute): New function.
1572         (Fremove_char_attribute): New function.
1573         (encode_builtin_char_1): Comment out builtin-support for
1574         greek-iso8859-7 and cyrillic-iso8859-5.
1575         (Fdecode_char): Check `code' is an integer.
1576         (syms_of_mule_charset): Add `remove-char-attribute'.
1577         (MIN_CHAR_GREEK): Deleted.
1578         (MAX_CHAR_GREEK): Likewise.
1579         (MIN_CHAR_CYRILLIC): Likewise.
1580         (MAX_CHAR_CYRILLIC): Likewise.
1581         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
1582         MAX_CHAR_GREEK for `greek-iso8859-7'.
1583
1584         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
1585         (MAX_CHAR_GREEK): Likewise.
1586         (MIN_CHAR_CYRILLIC): Likewise.
1587         (MAX_CHAR_CYRILLIC): Likewise.
1588
1589 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
1590
1591         * mule-charset.c (Fdefine_char): Fix problem when new code-point
1592         format is used without `ucs' property.
1593         (Fdecode_char): Fix problem with GR representation.
1594         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
1595         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
1596
1597 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
1598
1599         * mule-charset.c (make_builtin_char): New function.
1600         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
1601         (Fset_charset_mapping_table): Modify for new representation of
1602         code-point.
1603         (Fdecode_char): New function.
1604         (syms_of_mule_charset): Add new builtin function `decode-char' in
1605         UTF-2000.
1606
1607         * char-ucs.h (make_builtin_char): New prototype.
1608         (DECODE_CHAR): New inline function.
1609         (MAKE_CHAR): Use `DECODE_CHAR'.
1610
1611 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
1612
1613         * text-coding.c (parse_charset_conversion_specs): Use
1614         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
1615         `XCHARSET_TYPE'.
1616         (iso2022_designate): Likewise.
1617
1618         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
1619         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
1620
1621         * mule-charset.c (Vcharset_ucs): New variable.
1622         (print_charset): Change design; use `CHARSET_CHARS' and
1623         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
1624         (make_charset): Change signature to specify `chars' and
1625         `dimension' instead of `type'.
1626         (range_charset_code_point): Modify for 256^n-set.
1627         (encode_builtin_char_1): Encode as `ucs' in default.
1628         (Fmake_charset): Modify for `make_charset'.
1629         (Fmake_reverse_direction_charset): Likewise.
1630         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
1631         UTF-2000.
1632         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
1633         for `make_charset'.
1634
1635         * char-ucs.h (Vcharset_ucs): New variable.
1636         (LEADING_BYTE_UCS): New macro.
1637         (struct Lisp_Charset): Delete `type'; change type of `dimension'
1638         and `chars' to `unsigned short' from `unsigned int'.
1639         (CHARSET_TYPE): Deleted.
1640         (XCHARSET_TYPE): Deleted.
1641
1642 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
1643
1644         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
1645
1646         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
1647         (ENCODE_CHAR): New macro.
1648
1649 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
1650
1651         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1652         to 0.14 (Kawachi-Katakami).
1653
1654 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
1655
1656         * text-coding.c (char_encode_shift_jis): Modify for
1657         `charset_code_point'.
1658         (char_encode_iso2022): Likewise.
1659
1660         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
1661         (integer) instead of list of <Lisp_Object>s (integers) as the
1662         format of code-point of a coded-charset.
1663         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
1664         (encode_builtin_char_1): New function; delete
1665         `split_builtin_char'.
1666         (charset_code_point): Return <int> instead of <Lisp_Object>.
1667         (Fsplit_char): Don't use `SPLIT_CHAR'.
1668
1669         * char-ucs.h (encode_builtin_char_1): New prototype; delete
1670         prototype for `split_builtin_char'.
1671         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
1672         (charset_code_point): Likewise.
1673         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
1674         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
1675
1676 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
1677
1678         * mule-charset.c (complex_vars_of_mule_charset): Don't define
1679         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
1680
1681 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
1682
1683         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
1684
1685         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
1686         (MAX_CHAR_OBS_94x94): Deleted.
1687
1688 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
1689
1690         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
1691
1692         * char-ucs.h (MAX_CHAR_BMP): New macro.
1693
1694 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
1695
1696         * text-coding.c: Sync with r21-2-24.
1697
1698 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
1699
1700         * file-coding.c: Modify for UTF-2000.
1701
1702 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
1703
1704         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1705         to 0.13 (Takaida).
1706
1707 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
1708
1709         * mule-charset.c (split_builtin_char): Delete builtin support for
1710         `katakana-jisx0201'.
1711         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
1712         BMP area in builtin representation.
1713
1714         * char-ucs.h (MAKE_CHAR): Delete builtin support for
1715         `Vcharset_katakana_jisx0201'.
1716
1717 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
1718
1719         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
1720         (Qisolated): New variable.
1721         (Qinitial): New variable.
1722         (Qmedial): New variable.
1723         (Qfinal): New variable.
1724         (Qvertical): New variable.
1725         (Qsmall): New variable.
1726         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
1727         `Qvertical' and `Qsmall'.
1728         (Qmojikyo_pj_[1 .. 21]): New variable.
1729         (syms_of_mule_charset): Add new symbols `isolated', `initial',
1730         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
1731         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
1732         .. 21]'.
1733
1734 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
1735
1736         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
1737         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
1738         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
1739
1740 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
1741
1742         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
1743         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
1744         BMP.
1745         (Qjapanese_jisx0208_1990): New variable.
1746         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
1747         (complex_vars_of_mule_charset): Add new coded-charset
1748         `japanese-jisx0208-1990'.
1749
1750         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
1751         (MIN_CHAR_JIS_X0208_1990): New macro.
1752         (MAX_CHAR_JIS_X0208_1990): New macro.
1753
1754 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1755
1756         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
1757         coded-charset is not found.
1758
1759 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1760
1761         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
1762         (Fdefine_char): Use `Fmake_char'.
1763
1764 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1765
1766         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
1767         (Vcharset_hiragana_jisx0208): Deleted.
1768         (Vcharset_katakana_jisx0208): Deleted.
1769         (Qideograph_daikanwa): New variable.
1770         (Qhiragana_jisx0208): Deleted.
1771         (Qkatakana_jisx0208): Deleted.
1772         (split_builtin_char): Split `ideograph-daikanwa'.
1773         (Fsplit_char): New implementation for UTF-2000.
1774         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
1775         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
1776         (complex_vars_of_mule_charset): Add new coded-charset
1777         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
1778         `katakana-jisx0208'.
1779
1780         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
1781         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
1782         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
1783         (MIN_CHAR_DAIKANWA): New macro.
1784         (MAX_CHAR_DAIKANWA): New macro.
1785
1786 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1787
1788         * data.c (Fstring_to_number): Don't recognize floating point if
1789         base is not 10.
1790
1791 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1792
1793         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
1794
1795 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1796
1797         * mule-charset.c (Qsquare): New variable.
1798         (to_char_code): Add `Qsquare'.
1799         (syms_of_mule_charset): Add new symbol `square'.
1800
1801 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1802
1803         * mule-charset.c (Qcircle): New variable.
1804         (to_char_code): Add `Qcircle'.
1805         (syms_of_mule_charset): Add new symbol `circle'.
1806
1807 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1808
1809         * mule-charset.c (Qfont): New variable.
1810         (to_char_code): Add `Qfont'.
1811         (syms_of_mule_charset): Add new symbol `font'.
1812
1813 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1814
1815         * mule-charset.c (Qsub): New variable.
1816         (to_char_code): Add `Qsub'.
1817         (syms_of_mule_charset): Add new symbol `sub'.
1818
1819 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1820
1821         * mule-charset.c (Fput_char_attribute): Convert each element of
1822         VALUE to GL position if ATTRIBUTE is a GR-set,
1823
1824 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1825
1826         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
1827         coded-charset is a GR-set.
1828
1829 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1830
1831         * mule-charset.c (Fput_char_attribute): Check each element of
1832         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
1833
1834 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1835
1836         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
1837         UTF-2000.
1838         (Qethiopic_ucs): New variable in UTF-2000.
1839         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
1840         (complex_vars_of_mule_charset): Add new coded-charset
1841         `ethiopic-ucs' in UTF-2000.
1842
1843         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
1844         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
1845         9)'.
1846         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
1847         10)'.
1848         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
1849
1850 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
1851
1852         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
1853         `ascii'.
1854
1855 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1856
1857         * mule-charset.c (Vcharacter_variant_table): New variable.
1858         (Q_ucs): New variable.
1859         (Fchar_variants): New function.
1860         (Fput_char_attribute): Register `->ucs' value to
1861         `Vcharacter_variant_table'.
1862         (syms_of_mule_charset): Add new function `char-variants' and new
1863         symbol `->ucs'.
1864         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
1865
1866 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1867
1868         * mule-charset.c (get_char_code_table): Allow negative character
1869         code.
1870         (put_char_code_table): Likewise.
1871         (Vcharacter_composition_table): New variable.
1872         (Q_decomposition): New variable.
1873         (Qwide): New variable.
1874         (Qnarrow): New variable.
1875         (Qcompat): New variable.
1876         (QnoBreak): New variable.
1877         (Qsuper): New variable.
1878         (Qfraction): New variable.
1879         (to_char_code): New function.
1880         (Fget_composite_char): New function.
1881         (Fput_char_attribute): Register `->decomposition' value to
1882         `Vcharacter_composition_table'.
1883         (syms_of_mule_charset): Add new function `get-composite-char', new
1884         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
1885         `super' and `fraction'.
1886         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
1887
1888 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1889
1890         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
1891         character; copy the return value.
1892
1893 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
1894
1895         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
1896
1897         * mule-charset.c (range_charset_code_point): Must use make_int.
1898         (split_builtin_char): New function.
1899
1900 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
1901
1902         * mule-charset.c (char_byte_table): Change name from
1903         "char-code-table" to "char-byte-table".
1904         (mark_char_code_table): New function.
1905         (char_code_table_equal): New function.
1906         (char_code_table_hash): New function.
1907         (char_code_table_description): New constant.
1908         (char_code_table): New type.
1909         (make_char_code_table): New function.
1910         (copy_char_code_table): New function.
1911         (get_char_code_table): Modify for `char_code_table' type.
1912         (put_char_code_table): Likewise.
1913         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
1914         (Kashiwara).
1915
1916         * char-ucs.h (char_code_table): New type.
1917         (XCHAR_CODE_TABLE): New macro.
1918         (XSETCHAR_CODE_TABLE): New macro.
1919         (CHAR_CODE_TABLE_P): New macro.
1920         (GC_CHAR_CODE_TABLE_P): New macro.
1921         (struct Lisp_Char_Code_Table): New structure.
1922
1923 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
1924
1925         * mule-charset.c (Fmake_charset): Setup byte_offset for
1926         {94|96}^n-set.
1927
1928 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1929
1930         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
1931         character.
1932
1933 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
1934
1935         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
1936         is found.
1937
1938 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
1939
1940         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
1941         charset, it is regarded as a charset.
1942         (put_char_attribute): New function in UTF-2000.
1943         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
1944         charset, mapping-table of the charset is modified.
1945         (Fdefine_char): New function in UTF-2000.
1946         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
1947         `Fput_char_attribute'.
1948         (syms_of_mule_charset): Add new function `define-char' and new
1949         symbol `ucs' in UTF-2000.
1950         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
1951
1952 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
1953
1954         * mule-charset.c (Fcharset_name): Define `byte_offset' in
1955         non-UTF-2000 configuration.
1956
1957 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
1958
1959         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
1960         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
1961
1962         * mule-charset.c (mark_charset): `cs->encoding_table' has been
1963         deleted.
1964         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
1965         (Fset_charset_mapping_table): Likewise.
1966
1967         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
1968         (CHARSET_ENCODING_TABLE): Delete.
1969         (XCHARSET_ENCODING_TABLE): Delete.
1970         (charset_code_point): New interface.
1971
1972 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
1973
1974         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
1975         instead of `charset_get_byte1' and `charset_get_byte2'.
1976
1977         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
1978         (charset_get_byte2): Deleted.
1979
1980 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
1981
1982         * char-ucs.h (SPLIT_CHAR): New inline function.
1983         (breakup_char_1): Use `SPLIT_CHAR'.
1984
1985         * mule-charset.c (range_charset_code_point): New function.
1986         (charset_code_point): New function.
1987
1988         * char-ucs.h (range_charset_code_point): New interface.
1989         (breakup_char_1): Use `range_charset_code_point'.
1990
1991 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
1992
1993         * mule-charset.c (Fmake_charset): Delete unused local variable
1994         `code_offset'.
1995
1996         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
1997         (breakup_char_1): Find a charset and code-point in
1998         `Vcharacter_attribute_table'.
1999
2000 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2001
2002         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2003         to 0.10 (Yao).
2004
2005 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
2006
2007         * mule-charset.c (Vcharacter_attribute_table): New variable.
2008         (Fchar_attribute_alist): New function.
2009         (Fget_char_attribute): New function.
2010         (Fput_char_attribute): New function.
2011         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
2012         too.
2013         (syms_of_mule_charset): Add new function `char-attribute-alist',
2014         `get-char-attribute' and `put-char-attribute'.
2015         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
2016
2017 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
2018
2019         * mule-charset.c (Fmake_charset): Just use
2020         `get_unallocated_leading_byte'.
2021
2022         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
2023         sets; don't use final-byte based number for private sets.
2024
2025 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2026
2027         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
2028         integer.
2029
2030 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2031
2032         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2033         to 0.9.
2034
2035 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2036
2037         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
2038         of `CHAR_LEADING_BYTE' in UTF-2000.
2039
2040         * insdel.c (find_charsets_in_bufbyte_string): Use
2041         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2042         (find_charsets_in_emchar_string): Likewise.
2043
2044         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
2045         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2046
2047         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
2048         (CHAR_CHARSET_ID): New macro.
2049
2050 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2051
2052         * chartab.c (get_char_table): Don't use type `Charset_ID' for
2053         charset-id - MIN_LEADING_BYTE.
2054         (put_char_table): Likewise.
2055
2056 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2057
2058         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
2059         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
2060         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
2061         (CHARSET_ID_OFFSET): New macro.
2062         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
2063         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
2064         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
2065         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2066         4).
2067         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2068         5).
2069         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
2070         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
2071         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
2072         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
2073         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
2074
2075 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2076
2077         * mule-charset.c (next_allocated_leading_byte): New variable in
2078         UTF-2000.
2079         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
2080         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
2081         (get_unallocated_leading_byte): Simply use
2082         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
2083         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
2084         UTF-2000.
2085
2086         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
2087         (MAX_LEADING_BYTE_PRIVATE): New macro.
2088         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
2089         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
2090
2091 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2092
2093         * mule-charset.c (Fmake_charset): Allocate final-byte based
2094         charset-id for 94-set, 96-set and 94x94-set.
2095
2096 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2097
2098         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
2099         ambiguous `else'.
2100         (Fmake_charset): Likewise.
2101         (complex_vars_of_mule_charset): Modify the font registry of
2102         `ucs-bmp' not to match `Ethiopic-Unicode'.
2103
2104 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2105
2106         * mule-charset.c (complex_vars_of_mule_charset): Add font
2107         registory of `ucs-bmp'.
2108
2109 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2110
2111         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
2112         coded-charsets in `default-coded-charset-priority-list' when
2113         breaking up a character.
2114
2115         * mule-charset.c (Vcharset_latin_viscii): New variable.
2116         (Qlatin_viscii): New variable.
2117         (make_charset): Don't use `decoding_table'.
2118         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
2119         byte_offset.
2120         (Fset_charset_mapping_table): New implementation.
2121         (syms_of_mule_charset): Add new symbol `latin-viscii'.
2122         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
2123         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
2124         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
2125         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
2126         charset `latin_viscii'.
2127
2128         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
2129         (CHARSET_TYPE_94X94): Change to 1 from 2.
2130         (CHARSET_TYPE_96): Change to 2 from 1.
2131         (CHARSET_TYPE_128): New macro.
2132         (CHARSET_TYPE_128X128): Change to 5 from 4.
2133         (CHARSET_TYPE_256): New macro.
2134         (CHARSET_TYPE_256X256): Change to 7 from 5.
2135         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
2136
2137 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2138
2139         * text-coding.c (char_encode_shift_jis): Refer
2140         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
2141         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
2142
2143         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
2144         (char_byte_table_equal): New function in UTF-2000.
2145         (char_byte_table_hash): New function in UTF-2000.
2146         (char_byte_table_description): New constant in UTF-2000.
2147         (char_byte_table): New type in UTF-2000.
2148         (make_char_byte_table): New function in UTF-2000.
2149         (copy_char_byte_table): New function in UTF-2000.
2150         (make_char_code_table): New macro in UTF-2000.
2151         (get_char_code_table): New function in UTF-2000.
2152         (put_char_code_table): New function in UTF-2000.
2153         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2154         (charset_description): Add setting in UTF-2000.
2155         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
2156         `CHARSET_TO_BYTE1_TABLE(cs)'.
2157         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
2158         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
2159         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
2160         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
2161         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
2162         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
2163         `CHARSET_TO_BYTE2_TABLE(cs)'.
2164
2165         * char-ucs.h (char_byte_table): New type.
2166         (XCHAR_BYTE_TABLE): New macro.
2167         (XSETCHAR_BYTE_TABLE): New macro.
2168         (CHAR_BYTE_TABLE_P): New macro.
2169         (GC_CHAR_BYTE_TABLE_P): New macro.
2170         (struct Lisp_Char_Byte_Table): New structure.
2171         (get_char_code_table): New interface.
2172         (Emchar_to_byte_table): Deleted.
2173         (get_byte_from_character_table): Deleted.
2174         (struct Lisp_Charset): Add `encoding_table'; delete
2175         `to_byte1_table' and `to_byte2_table'.
2176         (CHARSET_ENCODING_TABLE): New macro.
2177         (CHARSET_TO_BYTE1_TABLE): Deleted.
2178         (CHARSET_TO_BYTE2_TABLE): Deleted.
2179         (XCHARSET_ENCODING_TABLE): New macro.
2180         (XCHARSET_TO_BYTE1_TABLE): Deleted.
2181         (XCHARSET_TO_BYTE2_TABLE): Deleted.
2182
2183 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2184
2185         * mule-charset.c (syms_of_mule_charset): Delete charset alias
2186         `vietnamese-viscii-*'.
2187
2188 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2189
2190         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
2191         (Qvietnamese_viscii_upper): New variable.
2192         (Fdefine_charset_alias): New function.
2193         (syms_of_mule_charset): Add new function `define-charset-alias'.
2194         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
2195         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
2196         `latin-viscii-*'.
2197
2198 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
2199
2200         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
2201         (MAX_CHAR_OBS_94x94): New macro.
2202         (breakup_char_1): Support obsolete XEmacs-UCS private code space
2203         for 94x94 sets.
2204
2205         * mule-charset.c (put_byte_from_character_table): Change unit size
2206         from 128 to 256.
2207         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
2208         not defined.
2209         (Fmake_reverse_direction_charset): Modify dummy argument of
2210         `make_charset' for non-UTF-2000 environment.
2211
2212 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2213
2214         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
2215
2216         * mule-charset.c (destroy_byte_from_character_table): New macro.
2217         (latin_jisx0201_to_ucs): Deleted.
2218         (latin_iso8859_2_to_ucs): Deleted.
2219         (latin_iso8859_3_to_ucs): Deleted.
2220         (latin_iso8859_4_to_ucs): Deleted.
2221         (latin_iso8859_9_to_ucs): Deleted.
2222         (latin_viscii_lower_to_ucs): Deleted.
2223         (latin_viscii_upper_to_ucs): Deleted.
2224         (mark_charset): Mark `cs->decoding_table'.
2225         (Fcharset_mapping_table): Fix DOC-string.
2226         (Fset_charset_mapping_table): New function.
2227         (syms_of_mule_charset): Add nwe function
2228         `set-charset-mapping-table'.
2229         (complex_vars_of_mule_charset): Don't setup and use
2230         `latin_*_to_ucs'.
2231
2232 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2233
2234         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
2235         charset.
2236
2237 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2238
2239         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
2240         (Vcharset_katakana_jisx0208): New variable.
2241         (Qhiragana_jisx0208): New variable.
2242         (Qkatakana_jisx0208): New variable.
2243         (make_charset): Add new argument `byte_offset'.
2244         (charset_get_byte1): Modify for new coded-charset definition; use
2245         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
2246         `XCHARSET_BYTE_OFFSET'.
2247         (Fmake_charset): Modify for `make_charset'.
2248         (Fmake_reverse_direction_charset): Likewise.
2249         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
2250         `katakana-jisx0208'.
2251         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
2252         `.'  in font registry of charset `katakana-jisx0201',
2253         `latin-jisx0201', `vietnamese-viscii-lower' and
2254         `vietnamese-viscii-upper'; modify DOC-string of charset
2255         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
2256         registry of charset `japanese-jisx0208' not to use font for JIS
2257         X0208:1990; add new charset `hiragana-jisx0208' and
2258         `katakana-jisx0208'.
2259
2260         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
2261         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
2262         (struct Lisp_Charset): Add `byte_offset'.
2263         (CHARSET_BYTE_OFFSET): New macro.
2264         (XCHARSET_UCS_MIN): New macro.
2265         (XCHARSET_UCS_MAX): New macro.
2266         (XCHARSET_CODE_OFFSET): New macro.
2267         (XCHARSET_BYTE_OFFSET): New macro.
2268         (MIN_CHAR_HIRAGANA): New macro.
2269         (MAX_CHAR_HIRAGANA): New macro.
2270         (MIN_CHAR_KATAKANA): New macro.
2271         (MAX_CHAR_KATAKANA): New macro.
2272         (MAKE_CHAR): Modify for new coded-charset definition; use
2273         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
2274         `XCHARSET_BYTE_OFFSET'.
2275
2276 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2277
2278         * mule-charset.c (CHAR96): Deleted.
2279         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
2280         <Lisp_Object>.
2281         (latin_iso8859_2_to_ucs): Likewise.
2282         (latin_iso8859_3_to_ucs): Likewise.
2283         (latin_iso8859_4_to_ucs): Likewise.
2284         (latin_iso8859_9_to_ucs): Likewise.
2285         (latin_viscii_lower_to_ucs): Likewise.
2286         (latin_viscii_upper_to_ucs): Likewise.
2287         (latin_tcvn5712_to_ucs): Commented out.
2288         (make_charset): Change type of argument `decoding_table' from
2289         <Emchar*> to <Lisp_Object> [vector of characters].
2290         (Fmake_charset): Modify for `make_charset'.
2291         (Fmake_reverse_direction_charset): Likewise.
2292         (Fcharset_mapping_table): New function in UTF-2000.
2293         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
2294         UTF-2000.
2295         (complex_vars_of_mule_charset): Modify for type change of
2296         `*_to_ucs'; modify for `make_charset'.
2297
2298         * char-ucs.h (struct Lisp_Charset): Change type of
2299         `decoding_table' from <Emchar*> to <Lisp_Object>.
2300         (MAKE_CHAR): Modify for new specification of `decoding_table'.
2301
2302 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
2303
2304         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
2305         error with non-UTF-2000-Mule.
2306
2307 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
2308
2309         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
2310         in lisp again].
2311         (Vcharset_chinese_cns11643_4): Likewise.
2312         (Vcharset_chinese_cns11643_5): Likewise.
2313         (Vcharset_chinese_cns11643_6): Likewise.
2314         (Vcharset_chinese_cns11643_7): Likewise.
2315         (Qchinese_cns11643_3): Likewise.
2316         (Qchinese_cns11643_4): Likewise.
2317         (Qchinese_cns11643_5): Likewise.
2318         (Qchinese_cns11643_6): Likewise.
2319         (Qchinese_cns11643_7): Likewise.
2320         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
2321         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
2322         and `chinese-cns11643-7' to lisp/mule/chinese.el.
2323         (complex_vars_of_mule_charset): Likewise.
2324
2325 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2326
2327         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
2328         96-set.
2329         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
2330         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
2331
2332 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
2333
2334         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
2335         0xFF60.
2336         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
2337         (breakup_char_1): Likewise.
2338
2339         * text-coding.c (char_encode_iso2022): Keep designated charsets if
2340         one of them includes the specified character.
2341
2342 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
2343
2344         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
2345
2346 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
2347
2348         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
2349
2350 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
2351
2352         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
2353         definition for non-UTF-2000 Mule.
2354         (latin_iso8859_3_to_ucs): Likewise.
2355         (latin_iso8859_4_to_ucs): Likewise.
2356         (latin_iso8859_9_to_ucs): Likewise.
2357         (latin_jisx0201_to_ucs): Likewise.
2358         (MIN_CHAR_THAI): Likewise.
2359         (MAX_CHAR_THAI): Likewise.
2360         (MIN_CHAR_GREEK): Likewise.
2361         (MAX_CHAR_GREEK): Likewise.
2362         (MIN_CHAR_HEBREW): Likewise.
2363         (MAX_CHAR_HEBREW): Likewise.
2364         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
2365         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
2366         (MIN_CHAR_CYRILLIC): Likewise.
2367         (MAX_CHAR_CYRILLIC): Likewise.
2368
2369 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
2370
2371         * char-ucs.h (breakup_char_1): Use
2372         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
2373         thai-tis620 and katakana-jisx0201 area.
2374
2375 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2376
2377         * char-ucs.h (breakup_char_1): Use
2378         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
2379         area.
2380
2381         * text-coding.c (reset_encoding_stream): Fixed.
2382         (char_encode_ucs4): Delete `& 255'.
2383
2384         * char-ucs.h (breakup_char_1): Use
2385         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
2386
2387 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2388
2389         * file-coding.c (Fmake_coding_system): Don't set up
2390         `codesys->fixed.size'.
2391         (encode_coding_no_conversion): Don't refer
2392         `str->codesys->fixed.size'.
2393
2394 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2395
2396         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
2397         (latin_a_char_to_byte1): Deleted.
2398         (latin_a_char_to_byte2): Deleted.
2399
2400 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2401
2402         * mule-charset.c (make_charset): Add new argument `ucs_min',
2403         `ucs_max' and `code_offset'.
2404         (charset_get_byte1): New implementation [delete specific charset
2405         depended implementations].
2406         (Fmake_charset): Modify for `make_charset'.
2407         (Fmake_reverse_direction_charset): Likewise.
2408         (complex_vars_of_mule_charset): Likewise.
2409
2410         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
2411         `code_offset'.
2412         (CHARSET_UCS_MIN): New macro.
2413         (CHARSET_UCS_MAX): New macro.
2414         (CHARSET_CODE_OFFSET): New macro.
2415         (MAKE_CHAR): Delete charset depended definitions [except
2416         katakana-jisx0201].
2417
2418 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
2419
2420         * char-ucs.h (breakup_char_1): Use
2421         `Vdefault_coded_charset_priority_list' for C0-Controls,
2422         Basic-Latin, C1-Controls and Latin-1-Supplement area.
2423
2424 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2425
2426         * char-ucs.h (charset_get_byte1): New function.
2427         (XCHARSET_GET_BYTE1): Deleted.
2428         (charset_get_byte2): New function.
2429         (XCHARSET_GET_BYTE2): Deleted.
2430         (Vdefault_coded_charset_priority_list): New external variable.
2431         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
2432         `Vdefault_preferred_coded_charset_list'.
2433
2434         * mule-charset.c (charset_get_byte1): New function.
2435         (charset_get_byte2): New function.
2436         (Vdefault_coded_charset_priority_list): New variable.
2437         (vars_of_mule_charset): Add new variable
2438         `default-coded-charset-priority-list'.
2439
2440 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2441
2442         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
2443         (XCHARSET_GET_BYTE2): New inline function.
2444         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
2445         `XCHARSET_GET_BYTE2'.
2446
2447 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2448
2449         * mule-charset.c (make_charset): Initialize
2450         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
2451         NULL if table is not defined.
2452
2453 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2454
2455         * text-coding.c (char_encode_shift_jis): Use
2456         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
2457         `ucs_to_latin_jisx0201'.
2458
2459         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
2460         (ucs_to_latin_iso8859_2): Deleted.
2461         (ucs_to_latin_iso8859_3): Deleted.
2462         (ucs_to_latin_iso8859_4): Deleted.
2463         (ucs_to_latin_iso8859_9): Deleted.
2464         (ucs_to_latin_viscii_lower): Deleted.
2465         (ucs_to_latin_viscii_upper): Deleted.
2466         (ucs_to_latin_tcvn5712): Deleted.
2467         (make_charset): Add new argument `decoding_table'; set up
2468         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
2469         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
2470         `decoding_table' is defined in UTF-2000.
2471         (Fmake_charset): Modify for `make_charset'.
2472         (Fmake_reverse_direction_charset): Likewise.
2473         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
2474         and `GENERATE_96_SET'.
2475
2476         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
2477         (ucs_to_latin_jisx0201): Deleted.
2478         (latin_iso8859_2_to_ucs): Deleted.
2479         (ucs_to_latin_iso8859_2): Deleted.
2480         (latin_iso8859_3_to_ucs): Deleted.
2481         (ucs_to_latin_iso8859_3): Deleted.
2482         (latin_iso8859_4_to_ucs): Deleted.
2483         (ucs_to_latin_iso8859_4): Deleted.
2484         (latin_iso8859_9_to_ucs): Deleted.
2485         (ucs_to_latin_iso8859_9): Deleted.
2486         (latin_viscii_lower_to_ucs): Deleted.
2487         (ucs_to_latin_viscii_lower): Deleted.
2488         (latin_viscii_upper_to_ucs): Deleted.
2489         (ucs_to_latin_viscii_upper): Deleted.
2490         (struct Lisp_Charset): Renamed `encoding_table' to
2491         `to_byte1_table'; add `to_byte2_table'.
2492         (CHARSET_DECODING_TABLE): New macro.
2493         (CHARSET_TO_BYTE1_TABLE): New macro.
2494         (CHARSET_TO_BYTE2_TABLE): New macro.
2495         (XCHARSET_DECODING_TABLE): New macro.
2496         (XCHARSET_TO_BYTE1_TABLE): New macro.
2497         (XCHARSET_TO_BYTE2_TABLE): New macro.
2498         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
2499         tables.
2500         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
2501         don't use `ucs_to_*' tables.
2502
2503 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2504
2505         * text-coding.c (Fmake_coding_system): Don't set up
2506         `codesys->fixed.size'.
2507         (encode_coding_no_conversion): Use `if' instead of `switch'.
2508
2509         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
2510
2511 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2512
2513         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
2514         (Fmake_charset): Modify for `make_charset'.
2515         (Fmake_reverse_direction_charset): Likewise.
2516         (complex_vars_of_mule_charset): Likewise.
2517
2518 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2519
2520         * text-coding.c (char_encode_shift_jis): Use table
2521         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
2522
2523 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2524
2525         * text-coding.c (text_encode_generic): Use `if' instead of
2526         `switch'.
2527         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
2528         decode JIS-Latin.
2529
2530 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2531
2532         * text-coding.c (encode_coding_sjis): Deleted.
2533         (char_encode_shift_jis): New function.
2534         (char_finish_shift_jis): New function.
2535         (reset_encoding_stream): Set up `encode_char' and `finish' for
2536         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
2537         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
2538         (char_encode_utf8): Treat `eol_type'.
2539
2540 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2541
2542         * file-coding.c (decode_coding_iso2022): Use
2543         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
2544
2545 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2546
2547         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2548         to 0.7 (Hirano).
2549
2550 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2551
2552         * char-lb.h (CHAR_COLUMNS): New macro.
2553
2554 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2555
2556         * text-coding.c (char_encode_ucs4): New function.
2557         (char_finish_ucs4): New function.
2558         (encode_coding_ucs4): Deleted.
2559         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
2560         (text_encode_generic): Delete local variable `charset' and `half'.
2561         (ucs_to_mule_table): Deleted.
2562         (mule_to_ucs_table): Deleted.
2563         (Fset_ucs_char): Deleted.
2564         (ucs_to_char): Deleted.
2565         (Fucs_char): Deleted.
2566         (Fset_char_ucs): Deleted.
2567         (Fchar_ucs): Deleted.
2568         (decode_ucs4): Deleted.
2569         (mule_char_to_ucs4): Deleted.
2570         (encode_ucs4): Deleted.
2571         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
2572         (decode_coding_utf8): Likewise.
2573         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
2574         (char_encode_iso2022): Fixed.
2575         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
2576         `Fset_char_ucs' and `Fchar_ucs'.
2577         (complex_vars_of_file_coding): Don't initialize
2578         `ucs_to_mule_table'.
2579
2580         * objects-tty.c (tty_initialize_font_instance): Don't use
2581         `XCHARSET_COLUMNS'.
2582
2583         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
2584         UTF-2000.
2585
2586         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
2587         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
2588
2589         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
2590         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
2591         (emchar_string_displayed_columns): Likewise.
2592
2593         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
2594         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
2595         (string_column_at_point): Likewise.
2596         (Fmove_to_column): Likewise.
2597
2598         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
2599         `encoding_table' and `decoding_table'.
2600         (CHARSET_REP_BYTES): Deleted.
2601         (XCHARSET_REP_BYTES): Deleted.
2602         (XCHARSET_COLUMNS): Deleted.
2603         (CHAR_COLUMNS): New macro.
2604         (lookup_composite_char): Deleted unconditionally.
2605         (composite_char_string): Likewise.
2606
2607 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2608
2609         * char-ucs.h (Emchar_to_byte_table): New type.
2610         (get_byte_from_character_table): New function interface.
2611         (Vcharset_latin_jisx0201): New variable.
2612         (latin_jisx0201_to_ucs): New variable.
2613         (ucs_to_latin_jisx0201): New variable.
2614         (Vcharset_latin_iso8859_2): New variable.
2615         (latin_iso8859_2_to_ucs): New variable.
2616         (ucs_to_latin_iso8859_2): New variable.
2617         (Vcharset_latin_iso8859_3): New variable.
2618         (latin_iso8859_3_to_ucs): New variable.
2619         (ucs_to_latin_iso8859_3): New variable.
2620         (Vcharset_latin_iso8859_4): New variable.
2621         (latin_iso8859_4_to_ucs): New variable.
2622         (ucs_to_latin_iso8859_4): New variable.
2623         (Vcharset_latin_iso8859_9): New variable.
2624         (latin_iso8859_9_to_ucs): New variable.
2625         (ucs_to_latin_iso8859_9): New variable.
2626         (Vcharset_latin_viscii_lower): New variable.
2627         (latin_viscii_lower_to_ucs): New variable.
2628         (ucs_to_latin_viscii_lower): New variable.
2629         (Vcharset_latin_viscii_upper): New variable.
2630         (latin_viscii_upper_to_ucs): New variable.
2631         (ucs_to_latin_viscii_upper): New variable.
2632         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
2633         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
2634         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
2635         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
2636         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
2637         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
2638         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
2639         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
2640         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
2641         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
2642
2643         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
2644         (Vcharset_latin_viscii_upper): New variable.
2645         (make_byte_from_character_table): New function.
2646         (put_byte_from_character_table): New function.
2647         (get_byte_from_character_table): New function.
2648         (CHAR96): New macro.
2649         (ucs_to_latin_jisx0201): New variable.
2650         (latin_jisx0201_to_ucs): New variable.
2651         (ucs_to_latin_iso8859_2): New variable.
2652         (latin_iso8859_2_to_ucs): New variable.
2653         (ucs_to_latin_iso8859_3): New variable.
2654         (latin_iso8859_3_to_ucs): New variable.
2655         (ucs_to_latin_iso8859_4): New variable.
2656         (latin_iso8859_4_to_ucs): New variable.
2657         (ucs_to_latin_iso8859_9): New variable.
2658         (latin_iso8859_9_to_ucs): New variable.
2659         (ucs_to_latin_viscii_lower): New variable.
2660         (latin_viscii_lower_to_ucs): New variable.
2661         (ucs_to_latin_viscii_upper): New variable.
2662         (latin_viscii_upper_to_ucs): New variable.
2663         (ucs_to_latin_tcvn5712): New variable.
2664         (latin_tcvn5712_to_ucs): New variable.
2665         (Qlatin_viscii_lower): New variable.
2666         (Qlatin_viscii_upper): New variable.
2667         (syms_of_mule_charset): Set up new symbol
2668         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
2669         (complex_vars_of_mule_charset): Set up new charset
2670         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
2671         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
2672         `ucs_to_<CHARSET>' tables.
2673
2674 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
2675
2676         * text-coding.c: New file.
2677
2678 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2679
2680         * mule-charset.c (Fmake_char): Fix problem of 256-set.
2681
2682         * char-ucs.h (Vcharset_ucs_bmp): New variable.
2683         (MAKE_CHAR): Modify for `ucs-bmp'.
2684         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
2685         non-MULE characters of BMP.
2686
2687 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
2688
2689         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2690         to 0.6.
2691
2692 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2693
2694         * lstream.h:
2695         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
2696         - Include character.h for `CHAR_ASCII_P'.
2697
2698         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
2699
2700         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
2701         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
2702
2703         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
2704         (BYTE_C0_P): Likewise.
2705         (BYTE_C1_P): Likewise.
2706         (Lstream_get_emchar_1): Likewise.
2707         (Lstream_fput_emchar): Likewise.
2708         (Lstream_funget_emchar): Likewise.
2709         (copy_internal_to_external): Likewise.
2710         (copy_external_to_internal): Likewise.
2711
2712         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
2713         (BYTE_C0_P): Likewise.
2714         (BYTE_C1_P): Likewise.
2715         (Lstream_get_emchar_1): Likewise.
2716         (Lstream_fput_emchar): Likewise.
2717         (Lstream_funget_emchar): Likewise.
2718         (copy_internal_to_external): Likewise.
2719         (copy_external_to_internal): Likewise.
2720
2721         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
2722         (REP_BYTES_BY_FIRST_BYTE): Likewise.
2723
2724         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
2725         (BYTE_ASCII_P): Moved to mb-1byte.h.
2726
2727 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2728
2729         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
2730
2731         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
2732         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
2733         (VALID_CHARPTR_P): Moved to mb-*byte.h.
2734         (VALIDATE_CHARPTR_BACKWARD): Likewise.
2735         (VALIDATE_CHARPTR_FORWARD): Likewise.
2736         (simple_charptr_emchar): Moved to mb-multibyte.h.
2737         (simple_set_charptr_emchar): Likewise.
2738         (simple_charptr_copy_char): Likewise.
2739         (non_ascii_charptr_emchar): Likewise.
2740         (non_ascii_set_charptr_emchar): Likewise.
2741         (non_ascii_charptr_copy_char): Likewise.
2742         (charptr_emchar): Moved to mb-*byte.h.
2743         (set_charptr_emchar): Likewise.
2744         (charptr_copy_char): Likewise.
2745
2746         * mb-1byte.h, mb-multibyte.h: New files.
2747
2748 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2749
2750         * mb-utf-8.h (MULTIBYTE): New macro.
2751         (MAX_EMCHAR_LEN): Moved from buffer.h.
2752         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
2753
2754         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
2755
2756         * mb-lb.h, multibyte.h: New files.
2757
2758         * char-1byte.h (Charset_ID): Moved from buffer.h.
2759         (MIN_LEADING_BYTE): Likewise.
2760         (LEADING_BYTE_ASCII): Likewise.
2761         (NUM_LEADING_BYTES): Likewise.
2762         (CHARSETP): Likewise.
2763         (CHARSET_BY_LEADING_BYTE): Likewise.
2764         (XCHARSET_LEADING_BYTE): Likewise.
2765         (XCHARSET_GRAPHIC): Likewise.
2766         (XCHARSET_COLUMNS): Likewise.
2767         (XCHARSET_DIMENSION): Likewise.
2768         (CHAR_CHARSET): Likewise.
2769         (CHAR_LEADING_BYTE): Likewise.
2770         (BREAKUP_CHAR): Likewise.
2771         (Vcharset_ascii): Likewise.
2772
2773         * buffer.h: Include multibyte.h unconditionally.
2774         (VALID_CHARPTR_P): Moved to multibyte.h.
2775         (ASSERT_VALID_CHARPTR): Likewise.
2776         (REAL_INC_CHARPTR): Likewise.
2777         (REAL_INC_CHARBYTIND): Likewise.
2778         (REAL_DEC_CHARPTR): Likewise.
2779         (INC_CHARPTR): Likewise.
2780         (INC_CHARBYTIND): Likewise.
2781         (DEC_CHARPTR): Likewise.
2782         (VALIDATE_CHARPTR_BACKWARD): Likewise.
2783         (VALIDATE_CHARPTR_FORWARD): Likewise.
2784         (charptr_n_addr): Likewise.
2785         (MAX_EMCHAR_LEN): Moved to mb-*.h.
2786         (simple_charptr_emchar): Moved to multibyte.h.
2787         (simple_set_charptr_emchar): Likewise.
2788         (simple_charptr_copy_char): Likewise.
2789         (non_ascii_charptr_emchar): Likewise.
2790         (non_ascii_set_charptr_emchar): Likewise.
2791         (non_ascii_charptr_copy_char): Likewise.
2792         (charptr_emchar): Likewise.
2793         (set_charptr_emchar): Likewise.
2794         (charptr_copy_char): Likewise.
2795         (charptr_emchar_n): Likewise.
2796         (Charset_ID): Moved to char-1byte.h.
2797         (Vcharset_ascii): Likewise.
2798         (CHAR_CHARSET): Likewise.
2799         (CHAR_LEADING_BYTE): Likewise.
2800         (LEADING_BYTE_ASCII): Likewise.
2801         (NUM_LEADING_BYTES): Likewise.
2802         (MIN_LEADING_BYTE): Likewise.
2803         (CHARSETP): Likewise.
2804         (CHARSET_BY_LEADING_BYTE): Likewise.
2805         (XCHARSET_LEADING_BYTE): Likewise.
2806         (XCHARSET_GRAPHIC): Likewise.
2807         (XCHARSET_COLUMNS): Likewise.
2808         (XCHARSET_DIMENSION): Likewise.
2809         (BREAKUP_CHAR): Likewise.
2810
2811 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2812
2813         * character.h: Add document about interface for characters.
2814
2815         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
2816         (MAKE_CHAR): Delete comment about
2817         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
2818         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
2819         (BREAKUP_CHAR): Modify name of arguments.
2820         (CHAR_CHARSET): Modify name of argument.
2821
2822         * buffer.h: Delete document about Emchar accessors.
2823
2824 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2825
2826         * character.h (CHAR_INTP): Moved from buffer.h
2827         (CHAR_OR_CHAR_INTP): Likewise.
2828         (XCHAR_OR_CHAR_INT): Likewise.
2829         (CHECK_CHAR_COERCE_INT): Likewise.
2830
2831         * buffer.h (CHAR_INTP): Moved to character.h
2832         (CHAR_OR_CHAR_INTP): Likewise.
2833         (XCHAR_OR_CHAR_INT): Likewise.
2834         (CHECK_CHAR_COERCE_INT): Likewise.
2835
2836 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2837
2838         * character.h:
2839         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
2840         - Include char-1byte.h, char-lb.h or char-ucs.h.
2841
2842         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
2843
2844         * buffer.h: Include character unconditionally.
2845         (valid_char_p): Moved to char-*.h.
2846         (non_ascii_valid_char_p): Moved to char-lb.h.
2847
2848         * char-1byte.h, char-lb.h, char-ucs.h: New files.
2849
2850 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2851
2852         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
2853         in UTF-2000 because it is not ported yet and not to use
2854         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
2855         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
2856         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
2857
2858         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
2859         (CHAR_ASCII_P): Moved from character.h.
2860
2861         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
2862         (CHAR_ASCII_P): Likewise.
2863         (CHAR_FIELD1_MASK): Deleted.
2864         (CHAR_FIELD2_MASK): Deleted.
2865         (CHAR_FIELD3_MASK): Deleted.
2866         (MAX_CHAR_BASIC_LATIN): New macro.
2867         (CHAR_FIELD1): Deleted.
2868         (CHAR_FIELD2_INTERNAL): Deleted.
2869         (CHAR_FIELD3_INTERNAL): Deleted.
2870         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
2871         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
2872         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
2873         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
2874         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
2875         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
2876         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
2877         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
2878         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
2879         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
2880         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
2881         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
2882         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
2883         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
2884         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
2885         (MIN_CHAR_COMPOSITION): Deleted.
2886         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
2887         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
2888
2889 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
2890
2891         * buffer.h: Include mb-utf-8.h in UTF-2000.
2892
2893         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
2894
2895         * mb-utf-8.h: New file.
2896
2897 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
2898
2899         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
2900         instead of `int'.
2901
2902         * mule-charset.h, buffer.h (Charset_ID): New type.
2903
2904 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
2905
2906         * mule-canna.c (c2mu): Use `MAKE_CHAR',
2907         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
2908         instead of `MULE_CHAR_PRIVATE_OFFSET',
2909         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
2910         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
2911         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
2912
2913         * character.h (Vcharset_japanese_jisx0212): New variable
2914         definition.
2915
2916 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
2917
2918         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
2919         (charset_by_attributes): Delete array about direction.
2920         (latin_a_char_to_charset): New variable in UTF-2000.
2921         (latin_a_char_to_byte1): New variable in UTF-2000.
2922         (latin_a_char_to_byte2): New variable in UTF-2000.
2923         (Qucs_bmp): New variable.
2924         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
2925         `Bufbyte'.
2926         (next_allocated_2_byte_leading_byte): Likewise.
2927         (non_ascii_set_charptr_emchar): Likewise.
2928         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
2929         `CHARSET_TYPE_256X256' in UTF-2000; modify for
2930         `charset_by_attributes'.
2931         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
2932         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
2933         and `CHARSET_BY_LEADING_BYTE'.
2934         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
2935         `utf-2000-version' to `vars_of_mule_charset'.
2936         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
2937         define `leading-code-private-11' in UTF-2000; move setting of
2938         `utf-2000-version' from `syms_of_mule_charset'.
2939         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
2940         UTF-2000.
2941
2942         * character.h (Charset_ID): New type.
2943         (LEADING_BYTE_UCS_BMP): New macro.
2944         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
2945         (CHARSET_ID_OFFSET_94): New macro.
2946         (MIN_CHARSET_ID_PRIVATE_94): New macro.
2947         (MAX_CHARSET_ID_PRIVATE_94): New macro.
2948         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
2949         final-byte.
2950         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
2951         (LEADING_BYTE_LATIN_JISX0201): Likewise.
2952         (CHARSET_ID_OFFSET_96): New macro.
2953         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
2954         CHARSET_ID_OFFSET_96 and final-byte.
2955         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
2956         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
2957         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
2958         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
2959         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
2960         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
2961         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
2962         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
2963         (LEADING_BYTE_THAI_TIS620): Likewise.
2964         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
2965         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
2966         (CHARSET_ID_OFFSET_94x94): New macro.
2967         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
2968         CHARSET_ID_OFFSET_94x94 and final-byte.
2969         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
2970         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
2971         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
2972         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
2973         (LEADING_BYTE_CHINESE_GB2312): Likewise.
2974         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
2975         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
2976         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
2977         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
2978         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
2979         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
2980         (CHARSET_TYPE_128X128): New macro.
2981         (CHARSET_TYPE_256X256): New macro.
2982         (XCHARSET_PRIVATE_P): Delete unconditionally.
2983         (charset_by_attributes): Delete array about direction.
2984         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
2985         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
2986         (MIN_CHAR_94): New macro.
2987         (MAX_CHAR_94): New macro.
2988         (MIN_CHAR_96): New macro.
2989         (MAX_CHAR_96): New macro.
2990         (MIN_CHAR_94x94): New macro.
2991         (MAX_CHAR_94x94): New macro.
2992         (MIN_CHAR_96x96): New macro.
2993         (MAX_CHAR_96x96): New macro.
2994         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
2995         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
2996         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
2997         - 32)'.
2998         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
2999         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
3000         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
3001         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
3002         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
3003         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
3004         `XCHARSET_LEADING_BYTE' to make code-point.
3005         (latin_a_char_to_charset): New variable.
3006         (latin_a_char_to_byte1): New variable.
3007         (latin_a_char_to_byte2): New variable.
3008         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
3009         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
3010         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
3011
3012         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
3013         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
3014         (find_charsets_in_emchar_string): Likewise.
3015         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
3016
3017         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
3018         `int'.
3019         (decode_coding_iso2022): Likewise.
3020
3021         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
3022         of `unsigned char'.
3023
3024         * redisplay.c (redisplay_text_width_emchar_string): Use
3025         `Charset_ID' instead of `unsigned char'.
3026         (redisplay_frame_text_width_string): Likewise.
3027
3028         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
3029         `unsigned char'.
3030
3031         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
3032         instead of `unsigned char'.
3033         (face_cachel_charset_font_metric_info): Likewise.
3034
3035         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
3036         (get_non_ascii_char_table_value): Likewise.
3037         (get_char_table): Likewise.
3038         (put_char_table): Likewise.
3039         (map_over_other_charset): Likewise.
3040         (map_char_table): Likewise.
3041
3042         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
3043         instead of `unsigned char'.
3044
3045 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
3046
3047         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
3048         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
3049
3050         * mule-charset.c (leading_code_private_11): Don't define in
3051         UTF-2000.
3052
3053         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
3054         in UTF-2000 because it is not ported yet and not to use
3055         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
3056
3057 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
3058
3059         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
3060
3061 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3062
3063         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
3064         in UTF-2000.
3065
3066         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
3067         of unsigned char to store leading-byte.
3068
3069         * chartab.c (get_non_ascii_char_table_value): Don't use
3070         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
3071
3072         * file-coding.c (encode_coding_big5): Delete bogus implementation
3073         in UTF2000.
3074
3075         * character.h (LEADING_BYTE_*): Delete definition for
3076         non-UTF-2000.
3077         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
3078         (LEADING_BYTE_PREFIX_P): Deleted.
3079         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
3080         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
3081         (BUFBYTE_LEADING_BYTE_P): Deleted.
3082         (CHARSET_PRIVATE_P): Deleted unconditionally.
3083         (rep_bytes_by_first_byte): Deleted unconditionally.
3084         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
3085         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
3086         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3087         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
3088         (CHAR_FIELD2): Deleted.
3089         (CHAR_FIELD3): Deleted.
3090         (MAKE_CHAR): Delete definition for non-UTF-2000.
3091         (BREAKUP_CHAR_1_UNSAFE): Deleted.
3092         (breakup_char_1): New implementation.
3093         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
3094         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
3095
3096 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3097
3098         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
3099         condition.
3100
3101 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3102
3103         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
3104         (CHARSET_PRIVATE_P): Likewise.
3105         (XCHARSET_PRIVATE_P): Likewise.
3106         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
3107
3108         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
3109         UTF2000.
3110         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
3111
3112 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3113
3114         * character.h (LEADING_BYTE_*): Changed in UTF2000.
3115         (NUM_LEADING_BYTES): Changed from 128 to 256.
3116         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3117         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
3118         UTF2000.
3119         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3120
3121         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
3122         UTF2000.
3123         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
3124         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
3125         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
3126         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
3127         (Qchinese_cns11643_3): New variable in UTF2000.
3128         (Qchinese_cns11643_4): New variable in UTF2000.
3129         (Qchinese_cns11643_5): New variable in UTF2000.
3130         (Qchinese_cns11643_6): New variable in UTF2000.
3131         (Qchinese_cns11643_7): New variable in UTF2000.
3132         (syms_of_mule_charset): Define `chinese-cns11643-3',
3133         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3134         and `chinese-cns11643-7' in UTF2000.
3135         (vars_of_mule_charset): Initialize
3136         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
3137         + 1 in UTF2000.
3138         (complex_vars_of_mule_charset): Setup charset
3139         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
3140         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
3141
3142 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3143
3144         * mule-charset.c: Move setting for `leading-code-private-11' from
3145         `syms_of_mule_charset' to `vars_of_mule_charset'.
3146
3147 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3148
3149         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
3150         and `NUM_LEADING_BYTES' in assert.
3151
3152 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3153
3154         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
3155         instead of 128.
3156         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
3157         `NUM_LEADING_BYTES' instead of 128.
3158
3159 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3160
3161         * mule-charset.h (charset_by_leading_byte): Use
3162         `NUM_LEADING_BYTES' instead of 128.
3163         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
3164
3165         * mule-charset.c (charset_by_leading_byte): Use
3166         `NUM_LEADING_BYTES' instead of 128.
3167         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
3168
3169         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
3170         128.
3171
3172 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
3173
3174         * mule-charset.c (syms_of_mule_charset): Update to
3175         0.4 (Shin-Imamiya).
3176
3177 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
3178
3179         * file-coding.c (encode_coding_sjis): New implementation for
3180         UTF2000.  (decode_coding_sjis): Ditto.
3181
3182 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3183
3184         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
3185         Don't define in UTF2000.
3186
3187         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
3188         defined.
3189
3190         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3191         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
3192         MULE.
3193
3194 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3195
3196         * config.h.in (CHAR_IS_UCS4): New macro.
3197
3198         * mule-charset.c (rep_bytes_by_first_byte): Modify for
3199         conventional MULE representation.
3200         (syms_of_mule_charset): Update to 0.3 (Imamiya).
3201
3202         * mule-charset.h: Reverted to original.
3203
3204         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3205         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
3206         "mule-charset.h" if CHAR_IS_UCS4 is defined.
3207
3208         * character.h: New file.
3209
3210         * file-coding.c (Fmake_coding_system): Set 1 to
3211         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
3212         defined.
3213         (encode_coding_no_conversion): New implementation for UTF2000.
3214
3215         * file-coding.h (struct Lisp_Coding_System): Add new member
3216         `fixed.size'.
3217
3218 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
3219
3220         * file-coding.c (decode_coding_iso2022): Code-point arguments of
3221         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
3222         (encode_coding_iso2022): New implementation for UTF2000.
3223
3224 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3225
3226         * mule-canna.c (c2mu): New implementation for UTF2000.
3227         (m2c): Likewise.
3228
3229 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3230
3231         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
3232
3233 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3234
3235         * file-coding.c (reset_encoding_stream): Set 0 to
3236         `str->iso2022.current_char_boundary' in UTF2000.
3237         (encode_utf8): Don't define in UTF2000.
3238         (encode_coding_utf8): New implementation for UTF-8 representation
3239         of UTF2000.
3240         (complex_vars_of_file_coding): Define coding-system `utf-8'.
3241
3242 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3243
3244         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
3245
3246         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
3247         UTF2000.
3248         (REP_BYTES_BY_FIRST_BYTE): Likewise.
3249
3250         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
3251
3252         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
3253         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
3254         as UTF-8 in UTF2000.
3255         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
3256         (non_ascii_valid_char_p): Don't define in UTF2000.
3257         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
3258         (Lstream_get_emchar_1): Likewise.
3259         (utf-2000-version): New variable in UTF2000.
3260
3261         * lread.c (read_escape): Add new reader `u'.
3262
3263         * insdel.c (three_to_one_table): Don't define in UTF2000.
3264         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
3265         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
3266         UTF2000.
3267         (bytind_to_bufpos_func): Likewise.
3268         (buffer_mule_signal_inserted_region): Likewise.
3269         (vars_of_insdel): Don't initialize `three_to_one_table'.
3270         (init_buffer_text): Use `buf->text->mule_size' instead of
3271         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
3272         UTF2000.
3273
3274         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
3275         UTF-8 representation in UTF2000.
3276         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
3277         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
3278         (decode_coding_iso2022): Don't define local variable `lb' in
3279         UTF2000; don't use LEADING_BYTE in UTF2000; use
3280         `DECODE_ADD_UCS_CHAR' in UTF2000.
3281         (convert_to_external_format): Decode as UTF-8 in UTF2000.
3282
3283         * config.h.in (UTF2000): New macro.
3284
3285         * buffer.h (struct buffer_text): Add new member `mule_size' and
3286         don't add `mule_shifter' and `mule_three_p' in UTF2000.
3287         (valid_char_p): Return always 1 in UTF2000.
3288         (MAX_EMCHAR_LEN): 6 in UTF2000.
3289         (three_to_one_table): Don't define in UTF2000.
3290         (real_bufpos_to_bytind): Modify for UTF-8 representation in
3291         UTF2000.
3292         (real_bytind_to_bufpos): Likewise.
3293
3294         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
3295
3296 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3297
3298         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
3299         representation change.
3300         (Vutf_2000_version): New variable.
3301         (leading_code_private_11): New variable.
3302         (syms_of_mule_charset): Add new variables `utf-2000-version' and
3303         `leading-code-private-11'.
3304
3305         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
3306         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
3307         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
3308         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
3309         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
3310         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
3311         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
3312         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
3313         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
3314         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
3315         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
3316         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
3317         (MIN_CHAR_GREEK): New macro.
3318         (MAX_CHAR_GREEK): New macro.
3319         (MIN_CHAR_CYRILLIC): New macro.
3320         (MAX_CHAR_CYRILLIC): New macro.
3321         (MIN_CHAR_HEBREW): New macro.
3322         (MAX_CHAR_HEBREW): New macro.
3323         (MIN_CHAR_THAI): New macro.
3324         (MAX_CHAR_THAI): New macro.
3325         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
3326         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
3327         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
3328         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
3329         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
3330         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
3331         (CHAR_FIELD2): New inline function.
3332         (CHAR_FIELD3): New inline function.
3333         (MULE_CHAR_PRIVATE_OFFSET): New macro.
3334         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
3335         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
3336         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
3337         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
3338         (MIN_CHAR_COMPOSITION): Likewise.
3339         (CHAR_LEADING_BYTE): Modified for character representation change.
3340         (MAKE_CHAR): Likewise.
3341
3342         * lisp.h (Vcharset_latin_iso8859_1): New variable.
3343         (Vcharset_greek_iso8859_7): Likewise.
3344         (Vcharset_cyrillic_iso8859_5): Likewise.
3345         (Vcharset_hebrew_iso8859_8): Likewise.
3346         (Vcharset_thai_tis620): Likewise.
3347         (Vcharset_katakana_jisx0201): Likewise.
3348
3349 2001-01-17  Martin Buchholz <martin@xemacs.org>
3350
3351         * XEmacs 21.2.41 "Polyhymnia" is released.
3352
3353 2001-01-16  Didier Verna  <didier@xemacs.org>
3354
3355         * glyphs.c (image_instantiate): don't use fallbacks when
3356         instantiating a face's background pixmap by inheritance.
3357
3358 2001-01-14  Mike Sperber <mike@xemacs.org>
3359
3360         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
3361         Conditionalize accordingly.
3362
3363 2001-01-16  Martin Buchholz  <martin@xemacs.org>
3364
3365         * dumper.c (pdump_file_get): Fix a compiler warning.
3366
3367 2001-01-15  Martin Buchholz  <martin@xemacs.org>
3368
3369         Make Purify happy when pdumping.
3370         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
3371         iniitalizing all bits of new lisp object memory.
3372         * symbols.c (Fmake_local_variable): Likewise.
3373         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
3374         * symbols.c (Fdefvaralias): Likewise.
3375         * mule-charset.c (vars_of_mule_charset): Likewise.
3376
3377 2001-01-15  Martin Buchholz  <martin@xemacs.org>
3378         Add the `-nd' flag when running pre-dump operations under the debugger.
3379         * .dbxrc (run-temacs): Add `-nd'.
3380         * .dbxrc (update-elc): Likewise.
3381         * .dbxrc (dump-temacs): Likewise.
3382         * .gdbinit (run-temacs): Likewise.
3383         * .gdbinit (check-temacs): Likewise.
3384         * .gdbinit (update-elc): Likewise.
3385         * .gdbinit (dump-temacs): Likewise.
3386
3387 2001-01-14  Martin Buchholz  <martin@xemacs.org>
3388
3389         Allow building 64-bit executables on AIX with GNU malloc, e.g.
3390         export OBJECT_MODE=64
3391         configure --pdump --use-union-type=no
3392         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
3393         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
3394
3395         * miscplay.c (sndcnv8U_2mono):
3396         Avoid two uses of `++' in the same expression.
3397         Suppresses a GCC warning.
3398
3399 2001-01-13  Martin Buchholz  <martin@xemacs.org>
3400
3401         Make sure future compilers don't miscompile alloc.c.
3402         * alloc.c:
3403         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
3404         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
3405
3406 2001-01-12  Martin Buchholz  <martin@xemacs.org>
3407
3408         * dumper.c: A little post-pdump-rename comment fixup.
3409
3410 2001-01-09  Jerry James  <james@eecs.ku.edu>
3411
3412         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
3413
3414 2001-01-13  Martin Buchholz  <martin@xemacs.org>
3415
3416         * *.[ch]: Globally rename symbols using the following `pdump-rename'
3417         script:
3418         #!/bin/sh
3419         replace_symbol () {
3420           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
3421         }
3422
3423         replace_symbol pdump_wire_lists pdump_weak_object_chains
3424         replace_symbol pdump_wire_list dump_add_weak_object_chain
3425
3426         replace_symbol pdump_wires pdump_root_objects
3427         replace_symbol pdump_wire dump_add_root_object
3428
3429         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
3430         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
3431
3432         replace_symbol dumpstructinfos pdump_root_struct_ptrs
3433         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
3434         replace_symbol dumpstructinfo pdump_root_struct_ptr
3435         replace_symbol dumpstruct dump_add_root_struct_ptr
3436
3437         replace_symbol dumpopaque dump_add_opaque
3438         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
3439         replace_symbol dumpopaqueinfos pdump_opaques
3440         replace_symbol dumpopaqueinfo pdump_opaque
3441
3442         replace_symbol nb_structdump nb_root_struct_ptrs
3443         replace_symbol nb_opaquedump nb_opaques
3444
3445         replace_symbol align_table pdump_align_table
3446         replace_symbol dump_header pdump_header
3447
3448         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
3449         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
3450
3451
3452 2001-01-12  Martin Buchholz  <martin@xemacs.org>
3453
3454         * s/aix4.h: Keep the C for AIX compiler from overaggressively
3455         optimizing bytecount_to_charcount().
3456
3457 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
3458
3459         * config.h.in:
3460         (HAVE_DLFCN_H): Removed.
3461         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
3462
3463 2001-01-06  Martin Buchholz  <martin@xemacs.org>
3464
3465         Portable dumper maintainability improvements.
3466         * alloc.c (staticpro):
3467         * alloc.c (staticpro_nodump):
3468         * alloc.c (garbage_collect_1):
3469         * alloc.c (reinit_alloc_once_early):
3470         * alloc.c (init_alloc_once_early):
3471         * alloc.c: Move dumper functions to alloc.c.
3472         * dumper.c (pdump_backtrace):
3473         * dumper.c (pdump_dump_structs):
3474         * dumper.c (pdump_dump_opaques):
3475         * dumper.c (pdump_dump_rtables):
3476         * dumper.c (pdump_dump_wired):
3477         * dumper.c (pdump):
3478         * dumper.c (pdump_load_check):
3479         * dumper.c (pdump_load_finish):
3480         * dumper.c (pdump_file_unmap):
3481         * dumper.c (pdump_file_get):
3482         * dumper.c (pdump_resource_free):
3483         * dumper.c (pdump_resource_get):
3484         * dumper.c (pdump_file_free):
3485         * dumper.c (pdump_file_try):
3486         * dumper.c (pdump_load):
3487         Remove fixed size limits on staticpro(), staticpro_nodump(),
3488         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
3489         Remove custom code for dumping lrecord_implementations_table - use
3490         dumpopaque instead.
3491         Remove (most of the) custom code for dumping staticpros - dump it
3492         like any other dynarr.
3493
3494         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
3495         * dumper.c: Moved functions from alloc.c.
3496         * alloc.c (dumpstruct): Moved to dumper.c.
3497         * alloc.c (dumpopaque): Likewise.
3498         * alloc.c (pdump_wire): Likewise.
3499         * alloc.c (pdump_wire_list): Likewise.
3500
3501         * lisp.h (Dynarr_sizeof): New.
3502         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
3503         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
3504         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
3505
3506         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
3507         * lisp.h (dumpopaque): ditto.
3508         * lisp.h (pdump_wire): ditto.
3509         * lisp.h (pdump_wire_list): ditto.
3510
3511 2001-01-09  Martin Buchholz  <martin@xemacs.org>
3512
3513         * make-src-depend (PrintPatternDeps):
3514         Use `sort' to make output independent of perl version.
3515
3516 2001-01-08  Martin Buchholz  <martin@xemacs.org>
3517
3518         Port to Netbsd 1.5.
3519         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
3520         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
3521
3522 2001-01-03  Didier Verna  <didier@xemacs.org>
3523
3524         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
3525         that `focus_frame' is alive before thinking of calling
3526         `redisplay_redraw_cursor' on it.
3527
3528 2001-01-08  Martin Buchholz <martin@xemacs.org>
3529
3530         * XEmacs 21.2.40 is released.
3531
3532 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
3533
3534         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
3535
3536 2001-01-06  Martin Buchholz  <martin@xemacs.org>
3537
3538         * alloc.c (dbg_valmask): Make const.
3539         * alloc.c (dbg_typemask): Make const.
3540         * alloc.c (dbg_USE_UNION_TYPE): Make const.
3541         * alloc.c (dbg_valbits): Make const.
3542         * alloc.c (dbg_gctypebits): Make const.
3543
3544 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
3545
3546         * redisplay-x.c (x_bevel_area):
3547         redisplay.h (struct rune):
3548         Typo fixes in comments.
3549
3550 2001-01-05  Andy Piper  <andy@xemacs.org>
3551
3552         * glyphs-x.c (x_redisplay_widget): use size changed for offset
3553         adjustment.
3554
3555         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
3556
3557 2001-01-05  Martin Buchholz  <martin@xemacs.org>
3558
3559         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
3560
3561         * mule-ccl.c (stack_idx_of_map_multiple):
3562         Non const global data must not be initialized!
3563         Found by MIYASHITA Hisashi.
3564
3565 2001-01-02  Andy Piper  <andy@xemacs.org>
3566
3567         * frame.c (change_frame_size): make sure frame size is always
3568         marked as changed.
3569
3570         * glyphs.c (image_instance_layout): minor code reuse.
3571
3572         * window.c (Fcurrent_window_configuration): revert previous
3573         change.
3574
3575 2001-01-02  Martin Buchholz  <martin@xemacs.org>
3576
3577         * glyphs.h:
3578         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
3579
3580 2000-12-31  Andy Piper  <andy@xemacs.org>
3581
3582         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
3583         when widget gets unmapped.
3584
3585         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
3586         function. Make sure widgets losing focus don't just drop it.
3587         (handle_focus_event_1): record the widget with focus.
3588
3589 2000-12-31  Andy Piper  <andy@xemacs.org>
3590
3591         * window.c (allocate_window): use
3592         make_image_instance_cache_hash_table.
3593         (make_dummy_parent): ditto.
3594         (Fset_window_configuration): ditto.
3595
3596         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
3597
3598         * glyphs.c (process_image_string_instantiator): use
3599         INSTANTIATOR_TYPE.
3600         (get_image_instantiator_governing_domain): ditto.
3601         (normalize_image_instantiator): ditto.
3602         (instantiate_image_instantiator): ditto.
3603         (make_image_instance_1): ditto.
3604         (image_instantiate): ditto. Key on glyph *and* instantiator type.
3605         (instantiator_eq_equal): new function for use with instance hash
3606         tables.
3607         (instantiator_eq_hash): ditto.
3608         (make_image_instance_cache_hash_table): create a suitable hash
3609         table for storing image instances.
3610
3611         * elhash.h (hash_table_weakness): new internal weakness type
3612         HASH_TABLE_KEY_CAR_VALUE_WEAK.
3613         declare new functions.
3614
3615         * elhash.c (finish_marking_weak_hash_tables): introduce yet
3616         another weakness type for glyphs.
3617         (make_standard_lisp_hash_table): new function split out from
3618         make_general_lisp_hash_table.
3619         (make_lisp_hash_table): call make_standard_lisp_hash_table.
3620         (hash_table_instantiate): ditto.
3621         (Fmake_hash_table): ditto.
3622
3623 2000-12-31  Martin Buchholz <martin@xemacs.org>
3624
3625         * XEmacs 21.2.39 is released.
3626
3627 2000-12-29  Andy Piper  <andy@xemacs.org>
3628
3629         * menubar.c (menubar_visible_p_changed): signal the frame changed.
3630
3631         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
3632         the frame has changed so that we pick up geometry changes such as
3633         menubar visibility.
3634
3635 2000-12-28  Andy Piper  <andy@xemacs.org>
3636
3637         * lastfile.c (my_ebss): make a char array so we can pad the
3638         bss. Fixes cygwin unexec.
3639
3640         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
3641
3642 2000-12-26  Andy Piper  <andy@xemacs.org>
3643
3644         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
3645         comments and try and be more precise about a non-/SIGIO world.
3646         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
3647         SIGIO.
3648
3649         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
3650         we don't normalize to zero width or height.
3651
3652 2000-12-24  Andy Piper  <andy@xemacs.org>
3653
3654         * Makefile.in.in (ldflags): add -mwindows when appropriate.
3655
3656 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
3657
3658         * s/sco5.h: SCO 5 has pty support.
3659
3660 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
3661
3662         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
3663         input-method-xlib.c contains whole contents of input-method-xfs.c,
3664         so we can use input-method-xlib.c's code for USE_XFONTSET
3665         using #ifdefs.
3666         * input-method-xfs.c: removed.
3667
3668 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
3669
3670         * file-coding.h (enum coding_category_type): reorder enumerators to
3671         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
3672         (now one greater than largest real coding_category_type enumerator).
3673         * file-coding.c (coding_category_symbol, coding_category_by_priority,
3674         coding_category_system, fcd_descriptihon_1, decode_coding_category,
3675         Fcoding_category_list, Fset_coding_priority_list,
3676         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
3677         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
3678
3679 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
3680
3681         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
3682         * redisplay-output.c (redisplay_output_window): Clear top of window
3683         when face is changed.
3684         * redisplay-x.c (x_redraw_exposed_window): Call
3685         redisplay_clear_top_of_window.
3686         * redisplay.h: Publish redisplay_clear_top_of_window.
3687
3688 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
3689
3690         * buffer.c (Fkill_buffer): Map over all devices.
3691         * window.c (window_loop): Remove UNSHOW_BUFFER code.
3692         (list_windows): New function.
3693         (list_all_windows): Ditto.
3694         (Freplace_buffer_in_windows): Use them.
3695
3696 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
3697
3698         * database.c (berkdb_subtype): Recognize new subtype `queue'.
3699         (Fopen_database): Use `db_create' instead of `db_open'.
3700         (syms_of_database): Initialize Qqueue.
3701
3702 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
3703
3704         * buffer.c (common_init_complex_vars_of_buffer): Initialize
3705         buffer_local_face_property.
3706         * buffer.h (struct buffer): New member buffer_local_face_property.
3707         * window.c (Fset_window_buffer):  Mark window's face as changed
3708         when buffer has buffer local face.
3709         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
3710         * objects.c (color_after_change): Set buffer_local_face_property
3711         when locale of face specifier is buffer.
3712         * objects.c (font_after_change): Ditto.
3713         * objects.c (face_boolean_after_change): Ditto.
3714         * glyphs.c (image_after_change): Ditto.
3715
3716 2000-12-09  Dan Holmsand  <dan@eyebee.com>
3717
3718         * nt.c (mswindows_fstat): Report file permissions, volume serial
3719         number, etc. Code adapted from FSF Emacs 20.7.
3720
3721 2000-12-09  Dan Holmsand  <dan@eyebee.com>
3722
3723         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
3724         of stat when we don't have symbolic links, to make sure
3725         mswindows_stat is called on mswindows.
3726
3727 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
3728
3729         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
3730
3731 2000-12-12  Martin Buchholz  <martin@xemacs.org>
3732
3733         * doprnt.c (emacs_doprnt_1): More printing fixes.
3734         Make printing of numbers compatible with libc and FSF Emacs.
3735         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
3736         Use the system printf to do most of the hard work of formatting,
3737         instead of doprnt_1().
3738         Calculate memory to allocate for format string.
3739         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
3740         (doprnt_1): Cleaner code and documentation.
3741
3742 2000-12-01  Jerry James  <james@eecs.ukans.edu>
3743
3744         * Makefile.in.in: Use the loop variable to install headers.
3745
3746 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
3747
3748         * window.c (Fsplit_window): Don't invalidate face cache.
3749
3750 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
3751
3752         * minibuf.c (Fall_completions): Undo the previous change
3753         which removed checking elements start with space.
3754
3755 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
3756
3757         * mule-canna.c: Didier suppression.
3758
3759 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
3760
3761         * mule-canna.c: rename static unsigned char buf[] to key_buffer
3762         (warning suppression).  Add English comment translations.
3763
3764 2000-12-05  Martin Buchholz  <martin@xemacs.org>
3765
3766         * unexelfsgi.c (unexec): Better test for mmap failure.
3767
3768 2000-12-05  Martin Buchholz <martin@xemacs.org>
3769
3770         * XEmacs 21.2.38 is released.
3771
3772 2000-12-05  Martin Buchholz  <martin@xemacs.org>
3773
3774         * redisplay.c (bar-cursor): Make a user variable.
3775
3776         * symsinit.h: Add init_postgresql_from_environment.
3777
3778 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
3779
3780         * regex.c: Convert to clean C.
3781
3782 2000-12-05  Dan Holmsand  <dan@eyebee.com>
3783
3784         * realpath.c:
3785         Don't #include sysfile.h. Revert to duplicating PATH_MAX
3786         initialization.
3787         (sys_readlink): renamed to system_readlink to avoid conflict with
3788         the other sys_readlink.
3789
3790 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
3791
3792         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
3793
3794 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
3795
3796         * postgresql.c (init_postgresql_from_environment): new function.
3797         (vars_of_postgresql): Move code initializing Lisp variables out and
3798         into init_postgresql_from_environment.
3799         emacs.c (main_1): Call init_postgresql_from_environment if and only
3800         if running a dumped XEmacs.
3801
3802 2000-08-31  Dan Holmsand  <dan@eyebee.com>
3803
3804         * buffer.c: Make find-file-compare-truenames default to true on
3805         windows.
3806
3807         * realpath.c (win32_abs_start):
3808         (cygwin_readlink):
3809         (win32_readlink): New functions.
3810         (xrealpath): Return really real filenames on windows.
3811
3812         * fileio.c (Ffile_truename): Make file-truename work on windows.
3813
3814 2000-11-29  Didier Verna  <didier@xemacs.org>
3815
3816         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
3817         * faces.c (update_face_cachel_data): use it.
3818         * faces.c (add_face_cachel): use it. Complete background pixmap
3819         frobbing in face cache if `update_face_cachel_data' has not done so.
3820
3821 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
3822
3823         * search.c (string_match_1): Don't set last_thing_searched
3824         when search failed.
3825
3826 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
3827
3828         * buffer.c: Include casetab.h
3829         (common_init_complex_vars_of_buffer): Use new case-table object.
3830         * buffer.h: Include casetab.h
3831         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
3832         (DOWNCASE_TABLE_OF): Ditto.
3833         * bufslots.h: Remove char-tables and add case-table.
3834         * casetab.c: Include casetab.h
3835         (CASE_TABLE_P): Removed.
3836         (mark_case_table): New function.
3837         (allocate_case_table): New function.
3838         (Fcase_table_p): Use new case-table.
3839         (case_table_char): New function.
3840         (Fget_case_table): Ditto.
3841         (Fput_case_table): Ditto.
3842         (Fput_case_table_pair): Ditto.
3843         (Fcopy_case_table): Ditto.
3844         (Fcurrent_case_table): Return case-table.
3845         (Fstandard_case_table): Return case-table.
3846         (Fset_case_table): Fix doc-string.
3847         (set_case_table): Use case-table
3848         (syms_of_casetab): DEFSUBR new functions.
3849         (complex_vars_of_casetab): Set up standard case-table.
3850         * casetab.h: New file.
3851         * editfns.c: Include casetab.h
3852         (Fcompare_buffer_substrings): Use case-table.
3853         * inline.c: Include casetab.h
3854         * lisp.h: Remove bogus extern.
3855         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
3856         * search.c: Include casetab.h
3857         (TRANSLATE_ASCII): Removed.
3858         (TRANSLATE): Unconditionally translate character.
3859         (looking_at_1): Use case-table.
3860         (string_match_1): Ditto.
3861         (fast_string_match): Ditto.
3862         (search_command): Ditto.
3863         (search_buffer): Separate boyer_moore.  Check whether
3864         boyer_moore is poosible.
3865         (simple_search): New function.
3866         (boyer_moore): Separated from search_buffer. Translate char.
3867
3868 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
3869
3870         * regex.c (RE_TR_ASCII): Removed.
3871         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
3872         (PATFETCH): Call PATFETCH_RAW.
3873         (PATFETCH_RAW): Fetch Emchar.
3874         (PATUNFETCH): Decrement charptr.
3875         (GET_BUFFER_SPACE): Rename b to buf_end.
3876         (BUF_PUSH): Ditto.
3877         (BUF_PUSH_2): Ditto.
3878         (BUF_PUSH_3): Ditto.
3879         (EXTEND_BUFFER): Ditto.
3880         (SET_LIST_BIT): Ditto.
3881         (regex_compile): Ditto.  Translate non ASCII char.
3882         (compile_range): Ditto.
3883         (re_search_2): Ditto.
3884         (re_match_2_internal): Compare Emchar.
3885         (bcmp_translate): Ditto.
3886
3887 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
3888
3889         * lisp.h (basic char/int typedefs):  comment improvement.
3890
3891 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
3892
3893         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
3894         unstomp inhibit_site_lisp.  Improve comments.
3895
3896 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
3897
3898         * mule-charset.c (Fcharset_property):  improve type checking, comments.
3899
3900 2000-11-28  Andy Piper  <andy@xemacs.org>
3901
3902         * redisplay-output.c (redisplay_output_subwindow): make sure we do
3903         clipped display for windows in the gutter also.
3904         (redisplay_display_boxes_in_window_p): change semantics of return
3905         codes to be more intuitive.
3906
3907         * gutter.h: declare display_boxes_in_gutter_p.
3908
3909         * gutter.c (display_boxes_in_gutter_p): new function for
3910         redisplay.
3911
3912 2000-11-22  Andy Piper  <andy@xemacs.org>
3913
3914         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
3915         autodetect domain.
3916
3917 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
3918
3919         * callproc.c (Fold_call_process_internal):
3920         * gpm.c (Freceive_gpm_event):
3921         (tty_get_foreign_selection): Might be just warning supression.
3922         * fileio.c (Fwrite_region_internal):
3923         (Fset_visited_file_modtime):
3924         * keymap.c (event_matches_key_specifier_p):
3925         Initialize GCPROed variable.
3926
3927         * menubar-x.c (command_builder_find_menu_accelerator):
3928         Initialize before use.
3929
3930 2000-11-23  Andy Piper  <andy@xemacs.org>
3931
3932         * unexcw.c (unexec): make the resulting executable executable.
3933
3934 2000-11-21  Martin Buchholz  <martin@xemacs.org>
3935
3936         * doc.c (get_doc_string):
3937         Use size_t, not int, for result of XSTRING_LENGTH.
3938
3939         * cmds.c (Fdelete_char):
3940         * cmds.c (Fpoint_at_eol):
3941         * cmds.c (Fself_insert_command):
3942         Use EMACS_INT, not int, for result of XINT.
3943         Someday, someone will want to insert more than 2**31 identical characters.
3944
3945         * cmds.c (Fdelete_char):
3946         * cmds.c (Fdelete_backward_char):
3947         * syntax.c (Fforward_word):
3948         * syntax.c (Fforward_comment):
3949         Make COUNT argument optional, for consistency with forward-char et al.
3950
3951 2000-11-22  Martin Buchholz  <martin@xemacs.org>
3952
3953         * lisp.h:
3954         * print.c (long_to_string):
3955         Return a useful value: the pointer at end of data written.
3956
3957         * doprnt.c:
3958         Use `static const char * const' for constant strings.
3959         (union printf_arg): Delete `i', `ui' members.
3960         (get_doprnt_args):
3961         (emacs_doprnt_1):
3962         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
3963         Do all printf-ing via the `l' specifier.
3964         Use EMACS_INT instead of int.
3965         Optimize.
3966
3967 2000-11-20  Didier Verna  <didier@xemacs.org>
3968
3969         * faces.c (update_face_cachel_data): don't frob the background
3970         pixmap when the window is being created. The face is needed but
3971         does not exist yet.
3972
3973 2000-11-20  Andy Piper  <andy@xemacs.org>
3974
3975         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
3976         messing with a debug environment.
3977
3978 2000-11-20  Martin Buchholz  <martin@xemacs.org>
3979
3980         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
3981
3982 2000-11-20  Martin Buchholz  <martin@xemacs.org>
3983
3984         * casetab.c (Fcase_table_p): Fix compile error and crash.
3985
3986 2000-11-18  Philip Aston  <philipa@mail.com>
3987
3988         * s/cygwin32.h: Cygwin has SVR4-like pty support.
3989
3990 2000-11-18  Martin Buchholz  <martin@xemacs.org>
3991
3992         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
3993         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
3994
3995 2000-11-17  Martin Buchholz  <martin@xemacs.org>
3996
3997         * config.h.in: Define HAVE_ELF_H if elf.h exists.
3998         * unexelf.c: Use HAVE_ELF_H.
3999         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
4000         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
4001         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
4002         Greg Harrington <greg_harrington@hotmail.com> provided a machine
4003         for testing.
4004         So this is an unexelfsgi.c from a different line of development.
4005
4006 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
4007
4008         * regex.c (RE_TR_ASCII): New function.
4009         (RE_TRANSLATE): Call it.
4010
4011 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
4012
4013         * buffer.h (TRT_TABLE_OF): Remove assert.
4014         (IN_TRT_TABLE_DOMAIN): Removed.
4015
4016 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
4017
4018         * free-hook.c (log_gcpro):
4019         (show_gcprohist): Add support for GCPRO5.
4020
4021 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
4022
4023         * emacs.c (main_1): Improve -sd error message when --pdump=no.
4024
4025 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
4026
4027         * symeval.h: Declare flush_all_buffer_local_cache.
4028
4029         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
4030         (flush_buffer_local_cache): Added.
4031         (flush_all_buffer_local_cache): Added.
4032
4033         * lrecord.h: Remove unused XD_LO_RESET_NIL.
4034
4035         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
4036         (pdump_dump_data): Ditto.
4037         (pdump_reloc_one): Ditto.
4038         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
4039         before dumping.
4040
4041
4042 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
4043
4044         * buffer.c: Remove if 0'ed entry.
4045         * buffer.h: Rewrite TRT to use char-table.
4046         * bufslots.h: Remove mirror tables.
4047         * casetab.c: Remove mirror tables.
4048         (CASE_TABLE_P): New macro.
4049         (Fcase_table_p): Element of a case table is string or char-table.
4050         (make_mirror_trt_table): Removed.
4051         (set_case_table): Setup char-table from strings for backward
4052         compatibility.
4053         * dired.c (Fdirectory_files):
4054         * dired-msw.c: (mswindows_get_files):
4055         * lisp.h: Change prototype of re_pattern_buffer.
4056         * regex.c: (RE_TRANSLATE): New macro.
4057         (TRANSLATE_P): Ditto.
4058         Change translate to type RE_TRANSLATE_TYPE.
4059         * regex.h: Define RE_TRANSLATE_TYPE
4060         * search.c (TRANSLATE): New macro.
4061         (TRANSLATE_ASCII): New macro.
4062         Translate table is changed to Lisp_Object.
4063         (signal_failure): Inhibit return.
4064
4065 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
4066
4067         * device-msw.c:
4068         * eldap.c:
4069         * event-Xt.c:
4070         * event-stream.c:
4071         * print.c:
4072         Do UNGCPRO before return.
4073
4074 2000-11-14  Martin Buchholz <martin@xemacs.org>
4075
4076         * XEmacs 21.2.37 is released.
4077
4078 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
4079
4080         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
4081         Add comments about discarded return value.
4082
4083 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
4084
4085         * callint.c:
4086         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
4087
4088 2000-10-27  Andy Piper  <andy@xemacs.org>
4089
4090         * gutter.c (Fset_default_gutter_position): default left and right
4091         gutters to visible.
4092         (calculate_gutter_size): calculate resonable heuristic for left
4093         and right gutter sizes.
4094         (specifier_vars_of_gutter): change left and right gutter sizes to
4095         autodetect.
4096         (calculate_gutter_size_from_display_lines): new function.
4097         (output_gutter): check for resizing on left and right gutters.
4098         (clear_gutter): don't special case top and left gutters.
4099         (specifier_vars_of_gutter): use new signature for
4100         set_specifier_caching.
4101
4102         * glyphs-x.c (x_redisplay_widget): spelling fix.
4103         * glyphs.c (specifier_vars_of_glyphs):
4104         * menubar.c (specifier_vars_of_menubar):
4105         * redisplay.c (specifier_vars_of_redisplay):
4106         * toolbar.c (specifier_vars_of_toolbar):
4107         * window.c (specifier_vars_of_window):
4108         * scrollbar.c (specifier_vars_of_scrollbar):
4109         (complex_vars_of_scrollbar): use new signature for
4110         set_specifier_caching.
4111
4112         * specifier.c (set_specifier_caching): include recompute flag.
4113         (recompute_one_cached_specifier_in_window): always recompute if
4114         flag set.
4115         (recompute_one_cached_specifier_in_frame): ditto.
4116
4117         * specifier.h (struct specifier_caching): add recompute flag.
4118
4119 2000-10-24  Andy Piper  <andy@xemacs.org>
4120
4121         * unexcw.c (copy_executable_and_dump_data_section): add new
4122         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
4123         5.0 happy.
4124
4125 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
4126
4127         * console-x.h (x_device): New member modifier_release_time.
4128         * event-Xt.c (x_handle_sticky_modifiers):
4129         Bound interval modifier keys are sticky.
4130         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
4131         * events.h: extern it.
4132
4133 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
4134
4135         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
4136
4137 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
4138
4139         * event-stream.c (execute_command_event): Preserve current_events
4140         and the like when event is misc-user-event.
4141         Inhibit quit during the call to maybe_echo_keys.
4142
4143 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
4144
4145         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
4146         symlink when buffer is killed.
4147         (inhibit_clash_detection): New variable.
4148
4149 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
4150
4151         * console.c (Fset_input_method): Trigger redisplay on tty.
4152
4153 2000-11-07  Martin Buchholz  <martin@xemacs.org>
4154
4155         * process.c (Fprocess_status): Revert to previous behavior:
4156         (process-status "nosuchprocess") ==> nil
4157
4158 2000-11-06  Martin Buchholz  <martin@xemacs.org>
4159
4160         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
4161         Work around another GCC 2.95.2 optimizer bug.
4162
4163 2000-11-02  Martin Buchholz  <martin@xemacs.org>
4164
4165         * process.c (Fget_process): Use LIST_LOOP_2.
4166         (kill_buffer_processes): Use LIST_LOOP_2.
4167
4168         * minibuf.c (Fall_completions):
4169         Delete old non-functional code for FSF fourth argument.
4170
4171         * frame.c (frame_matches_frame_spec):
4172         Renamed from `frame_matches_frametype'.  Update all callers.
4173         (device_matches_device_spec):
4174         Renamed from 'device_matches_console_spec'.  Update all callers.
4175
4176         * doc.c (Fsubstitute_command_keys):
4177         Remove buffer overflow crash.  Small code cleanups.
4178
4179         * casetab.c (check_case_table): Simpler code.
4180
4181         * window.c (Freplace_buffer_in_windows):
4182         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
4183         (and similar implementation) as Fdelete_windows_on.
4184         Update all callers.
4185
4186         * alloc.c (Fmake_list):
4187         * alloc.c (make_vector):
4188         * alloc.c (Fmake_vector):
4189         * alloc.c (make_bit_vector):
4190         * alloc.c (Fmake_bit_vector):
4191         * alloc.c (Fbit_vector):
4192         * alloc.c (Fmake_string):
4193         * alloc.c (Fpurecopy):
4194         * alloc.c (Fmemory_limit):
4195         * buffer.c:
4196         * buffer.c (Fget_buffer):
4197         * buffer.c (Fkill_buffer):
4198         * buffer.c (complex_vars_of_buffer):
4199         * bytecode.c (Fcompiled_function_stack_depth):
4200         * callint.c (Fprefix_numeric_value):
4201         * event-stream.c:
4202         * event-stream.c (Fread_key_sequence):
4203         * casetab.c:
4204         * casetab.c (Fcase_table_p):
4205         * casetab.c (check_case_table):
4206         * casetab.c (Fset_case_table):
4207         * casetab.c (Fset_standard_case_table):
4208         * chartab.c:
4209         * chartab.c (Fchar_table_type):
4210         * chartab.c (Freset_char_table):
4211         * chartab.c (Fget_char_table):
4212         * chartab.c (Fget_range_char_table):
4213         * chartab.c (Fput_char_table):
4214         * chartab.c (Fmap_char_table):
4215         * chartab.c (Fcategory_table_p):
4216         * chartab.c (Fcheck_category_at):
4217         * chartab.c (Fchar_in_category_p):
4218         * chartab.c (Fcategory_table):
4219         * chartab.c (Fcopy_category_table):
4220         * chartab.c (Fset_category_table):
4221         * chartab.c (Fcategory_designator_p):
4222         * chartab.c (Fcategory_table_value_p):
4223         * cmds.c (Fdelete_char):
4224         * cmds.c (Fdelete_backward_char):
4225         * cmds.c (Fself_insert_command):
4226         * cmds.c (Fself_insert_internal):
4227         * console.c (Fvalid_console_type_p):
4228         * console.c (Fcdfw_console):
4229         * console.c (Fconsole_type):
4230         * console.c (Fconsole_name):
4231         * console.c (Fconsole_device_list):
4232         * console.c (Fconsole_on_window_system_p):
4233         * data.c:
4234         * data.c (Feq):
4235         * data.c (Fold_eq):
4236         * data.c (Fsubr_interactive):
4237         * data.c (Fchar_to_int):
4238         * data.c (Fint_to_char):
4239         * data.c (Fsetcar):
4240         * data.c (Fsetcdr):
4241         * data.c (Fnumber_to_string):
4242         * data.c (Fstring_to_number):
4243         * data.c (Frem):
4244         * database.c (mark_database):
4245         * database.c (finalize_database):
4246         * database.c (Fdatabase_live_p):
4247         * database.c (Fdatabasep):
4248         * device-x.c (Fx_get_resource):
4249         * device.c (Fdfw_device):
4250         * dired.c:
4251         * dired.c (Ffile_name_completion):
4252         * dired.c (Ffile_name_all_completions):
4253         * dired.c (Fuser_name_completion):
4254         * dired.c (Fuser_name_completion_1):
4255         * dired.c (Fuser_name_all_completions):
4256         * doc.c (Fdocumentation):
4257         * doc.c (Fdocumentation_property):
4258         * doc.c (Fsubstitute_command_keys):
4259         * editfns.c:
4260         * editfns.c (Fchar_to_string):
4261         * editfns.c (Fstring_to_char):
4262         * editfns.c (Ftemp_directory):
4263         * editfns.c (Finsert_char):
4264         * editfns.c (Fbuffer_substring_no_properties):
4265         * editfns.c (Fnarrow_to_region):
4266         * editfns.c (Fchar_equal):
4267         * editfns.c (Fchar_Equal):
4268         * editfns.c (Ftranspose_regions):
4269         * emacs.c (Fdump_emacs):
4270         * eval.c (Fthrow):
4271         * eval.c (Fcommand_execute):
4272         * eval.c (Fautoload):
4273         * eval.c (Fbacktrace):
4274         * eval.c (Fbacktrace_frame):
4275         * events.c:
4276         * events.c (Fcopy_event):
4277         * events.c (Fcharacter_to_event):
4278         * events.c (Fevent_button):
4279         * events.c (Fevent_process):
4280         * extents.c:
4281         * extents.c (Fnext_extent_change):
4282         * extents.c (Fextent_property):
4283         * faces.c (Ffacep):
4284         * faces.c (Fmake_face):
4285         * file-coding.c:
4286         * file-coding.c (Fencode_shift_jis_char):
4287         * file-coding.c (Fencode_big5_char):
4288         * fileio.c (Ffile_name_directory):
4289         * fileio.c (Ffile_name_nondirectory):
4290         * fileio.c (Ffile_name_as_directory):
4291         * fileio.c (Fdirectory_file_name):
4292         * fileio.c (Ffile_truename):
4293         * fileio.c (Fsubstitute_in_file_name):
4294         * fileio.c (Ffile_modes):
4295         * fileio.c (Fset_file_modes):
4296         * fileio.c (Fset_default_file_modes):
4297         * fileio.c (Fverify_visited_file_modtime):
4298         * floatfns.c (Facos):
4299         * floatfns.c (Fasin):
4300         * floatfns.c (Fatan):
4301         * floatfns.c (Fcos):
4302         * floatfns.c (Fsin):
4303         * floatfns.c (Ftan):
4304         * floatfns.c (Fbessel_j0):
4305         * floatfns.c (Fbessel_j1):
4306         * floatfns.c (Fbessel_jn):
4307         * floatfns.c (Fbessel_y0):
4308         * floatfns.c (Fbessel_y1):
4309         * floatfns.c (Fbessel_yn):
4310         * floatfns.c (Ferf):
4311         * floatfns.c (Ferfc):
4312         * floatfns.c (Flog_gamma):
4313         * floatfns.c (Fexp):
4314         * floatfns.c (Fexpt):
4315         * floatfns.c (Flog):
4316         * floatfns.c (Flog10):
4317         * floatfns.c (Fsqrt):
4318         * floatfns.c (Fcube_root):
4319         * floatfns.c (Facosh):
4320         * floatfns.c (Fasinh):
4321         * floatfns.c (Fatanh):
4322         * floatfns.c (Fcosh):
4323         * floatfns.c (Fsinh):
4324         * floatfns.c (Ftanh):
4325         * floatfns.c (Fabs):
4326         * floatfns.c (Ffloat):
4327         * floatfns.c (Flogb):
4328         * floatfns.c (Fceiling):
4329         * floatfns.c (Ffloor):
4330         * floatfns.c (Fround):
4331         * floatfns.c (Ftruncate):
4332         * floatfns.c (Ffceiling):
4333         * floatfns.c (Fffloor):
4334         * floatfns.c (Ffround):
4335         * floatfns.c (Fftruncate):
4336         * fns.c (Fstring_equal):
4337         * fns.c (Fstring_lessp):
4338         * fns.c (concat2):
4339         * fns.c (concat3):
4340         * fns.c (vconcat2):
4341         * fns.c (vconcat3):
4342         * fns.c (Fsubstring):
4343         * fns.c (Fassoc):
4344         * fns.c (Fold_assoc):
4345         * fns.c (assoc_no_quit):
4346         * fns.c (Fassq):
4347         * fns.c (Fold_assq):
4348         * fns.c (assq_no_quit):
4349         * fns.c (Frassoc):
4350         * fns.c (Fold_rassoc):
4351         * fns.c (Frassq):
4352         * fns.c (Fold_rassq):
4353         * fns.c (rassq_no_quit):
4354         * fns.c (Fremassoc):
4355         * fns.c (remassoc_no_quit):
4356         * fns.c (Fremassq):
4357         * fns.c (remassq_no_quit):
4358         * fns.c (Fremrassoc):
4359         * fns.c (Fremrassq):
4360         * fns.c (remrassq_no_quit):
4361         * fns.c (Fsort):
4362         * fns.c (Fplist_get):
4363         * fns.c (Fplist_put):
4364         * fns.c (Fplist_remprop):
4365         * fns.c (Fplist_member):
4366         * fns.c (Flax_plist_get):
4367         * fns.c (Flax_plist_put):
4368         * fns.c (Flax_plist_remprop):
4369         * fns.c (Flax_plist_member):
4370         * fns.c (Fequal):
4371         * fns.c (Fold_equal):
4372         * fns.c (Frequire):
4373         * fns.c (Fbase64_encode_region):
4374         * fns.c (Fbase64_encode_string):
4375         * fns.c (Fbase64_decode_region):
4376         * frame.c:
4377         * frame.c (frame_matches_frame_spec):
4378         * frame.c (device_matches_device_spec):
4379         * frame.c (next_frame):
4380         * frame.c (previous_frame):
4381         * frame.c (Fnext_frame):
4382         * frame.c (Fprevious_frame):
4383         * frame.c (Fframe_property):
4384         * frame.c (Fset_frame_height):
4385         * frame.c (Fset_frame_size):
4386         * frame.h:
4387         * glyphs.c:
4388         * glyphs.c (if):
4389         * glyphs.c (decode_error_behavior_flag):
4390         * glyphs.c (Fmake_image_instance):
4391         * indent.c (Findent_to):
4392         * intl.c (Fignore_defer_gettext):
4393         * keymap.c (Fkeymapp):
4394         * keymap.c (Flookup_key):
4395         * lread.c:
4396         * lread.c (Fload_internal):
4397         * lread.c (Feval_buffer):
4398         * lread.c (Feval_region):
4399         * macros.c (Fexecute_kbd_macro):
4400         * marker.c (set_marker_internal):
4401         * marker.c (Fset_marker):
4402         * marker.c (set_marker_restricted):
4403         * marker.c (Fcopy_marker):
4404         * marker.c (noseeum_copy_marker):
4405         * menubar.c:
4406         * menubar.c (Fpopup_menu):
4407         * minibuf.c:
4408         * mule-charset.c (Fcharset_name):
4409         * mule-charset.c (Fchar_charset):
4410         * mule-charset.c (Fchar_octet):
4411         * mule-charset.c (Fsplit_char):
4412         * mule-wnnfns.c (Fwnn_open):
4413         * mule-wnnfns.c (Fwnn_dict_comment):
4414         * mule-wnnfns.c (Fwnn_quit_henkan):
4415         * mule-wnnfns.c (Fwnn_word_toroku):
4416         * mule-wnnfns.c (Fwnn_word_sakujo):
4417         * mule-wnnfns.c (Fwnn_word_use):
4418         * mule-wnnfns.c (Fwnn_hindo_set):
4419         * objects.c:
4420         * objects.c (Fmake_color_instance):
4421         * objects.c (Fmake_font_instance):
4422         * print.c (Fwrite_char):
4423         * process.c:
4424         * process.c (mark_process):
4425         * process.c (print_process):
4426         * process.c (get_process_from_usid):
4427         * process.c (Fprocessp):
4428         * process.c (Fprocess_live_p):
4429         * process.c (Fget_process):
4430         * process.c (Fget_buffer_process):
4431         * process.c (get_process):
4432         * process.c (Fprocess_id):
4433         * process.c (Fprocess_name):
4434         * process.c (Fprocess_command):
4435         * process.c (init_process_io_handles):
4436         * process.c (start_process_unwind):
4437         * process.c (Fstart_process_internal):
4438         * process.c (Fopen_multicast_group_internal):
4439         * process.c (Fset_process_window_size):
4440         * process.c (read_process_output):
4441         * process.c (send_process):
4442         * process.c (Fprocess_tty_name):
4443         * process.c (Fset_process_buffer):
4444         * process.c (Fprocess_buffer):
4445         * process.c (Fprocess_mark):
4446         * process.c (set_process_filter):
4447         * process.c (Fset_process_filter):
4448         * process.c (Fprocess_filter):
4449         * process.c (Fprocess_send_region):
4450         * process.c (Fprocess_send_string):
4451         * process.c (exec_sentinel):
4452         * process.c (Fset_process_sentinel):
4453         * process.c (Fprocess_sentinel):
4454         * process.c (status_notify):
4455         * process.c (Fprocess_status):
4456         * process.c (Fprocess_exit_status):
4457         * process.c (process_send_signal):
4458         * process.c (Fprocess_send_eof):
4459         * process.c (deactivate_process):
4460         * process.c (remove_process):
4461         * process.c (Fdelete_process):
4462         * process.c (kill_buffer_processes):
4463         * process.c (Fprocess_kill_without_query):
4464         * process.c (Fprocess_kill_without_query_p):
4465         * rangetab.c:
4466         * rangetab.c (Fget_range_table):
4467         * rangetab.c (Fput_range_table):
4468         * rangetab.c (Fremove_range_table):
4469         * rangetab.c (Fclear_range_table):
4470         * search.c:
4471         * search.c (Fskip_chars_forward):
4472         * search.c (Fskip_chars_backward):
4473         * search.c (Fskip_syntax_forward):
4474         * search.c (Fskip_syntax_backward):
4475         * search.c (search_command):
4476         * search.c (Freplace_match):
4477         * search.c (Fregexp_quote):
4478         * select.c (Fown_selection_internal):
4479         * select.c (Fselection_owner_p):
4480         * select.c (Fselection_exists_p):
4481         * select.c (Fget_selection_internal):
4482         * specifier.c:
4483         * symbols.c:
4484         * symbols.c (Fintern):
4485         * symbols.c (Fintern_soft):
4486         * symbols.c (Funintern):
4487         * symbols.c (Fapropos_internal):
4488         * symbols.c (Fset_default):
4489         * syntax.c:
4490         * syntax.c (Fsyntax_table_p):
4491         * syntax.c (Fcopy_syntax_table):
4492         * syntax.c (Fset_syntax_table):
4493         * syntax.c (Fchar_syntax):
4494         * syntax.c (syntax_match):
4495         * syntax.c (Fmatching_paren):
4496         * syntax.c (Fforward_word):
4497         * syntax.c (scan_lists):
4498         * syntax.c (Fscan_lists):
4499         * syntax.c (Fscan_sexps):
4500         * syntax.c (Fparse_partial_sexp):
4501         * toolbar.c (Fcheck_toolbar_button_syntax):
4502         * tooltalk.doc:
4503         * window.c:
4504         * window.c (Fwindowp):
4505         * window.c (Fwindow_live_p):
4506         * window.c (Fwindow_point):
4507         * window.c (Fdelete_window):
4508         * window.c (Fnext_window):
4509         * window.c (Fprevious_window):
4510         * window.c (Fother_window):
4511         * window.c (window_loop):
4512         * window.c (Fget_lru_window):
4513         * window.c (Fsplit_window):
4514         * window.c (Fenlarge_window):
4515         * window.c (Fenlarge_window_pixels):
4516         * window.c (Fshrink_window):
4517         * window.c (Fshrink_window_pixels):
4518         * window.c (change_window_height):
4519         * window.c (Fwindow_configuration_p):
4520         * window.c (Fcurrent_window_configuration):
4521         * window.h:
4522         * casefiddle.c (casify_object):
4523         * casefiddle.c (Fupcase):
4524         * casefiddle.c (Fdowncase):
4525         * casefiddle.c (Fcapitalize):
4526         * casefiddle.c (Fupcase_initials):
4527         * casefiddle.c (casify_region_internal):
4528         * casefiddle.c (casify_region):
4529         * casefiddle.c (Fupcase_region):
4530         * casefiddle.c (Fdowncase_region):
4531         * casefiddle.c (Fcapitalize_region):
4532         * casefiddle.c (Fupcase_initials_region):
4533         * casefiddle.c (Fupcase_word):
4534         * casefiddle.c (Fdowncase_word):
4535         * casefiddle.c (Fcapitalize_word):
4536         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
4537         Replace 0 with '\0' when working with bytes.
4538         Replace initial "(" with "\(" in docstrings.
4539
4540 2000-11-01  Martin Buchholz  <martin@xemacs.org>
4541
4542         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
4543
4544         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
4545
4546 2000-10-31  Martin Buchholz  <martin@xemacs.org>
4547
4548         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
4549
4550 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
4551
4552         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
4553         correctly.
4554
4555 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
4556
4557         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
4558         (inhibit_auto_save_session): New variable.
4559         (vars_of_fileio): Declare and initialize them.
4560         * fileio.c (Fdo_auto_save): Don't create session file if
4561         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
4562
4563 2000-10-31  Martin Buchholz  <martin@xemacs.org>
4564
4565         * sgiplay.c (play_internal): C++ compilability.
4566         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
4567         * callproc.c (Fold_call_process_internal):
4568         Remove unused vars `env', `first'.
4569         * scrollbar.c (update_scrollbar_instance):
4570         #### unused var `current_window'.
4571         * redisplay-tty.c: Put currently unused vars insert_mode_on,
4572         etc. within #ifdef NOT_YET.
4573         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
4574         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
4575         * specifier.c (specifier_instance):
4576         #### unused var `tag'.
4577         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
4578
4579 2000-10-27  Martin Buchholz  <martin@xemacs.org>
4580
4581         * fns.c (Fbutlast):
4582         * fns.c (list_sort):
4583         * fns.c (Ffillarray):
4584         * fns.c (bytecode_nconc2):
4585         * fns.c (Fnconc):
4586         * fns.c (mapcar1):
4587         * fns.c (Fmapconcat):
4588         Be pedantically 64-bit correct.  For the time when someone will
4589         want to have a list with length > 2**32.
4590
4591         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
4592         Work around MIPSpro compiler bug.
4593
4594         * process-unix.c (unix_kill_child_process): Add snarky comment.
4595         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
4596
4597         * config.h.in: Oops, _getpt ==> _getpty
4598
4599 2000-10-26  Martin Buchholz  <martin@xemacs.org>
4600
4601         * config.h.in:
4602         * regex.c:
4603         Use void*, not char*, as return type of alloca().
4604
4605         * alloc.c (free_marker): Side effect inside assert expression!
4606
4607 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
4608
4609         * mule-charset.c (Fset_charset_ccl_program): To check
4610         if the given ccl program is valid, use setup_ccl_program()
4611         instead of CHECK_VECTOR().
4612         (Fmake_charset): Likewise.
4613
4614 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
4615
4616         * faces.c (get_extent_fragment_face_cache_index):
4617         Fix cachel.merged_faces memory leak.
4618
4619 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
4620
4621         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
4622         Reset MSB of octets obtained by DECODE_SJIS
4623         because of the incompatibility with Emacs.
4624         (ccl_driver)<CCL_ENCODE_SJIS>:
4625         Set MSB of octets before passing them to
4626         ENCODE_SJIS because of the incompatibility
4627         with Emacs.
4628
4629 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
4630
4631         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
4632         (DECLARE_LRECORD): Undo the last change.
4633         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
4634
4635 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
4636
4637         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
4638         the implementation to lrecord_implementations_table.
4639
4640 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
4641
4642         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
4643         initial value of `lrecord_type_##c_name' and
4644         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
4645         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
4646         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
4647         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
4648         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
4649
4650 2000-10-17  Martin Buchholz  <martin@xemacs.org>
4651
4652         * miscplay.c (sndcnv8S_2mono):
4653         (sndcnv2monounsigned):
4654         (sndcnvULaw_2linear):
4655         (sndcnv16swap):
4656         Remove implementation-defined behavior.
4657
4658 2000-10-12  Martin Buchholz  <martin@xemacs.org>
4659
4660         * input-method-xlib.c: Warning suppression.
4661
4662 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
4663
4664         * mule-ccl.c: Sync up with Emacs 21.0.90.
4665         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
4666         Do nothing.
4667         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
4668         Likewise.
4669         (ccl_driver[WriteMultibyteChar2]): Bug fix.
4670         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
4671         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
4672         leading char belongs to official 2-dimensional charset.
4673         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
4674         write the given character as is.  Otherwise,
4675         if it is a multibyte char, convert it by
4676         non_ascii_set_charptr_emchar, then write it.
4677         (CCL_WRITE_STRING): Likewise.
4678         (ccl_get_compiled_code): New function.
4679         (setup_ccl_program): When ccl_prog is invalid,
4680         return -1.
4681         (Fregister_code_conversion_map): New function.
4682         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
4683
4684         * mule-ccl.h: Sync up with Emacs 21.0.90.
4685         (Fregister_ccl_program): export it.
4686
4687         * redisplay-msw.c (separate_textual_runs):
4688         If ccl program is not valid, don't do ccl conversion.
4689
4690         * redisplay-x.c (separate_textual_runs): Ditto.
4691
4692         * file-coding.c (Fmake_coding_system):
4693         When type is ccl and value is vector, register it
4694         with a proper symbol.  And checks whether the
4695         given ccl program is valid.
4696         (mule_decode): When calling ccl_driver, if src indicates
4697         NULL pointer, set an empty string instead.
4698         (mule_encode): Likewise.
4699
4700 2000-10-11  Martin Buchholz  <martin@xemacs.org>
4701
4702         The following large batch of changes gets us back to a state of
4703         C++ compilability.  Extbyte is now a char, which means that
4704         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
4705
4706         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
4707
4708         * sound.c (Fplay_sound): Type correctness.
4709
4710         * select-x.c (hack_motif_clipboard_selection): Type correctness.
4711         (x_get_window_property): Type correctness.
4712         (receive_incremental_selection): unsigned char ==> Extbyte
4713         (selection_data_to_lisp_data): unsigned char ==> Extbyte
4714         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
4715         (Fx_store_cutbuffer_internal): Type correctness.
4716
4717         * process-unix.c (try_to_initialize_subtty): Type correctness.
4718
4719         * objects-x.c (x_print_color_instance): Type correctness.
4720         (x_print_font_instance): Type correctness.
4721         (x_list_fonts): SExtbyte ==> Extbyte.
4722         (valid_x_font_name_p): SExtbyte ==> Extbyte.
4723         (x_find_charset_font): SExtbyte ==> Extbyte.
4724         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
4725         (truename_via_XListFonts): SExtbyte ==> Extbyte.
4726         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
4727         Use bufbyte_strcmp.
4728
4729         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
4730         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
4731         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
4732         (BYTE_C0_P): Use bit ops for char-signedness safety.
4733         (BYTE_C1_P): Use bit ops for char-signedness safety.
4734         (CHARSET_BY_LEADING_BYTE):
4735         (CHARSET_BY_ATTRIBUTES):
4736         Always use inline function.
4737         Use type_checking_assert.
4738         Hide chlook.
4739
4740         * mule-charset.c (non_ascii_charptr_copy_char):
4741         Modify to work with both ASCII and non-ASCII characters.
4742         Improve docs and variable names.
4743         Replace over-clever fall-through switch with a simple loop.
4744         (Lstream_get_emchar_1):
4745         Replace over-clever fall-through switch with a simple loop.
4746
4747         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
4748         Warning suppression.
4749
4750         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
4751         the return value of Lstream_getc, which could be EOF as well.
4752
4753         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
4754
4755         * lisp.h: Make Extbyte a char, not unsigned char, so that external
4756         APIs can be used on Extbytes without casts.  Risky!
4757         (SExtbyte): Remove.
4758         (UExtbyte): Remove.
4759
4760         * input-method-xlib.c (XIM_init_device):
4761         Use Xlib.h instead of IntrinsicP.h.
4762         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
4763         which will break in X11R7.
4764         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
4765         to call XRegisterIMInstantiateCallback with correct types.
4766
4767         * gui-x.c (button_item_to_widget_value): Type correctness.
4768
4769         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
4770
4771         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
4772         (xbm_instantiate_1): Type correctness.
4773         (BUILD_GLYPH_INST):  Type correctness.
4774
4775         * fileio.c (Fsubstitute_in_file_name): Type correctness.
4776
4777         * file-coding.c:
4778         (decode_coding_sjis):
4779         (decode_coding_big5):
4780         (decode_coding_ucs4):
4781         (decode_coding_utf8):
4782         (decode_coding_iso2022):
4783         (decode_coding_no_conversion):
4784         Make all decoding functions take an Extbyte * arg.
4785         (encode_coding_sjis):
4786         (encode_coding_big5):
4787         (encode_coding_ucs4):
4788         (encode_coding_utf8):
4789         (encode_coding_iso2022):
4790         (encode_coding_no_conversion):
4791         Make all encoding functions take a Bufbyte * arg.
4792         Use size_t instead of unsigned int for memory sizes.
4793         Only cast to unsigned char whenever dereferencing Extbyte *.
4794
4795         * doc.c (unparesseuxify_doc_string): Type correctness.
4796
4797         * console-x.c (split_up_display_spec):
4798         Rewrite without using details of internal string representation.
4799         (x_semi_canonicalize_device_connection): Type correctness.
4800
4801         * config.h.in:
4802         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
4803         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
4804         (HAVE_XFREE386): Removed.
4805
4806         * buffer.h (DEC_CHARPTR): `const' correctness.
4807         (bufbyte_strcmp): New.
4808         (bufbyte_memcmp): New.
4809
4810         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
4811
4812         * buffer.h (XCHAR_OR_CHAR_INT):
4813         Always use inline function.
4814         Remove redundant type checking assert() - XINT will abort quite nicely.
4815
4816 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
4817
4818         * search.c (Freplace_match): Set newtext to an empty string.
4819
4820 2000-10-10  Martin Buchholz  <martin@xemacs.org>
4821
4822         * s/decosf1-3.h: Remove #include of stropts.h
4823         * s/ptx.h: Remove #include of stropts.h
4824         * s/usg5-4.h: Remove #include of stropts.h
4825         * sysproc.h:
4826         * config.h.in:
4827         Use stropts.h, not sys/stropts.h.
4828         Use strtio.h, not sys/strtio.h.
4829
4830 2000-10-04  Martin Buchholz <martin@xemacs.org>
4831
4832         * XEmacs 21.2.36 is released.
4833
4834 2000-09-21  Andy Piper  <andy@xemacs.org>
4835
4836         * glyphs-x.c (x_redisplay_widget): make sure non-structural
4837         changes still involve copying the widget tree.
4838         (update_widget_face): make sure a change is register in the widget
4839         tree. Call update_tab_widget_face appropriately.
4840         (update_tab_widget_face): ditto.
4841         (x_tab_control_redisplay): make sure non-structural changes still
4842         involve copying the widget tree.
4843
4844 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
4845
4846         * lread.c (locate_file): Check the path element is non-nil.
4847
4848 2000-10-02  Martin Buchholz  <martin@xemacs.org>
4849
4850         * lisp.h: Warning suppression for SCO compilers.
4851
4852         * redisplay-tty.c (reset_tty_modes): Fix crash.
4853         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
4854
4855 2000-09-27  Martin Buchholz  <martin@xemacs.org>
4856
4857         Big signal/process handling overhaul.  Bugs fixed:
4858         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
4859         M-x comint-kill-subjob should work for both values nil and t of
4860         process-connection-type. It was broken on most platforms.
4861         Testing on Irix and Cygwin still needed.  Other plaforms tested.
4862         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
4863         * process-unix.c: Signal/Process handling overhaul.
4864         (pty_name): make 64 bytes, as `expect' does, for paranoia.
4865         (allocate_pty): Use all available modern methods of allocating
4866         ptys, falling back to old style BSD allocation as a last resort.
4867         Use allegedly more secure Unix98 pty allocation by default.
4868         (allocate_pty_the_old_fashioned_way): New. the last resort.
4869         (unix_create_process): Push ptem, ldterm, ttcompat where
4870         available.  Autoconfiscate.
4871         (try_to_initialize_subtty): New.
4872         (unix_kill_child_process): Proper signal handling for ptys on most
4873         platforms, using special knowledge of AIX, BSD, etc...
4874         (unix_create_process): Always disconnect_controlling_terminal() for
4875         subprocesses, whether using ptys or not.
4876         * process.h: Remove old getpt-dependent PTY code.
4877         * process.c (Fprocess_send_signal): New, obvious generic function.
4878         (decode_signal): New.
4879         (Finterrupt_process):
4880         (Fkill_process):
4881         (Fquit_process):
4882         (Fstop_process):
4883         (Fcontinue_process):
4884         (Fsignal_process): Use decode_signal.
4885         (process_send_signal):
4886         Many docstring corrections.
4887         Allow any signal to be sent to a process object.
4888         * config.h.in: Add symbols for big signal/process overhaul.
4889         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
4890         * sysproc.h: Include process-related headers, where available:
4891         sys/stropts.h sys/strtio.h pty.h libutil.h
4892         * s/irix4-0.h:
4893         * s/irix5-0.h:
4894         * s/cygwin32.h:
4895         * s/gnu.h:
4896         * s/linux.h:
4897         * s/hpux.h:
4898         * s/aix3-1.h:
4899         Remove old S&M pty stuff.
4900         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
4901         * systty.h: Simplify cpp hackery, improve comments.
4902         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
4903
4904         * editfns.c (Fformat_time_string):
4905         Be a little more paranoid with the return value of ctime.
4906
4907         * fileio.c (check_executable):
4908         (check_writable):
4909         Use symbolic constants X_OK, W_OK.
4910
4911         * console-x.c (split_up_display_spec): Fix a warning.
4912
4913 2000-10-02  Martin Buchholz  <martin@xemacs.org>
4914
4915         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
4916         * ntproc.c (sys_spawnve): make_string ==> build_string
4917         Small clarity improvements.
4918
4919 2000-09-30  Martin Buchholz  <martin@xemacs.org>
4920
4921         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
4922
4923         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
4924
4925         * config.h.in (HAVE_STRCASECMP): Remove.
4926
4927 2000-09-29  Martin Buchholz  <martin@xemacs.org>
4928
4929         * redisplay-output.c (redisplay_output_pixmap):
4930         Cleaner and possibly more 64-bit correct code.
4931
4932 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
4933
4934         * dumper.c (pdump_load_finish): move restoration of
4935         `noninteractive1' to emacs.c (main_1).
4936         * emacs.c (main_1): protect LISP-visible command-line flags
4937         from pdump_load().
4938
4939 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
4940
4941         * Makefile.in.in (versionclean):  Use EXE_TARGET and
4942         DUMP_TARGET instead of literal program names.
4943
4944 2000-09-20  Martin Buchholz  <martin@xemacs.org>
4945
4946         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
4947
4948 2000-09-19  Martin Buchholz  <martin@xemacs.org>
4949
4950         * *: Spelling mega-patch
4951
4952 2000-09-19  Martin Buchholz  <martin@xemacs.org>
4953
4954         * fns.c (bad_bad_turtle):
4955         Delete "Eek!" comment, since we fixed the bug to which it refers.
4956
4957 2000-09-16  Martin Buchholz  <martin@xemacs.org>
4958
4959         * alloca.c: Replace REGISTER with register.
4960
4961 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
4962
4963         * file-coding.c (ucs_to_char): Use countof.
4964
4965 2000-09-16  Martin Buchholz  <martin@xemacs.org>
4966
4967         * file-coding.c: (ucs_to_char):
4968         (complex_vars_of_file_coding):
4969         Use countof instead of sizeof.
4970         Use CHECK_NATNUM instead of CHECK_INT.
4971
4972         * sysdep.c (strcasecmp): Remove.
4973         * device-x.c (ascii_strcasecmp): New.
4974         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
4975         Avoid using non-standard non-portable strcasecmp.
4976
4977 2000-09-16  Martin Buchholz  <martin@xemacs.org>
4978
4979         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
4980         * font-lock.c: remove reference to emacsfns.h.
4981         * search.c: small doc improvement.
4982         * event-Xt.c: correct file names in comments.
4983         * console-x.h Correct file names in comments.
4984         * frame.c: Correct file names in comments.
4985         * event-stream.c: remove Energize from comments.
4986
4987 2000-09-15  Martin Buchholz  <martin@xemacs.org>
4988
4989         * symeval.h (DEFERROR_STANDARD):
4990         (DEFERROR):
4991         (DEFSYMBOL):
4992         (DEFSYMBOL_NO_DUMP):
4993         (DEFSYMBOL_MULTIWORD_PREDICATE):
4994         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
4995         (DEFKEYWORD):
4996         The construct &##name is not sensible C.
4997         Fixes compilation errors with Unixware native compiler.
4998
4999 2000-09-14  Martin Buchholz  <martin@xemacs.org>
5000
5001         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
5002         (next_frame_internal): Removed.  We now just have next_frame.
5003         (next_frame):
5004         Write a simpler and cleaner one-pass algorithm.
5005         Remove called_from_delete_device arg and #ifdefed-out code.
5006         (previous_frame):
5007         Renamed from prev_frame.  Update callers.
5008         Cleaned up to have an analogous implementation to next_frame.
5009         (other_visible_frames_internal): Remove the
5010         called_from_delete_device bogus arg, and hence, remove this
5011         function.  Just use other_visible_frames().
5012
5013         * window.c (Fnext_window):
5014         Prettify docstring.
5015         Since next_frame() is guaranteed to return a frame, remove check
5016         for nil inserted in previous patch.
5017         (Fprevious_window):
5018         Prettify docstring.
5019         Make code look more like Fnext_window.
5020         (window_loop):
5021         Respect the `console' arg when iterating through windows.
5022         Fixes bug: (get-buffer-window buffer t device) not respecting
5023         the `device' arg.
5024         This function needs more work, as others have pointed out.
5025
5026         * frame.h: Rename prev_frame to previous_frame.
5027         device_matches_console_spec no longer takes a `frame' arg.
5028
5029         * s/gnu.h:
5030         * s/linux.h:
5031         * s/hpux.h:
5032         Use EMACS_BLOCK_SIGNAL instead of sigblock.
5033         From "Golubev I. N." <gin@mo.msk.ru>.
5034
5035         * make-src-depend: Fix typo.
5036
5037 2000-09-13  Martin Buchholz  <martin@xemacs.org>
5038
5039         * window.c (Fnext_window):
5040         next_frame() might return nil, not a frame.
5041         Fixes this crash:
5042         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
5043
5044         * frame.c (next_frame_internal):
5045         We've passed a frame if we've passed its device.
5046         Fixes this crash:
5047         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
5048 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
5049
5050 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
5051
5052         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
5053         Allow option to suppress accelerators in menu/dialog items.
5054         (populate_or_checksum_helper): Pass dialog title through above.
5055
5056 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
5057
5058         * event-msw.c (mswindows_key_to_emacs_keysym):
5059         Add "pause" key, fix "menu" key.
5060
5061 2000-09-09  Martin Buchholz  <martin@xemacs.org>
5062
5063         * eval.c (reinit_vars_of_eval):
5064         Increase max_lisp_eval_depth to 1000,
5065         required for thai-xtis.el to byte-compile under some circumstances.
5066
5067 2000-09-04  Martin Buchholz  <martin@xemacs.org>
5068
5069         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
5070         From Kenichi Handa.
5071
5072 2000-09-01  Martin Buchholz  <martin@xemacs.org>
5073
5074         * make-src-depend: Make the generated Makefiles smaller.
5075
5076         * s/hpux.h (SETUP_SLAVE_PTY):
5077         Provide a %d in the format string for the errno argument.
5078
5079         * editfns.c (Ftemp_directory):
5080         Warning fix.
5081         Avoid buffer overrun on very long file name.
5082
5083         * input-method-xlib.c (XIM_init_device):
5084         6th parameter of XRegisterIMInstantiateCallback has different
5085         pointer types on different OSes, so simply cast to (void *).
5086
5087         * unexhp9k800.c: Warning fixes.  Fiddly changes.
5088
5089         * sysdll.c (dll_open):
5090         shl_load will hang hard if passed a NULL filename.
5091         Simply return NULL for compatibility with dlopen.
5092         * sysdll.c: Conform to XEmacs coding standards.
5093
5094         * sysdep.c (get_pty_max_bytes):
5095         Support pty input lines longer than 512 bytes on HP-UX 10.20.
5096
5097 2000-08-31  Martin Buchholz  <martin@xemacs.org>
5098
5099         * tooltalk.c: Add #include <syssignal.h>
5100
5101 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
5102
5103         * s/hpux.h: Don't use undefined function sigunblock().
5104
5105 2000-08-31  Martin Buchholz  <martin@xemacs.org>
5106
5107         * config.h.in: Add HAVE_BALLOON_HELP.
5108         * emacs.c: Use HAVE_BALLOON_HELP.
5109         * Makefile.in.in (x_objs):
5110         Make Balloon Help conditional on finding shape.h.
5111
5112 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
5113
5114         * syntax.c (regex_emacs_buffer_p): New variable.
5115         * syntax.h (regex_emacs_buffer_p): extern.
5116         * search.c (looking_at_1):
5117         (string_match_1):
5118         (fast_string_match):
5119         (search_buffer): Set regex_emacs_buffer_p.
5120         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
5121         when before_dot, at_dot, after_dot.
5122
5123 2000-08-23  Andy Piper  <andy@xemacs.org>
5124
5125         * gui-x.c (popup_selection_callback): Only set action_occurred
5126         when we really have an image instance.
5127         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
5128
5129 2000-08-23  Andy Piper  <andy@xemacs.org>
5130
5131         * gui-msw.c (mswindows_handle_gui_wm_command): set
5132         action_occurred.
5133         * gui-x.c (popup_selection_callback): ditto.
5134
5135         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
5136         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
5137         (struct Lisp_Image_Instance): add action_occurred flag.
5138
5139         * glyphs.c (redisplay_subwindow): use action_occurred flag.
5140         (image_instance_changed): ditto.
5141         (reset_frame_subwindow_instance_cache): only unmap windows - do
5142         not remove them from the cache also.
5143
5144         * glyphs-widget.c (tab_control_update): better debug.
5145         (progress_gauge_update): ditto.
5146         (layout_update): ditto.
5147         (layout_instantiate): ditto.
5148         (tab_control_order_only_changed): cope with null pending items.
5149
5150         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
5151         debug. Force selection of an item when an action occurred. Cope
5152         with null pending_items.
5153         (mswindows_progress_gauge_redisplay): better debug.
5154         * glyphs-x.c (x_tab_control_redisplay): ditto.
5155
5156         * redisplay.c (redisplay_frame): reset the frame cache if the
5157         frame is garbaged.
5158
5159         * window.c (Fset_window_configuration): potentially re-enable
5160         frame cache reset.
5161         (window_unmap_subwindows): need to finalize instances here since
5162         it is only used in mark_window_as_deleted.
5163
5164 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
5165
5166         * nas.c (SndOpenDataForReading):
5167         nas.c (WaveOpenDataForReading):
5168         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
5169         Somehow escaped from the 2000-08-14 patch.
5170
5171 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5172
5173         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
5174         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
5175
5176 2000-08-21  Andy Piper  <andy@xemacs.org>
5177
5178         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
5179         window if it is not already displayed.
5180
5181         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
5182         it is not already displayed.
5183
5184         * window.c (Fset_window_configuration): don't reset the frame
5185         cache.
5186
5187         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
5188         instances from the frame cache if we are actually finalizing them.
5189         (reset_frame_subwindow_instance_cache): reset frame cache only
5190         after unmapping everything.
5191         (map_subwindow): set displayed flag after mapping.
5192
5193 2000-08-21  Martin Buchholz  <martin@xemacs.org>
5194
5195         * data.c (indirect_function):
5196         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
5197
5198         * eval.c (function_argcount):
5199         Use original function when signaling errors.
5200
5201 2000-08-18  Andy Piper  <andy@xemacs.org>
5202
5203         * frame.c (delete_frame_internal): use new
5204         free_frame_subwindow_instances name.
5205
5206         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
5207         (add_tab_item): make return type correct.
5208         (mswindows_tab_control_instantiate): assert index of tab.
5209         (mswindows_tab_control_redisplay): Re-code to use
5210         gui_item_equal_sans_selected and gui_item_list_find_selected.
5211
5212         * glyphs-widget.c (tab_control_update): Correct comment.
5213
5214         * window.c (window_unmap_subwindows): use new
5215         unmap_subwindow_instance_cache_mapper.
5216         (window_unmap_subwindows_cache_mapper): deleted.
5217         (Fset_window_configuration): comparisons should now be with
5218         EQ. Preserve the subwindow instance cache across configuration
5219         changes.
5220         (allocate_window): ditto.
5221         (make_dummy_parent): ditto.
5222
5223         * glyphs.c (free_frame_subwindow_instances): rename from
5224         free_frame_subwindow_instance_cache. finalize all instances rather
5225         than just those in the display cache.
5226         (finalize_all_subwindow_instances): walk windows unmapping and
5227         finalizing subwindows.
5228         (unmap_subwindow_instance_cache_mapper): moved from
5229         window.c. Allow finalization as well as unmapping.
5230
5231         * gui.c (gui_item_list_find_selected): new function.
5232
5233         * gui.h (gui_item_list_find_selected): declare.
5234
5235         * glyphs-x.c (x_tab_control_redisplay): pick tab
5236         explicitly. Re-code to use gui_item_equal_sans_selected and
5237         gui_item_list_find_selected.
5238
5239         * glyphs-x.h: add lwlib-utils.h
5240
5241         * buffer.c (Frecord_buffer): undo previous change.
5242
5243 2000-08-09  Vin Shelton  <acs@xemacs.org>
5244
5245         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
5246         possible.  Create temporary files more securely.  The patch was
5247         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
5248         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
5249         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
5250         for details.
5251
5252 2000-08-07  Ben Wing  <ben@xemacs.org>
5253
5254         * getloadavg.c: remove duplicate (and windows-breaking)
5255         includes of fcntl.h and sys/file.h.
5256
5257         * nt.c: remove duplicate getloadavg() definition.
5258
5259         * sysdll.h (Qdll_filename_encoding): add missing stand-in
5260         encodings.
5261
5262 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
5263
5264         * eval.c (function_argcount): If function needs to be autoloaded
5265         actually use the loaded definition.
5266         GCPRO function.
5267
5268 2000-08-05  Ben Wing  <ben@xemacs.org>
5269
5270         * getloadavg.c: add prototype for getloadavg().  remove
5271         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
5272         of the code).  remove duplicate header includes.
5273
5274         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
5275
5276         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
5277         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
5278         useful load average.
5279
5280         * alloc.c (reinit_alloc_once_early): removed references to
5281         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
5282         the lisp vars are the only things referencing the malloc_sbrk_*
5283         vars, and they were already if 0'd out.  these vars only exist
5284         in the older malloc.c, which is basically unused, and they're
5285         only for informational purposes.
5286
5287         * m\*.h: removed useless VIRT_ADDR_VARIES.
5288
5289         * m\powerpc.h: removed stray NO_ARG_ARRAY.
5290
5291 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
5292
5293         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
5294         color if the image is a mono pixmap.
5295
5296 2000-07-30  Ben Wing  <ben@xemacs.org>
5297
5298         * Makefile.in.in (release):
5299         Remove stray @.
5300
5301         * buffer.c (directory_is_current_directory):
5302         * dired-msw.c (mswindows_get_files):
5303         * dired.c:
5304         * dired.c (Fdirectory_files):
5305         * dired.c (file_name_completion_stat):
5306         * dired.c (Ffile_attributes):
5307         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
5308         preprocessor tricks, to avoid problems on some machines
5309         (e.g. SCO).
5310
5311         * callproc.c (egetenv): GC docs.
5312
5313         * console-msw.h:
5314         * console-msw.h (struct mswindows_dialog_id):
5315         * lrecord.h (lrecord_type):
5316         New object for use with MSW dialogs.
5317
5318         * console.h (struct console_methods):
5319         New enable/disable frame methods, for proper modal dialogs.
5320
5321         * device-msw.c (msprinter_default_printer): Fix to follow
5322         proper Mule conventions.
5323
5324         * device-msw.c:
5325         * device-msw.c (signal_open_printer_error):
5326         * device-msw.c (msprinter_init_device):
5327         * device-msw.c (ensure_not_printing):
5328         * device-msw.c (plist_get_margin):
5329         * device-msw.c (Fmsprinter_select_settings):
5330         * device-msw.c (finalize_devmode):
5331         * device-msw.c (Fmsprinter_settings_despecialize):
5332         * device-msw.c (signal_enum_priner_error):
5333         * extents.c (decode_extent):
5334         * extents.c (decode_map_extents_flags):
5335         * extents.c (decode_extent_at_flag):
5336         * extents.c (Fextent_at):
5337         * extents.c (Fextents_at):
5338         * extents.c (symbol_to_glyph_layout):
5339         [[[[2]]]] Use structured errors.
5340
5341         * dialog-msw.c:
5342         * dialog-msw.c (mswindows_is_dialog_msg):
5343         * dialog-msw.c (mark_mswindows_dialog_id):
5344         * dialog-msw.c (dialog_proc):
5345         * dialog-msw.c (handle_question_dialog_box):
5346         * dialog-msw.c (syms_of_dialog_mswindows):
5347         Define new object to clean up marking; use it as a dialog identifier.
5348         Call new delete-dialog-box-hook.
5349
5350         * dialog-x.c (dbox_selection_callback):
5351         * dialog-x.c (dbox_descriptor_to_widget_value):
5352         * dialog-x.c (x_make_dialog_box_internal):
5353         Call new delete-dialog-box-hook.
5354         Return an id.
5355
5356         * dialog.c:
5357         * dialog.c (syms_of_dialog):
5358         * dialog.c (vars_of_dialog):
5359         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
5360
5361         * eval.c:
5362         * eval.c (signal_call_debugger):
5363         when noninteractive, output stack traces on the console instead
5364         of in a (never-seen) buffer.
5365
5366         * eval.c (signal_type_error):
5367         * eval.c (invalid_argument_2):
5368         * lisp.h:
5369         new funs for use w/structured errors.
5370
5371         * event-Xt.c:
5372         * event-Xt.c (x_to_emacs_keysym):
5373         * event-Xt.c (describe_event):
5374         * event-Xt.c (emacs_Xt_event_handler):
5375         * event-Xt.c (vars_of_event_Xt):
5376         * event-msw.c:
5377         * event-msw.c (mswindows_wnd_proc):
5378         * event-msw.c (vars_of_event_mswindows):
5379         rename {x,mswindows}-debug-events to debug-{}-events for
5380         consistency with other debug-foo variables.
5381
5382         * event-stream.c:
5383         document next-event more clearly.
5384
5385         * fileio.c (Ffile_name_directory):
5386         * fileio.c (Ffile_name_nondirectory):
5387         * fileio.c (Funhandled_file_name_directory):
5388         * fileio.c (file_name_as_directory):
5389         * fileio.c (Ffile_name_as_directory):
5390         * fileio.c (directory_file_name):
5391         * fileio.c (Fdirectory_file_name):
5392         * fileio.c (Fmake_temp_name):
5393         * fileio.c (Ffile_truename):
5394         * fileio.c (Fsubstitute_in_file_name):
5395         * fileio.c (expand_and_dir_to_file):
5396         * fileio.c (barf_or_query_if_file_exists):
5397         * fileio.c (check_executable):
5398         * fileio.c (Ffile_exists_p):
5399         * fileio.c (Ffile_writable_p):
5400         * fileio.c (Ffile_directory_p):
5401         * fileio.c (Ffile_regular_p):
5402         * fileio.c (Ffile_modes):
5403         * fileio.c (Ffile_newer_than_file_p):
5404         * fileio.c (Fverify_visited_file_modtime):
5405         * fileio.c (Fset_visited_file_modtime):
5406         * fileio.c (auto_save_1):
5407         (1). (2).
5408         fix up gcpro's.
5409
5410         * frame-msw.c:
5411         * frame-msw.c (mswindows_init_frame_1):
5412         * frame-msw.c (mswindows_enable_frame):
5413         * frame-msw.c (error_frame_unsizable):
5414         * frame-msw.c (msprinter_init_frame_1):
5415         * frame-msw.c (msprinter_init_frame_3):
5416         * frame-msw.c (console_type_create_frame_mswindows):
5417         (2).
5418         implement new enable/disable frame methods.
5419
5420         * frame-x.c:
5421         * frame-x.c (x_enable_frame):
5422         * frame-x.c (console_type_create_frame_x):
5423         implement new enable/disable frame methods.
5424
5425         * frame.c:
5426         * frame.c (Fdisable_frame):
5427         * frame.c (syms_of_frame):
5428         * frame.h (struct frame):
5429         implement new enable/disable frame methods/functions.
5430
5431         * general-slots.h:
5432         add initial-focus.
5433
5434         * glyphs-msw.c (mswindows_widget_instantiate):
5435         comment that initial-focus should be implemented.
5436
5437         * glyphs-widget.c:
5438         * glyphs-widget.c (check_valid_instantiator):
5439         * glyphs-widget.c (check_valid_orientation):
5440         * glyphs-widget.c (check_valid_tab_orientation):
5441         * glyphs-widget.c (check_valid_justification):
5442         * glyphs-widget.c (check_valid_border):
5443         * glyphs-widget.c (check_valid_callback):
5444         * glyphs-widget.c (check_valid_int_or_function):
5445         * glyphs-widget.c (check_valid_string_or_vector):
5446         * glyphs-widget.c (check_valid_item_list_1):
5447         * glyphs-widget.c (widget_validate):
5448         * glyphs-widget.c (combo_box_validate):
5449         * glyphs-widget.c (widget_instantiate):
5450         * glyphs-widget.c (syms_of_glyphs_widget):
5451         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
5452         * glyphs-widget.c (image_instantiator_combo_box):
5453         * glyphs-widget.c (image_instantiator_scrollbar):
5454         * glyphs-widget.c (image_instantiator_tab_control):
5455         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
5456         (2).
5457         support (unimplemented) keyword initial-focus.
5458         reindent long macros.
5459
5460         * glyphs-x.c (x_redisplay_widget):
5461         * glyphs-x.c (x_button_instantiate):
5462         * glyphs-x.c (x_button_redisplay):
5463         * glyphs-x.c (x_progress_gauge_instantiate):
5464         * glyphs-x.c (x_edit_field_instantiate):
5465         * glyphs-x.c (x_combo_box_instantiate):
5466         * glyphs-x.c (x_tab_control_instantiate):
5467         * glyphs-x.c (x_label_instantiate):
5468         * gui-x.c:
5469         * gui-x.c (button_item_to_widget_value):
5470         * gui-x.c (gui_items_to_widget_values_1):
5471         * gui-x.c (gui_item_children_to_widget_values):
5472         * gui-x.c (gui_items_to_widget_values):
5473         * gui-x.h:
5474         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
5475         add new flag to gui-parsing routines to indicate whether
5476         accelerator specs should be supported.
5477
5478         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
5479
5480         * glyphs.h (struct Lisp_Image_Instance):
5481         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
5482         add initial-focus flag.
5483
5484         * gui.c:
5485         * gui.c (syms_of_gui):
5486         * gui.c (vars_of_gui):
5487         clean up menu-no-selection-hook.
5488
5489         * gui.h:
5490         support delete-dialog-box-hook.
5491
5492         * lread.c (Fload_internal):
5493         * lread.c (locate_file_in_directory_mapper):
5494         (1).
5495
5496         * lrecord.h:
5497         * lrecord.h (struct toolbar_button):
5498         * lrecord.h (syms_of_toolbar):
5499         document how to create a new object.
5500
5501         * menubar-msw.c (mswindows_char_is_accelerator):
5502         may be called on frames w/o menus.
5503
5504         * menubar.c (vars_of_menubar):
5505         clean up :filter docs.
5506
5507         * nt.c (readdir):
5508         * ntproc.c:
5509         (1).
5510
5511         * process-nt.c:
5512         * process-nt.c (validate_signal_number):
5513         * process-nt.c (signal_cannot_launch):
5514         * process-nt.c (nt_create_process):
5515         * process-nt.c (nt_send_process):
5516         * process-nt.c (nt_kill_child_process):
5517         * process-nt.c (nt_open_network_stream):
5518         * process-nt.c (syms_of_process_nt):
5519         (2).
5520         delete quote-handling.  call new lisp code that does it better.
5521
5522         * process-unix.c (connect_to_file_descriptor):
5523         * process-unix.c (allocate_pty):
5524         * process-unix.c (unix_send_process):
5525         * process-unix.c (unix_kill_child_process):
5526         * process-unix.c (unix_open_network_stream):
5527         * process-unix.c (unix_open_multicast_group):
5528         (1). (2).
5529
5530         * process.c:
5531         * process.c (Fstart_process_internal):
5532         (2).  need to canonicalize process path even if absolute.
5533
5534         * select-msw.c (symbol_to_ms_cf):
5535         * select-msw.c (ms_cf_to_symbol):
5536         * select-msw.c (cf_is_autofreed):
5537         * select-msw.c (mswindows_destroy_selection):
5538         * select.c:
5539         * select.c (syms_of_select):
5540         * select.h:
5541         support dibv5, fix bugs. (from Mike Alexander)
5542
5543         * select.c (Fget_selection_internal):
5544         * select.c (select_convert_out):
5545
5546         * sysdep.c:
5547         * sysdep.c (xemacs_stat):
5548         renamed.
5549
5550         * sysdep.c (mkdir):
5551         * sysdep.c (rmdir):
5552         but keep original stat() here because we provide encapsulation
5553         around these funs.
5554
5555         * sysfile.h:
5556         * sysfile.h (fstat):
5557         remove stat garbage.
5558
5559         * syswindows.h:
5560         fix X/MSW conflict.
5561         don't include tchar.h.  it's inappropriate because it makes
5562         compile-time distinctions when we want runtime distinctions.
5563         (we provide our own tchar replacements)
5564
5565         * toolbar.c:
5566         use default object printer for toolbar-button.
5567
5568         * unexcw.c:
5569         make sure we don't encapsulate.
5570
5571         * window.c (vars_of_window):
5572         emphasize that temp-buffer-show-hook is obsolete.
5573
5574 2000-08-05  Martin Buchholz  <martin@xemacs.org>
5575
5576         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
5577         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
5578
5579         * events.c (Fevent_timestamp_lessp):
5580         Not 64-bit clean.  Use EMACS_INT, not int.
5581
5582 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
5583
5584         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
5585         unsigned int and changed the last enum to
5586         lrecord_type_last_built_in_type.
5587         (lrecord_implementations_table): changed prototype to know how
5588         long the array is supposed to be.
5589         (lrecord_type_count): new unsigned int to keep track of the
5590         current number of lisp lrecord types.
5591         (DEFINE_EXTERNAL_LRECORD):
5592         (DECLARE_EXTERNAL_LRECORD): Added these two for external
5593         dynamic-modules to declare new lisp types. They are the same
5594         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
5595         int for each new type, and increment lrecord_type_count by 1.
5596
5597         * alloc.c (lrecord_implementations_table): Changed to reference
5598         lrecord_type_last_built_in_type for the size of the array.
5599         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
5600
5601 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
5602
5603         * glyphs.h (check_valid_item_list): Renamed from
5604         check_valid_item_list_1.
5605
5606 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
5607
5608         * select.c (Qselect_coerce): New.
5609         * select.c (Vselection_coercion_alist): New.
5610         * select.c (syms_of_select): Declare.
5611         * select.c (get-selection-internal): Use it.
5612         Use the new select-coerce functionality.
5613
5614         * select.c (select_coerce): New.
5615         * select.h (select_coerce): Declare.
5616         New function to coerce one type of data into another.
5617
5618 2000-08-03  Martin Buchholz  <martin@xemacs.org>
5619
5620         * callproc.c (Fcall_process_internal):
5621         (Fcall_process_internal):
5622         * process-unix.c (unix_create_process):
5623         Save and restore the value of errno, so that error messages are accurate.
5624
5625 2000-08-01  Martin Buchholz  <martin@xemacs.org>
5626
5627         * elhash.c (print_hash_table):
5628         Fix printing of hash tables to also use `key-and-value' instead of `t'.
5629         Prettify docstrings and indentation.
5630
5631 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
5632
5633         * window.c (Fwindow_pixel_edges): Subtract frame border and
5634         gutter size.
5635
5636 2000-07-31  Andy Piper  <andy@xemacs.org>
5637
5638         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
5639         will acknowledge the change.
5640
5641         * glyphs.h: declare tab_control_order_only_changed.
5642
5643         * glyphs-x.c (x_tab_control_redisplay): use
5644         tab_control_order_only_changed.
5645
5646         * glyphs-widget.c (tab_control_order_only_changed): new function.
5647
5648         * glyphs-msw.c (mswindows_tab_control_redisplay): use
5649         tab_control_order_only_changed.
5650
5651         * gui.c (gui_item_equal_sans_selected): new function.
5652         (gui_item_equal): use it.
5653
5654         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
5655         :properties in favor of :items..
5656
5657         * glyphs-widget.c (check_valid_item_list): rename from
5658         check_valid_item_list_1.
5659         (check_valid_item_list_1): renamed.
5660         (combo_box_validate): deprecate :properties in favor of :items.
5661         (widget_instantiate): ditto.
5662         (tab_control_update): ditto.
5663         (image_instantiator_combo_box): ditto.
5664         (image_instantiator_tree_view): ditto.
5665         (image_instantiator_tab_control): ditto.
5666         (layout_post_instantiate): remove dead code.
5667
5668         * print.c (debug_print_no_newline): only write to debugger if in
5669         WIN32_NATIVE.
5670
5671         * elhash.c (Fmake_hash_table): update doc string.
5672
5673         * event-msw.c (mswindows_wnd_proc): don't allow processing of
5674         messages whilst in GC. This at least stops XEmacs crashing but has
5675         the potential for wierd behaviour.
5676
5677 2000-07-31  Martin Buchholz  <martin@xemacs.org>
5678
5679         * config.h.in:
5680         Make existence of s&m files optional.
5681
5682         * s/bsd386.h: Remove HAVE_GETLOADAVG.
5683         * s/freebsd.h: Remove HAVE_GETLOADAVG.
5684         * s/gnu.h: Remove HAVE_GETLOADAVG.
5685         * s/netbsd.h: Remove HAVE_GETLOADAVG.
5686         * s/sol2.h: Remove HAVE_GETLOADAVG.
5687         * lisp.h: Remove getloadavg() declaration.
5688         * fns.c:
5689         Include <sys/loadavg.h> if available.
5690         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
5691         * config.h.in:  Group together getloadavg()-related macros.
5692         Use only configure-time tests to detect getloadavg().
5693
5694 2000-07-30  Martin Buchholz  <martin@xemacs.org>
5695
5696         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
5697
5698 2000-07-25  Andy Piper  <andy@xemacs.org>
5699
5700         * syswindows.h: add tchar.h for native builds.
5701
5702         * frame.c (syms_of_frame): remove set-glyph-image.
5703
5704         * general-slots.h: add Qset_glyph_image.
5705
5706         * glyphs-widget.c (layout_update): add domain arg to
5707         set-glyph-image.
5708         (syms_of_glyphs_widget): remove set-glyph-image.
5709
5710 2000-07-23  Ben Wing  <ben@xemacs.org>
5711
5712         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
5713         Vpopup_frame_list.
5714
5715 2000-07-22  Andy Piper  <andy@xemacs.org>
5716
5717         * symsinit.h: add syms_of_win32().
5718
5719         * gui-msw.c (syms_of_gui_mswindows): remove
5720         Fmswindows_shell_execute.
5721         (Fmswindows_shell_execute): moved to win32.c.
5722
5723         * emacs.c (main_1): add syms_of_win32 ().
5724
5725         * win32.c (init_potentially_nonexistent_functions): rewrite in
5726         compiler-friendly terms.
5727         (Fmswindows_shell_execute): move here from gui-msw.c.
5728         (syms_of_win32): new.
5729
5730         * device-msw.c (Fmswindows_printer_list): clean up args to
5731         EnumPrinters.
5732         Don't include tchar under cygwin or mingw.
5733         (msprinter_default_printer): make cygwin-friendly.
5734
5735 2000-07-21  Andy Piper  <andy@xemacs.org>
5736
5737         * glyphs-widget.c (image_instantiator_tree_view): use tab
5738         control's update function.
5739         (layout_property): new function. Retrieve items.
5740
5741         * glyphs-msw.c (mswindows_tree_view_redisplay): new
5742         function. Re-populate the tree view from the pending items.
5743
5744         * glyphs.c (instantiate_image_instantiator): Make sure the domain
5745         is designated the parent if the domain is an image instance. This
5746         is needed so that dirtiness can be cascade up the hierarchy and
5747         thus for layout children to be redisplayed correctly.
5748         (allocate_image_instance): rename glyph -> parent.
5749
5750         * redisplay.h: change redisplay_output_layout signature.
5751
5752         * redisplay-msw.c (mswindows_output_display_block): use domain
5753         arg.
5754
5755         * redisplay-x.c (x_output_display_block): use domain arg.
5756
5757 2000-07-10  Andy Piper  <andy@xemacs.org>
5758
5759         * window.c (Fset_window_configuration): add comment.
5760
5761         * redisplay-output.c (compare_runes):
5762         (redisplay_output_subwindow): redisplay rather than update subwindow.
5763         (redisplay_output_layout): ditto.
5764
5765         * redisplay-msw.c (mswindows_frame_output_end):
5766         (mswindows_frame_output_end): make defer window pos optional.
5767
5768         * lisp.h: add Flast.
5769
5770         * glyphs.h (struct image_instantiator_methods): add dest_mask top
5771         normalize method. Change update method to be for changed
5772         instantiators. Add redisplay method. Change signature of layout
5773         method.
5774         (struct Lisp_Image_Instance): add instantiator.
5775         (IMAGE_INSTANCE_INSTANTIATOR): new.
5776         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
5777         (XIMAGE_INSTANCE_INSTANTIATOR): new.
5778         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
5779
5780         * glyphs.c:
5781         (find_instantiator_differences): new function.
5782         (Fset_instantiator_property): new convenience function.
5783         (check_image_instance_structure): strictly check for vector
5784         instantiators.
5785         (normalize_image_instantiator): make non-static.
5786         (instantiate_image_instantiator): pass on dest_mask and use new
5787         signatures for image_instance_layout and friends.
5788         (mark_image_instance): mark the instantiator. Mark the subwindow
5789         face not the widget face.
5790         (image_instance_equal): add instantiator.
5791         (image_instance_hash): ditto.
5792         (allocate_image_instance): ditto.
5793         (Fset_image_instance_property): removed.
5794         (Fimage_instance_file_name): ditto.
5795         (Fcolorize_image_instance): ditto.
5796         (image_instance_layout): add offsets to be set.
5797         (update_image_instance): new function. update an image instance
5798         from its changed instantiator.
5799         (inherit_normalize): add dest_mask.
5800         (xbm_normalize): ditto.
5801         (xface_normalize): ditto.
5802         (xpm_normalize): ditto.
5803         (text_update): set_property -> update.
5804         (image_instantiate): use the glyph identity as a hash key, not the
5805         instantiator.
5806         (glyph_width): use new image_instance_layout signature.
5807         (glyph_ascent): ditto.
5808         (glyph_descent): ditto.
5809         (glyph_height): ditto.
5810         (glyph_query_geometry): ressurrect.
5811         (glyph_layout): ditto.
5812         (redisplay_subwindow): update -> redisplay.
5813         (syms_of_glyphs): add Fset_instantiator_property.
5814         (image_instantiator_format_create): set_property -> update.
5815
5816         * glyphs-x.c:
5817         (autodetect_normalize): add dest_maks to signature.
5818         (x_redisplay_subwindow): update -> redisplay.
5819         (x_redisplay_widget): ditto.
5820         (x_button_redisplay): ditto.
5821         (x_progress_gauge_redisplay): ditto.
5822         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
5823         stacking order.
5824         (console_type_create_glyphs_x): update -> redisplay.
5825         (image_instantiator_format_create_glyphs_x): ditto.
5826
5827         * glyphs-widget.c:
5828         (check_valid_instantiator): disallow glyphs in the instantiator,
5829         they must now be vectors.
5830         (check_valid_instantiator_list): ditto.
5831         (glyph_instantiator_to_glyph): use internal symbol rather than
5832         intern.
5833         (widget_update): renamed from widget_set_property. Call cascaded
5834         update methods.
5835         (redisplay_widget): renamed from update_widget.
5836         (widget_layout): image_instance_layout now takes position as well
5837         as size.
5838         (widget_normalize): ditto.
5839         (widget_instantiate): ditto.
5840         (tab_control_query_geometry) ditto.:
5841         (tab_control_update): renamed from tab_control_set_property.
5842         (progress_gauge_update): set_property -> update.
5843         (layout_normalize): rewrite so that child instantiators are
5844         normalized also.
5845         (layout_update): new function. Create glyphs from the normalized
5846         children and cope with any other layout keywords. We do not
5847         instantiate children here that will be take care of by
5848         redisplay_output_layout.
5849         (layout_instantiate): call layout_update and not much else.
5850         (layout_post_instantiate): not sure whether this is needed
5851         anymore.
5852         (layout_query_geometry): query glyph geometry rather than
5853         image_instance geometry.
5854         (layout_layout): set offsets from pass in parameters. Use glyph
5855         geometry and layout functions rather than image instance ones.
5856         (native_layout_layout): ditto.
5857         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
5858         (image_instantiator_widget): set_property -> update.
5859         (image_instantiator_buttons): ditto.
5860         (image_instantiator_progress_guage): ditto.
5861         (image_instantiator_tab_control): ditto.
5862         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
5863         (image_instantiator_layout): add update method.
5864
5865         * glyphs-msw.c (bmp_normalize):
5866         (mswindows_resource_normalize): add dest_mask so that it can be
5867         proprogated by layout_normalize.
5868         (begin_defer_window_pos): make optional because it may not be the
5869         right thing to do and it introduces differences with X.
5870         (mswindows_unmap_subwindow): ditto.
5871         (mswindows_map_subwindow): ditto.
5872         (mswindows_redisplay_subwindow): renamed from
5873         mswindows_update_subwindow.
5874         (mswindows_redisplay_widget): ditto.
5875         (mswindows_button_redisplay): renamed from
5876         mswindows_button_update. Update is now what the instantiation
5877         function does for a changed instantiator.
5878         (mswindows_progress_gauge_instantiate): set the progress value
5879         here if appropriate.
5880         (mswindows_tab_control_redisplay): cope with re-ordering of the
5881         members of the tab widget by simply selecting the new top
5882         widget. This makes things appear ok if you click on a tab.
5883         (mswindows_combo_box_instantiate): image_instance_layout now takes
5884         position as well as size.
5885         (mswindows_progress_gauge_redisplay): renamed from
5886         mswindows_progress_gauge_update.
5887         (console_type_create_glyphs_mswindows): fix update -> redisplay.
5888         (image_instantiator_format_create_glyphs_mswindows): ditto.
5889
5890         * glyphs-eimage.c (jpeg_normalize):
5891         (gif_normalize):
5892         (png_normalize):
5893         (tiff_normalize): add dest_mask so that it can be proprogated by
5894         layout_normalize.
5895
5896         * elhash.c:
5897         (print_hash_table):
5898         (hash_table_weakness_validate):
5899         (decode_hash_table_weakness):
5900         (Fhash_table_weakness):
5901         (Fhash_table_type):
5902         (syms_of_elhash): use Ben's naming scheme for hashtable types..
5903
5904         * console.h (struct console_methods): move update_* to
5905         redisplay_*.
5906
5907 2000-07-20  Ben Wing  <ben@xemacs.org>
5908
5909         * *.[ch] (XSETOBJ): remove unused middle argument.
5910         lisp-disunion.h: correct wrap_object() to one argument.
5911
5912 2000-07-15  Ben Wing  <ben@xemacs.org>
5913
5914         * s/cygwin32.h:
5915         * s/cygwin32.h (CYGWIN_CONV_PATH):
5916         Add missing logb prototype for v1.1.
5917         Use post-b20 names and alias to pre-b20 names when pre-b20.
5918
5919         * s/windowsnt.h: [5].
5920
5921 2000-07-15  Ben Wing  <ben@xemacs.org>
5922
5923         * Makefile.in.in (x_objs):
5924         * Makefile.in.in (sheap_objs):
5925         * Makefile.in.in (objs):
5926         added win32.o, cosmetic cleanups.
5927
5928         * alloc.c (Fmake_byte_code):
5929         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
5930         etc. macros which declare their own args now.
5931
5932         * alloc.c (syms_of_alloc):
5933         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
5934
5935         * buffer.c:
5936         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
5937
5938         * buffer.c (Fget_file_buffer):
5939         Fixed GCPRO problem.
5940
5941         * buffer.c (get_truename_buffer):
5942         Fixed comment about GC checking.
5943
5944         * buffer.c (syms_of_buffer):
5945         Undeclared those dedicated frame funs.
5946         [2].
5947
5948         * buffer.h:
5949         Define convenience macros for internal/external conversions.
5950         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
5951         and Qenvironment_variable_encoding for cleaner code.
5952
5953         * bufslots.h:
5954         Remove dedicated-frame; in lisp.
5955
5956         * bytecode.c (funcall_compiled_function):
5957         [1].
5958
5959         * bytecode.c (syms_of_bytecode):
5960         [2].
5961
5962         * console-msw.c:
5963         * console-msw.c (mswindows_show_console): Rewrote.
5964
5965         * console-msw.c (Fmswindows_debugging_output): New.
5966         Sends to OutputDebugString (special MSWin debugger interface).
5967
5968         * console-msw.c (Fmswindows_message_box):
5969         Fixed stupid bugs so it works when called from kill-emacs.
5970
5971         * console-msw.c (syms_of_console_mswindows):
5972         Declare Fmswindows_debugging_output.
5973
5974         * console-msw.h:
5975         New MSWin prototypes.
5976
5977         * console-msw.h (struct mswindows_frame):
5978         New entry last-click-mods for improved button-modifier support.
5979
5980         * console-msw.h (FRAME_MSWINDOWS_POPUP):
5981         New struct entry `popup' with corresponding accessor.
5982
5983         * console-x.c:
5984         * console-x.c (split_up_display_spec):
5985         * console-x.c (get_display_arg_connection):
5986         * console-x.c (x_semi_canonicalize_console_connection):
5987         * console-x.c (x_canonicalize_device_connection):
5988         [[[6]]]: Change char to more specific type.
5989         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
5990
5991         * console-x.c (x_semi_canonicalize_console_connection):
5992         * console-x.c (x_canonicalize_device_connection):
5993         [[[9]]]: Fix up error signalling to use new structured error system.
5994
5995         * console-x.h:
5996         [[[4]]]: Define codesys aliases:
5997         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
5998         Qx_color_name_encoding, Qx_display_name_encoding.
5999
6000         * console.h (struct console_methods):
6001         New method make_dialog_box_internal supersedes older
6002         popup_dialog_box method.
6003
6004         * data.c:
6005         Define many new errors, part of new structured errors.
6006
6007         * data.c (init_errors_once_early):
6008         * data.c (syms_of_data):
6009         [2].
6010
6011         * device-msw.c (mswindows_init_device):
6012         [[[5]]]: Cleanup to support NT 3.51.
6013
6014         * device-msw.c (decode_devmode): Cleanup.
6015
6016         * device-msw.c (mswindows_handle_print_setup_dialog_box):
6017         * device-msw.c (mswindows_handle_print_dialog_box):
6018         * device-msw.c (mswindows_handle_page_setup_dialog_box):
6019         * device-msw.c (syms_of_device_mswindows):
6020         Delete the dialog box primitives recently introduced by Kirill and
6021         instead interface to general dialog box interface.
6022
6023         * device-x.c:
6024         * device-x.c (compute_x_app_name):
6025         * device-x.c (x_init_device):
6026         * device-x.c (Fx_valid_keysym_name_p):
6027         * device-x.c (Fx_set_font_path):
6028         [6].
6029         [7].
6030
6031         * device.h (wrap_device): New.
6032         First of its kind; meant to replace XSETDEVICE.
6033
6034         * dialog-msw.c: Many file-dialog symbols.
6035
6036         * dialog-msw.c (mswindows_register_popup_frame): New.
6037         * dialog-msw.c (mswindows_is_dialog_msg): New.
6038         For supporting kbd traversal in dialog boxes.
6039
6040         * dialog-msw.c (dialog_proc):
6041         Support hitting ESC in dialogs.
6042
6043         * dialog-msw.c (struct):
6044         Common dialog box errors.
6045
6046         * dialog-msw.c (handle_file_dialog_box): New.
6047         Add file dialog code.
6048
6049         * dialog-msw.c (handle_question_dialog_box):
6050         Redo existing code to support new question dialog syntax.
6051
6052         * dialog-msw.c (console_type_create_dialog_mswindows):
6053         We support new dialog console method.
6054
6055         * dialog-msw.c (syms_of_dialog_mswindows):
6056         * dialog-msw.c (vars_of_dialog_mswindows):
6057         New file dialog symbols, vars.
6058
6059         * dialog-x.c:
6060         * dialog-x.c (maybe_run_dbox_text_callback):
6061         * dialog-x.c (dbox_descriptor_to_widget_value):
6062         * dialog-x.c (x_make_dialog_box_internal):
6063         * dialog-x.c (console_type_create_dialog_x):
6064         Mule-ize entire file.
6065         Redo to support question dialog syntax.
6066         [6].
6067
6068         * dialog.c:
6069         * dialog.c (Fmake_dialog_box_internal):
6070         * dialog.c (syms_of_dialog):
6071         Kill old popup-dialog-box, replace with new primitive.
6072         Just call device method or signal error.
6073
6074         * eldap.c (Fldap_open):
6075         * eldap.c (Fldap_search_basic):
6076         * eldap.c (Fldap_add):
6077         * eldap.c (Fldap_modify):
6078         [1].
6079         [7].
6080
6081         * emacs.c:
6082         * emacs.c (make_arg_list_1):
6083         * emacs.c (make_arg_list):
6084         Mule-ize call to dll_init().
6085         [6].
6086         [8].
6087
6088         * emacs.c (make_argc_argv):
6089         * emacs.c (free_argc_argv):
6090         * emacs.c (init_cmdargs):
6091         * emacs.c (main_1):
6092         * emacs.c (Fkill_emacs):
6093         * emacs.c (Fdump_emacs):
6094         Update comments about what can be used in syms_* etc.
6095         Call init_win32() when necessary.
6096         Fix up MS Win dialog box in kill-buffer to actually work right.
6097         [7].
6098
6099         * eval.c:
6100         * eval.c (For):
6101         * eval.c (Fand):
6102         * eval.c (Fprogn):
6103         * eval.c (Fprog1):
6104         * eval.c (Fprog2):
6105         * eval.c (FletX):
6106         * eval.c (Flet):
6107         * eval.c (condition_case_3):
6108         * eval.c (Feval):
6109         * eval.c (function_argcount):
6110         * eval.c (funcall_lambda):
6111         [1].
6112
6113         * eval.c (type_error): New.
6114         * eval.c (maybe_type_error): New.
6115         * eval.c (continuable_type_error): New.
6116         * eval.c (maybe_continuable_type_error): New.
6117         * eval.c (type_error_with_frob): New.
6118         * eval.c (maybe_type_error_with_frob): New.
6119         * eval.c (continuable_type_error_with_frob): New.
6120         * eval.c (maybe_continuable_type_error_with_frob): New.
6121         New functions for use with structured errors.
6122
6123         * event-Xt.c:
6124         * event-Xt.c (x_event_to_emacs_event):
6125         Buttons are now modifiers too.
6126
6127         * event-Xt.c (emacs_Xt_current_event_timestamp):
6128         Implement new event method.
6129         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
6130
6131         * event-msw.c:
6132         * event-msw.c (ntpipe_shove_writer): [5].
6133         * event-msw.c (mswindows_enqueue_mouse_button_event):
6134         * event-msw.c (mswindows_drain_windows_queue):
6135         * event-msw.c (mswindows_wnd_proc): [7].
6136         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
6137         * event-msw.c (mswindows_modifier_state):
6138         Throughout: support new button modifiers.
6139
6140         * event-msw.c (emacs_mswindows_current_event_timestamp):
6141         Implement new event method.
6142         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
6143
6144         * event-stream.c:
6145         * event-stream.c (event_stream_current_event_timestamp): New.
6146         * event-stream.c (maybe_kbd_translate): New functionality.
6147         * event-stream.c (vars_of_event_stream):
6148         Document new kbd-translate-table functionality.
6149
6150         * event-stream.c (Fcurrent_event_timestamp): New.
6151         New primitive for use in fabricated events.
6152         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
6153
6154         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
6155
6156         * events.c:
6157         * events.c (Fmake_event):
6158         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
6159         [1].
6160         [9].
6161
6162         * events.c (format_event_object): fix gcc warnings.
6163
6164         * events.c (Fevent_timestamp): Document new primitives.
6165
6166         * events.c (TIMESTAMP_HALFSPACE): New.
6167
6168         * events.c (Fevent_timestamp_lessp): New.  New primitive for
6169         comparing timestamps correctly (half-space algorithm).
6170
6171         * events.c (Fevent_modifier_bits): Doc fix.
6172
6173         * events.c (Fevent_modifiers): Major doc addition.
6174         * events.c (event_x_y_pixel_internal): Typo fix.
6175         * events.c (syms_of_events): Declare new primitives.
6176
6177         * events.h:
6178         Update long comment for button modifiers, timestamps.
6179
6180         * events.h (struct event_stream):
6181         New current_event_timestamp method.
6182
6183         * extents.c:
6184         * extents.c (extent_in_region_p):
6185         * extents.c (decode_extent):
6186         * extents.c (Fset_extent_parent):
6187         * extents.c (decode_map_extents_flags):
6188         Fix gcc warnings.
6189         [9].
6190
6191         * extents.c (struct extent_at_arg):
6192         * extents.c (decode_extent_at_flag):
6193         * extents.c (extent_at_mapper):
6194         * extents.c (extent_at_bytind):
6195         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
6196         * extents.c (Fextents_at): New primitive. [9].
6197         * extents.c (symbol_to_glyph_layout): [9].
6198         Support new primitive `extents-at'.
6199
6200
6201         * extents.c (get_text_property_bytind):
6202         extent_at_bytind has another arg.
6203         [9].
6204
6205         * extents.c (syms_of_extents): New primitive.
6206
6207         * file-coding.c (Fmake_coding_system): [1].
6208         * file-coding.c (subsidiary_coding_system): fix gcc warning
6209         * file-coding.c (syms_of_file_coding): [2].
6210
6211         * fileio.c (Fexpand_file_name):
6212         * fileio.c (Fsysnetunam):
6213         * fileio.c (Ffile_exists_p):
6214         * fileio.c (Ffile_executable_p):
6215         * fileio.c (Fverify_visited_file_modtime):
6216         Clean up GCPROing.
6217
6218         * fileio.c (syms_of_fileio): [2].
6219
6220         * filelock.c (lock_file_1):
6221         * filelock.c (current_lock_owner):
6222         * filelock.c (lock_if_free):
6223         * filelock.c (lock_file):
6224         * filelock.c (unlock_file):
6225         Clean up GCPROing.
6226
6227         * fns.c (concat): Fix gcc warning.
6228
6229         * fns.c (Fmember):
6230         * fns.c (Fold_member):
6231         * fns.c (Fmemq):
6232         * fns.c (Fold_memq):
6233         * fns.c (memq_no_quit):
6234         * fns.c (Fassoc):
6235         * fns.c (Fold_assoc):
6236         * fns.c (Fassq):
6237         * fns.c (Fold_assq):
6238         * fns.c (assq_no_quit):
6239         * fns.c (Frassoc):
6240         * fns.c (Fold_rassoc):
6241         * fns.c (Frassq):
6242         * fns.c (Fold_rassq):
6243         * fns.c (rassq_no_quit):
6244         * fns.c (Fdelete):
6245         * fns.c (Fold_delete):
6246         * fns.c (Fdelq):
6247         * fns.c (Fold_delq):
6248         * fns.c (delq_no_quit):
6249         * fns.c (Fremassoc):
6250         * fns.c (Fremassq):
6251         * fns.c (remassq_no_quit):
6252         * fns.c (Fremrassoc):
6253         * fns.c (Fremrassq):
6254         * fns.c (remrassq_no_quit):
6255         * fns.c (Freverse):
6256         * fns.c (mapcar1):
6257         [1].
6258
6259         * frame-msw.c (mswindows_init_frame_1):
6260         * frame-msw.c (mswindows_delete_frame):
6261         Register popups with dialog code so keyboard traversing works.
6262
6263         * frame-tty.c (tty_raise_frame_no_select): [1].
6264
6265         * frame-x.c:
6266         * frame-x.c (x_set_frame_text_value):
6267         * frame-x.c (x_set_frame_properties):
6268         * frame-x.c (x_create_widgets):
6269         [7].
6270
6271         * frame.c:
6272         * frame.c (Fmouse_pixel_position): Minor doc fixes.
6273
6274         * frame.h (wrap_frame): New.
6275         Macro like wrap_device.
6276
6277         * general.c:
6278         * general.c (SYMBOL):
6279         * general.c (syms_of_general):
6280         Major reorg.  This is now just a wrapper and symbols themselves
6281         are listed in general-slots.h.
6282
6283         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
6284         * glyphs-msw.c (mswindows_resource_instantiate): [5].
6285
6286         * glyphs-msw.c (mswindows_native_layout_instantiate):
6287         Add DS_CONTROL so keyboard traversal will work.
6288
6289         * glyphs-widget.c:
6290         * glyphs-widget.c (syms_of_glyphs_widget):
6291         Move some symbols to general-slots.h.
6292
6293         * glyphs-x.c:
6294         * glyphs-x.c (xbm_instantiate_1):
6295         * glyphs-x.c (x_xbm_instantiate):
6296         * glyphs-x.c (x_xface_instantiate):
6297         * glyphs-x.c (autodetect_instantiate):
6298         * glyphs-x.c (cursor_font_instantiate):
6299         * glyphs-x.c (x_update_widget):
6300         * glyphs-x.c (x_widget_instantiate):
6301         * glyphs.c (bitmap_to_lisp_data):
6302         * glyphs.c (pixmap_to_lisp_data):
6303         [7].
6304
6305         * glyphs.c (syms_of_glyphs):
6306         [2].
6307
6308         * gui-x.c:
6309         * gui-x.c (print_widget_value):
6310         * gui-x.c (menu_separator_style_and_to_external):
6311         * gui-x.c (add_accel_and_to_external):
6312         * gui-x.c (button_item_to_widget_value):
6313         * gui-x.c (gui_items_to_widget_values_1):
6314         * gui-x.c (gui_items_to_widget_values):
6315         * gui-x.c (syms_of_gui_x):
6316         * gui-x.c (vars_of_gui_x):
6317         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
6318         [9].
6319
6320         * gui-x.h:
6321         Muleize, prototype changes matching gui-x.c.
6322
6323         * gui.c:
6324         * gui.c (separator_string_p):
6325         * gui.c (gui_item_add_keyval_pair):
6326         * gui.c (make_gui_item_from_keywords_internal):
6327         * gui.c (signal_too_long_error):
6328         * gui.c (parse_gui_item_tree_item):
6329         * gui.c (syms_of_gui):
6330         * gui.c (vars_of_gui):
6331         * gui.h:
6332         menu-no-selection-hook moved here (used by MSWin).
6333         Move some symbols to general-slots.h.
6334         [6].
6335         [9].
6336
6337         * insdel.c (get_buffer_pos_char):
6338         * insdel.c (get_buffer_range_char):
6339         Add GC comments.
6340
6341         * keymap.c (keymap_lookup_directly):
6342         * keymap.c (keymap_store):
6343         * keymap.c (ensure_meta_prefix_char_keymapp):
6344         * keymap.c (describe_map):
6345         * keymap.h:
6346         Support new button modifiers.
6347
6348         * lisp-disunion.h (wrap_object):
6349         * lisp-disunion.h (XSETOBJ):
6350         Rename make_obj to wrap_object.
6351
6352         * lisp-union.h:
6353         * lisp-union.h (make_int):
6354         * lisp-union.h (make_char):
6355         Support wrap_object.
6356
6357         * lisp.h:
6358         * lisp.h (LIST_LOOP):
6359         * lisp.h (EXTERNAL_LIST_LOOP):
6360         * lisp.h (LIST_LOOP_2):
6361         * lisp.h (EXTERNAL_LIST_LOOP_1):
6362         * lisp.h (EXTERNAL_LIST_LOOP_2):
6363         * lisp.h (EXTERNAL_LIST_LOOP_3):
6364         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
6365         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
6366         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
6367         * lisp.h (EXTERNAL_ALIST_LOOP_5):
6368         * lisp.h (EXTERNAL_ALIST_LOOP_6):
6369         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
6370         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
6371         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
6372         * lisp.h (struct Lisp_Symbol):
6373         * lisp.h (maybe_continuable_error_with_frob):
6374         Fix up section comments.
6375         Add new types for char to indicate usage.
6376         Delete symbols auto-generated from general-slots.h.
6377         Add prototypes for structured error functions.
6378         Add long comments describing looping macros and change interface
6379         so that lvalues are automatically declared.
6380         Add NO_DECLARE macro in case callers want to declare lvalues
6381         themselves.
6382
6383         * lread.c (read_syntax_error):
6384         * lread.c (continuable_read_syntax_error):
6385         * lread.c (read_structure):
6386         * lread.c (sequence_reader):
6387         * lread.c (read_list_conser):
6388         * lread.c (read_compiled_function):
6389         Rename syntax_error and continuable_syntax_error to avoid clash
6390         with same-named structured error functions.
6391
6392         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
6393         * menubar-msw.c (populate_menu_add_item):
6394         * menubar-msw.c (populate_or_checksum_helper):
6395         [5].
6396         [9].
6397
6398         * menubar-x.c:
6399         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
6400         Mule-ize whole file.
6401
6402         * menubar.c (Fnormalize_menu_item_name): Add optimization.
6403
6404         * mule-charset.c (Fmake_charset):
6405         * mule-wnnfns.c (Fwnn_set_param):
6406         [1].
6407
6408         * ntproc.c (create_child):
6409         * ntproc.c (Fwin32_set_current_locale):
6410         Add comments portending doom.
6411
6412         * objects-msw.c:
6413         * objects-msw.c (old_font_enum_callback_2):
6414         * objects-msw.c (font_enum_callback_1):
6415         * objects-msw.c (mswindows_enumerate_fonts):
6416         [5].
6417
6418         * objects-x.c:
6419         * objects-x.c (allocate_nearest_color):
6420         * objects-x.c (x_parse_nearest_color):
6421         * objects-x.c (x_initialize_color_instance):
6422         * objects-x.c (x_print_color_instance):
6423         * objects-x.c (x_finalize_color_instance):
6424         * objects-x.c (x_valid_color_name_p):
6425         * objects-x.c (x_initialize_font_instance):
6426         * objects-x.c (x_print_font_instance):
6427         * objects-x.c (valid_x_font_name_p):
6428         * objects-x.c (truename_via_FONT_prop):
6429         * objects-x.c (truename_via_random_props):
6430         * objects-x.c (truename_via_XListFonts):
6431         * objects-x.c (x_font_truename):
6432         * objects-x.c (x_font_instance_truename):
6433         * objects-x.c (x_font_instance_properties):
6434         * objects-x.c (x_list_fonts):
6435         * objects-x.c (x_find_charset_font):
6436         Mule-ize entire file.
6437         [7].
6438
6439         * objects-x.h:
6440         Mule-verify.
6441
6442         * print.c:
6443         * print.c (std_handle_out_external):
6444         * print.c (debug_print_no_newline):
6445         * print.c (syms_of_print):
6446         Output to all debugger kinds in debug-print.
6447         Fix console-output code under MSWin to actually work.
6448
6449         * process-nt.c (send_signal):
6450         * process-nt.c (nt_create_process):
6451         Use newer Unicode macros.
6452
6453         * process-unix.c (unix_create_process):
6454         * process-unix.c (unix_canonicalize_host_name):
6455         * process-unix.c (unix_open_network_stream):
6456         [7].
6457
6458         * scrollbar-x.c:
6459         Mule-verify.
6460
6461         * search.c (syms_of_search):
6462         [2].
6463
6464         * select-msw.c (mswindows_destroy_selection):
6465         Use LIST_LOOP_2.
6466
6467         * select-x.c (symbol_to_x_atom):
6468         [7].
6469
6470         * select.c (syms_of_select):
6471         [2].
6472
6473         * sound.c (Fplay_sound_file):
6474         [7].
6475
6476         * specifier.c:
6477         * specifier.c (decode_specifier_type):
6478         * specifier.c (Fvalid_specifier_locale_type_p):
6479         * specifier.c (check_valid_locale_or_locale_type):
6480         * specifier.c (decode_locale):
6481         * specifier.c (decode_locale_type):
6482         * specifier.c (decode_locale_list):
6483         * specifier.c (check_valid_domain):
6484         * specifier.c (decode_specifier_tag_set):
6485         * specifier.c (Fcanonicalize_tag_set):
6486         * specifier.c (Fdefine_specifier_tag):
6487         * specifier.c (Fspecifier_tag_predicate):
6488         * specifier.c (check_valid_inst_list):
6489         * specifier.c (check_valid_spec_list):
6490         * specifier.c (decode_how_to_add_specification):
6491         * specifier.c (check_modifiable_specifier):
6492         * specifier.c (specifier_add_spec):
6493         * specifier.c (boolean_validate):
6494         * specifier.c (display_table_validate):
6495         [9].
6496
6497         * specifier.c (syms_of_specifier):
6498         Move some symbols to general-slots.h.
6499         [2].
6500
6501         * symbols.c:
6502         * symbols.c (Fmapatoms):
6503         * symbols.c (Fapropos_internal):
6504         Add GCPROs.
6505
6506         * symbols.c (set_default_buffer_slot_variable):
6507         * symbols.c (set_default_console_slot_variable):
6508         [1].
6509
6510         * symbols.c (defsymbol_massage_name_1):
6511         * symbols.c (defkeyword_massage_name):
6512         * symbols.c (deferror_1):
6513         * symbols.c (deferror):
6514         * symbols.c (deferror_massage_name_and_message):
6515         * symeval.h:
6516         * symeval.h (DEFSYMBOL):
6517         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
6518
6519         * symbols.c (syms_of_symbols):
6520         [2].
6521
6522         * symsinit.h:
6523         * symsinit.h (init_win32): New.
6524         Also new is syms_of_dialog_mswindows.
6525
6526         * syswindows.h:
6527         Add new Unicode macros, missing Cygwin wide-char functions,
6528         convenience conversion macros for Qmswindows_tstr, macros for
6529         encapsulating required MSWin <-> Cygwin filename conversions,
6530         prototype for dynamically-extracted (not in NT 3.51) functions.
6531
6532         * toolbar-x.c:
6533         Mule-verify.
6534
6535         * tooltalk.c (Fadd_tooltalk_message_arg):
6536         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
6537         * tooltalk.c (Fadd_tooltalk_pattern_arg):
6538         [7].
6539
6540         * tooltalk.c (syms_of_tooltalk):
6541         [2].
6542
6543         * unexnt.c:
6544         * unexnt.c (unexec):
6545         Fix up headers, declaration of unexec() to be more standard.
6546
6547 2000-07-20  Martin Buchholz  <martin@xemacs.org>
6548
6549         * offix.h: Revert change to guard macros - they're used in offix.c!
6550
6551 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6552
6553         * lisp.h: Defsubred Fdelete.
6554
6555         * console-msw.h:  (msprinter_default_printer): Added.
6556
6557         * console-msw.c (msprinter_canonicalize_console_connection):
6558         (msprinter_canonicalize_device_connection): Added.
6559
6560         * device-msw.c (msprinter_default_printer):
6561         (Fmswingows_get_default_printer):
6562         (signal_enum_priner_error):
6563         (Fmswingows_printer_list): Added.
6564
6565 2000-07-19  Martin Buchholz <martin@xemacs.org>
6566
6567         * XEmacs 21.2.35 is released.
6568
6569 2000-07-19  Martin Buchholz  <martin@xemacs.org>
6570
6571         * select-x.c (x_handle_selection_request):
6572         Text selected in xemacs and pasted into xterm failed to appear.
6573         Spelling fixes and cosmetic changes.
6574
6575 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6576
6577         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
6578         XEmacs frame (fix for doubling chars in dialog boxes).
6579
6580 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
6581
6582         * select.c (select_convert_in, select_convert_out):
6583         Don't call intern() every time.
6584
6585         * select.c (Qselect_convert_in, Qselect_convert_out): New.
6586         * select.c (vars_of_select): Initialise them.
6587
6588 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
6589
6590         * select.c (selection-coercible-types): New.
6591
6592         * select.c (own-selection-internal):
6593         * select.c (get-selection-internal):
6594         MULE bug fix - these should default to COMPOUND_TEXT and not
6595         STRING for MULE. I think.
6596
6597         * select.c (select_convert_out): Use selection-coercible-types
6598         to find types that we can attempt to perform coercions on.
6599
6600 2000-07-18  Martin Buchholz  <martin@xemacs.org>
6601
6602         * mule-wnnfns.c:
6603         * mule-canna.c:
6604         Add coding: cookie to identify encoding.
6605
6606         * mule-canna.c (CANNA_mode_keys): make static.
6607         Use proper prototypes, even for functions of no arguments.
6608         Remove external prototype for Fding().
6609
6610         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
6611
6612         * select.c (syms_of_select): Add missing DEFSUBR.
6613
6614 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
6615
6616         * select.c (get_selection_internal, own_selection_internal):
6617         Make the type default to STRING, rather than placing a nil type
6618         into Vselection_alist.
6619
6620 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
6621
6622         * gpmevent.c (tty_selection_exists_p):
6623         * gpmevent.c (tty_own_selection):
6624         Updated parameter lists.
6625
6626 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
6627
6628         * select.h (selection-alist): Removed declaration.
6629
6630         * select.h (get_local_selection):
6631         * select.c (get_local_selection):
6632         Made static.
6633
6634         * select.h (convert_selection): Removed declaration.
6635         * select.c (convert_selection): Removed.
6636         This function belongs in Lisp.
6637
6638         * select.h (select_convert_in): Declare.
6639         * select.h (select_convert_out): Declare.
6640         * select.c (select_convert_in): New.
6641         * select.c (select_convert_out): New.
6642         New conversion functions for other files to call.
6643
6644         * select.h (select_notify_buffer_kill): Declare.
6645         * select.c (select_notify_buffer_kill): New.
6646         New functions that get called from kill-buffer.
6647
6648         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
6649         X-specific lisp code.
6650
6651         * select.h: Declare some of the lisp-visible functions for
6652         external use.
6653
6654         * select.c (clean_local_selection_data): Removed. This was
6655         a disgusting function, and previously should have been in
6656         select-x.c in any case. The functionality is now provided
6657         in select-convert-from-integer (select.el).
6658
6659         * select.c (available-selection-types): Fixed stupidity where
6660         INTEGER and ATOM got added twice. Also add STRING when we see an
6661         extent.
6662
6663         * select.c (get-selection-internal): Removed symbol stripping. No
6664         longer causes conversion when data comes from the internal cache.
6665
6666         * select.c (syms_of_select): Added new functions.
6667
6668         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
6669         error checking - previously this called abort!
6670
6671         * select-x.c (x_own_selection): Changed comment.
6672
6673         * select-x.c (x_handle_selection_request): Use select_convert_out.
6674         Don't mess with selection-alist; it's an internal variable of select.c.
6675
6676         * select-x.c (x_get_foreign_selection): Use select_convert_in.
6677
6678         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
6679         rather than messing with selection-alist.
6680
6681         * select-msw.c (mswindows_get_foreign_selection):
6682         Use TO_INTERNAL_FORMAT rather than hacking.
6683
6684 2000-07-14  Martin Buchholz  <martin@xemacs.org>
6685
6686         * process-unix.c (unix_open_multicast_group):
6687         (unix_open_multicast_group): Remove useless casts.
6688
6689 2000-07-13  Martin Buchholz  <martin@xemacs.org>
6690
6691         * sound.c (Fplay_sound): Fix `unused variable' warning.
6692
6693         * emacs.c (main): Use correct type for _environ on SCO5.
6694
6695 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
6696
6697         * console.h (own_selection_method):
6698         * console.h (selection_exists_p_method):
6699         * console.h (available_selection_types_method): New.
6700         * console.h (register_selection_data_type_method): New.
6701         * console.h (selection_data_type_name): New.
6702
6703         * console-msw.h (mswindows_destroy_selection): Declare it.  New
6704         function & alist to track GlobalAlloc()'d handles that need
6705         releasing when the clipboard data gets replaced or emptied.
6706
6707         * event-msw.c (mswindows_wnd_proc): Call it.
6708
6709         * lisp.h, general.c (Qappend): New symbol representing a
6710         `how-to-add' mode.
6711
6712         * select.c (own-selection-internal):
6713         * select.c (selection-exists-p):
6714         * select.c (available-selection-types): New.
6715         * select.c (register-selection-data-type): New.
6716         * select.c (selection-data-type-name): New.  New functions to deal
6717         with device-specific selection data formats.
6718         * select.c (selection-converter-out-alist): Renamed.
6719         * select.c (selection-converter-in-alist): New.
6720         * select.c (selection-appender-alist): New.  Added new alists.
6721         * select.c (syms_of_select, vars_of_select): Added new symbols &
6722         variables.
6723         * select.c (get_local_selection): Split.
6724         * select.c: Removed spurious type checking - selections may now be
6725         of any type, not just strings.
6726         * select.c (own-selection-internal):
6727
6728         * select.h, select.c (convert_selection): New. Created
6729         convert_selection() function based on get_local_selection().
6730         * select.h, select.c (QCF_*): New symbols representing mswindows
6731         clipboard formats.
6732         * select.h, select.c (Qreplace_all, Qreplace_existing): New
6733         symbols representing `how-to-add' modes.
6734
6735         * select-msw.c (x_sym_p): New.
6736         * select-msw.c (symbol_to_ms_cf): New.
6737         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
6738         symbols & clipboard formats. Can also handle string names.
6739         * select-msw.c (mswindows_own_selection):
6740         * select-msw.c (mswindows_selection_exists_p):
6741         Added `data-type' parameter. Use it.
6742         * select-msw.c (mswindows_available_selection_types): New.
6743         * select-msw.c (mswindows_register_selection_data_type): New.
6744         * select-msw.c (mswindows_selection_data_type_name): New.
6745         * select-msw.c (mswindows_own_selection):
6746         * select-msw.c (mswindows_get_foreign_selection):
6747         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
6748         * select-msw.c (console_create_select_mswindows): Added new methods.
6749         * select-msw.c (mswindows_destroy_selection): New.
6750         * select-msw.c (Vhandle_alist): New list.
6751         * select-msw.c (mswindows_own_selection):
6752
6753         * select-x.c (x_own_selection):
6754         * select-x.c (x_selection_exists_p):
6755         * select-x.c: Added some comments about maybe using new
6756         functionality.
6757         * select-x.c (x_own_selection):
6758
6759         * specifier.c: Remove definition of Qappend (now in general.c)
6760         * specifier.c (syms_of_specifier): Remove Qappend.
6761
6762 2000-07-12  Martin Buchholz  <martin@xemacs.org>
6763
6764         * config.h.in: Add socklen_t.
6765
6766         * s/decosf4-0.h: No special compiler flags needed or desired.
6767         In particular, undefine _BSD for DEC OSF 4.0.
6768
6769 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6770
6771         * redisplay-msw.c (msprinter_frame_output_end): Added.
6772         (console_type_create_redisplay_mswindows): Referred the above.
6773
6774         * frame.c (setup_frame_without_minibuffer): Do not create a
6775         default minibuffer frame on a printer device.
6776
6777         * frame-msw.c (apply_dc_geometry): Added.
6778         (msprinter_start_page):
6779         (msprinter_init_frame_3):
6780         (msprinter_eject_page): Use it.
6781
6782         * console-msw.h (struct msprinter_frame): Added pix_left and top,
6783         and removed residual duplex and orientation properties.
6784
6785 2000-07-11  Martin Buchholz  <martin@xemacs.org>
6786
6787         * eval.c (function_argcount): Work around a DEC CC compiler bug.
6788
6789         * unexalpha.c: Remove system prototypes from C sources!
6790
6791 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
6792
6793         * eval.c: Remove references to M-x edit-options in DEFUNs for
6794         `defvar' and `defconst'.
6795
6796 2000-07-09  Martin Buchholz  <martin@xemacs.org>
6797
6798         * config.h.in: Remove SMART_INCLUDE hackery.
6799
6800         PostgreSQL hacking:
6801         * config.h.in: Don't use SMART_INCLUDE.
6802
6803         * postgresql.h: Include libpq-fe.h here.  Fix typo.
6804         * inline.c: Simply #include "postgresql.h"
6805         * postgresql.c:
6806         - Don't use SMART_INCLUDE
6807         - Use simply "const".
6808         - Use standard doc string conventions.
6809         - Use correct type for result of PQstatus.
6810
6811 2000-07-09  Martin Buchholz  <martin@xemacs.org>
6812
6813         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
6814
6815         C++ compilation changes.
6816         * config.h.in (EXTERN_C): Define.
6817         * config.h.in (not): This is also a C++ keyword.
6818         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
6819         * cm.c: Use EXTERN_C.
6820         * redisplay-tty.c: Use EXTERN_C.
6821         * sysdep.c: Use EXTERN_C.  Remove Gould support.
6822
6823 2000-07-09  Martin Buchholz  <martin@xemacs.org>
6824
6825         * general.c: Remove duplicate definition for Qfunction.
6826
6827 2000-07-08  Ben Wing  <ben@xemacs.org>
6828
6829         * device-msw.c (msprinter_init_device):
6830         * device-msw.c (sync_printer_with_devmode):
6831         * device-msw.c (handle_devmode_changes):
6832         * device-msw.c (print_dialog_worker):
6833         * device-msw.c (Fmsprinter_apply_settings):
6834         * device-msw.c (hash_devmode):
6835         * device-msw.c (Fmsprinter_settings_despecialize):
6836         use Qmswindows_tstr, not Qctext.
6837
6838         * vm-limit.c (check_memory_limits):
6839         avoid infinite loop printing warning messages.
6840
6841 2000-07-05  Craig Lanning  <lanning@scra.org>
6842
6843         * Makefile.in.in: Add support for including the Windows resources
6844         when building with the cygwin and mingw targets.
6845
6846         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
6847         not set or not correct.
6848         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
6849         (init_initial_directory): Don't try to use $PWD on the
6850         WIN32_NATIVE target.
6851
6852         * s\cygwin32.h:
6853         [[Add -mwindows to eliminate console window.]] not required --ben
6854         (HAVE_NATIVE_SOUND): removed; now handled by configure.
6855         (MAIL_USE_POP): removed; now handled by configure.
6856
6857         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
6858         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
6859         (HAVE_NATIVE_SOUND): removed; now handled by configure.
6860         (MAIL_USE_POP): removed; now handled by configure.
6861         (ENCAPSULATE_STAT): from Dan Holmsand, added.
6862         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
6863         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
6864         constant string.
6865         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
6866         up from <winsock.h> via systime.h.
6867         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
6868         (getpagesize): from Dan Holmsand, added.
6869         Added #endif which was left dangling by Ben's mega patch; added
6870         comment to help prevent this in the future.
6871
6872         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
6873
6874 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6875
6876         * console-msw.h (struct mswindows_device): Removed unnecessary
6877         cached device geometry values.
6878         Added update_tick and an accessor macro.
6879         (Lisp_Devmode): Added lrecord declaration.
6880         (struct msprinter_device): Contain devmode as a Lisp object.
6881         Added mswindows_get_selected_frame_hwnd();
6882
6883         * console.h (struct console_methods): Indentation nitpicking.
6884
6885         * device-msw.c (mswindows_init_device): Do not initialize geometry
6886         cache. Initialize update tick.
6887         (mswindows_device_system_metrics): Ask the device for its geometry.
6888         (global_free_2_maybe):
6889         (devmode_to_hglobal):
6890         (handle_printer_changes):
6891         (ensure_not_printing):
6892         (print_dialog_worker):
6893         (Fmsprinter_print_setup_dialog):
6894         (Fmsprinter_print_dialog):
6895         (plist_get_margin):
6896         (plist_set_margin):
6897         (Fmsprinter_page_setup_dialog): Added functions.
6898         (sync_printer_with_devmode):
6899         (handle_devmode_changes):
6900         (Fmsprinter_get_settings):
6901         (Fmsprinter_select_settings):
6902         (Fmsprinter_apply_settings):
6903         (allocate_devmode):
6904         (Fmsprinter_settings_copy):
6905         (Fmsprinter_settings_despecialize):
6906         (print_devmode):
6907         (finalize_devmode):
6908         (equal_devmode):
6909         (hash_devmode): Added functions
6910         (syms_of_device_mswindows): Init devmode lrecord class.
6911
6912         * device.h: Added an exfun for find-device.
6913
6914         * event-msw.c (mswindows_wnd_proc): Do not update the cached
6915         geometry; although, recreate the device compatible DC.
6916
6917         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
6918         (msprinter_init_frame_3):
6919         (msprinter_frame_property):
6920         (msprinter_internal_frame_property_p):
6921         (msprinter_frame_properties):
6922         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
6923         print job properties (will move to device settings).
6924
6925         * lisp.h: Added symbols.
6926
6927         * general.c (syms_of_general): Declared them.
6928
6929         * hash.c (string_hash): Added.
6930
6931         * lrecord.h (lrecord_type): Added devmode lrecord type.
6932
6933 2000-07-02  Mike Sperber <mike@xemacs.org>
6934
6935         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
6936         FreeBSD 4.0.
6937
6938 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
6939
6940         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
6941         integer.
6942
6943 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
6944
6945         * data.c (Fstring_to_number): Don't recognize floating point if
6946         base is not 10.
6947
6948 2000-06-22  Martin Buchholz  <martin@xemacs.org>
6949
6950         * glyphs-widget.c (tab_control_query_geometry):
6951         (widget_query_geometry):
6952         (button_query_geometry):
6953         * glyphs.c (text_query_geometry):
6954         Enforce type correctness.
6955
6956 2000-06-18  Martin Buchholz  <martin@xemacs.org>
6957
6958         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
6959         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
6960
6961 2000-06-17  Martin Buchholz  <martin@xemacs.org>
6962
6963         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
6964         conflicts with gcc's fixincluded version of FOO.h.
6965
6966         * glyphs.h (image_instance_geometry): Remove trailing `,'
6967
6968 2000-06-08  Mike Alexander  <mta@arbortext.com>
6969
6970         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
6971         (shove_thread): Don't write the same output twice
6972         (make_ntpipe_output_stream): Increase priority of shove thread
6973         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
6974         chance to run
6975         (ntpipe_shove_closer): Don't delete the pipe until we're done with
6976         it.
6977
6978 2000-06-12  Ben Wing  <ben@xemacs.org>
6979
6980         * s\mingw32.h (sigset):
6981         * s\windowsnt.h (sigset):
6982         rename msw_ to mswindows_ for consistency with general convention.
6983
6984 2000-06-12  Ben Wing  <ben@xemacs.org>
6985
6986         * console-msw.c:
6987         * console-msw.c (mswindows_get_console_hwnd):
6988         * console-msw.c (mswindows_ensure_console_allocated):
6989         * console-msw.c (mswindows_hide_console):
6990         * console-msw.c (mswindows_show_console):
6991         * console-msw.c (mswindows_ensure_console_buffered):
6992         * console-msw.c (mswindows_output_console_string):
6993         * console-msw.c (mswindows_windows9x_p):
6994         * console-msw.h:
6995         * device-msw.c (mswindows_get_workspace_coords):
6996         * device-msw.c (mswindows_device_system_metrics):
6997         * dialog-msw.c (mswindows_popup_dialog_box):
6998         * event-msw.c (mswindows_wnd_proc):
6999         * frame-msw.c (mswindows_size_frame_internal):
7000         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
7001         * menubar-msw.c (displayable_menu_item):
7002         * menubar-msw.c (mswindows_char_is_accelerator):
7003         * nt.c:
7004         * nt.c (mswindows_sigset):
7005         * nt.c (mswindows_sigrelse):
7006         * nt.c (mswindows_sigpause):
7007         * nt.c (mswindows_raise):
7008         * nt.c (timer_proc):
7009         * ntproc.c:
7010         * ntproc.c (find_child_console):
7011         * ntproc.c (sys_kill):
7012         * print.c:
7013         * print.c (std_handle_out_external):
7014         * process-nt.c (find_child_console):
7015         * process-nt.c (send_signal_the_95_way):
7016         * process-nt.c (ensure_console_window_exists):
7017         * process-nt.c (nt_create_process):
7018         * syssignal.h:
7019         rename msw_ to mswindows_ for consistency with general convention.
7020
7021         * emacs.c:
7022         * dumper.c:
7023         include nt.h, not syswindows.h.
7024
7025         * nt.c (mswindows_fstat):
7026         * nt.c (mswindows_stat):
7027         prefix mswindows_ instead of attempting to directly override the
7028         library functions.  fix declarations.
7029
7030         * nt.h:
7031         include syswindows.h.  move some sysdep.h stuff here.
7032
7033         * ntheap.h:
7034         include syswindows.h, not <windows.h>.
7035
7036         * ntplay.c:
7037         clean up headers.
7038
7039         * sysdep.c:
7040         clean up headers.
7041
7042         * sysdep.c (sys_fstat):
7043         * sysdep.c (sys_stat):
7044         call mswindows versions when appropriate.
7045
7046         * sysdep.h:
7047         move mswin decls to nt.h.
7048
7049         * syswindows.h:
7050         add long comment describing appropriate use of the various windows
7051         headers.
7052
7053 2000-06-11  Ben Wing  <ben@xemacs.org>
7054
7055         * device-x.c: Correct doc string for sixth arg of x-get-resource.
7056
7057 2000-06-10  Ben Wing  <ben@xemacs.org>
7058
7059         * Makefile.in.in (release):
7060         Correction to make sure xemacs.exe always dumped when correct.
7061
7062         * alloca.c:
7063         * balloon_help.c:
7064         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
7065
7066         * buffer.c (set_buffer_internal):
7067         [[[[2]]]]: Remove HAVE_FEP code.
7068
7069         * buffer.c (init_initial_directory):
7070         [3].
7071
7072         * bytecode.c:
7073         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
7074         individual files.
7075
7076         * callproc.c:
7077         * callproc.c (call_process_cleanup):
7078         * callproc.c (Fold_call_process_internal):
7079         * callproc.c (child_setup):
7080         * callproc.c (getenv_internal):
7081         * callproc.c (init_callproc):
7082         * callproc.c (vars_of_callproc):
7083         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
7084         __CYGWIN32__ -> CYGWIN.
7085         DOS_NT -> WIN32_NATIVE.
7086         Remove MSDOS support/references, converting to WIN32_NATIVE
7087           where correct.
7088         __MINGW32__ -> MINGW.
7089         Fix windows.h includes.
7090         Remove bogus HAVE_NTGUI.
7091
7092         * config.h.in:
7093         [2].
7094
7095         * console-msw.c:
7096         mswindows_message_outputted added for use in allowing startup
7097         errors on the console to be seen.
7098
7099         * console-msw.c (msw_ensure_console_allocated):
7100         * console-msw.c (msw_output_console_string):
7101         * console-msw.c (DHEADER):
7102         * console-msw.c (DOPAQUE_DATA):
7103         * console-msw.c (DEVENT):
7104         * console-msw.c (DCONS):
7105         * console-msw.c (DCONSCDR):
7106         * console-msw.c (DSTRING):
7107         * console-msw.c (DVECTOR):
7108         * console-msw.c (DSYMBOL):
7109         * console-msw.c (DSYMNAME):
7110         Fix warnings.
7111
7112         * console-stream.c (stream_init_console):
7113         Fix text/binary problems.
7114
7115         * device-msw.c:
7116         * device-msw.c (mswindows_finish_init_device):
7117         * device-msw.c (mswindows_delete_device):
7118         [1].
7119
7120         * device.c (handle_asynch_device_change):
7121         [3].
7122
7123         * dgif_lib.c:
7124         * dgif_lib.c (DGifOpenFileName):
7125         * dgif_lib.c (DGifOpenFileHandle):
7126         * dgif_lib.c (DGifGetLine):
7127         * dgif_lib.c (DGifGetPixel):
7128         Added config.h/lisp.h, fix up includes.
7129         [1].
7130
7131         * dired-msw.c:
7132         [4].
7133
7134         * dired.c:
7135         * dired.c (file_name_completion):
7136         * dired.c (Ffile_attributes):
7137         * dired.c (syms_of_dired):
7138         [1].
7139
7140         * dumper.c:
7141         * dumper.c (pdump_file_unmap):
7142         * dumper.c (pdump_load):
7143         [1].
7144
7145         * editfns.c:
7146         * editfns.c (Ftemp_directory):
7147         * editfns.c (user_login_name):
7148         * editfns.c (Fuser_real_login_name):
7149         * editfns.c (get_home_directory):
7150         [1].
7151
7152         * elhash.c (finish_marking_weak_hash_tables):
7153         [[[[5]]]]: Fix GCC warnings.
7154
7155         * emacs.c:
7156         * emacs.c (mswindows_handle_hardware_exceptions):
7157         * emacs.c (make_arg_list_1):
7158         * emacs.c (main_1):
7159         * emacs.c (Fkill_emacs):
7160         * emacs.c (Fdump_emacs):
7161         [1].
7162         Fix problems with nested crashes, add long comment.
7163
7164         * event-Xt.c (init_event_Xt_late):
7165         [1].
7166
7167         * event-msw.c:
7168         * event-msw.c (mswindows_dde_callback):
7169         * event-msw.c (mswindows_handle_sticky_modifiers):
7170         * event-msw.c (mswindows_wnd_proc):
7171         [1].
7172         [5].
7173
7174         * events.c (character_to_event):
7175         [1].
7176
7177         * fileio.c:
7178         * fileio.c (Ffile_name_directory):
7179         * fileio.c (Ffile_name_nondirectory):
7180         * fileio.c (directory_file_name):
7181         * fileio.c (Fexpand_file_name):
7182         * fileio.c (Fsubstitute_in_file_name):
7183         * fileio.c (Ffile_name_absolute_p):
7184         * fileio.c (check_executable):
7185         * fileio.c (Ffile_readable_p):
7186         * fileio.c (Ffile_accessible_directory_p):
7187         * fileio.c (Ffile_modes):
7188         * fileio.c (Funix_sync):
7189         * fileio.c (vars_of_fileio):
7190         [1]. [4].
7191
7192         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
7193
7194         Expand getdefdir defn.
7195         Fix bogus rename() comment.
7196
7197         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
7198         to use standard XEmacs include files, e.g. sysfile.h, rather
7199         than system-specific includes.
7200
7201         * fns.c:
7202         * fns.c (Fsubseq):
7203         [5]. [6].
7204
7205         * frame.c (vars_of_frame):
7206         [1].
7207
7208         * getloadavg.c:
7209         * getloadavg.c (getloadavg):
7210         [1]. [6].
7211         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
7212         (We don't use it elsewhere in the code; just add a comment.)
7213
7214         * gif_io.c:
7215         [6].
7216         Add config.h.
7217
7218         * glyphs-msw.c:
7219         * glyphs-msw.c (mswindows_resource_instantiate):
7220         [1].
7221
7222         * glyphs-x.c (x_native_layout_instantiate):
7223         [5].
7224
7225         * gui-msw.c (Fmswindows_shell_execute):
7226         [1].
7227
7228         * insdel.c:
7229         [4].
7230
7231         * lisp.h:
7232         [4]. [5].
7233
7234         * lread.c (locate_file_in_directory_mapper):
7235         [1].
7236
7237         * lstream.c:
7238         [4].
7239
7240         * mem-limits.h:
7241         * mem-limits.h (get_lim_data):
7242         [1].
7243
7244         * menubar-msw.c:
7245         [4].
7246
7247         * ndir.h:
7248         [1].
7249
7250         * nt.c:
7251         * nt.c (getwd):
7252         * nt.c (closedir):
7253         * nt.c (rva_to_section):
7254         * nt.c (mswindows_executable_type):
7255         [1]. [6].
7256         Fix closedir() defn.
7257
7258         * nt.h:
7259         [[[[8]]]]: *_OK defs moved to sysfile.h.
7260
7261         * ntproc.c:
7262         [6]. [7].
7263
7264         * objects-x.c:
7265         [4].
7266
7267         * print.c:
7268         * print.c (std_handle_out_external):
7269         [1]. [4].
7270
7271         * process-nt.c:
7272         * process-nt.c (nt_create_process):
7273         [6].
7274         try to fix process quoting somewhat.
7275
7276         * process-unix.c (unix_create_process):
7277         [1].
7278
7279         * process.c:
7280         * process.c (vars_of_process):
7281         Add Vnull_device.
7282
7283         * process.h:
7284         [1].
7285
7286         * realpath.c:
7287         * realpath.c (xrealpath):
7288         [1].
7289
7290         * redisplay-tty.c (init_tty_for_redisplay):
7291         [3].
7292
7293         * redisplay.c:
7294         [4]. [6].
7295
7296         * scrollbar-msw.c:
7297         [4].
7298
7299         * sheap.c:
7300         * sheap.c (more_static_core):
7301         * sheap.c (report_sheap_usage):
7302         [5]. [6].
7303
7304         * signal.c:
7305         * signal.c (alarm_signal):
7306         [1]. [6].
7307
7308         * sound.c:
7309         [6].
7310
7311         * strftime.c:
7312         * strftime.c (zone_name):
7313         [1]. [5].
7314
7315         * symsinit.h (init_sunpro):
7316         [1].
7317
7318         * syscommctrl.h:
7319         commctrl.h not in Cygwin b20.1.
7320
7321         * sysdep.c:
7322         * sysdep.c (endif):
7323         * sysdep.c (sys_subshell):
7324         * sysdep.c (init_baud_rate):
7325         * sysdep.c (emacs_get_tty):
7326         * sysdep.c (emacs_set_tty):
7327         * sysdep.c (tty_init_sys_modes_on_device):
7328         * sysdep.c (init_system_name):
7329         * sysdep.c (sys_open):
7330         * sysdep.c (interruptible_open):
7331         * sysdep.c (sys_fopen):
7332         * sysdep.c (sys_mkdir):
7333         * sysdep.c (sys_rename):
7334         * sysdep.c (get_process_times_1):
7335         [1]. [6].
7336
7337         * sysdep.h:
7338         [1].
7339
7340         * sysdir.h:
7341         * sysdir.h (DIRENTRY_NONEMPTY):
7342         [1]. [6].
7343
7344         * sysdll.c (dll_init):
7345         * sysdll.h:
7346         [1].
7347
7348         * sysfile.h:
7349         [1]. [6]. [8].
7350         added text/binary defs.
7351
7352         * sysfloat.h:
7353         [1].
7354
7355         * sysproc.h:
7356         * sysproc.h (EDESTADDRREQ):
7357         * sysproc.h (poll_fds_for_input):
7358         [1]. [6].
7359
7360         * syspwd.h:
7361         [6].
7362
7363         * syssignal.h:
7364         [1].
7365
7366         * systime.h:
7367         [1]. [6].
7368
7369         * systty.h:
7370         [1].
7371
7372         * syswindows.h:
7373         [1].
7374         Always define WIN32_LEAN_AND_MEAN.
7375
7376         * unexcw.c (unexec):
7377         [5].
7378
7379         * unexec.c:
7380         * unexec.c (copy_text_and_data):
7381         * unexec.c (adjust_lnnoptrs):
7382         [1].
7383
7384         * unexnt.c:
7385         * unexnt.c (_start):
7386         [1].
7387
7388 2000-06-07  Ben Wing  <ben@xemacs.org>
7389
7390         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
7391         was used only as a model.  We've long since extracted any useful
7392         logic or code out of this. (I just did an exhaustive search.)
7393
7394         * s\msdos.h: Removed.
7395
7396         * s\windows95.h: Removed.
7397
7398 2000-06-10  Ben Wing  <ben@xemacs.org>
7399
7400         * s\cygwin32.h:
7401         [1]. [5].
7402         Don't use extern with fun defs.
7403
7404         * s\mingw32.h:
7405         [1]. [7].
7406         Remove nt\inc include.
7407         Remove getdisk, getdefdir. (The former is unused, the latter
7408         expanded in fileio.h.)
7409
7410         * s\windowsnt.h:
7411         * s\windowsnt.h (WIN32_NATIVE):
7412         * s\windowsnt.h (HAVE_STRCASECMP):
7413         [1]. [7].
7414         Add long comment about preprocessor changes.
7415         Remove getdisk, getdefdir. (The former is unused, the latter
7416         expanded in fileio.h.)
7417
7418 2000-06-10  Ben Wing  <ben@xemacs.org>
7419
7420         * m\arm.h:
7421         * m\delta.h:
7422         * m\intel386.h:
7423         * m\sequent.h:
7424         * m\template.h:
7425         * m\windowsnt.h:
7426         [1].
7427         Remove bogus/unused NO_SOCK_SIGIO.
7428
7429 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
7430
7431         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
7432         not an Emchar.
7433
7434 2000-06-04  Mike Sperber <mike@xemacs.org>
7435
7436         * casetab.c (set_case_table): For `set-standard-case-table',
7437         actually deposit the new case tables where the rest of XEmacs can
7438         see them.
7439
7440 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
7441
7442         * data.c (Faset): Don't cast XCHAR() to unsigned char.
7443
7444 2000-06-05  Ben Wing  <ben@xemacs.org>
7445
7446         * callproc.c (child_setup): Don't do close_load_descs() under
7447         MS Windows.  Put in a comment explaining why.
7448
7449 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
7450
7451         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
7452         Toolkit shell" which breaks `kill-compilation' on Windows NT
7453         native, retaining STDERR handling improvements.
7454
7455 2000-06-01  Andreas Jaeger  <aj@suse.de>
7456
7457         * s/s390.h: Support for S390, based on a patch by Martin
7458         Schwidefsky <schwidefsky@de.ibm.com>.
7459
7460 2000-05-30  Andy Piper  <andy@xemacs.org>
7461
7462         * window.c (allocate_window):
7463         (make_dummy_parent):
7464         (Fset_window_configuration): use new hashtable type.
7465
7466         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
7467         (struct image_instantiator_methods):
7468         (struct Lisp_Image_Instance): make instance geometry signed.
7469
7470         * glyphs.c (instantiate_image_instantiator):
7471         (image_instance_query_geometry):
7472         (image_instance_layout):
7473         (image_instance_layout):
7474         (query_string_geometry):
7475         (text_query_geometry):
7476         (image_instantiate):
7477         (image_instantiate):
7478         (cache_subwindow_instance_in_frame_maybe):
7479         (subwindow_query_geometry): make instance geometry signed.
7480
7481         * glyphs-widget.c (widget_query_geometry):
7482         (widget_layout):
7483         (button_query_geometry):
7484         (tree_view_query_geometry):
7485         (tab_control_query_geometry):
7486         (layout_query_geometry):
7487         (layout_layout):
7488         (native_layout_layout): make instance geometry signed.
7489
7490 2000-05-29  Olivier Galibert  <galibert@pobox.com>
7491
7492         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
7493         constant.
7494
7495         * general.c (syms_of_general): Add Qfull_assoc symbol.
7496
7497         * data.c (finish_marking_weak_lists): Mark full-assoc lists
7498         correctly.
7499         (decode_weak_list_type): Decode full-assoc type.
7500         (encode_weak_list_type): Encode full-assoc type.
7501         (Fmake_weak_list): Update doc string.
7502
7503 2000-05-30  Andy Piper  <andy@xemacs.org>
7504
7505         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
7506
7507         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
7508         (decode_hash_table_weakness): ditto.
7509         (Fhash_table_weakness): ditto.
7510         (Fhash_table_type): ditto.
7511         (finish_marking_weak_hash_tables): ditto.
7512         (hash_table_weakness_validate): ditto.
7513         (syms_of_elhash): ditto.
7514
7515 2000-05-28  Martin Buchholz <martin@xemacs.org>
7516
7517         * XEmacs 21.2.34 is released.
7518
7519 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
7520
7521         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
7522         start cache.
7523         (updating_line_start_cache): Gone.
7524         (regenerate_window): Replace resetting of VERTICAL_CLIP by
7525         generic code to force a minimum of 1 line laid out in the
7526         CMOTION_DISP case.
7527
7528 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
7529
7530         * glyphs.c (instantiate_image_instantiator): Check for initialized
7531         height & width no longer special cases IMAGE_NOTHING.
7532         (nothing_instantiate): Set height and width of instance.
7533
7534 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
7535
7536         * unexelf.c (unexec): Search for ".data" section.
7537         Initialize new_data2_offset from old_data_index.
7538         Remove redundant check for ElfW.
7539
7540 2000-05-23  Andy Piper  <andy@xemacs.org>
7541
7542         * glyphs.c (get_image_instantiator_governing_domain): allow more
7543         specific domains as the governing domain rather than expecting an
7544         exact match. This fixes problems with layouts.
7545
7546 2000-05-22  Andy Piper  <andy@xemacs.org>
7547
7548         * redisplay-output.c (compare_runes): check for non-images
7549
7550         * glyphs.c (set_glyph_dirty_p): ditto.
7551         (update_glyph_cachel_data): ditto.
7552
7553         * glyphs-widget.c (layout_post_instantiate): ditto.
7554         (layout_post_instantiate): ditto.
7555
7556         * event-msw.c (mswindows_wnd_proc): warning removal.
7557
7558 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
7559
7560         * s\mingw32.h: Added #undef for CLASH_DETECTION.
7561
7562         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
7563
7564         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
7565
7566         * nt.c (rva_to_section): mingw32 needs rva_to_section.
7567         (mswindows_executable_type): mingw32 now has enough headers for
7568         this to work.
7569
7570 2000-05-20  Andy Piper  <andy@xemacs.org>
7571
7572         * console-msw.c (mswindows_output_last_error): ; -> ,
7573
7574 2000-05-12  Andy Piper  <andy@xemacs.org>
7575
7576         * console-msw.c (FROB): compare ints with ints.
7577
7578 2000-05-11  Andy Piper  <andy@xemacs.org>
7579
7580         * glyphs-x.c (x_finalize_image_instance): make minimal build
7581         happy.
7582
7583 2000-05-20  Ben Wing  <ben@xemacs.org>
7584
7585         * event-Xt.c:
7586         * event-Xt.c (vars_of_event_Xt):
7587         move modifier-keys-are-sticky to event-stream.c.
7588
7589         * event-msw.c:
7590         * event-msw.c (mswindows_enqueue_mouse_button_event):
7591         * event-msw.c (key_needs_default_processing_p):
7592         * event-msw.c (XEMSW_LCONTROL):
7593         * event-msw.c (mswindows_handle_sticky_modifiers):
7594         * event-msw.c (FROB):
7595         * event-msw.c (clear_sticky_modifiers):
7596         * event-msw.c (output_modifier_keyboard_state):
7597         * event-msw.c (output_alt_keyboard_state):
7598         * event-msw.c (mswindows_wnd_proc):
7599         * event-msw.c (mswindows_modifier_state):
7600         * event-msw.c (emacs_mswindows_handle_magic_event):
7601         implement sticky modifiers.
7602
7603         * event-stream.c:
7604         * event-stream.c (vars_of_event_stream):
7605         move modifier-keys-are-sticky here.
7606
7607         * lisp.h:
7608         add CHECK_FUNCTION.
7609
7610         * rangetab.c:
7611         implement map-range-table.
7612
7613
7614 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
7615
7616         * redisplay-tty.c (reset_tty_modes):
7617         (tty_redisplay_shutdown): Adjust argument type to
7618         tty_frame_output_end.
7619
7620 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
7621
7622         * eval.c (Fbacktrace): Don't output a line with only right
7623         parenthesis.
7624
7625 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
7626
7627         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
7628         (Fpq_reset_poll): Ditto.
7629
7630 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
7631
7632         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
7633
7634 2000-05-16  Ben Wing  <ben@xemacs.org>
7635
7636         * buffer.c:
7637         * buffer.c (dfc_convert_to/from_internal_format):
7638         * buffer.c (reinit_vars_of_buffer):
7639         Fix conversion functions to allow reentrancy.
7640
7641         * console-msw.c:
7642         * console-msw.c (mswindows_output_last_error):
7643         New fun, generally useful -- output a human-readable
7644         version of GetLastError() on the console.
7645
7646         * console-msw.h:
7647         * console-msw.h (struct mswindows_frame):
7648         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
7649
7650         * console-stream.c (stream_output_begin):
7651         * console-stream.c (stream_output_end):
7652         * console-stream.c (stream_output_vertical_divider):
7653         * console-stream.c (stream_clear_region):
7654         * console-stream.c (stream_flash):
7655         * console-stream.c (console_type_create_stream):
7656         Delete blank stream methods, not needed.
7657
7658         * console.h (struct console_methods):
7659         Split begin/end methods into window and frame.
7660
7661         * event-msw.c:
7662         * event-msw.c (mswindows_handle_paint):
7663         * event-msw.c (output_alt_keyboard_state):
7664         * event-msw.c (mswindows_wnd_proc):
7665         * event-msw.c (vars_of_event_mswindows):
7666         Comment about problems with ignored-expose.
7667         Define mswindows-debug-events; not really implemented.
7668
7669         * frame-msw.c (mswindows_init_frame_1):
7670         random cleanups.
7671
7672         * glyphs-msw.c:
7673         * glyphs-msw.c (begin_defer_window_pos):
7674         * glyphs-msw.c (mswindows_unmap_subwindow):
7675         * glyphs-msw.c (mswindows_map_subwindow):
7676         * glyphs-msw.c (mswindows_resize_subwindow):
7677         Use DeferWindowPos to reduce flashing when mapping/unmapping.
7678
7679         * glyphs.c (make_image_instance_1):
7680         Fix crash.
7681
7682         * gutter.c (Fredisplay_gutter_area):
7683         Use new begin/end methods.
7684
7685         * lisp.h (Dynarr_new2):
7686         New creation fun.
7687
7688         * redisplay-msw.c:
7689         * redisplay-msw.c (mswindows_frame_output_begin):
7690         * redisplay-msw.c (mswindows_frame_output_end):
7691         * redisplay-msw.c (console_type_create_redisplay_mswindows):
7692         New begin/end methods -- handle DeferWindowPos.
7693
7694         * redisplay-output.c (redisplay_move_cursor):
7695         * redisplay-output.c (redraw_cursor_in_window):
7696         * redisplay-output.c (redisplay_update_line):
7697         * redisplay-output.c (redisplay_output_window):
7698         New begin/end methods.
7699
7700         * redisplay-tty.c:
7701         * redisplay-tty.c (tty_frame_output_begin):
7702         * redisplay-tty.c (tty_frame_output_end):
7703         * redisplay-tty.c (console_type_create_redisplay_tty):
7704         New begin/end methods.
7705
7706         * redisplay-x.c:
7707         * redisplay-x.c (x_window_output_begin):
7708         * redisplay-x.c (x_window_output_end):
7709         * redisplay-x.c (console_type_create_redisplay_x):
7710         New begin/end methods.
7711
7712         * redisplay.c (redisplay_frame):
7713         * redisplay.c (Fredisplay_echo_area):
7714         New begin/end methods.
7715         use MAYBE_DEVMETH for clear_frame; it may not exist.
7716
7717         * window.h (WINDOW_XFRAME):
7718         WINDOW_XFOO macros -- get locale and decode struct pointer.
7719
7720
7721 2000-05-12  Ben Wing  <ben@xemacs.org>
7722
7723         * emacs.c:
7724         * emacs.c (ensure_no_quitting_from_now_on):
7725         * emacs.c (fatal_error_signal):
7726         * emacs.c (mswindows_handle_hardware_exceptions):
7727         * emacs.c (main):
7728         * emacs.c (Fkill_emacs):
7729         * emacs.c (shut_down_emacs):
7730         * emacs.c (assert_failed):
7731         various improvements in fatal error handling.
7732
7733         * eval.c:
7734         move preparing_for_armageddon to emacs.c.
7735
7736         * lisp.h:
7737         declare fatal_error_in_progress.
7738
7739         * print.c:
7740         * print.c (std_handle_out_external):
7741         * print.c (std_handle_out_va):
7742         * print.c (stderr_out):
7743         * print.c (stdout_out):
7744         use console under mswin when no standard output.
7745         don't do code conversion during fatal error.
7746
7747         * scrollbar.c (Fscrollbar_page_up):
7748         * scrollbar.c (Fscrollbar_page_down):
7749         fix missing else.  reindent.
7750
7751 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
7752
7753         Emergency fix.
7754
7755         * glyphs.h (GLYPH_CACHEL_DESCENT):
7756         (GLYPH_CACHEL_DESCENT):
7757         (GLYPH_CACHEL_DESCENT):
7758         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
7759         used in case these are inline functions.
7760         Use more absurd values to error check.
7761
7762         include window.h for error check functions.
7763
7764 2000-05-11  Ben Wing  <ben@xemacs.org>
7765
7766         * cmdloop.c (Freally_early_error_handler):
7767         Display message box under windows; otherwise, message will disappear
7768         before it can be viewed.
7769
7770         * console-msw.c:
7771         * console-msw.c (Fmswindows_message_box):
7772         * console-msw.c (FROB):
7773         * console-msw.c (syms_of_console_mswindows):
7774         Define new fun `mswindows-message-box'.
7775         #### I will merge this into `popup-dialog-box'; just give me
7776         a bit of time.
7777
7778         * general.c:
7779         * general.c (syms_of_general):
7780         Some new symbols used in `mswindows-message-box'.
7781
7782         * glyphs.c:
7783         * glyphs.c (Fset_image_instance_property):
7784         put warning in this fun.
7785
7786         * glyphs.h:
7787         * glyphs.h (GLYPH_CACHEL_WIDTH):
7788         * glyphs.h (GLYPH_CACHEL_ASCENT):
7789         * glyphs.h (GLYPH_CACHEL):
7790         * glyphs.h (GLYPH_CACHEL_GLYPH):
7791         define error-checking versions to try to catch a bug i've seen --
7792         redisplay gets in an infinite loop because the glyph width of the
7793         continuation glyph is 65535.
7794
7795         * lisp.h:
7796         Extern message-box stuff.
7797
7798         * window.c (allocate_window):
7799         * window.c (make_dummy_parent):
7800         * window.c (Fset_window_configuration):
7801         Use EQUAL not EQ for subwindow caches to make them work a bit
7802         better. (Something is still very broken.)
7803
7804
7805 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
7806
7807         * glyphs.c (image_instantiate): Suppress gcc warnings.
7808         (Fmake_image_instance): Fix doc string.
7809         * specifier.c (Fmake_specifier): Ditto.
7810
7811 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
7812
7813         * paths.h.in (PATH_LOCK): Removed.
7814         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
7815         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
7816
7817 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
7818
7819         * fns.c (Ffeaturep): Update e-mail address in doc-string.
7820         Document (featurep '(and xemacs 21.02)).
7821
7822 2000-05-09  Ben Wing  <ben@xemacs.org>
7823
7824         * buffer.c (complex_vars_of_buffer):
7825         update modeline-format doc.
7826
7827         * device.h:
7828         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
7829
7830         * emacs.c:
7831         timeline of all released versions of Emacs, for use in creating
7832         authorship comments and in synching up.
7833
7834         * glyphs-widget.c (image_instantiator_buttons):
7835         * glyphs-widget.c (image_instantiator_edit_fields):
7836         * glyphs-widget.c (image_instantiator_combo_box):
7837         * glyphs-widget.c (image_instantiator_scrollbar):
7838         * glyphs-widget.c (image_instantiator_progress_guage):
7839         * glyphs-widget.c (image_instantiator_tree_view):
7840         * glyphs-widget.c (image_instantiator_tab_control):
7841         * glyphs-widget.c (image_instantiator_labels):
7842         * glyphs-widget.c (image_instantiator_layout):
7843         * glyphs-widget.c (image_instantiator_native_layout):
7844         rename decode_domain method to governing_domain.
7845
7846         * glyphs.c:
7847         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
7848         * glyphs.c (add_entry_to_device_ii_format_list):
7849         make sure we don't put an entry more than once into the list.
7850         * glyphs.c (check_instance_cache_mapper):
7851         *************************************************************
7852         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
7853         HAVE BEEN GETTING.
7854         *************************************************************
7855         * glyphs.c (get_image_instantiator_governing_domain):
7856         clean up, expand on new concept of governing domain.
7857         * glyphs.c (instantiate_image_instantiator):
7858         * glyphs.c (allocate_image_instance):
7859         use governing_domain instead of cache_domain in naming.
7860         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
7861         * glyphs.c (make_image_instance_1):
7862         * glyphs.c (Fmake_image_instance):
7863         allow for any domain (not just device), and process the
7864         governing domain correctly.  very big doc fix.
7865         * glyphs.c (Fimage_instance_domain):
7866         new primitive, to retrieve the governing domain of an image instance.
7867         * glyphs.c (image_instantiate):
7868         use new governing_domain stuff.  this fixes a crash you could get
7869         by instantiating certain widget glyphs in frame locales. (should
7870         signal an error instead of crashing.)
7871         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
7872         * glyphs.c (Fglyphp): clean up doc.
7873         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
7874         * glyphs.c (syms_of_glyphs):
7875         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
7876         * glyphs.c (image_instantiator_format_create): add some comments about
7877         bogus code.
7878         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
7879         for current-display-table. (Apparently Hrjove implemented in 1998 a
7880         design I wrote up in 1996, but didn't update the doc string.)
7881
7882         * glyphs.h: clean up a doc string.
7883         * glyphs.h (governing_domain):
7884         * glyphs.h (struct image_instantiator_methods):
7885         changes for governing_domain stuff.
7886
7887         * gutter.c:
7888         * gutter.c (Fgutter_specifier_p):
7889         * gutter.c (Fgutter_size_specifier_p):
7890         * gutter.c (Fgutter_visible_specifier_p):
7891         * objects.c:
7892         * objects.c (Fcolor_specifier_p):
7893         * objects.c (Ffont_specifier_p):
7894         * objects.c (Fface_boolean_specifier_p):
7895         doc strings moved to make-*-specifier.
7896
7897         * redisplay.c (add_disp_table_entry_runes_1):
7898         * redisplay.c (generate_fstring_runes):
7899         * redisplay.c (screen):
7900         add random comments and doc strings.
7901
7902         * specifier.c:
7903         * specifier.c (Fmake_specifier):
7904         major overhaul of this doc string.
7905
7906         * specifier.c (Fvalid_specifier_domain_p):
7907         comment about the bogosity of image instances being domains.
7908         * specifier.c (decode_domain):
7909         now non-static, used in glyphs.c.
7910         * specifier.c (specifier_instance):
7911         comment about the bogosity of image instances being domains.
7912         * specifier.c (Fgeneric_specifier_p):
7913         move doc string to make-generic-specifier.
7914         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
7915         rebackslashify.
7916
7917         * specifier.h:
7918         * specifier.h (DOMAIN_FRAME):
7919         * specifier.h (DOMAIN_LIVE_P):
7920         * specifier.h (DOMAIN_XDEVICE):
7921         rebackslashify.
7922         add comments about problems with these macros.
7923         prototype for decode_domain.
7924
7925         * toolbar.c:
7926         * toolbar.c (Ftoolbar_specifier_p):
7927         move doc string to `make-toolbar-specifier'.
7928
7929         * window.c (window_unmap_subwindows_cache_mapper):
7930         *************************************************************
7931         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
7932         HAVE BEEN GETTING.
7933         *************************************************************
7934
7935 2000-05-09  Andy Piper  <andy@xemacs.org>
7936
7937         * glyphs.h: declare reset_frame_subwindow_instance_cache.
7938
7939         * window.c (Fset_window_configuration): reset the frame subwindow
7940         cache and re-initialize the window subwindow caches.
7941
7942         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
7943
7944 2000-05-09  Ben Wing  <ben@xemacs.org>
7945
7946         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
7947         DWORD.
7948
7949 2000-04-26  Mike Woolley  <mike@bulsara.com>
7950
7951         * ntheap.c: Changed recreate_heap to limit the amount reserved
7952         for the heap to that which is actually available. Also now
7953         displays a message box (with some dignostics) in the event that
7954         it still can't start.
7955
7956 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
7957
7958         * callproc.c (Fold_call_process_internal): GCPRO path
7959
7960 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
7961
7962         Patch by Bill Perry.
7963
7964         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
7965         back data instead of #ifdef.
7966         (Fscrollbar_page_down): ditto.
7967
7968 2000-05-07  Ben Wing  <ben@xemacs.org>
7969
7970         * buffer.h:
7971         Kludge for defining Qmswindows_tstr.
7972
7973         * nt.c:
7974         * nt.c (open_input_file):
7975         * nt.c (open_output_file):
7976         * nt.c (rva_to_section):
7977         * nt.c (mswindows_executable_type):
7978         Move all memory-mapped-file routines here (some were in unexnt.c,
7979         which is bad because they are used by process-nt.c, and unexnt
7980         won't be around when portable dumping).  Synched the above routines
7981         with FSF 20.6.
7982
7983         * nt.h:
7984         Removed ifdef'd out bogus code.
7985         Fixed some prototypes.
7986
7987         * nt.h (file_data):
7988         * nt.h (OFFSET_TO_RVA):
7989         * nt.h (RVA_TO_OFFSET):
7990         * nt.h (RVA_TO_PTR):
7991         Moved the memory-mapped-file structures, macros and prototypes
7992         here, to parallel nt.c.  ntheap.h should really be removed
7993         entirely, and it's a non-portable-dumper specific file.
7994
7995         * ntheap.h (round_to_next):
7996         Moved the memory-mapped-file structures, macros and prototypes
7997         to nt.h.
7998
7999         * ntproc.c (compare_env):
8000         Moved rva_to_section and mswindows_executable_type to nt.c.
8001         Moved compare_env to process-nt.c.
8002         ntproc.c will die, one day.
8003
8004         * ntproc.c (sys_spawnve):
8005         Account for win32_ -> mswindows_.
8006
8007         * process-nt.c:
8008         * process-nt.c (struct nt_process_data):
8009         * process-nt.c (ensure_console_window_exists):
8010         * process-nt.c (compare_env):
8011         * process-nt.c (nt_create_process):
8012         * process-nt.c (nt_kill_process_by_pid):
8013         * process-nt.c (syms_of_process_nt):
8014         * process-nt.c (vars_of_process_nt):
8015         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
8016         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
8017         changes).  Eliminate our old `nt-quote-process-args' mechanism.
8018         Synch up nt_create_process with FSF 20.6 sys_spawnve.
8019         Move compare_env here from ntproc.c.
8020
8021         * process.c (Fprocess_send_region):
8022         Takes an optional fourth argument, BUFFER, which should fix some
8023         problems with call-process.
8024
8025         * syscommctrl.h:
8026         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
8027
8028         * syswindows.h:
8029         Move ICC_BAR_CLASSES to syscommctrl.h.
8030         Add preliminary macros for MSWindows/Mule.  More to come.
8031
8032         * unexnt.c:
8033         * unexnt.c (unexec):
8034         open_output_file moved to nt.c.
8035
8036
8037 2000-05-05  Andy Piper  <andy@xemacs.org>
8038
8039         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
8040         instance from the frame cache also since GC may catch up too late
8041         to make frame deletion sane.
8042
8043 2000-05-04  Andy Piper  <andy@xemacs.org>
8044
8045         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
8046         (x_finalize_image_instance): ungcpro on deletion.
8047
8048         * glyphs.c (image_instantiator_format_create): give pointers a
8049         query geometry method so that the geometry is at least set.
8050
8051         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
8052         initialize layouts if using widgets.
8053
8054 2000-05-03  Andy Piper  <andy@xemacs.org>
8055
8056         * nt.c: remove bogus reference to sysmmsystem.h
8057
8058         * gui-x.c (popup_selection_callback): fix no selection abort.
8059
8060 2000-05-02  Andy Piper  <andy@xemacs.org>
8061
8062         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
8063         (mswindows_widget_instantiate): ditto.
8064
8065         * glyphs-widget.c (initialize_widget_image_instance): initialize
8066         children correctly.
8067         (widget_instantiate): cope with children and items in the same
8068         instance.
8069
8070         * glyphs.c (mark_image_instance): cope with children as a first
8071         class member.
8072         (image_instance_equal): ditto.
8073         (image_instance_hash): ditto.
8074         (image_instance_changed): ditto.
8075
8076 2000-04-30  Andy Piper  <andy@xemacs.org>
8077
8078         * glyphs.c (subwindow_query_geometry): new function. Return some
8079         defaults.
8080         (subwindow_instantiate): don't assign dimensions if none have been
8081         given.
8082         (image_instantiator_format_create): add subwindow_query_geometry.
8083         (print_image_instance): cope with layouts as widgets.
8084
8085 2000-04-29  Andy Piper  <andy@xemacs.org>
8086
8087         * frame.c (delete_frame_internal): call
8088         free_frame_subwindow_instance_cache so that all subwindows are
8089         finalized before their parent.
8090         (mark_frame): remove subwindow_cachels.
8091         (Fmake_frame): remove subwindow_cachel manipulation.
8092         (allocate_frame_core): subwindow_instance_cache is a weak list.
8093         (delete_frame_internal): set subwindow_instance_cache to nil.
8094
8095         * glyphs-msw.c (mswindows_finalize_image_instance): make double
8096         finalization safe.
8097         (mswindows_finalize_image_instance): use the device
8098         not the domain as the domain may have died already.
8099
8100         * glyphs-x.c (x_finalize_image_instance): ditto.
8101         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
8102         HEIGHT.
8103
8104         * redisplay-output.c (redisplay_unmap_subwindows): update for
8105         subwindow instance cache as a weak list.
8106         (redisplay_unmap_subwindows_maybe): ditto.
8107         (redisplay_unmap_subwindows_except_us): ditto.
8108
8109         * glyphs.c (unmap_subwindow): error checking will check the domain
8110         so don't deal with it here. Don't use cachels anymore.
8111         (map_subwindow): ditto.
8112         (update_subwindow_cachel_data): remove old accessor names.
8113         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
8114         (Fresize_subwindow): don't update cachel.
8115         (mark_subwindow_cachels):
8116         (update_subwindow_cachel_data):
8117         (add_subwindow_cachel):
8118         (get_subwindow_cachel_index):
8119         (update_subwindow_cachel):
8120         (reset_subwindow_cachels):
8121         (mark_subwindow_cachels_as_not_updated): deleted.
8122         (cache_subwindow_instance_in_frame_maybe): new function. Add a
8123         subwindow instance to the frame cache.
8124         (find_matching_subwindow): update for subwindow instance cache as
8125         a weak list.
8126         (update_widget_instances): ditto.
8127         (image_instance_type_to_mask):inlined.
8128         (free_frame_subwindow_instance_cache): new function. finalize all
8129         subwindows that are instantiated.
8130
8131         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
8132         of cachel information.
8133         (IMAGE_INSTANCE_DISPLAY_X):
8134         (IMAGE_INSTANCE_DISPLAY_Y):
8135         (IMAGE_INSTANCE_DISPLAY_WIDTH):
8136         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
8137         (XIMAGE_INSTANCE_DISPLAY_X):
8138         (XIMAGE_INSTANCE_DISPLAY_Y):
8139         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
8140         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
8141         remove subwindow_cachel structure and function references.
8142         (image_instance_type_to_mask): inline from glyphs.c
8143
8144         * redisplay.c (redisplay_frame): remove subwindow_cachel
8145         references.
8146
8147         * frame.h (struct frame): remove subwindow_cachels.
8148         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
8149
8150         * frameslots.h: add subwindow_instance_cache.
8151
8152         * window.c (replace_window): check subwindow cache of replacement.
8153         (window_unmap_subwindows_cache_mapper):
8154         (window_unmap_subwindows): new functions. Unmap all subwindows
8155         cached on this window.
8156         (mark_window_as_deleted): unmap all subwindows.
8157
8158 2000-04-27  Andy Piper  <andy@xemacs.org>
8159
8160         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
8161
8162         * glyphs-widget.c (widget_layout): return something.
8163         (layout_layout): return something. Fail if not initialized.
8164         (layout_query_geometry): ditto.
8165         (image_instantiator_native_layout): new function. Initialized the
8166         native layout type.
8167         (widget_instantiate): don't do layout stuff here.
8168
8169         * glyphs.c (instantiate_image_instantiator): reorded calling or
8170         instantiate and post_instantiate with layout in between.
8171         (image_instance_layout): be more selective about deciding whether
8172         the layout has been done or not.
8173
8174         * glyphs.h (struct image_instantiator_methods): return a value
8175         from layout_method.
8176
8177 2000-04-26  Andy Piper  <andy@xemacs.org>
8178
8179         * glyphs.c (allocate_image_instance): make initial width and
8180         height unspecified. Set initialized to 0.
8181
8182         * syscommctrl.h new file. Encapsulates commctrl.h.
8183
8184         * syswindows.h new file. Encapsulates windows.h.
8185
8186         * ntplay.c: use new syswindows.h and syscommctrl.h header.
8187         * nt.c: ditto.
8188         * console-msw.h: ditto.
8189
8190         * redisplay-tty.c (tty_output_display_block): remove layout references.
8191
8192         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
8193         window handle rather than just the frame.
8194
8195         * glyphs.c (mark_image_instance): remove layout references.
8196         (print_image_instance): ditto.
8197         (image_instance_equal): ditto.
8198         (image_instance_hash): ditto.
8199         (decode_image_instance_type): ditto.
8200         (encode_image_instance_type): ditto.
8201         (image_instantiate): ditto.
8202         (allocate_glyph): ditto.
8203         (Fimage_instance_height): ditto.
8204         (Fimage_instance_width): ditto.
8205         (update_subwindow): ditto.
8206
8207         * redisplay-x.c (x_output_display_block): recode for layouts as
8208         widgets.
8209
8210         * redisplay-output.c (redisplay_output_layout): recode for layouts
8211         as widgets.
8212         (compare_runes): remove layout references.
8213
8214         * redisplay-msw.c (mswindows_output_display_block): recode for
8215         layouts as widgets.
8216
8217         * glyphs-widget.c (image_instantiator_layout): remove
8218         layout_possible_dest_types.
8219         (layout_possible_dest_types): deleted.
8220
8221         * glyphs.h (image_instance_type): remove layout references.
8222         (struct Lisp_Image_Instance): ditto. Add initialized flag.
8223         (IMAGE_INSTANCE_INITIALIZED): new accessor.
8224         (XIMAGE_INSTANCE_INITIALIZED): ditto.
8225
8226 2000-04-25  Andy Piper  <andy@xemacs.org>
8227
8228         * glyphs-widget.c (image_instantiator_buttons):
8229         (image_instantiator_edit_fields):
8230         (image_instantiator_combo_box):
8231         (image_instantiator_scrollbar):
8232         (image_instantiator_progress_guage):
8233         (image_instantiator_tree_view):
8234         (image_instantiator_tab_control):
8235         (image_instantiator_labels):
8236         (image_instantiator_layout): call default post_instantiate method.
8237         (widget_post_instantiate): new function. Simply lays out the
8238         widgets.
8239
8240         * glyphs.h (struct image_instantiator_methods): add
8241         post_instantiate method.
8242
8243         * glyphs.c (instantiate_image_instantiator): add post_instantiate
8244         method calls.
8245
8246 2000-04-23  Andy Piper  <andy@xemacs.org>
8247
8248         * glyphs.h (struct image_instantiator_methods): add
8249         decode_domain_method.
8250         (struct Lisp_Image_Instance): remove subwindow frame - it can be
8251         derived from the domain.
8252         (IMAGE_INSTANCE_FRAME): new accessor.
8253         (XIMAGE_INSTANCE_FRAME): ditto.
8254
8255         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
8256         instead of _SUBWINDOW_FRAME.
8257         (finalize_image_instance): ditto.
8258         (Fimage_instance_foreground): ditto.
8259         (Fimage_instance_background): ditto.
8260         (image_instantiate): ditto.
8261         (update_subwindow_cachel): ditto.
8262         (update_subwindow): ditto.
8263         (unmap_subwindow): ditto.
8264         (map_subwindow): ditto
8265         (subwindow_instantiate): ditto.
8266         * glyphs-msw.c (mswindows_update_widget): ditto.
8267         (mswindows_progress_gauge_instantiate): ditto.
8268         (mswindows_tab_control_update): ditto.
8269         * glyphs-x.c (x_update_widget): ditto.
8270         (x_widget_instantiate): ditto.
8271         (x_tab_control_instantiate): ditto.
8272         (x_tab_control_update): ditto.
8273         * event-msw.c (mswindows_wnd_proc): ditto
8274
8275         * glyphs-widget.c (image_instantiator_layout): use
8276         subwindow_decode_domain.
8277         (image_instantiator_buttons): ditto.
8278         (image_instantiator_edit_fields): ditto.
8279         (image_instantiator_combo_box): ditto.
8280         (image_instantiator_scrollbar): ditto.
8281         (image_instantiator_progress_guage): ditto.
8282         (image_instantiator_tree_view): ditto.
8283         (image_instantiator_tab_control): ditto.
8284         (image_instantiator_labels): ditto.
8285         (image_instantiator_layout): ditto.
8286
8287         * glyphs.c: add instance error checking to many functions.
8288         (instantiate_image_instantiator): decode device from cache_domain.
8289         (image_instantiate): partially rewrite by using
8290         decode_image_instantiator_domain to determine what domain the
8291         instance needs to be cached in.
8292         (decode_image_instantiator_domain): new function. Determine what
8293         domain the image needs to be cached in.
8294         (check_window_subwindow_cache): new error checking function.
8295         (check_instance_cache_mapper): ditto.
8296         (check_image_instance_structure): ditto.
8297         (subwindow_decode_domain): new function. Encodes a window as a
8298         subwindow's cache domain.
8299         (image_instantiator_format_create): use it for text and
8300         subwindows.
8301
8302 2000-04-21  Andy Piper  <andy@xemacs.org>
8303
8304         * glyphs.c (image_instance_device): new function.
8305         (image_instance_frame): new function.
8306         (image_instance_window): new function.
8307         (image_instance_live_p): new function.
8308
8309         * window.c (mark_window_as_deleted): reset the subwindow_instance_
8310         cache to nil.
8311
8312         * glyphs.h (struct Lisp_Image_Instance): device->domain.
8313         (IMAGE_INSTANCE_DOMAIN): new accessor.
8314         (XIMAGE_INSTANCE_DOMAIN): ditto.
8315
8316         * glyphs-x.c (x_finalize_image_instance): device->domain.
8317
8318         * glyphs-msw.c (init_image_instance_geometry): device->domain.
8319         (mswindows_finalize_image_instance): ditto.
8320
8321         * glyphs-eimage.c (jpeg_instantiate): device->domain.
8322         (gif_instantiate): ditto.
8323         (png_instantiate): ditto.
8324         (tiff_instantiate): ditto.
8325
8326         * glyphs.c (instantiate_image_instantiator): use domain rather
8327         than device.
8328         (mark_image_instance): device -> domain.
8329         (print_image_instance): ditto.
8330         (finalize_image_instance): ditto.
8331         (image_instance_equal): ditto.
8332         (allocate_image_instance): ditto.
8333         (Fcolorize_image_instance): ditto.
8334         (query_string_geometry): ditto.
8335         (image_instantiate): ditto
8336         (query_string_font): ditto.
8337         (image_instantiate): ditto.
8338         (update_subwindow): ditto.
8339         (unmap_subwindow): ditto.
8340         (map_subwindow): ditto.
8341         (subwindow_instantiate): ditto.
8342
8343         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
8344         (DOMAIN_FRAME): ditto.
8345         (DOMAIN_WINDOW): ditto.
8346         (DOMAIN_LIVE_P): ditto.
8347         (XDOMAIN_DEVICE): ditto.
8348         (XDOMAIN_FRAME): ditto.
8349         (XDOMAIN_WINDOW): ditto.
8350
8351         * specifier.c (Fvalid_specifier_domain_p): add image instances as
8352         a valid specifier domain.
8353
8354 2000-04-19  Andy Piper  <andy@xemacs.org>
8355
8356         * glyphs-widget.c (syms_of_glyphs_widget): remove
8357         widget-callback-current-channel.
8358         (vars_of_glyphs_widget): ditto.
8359         * glyphs.h: ditto
8360
8361         * gui.c (get_gui_callback): revert to previous behaviour.
8362
8363 2000-04-18  Andy Piper  <andy@xemacs.org>
8364
8365         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
8366         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
8367         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
8368
8369         * glyphs.c (image_instance_equal): add margin_width.
8370         (image_instance_hash): ditto.
8371
8372         * glyphs-widget.c (widget_instantiate): deal with margin-width.
8373         (layout_query_geometry): ditto.
8374         (layout_layout): ditto.
8375         (syms_of_glyphs_widget): add margin-width.
8376         (image_instantiator_layout): allow margin-width.
8377
8378         * glyphs.c (update_widget_instances): make a normal function.
8379         (syms_of_glyphs): remove Qupdate_widget_instances.
8380         * glyphs.h: ditto.
8381
8382         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
8383         so that we don't corrupt ideas about the last event or
8384         command. Remove widget-callback-current-channel fiddling.
8385         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
8386
8387 2000-05-01  Martin Buchholz <martin@xemacs.org>
8388
8389         * XEmacs 21.2.33 is released.
8390
8391 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
8392
8393         * make-src-depend: Allow dots in header file name.
8394
8395 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
8396
8397         * mule-charset.h (struct charset_lookup): Add
8398         next_allocated_1_byte_leading_byte and
8399         next_allocated_2_byte_leading_byte.
8400         * mule-charset.c: Move above two variables so that those values
8401         will be dumped.
8402
8403 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
8404
8405         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
8406         when string length is zero.
8407         (find_charsets_in_emchar_string): Ditto.
8408
8409 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
8410
8411         * lisp.h: extern Qdialog and Qmenubar.
8412
8413         * gui-x.c: added events.h.
8414                 also fixed typo which made the file uncompilable.
8415
8416         * general.c: Added Qmenubar and Qdialog
8417
8418 2000-04-28  Ben Wing  <ben@xemacs.org>
8419
8420         * frame-msw.c (mswindows_init_frame_1):
8421         * frame-msw.c (mswindows_mark_frame):
8422         * event-msw.c (mswindows_enqueue_dispatch_event):
8423         * console-msw.h:
8424         * console-msw.h (struct mswindows_frame):
8425         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
8426         there are now three hash tables for callbacks.
8427         mswindows_enqueue_dispatch_event is no longer static.
8428
8429         * dialog-x.c (maybe_run_dbox_text_callback):
8430         * dialog-x.c (dbox_descriptor_to_widget_value):
8431         switch to new cons3 form for callbacks.
8432
8433         * glyphs-msw.c (mswindows_register_gui_item):
8434         * glyphs-msw.c (mswindows_widget_instantiate):
8435         * glyphs-msw.c (add_tree_item):
8436         * glyphs-msw.c (add_tab_item):
8437         new image instance parameter, so it can be passed to callback-ex.
8438         respect :callback-ex as well as :callback.
8439
8440         * glyphs-widget.c (VALID_GUI_KEYWORDS):
8441         add :callback-ex.
8442
8443         * glyphs.c (print_image_instance):
8444         prettify, e.g. now prints widget type.
8445
8446         * gui-x.h:
8447         certain funs have new image instance parameter.
8448
8449         * gui.c:
8450         * gui.c (get_gui_callback):
8451         * gui.c (gui_item_add_keyval_pair):
8452         * gui.c (gui_item_init):
8453         * gui.c (gui_add_item_keywords_to_plist):
8454         * gui.c (mark_gui_item):
8455         * gui.c (gui_item_hash):
8456         * gui.c (gui_item_equal):
8457         * gui.c (copy_gui_item):
8458         * gui.c (syms_of_gui):
8459         recognize callback-ex in a number of places.
8460         also, fix the annoying "can't get out of yes-no dialog" bug.
8461
8462         * gui.h:
8463         * gui.h (struct Lisp_Gui_Item):
8464         recognize callback-ex in a number of places.
8465
8466         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
8467         new parameter in button_item_to_widget_value.
8468
8469         * glyphs-x.c (x_update_widget):
8470         * glyphs-x.c (x_button_instantiate):
8471         * glyphs-x.c (x_button_update):
8472         * glyphs-x.c (x_progress_gauge_instantiate):
8473         * glyphs-x.c (x_edit_field_instantiate):
8474         * glyphs-x.c (x_combo_box_instantiate):
8475         * glyphs-x.c (x_tab_control_instantiate):
8476         * glyphs-x.c (x_label_instantiate):
8477         new image instance parameter in various places.
8478
8479         * event-Xt.c:
8480         * event-Xt.c (enqueue_Xt_dispatch_event):
8481         this fun gets exported.
8482
8483         * gui-msw.c:
8484         * gui-msw.c (mswindows_handle_gui_wm_command):
8485         handle both :callback and :callback-ex, and generate our own
8486         event because it's one of the callback-ex arguments.
8487
8488         * gui-x.c:
8489         * gui-x.c (popup_selection_callback):
8490         handle both :callback and :callback-ex, and generate our own
8491         event because it's one of the callback-ex arguments.
8492         * gui-x.c (button_item_to_widget_value):
8493         * gui-x.c (gui_items_to_widget_values_1):
8494         * gui-x.c (gui_item_children_to_widget_values):
8495         * gui-x.c (gui_items_to_widget_values):
8496         new image instance parameter in various places.
8497
8498         * fns.c (Freplace_list):
8499         fix small typo in doc string.
8500
8501         * lisp.h:
8502         declare enqueue_Xt_dispatch_event.
8503
8504 2000-04-28  Ben Wing  <ben@xemacs.org>
8505
8506         * buffer.c:
8507         * buffer.c (Frecord_buffer):
8508         * buffer.c (syms_of_buffer):
8509         delete record-buffer-hook.
8510
8511         * fns.c:
8512         * fns.c (Freplace_list):
8513         * fns.c (syms_of_fns):
8514         new primitive replace-list.
8515
8516         * frameslots.h:
8517         slot for old buffer-alist.
8518
8519         * lisp.h:
8520         exfun replace-list.
8521
8522         * redisplay.c:
8523         * redisplay.c (redisplay_frame):
8524         * redisplay.c (syms_of_redisplay):
8525         * redisplay.c (vars_of_redisplay):
8526         new hook buffer-list-changed-hook.
8527         call it.
8528
8529 2000-04-27  Ben Wing  <ben@xemacs.org>
8530
8531         * extents.h: extern in_modeline_generation.
8532
8533         * redisplay.c (generate_formatted_string_db): set
8534         in_modeline_generation.
8535
8536         * extents.c (extent_changed_for_redisplay): don't mark redisplay
8537         flags if in modeline generation.  otherwise frame-modified-tick
8538         is ticked far too often.
8539         Declare in_modeline_generation.
8540
8541 2000-04-26  Ben Wing  <ben@xemacs.org>
8542
8543         * emacs.c (vars_of_emacs): document quick-build "error-checking"
8544         option.
8545         (vars_of_emacs): add quick-build as an error-checking option.
8546         A bit kludgy, but there doesn't seem much point in creating
8547         a real var for this.
8548
8549         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
8550
8551 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
8552
8553         * redisplay.h (struct display_line): Add a new variable,
8554         line_continuation.
8555
8556         * redisplay.c (create_text_block): Set dl->line_continuation if
8557         the line continues.
8558         (create_string_text_block): Ditto.
8559         (regenerate_window_incrementally): Use line_continuation instead
8560         of searching continuation glyph.
8561         (add_margin_runes): Call add_glyph_rune.
8562         (add_glyph_rune): Handle margin glyph.
8563
8564 2000-04-20  Martin Buchholz  <martin@xemacs.org>
8565
8566         * filelock.c (fill_in_lock_file_name):
8567         ANSIfy.
8568         Check for IS_ANY_SEP instead of '/'.
8569         (lock_file_1):
8570         Avoid generating gratuitous garbage.  Call user_login_name() directly.
8571         Never check errno without first seeing that system call failed.
8572         (unlock_file): Add GCPRO.
8573         (Flock_buffer): Fix docstring.
8574         (Ffile_locked_p): Fix docstring.  Add GCPRO.
8575
8576 2000-04-19  Martin Buchholz  <martin@xemacs.org>
8577
8578         * sysdep.c (get_pty_max_bytes):
8579         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
8580         strings longer than 252 bytes.
8581
8582         * md5.c: Unconditionally include ANSI header <limits.h>
8583
8584         * glyphs-x.c (convert_EImage_to_XImage):
8585         * lisp-union.h (union Lisp_Object):
8586         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
8587
8588 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8589
8590         * filelock.c (current_lock_owner): Remove unused variable o, p.
8591
8592 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
8593
8594         * callint.c: Remove multiply defined symbol Qlet
8595         (syms_of_callint): ditto.
8596
8597 2000-04-14  Andy Piper  <andy@xemacs.org>
8598
8599         * general.c (syms_of_general): add last-command, this-command, let
8600         and funcall.
8601
8602         * lisp.h: declare various symbols.
8603
8604         * glyphs.h: declare Qwidget_callback_current_channel;
8605
8606         * glyphs-widget.c (syms_of_glyphs_widget): add
8607         Qgui_callback_current_channel.
8608         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
8609
8610         * gui-msw.c (mswindows_handle_gui_wm_command): bind
8611         widget-callback-current-channel when invoking the interactive
8612         arg. Also bind last-command and next-command when invoking the
8613         widget updates.
8614         * gui-x.c (popup_selection_callback): ditto.
8615
8616         * gui.c (get_gui_callback): massage args so that we are always
8617         calling eval. This allows us to add our own variable bindings
8618         outside.
8619
8620         * glyphs-x.c (x_button_instantiate): use
8621         gui_items_to_widget_values since this is GC safe.
8622         (x_progress_gauge_instantiate): ditto.
8623         (x_edit_field_instantiate): ditto.
8624         (x_label_instantiate): ditto.
8625
8626         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
8627         (emacs_Xt_event_widget_focus_out): new function
8628         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
8629         focus.
8630         (emacs_Xt_event_add_widget_actions): new function. add focus
8631         functions as actions.
8632         (init_event_Xt_late): use it.
8633
8634 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
8635
8636         * event-stream.c (Fdispatch_event): Doc fix.
8637
8638 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
8639
8640         * postgresql.c: Remove all references to PQsetenv*.
8641
8642         * postgresql.h: Remove references to PGsetenvHandler object.
8643         * lrecord.h (lrecord_type): Ditto.
8644
8645 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8646
8647         * glyphs-msw.h (struct mswindows_image_instance_data): Added
8648         real_heigh and real_width members, and accessor macros for these.
8649
8650         * glyphs-msw.c (init_image_instance_geometry): New function.
8651         (init_image_instance_from_dibitmap): Use it.
8652         (mswindows_resource_instantiate): Use it.
8653         (init_image_instance_from_xbm_inline): Use it.
8654         (mswindows_initialize_image_instance_mask): Use real bitmap
8655         geometry.
8656         (mswindows_create_resized_bitmap): Ditto.
8657         (mswindows_create_resized_mask): Ditto.
8658
8659         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
8660         and bitmap to their surface size.
8661
8662 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
8663
8664         * process-unix.c (unix_send_process): Guard against process MIA
8665         after Faccept_process_output.
8666
8667 2000-04-11  Ben Wing  <ben@xemacs.org>
8668
8669         * eval.c (unbind_to_hairy): fix brokenness introduced by
8670         nanosecond speed improvements.
8671
8672 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
8673
8674         * sunplay.c (init_device): To play sounds correctly, the device
8675         apparently needs to be initialized at least once by XEmacs.  Make
8676         it so.
8677
8678 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
8679
8680         * redisplay.c (add_margin_runes): Add text image glyph
8681           handling.
8682
8683 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8684
8685         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
8686         gcc is newer than 2.5.
8687
8688 2000-04-06  Colin Rafferty  <colin@xemacs.org>
8689
8690         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
8691
8692         * fns.c (size_bit_vector):
8693         * alloc.c (size_vector):
8694         (make_vector_internal):
8695         (make_bit_vector_internal):
8696         (sweep_bit_vectors_1):
8697         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
8698
8699 2000-04-06  Andy Piper  <andy@xemacs.org>
8700
8701         * gmalloc.c (malloc): undo previous change.
8702         (malloc): ditto.
8703         (free): ditto.
8704         (realloc): ditto.
8705
8706 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
8707
8708         * line-number.c (buffer_line_number): Revert to former version.
8709
8710 2000-04-06  Andy Piper  <andy@xemacs.org>
8711
8712         * gmalloc.c (malloc): add error checking.
8713         (malloc): ditto.
8714         (free): ditto.
8715         (realloc): ditto.
8716
8717         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
8718         button_item_to_widget_value arg.
8719
8720         * glyphs-x.c (x_button_instantiate): add extra
8721         button_item_to_widget_value arg.
8722         (x_progress_gauge_instantiate): ditto.
8723         (x_edit_field_instantiate): ditto.
8724         (x_label_instantiate): ditto.
8725
8726         * gui-x.c (gui_items_to_widget_values_1): add extra
8727         button_item_to_widget_value arg.
8728         (button_item_to_widget_value): add extra menu_item_p arg.
8729
8730         * gui-x.h: change signature of button_item_to_widget_value.
8731
8732         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
8733         button_item_to_widget_value arg.
8734
8735 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
8736
8737         * buffer.h (struct buffer): auto_save_modified should be long.
8738
8739 2000-04-05  Andy Piper  <andy@xemacs.org>
8740
8741         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
8742         type.
8743         (button_query_geometry): give a little more room so that athena
8744         buttons fit.
8745
8746 2000-04-05  Andy Piper  <andy@xemacs.org>
8747
8748         * faces.c (complex_vars_of_faces): The widget face should inherit
8749         the font of the gui-element face.
8750
8751 2000-04-04  Andy Piper  <andy@xemacs.org>
8752
8753         * glyphs-x.c (x_button_update): new function. unconditionally
8754         update a button's state when the instance is dirty.
8755         (image_instantiator_format_create_glyphs_x): add x_button_update.
8756         (x_widget_instantiate): remove old resize cruft.
8757
8758 2000-04-02  Andy Piper  <andy@xemacs.org>
8759
8760         * frame.c (change_frame_size_1): The introduction of gutters means
8761         that we need to allow 0 as a potential frame dimension.
8762
8763 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
8764
8765         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
8766         image glyph if allow_cursor.
8767         (add_hscroll_rune): Don't allow cursor to border glyph.
8768         (create_text_block): Ditto.
8769
8770         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
8771         text not in buffer.
8772         (redisplay_output_layout): Call ensure_face_cachel_complete for
8773         text image glyph.
8774
8775
8776 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
8777
8778         * redisplay.c (add_glyph_rune): Adding text image as text runes.
8779
8780         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
8781         not in buffer
8782
8783         * redisplay-tty.c (tty_output_display_block): Delete the routine
8784         for text image glyph
8785         * redisplay-x.c (x_output_display_block): ditto
8786         * redisplay-msw.c (mswindows_output_display_block): ditto
8787
8788 2000-02-02  Mike Alexander  <mta@arbortext.com>
8789
8790         Note: Some of these were committed by accident as part of other
8791         patches.
8792
8793         * regex.c (regex_compile): Avoid compiler warnings.
8794
8795         * ntproc.c (sys_spawnve): Avoid compiler warnings.
8796
8797         * nt.h: Declare term_ntproc correctly.
8798
8799         * nt.c: Remove incorrect declaration of get_home_directory which
8800         is declared correctly in lisp.h.
8801
8802         * keymap.c (get_keyelt): Avoid compiler warnings.
8803         (raw_lookup_key_mapper): Avoid compiler warnings.
8804
8805         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
8806
8807         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
8808
8809         * filemode.c (mode_string): Avoid compiler warnings.
8810
8811         * file-coding.c (Fcoding_system_aliasee): Add return statement to
8812         avoid warning.
8813
8814         * events-mod.h: Undef some things that winuser.h defines differently.
8815
8816         * data.c (Faset): Avoid compiler warnings.
8817
8818         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
8819
8820 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
8821
8822         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
8823         Fall through to simple beep on error.
8824         Replace "extern" by real header file.
8825
8826         * linuxplay.c: Use nativesound.h
8827         (play_sound_data): Return error code. Be less verbose on error.
8828
8829         * sunplay.c: Use nativesound.h
8830         (play_sound_data): Return error code. Be less verbose on error.
8831
8832         * ntplay.c: Use nativesound.h
8833         (play_sound_data): Return fake error code
8834
8835         * sgiplay.c: Use nativesound.h
8836         (play_sound_data): Return error code
8837
8838         * hpplay.c: Use nativesound.h, partially implement
8839         new error code. Break compilation until finished.
8840         (play_sound_data): error code.
8841
8842         * nativesound.h (play_sound_file):
8843           (play_sound_data): Prototype in new header.
8844
8845 2000-03-31  Andy Piper  <andy@xemacs.org>
8846
8847         * glyphs-widget.c: (button_query_geometry): new function. Adjust
8848         for toggle and radio buttons.
8849         (image_instantiator_buttons): use it.
8850
8851 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
8852
8853         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
8854         (x_update_horizontal_scrollbar_callback): Return if no mirror was
8855         found. Scrollbar event probably belonged to some old config.
8856
8857 2000-03-31  Andy Piper  <andy@xemacs.org>
8858
8859         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
8860         than 1.
8861         (initialize_widget_image_instance): default layout to
8862         LAYOUT_HORIZONTAL rather than 0.
8863         (widget_instantiate): reverse the item list at the end rather than
8864         every iteration.
8865         (layout_layout): re-code for the border text at the front of the
8866         item list rather than at the end.
8867         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
8868         provided by the user.
8869         (widget_query_geometry): comment.
8870
8871 2000-03-30  Andy Piper  <andy@xemacs.org>
8872
8873         * glyphs-widget.c (image_instantiator_layout): allow standard
8874         widget keywords in layouts.
8875
8876         * gutter.c (output_gutter): cope with nil gutter contents.
8877
8878         * frame.c (Fset_frame_properties): add gutter docs.
8879
8880 2000-03-29  Andy Piper  <andy@xemacs.org>
8881
8882         * toolbar-msw.c (TBSTYLE_FLAT): add.
8883         (mswindows_output_toolbar): minor fiddling.
8884
8885 2000-03-29  Andy Piper  <andy@xemacs.org>
8886
8887         * gutter.c (output_gutter): force gutter size recalculation if
8888         what we are trying to display won't fit.
8889         (update_gutter_geometry): new function. A per-gutter version of
8890         update_frame_gutter_geometry.
8891         (update_frame_gutter_geometry): use it.
8892         (redraw_exposed_gutter): add extra debugging output.
8893
8894 2000-03-28  Mike Alexander  <mta@arbortext.com>
8895
8896         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
8897         (pdump_file_unmap): Implement it on Windows
8898         (pdump_file_get): Save alocated handles for pdump_file_unmap
8899
8900 2000-03-28  Andy Piper  <andy@xemacs.org>
8901
8902         * gui.c (get_gui_callback): treat Quit specially.
8903
8904 2000-03-27  Andy Piper  <andy@xemacs.org>
8905
8906         * glyphs.c (image_instantiate): be careful to check in the same
8907         way we assigned.
8908
8909 2000-03-27  Didier Verna  <didier@xemacs.org>
8910
8911         * config.h.in: define the proper SMART_INCLUDE macro.
8912         handle renaming of `foo_h_path' to `foo_h_file'.
8913
8914         * database.c: ditto.
8915
8916         * emacs.c: ditto.
8917
8918         * linuxplay.c: ditto.
8919
8920         * terminfo.c: ditto.
8921
8922         * tooltalk.h: ditto.
8923
8924 2000-03-27  Andy Piper  <andy@xemacs.org>
8925
8926         * glyphs-msw.c (mswindows_update_widget): make sure the widget
8927         gets updated whenever the face might have changed.
8928
8929 2000-03-26  Mike Alexander  <mta@arbortext.com>
8930
8931         * dumper.c (pdump_resource_free): Fix the comment.
8932
8933 2000-03-21  Olivier Galibert  <galibert@pobox.com>
8934
8935         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
8936
8937 2000-03-22  Mike Alexander  <mta@arbortext.com>
8938
8939         * dumper.c: Include Windows headers on Windows
8940         (pdump_resource_free): Add a body to the function
8941         (pdump_load): exe_name -> exe_path and add some comments.
8942
8943 2000-03-25  Mike Alexander  <mta@arbortext.com>
8944
8945         * gui.c (copy_gui_item_tree): Return a value in all cases
8946
8947 2000-03-21  Didier Verna  <didier@xemacs.org>
8948
8949         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
8950         lwlib/config.h.in.
8951         (SMART_INCLUDE): new macro.
8952         (POSTGRES_INCLUDE): new macro to include postgresql headers from
8953         the proper location.
8954
8955         * postgresql.c: use it.
8956
8957         * inline.c: ditto.
8958
8959 2000-03-24  Andy Piper  <andy@xemacs.org>
8960
8961         * gutter.c (redraw_exposed_gutters): must be "in display" when we
8962         do this.
8963
8964 2000-03-24  Andy Piper  <andy@xemacs.org>
8965
8966         * redisplay-output.c (compare_runes): use image_instance_changed
8967         to detect changes. Do not depend on glyphs_changed, only depend on
8968         dirtiness.
8969          (redisplay_output_layout): add debug messages.
8970         (compare_runes): ditto.
8971
8972         * glyphs.h: declare new functions.
8973         (struct Lisp_Image_Instance): remove percent and associated
8974         accessors.
8975
8976         * gui.h: declare new copying functions.
8977
8978         * gui.c (copy_gui_item_tree): new function.
8979         (copy_gui_item): new function.
8980         (gui_item_id_hash): revert to standard hash.
8981         (gui_item_hash): ditto.
8982         (gui_item_hash_internal): deleted.
8983         (mark_gui_item): mark value.
8984         (gui_item_add_keyval_pair): add value.
8985         (gui_item_init): ditto.
8986         (gui_add_item_keywords_to_plist): ditto.
8987         (gui_item_equal): ditto.
8988         (syms_of_gui): add Q_value.
8989
8990         * glyphs-x.c (x_progress_gauge_update): use pending items and
8991         value for setting the state.
8992         (x_update_widget): don't set items from pending here.
8993
8994         * glyphs-widget.c (update_widget): update items here.
8995         (progress_gauge_set_property): use items for storing value. Put
8996         new value in pending items.
8997
8998         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
8999         items for new value. Convert percent -> value.
9000         (mswindows_tab_control_update): don't update items here.
9001
9002         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
9003         (update_subwindow): ditto.
9004         (image_instance_changed): new function. Compare hash values and
9005         past and present widget items.
9006         (image_instantiate): We more careful about where we instantiate
9007         things.
9008         (image_instantiate): add error checking.
9009
9010         * gutter.c (syms_of_gutter): use -hook.
9011
9012 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
9013
9014         * console-tty.c (Fset_console_tty_input_coding_system): Use
9015         Qkeyboard.
9016         (Fset_console_tty_output_coding_system): Use Qterminal.
9017         (tty_init_console): Use Qkeyboard and Qterminal.
9018
9019 2000-03-21  Ben Wing  <ben@xemacs.org>
9020
9021         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
9022         From Mike Alexander <mta@arbortext.com>.
9023
9024 2000-03-21  Ben Wing  <ben@xemacs.org>
9025
9026         * event-msw.c (mswindows_need_event): Horrible kludge to fix
9027         process brokenness.  Proper implementation to come.
9028         * callproc.c:
9029         Rename call-process-internal to old-call-process-internal.
9030         New impl. in process.el.
9031
9032 2000-03-21  Martin Buchholz  <martin@xemacs.org>
9033
9034         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
9035
9036 2000-03-20  Andy Piper  <andy@xemacs.org>
9037
9038         * glyphs.c (full_list_hash): make hashes of the same elements in
9039         different orders return different values.
9040
9041 2000-03-20  Martin Buchholz <martin@xemacs.org>
9042
9043         * XEmacs 21.2.32 is released.
9044
9045 2000-03-20  Martin Buchholz  <martin@xemacs.org>
9046
9047         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
9048         (DFC_MALLOC_USE_CONVERTED_DATA):
9049         Add aliasing-safe casts to allow use with char* or unsigned char*
9050         lvalues.
9051
9052         * eldap.c (Fldap_open):
9053         (Fldap_search_basic):
9054         (Fldap_add):
9055         (Fldap_modify):
9056         Make C++-compilable.
9057         Make sure GCPRO'ed variables are initialized.
9058         Use temp variables to avoid repeated calls to Flength.
9059
9060 2000-03-16  Martin Buchholz  <martin@xemacs.org>
9061
9062         * sysfile.h:
9063         Make sure PATH_MAX is always defined.
9064         Include limits.h for PATH_MAX.
9065         Deprecate use of MAXPATHLEN.
9066
9067 2000-03-10  Martin Buchholz  <martin@xemacs.org>
9068
9069         * emacs.c: Add reinit_vars_of_fileio.
9070         * symsinit.h: Add reinit_vars_of_fileio.
9071         * fileio.c (reinit_vars_of_fileio): New.
9072         * fileio.c (Fmake_temp_name):
9073         Initialize temp_name random number from microseconds to make
9074         collisions even less likely.  Initialize always at process startup
9075         time.  (make-temp-name) used to return the same file name twice in
9076         a row when PDUMP.
9077         Random stylistic fiddling.
9078         Comment fixes.
9079
9080 2000-03-20  Andy Piper  <andy@xemacs.org>
9081
9082         * glyphs.c (image_instantiate): allow text glyphs to be
9083         instantiated in the minibuffer window.
9084
9085 2000-03-19  Andy Piper  <andy@xemacs.org>
9086
9087         * glyphs.c (image_instance_hash): be careful about which items we
9088         hash on.
9089
9090         * glyphs-widget.c (tab_control_set_property): record into pending
9091         items rather than the actual items.
9092
9093         * glyphs-x.c (x_update_widget): use pending items to update with.
9094
9095         * glyphs-msw.c (mswindows_tab_control_update): use pending items
9096         to update with.
9097
9098         * glyphs.c (mark_image_instance): mark pending items.
9099
9100         * window.c (Fset_window_configuration): record the buffer.
9101         (Fselect_window): totally revert previous change which breaks many
9102         things.
9103
9104 2000-03-18  Andy Piper  <andy@xemacs.org>
9105
9106         * glyphs-msw.c (mswindows_tab_control_update): force selected
9107         item.
9108
9109         * glyphs.c (image_instantiate): don't allow the minibuffer as a
9110         window domain cache, otherwise we get inconsistencies at
9111         startup. There is something fishy at startup which can lead to the
9112         minibuffer being the selected window when the gutter content is
9113         instantiated.
9114
9115         * gui.c (parse_gui_item_tree_list): add probably unnecessary
9116         gcpros.
9117         (parse_gui_item_tree_children): ditto.
9118         (parse_gui_item_tree_item): ditto.
9119
9120         * glyphs.c (Fupdate_widget_instances): return something.
9121
9122 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9123
9124         * window.c (Fselect_window): Undo 2000-03-17 change.
9125
9126 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
9127
9128         * postgresql.c (Fpq_setenv): Remove this turkey when linking
9129         against v7.0 libraries.  Insta-coredump city until the postgres
9130         folks fix it.
9131
9132 2000-03-17  Andy Piper  <andy@xemacs.org>
9133
9134         * faces.c (complex_vars_of_faces): don't give the widget face an
9135         inherited background pixmap.
9136
9137         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
9138         selected item.
9139
9140         * event-stream.c (Fdispatch_non_command_events): return something.
9141
9142         * gutter.c (output_gutter): use widget face.
9143         (clear_gutter): ditto.
9144
9145         * NEWS: adjust again.
9146
9147         * window.c (Fselect_window): make sure this runs to completion to
9148         avoid oddities with Fset_window_configuration.
9149         (Fcurrent_window_configuration): in general do not save the
9150         minibuffer as the selected window.
9151
9152         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
9153
9154 2000-03-16  Olivier Galibert  <galibert@pobox.com>
9155
9156         * emacs.c (Frunning_temacs_p): Revert previous patch.
9157         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
9158
9159 2000-03-16  Andy Piper  <andy@xemacs.org>
9160
9161         * glyphs-x.c (x_tab_control_update): if no widget values then
9162         return.
9163
9164         * NEWS: update for new features.
9165
9166         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
9167         synthetic event to the native system.
9168         (reinit_vars_of_event_Xt): set force_event_pending to
9169         emacs_Xt_force_event_pending.
9170
9171         * events.h (struct event_stream): add force_event_pending.
9172
9173         * specifier.c (recompute_one_cached_specifier_in_window): add
9174         comment.
9175
9176         * redisplay.c (redisplay_frame): don't call
9177         update_frame_subwindows. Reset subwindow cachels when
9178         subwindows_changed, removing this was an optimization too far.
9179
9180         * redisplay-output.c (compare_runes): reorganize so that we catch
9181         glyph changes when we want them. Set optimize_output when this
9182         would help layouts.
9183         (redisplay_output_layout): remove frame_really_changed, use
9184         optimize_output instead.
9185
9186         * redisplay-msw.c (mswindows_output_display_block): reset
9187         optimize_output after outputting a glyph.
9188         * redisplay-x.c (x_output_display_block): ditto.
9189         * redisplay-tty.c (tty_output_display_block): ditto.
9190
9191         * gutter.c: (specifier_vars_of_gutter): use new spec changed
9192         functions.
9193         (gutter_specs_changed): do specific gutter positions.
9194         (top_gutter_specs_changed): new function. Only update the
9195         specified gutter specs.
9196         (bottom_gutter_specs_changed): ditto.
9197         (left_gutter_specs_changed): ditto.
9198         (right_gutter_specs_changed): ditto.
9199
9200         * gui.c (gui_item_hash_internal): new function, does a real hash.
9201         (gui_item_id_hash): use it.
9202         (gui_item_hash): hash the eval'ed gui_item.
9203
9204         * gui-x.c (popup_selection_callback): send an eval event to call
9205         Fupdate_widget_instances.
9206
9207         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
9208         to call Fupdate_widget_instances.
9209
9210         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
9211         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
9212
9213         * glyphs.c: (update_frame_subwindows): deleted.
9214         (Fupdate_widget_instances): new function for updating the dirty
9215         state of widgets that might have changed.
9216         (syms_of_glyphs): add Qupdate_widget_instances.
9217         (full_list_hash): hash a list completely.
9218         (image_instance_hash): use it for items and properties.
9219
9220         * frame-msw.c (mswindows_size_frame_internal): remove unused
9221         variable.
9222
9223         * faces.h (struct face_cachel): fix comment.
9224
9225         * event-stream.c (Fdispatch_non_command_events): new
9226         function. Process non-command events, forcing an event cycle
9227         beforehand.
9228         (syms_of_event_stream): declare.
9229         (event_stream_force_event_pending): new function. Force an event
9230         on the native event queue so that an event cycle will occur next
9231         time we check.
9232
9233         * event-msw.c:
9234         (struct ntpipe_shove_stream):
9235         (mswindows_enqueue_dispatch_event):
9236         (mswindows_dequeue_dispatch_event):
9237         (mswindows_cancel_dispatch_event):
9238         (mswindows_pump_outstanding_events):
9239         (mswindows_drain_windows_queue):
9240         (mswindows_handle_paint):
9241         (mswindows_wnd_proc):
9242         (mswindows_key_to_emacs_keysym):
9243         (get_process_input_waitable):
9244         (emacs_mswindows_delete_stream_pair): re-indent file.
9245         (mswindows_need_event): do not process further fds if the windows
9246         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
9247         fixes the 100% cpu problem.
9248         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
9249
9250 2000-03-15  Olivier Galibert  <galibert@pobox.com>
9251
9252         * alloc.h: New.
9253         * dumper.h: New.
9254         * dumper.c: New.
9255
9256         * emacs.c: Moved dump file searching to dumper.c.
9257         (Frunning_temacs_p): Fixed.
9258
9259         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
9260         last_lrecord_type_index_assigned.
9261
9262 2000-02-20  Olivier Galibert  <galibert@pobox.com>
9263
9264         * symsinit.h: Added reinit parameter to init_console_stream
9265         declaration.
9266
9267         * lisp.h: Added file parameter to pdump_load declaration.
9268
9269         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
9270         support.  Added dump file searching.
9271
9272         * config.h.in: Added EMACS_PROGNAME.
9273
9274         * console-stream.c (init_console_stream): Fix reinitialisation
9275         when running from temacs.
9276
9277         * alloc.c (pdump): Add id support.
9278         (pdump_load): Add file parameter and signature/id support.
9279
9280         * Makefile.in.in: Add full pdump support.
9281
9282 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
9283
9284         * postgresql.c: Update documentation to reflect latest code
9285         status.
9286         (print_result): Show tuple counts in printed representation when
9287         appropriate.
9288         (Fpq_put_nbytes): MULE-ize.
9289         (Fpq_get_line_async): Ditto.
9290
9291 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
9292
9293         * postgresql.c (Fpq_lo_import): Fix return value.
9294         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
9295
9296 2000-03-13  Ben Wing  <ben@xemacs.org>
9297
9298         * alloc.c (pdump_load):
9299         Fix compile warning under mswin.
9300
9301 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
9302
9303         * postgresql.c: Mule-ization, bug fixes.
9304         Use PG_CODING to encapsulate coding system name changes.
9305         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
9306         (pg-coding-system): Create.
9307
9308         (Fpq_conn_defaults): Mule-ize.
9309         (Fpq_connectdb): Mule-ize & bug fix.
9310         (Fpq_connect_start): Mule-ize.
9311         (Fpq_set_client_encoding): Mule-ize.
9312         (Fpq_finish): Document `DEAD' connection status.
9313         (Fpq_clear): Ditto.
9314         (Fpq_pgconn): Mule-ize.
9315         (Fpq_exec): Mule-ize & bug fix.
9316         (Fpq_send_query): Ditto.
9317         (Fpq_get_result): Ditto.
9318         (Fpq_res_status): Mule-ize.
9319         (Fpq_result_error_message): Mule-ize.
9320         (Fpq_ntuples): fix comments.
9321         (Fpq_fname): Mule-ize.
9322         (Fpq_fnumber): Mule-ize.
9323         (Fpq_ftype): fix comments.
9324         (Fpq_get_value): Mule-ize.
9325         (Fpq_cmd_status): Ditto.
9326         (Fpq_cmd_tuples): Ditto.
9327         (Fpq_oid_value): Ditto.
9328         (Fpq_notifies): Ditto.
9329         (Fpq_lo_import): Ditto.
9330         (Fpq_lo_export): Ditto.
9331         (Fpq_get_line): Ditto.
9332         (Fpq_put_line): Mule-ize and bug fix.
9333         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
9334
9335 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
9336
9337         * postgresql.c (vars_of_postgresql): Mule-ize.
9338         (Fpq_conn_defaults): Ditto.
9339
9340 2000-03-12  Ben Wing  <ben@xemacs.org>
9341
9342         * alloc.c (Fmake_byte_code):
9343         * alloc.c (debug_string_purity_print):
9344         * alloc.c (pdump_backtrace):
9345         * alloc.c (pdump_get_indirect_count):
9346         * alloc.c (pdump_register_sub):
9347         * alloc.c (pdump_register_object):
9348         * alloc.c (pdump_register_struct):
9349         * alloc.c (pdump_dump_data):
9350         * alloc.c (pdump_reloc_one):
9351         Minor cleanups.
9352
9353         * console-msw.c:
9354         * console-msw.c (GetConsoleHwnd):
9355         * console-msw.c (msw_hide_console):
9356         * console-msw.c (msw_show_console):
9357         * console-msw.c (msw_ensure_console_buffered):
9358         * console-msw.c (msw_output_console_string):
9359         * console-msw.c (console_type_create_mswindows):
9360
9361         a) Added functions to manipulate the console window for use with
9362         shell support.
9363
9364         b) Added support for writing text to the console, which is now
9365         used under Windows when xemacs is not being run non-interactively,
9366         to write text that would otherwise be destined for stdout because
9367         under these circumstances, text written to stdout tends to
9368         disappear and not be seen.
9369
9370         * console-msw.h:
9371         * event-Xt.c:
9372         * event-Xt.c (x_event_to_emacs_event):
9373         * event-Xt.c (describe_event_window):
9374         * events-mod.h (XEMACS_MOD_CONTROL):
9375         * events.c:
9376         * events.c (Fmake_event):
9377         * events.c (character_to_event):
9378         * events.c (event_to_character):
9379         * events.c (format_event_object):
9380         * events.c (Fevent_modifiers):
9381         * events.h:
9382         * events.h (struct key_data):
9383         * events.h (struct button_data):
9384         * events.h (struct misc_user_data):
9385         * frame-x.c (Fcde_start_drag_internal):
9386         * frame-x.c (Foffix_start_drag_internal):
9387         * gpmevent.c (Freceive_gpm_event):
9388         * keymap.c:
9389         * keymap.c (bucky_sym_to_bucky_bit):
9390         * keymap.c (control_meta_superify):
9391         * keymap.c (make_key_description):
9392         * keymap.c (keymap_lookup_directly):
9393         * keymap.c (create_bucky_submap):
9394         * keymap.c (keymap_store):
9395         * keymap.c (define_key_check_and_coerce_keysym):
9396         * keymap.c (define_key_parser):
9397         * keymap.c (define_key_alternate_name):
9398         * keymap.c (Fdefine_key):
9399         * keymap.c (raw_lookup_key_mapper):
9400         * keymap.c (struct map_keymap_unsorted_closure):
9401         * keymap.c (map_keymap_unsorted_mapper):
9402         * keymap.c (map_keymap_sort_predicate):
9403         * keymap.c (map_keymap_sorted):
9404         * keymap.c (accessible_keymaps_mapper_1):
9405         * keymap.c (where_is_recursive_mapper):
9406         * keymap.c (describe_map_mapper):
9407         * keymap.c (describe_map_sort_predicate):
9408         * keymap.c (describe_map):
9409         * keymap.c (complex_vars_of_keymap):
9410         And a number of other files, the key modifier preprocessor
9411         constants that xemacs uses have names that conflict with constants
9412         defined under MS Windows for other purposes, so they were renamed
9413         to begin with the prefix XEMACS_. The variables that hold such
9414         modifiers were changed to consistently be of type int to fix
9415         various compile warnings.
9416
9417         * console.c (complex_vars_of_console):
9418         * device.c:
9419         * device-msw.c:
9420         * device-msw.c (mswindows_finish_init_device):
9421         * device-msw.c (msw_get_workspace_coords):
9422         * device-msw.c (mswindows_device_system_metrics):
9423         and various other files, added support for a new
9424         device property called offset-workspace which returns the position
9425         of the upper left corner of the workspace area and goes along with
9426         the existing size-workspace property.
9427
9428         * dialog-msw.c:
9429         * dialog-msw.c (push_bufbyte_string_as_unicode):
9430         * dialog-msw.c (mswindows_popup_dialog_box):
9431         Added support for XEmacs-style accelerator specifications in
9432         button text.  Note: I didn't add support for this under X Windows,
9433         and somebody needs to do this.
9434
9435         * dialog.c:
9436         * dialog.c (Fpopup_dialog_box):
9437         Documented the support for accelerators that was just mentioned.
9438
9439         editfns.c (get_home_directory): Changed behavior under Windows
9440         when HOME not defined; former behavior was irretrievably broken.
9441
9442         * emacs.c:
9443         * emacs.c (main_1):
9444         * emacs.c (main):
9445         * minibuf.c (clear_echo_area_internal):
9446         * minibuf.c (echo_area_append):
9447         * print.c:
9448         * print.c (std_handle_out_external):
9449         * print.c (std_handle_out_va):
9450         * print.c (fatal):
9451         * print.c (write_string_to_stdio_stream):
9452         * print.c (output_string):
9453         * print.c (debug_print):
9454         * print.c (debug_backtrace):
9455         * print.c (debug_short_backtrace):
9456         Cleaned up the code that prints text to stdout so that this can be
9457         changed to output into a console window instead under MS Windows,
9458         as described above.
9459
9460         * eval.c:
9461         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
9462         * eval.c (internal_catch):
9463         * eval.c (unwind_to_catch):
9464         * eval.c (throw_or_bomb_out):
9465         * eval.c (condition_case_1):
9466         * eval.c (signal_1):
9467         * eval.c (check_error_state_sanity):
9468         * eval.c (call_with_suspended_errors_1):
9469         * eval.c (call_with_suspended_errors):
9470         * eval.c (reinit_vars_of_eval):
9471         Added code to catch throw loops and check for a pesky bug that may
9472         be gone now.
9473
9474         * event-msw.c:
9475         * event-msw.c (key_needs_default_processing_p):
9476         * event-msw.c (mswindows_wnd_proc):
9477         * event-msw.c (mswindows_modifier_state):
9478         * event-msw.c (emacs_mswindows_quit_p):
9479         * event-msw.c (vars_of_event_mswindows):
9480         a) Added support for using the alt key to select menu items as is
9481         standard under MS Windows.  This is controlled using the variable
9482         menu-accelerator-enabled, just like under X Windows.  There is an
9483         option on the options menu to turn this support on.  I really
9484         think that it should be on by default under Windows, but I'm not
9485         going to make this change yet.
9486
9487         b)  Added support for dynamic display size changes under Windows.
9488
9489         * event-stream.c:
9490         * event-stream.c (maybe_echo_keys):
9491         * event-stream.c (Fnext_event):
9492         * event-stream.c (command_builder_find_leaf):
9493         * event-stream.c (lookup_command_event):
9494         * event-stream.c (execute_command_event):
9495         * event-stream.c (pre_command_hook):
9496         * event-stream.c (post_command_hook):
9497         * event-stream.c (syms_of_event_stream):
9498         * event-stream.c (vars_of_event_stream):
9499         * event-stream.c (complex_vars_of_event_stream):
9500         * events.h (struct command_builder):
9501
9502         a) Tried to clean up a little bit the horribly written x-specific
9503         accelerator code that crept into this file.  I moved this code
9504         into menubar-x.c where it belongs. I also needed to move the
9505         command builder structure into the file events.h because it is
9506         accessed directly by this accelerator code.  What I didn't do, but
9507         which should be done at some point, is to properly abstract this
9508         code using device methods instead of the kludgy way that it
9509         currently hooks into the event code.
9510
9511         b) Added the lisp variables this-command-properties and
9512         last-command- properties, which should be used to synchronize two
9513         adjacent commands in preference to playing games with the variable
9514         this-command, which is typically what happens.
9515
9516         c) Added some slightly nasty code to hook into the lisp support
9517         for shifted- motion-key selection.  This is actually necessary for
9518         somewhat complicated reasons, which are described in
9519         simple.el. (NB: I think the proper thing would be to have the code
9520         that calls the pre and post command hooks also call out to generic
9521         lisp functions in simple.el, where all built-in stuff could be
9522         added.  I will think about this more.)
9523
9524         * event-unixoid.c (poll_fds_for_input):
9525         * lread.c (readchar):
9526         * redisplay-tty.c (tty_clear_frame):
9527         * redisplay-x.c (x_get_gc):
9528         * signal.c (interrupt_signal):
9529         And a whole bunch of other files: fixed up places that printed
9530         directly to stderr to instead call the function stderr_out so that
9531         the changes I made under Windows work correctly.
9532
9533         * filemode.c (mode_string):
9534         Warning fixes.
9535
9536         * frame-msw.c:
9537         * frame-msw.c (mswindows_size_frame_internal):
9538         Fixed the computation of frame size and position to keep the frame
9539         within the workspace area, rather than within the physical
9540         dimensions of the screen, so that the frame doesn't overlap window
9541         manager decorations, such as the start menu and toolbar, typically
9542         at the bottom of the screen.
9543
9544         * frame.c (vars_of_frame):
9545         Changed the default frame title format under MS Windows to consist
9546         of buffername-XEmacs, which is standard under MS Windows.  I think
9547         it might be a good idea to change this everywhere because I think
9548         it is superior to the current frame title format, but this is the
9549         kind of change that is likely to cause some people to get annoyed,
9550         so I'm not making it.
9551
9552         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
9553
9554         * gui-msw.c (mswindows_handle_gui_wm_command):
9555         Fixed compile warnings.
9556
9557         * gui-x.c:
9558         * gui-x.c (strdup_and_add_accel):
9559         * gui-x.c (button_item_to_widget_value):
9560         * gui-x.h:
9561         Added code to automatically put an accelerator onto the beginning
9562         of menu items that don't have one as is now the standard, and is
9563         described more later.  Also fixed things so that the menu item
9564         name can be an evaluated expression, again a new standard.
9565
9566         * gui.c:
9567         * gui.c (gui_item_add_keyval_pair):
9568         * gui.c (make_gui_item_from_keywords_internal):
9569         * gui.c (gui_add_item_keywords_to_plist):
9570         * gui.c (gui_item_accelerator):
9571         * gui.c (gui_name_accelerator):
9572         * gui.c (gui_item_included_p):
9573         * gui.c (gui_item_display_flush_left):
9574         * gui.c (gui_item_display_flush_right):
9575         * gui.c (parse_gui_item_tree_item):
9576         * gui.c (parse_gui_item_tree_children):
9577         * gui.c (parse_gui_item_tree_list):
9578         Mule-ized.  Cleanup.  GCPRO addition.
9579
9580         * line-number.c (buffer_line_number):
9581         * lisp.h:
9582         * lisp.h (EMACS_INT_MAX):
9583         Added the manifest constant EMACS_INT_MIN corresponding to the
9584         existing constant EMACS_INT_MAX.  This is partially to fix compile
9585         warnings under Windows, and partly for cleanliness.
9586
9587         * menubar-msw.c:
9588         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
9589         * menubar-msw.c (msw_translate_menu_or_dialog_item):
9590         * menubar-msw.c (displayable_menu_item):
9591         * menubar-msw.c (populate_menu_add_item):
9592         * menubar-msw.c (populate_or_checksum_helper):
9593         * menubar-msw.c (populate_menu):
9594         * menubar-msw.c (update_frame_menubar_maybe):
9595         * menubar-msw.c (prune_menubar):
9596         * menubar-msw.c (msw_char_is_accelerator):
9597         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
9598         * menubar-msw.c (mswindows_handle_wm_command):
9599         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
9600         * menubar-msw.c (mswindows_handle_wm_initmenu):
9601         * menubar-msw.c (mswindows_update_frame_menubars):
9602         * menubar-msw.c (mswindows_free_frame_menubars):
9603         * menubar-msw.c (mswindows_popup_menu):
9604         Fixed a bug in handling accelerators where an extra character
9605         would be displayed in the menu item.  Also generalized the
9606         function displayable_menu_item because it is now used by the
9607         dialog box code as well.  And finally, added code in the functions
9608         that create the menubar to extract a list of accelerators for the
9609         top level menubar, which is used in the event code to determine
9610         whether a particular alt-key combination should be used to invoke
9611         a menu item, or should be passed through to access the standard
9612         XEmacs keymap binding for this key combination.
9613
9614         Much needed GCPROing.
9615
9616         * menubar-x.c:
9617         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9618         * menubar-x.c (menu_item_descriptor_to_widget_value):
9619         * menubar-x.c (restore_in_menu_callback):
9620         * menubar-x.c (x_popup_menu):
9621         * menubar-x.c (menu_move_up):
9622         * menubar-x.c (menu_move_down):
9623         * menubar-x.c (menu_move_left):
9624         * menubar-x.c (menu_move_right):
9625         * menubar-x.c (menu_select_item):
9626         * menubar-x.c (command_builder_operate_menu_accelerator):
9627         * menubar-x.c (menu_accelerator_junk_on_error):
9628         * menubar-x.c (command_builder_find_menu_accelerator):
9629         * menubar-x.c (Faccelerate_menu):
9630         * menubar.h:
9631         Moved a whole bunch of code here that was previously in
9632         event-stream.c as described above.  There is also code connected
9633         to the new standard of adding an accelerator to the beginning of
9634         menu items that don't have one as described above and below.
9635
9636         * menubar.c:
9637         * menubar.c (menu_parse_submenu_keywords):
9638         * menubar.c (Fmenu_find_real_submenu):
9639         * menubar.c (Fnormalize_menu_item_name):
9640         * menubar.c (syms_of_menubar):
9641         * menubar.c (vars_of_menubar):
9642         * menubar.c (complex_vars_of_menubar):
9643
9644         a) Cleaned up a bunch of documentation and improved it.
9645
9646         b) XEmacs now automatically adds an accelerator onto the beginning
9647         of any menu items that don't have one.  I did this because there
9648         will inevitably be some menu items on the main menubar that don't
9649         have accelerators on them because the package that adds that
9650         particular menu item hasn't yet been fixed up to have accelerators
9651         in them and it looked rather strange to have some items with and
9652         some items without accelerators, especially since even in items
9653         without accelerators, you can, at least under windows, still
9654         access the item through an accelerator corresponding to the first
9655         character in the item's name.  If people don't like this behavior,
9656         I can add a variable to turn it off optionally, but I'm not sure
9657         this is a good idea because we really do need to have accelerators
9658         on all of the menu items, and if a package doesn't like the
9659         accelerators being put on the first character, then it should put
9660         the accelerators where they belong.
9661
9662         c) I made a behavior change, which is that the descriptor that
9663         specifies the text of the menu item, which formerly was just a
9664         string, can now also be an evaluated expression.  This makes this
9665         descriptor parallel with all of the others, which could also be
9666         evaluated expressions.  This also obviates the need for the
9667         keyword :label, which was previously listed in the documentation
9668         as unimplemented, and which was for the same purpose.
9669
9670         d) GCPROing.
9671
9672         * ntproc.c:
9673         * ntproc.c (new_child):
9674         * ntproc.c (sys_spawnve):
9675         * ntproc.c (find_child_console):
9676         * ntproc.c (sys_kill):
9677         Fixed compile warnings.  By the way, this file should really go
9678         away entirely, and this will happen as soon as Kirill makes his
9679         final round of process cleanups, which affect the function
9680         call-process.
9681
9682         * process-nt.c:
9683         * process-nt.c (struct nt_process_data):
9684         * process-nt.c (find_process_from_pid):
9685         * process-nt.c (send_signal_the_nt_way):
9686         * process-nt.c (enable_child_signals):
9687         * process-nt.c (find_child_console):
9688         * process-nt.c (send_signal_the_95_way):
9689         * process-nt.c (nt_finalize_process_data):
9690         * process-nt.c (ensure_console_window_exists):
9691         * process-nt.c (nt_create_process):
9692         * process-nt.c (nt_kill_child_process):
9693         * process-nt.c (nt_kill_process_by_pid):
9694         * process-nt.c (nt_open_network_stream):
9695         * process-nt.c (vars_of_process_nt):
9696         Copied over code from Emacs 20.5 to correctly send signals to sub-
9697         processes under Windows 95.  Also added code to automatically
9698         create and hide console window when a sub-process is created under
9699         Windows 95, which obviates the need for the separate runemacs.exe
9700         executable, and finally implemented some variables that were
9701         implemented in Emacs 20.5, but previously not in XEmacs.  These
9702         include mswindows- start-process-share-console and
9703         mswindows-start-process-inherit-error-mode. (Both of these only
9704         apply to Windows 95.)
9705
9706         * regex.c (regex_compile): Fixed a compile warning.
9707
9708         * select-msw.c:
9709         * select-msw.c (mswindows_own_selection):
9710         * select-msw.c (mswindows_get_foreign_selection):
9711         * select-msw.c (mswindows_disown_selection):
9712         * select-msw.c (console_type_create_select_mswindows):
9713         * select-msw.c (syms_of_select_mswindows):
9714         Cleaned up the file and implemented the device method
9715         selection_exists_p, which had accidentally been left out.  Also
9716         removed four lisp functions that were remnants from before the
9717         time when the selection code was properly device abstracted.
9718         These functions are no longer needed because there are generic
9719         equivalents, and because they were added recently and don't exist
9720         in FSF Emacs, I don't think there's any problem with just deleting
9721         them.
9722
9723         * sysdep.c:
9724         * sysdep.c (sys_subshell):
9725         Fixed a compile warning, although in this case there's probably
9726         something wrong with this code, and it ought to be looked into
9727         more thoroughly by somebody who understands it.
9728
9729         * window.c:
9730         * window.c (Fwindow_text_area_height):
9731         * window.c (Fwindow_width):
9732         * window.c (Fwindow_full_width):
9733         * window.c (Fwindow_pixel_width):
9734         * window.c (debug_print_window):
9735         * window.c (syms_of_window):
9736         Added functions window-text-area-height and window-full-width,
9737         which are functions for returning various width and height
9738         characteristics of a window. (One of these functions is necessary
9739         for making the file dialog box work correctly, and the other one
9740         was added for completeness.)  Also added a table to the
9741         documentation for window-height which describes the entire scheme
9742         for accessing width and height characteristics of a window.
9743
9744 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
9745
9746         * nt.c (fstat): Added a comment for another problem with
9747         non-encapsulated [f]stat(), reported by Adrian Aichner
9748         <aichner@ecf.teradyne.com>.
9749
9750 2000-03-11  Andy Piper  <andy@xemacs.org>
9751
9752         * window.c (make_dummy_parent): initialize subwindow instance
9753         cache.
9754         (Fset_window_configuration): zero extent_modiff.
9755
9756 2000-03-10  Andy Piper  <andy@xemacs.org>
9757
9758         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
9759         more changes can be triggered.
9760         (Fredisplay_frame): ditto.
9761         (Fredraw_device): ditto.
9762         (Fredisplay_device): ditto.
9763         (redisplay_frame): make non-static.
9764         (redisplay_frame): call update_frame_gutter_geometry outside of
9765         display proper.
9766
9767         * gutter.h: declare update_frame_gutter_geometry.
9768
9769         * redisplay.h: declare redisplay_frame.
9770
9771         * gutter.c (update_frame_gutter_geometry): move geometry changes
9772         in update_frame_gutters here. Geometry changes can only occur
9773         outside of redisplay.
9774         (update_frame_gutters): remove geometry change code.
9775         (Fredisplay_gutter_area): make sure that we are in display when we
9776         update and that we have flushed any size changes.
9777
9778 2000-03-11  Andy Piper  <andy@xemacs.org>
9779
9780         * alloc.c (pdump_dump_data): remove i & count shadows.
9781
9782 2000-02-27  Mike Alexander  <mta@arbortext.com>
9783
9784         * sysdep.h: Declare pdump_read_file
9785
9786         * sysdep.c (pdump_read_file): New function
9787
9788         * alloc.c (pdump_load): Call pdump_read_file to get the portable
9789         dump data
9790
9791 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
9792
9793         * lrecord.h: add `lrecord_type_pgsetenv'.
9794
9795 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
9796
9797         * symsinit.h: declare (vars|syms)_of* functions.
9798         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
9799
9800 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
9801
9802         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
9803
9804         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
9805         GCCs.
9806
9807         * emacs.c (main_1): Call postgres initialization code.
9808
9809         * postgresql.h: New file.  PostgreSQL RDBMS support.
9810         * postgresql.c: New file.
9811
9812 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
9813
9814         * redisplay-output.c (redisplay_output_display_block): Disable
9815         redundant code.
9816
9817 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
9818
9819         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
9820         (Fcanna_henkan_next): Ditto.
9821         (Fcanna_bunsetu_henkou): Ditto.
9822         (Fcanna_henkan_kakutei): Ditto.
9823         (Fcanna_henkan_end): Ditto.
9824         (Fcanna_henkan_quit): Ditto.
9825         (Fcanna_henkan_next): Set retun value correctly.
9826         (c2mu): Use unsigned char instead of signed char.
9827
9828 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
9829
9830         * emacs.c (main_1): Always call syms_of_gui.
9831         * inline.c: include gui.h
9832
9833 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
9834
9835         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
9836         converted to Lisp_Object.
9837         (Qtop_bottom): New variable.
9838         (syms_of_redisplay): Initialize it.
9839         * redisplay.h (Vvisible_bell): Ditto.
9840         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
9841         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
9842         only flash top and bottom.
9843
9844 2000-03-08  Andy Piper  <andy@xemacs.org>
9845
9846         * buffer.c (Frename_buffer): record new buffer name the right way.
9847
9848 2000-03-08  Andy Piper  <andy@xemacs.org>
9849
9850         * glyphs.c (update_subwindow): increase hash depth so that widget
9851         items get picked up properly.
9852
9853         * redisplay-output.c (compare_runes): increase hash depth so that
9854         widget items get picked up properly.
9855
9856 2000-03-08  Andy Piper  <andy@xemacs.org>
9857
9858         * gutter.c (output_gutter): add some debug.
9859
9860         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
9861         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
9862         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
9863
9864         * redisplay-output.c (compare_runes): use display_hash to
9865         determine if glyphs really are not the same.
9866
9867         * glyphs.c (update_subwindow): check display_hash to see if
9868         anything really needs to be updated. If not then do
9869         nothing. Record the display_hash after updating.
9870         (image_instance_equal): compare the image_instance face also.
9871
9872 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
9873
9874         * redisplay.h: Fix comment style.
9875
9876 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9877
9878         * consle-msw.h (struct mswindows_frame):
9879         Added new member paint_pending to indicate whether a WM_PAINT
9880         magic event has been queued for this frame.
9881
9882         * event-msw.c (mswindows_drain_windows_queue):
9883         Don't queue a WM_PAINT magic event if one is already queued.
9884         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
9885
9886         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
9887
9888 2000-03-07  Didier Verna  <didier@xemacs.org>
9889
9890         * dired.c: #include `regex.h' after `sysfile.h'.
9891
9892 2000-03-06  Martin Buchholz  <martin@xemacs.org>
9893
9894         * sound.c (init_nas_sound): Fix compiler warning.
9895
9896         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
9897         (FREE_STRUCT_P):
9898         (MARK_STRUCT_AS_FREE):
9899         (MARK_STRUCT_AS_NOT_FREE):
9900         Make `gcc -fstrict-aliasing' work properly.
9901
9902 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9903
9904         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
9905         (mswindows_delete_device): Call CoUnnitialize().
9906
9907         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
9908
9909 2000-02-25    <CraigL@DyCon.com>
9910
9911         * process-nt.c: MinGW now has <shellapi.h>, but still needs
9912         <errno.h>.
9913
9914         * sysdep.c: This extern declaration for environ prevents MinGW
9915         from finding the variable in CRTDLL.DLL.
9916
9917         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
9918         windows headers.
9919         (SHGFI_EXETYPE): ..
9920         (WM_MOUSEWHEEL): ..
9921         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
9922         definitions.
9923         (MMRESULT): Removed, now defined in cygwin's windows headers.
9924         (TIMECAPS): ..
9925         (uid_t,gid_t,pid_t,ssize_t): ..
9926         (_timeb): Removed, MinGW defines both _timeb and timeb.
9927         (HAVE_H_ERRNO): Added.
9928         (HAVE_TZNAME): Added, configure is not detecting this.
9929
9930 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
9931
9932         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
9933         * syntax.c (syntax_match): Use it.
9934
9935         * cmds.c: Import auto-fill-chars from FSF Emacs.
9936         (Vauto_fill_chars): New variables.
9937         (internal_self_insert): Check Vauto_fill_chars.
9938         (vars_of_cmds):
9939         Declare auto-fill-chars as a Lisp variable and initialize it.
9940
9941 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9942
9943         * fileio.c (Fmake_symbolic_link):
9944         (Ffile_symlink_p):
9945         Run handlers even if local machine doesn't have symlinks.
9946
9947 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9948
9949         * event-msw.c (mswindows_drain_windows_queue):
9950         Don't generate paint magic events for non-XEmacs frames.
9951
9952 2000-03-05  Andy Piper  <andy@xemacs.org>
9953
9954         * redisplay.c (redisplay_frame): generate_displayable_area and
9955         friends assumes that we are not in GC, we therefore have to make
9956         sure that this doesn't happen.
9957
9958         * gutter.c (calculate_gutter_size): generate_displayable_area
9959         assumes that we are not in GC, we therefore have to make sure that
9960         this doesn't happen.
9961
9962 2000-03-05  Martin Buchholz  <martin@xemacs.org>
9963
9964         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
9965
9966 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
9967
9968         * redisplay.c (regenerate_window): Make sure we set a sane value
9969         for end_pos even if we jump out of the loop.
9970         (regenerate_window): Answer Ben's question :-).
9971         (start_end_of_last_line): Add may_error argument.
9972         (start_of_last_line):
9973         (end_of_last_line): Pass may_error = 0.
9974         (end_of_last_line_may_error): New function.
9975         (pixel_to_glyph_translation): Use it, so we don't crash in
9976         event_to_glyph.
9977
9978 2000-03-04  Andy Piper  <andy@xemacs.org>
9979
9980         * window.h (struct window): add gutter_extent_modiff.
9981
9982         * window.c (allocate_window): zero out gutter_extent_modiff.
9983
9984         * redisplay.h: declare sync_display_line_structs.
9985
9986         * redisplay.c (add_glyph_rune): add a better comment.
9987
9988         * redisplay-output.c (sync_display_line_structs): made non-static.
9989         (compare_runes): remove unneccesary glyph cachel access.
9990
9991         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
9992
9993         * gutter.c (output_gutter): don't output the gutter if extent
9994         changes only involve extents in buffers. use 4 sets of display
9995         lines.
9996         (gutter_extent_signal_changed_region_maybe): new function. Mark
9997         extents in gutters as changed.
9998         (update_frame_gutters): use 4 sets of display lines.
9999         (reset_gutter_display_lines): ditto.
10000         (free_frame_gutters): ditto.
10001         (redraw_exposed_gutter): force output of gutters.
10002
10003         * frame.h (struct frame): add 4 sets of gutter display lines.
10004
10005         * extents.c: (extent_changed_for_redisplay): signal changes to
10006         extents in strings in the gutter as well as extents in buffers.
10007
10008 2000-03-02  Andy Piper  <andy@xemacs.org>
10009
10010         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
10011
10012         * frame.c (Fmake_frame): make sure the gutters get initialized
10013         after the frame is visible.
10014         (set_frame_selected_window): re-arrange compilation macros a
10015         little.
10016         (change_frame_size_1): mark gutters changed.
10017
10018         * device.c (Fset_device_class): mark gutters changed.
10019
10020 2000-03-01  Andy Piper  <andy@xemacs.org>
10021
10022         * window.c (window_top_frame_gutter_height): deleted.
10023         (window_bottom_frame_gutter_height): ditto.
10024         (window_left_frame_gutter_height): ditto.
10025         (window_right_frame_gutter_height): ditto.
10026         (window_top_gutter_height): don't use them.
10027         (window_bottom_gutter_height): ditto.
10028         (window_left_gutter_width): ditto.
10029         (window_right_gutter_width): ditto.
10030         (Fsplit_window): ditto.
10031         (Fwindow_pixel_edges): don't use border dimensions here.
10032
10033         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
10034         (update_scrollbar_instance): ditto.
10035
10036         * redisplay.c (generate_modeline): don't take gutters into account.
10037         (generate_modeline): ditto.
10038         (redisplay_frame): small gutter display optimization.
10039
10040         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
10041
10042         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
10043         gutters into account.
10044
10045         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
10046         for window position and type.
10047
10048         * gutter.c (get_gutter_coords): fix for frame gutters.
10049         (update_frame_gutters): update frame geometry if the gutters have
10050         changed.
10051         (init_frame_gutters): record current gutter geometries.
10052
10053         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
10054         var.
10055         (mswindows_widget_instantiate): ditto.
10056
10057         * frame.h (struct frame): add current_gutter_bounds.
10058
10059         * frame.c (change_frame_size_1): position window and minibuffer
10060         appropriately taking into account the frame gutters.
10061
10062         * frame-x.c: (x_initialize_frame_size): take into account the
10063         frame gutters.
10064
10065 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
10066
10067         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
10068
10069 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
10070
10071         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
10072
10073 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
10074
10075         * file-coding.c (reset_decoding_stream): Clear previous
10076         detection state when autodetect.
10077
10078 2000-02-29  Didier Verna  <didier@xemacs.org>
10079
10080         * extents.c (set_extent_glyph_1): don't require extents to be
10081         attached.
10082
10083 2000-02-27  Andy Piper  <andy@xemacs.org>
10084
10085         * gutter.c (Fset_default_gutter_position): don't default left and
10086         right gutter visibility to t.
10087         (Fset_default_gutter_position): run
10088         default-gutter-position-changed-hook.
10089         (syms_of_gutter): add default-gutter-position-changed-hook.
10090
10091 2000-02-26  Andy Piper  <andy@xemacs.org>
10092
10093         * specifier.c (Fmake_specifier): add gutter references.
10094
10095         * gutter.h (RAW_WINDOW_GUTTER): new macro.
10096
10097         * lisp.h: declare Fvalid_plist_p.
10098
10099         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
10100         as changed.
10101         (default_gutter_visible_p_changed_in_window): invalidate gutter as
10102         well as its visibility so that it gets reconstructed.
10103         (construct_window_gutter_spec): new function. Construct a string
10104         to be displayed in the gutter from a plist of strings. Take care
10105         to only use elements that are declared as visible.
10106         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
10107         WINDOW_GUTTER.
10108         (gutter_validate): allow plists of strings in the specifier.
10109         (gutter_specs_changed): construct the real_gutter from the gutter
10110         specs using construct_window_gutter_spec.
10111         (gutter_visible_validate): gutter-visible is a new specifier type.
10112         (Fgutter_visible_specifier_p): new function for the new specifier.
10113         (syms_of_gutter): declare gutter-visible and
10114         Fgutter_visible_specifier_p.
10115         (specifier_type_create_gutter): intitalize new gutter-visible
10116         specifier.
10117         (reinit_specifier_type_create_gutter): ditto.
10118         (specifier_vars_of_gutter): use new specifier type for gutter
10119         visibility.
10120         (init_frame_gutters): construct real_gutter correctly.
10121         (Fgutter_specifier_p): beef up documentation.
10122         (Fgutter_size_specifier_p): ditto.
10123
10124         * winslots.h: add real_gutter slots.
10125
10126 2000-02-25  Andy Piper  <andy@xemacs.org>
10127
10128         * device-msw.c: Be kind to older cygwin versions. From Raymond
10129         Toy <toy@rtp.ericsson.se>.
10130
10131         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
10132         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
10133
10134 2000-02-25  Martin Buchholz  <martin@xemacs.org>
10135
10136         * elhash.c (MARK_OBJ): Practice macro hygiene.
10137
10138 2000-02-24  Martin Buchholz  <martin@xemacs.org>
10139
10140         * miscplay.c: s/__inline__/inline/g;
10141         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
10142         (get_device_compdc): INLINE ==> static inline
10143         * *.[ch]: Change INLINE to INLINE_HEADER globally.
10144         find -name '*.h' | \
10145         xargs global-replace \
10146         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
10147
10148 2000-02-25  Andy Piper  <andy@xemacs.org>
10149
10150         * window.c (window_top_frame_gutter_height): new function.
10151         (window_top_window_gutter_height): ditto.
10152         (window_top_gutter_height): use them.
10153         (window_bottom_frame_gutter_height): new function.
10154         (window_bottom_window_gutter_height): ditto.
10155         (window_bottom_gutter_height): use them.
10156         (window_left_window_gutter_width): new function.
10157         (window_left_frame_gutter_width): ditto.
10158         (window_left_gutter_width): use them.
10159         (window_right_window_gutter_width): new function.
10160         (window_right_frame_gutter_width): ditto.
10161         (window_right_gutter_width): use them.
10162         (window_pixel_height): new function. calulate window pixel height
10163         with frame gutter involvement.
10164         (Fsplit_window): calculate new sizes taking frame gutters into
10165         account.
10166         (window_char_height_to_pixel_height): don't include frame gutters.
10167         (window_char_height): use window_pixel_height.
10168         (window_pixheight): rename from window_pixel_height.
10169         (change_window_height): use it.
10170         (window_pixel_height_to_char_height): don't include frame gutters.
10171         (window_char_width_to_pixel_width): ditto.
10172
10173 2000-02-25  Andy Piper  <andy@xemacs.org>
10174
10175         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
10176         if it is.
10177
10178 2000-02-24  Martin Buchholz  <martin@xemacs.org>
10179
10180         * alloc.c (staticpro):
10181         (staticpro_nodump):
10182         (dumpstruct):
10183         (dumpopaque):
10184         (pdump_wire):
10185         (pdump_wire_list):
10186         (compact_string_chars):
10187         (pdump_dump_wired):
10188         Convert:  if (foo) abort();  ==>  assert (! foo);
10189
10190         * eldap.c (Fldap_search_basic):
10191         (Fldap_add):
10192         (Fldap_modify):
10193         (Fldap_delete):
10194         Fix compiler warnings, and possible crashes if (random) return
10195         value were to be used.
10196
10197 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10198
10199         * device-msw.c: Workaround ResetDC failure.
10200
10201         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
10202         applying a devmode.
10203
10204         * redisplay-msw.c (get_frame_dc): Added start_page_p.
10205         (mswindows_text_width): Do not start printer page.
10206
10207         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
10208
10209         * glyphs-msw.c: Added image methods to msprinter console and
10210         msprinter-specific image instantiation.
10211
10212 2000-02-20  Mike Alexander  <mta@arbortext.com>
10213
10214         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
10215         to avoid crashes when selection-sets-clipboard is on
10216         (mswindows_own_selection): ditto
10217
10218 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10219
10220         * glyphs-msw.c:
10221         * redisplay-msw.c (get_frame_dc):
10222         (get_frame_compdc):
10223         * console-msw.h:
10224         * device-msw.c (mswindows_init_device):
10225         (mswindows_delete_device):
10226         (msprinter_init_device):
10227         (msprinter_delete_device):
10228         * frame-msw.c (mswindows_init_frame_1):
10229         (mswindows_delete_frame):
10230         (msprinter_init_frame_3):
10231         (msprinter_delete_frame): Move compatible DC to device object from
10232         frame object, for both mswindows and msprinter. Only one at a time
10233         is needed, it is a real waste to have one per frame!
10234
10235 2000-02-23  Andy Piper  <andy@xemacs.org>
10236
10237         * glyphs.c: add dynamic width and height elements.
10238         (image_instance_equal): ditto.
10239
10240         * glyphs-widget.c (widget_query_geometry): calculate width and
10241         height dynamically if required.
10242         (initialize_widget_image_instance): initialize dynamic dimensions.
10243         (widget_instantiate): pick-up dynamic dimensions.
10244
10245         * glyphs.h (struct Lisp_Image_Instance): add width and height for
10246         dynamic determination. Add appropriate macros.
10247
10248         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
10249         dimensions safe.
10250         (WINDOW_GUTTER_SIZE): ditto.
10251         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
10252
10253         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
10254         inline.
10255         (get_frame_dc): ditto.
10256
10257         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
10258         here.
10259
10260 2000-02-23  Martin Buchholz <martin@xemacs.org>
10261
10262         * XEmacs 21.2.31 is released.
10263
10264 2000-02-22  Ben Wing <ben@xemacs.org>
10265
10266         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
10267
10268 2000-02-22  Andy Piper  <andy@xemacs.org>
10269
10270         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
10271
10272 2000-02-21  Mike Sperber <mike@xemacs.org>
10273
10274         * .dbxrc:
10275         * .gdbinit:
10276         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
10277         variables.
10278
10279 2000-02-21  Mike Sperber <mike@xemacs.org>
10280
10281         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
10282
10283 2000-02-21  Martin Buchholz <martin@xemacs.org>
10284
10285         * XEmacs 21.2.30 is released.
10286
10287 2000-02-20  Martin Buchholz  <martin@xemacs.org>
10288
10289         Performance hacking.
10290         * *.c (syms_of_*):
10291         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
10292         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
10293         * emacs.c (main_1):
10294         * lisp.h (DEFUN):
10295         * console.c (DEFVAR_CONSOLE_LOCAL_1):
10296         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
10297         * symeval.h (DEFVAR_SYMVAL_FWD):
10298         * symbols.c (guts_of_unbound_marker):
10299         Make all c_readonly objects also lisp_readonly and marked for life.
10300         * lrecord.h (struct lrecord_implementation):
10301         Document flags better.
10302         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
10303         * lrecord.h (DECLARE_LRECORD):
10304         * lrecord.h (XSETRECORD):
10305         * lrecord.h (RECORDP):
10306         * lrecord.h (RECORD_TYPEP):
10307         * lrecord.h (RECORD_MARKER): New.
10308         * lrecord.h (error_check_*):
10309         * lrecord.h (CONCHECK_NONRECORD):
10310         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
10311         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
10312         * lrecord.h (set_lheader_implementation):
10313         * lrecord.h (enum lrecord_type): New.
10314         * symeval.h (SYMBOL_VALUE_MAGIC_P):
10315         * alloc.c (disksave_object_finalization_1):
10316         * alloc.c (mark_object):
10317         * alloc.c (lrecord_type_index):
10318         * alloc.c (tick_lcrecord_stats):
10319         * alloc.c (Fgarbage_collect):
10320         * alloc.c (init_alloc_once_early):
10321         * alloc.c (pdump_load):
10322         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
10323         * alloc.c (lrecord_type_index): Delete.
10324         Make lisp object type indexes be constant.
10325           Makes (byte-compile) 5% faster.
10326         Put all marker functions into their own array.
10327           Makes (garbage-collect) 5% faster.
10328         Optimize SYMBOL_VALUE_MAGIC_P.
10329           Makes (byte-compile) 2-3% faster.
10330         * config.h.in (gc_checking_assert): New.
10331         * alloc.c: Use gc_checking_assert().
10332         * .dbxrc: Make compatible with new object type implementation.
10333         * .gdbinit: Make compatible with new object type implementation.
10334         * alloc.c: Delete all symbols defined only for debugging, such as
10335         Lisp_Type_Vector and lrecord_charset.
10336
10337 2000-02-21  Andy Piper  <andy@xemacs.org>
10338
10339         * gui-msw.c (Fmswindows_shell_execute): fix file location
10340         problems.
10341
10342         * buffer.c (Fkill_buffer): remove buffer from alist buffer
10343         unshowing so that set_window_buffer doesn't undo
10344         kill_buffer_hook's hard work.
10345
10346         * glyphs-widget.c (tab_control_query_geometry): don't count the
10347         first item when calculating geometry.
10348
10349         * glyphs.c (map_subwindow): remove redundant code.
10350         (update_frame_subwindows): be more circumspect about when to
10351         update subwindows.
10352
10353         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
10354         when items haven't changed. Update faces if faces have changed as
10355         well as just the widget face.
10356         (x_tab_control_update): Update faces if faces have changed as well
10357         as just the widget face.
10358
10359 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10360
10361         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
10362         registration.
10363         (build_syscolor_string): Use mswindows_color_to_string to try to
10364         get a named color.
10365         (mswindows_device_system_metrics): Reverse the foreground and
10366         background colors so that they match the documentation.
10367
10368         * objects-msw.c: (mswindows_X_color_map): tweak some values so
10369         they match the default Windows palette.
10370         (mswindows_color_to_string): New function.
10371
10372 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10373
10374         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
10375
10376 2000-02-18  Olivier Galibert  <galibert@pobox.com>
10377
10378         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
10379         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
10380
10381         * symbols.c (init_symbols_once_early): Removed obsolete
10382         DATA_SEG_BITS related kludge.
10383         (defvar_magic): Ditto.
10384
10385         * malloc.c: Removed obsolete DATA_SEG_BITS
10386         * ralloc.c: Ditto.
10387         * mem-limits.h: Ditto.
10388
10389         * Makefile.in.in: Removed obsolete HAVE_SHM
10390         * emacs.c: Ditto.
10391
10392 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10393
10394         *  device-msw.c (mswindows_delete_device): Free DDE string
10395         handles.
10396
10397 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10398
10399         * keymap.c (get_keyelt):
10400         * unexnt.c (unexec):
10401         * vm-limit.c (memory_warnings):
10402         * ntheap.c (recreate_heap):
10403         * ntheap.h (UNINIT_PTR):
10404         * select-msw.c (Fmswindows_get_clipboard):
10405         (Fmswindows_set_clipboard):
10406         * objects-msw.h (MSWINDOWS_BAD_HFONT):
10407         * objects-msw.c:
10408         * menubar-msw.c (displayable_menu_item):
10409         * glyphs-msw.c:
10410         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
10411         * sysdep.c (sys_subshell):
10412         * process-nt.c (nt_create_process):
10413         * nt.c (normalize_filename):
10414         (dostounix_filename):
10415         (unixtodos_filename):
10416         * ntproc.c (win32_executable_type):
10417         * ntplay.c (play_sound_data_1):
10418         (play_sound_file):
10419         * editfns.c (get_home_directory):
10420         * event-msw.c (struct winsock_stream):
10421         (mswindows_dde_callback):
10422         * device-msw.c (msprinter_init_device):
10423         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
10424
10425         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
10426         mswindows_clear_toolbar were swapped!
10427
10428         * objects-msw.c:(colormap_t):
10429         (fontmap_t):
10430         * emacs.c (struct standard_args): Fixed const jumble.
10431
10432         * glyphs-widget.c (update_widget): Fixed comparison notation.
10433
10434         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
10435
10436         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
10437         __declspec(noreturn) syntax.
10438
10439 2000-02-19  Martin Buchholz  <martin@xemacs.org>
10440
10441         * eldap.c (Fldap_open):
10442         (Fldap_search_basic):
10443         (Fldap_add):
10444         (Fldap_modify):
10445         Use new coding system conversion macros.
10446
10447 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
10448
10449         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
10450
10451 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
10452
10453         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
10454         (Fldap_add, Fldap_modify, Fldap_delete): New functions
10455
10456         * eldap.c (Qadd, Qreplace): New constant symbols
10457         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
10458         interruptions by XEmacs signals
10459         Remove unnecessary calls to slow_down_interrupts and
10460         speed_up_interrupts
10461         (Fldap_search_basic): Renamed from Fldap_search_internal
10462         Added new optional parameter VERBOSE that triggers the
10463         display of progress messages
10464         Remove unnecessary calls to slow_down_interrupts and
10465         speed_up_interrupts
10466         LDAP result code analysis rewritten
10467         (Fldap_add, Fldap_modify, Fldap_delete): New functions
10468         (syms_of_eldap): Define the new symbols and functions
10469
10470
10471 2000-02-17  Martin Buchholz  <martin@xemacs.org>
10472
10473         * realpath.c: Determine PATH_MAX maximally portably.
10474
10475         * insdel.c (bytecount_to_charcount): Optimize.
10476         The function used to be optimized for entirely ASCII sequences.
10477         Now it is optimized for successive characters from the same
10478         charset.  This also wins big for _mostly_ ASCII sequences.
10479
10480         * fileio.c (Ffile_truename): convert return from realpath() using
10481         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
10482         - Rewrite GCPROing slightly.
10483
10484         * sysdep.c (sys_open): Do filename conversion, like all other
10485         sys_* functions.  Fixes bug:
10486         (let ((file-name-coding-system 'iso-8859-2))
10487            (write-region x y latin2-name))
10488         ==> writes filename using internal encoding.
10489
10490 2000-02-18  Martin Buchholz  <martin@xemacs.org>
10491
10492         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
10493         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
10494         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
10495         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
10496         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
10497         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
10498         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
10499         (CONST_IF_NOT_DEBUG): Delete.
10500         * alloc.c (this_one_is_unmarkable): Delete.
10501         (mark_object): Don't check for this_one_is_unmarkable. Use the
10502         c_readonly flag instead.
10503         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
10504
10505 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10506
10507         * event-msw.c (mswindows_drain_windows_queue):
10508         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
10509         away redundant repaint events.
10510
10511 2000-02-17  Andy Piper  <andy@xemacs.org>
10512
10513         * redisplay.h: declare mark_redisplay_structs.
10514
10515         * redisplay.c (redisplay_window):
10516         (redisplay_frame): don't check subwindows_state_changed.
10517         (mark_redisplay): mark gutters here.
10518
10519         * glyphs.c: (instantiate_image_instantiator): always layout if we
10520         haven't done so already.
10521         (allocate_image_instance): don't mark as dirty.
10522         (update_subwindow): bind inhibit_quit.
10523
10524         * gutter.c (mark_gutters): new function.
10525
10526         * glyphs-x.c (x_update_widget): Always resize to get round a
10527         widget bug.
10528
10529         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
10530         breaking absolutely everything.
10531
10532         * gutter.h: declare mark_gutters.
10533
10534 2000-02-16  Martin Buchholz <martin@xemacs.org>
10535
10536         * XEmacs 21.2.29 is released.
10537
10538 2000-02-15  Olivier Galibert  <galibert@pobox.com>
10539
10540         * fns.c (size_bit_vector): Fix computation of the size.
10541
10542 2000-02-15  Martin Buchholz  <martin@xemacs.org>
10543
10544         * *.[ch]: Change CONST to const globally.
10545         find -name '*.[ch]' | \
10546         xargs global-replace \
10547         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
10548         - Remove vestigial references to CONST_IS_LOSING
10549
10550 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10551
10552         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
10553         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
10554         events instead of dispatching them directly.
10555         (mswindows_handle_paint): New function to do repainting.
10556         (mswindows_wnd_proc):
10557         (emacs_mswindows_handle_magic_event): Call above function.
10558
10559 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10560
10561         * objects-msw.c (mswindows_create_font_variant): Return the new
10562         font handle.
10563         (initialize_font_instance): Get font metrics from the underlined
10564         variant of the font to cope with the case where the underlined
10565         font has a bigger descent.
10566
10567 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
10568
10569         * gui.c (gui_item_accelerator): Return the first underlined
10570         character in item name.
10571
10572 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10573
10574         * lisp.h: Added Qprinter.
10575
10576         * general.c (syms_of_general): Initialized it.
10577
10578         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
10579         (get_frame_dc):
10580         (get_frame_compdc): Made inline.
10581
10582         * console.h (struct console_methods): Added eject_page method.
10583
10584         * frame.h: Added FRAME_DISPLAY_P and friends.
10585         Aligned backslahes in many macros in more readable fashion.
10586         Added page_number to struct frame, and an accessor macro
10587         for it.
10588
10589         * defice.h: Added DEVICE_DISPLAY_P and friends.
10590
10591         * device.c (Fdevice_printer_p): Used these.
10592
10593         * frame.c (allocate_frame_core): Initialize page number.
10594         (Fprint_job_page_number):
10595         (Fprint_job_eject_page): Implemented.
10596
10597         * frame-msw.c (msprinter_eject_page): Added method.
10598         (msprinter_start_page): Added.
10599
10600         * window.c (Fwindow_truncated_p): Fixed docstring.
10601         (Fwindow_last_line_visible_height): Implemented.
10602
10603 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10604
10605         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
10606
10607 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
10608
10609         * syntax.c (scan_words): Always advance at least one character.
10610
10611 2000-02-13  Andy Piper  <andy@xemacs.org>
10612
10613         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
10614         to make sure the glyph is in the cachels.
10615
10616         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
10617         global image instance flag.
10618         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
10619         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
10620
10621         * glyphs.c (allocate_image_instance): set dirty bits correctly.
10622         (Fset_image_instance_property): mark layout as changed.
10623         (invalidate_glyph_geometry_maybe): mark layout as changed.
10624         (glyph_width): use new NEEDS_LAYOUT macro.
10625         (glyph_ascent): ditto.
10626         (glyph_descent): ditto.
10627         (glyph_height): ditto.
10628         (image_instance_layout): mark layout as clean after laying out.
10629         (update_subwindow): don't mark layout as clean here.
10630
10631         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
10632         should no longer be needed.
10633
10634         * glyphs-x.c (x_update_widget): sanitize asserts.
10635         (x_finalize_image_instance): sanitize assignment to widgets.
10636
10637         * glyphs-widget.c (widget_instantiate): don't need to clear the
10638         layout flag here.
10639
10640 2000-02-13  Martin Buchholz  <martin@xemacs.org>
10641
10642         * sysdep.c (getcwd): Use standard prototype.
10643         * sysdep.h (getcwd): Use standard prototype.
10644
10645         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
10646         (sequence, start, end).
10647         Remove redundant type checking.
10648         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
10649         view of `caller-protects') to avoid a crash where the real fix was
10650         found elsewhere.
10651
10652 2000-02-12  Martin Buchholz  <martin@xemacs.org>
10653
10654         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
10655
10656         * s/sol2.h: Remove feature macro initialization.
10657
10658         * alloc.c (alloc_lcrecord): Add more type checking assertions.
10659         (vector_hash): New.  Code from internal_hash.
10660         * lrecord.h:
10661         Fix up allocation subsystem comments.
10662
10663         * config.h.in: Add __EXTENSIONS__ for Solaris.
10664
10665         * systime.h (EMACS_GETTIMEOFDAY): New.
10666         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
10667         Remove Solaris-specific code.
10668         Use void* for the (ignored) second arg for gettimeofday().
10669
10670         * elhash.c (hash_table_hash): Implement it, finally.
10671         * elhash.c:  Use hashcode_t.
10672
10673         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
10674         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
10675
10676         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
10677         * fns.c (size_bit_vector):
10678         * alloc.c (size_vector):
10679         (make_vector_internal):
10680         (make_bit_vector_internal):
10681         (sweep_bit_vectors_1):
10682         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
10683
10684 2000-02-10  Martin Buchholz  <martin@xemacs.org>
10685
10686         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
10687         Include strings.h to avoid warnings for bzero and strcasecmp.
10688
10689 2000-02-10  Olivier Galibert  <galibert@pobox.com>
10690
10691         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
10692         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
10693
10694         * fns.c (size_bit_vector): New.  Declare bit vectors as a
10695         sequence.
10696
10697 2000-02-10  Olivier Galibert  <galibert@pobox.com>
10698
10699         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
10700         use a value field instead.
10701         (symbol_value_forward_forward): Use value field.
10702         (DEFVAR_SYMVAL_FWD): Use value field.
10703         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
10704         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
10705         (DEFVAR_CONST_INT): Ditto.
10706         (DEFVAR_BOOL): Ditto.
10707         (DEFVAR_CONST_BOOL): Ditto.
10708         (DEFVAR_INT_MAGIC): Ditto.
10709         (DEFVAR_BOOL_MAGIC): Ditto.
10710
10711         * symbols.c (guts_of_unbound_marker): Use value field.
10712         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
10713         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
10714
10715         * lisp.h: Declare dumpopaque and noninteractive1.
10716
10717         * alloc.c (dumpopaque): Added.
10718         (pdump_dump_opaquevec): Added.
10719         (pdump): Call pdump_dump_opaquevec to dump opaque data.
10720         (pdump_load): Reload opaque data.  Sync noninteractive1 with
10721         noninteractive.
10722
10723 2000-02-10  Andy Piper  <andy@xemacs.org>
10724
10725         * glyphs.c (image_instance_layout): if the size changes, mark it
10726         as such.
10727
10728         * redisplay-output.c (redisplay_output_layout): Update the
10729         subwindow here.
10730         (redisplay_output_subwindow): ditto.
10731
10732         * glyphs.c (update_subwindow): make sure we reset flags for
10733         layouts as well as everything else.
10734
10735         * glyphs-widget.c (layout_layout): don't need to set the instances
10736         dimensions here.
10737
10738 2000-02-09  Martin Buchholz  <martin@xemacs.org>
10739
10740         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
10741         not HAVE_DLOPEN, which is a lower-level thing.
10742
10743         * .cvsignore: Ignore gmon.out
10744
10745 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
10746
10747         * .cvsignore: Ignore portable dumper xemacs.dmp file
10748
10749 2000-02-09  Andy Piper  <andy@xemacs.org>
10750
10751         * redisplay-output.c (redisplay_output_layout): be more clever
10752         about when we output based on the changed flags.
10753
10754         * glyphs.h (struct image_instantiator_methods): add update_method.
10755         (struct Lisp_Image_Instance): add changed flags. Declare new
10756         macros for manipulating them.
10757
10758         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
10759         (image_instance_parent_glyph): find an image_instance's parent
10760         glyph or image_instance.
10761         (image_instance_layout): mark the size as changed.
10762         (set_image_instance_dirty_p): new function. mark an image
10763         instance, plus all of its parents, as dirty.
10764         (Fset_image_instance_property): use it.
10765         (Fglyph_animated_timeout_handler): use it.
10766         (update_subwindow): call update_widget and device methods for
10767         update_subwindow. Mark all changed flags as clean.
10768         (Fresize_subwindow): mark size as changed.
10769
10770         * glyphs-x.c (x_finalize_image_instance): try and detect gc
10771         failures.
10772         (x_update_subwindow): only resize subwindows here.
10773         (x_update_widget): new function. Update all changed properties of
10774         a widget.
10775         (x_resize_subwindow): deleted.
10776         (x_widget_set_property): deleted.
10777         (x_progress_gauge_set_property): deleted.
10778         (x_progress_gauge_update): new function. Implement recorded
10779         changes.
10780         (x_tab_control_update): ditto.
10781         (x_tab_control_set_property): deleted.
10782         (console_type_create_glyphs_x): declare new functions.
10783         (image_instantiator_format_create_glyphs_x): ditto.
10784
10785         * glyphs-widget.c (widget_set_property): mark text changed.
10786         (update_widget): new function. Update properties of a widget.
10787         (widget_instantiate): for layouts make sure we set their
10788         children's parent correctly.
10789         (tab_control_set_property): new function. Record changes that will
10790         take place under redisplay's control.
10791         (progress_gauge_set_property): ditto.
10792         (image_instantiator_progress_guage): declare new functions.
10793         (image_instantiator_tab_control): ditto.
10794
10795         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
10796         now.
10797         (mswindows_update_widget): new function. Update all properties on
10798         a widget that have changed.
10799         (mswindows_button_update): new function. Update a button's set
10800         state.
10801         (mswindows_tab_control_update): new function. Update the items in
10802         a tab.
10803         (mswindows_tab_control_set_property): deleted.
10804         (mswindows_progress_gauge_update): new function. Update the
10805         progress gauge's progress.
10806         (mswindows_widget_set_property): deleted. This is all done
10807         asynchronously now.
10808         (mswindows_progress_gauge_set_property): ditto.
10809         (console_type_create_glyphs_mswindows): declare new methods.
10810         (image_instantiator_format_create_glyphs_mswindows): ditto.
10811
10812         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
10813         (msprinter_set_frame_properties): ditto.
10814
10815         * console.h (struct console_methods): Add update_widget_method.
10816
10817 2000-02-09  Andy Piper  <andy@xemacs.org>
10818
10819         * gui-msw.c (Fmswindows_shell_execute): Make
10820         mswindows-shell-execute industrial strength.
10821
10822 2000-02-08  Martin Buchholz  <martin@xemacs.org>
10823
10824         * lrecord.h: Make macro argument `props' match member function `plist'.
10825         * fns.c (Fget):
10826         * fns.c (Fput):
10827         * fns.c (Fremprop):
10828         * fns.c (Fobject_plist):
10829         * alloc.c:
10830         * symbols.c:
10831         Object property list frobbing cleanup.
10832         - Allow any lisp object (compared with `eq'), not just symbols, as
10833           keys in object plists.
10834         - Move symbol plist frobbing into symbols.c, where it belongs.
10835         - Move string plist frobbing into alloc.c, where it belongs.
10836         - Everything's an lrecord now, so no need to test for symbolp, etc.
10837         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
10838
10839         * extents.c: Reorder code to remove declarations.
10840
10841         * frame.h (store_in_alist): Remove useless declaration.
10842
10843 2000-02-07  Martin Buchholz  <martin@xemacs.org>
10844
10845         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
10846         * config.h.in: Add HAVE_XCONVERTCASE.
10847
10848 2000-02-07  Andy Piper  <andy@xemacs.org>
10849
10850         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
10851         it breaks many things.
10852
10853 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
10854
10855         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
10856         actually can start a common comment type.
10857         * src/syntax.h (SYNTAX_END_P): ditto for end.
10858
10859 2000-02-07  Martin Buchholz <martin@xemacs.org>
10860
10861         * XEmacs 21.2.28 is released.
10862
10863 2000-02-06  Martin Buchholz  <martin@xemacs.org>
10864
10865         * event-Xt.c (x_keysym_to_character): New.
10866         (maybe_define_x_key_as_self_inserting_character): New.
10867         (x_has_keysym): New.
10868         Auto-define all keys on the keyboard as self-insert-key.
10869
10870 2000-02-02  Martin Buchholz  <martin@xemacs.org>
10871
10872         * menubar.c (vars_of_menubar): A small code simplification.
10873
10874         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
10875
10876         * ExternalShell.c:
10877         * ExternalClient.c:
10878         * EmacsShell-sub.c:
10879         * EmacsManager.c:
10880         * EmacsFrame.c:
10881         Use consistent style for specifying X resources.
10882
10883         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
10884         This makes (dontusethis-set-symbol-value-handler) actually usable.
10885
10886         * lrecord.h (lrecord_decription_type):
10887         * alloc.c (pdump_register_sub):
10888         (pdump_dump_data):
10889         (pdump_reloc_one):
10890         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
10891         Comply with XEmacs coding style.
10892         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
10893         args, and XD_LISP_OBJECT_ARRAY with 3 args.
10894
10895         * keymap.c (Faccessible_keymaps):
10896         Make (accessible-keymaps map "\C-h") do the Right Thing.
10897         Make (accessible-keymaps map []) do the Right Thing.
10898         Make (accessible-keymaps map "") do the Right Thing.
10899         (check_keymap_definition_loop): New function.
10900         (keymap_store_internal): Keep luser from shooting self in foot,
10901           via (define-key ctl-x-4-map "p" global-map).
10902         Remove fullness slot from struct Lisp_Keymap, since hash tables
10903         are now reliable.
10904         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
10905
10906 2000-01-30  Martin Buchholz  <martin@xemacs.org>
10907
10908         * redisplay.c (init_redisplay): Fix small memory leak.
10909         * elhash.h:
10910         * elhash.c (pdump_reorganize_hash_table):
10911         Rename from reorganize_hash_table. Change prototype.
10912         Reuse the original memory for hentries.  Save 100k.
10913         * alloc.c (PDUMP_READ): new macro.
10914         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
10915         * alloc.c: No need to #ifndef before #undef.
10916
10917         * print.c: Allow debug_print() to print readably by modifying
10918         debug_print_readably.  Use consistent variable names.
10919
10920         * .dbxrc: Try to get things to work even if stopped in a function
10921         without source available by explicitly specifying source files.
10922 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10923
10924         * unexnt.c (_start): Removed bogus code which caused loading heap
10925         from differrent executable file.
10926         Removed bogus assignment to _fmode, which caused inconsistencies.
10927
10928 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10929
10930         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
10931         Have spawnve encapsulation regard DONT_ENCAPSULATE.
10932         Do not preliminary `#define signal sigset'.
10933
10934         * systime.h: Do not prototype environ on windows nt and cygwin,
10935         this conflicts with system header.
10936
10937         * syssignal.h: Use correct define for WINDOWSNT
10938
10939         * sysdep.h: Do not prototype environ on windows nt, this conflicts
10940         with system header.
10941
10942         * sysdep.c (near start of file): Fixed commentary and rearranged
10943         ifdefs in readable order.
10944         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
10945         (start_of_text):
10946         (end_of_text):
10947         (end_of_data): Do not compile in if using PDUMP.
10948
10949         * symsinit.h: Prototyped vars_of_nt().
10950
10951         * ntproc.c (windows9x_p): Added, instead of os_subtype.
10952         (find_child_console): Use it.
10953         (sys_kill): Use it.
10954
10955         * ntheap.h: Do not extern os_subtype.
10956
10957         * ntheap.c (cache_system_info): Do not cache unneeded:
10958         nt_major_version, nt_minor_version and os_subtype.
10959         (recreate_heap): Do not compile in when PDUMPing.
10960
10961         * nt.c (geteuid and friends): Use the new varibale
10962         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
10963         (init_user_info): Removed the above mentioned hackery.
10964         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
10965         stat has been fixed in the C runtime.
10966         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
10967
10968         * file-coding.c (struct file_coding_dump): Do not define
10969         ucs_to_mule_table in the struct if not MULE.
10970         (struct struct lrecord_description fcd_description_1): Do not dump
10971         the above.
10972
10973         * emacs.c (main_1): Call vars_of_nt().
10974         (right before Fdump_emacs_data): Don't need lastfile if using both
10975         portabe dumper and system malloc.
10976
10977         * alloc.c (Fmemory_limit): Conditionalized out.
10978         (pdump): Use OPEN_BINARY for the portable dump file.
10979         (pdump_load): Ditto.
10980
10981 2000-02-02  Mike Alexander  <mta@arbortext.com>
10982
10983         * nt.c (convert_time): Set tm_isdst before calling mktime and
10984         avoid calling it at all if the compiler supports 64 bit integers.
10985         Also initialize utc_base_ft before using it.
10986
10987 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
10988
10989         * frame.c (change_frame_size_1): Take f->internal_border_width
10990         into consideration when calculating the width of the frame.
10991
10992 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10993
10994         * window.c (frame_min_height):
10995         (frame_size_valid_p):
10996         (frame_pixsize_valid_p): Added.
10997         (check_frame_size): Generalized.
10998
10999         * window.h: Prototyped the above.
11000
11001         * lisp.h:
11002         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
11003         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
11004         Deleted Vwin32_* and Vbinary_process_* unused variables.
11005
11006         * device-msw.c (msprinter_init_device): Do not get printer font
11007         list; Added DEVMODE functions.
11008
11009         * frame-msw.c: Added lots of printer code.
11010
11011         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
11012         general.c.
11013
11014         * console-msw.h: Added more msprinter device private slots.
11015
11016 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11017
11018         * event-msw.c (key_needs_default_processing_p): Added.
11019         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
11020
11021 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11022
11023         * glyphs.c (image_instance_layout): Mark image instance as clean
11024         after layout.
11025         (glyph_dirty_p): Removed redundant function.
11026         (invalidate_glyph_geometry_maybe): Added.
11027         (update_glyph_cachel_data): Call it.
11028
11029         * glyphs.h: Prototyped it.
11030
11031         * redisplay.c (add_glyph_rune): Call it.
11032         (redisplay_window): Reset glyphs cachels when frame faces have
11033         changed, thus forcing recomputation of built-in border glyphs.
11034
11035 2000-01-30  Martin Buchholz  <martin@xemacs.org>
11036
11037         * Makefile.in.in: Make portable dumper and purify play well together.
11038         Add imperfect, but better than nothing, support for pdump.
11039         Remove xemacs.dmp when temacs is re-generated.
11040         Don't ignore errors when dumping xemacs.
11041
11042         * symbols.c (maybe_call_magic_handler): Remove one magic number.
11043
11044 2000-01-28  Andy Piper  <andy@xemacs.org>
11045
11046         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
11047         (setup_normal_frame): ditto.
11048         (setup_frame_without_minibuffer): ditto.
11049         (setup_minibuffer_frame): ditto.
11050         (delete_frame_internal): ditto.
11051         (Fmake_frame_invisible): ditto.
11052         (Ficonify_frame): ditto.
11053
11054         * window.h: change Fset_window_buffer signature.
11055
11056         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
11057         (Fset_window_buffer): allow recording of buffer if the window is
11058         the selected window.
11059         (window_loop): Use new Fset_window signature.
11060
11061 2000-01-23  Daniel Pittman  <daniel@danann.net>
11062
11063         * config.h.in: Added template for `HAVE_ATHENA_3D'
11064
11065 2000-01-29  Andy Piper  <andy@xemacs.org>
11066
11067         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
11068
11069         * gutter.c (output_gutter): Don't output if the window isn't live.
11070
11071 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11072
11073         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
11074         of 01/12/00: Moved SetFocus back here where it belongs.
11075
11076 2000-01-23  Andy Piper  <andy@xemacs.org>
11077
11078         * s/cygwin32.h: declare printer things.
11079
11080 2000-01-26  Andy Piper  <andy@xemacs.org>
11081
11082         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
11083         Alexander.
11084
11085 2000-01-24  Andy Piper  <andy@xemacs.org>
11086
11087         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
11088         (mswindows_button_instantiate): Make sure glyph is a pixmap.
11089
11090         * glyphs-widget.c (widget_instantiate): Avoid shadows.
11091
11092         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
11093
11094         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
11095
11096         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
11097         (mswindows_output_display_block): Avoid local shadows.
11098
11099         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
11100         (mswindows_enqueue_mouse_button_event): ditto.
11101         (mswindows_handle_gui_wm_command): remove declaration.
11102
11103         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
11104         warnings.
11105
11106         * console-msw.h: Avoid shadows.
11107         (mswindows_get_toolbar_button_text):
11108         (emacs_mswindows_create_stream_pair):
11109         (emacs_mswindows_delete_stream_pair):
11110         (mswindows_handle_toolbar_wm_command): declare.
11111
11112         * device-msw.c (build_syscolor_string): Avoid shadows.
11113
11114 2000-01-23  Andy Piper  <andy@xemacs.org>
11115
11116         * glyphs-widget.c (widget_instantiate): reverse the items for
11117         layouts so that children are in the expected order.
11118
11119 2000-01-28  Martin Buchholz  <martin@xemacs.org>
11120
11121         * ralloc.c: safe_bcopy ==> memmove
11122         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
11123         * s/msdos.h: Remove BCOPY macros.
11124         * insdel.c (gap_right): Remove BCOPY conditional code.
11125         * insdel.c (gap_left): Remove BCOPY conditional code.
11126         XEmacs demands a working ANSI C compiler - hence memmove.
11127
11128         * regex.c (regex_compile): Remove accidental use of trigraphs.
11129
11130 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11131
11132         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
11133         event timestamp.
11134
11135 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11136
11137         * event-msw.c (mswindows_drain_windows_queue): Added the
11138         parameter.
11139         (mswindows_need_event): Commented the call to
11140         mswindows_drain_windows_queue().
11141         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
11142         only.
11143
11144         * console-msw.h: Moved a few function prototypes here from
11145         event-msw.c.
11146
11147         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
11148         parameter from unsigned short to unsigned long.
11149         (Fmswindows_shell_execute): Added return value.
11150
11151 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
11152
11153         * sysdep.c (init_system_name):
11154           process-unix.c (unix_canonicalized_host_name):
11155         Don't call freeaddrinfo() if getaddrinfo() fails.
11156
11157         * process-unix.c (unix_open_unix_network_stream):
11158         Moved the code to get a port # into address loop.
11159
11160 2000-01-27  Martin Buchholz  <martin@xemacs.org>
11161
11162         * buffer.c (reinit_vars_of_buffer):
11163         The right place to initialize conversion_in_dynarr and
11164         conversion_out_dynarr.
11165
11166         * alloc.c (pdump): Use the real open() till sys_open() is functional.
11167
11168         * process-unix.c (unix_canonicalize_host_name): Muleize.
11169         (unix_open_network_stream): Muleize.
11170
11171         * buffer.h: Fix up prototypes for ralloc.c functions.
11172
11173 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
11174         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
11175         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
11176                 instead of gethostbyname()
11177         * process-unix.c: In unix_canonicalize_host_name() and
11178                 unix_open_network_stream(), add code to use getaddrinfo()
11179                 instead of gethostbyname().
11180
11181 2000-01-27  Daniel Pittman <daniel@danann.net>
11182
11183         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
11184         libs when built with flat Athena.
11185
11186 2000-01-27  Martin Buchholz  <martin@xemacs.org>
11187
11188         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
11189         Use coding standards for function prototypes.
11190
11191 2000-01-25  Martin Buchholz  <martin@xemacs.org>
11192
11193         * dialog-msw.c (push_lisp_string_as_unicode):
11194         * doc.c (unparesseuxify_doc_string):
11195         * dired.c (Fuser_name_completion_1):
11196         * dired.c (Fuser_name_all_completions):
11197         * dired.c (free_user_cache):
11198         * dired.c (user_name_completion):
11199         * console-x.c (get_display_arg_connection):
11200         * minibuf.c (clear_echo_area_internal):
11201         * minibuf.c (echo_area_append):
11202         * eldap.c (Fldap_open):
11203         * eldap.c (Fldap_search_internal):
11204         * frame-x.c (x_set_frame_text_value):
11205         * frame-x.c (x_set_frame_properties):
11206         * frame-x.c (x_create_widgets):
11207         * redisplay-tty.c (term_get_fkeys_1):
11208         * objects-x.c (x_parse_nearest_color):
11209         * objects-x.c (x_valid_color_name_p):
11210         * objects-x.c (x_initialize_font_instance):
11211         * objects-x.c (x_list_fonts):
11212         * objects-x.c (x_find_charset_font):
11213         * tooltalk.c (Fadd_tooltalk_message_arg):
11214         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
11215         * tooltalk.c (Fadd_tooltalk_pattern_arg):
11216         * process-unix.c (unix_create_process):
11217         * ntproc.c (sys_spawnve):
11218         * sound.c (Fplay_sound_file):
11219         * sound.c (Fplay_sound):
11220         * buffer.c (init_initial_directory):
11221         * buffer.c (init_buffer):
11222         * editfns.c (init_editfns):
11223         * editfns.c (Ftemp_directory):
11224         * editfns.c (Fuser_full_name):
11225         * editfns.c (uncache_home_directory):
11226         * editfns.c (get_home_directory):
11227         * editfns.c (Fuser_home_directory):
11228         * editfns.c (Fformat_time_string):
11229         * editfns.c (Fcurrent_time_string):
11230         * gui-x.c (button_item_to_widget_value):
11231         * database.c (Fopen_database):
11232         * event-Xt.c (x_to_emacs_keysym):
11233         * event-Xt.c (x_event_to_emacs_event):
11234         * event-Xt.c (describe_event_window):
11235         * event-msw.c (mswindows_wnd_proc):
11236         * glyphs-eimage.c (jpeg_instantiate):
11237         * glyphs-eimage.c (gif_instantiate):
11238         * glyphs-eimage.c (png_instantiate):
11239         * glyphs-eimage.c (tiff_instantiate):
11240         * glyphs-x.c (xbm_instantiate_1):
11241         * glyphs-x.c (x_xbm_instantiate):
11242         * glyphs-x.c (x_xface_instantiate):
11243         * glyphs-x.c (autodetect_instantiate):
11244         * glyphs-x.c (cursor_font_instantiate):
11245         * glyphs-x.c (x_widget_instantiate):
11246         * glyphs-x.c (x_widget_set_property):
11247         * glyphs-x.c (x_widget_property):
11248         * glyphs-x.c (BUILD_GLYPH_INST):
11249         * print.c (write_string_to_stdio_stream):
11250         * print.c (output_string):
11251         * print.c (Falternate_debugging_output):
11252         * print.c (Fexternal_debugging_output):
11253         * glyphs-msw.c (extract_xpm_color_names):
11254         * glyphs-msw.c (mswindows_xpm_instantiate):
11255         * glyphs-msw.c (bmp_instantiate):
11256         * glyphs-msw.c (resource_name_to_resource):
11257         * glyphs-msw.c (mswindows_resource_instantiate):
11258         * glyphs-msw.c (xbm_instantiate_1):
11259         * glyphs-msw.c (mswindows_xbm_instantiate):
11260         * glyphs-msw.c (mswindows_xface_instantiate):
11261         * glyphs-msw.c (mswindows_widget_instantiate):
11262         * glyphs-msw.c (add_tree_item):
11263         * glyphs-msw.c (add_tab_item):
11264         * glyphs-msw.c (mswindows_combo_box_instantiate):
11265         * glyphs-msw.c (mswindows_widget_property):
11266         * glyphs-msw.c (mswindows_combo_box_property):
11267         * glyphs-msw.c (mswindows_widget_set_property):
11268         * console.c (stuff_buffered_input):
11269         * objects-msw.c (mswindows_initialize_color_instance):
11270         * objects-msw.c (mswindows_valid_color_name_p):
11271         * objects-msw.c (mswindows_list_fonts):
11272         * objects-msw.c (mswindows_font_instance_truename):
11273         * bytecode.c (optimize_compiled_function):
11274         * select-x.c (symbol_to_x_atom):
11275         * select-x.c (x_atom_to_symbol):
11276         * select-x.c (hack_motif_clipboard_selection):
11277         * select-x.c (selection_data_to_lisp_data):
11278         * select-x.c (lisp_data_to_selection_data):
11279         * select-x.c (Fx_get_cutbuffer_internal):
11280         * select-x.c (Fx_store_cutbuffer_internal):
11281         * buffer.h (TO_EXTERNAL_FORMAT): New function.
11282         * buffer.h (TO_INTERNAL_FORMAT): New function.
11283         * emacs.c (make_arg_list_1):
11284         * emacs.c (make_argc_argv):
11285         * emacs.c (main_1):
11286         * emacs.c (Fdump_emacs):
11287         * emacs.c (split_string_by_emchar_1):
11288         * file-coding.h:
11289         * lisp.h:
11290         * lstream.h:
11291         * symsinit.h:
11292         * device-x.c (x_init_device):
11293         * device-x.c (Fx_valid_keysym_name_p):
11294         * device-x.c (Fx_get_font_path):
11295         * device-x.c (Fx_set_font_path):
11296         * glyphs.c (bitmap_to_lisp_data):
11297         * glyphs.c (pixmap_to_lisp_data):
11298         * alloc.c (make_ext_string): Use coding system arguments.  Update
11299         all callers.
11300         * alloc.c (build_string):
11301         * callproc.c (child_setup):
11302         * callproc.c (init_callproc):
11303         * fileio.c (lisp_strerror):
11304         * fileio.c (directory_file_name):
11305         * fileio.c (Fexpand_file_name):
11306         * fileio.c (Ffile_truename):
11307         * fileio.c (Fsysnetunam):
11308         * fileio.c (Fdo_auto_save):
11309         * sysdep.c (sys_readdir):
11310         * tests.c: New file.  Allow adding C tests.
11311         Replace GET_* macros with a more comprehensible and flexible
11312         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
11313         Modify all calls.
11314         Any coding system can be used to do format conversion.
11315         Eliminate enum external_data_format.
11316         Eliminate convert_to_external_format.
11317         Eliminate convert_to_internal_format.
11318         Make sure file-name, keyboard, terminal, and ctext are always
11319         defined as coding systems or aliases.  Make
11320         file-name-coding-system, terminal-coding-system, and
11321         keyboard-coding-system magical variables that are equivalent to
11322         defining the corresponding coding system aliases.
11323
11324         * file-coding.c (Fcoding_system_canonical_name_p): New function.
11325         * file-coding.c (Fcoding_system_alias_p): New function.
11326         * file-coding.c (Fcoding_system_aliasee): New function.
11327         * file-coding.c (append_suffix_to_symbol): New function.
11328         * file-coding.c (dangling_coding_system_alias_p): New function.
11329         * file-coding.c (Ffind_coding_system):
11330         * file-coding.c (Fcopy_coding_system):
11331         * file-coding.c (encode_coding_no_conversion):
11332         * file-coding.c (syms_of_file_coding):
11333         * file-coding.c (vars_of_file_coding):
11334         Rewrite coding system alias code.
11335         Allow nested aliases, like symbolic links.
11336         Allow redefinition of coding system aliases.
11337         Prevent existence of dangling coding system aliases.
11338
11339         * dired.c (Fuser_name_completion_1):
11340         * dired.c (Fuser_name_all_completions):
11341         A crash would happen if user did QUIT in the middle of building
11342         user_name_cache.  Remove redundant code in mainline and unwind_protect.
11343
11344         * lisp.h:
11345         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
11346
11347         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
11348         an unsigned char *.  Update all callers.
11349
11350 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11351
11352         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
11353
11354 2000-01-25  Martin Buchholz  <martin@xemacs.org>
11355
11356         * elhash.c (hentry_description): Use more portable definition.
11357         (resize_hash_table): Initialize new hentries using
11358         xnew_array_and_zero, thereby simplifying the code.
11359
11360         * mule-charset.c (make_charset): Make sure entire object is
11361         initialized, to avoid Purify warnings.
11362
11363         * alloc.c (resize_string): Fix unlikely crash with big strings.
11364
11365 2000-01-24  Martin Buchholz  <martin@xemacs.org>
11366
11367         * realpath.c (xrealpath):
11368         Don't call getwd().
11369
11370 2000-01-25  Martin Buchholz  <martin@xemacs.org>
11371
11372         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
11373
11374 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
11375
11376         * unexelfsgi.c (unexec): Change the way we decide which segment
11377         should be extended.
11378
11379         Assumption that .bss section should be outside the PT_LOADable
11380         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
11381         it's present) is inside the 'data' segment. This would fail the
11382         test which was used to find a segment to grow and cover new
11383         heap. Instead of this assumption, I created another one - on IRIX
11384         the segment to grow should start below .bss and it's address
11385         should extent above the end of .bss. Once this segment is
11386         identified, it's grown to accommodate the new heap and new
11387         zero-length .bss section is added at the end of .data2.
11388
11389 2000-01-25  Martin Buchholz  <martin@xemacs.org>
11390
11391         * eval.c (Feval): Wrong number of arguments should use original
11392         function, not the indirect_function version of it.
11393
11394 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
11395
11396         * glyphs-x.c (x_button_instantiate): Don't add image if
11397         it is not a pixmap.
11398         (x_locate_pixmap_file): Call Fexpand_file_name when file name
11399         is relative.
11400
11401 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
11402
11403         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
11404         declaration.
11405         (DEFVAR_INT_MAGIC): Ditto.
11406         (DEFVAR_BOOL_MAGIC): Ditto.
11407         * glyphs.h: Reindent backslash.
11408
11409 2000-01-24  Martin Buchholz  <martin@xemacs.org>
11410
11411         * glyphs-widget.c (layout_query_geometry):
11412         (layout_layout): Use correct types for gheight, gwidth.
11413
11414 2000-01-24  Martin Buchholz  <martin@xemacs.org>
11415
11416         * EmacsManager.c (QueryGeometry): Purified.
11417
11418 2000-01-23  Martin Buchholz  <martin@xemacs.org>
11419
11420         * alloc.c (make_float): Make sure entire object is initialized, to
11421         avoid Purify warnings.
11422         (pdump_register_sub): Remove useless assignment.
11423         (pdump): Use xmalloc, not malloc.
11424         (pdump_load): Use xmalloc, not malloc.
11425
11426 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11427
11428         * callproc.c:
11429         * dired-msw.c:
11430         * fileio.c:
11431         * process-nt.c:
11432         * redisplay-msw.c:
11433         * sysdep.c: Removed redundant #include <windows.h>
11434
11435 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11436
11437         * frame.c (delete_frame_internal): Do not delete device when its
11438         implementation so declares.
11439         (delete_frame_internal): Set device selected frame to nil when
11440         last frame goes away.
11441
11442         * device-msw.c (msprinter_device_system_metrics): Implemented.
11443         (mswindows_device_system_metrics): Added 'device-dpi property.
11444
11445         * device.c: (Fdevice_printer_p): Added.
11446         Added 'offset-workspace device metric.
11447
11448         * console.h (device_metrics): Declared DM_offset_workspace.
11449
11450 2000-01-23  Martin Buchholz  <martin@xemacs.org>
11451
11452         * fileio.c (Ffile_truename): Remove pointless and confusing
11453         initialization of elen.
11454
11455         * glyphs-widget.c: Compiler warning fixes.
11456
11457 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
11458
11459         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
11460         instead of a Lisp_Object as argument to make it consistent with
11461         the other LIVE_P macros.
11462         (CHECK_LIVE_PROCESS): New macro.
11463
11464         * process.c: Declare Qprocess_live_p.
11465         (Fprocess_live_p): New function.
11466         (create_process): Use PROCESS_LIVE_P.
11467         (read_process_output): Ditto.
11468         (set_process_filter): Ditto.
11469         (Fdelete_process): Ditto.
11470         (kill_buffer_processes): Ditto
11471         (process_send_signal): Use CHECK_LIVE_PROCESS.
11472         (Fprocess_input_coding_system): Check whether process is still
11473         alive (fix PR#1061).
11474         (Fprocess_output_coding_system): Ditto.
11475         (Fprocess_coding_system): Ditto.
11476         (Fset_process_input_coding_system): Ditto.
11477         (Fset_process_output_coding_system): Ditto.
11478
11479 2000-01-23  Andy Piper  <andy@xemacs.org>
11480
11481         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
11482         layout and widget.
11483
11484         * glyphs.c (mark_image_instance): take into account changed
11485         image_instance format.
11486         (image_instance_equal): ditto.
11487         (image_instance_hash): ditto.
11488
11489         * glyphs-widget.c (widget_instantiate): Incorporate layout
11490         instantiation here. Delay layout of the layout until later.
11491         (layout_instantiate): deleted.
11492         (layout_query_geometry): new function. get the geometry of a
11493         layout.
11494         (layout_layout): layout a layout dynamically.
11495         (image_instantiator_widget): New function - splitting up
11496         image_instantiator_format_create_glyphs_widget for netwinder
11497         compilation.
11498         (image_instantiator_buttons):
11499         (image_instantiator_edit_fields):
11500         (image_instantiator_combo_box):
11501         (image_instantiator_scrollbar):
11502         (image_instantiator_progress_guage):
11503         (image_instantiator_tree_view):
11504         (image_instantiator_tab_control):
11505         (image_instantiator_labels):
11506         (image_instantiator_layout): ditto.
11507         (image_instantiator_format_create_glyphs_widget): Call preceding
11508         functions.
11509
11510 2000-01-22  Martin Buchholz  <martin@xemacs.org>
11511
11512         * process.c (Fset_process_coding_system):
11513         * device-x.c (Fx_keysym_hash_table):
11514         Docstring fixes.
11515
11516         * lstream.c (Lstream_write): Return documented value, not 0.
11517
11518         * fileio.c (directory_file_name):
11519         (Fsubstitute_in_file_name):
11520         (Fsubstitute_insert_file_contents_internal):
11521         (Fwrite_region_internal):
11522         * emacs.c:
11523         * sysdep.c:
11524         * getloadavg.c:
11525         * systty.h:
11526         Remove vestigial APOLLO-conditional code.
11527
11528 2000-01-21  Martin Buchholz  <martin@xemacs.org>
11529
11530         * getpagesize.h: Add guard macros.
11531         * libsst.h: Add guard macros.
11532         * libst.h: Add guard macros.
11533         * line-number.h: Add guard macros.
11534         * ndir.h: Add guard macros.
11535         * sysfloat.h: Add guard macros.
11536         * sysfile.h: Add guard macros.
11537         * sysproc.h: Add guard macros.
11538         * syswait.h: Add guard macros.
11539         * xintrinsic.h: Add guard macros.
11540         * xintrinsicp.h: Add guard macros.
11541         * xmmanager.h: Add guard macros.
11542         * xmmanagerp.h: Add guard macros.
11543         * xmprimitive.h: Add guard macros.
11544         * xmu.h: Add guard macros.
11545         * gpmevent.h: Add copyright statement. Add guard macros.
11546         * miscplay.h: Add guard macros.
11547         * *.h: Use consistent C-standards-approved guard macro names.
11548
11549         * opaque.c (make_opaque): Switch parameter order.
11550         * opaque.h (make_opaque): Switch parameter order.
11551         Update all callers.
11552         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
11553
11554         * config.h.in (type_checking_assert): Added.
11555         (bufpos_checking_assert): Added.
11556
11557 2000-01-21  Martin Buchholz  <martin@xemacs.org>
11558
11559         * alloc.c: Harmless pdump changes.
11560         - Use countof().
11561         - spell alignment correctly.
11562         * sysdep.c: Use countof()
11563
11564 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11565
11566         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
11567         initially_selected_for_input() console method, default to 0.
11568         (semi_canonicalize_console_connection): Try to delegate to
11569         canonicalize_console_connection if no such console method.
11570         (canonicalize_console_connection): Vice versa.
11571         (print_console): Do not print nil connection.
11572
11573         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
11574         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
11575         (XDEVIMPF_FRAMELESS_OK): Added.
11576         (CONSOLE_INHERITS_METHOD): Added.
11577
11578         * console-msw.c (mswindows_canonicalize_console_connection):
11579         Added.
11580         (mswindows_canonicalize_device_connection): Added.
11581
11582         * console-msw.h (struct msprinter_device): Added this struct and
11583         accessor macros.
11584         (mswindows_device): Made fontlist a lisp object.
11585
11586         * device.c (semi_canonicalize_device_connection):  Try to delegate
11587         to canonicalize_device_connection if no such console method.
11588         (canonicalize_device_connection): Vice versa.
11589         (print_device): Do not print nil connection.
11590
11591         * device-msw.c (mswindows_init_device): Call InitCommonControls
11592         when have widgets.
11593         (mswindows_delete_device): Removed fontlist deallocation.
11594         (mswindows_mark_device): Added.
11595
11596         * events.c (event_equal): Added abort() at unreached code.
11597         (event_hash): Ditto.
11598
11599         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
11600         fallback tags of Windows devices.
11601
11602         * general.c (syms_of_general): Initialized Qmsprinter.
11603
11604         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
11605         of fallback tags of Windows devices.
11606
11607         * lisp.h: Declared Qmsprinter.
11608
11609         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
11610         of strings.
11611         (mswindows_list_fonts): Ditto.
11612         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
11613         that it can be used by both mswindows and msprinter devices.
11614         (initialize_font_instance): Added.
11615         (mswindows_initialize_font_instance): Use it.
11616         (msprinter_initialize_font_instance): Added.
11617
11618         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
11619         and implementation flags check.
11620         (redisplay_without_hooks): Changed the call to the above.
11621         (Fredraw_device): Ditto.
11622         (Fredisplay_device): Ditto.
11623
11624         * redisplay-msw.c (get_frame_dc): Implemented.
11625         (get_frame_compdc): Implemented.
11626         (many functions): Use the two functions above to get device
11627         contexts, ether for a window or a printer.
11628
11629 2000-01-21  Olivier Galibert  <galibert@pobox.com>
11630
11631         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
11632         initialization here.
11633         (init_symbols_once_early): Call it.
11634         * emacs.c (main_1): Call it.
11635         * symsinit.h: Declare it.
11636
11637 2000-01-19  Olivier Galibert  <galibert@pobox.com>
11638
11639         * alloc.c: Use a lrecord_header * in the backtrace instead of a
11640         Lisp_Object.
11641         (pdump_backtrace): Ditto.
11642         (pdump_register_object): Ditto.  Cleanup use of the pointers.
11643         (pdump_get_entry): Abort if trying to register a null pointer.
11644         (pdump_dump_data): Cleanup types when relocating.
11645         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
11646         (pdump_dump_rtables): Remove bad casts.
11647         (pdump_load): Cleanup relocation w.r.t union type.  Use a
11648         Lisp_Object instead of a EMACS_INT for the hashtable
11649         reorganization.
11650
11651 2000-01-20  Martin Buchholz  <martin@xemacs.org>
11652
11653         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
11654
11655         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
11656
11657         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
11658
11659         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
11660
11661 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11662
11663         * faces.h (FACE_STRIKETHRU_P): Added.
11664
11665         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
11666         of font variants.
11667
11668         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
11669         (mswindows_set_dc_font): New function, aware of font variants,
11670         separated from mswindows_update_dc.
11671
11672         * objects-msw.h (struct mswindows_font_instance_data): Added
11673         definition.
11674
11675         * objects-msw.c (mswindows_finalize_font_instance): Delete all
11676         cached fonts and the data structure.
11677         (mswindows_initialize_font_instance): Added creation of font data
11678         structure.
11679         (mswindows_print_font_instance): Print at least something.
11680         (mswindows_create_font_variant): Implemented.
11681         (mswindows_get_hfont): Implemented.
11682
11683 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
11684
11685         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
11686         prototyping problem with msvc.
11687
11688         * emacs.c (main_1): added syms_of_gui_mswindows() call
11689
11690         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
11691         syms_of_gui_mswindows() function
11692
11693         * symsinit.h: added the prototype for syms_of_gui_mswindows()
11694
11695 2000-01-18  Martin Buchholz <martin@xemacs.org>
11696
11697         * XEmacs 21.2.27 is released.
11698
11699 2000-01-18  Martin Buchholz  <martin@xemacs.org>
11700
11701         * glyphs-eimage.c (struct tiff_error_struct):
11702         (tiff_error_func):
11703         (tiff_warning_func):
11704         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
11705
11706         * unexmips.c:
11707         * unexhp9k3.c:
11708         * unexfreebsd.c:
11709         * unexec.c: Remove vestigial Lucid C code.
11710         * unexalpha.c:
11711         * unexaix.c:
11712         * termcap.c:
11713         * libsst.c: Ansify.
11714         Remove declarations of errno and strerror().
11715
11716         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
11717
11718         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
11719
11720 2000-01-16  Martin Buchholz  <martin@xemacs.org>
11721
11722         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
11723         Optimize.
11724
11725 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11726
11727         * md5.c:
11728         * file-coding.c:
11729         * file-coding.h:
11730         Change enum eol_type to eol_type_t.
11731
11732 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11733
11734         * gui.c (get_gui_callback): Check cons before accessing car.
11735
11736 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11737
11738         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
11739         (XSETSPECIFIER_TYPE): Ditto.
11740
11741 2000-01-17  Didier Verna  <didier@xemacs.org>
11742
11743         * redisplay.c (generate_fstring_runes): compute string size in
11744         characters, not bytes.
11745
11746 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
11747
11748         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
11749
11750 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
11751
11752         * print.c (print_error_message): Call print_prepare().
11753
11754 2000-01-14  Martin Buchholz  <martin@xemacs.org>
11755
11756         * .dbxrc: Renamed from dbxrc.
11757
11758         * events.c (event_to_character):
11759         Use `assert (foo)' instead of `if (!foo) abort()'
11760
11761         * .gdbinit (xtype): Add documentation.
11762         * .gdbinit (check-temacs): New function.
11763         * .gdbinit (check-xemacs): New function.
11764         * dbxrc (check-xemacs): New function.
11765         * dbxrc (check-xemacs): New function.
11766
11767 2000-01-14  Andy Piper  <andy@xemacs.org>
11768
11769         * glyphs-widget.c (widget_query_geometry): Make sure that we
11770         calculate default dimensions correctly.
11771
11772 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11773
11774         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
11775
11776         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
11777         pdump_wire'd variable.
11778
11779         * emacs.c: (main_1): Conditionalized calls to
11780         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
11781
11782 2000-01-13  Martin Buchholz  <martin@xemacs.org>
11783
11784         * window.c (Fset_window_configuration):
11785         * sysdep.c (_start):
11786         * input-method-motif.c (res):
11787         * event-Xt.c (Xt_process_to_emacs_event):
11788         Simple compiler warning fixes.
11789
11790         * bytecode.c (funcall_compiled_function): Use the original
11791         function symbol on the backtrace list in preference to the
11792         compiled_function object in error messages.
11793
11794 2000-01-13  Andy Piper  <andy@xemacs.org>
11795
11796         * glyphs-x.c (update_widget_face): Make sure we update the widget
11797         background as well as foreground.
11798
11799 2000-01-13  Andy Piper  <andy@xemacs.org>
11800
11801         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
11802         fields to subwindow.
11803         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
11804         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
11805         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
11806         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
11807
11808         * glyphs-widget.c (check_valid_tab_orientation): new function.
11809         (initialize_widget_image_instance): zero orientation and
11810         justification.
11811         (widget_instantiate): pick up orientation.
11812         (tab_control_query_geometry): return appropriate values for
11813         vertical tabs.
11814
11815         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
11816         appropriate creation flags for left, right and bottom tabs.
11817
11818         * s/cygwin32.h: add tab definitions.
11819
11820 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11821
11822         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
11823         frame upon hiding a subwindow.
11824         (mswindows_button_instantiate): Changed the push button style to
11825         BS_PUSHBUTTON.
11826         (mswindows_button_instantiate): Removed button BS_NOTIFY
11827         style.
11828         (mswindows_button_instantiate): Removed redundant check for
11829         a disabled gui item.
11830         (mswindows_button_instantiate): Made use of WS_TABSTOP
11831         consistent: "operable" controls (edit, button, tree, scroll) have
11832         this style, "display-only" ones (static, progress gauge) do
11833         not. This style is currently ignored by XEmacs though. Also,
11834         removed the WS_EX_CONTROLPARENT style - it is not for children,
11835         it is for their parents!
11836         (mswindows_edit_field_instantiate): Ditto.
11837         (mswindows_progress_gauge_instantiate): Ditto.
11838         (mswindows_tree_view_instantiate): Ditto.
11839         (mswindows_tab_control_instantiate): Ditto.
11840         (mswindows_scrollbar_instantiate): Ditto.
11841         (mswindows_combo_box_instantiate): Ditto.
11842         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
11843         style to the "clip" window.
11844         (mswindows_button_instantiate): Removed compilation warning by
11845         equally typing terms of the ?: operator.
11846
11847 2000-01-12  Didier Verna  <didier@xemacs.org>
11848
11849         * redisplay.c (generate_fstring_runes): new parameter holding the
11850         last modeline-format extent.
11851         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
11852         extent, fill the glyph block with it.
11853         (generate_fstring_runes): handle these parameters.
11854         (generate_formatted_string_db): ditto.
11855
11856         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
11857         glyphs'extents in the modeline.
11858
11859 1999-01-11  Mike Woolley  <mike@bulsara.com>
11860
11861         * ntheap.c: Reduced the reserved heap space from 1Gb down to
11862         256Mb, as a workaround for the non-starting problem many people
11863         have experienced.
11864
11865 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11866
11867         * console-tty.c (Fset_console_tty_output_coding_system):
11868         Force redrawing tty frame.
11869
11870 2000-01-10  Didier Verna  <didier@xemacs.org>
11871
11872         * redisplay.c (generate_fstring_runes): fix size computation bug.
11873
11874 2000-01-09  William M. Perry <wmperry@aventail.com>
11875
11876         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
11877
11878 2000-01-09  Andy Piper  <andy@xemacs.org>
11879
11880         * glyphs-msw.c: index -> i to avoid shadows.
11881         (xbm_create_bitmap_from_data): make static.
11882         (check_valid_string_or_int): deleted.
11883         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
11884
11885         * glyphs-x.c (x_update_subwindow): remove unused args.
11886
11887         * glyphs.c (glyph_image_instance): return the thing. Don't set the
11888         back pointer - this is done in allocate_image_instance.
11889         (query_string_font): return Qnil to make the compiler happy.
11890         (unmap_subwindow): set to ~0 to make the compiler happy.
11891         (glyph_query_geometry): comment out until used.
11892         (glyph_layout): ditto.
11893
11894 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
11895
11896         * insdel.c (signal_after_change): Remove extraneous unbind_to().