baec429347d41185a17cd36ccedebc4ad933e766
[chise/xemacs-chise.git-] / src / ChangeLog
1 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * chartab.c (map_char_id_table): Deleted.
4         (Fmap_char_attribute): Use `map_char_table' instead of
5         `map_char_id_table'.
6
7 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
8
9         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
10         UTF-2000.
11         (update_syntax_table): Deleted in XEmacs UTF-2000.
12
13         * syntax.c (find_defun_start): Use `syntax_table' instead of
14         `mirror_syntax_table' in XEmacs UTF-2000.
15         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
16         UTF-2000.
17         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
18         XEmacs UTF-2000.
19         (Fmatching_paren): Likewise.
20         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
21         in XEmacs UTF-2000.
22         (find_start_of_comment): Likewise.
23         (find_end_of_comment): Likewise.
24         (Fforward_comment): Likewise.
25         (scan_lists): Likewise.
26         (char_quoted): Likewise.
27         (Fbackward_prefix_chars): Likewise.
28         (scan_sexps_forward): Likewise.
29         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
30         (update_syntax_table): Likewise.
31
32         * search.c (skip_chars): Use `syntax_table' instead of
33         `mirror_syntax_table' in XEmacs UTF-2000.
34         (wordify): Likewise.
35         (Freplace_match): Likewise.
36
37         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
38         `mirror_syntax_table' in XEmacs UTF-2000.
39         (WORDCHAR_P_UNSAFE): Likewise.
40         (re_match_2_internal): Likewise.
41
42         * font-lock.c (find_context): Use `buf->syntax_table' instead of
43         `buf->mirror_syntax_table' in XEmacs UTF-2000.
44
45         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
46         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
47
48         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
49         XEmacs UTF-2000.
50
51         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
52         UTF-2000.
53         (print_char_table): Print `default_value' in XEmacs UTF-2000.
54         (char_table_description): Delete `mirror_table' in XEmacs
55         UTF-2000.
56         (fill_char_table): Don't call `update_syntax_table' in XEmacs
57         UTF-2000.
58         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
59         (Fcopy_char_table): Likewise.
60         (put_char_table): Don't call `update_syntax_table' in XEmacs
61         UTF-2000.
62
63         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
64         `buf->mirror_syntax_table' in XEmacs UTF-2000.
65         (casify_region_internal): Likewise.
66
67         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
68
69         * buffer.c (common_init_complex_vars_of_buffer): Don't use
70         `mirror_syntax_table' in XEmacs UTF-2000.
71
72         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
73         `buf->mirror_syntax_table' in XEmacs UTF-2000.
74         (Fexpand_abbrev): Likewise.
75
76 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
77
78         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
79
80 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
81
82         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
83         (map_over_uint16_byte_table): Likewise.
84         (map_over_byte_table): Likewise.
85         (get_char_id_table): Refer `cit->default_value'.
86         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
87         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
88         of character-id ranges.
89         (mark_char_table): Mark `ct->default_value'.
90         (char_table_description): Add `default_value'.
91         (fill_char_table): Use `default_value'.
92         (decode_char_table_range): Decode `nil' as
93         `CHARTAB_RANGE_DEFAULT'.
94         (get_char_id_table): Refer `cit->default_value'.
95         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
96         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
97         temporary hack; check value of char-table is bound or not.
98         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
99
100         * chartab.h (struct Lisp_Char_Table): Add new member
101         `default_value' in XEmacs UTF-2000.
102         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
103         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
104         UTF-2000.
105
106 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
107
108         * chartab.h (Lisp_Char_ID_Table): Deleted.
109
110         * chartab.c (char_table_description): Fix typo.
111         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
112         `Lisp_Char_ID_Table'.
113
114 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
115
116         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
117         `CHAR_ID_TABLE_P'.
118
119         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
120         `CHAR_ID_TABLE_P'.
121
122         * chartab.h (XCHAR_ID_TABLE): Deleted.
123         (XSETCHAR_ID_TABLE): Deleted.
124         (CHAR_ID_TABLE_P): Deleted.
125
126         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
127         `CHAR_ID_TABLE_P'.
128         (Fget_composite_char): Likewise.
129         (put_char_table): Likewise.
130         (add_char_attribute_alist_mapper): Fixed.
131         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
132         `CHAR_ID_TABLE_P'.
133         (Fget_char_attribute): Likewise.
134         (Fget_char_attribute): Likewise.
135         (Fmap_char_attribute): Likewise.
136
137         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
138         `CHAR_ID_TABLE_P'.
139         (encode_char_1): Likewise.
140
141 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
142
143         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
144         `XCHAR_ID_TABLE'.
145
146         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
147         instead of `XCHAR_ID_TABLE'.
148         (remove_char_ccs): Likewise.
149
150         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
151         `XCHAR_ID_TABLE'.
152         (Fget_composite_char): Likewise.
153         (Fchar_variants): Likewise.
154         (put_char_table): Likewise.
155         (add_char_attribute_alist_mapper): Likewise.
156         (Fchar_attribute_alist): Likewise.
157         (Fget_char_attribute): Likewise.
158         (Fput_char_attribute): Likewise.
159         (Fmap_char_attribute): Likewise.
160         (Fmap_char_attribute): Likewise.
161
162         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
163         `XCHAR_ID_TABLE'.
164         (encode_char_1): Likewise.
165
166 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
167
168         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
169         `Lisp_Char_ID_Table'.
170         (mark_char_id_table): Deleted.
171         (print_char_id_table): Likewise.
172         (char_id_table_equal): Likewise.
173         (char_id_table_hash): Likewise.
174         (char_id_table_description): Likewise.
175         (char_id_table): Likewise.
176         (make_char_id_table): Use `Fmake_char_table' and
177         `fill_char_table'.
178         (get_char_id_table): Use `Lisp_Char_Table' instead of
179         `Lisp_Char_ID_Table'.
180         (put_char_id_table): Likewise.
181         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
182         `XCHAR_ID_TABLE'.
183         (Fremove_char_attribute): Likewise.
184         (syms_of_chartab): Don't define type `char-id-table'.
185
186         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
187         (char_id_table): Likewise.
188         (GC_CHAR_ID_TABLE_P): Likewise.
189         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
190         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
191         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
192         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
193         (get_char_id_table): Use `Lisp_Char_Table' instead of
194         `Lisp_Char_ID_Table'.
195         (put_char_id_table_0): Likewise.
196         (put_char_id_table): Likewise.
197
198 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
199
200         * chartab.h: Lisp_Byte_Table related codes are moved from
201         chartab.h.
202
203         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
204
205 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
206
207         * chartab.h: Don't include "chartab.h".
208         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
209         (Lisp_Char_ID_Table): Likewise.
210         (char_id_table): Likewise.
211         (XCHAR_ID_TABLE): Likewise.
212         (XSETCHAR_ID_TABLE): Likewise.
213         (CHAR_ID_TABLE_P): Likewise.
214         (GC_CHAR_ID_TABLE_P): Likewise.
215         (get_char_id_table): Likewise.
216
217         * char-ucs.h: Include "chartab.h".
218         (struct Lisp_Char_ID_Table): Moved to chartab.h.
219         (Lisp_Char_ID_Table): Likewise.
220         (char_id_table): Likewise.
221         (XCHAR_ID_TABLE): Likewise.
222         (XSETCHAR_ID_TABLE): Likewise.
223         (CHAR_ID_TABLE_P): Likewise.
224         (GC_CHAR_ID_TABLE_P): Likewise.
225         (get_char_id_table): Likewise.
226
227 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
228
229         * chartab.c (copy_uint8_byte_table): New function.
230         (copy_uint16_byte_table): New function.
231         (copy_byte_table): New function.
232         (map_over_uint8_byte_table): Modify to avoid huge numbers of
233         characters to call.
234         (map_over_uint16_byte_table): Likewise.
235         (map_over_byte_table): Likewise.
236         (get_byte_table): Move prototype to chartab.h.
237         (put_byte_table): Likewise.
238         (put_char_id_table_0): Moved to chartab.h.
239         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
240         (char_table_entry_equal): Likewise.
241         (char_table_entry_hash): Likewise.
242         (char_table_entry_description): Likewise.
243         (char_table_entry): Likewise.
244         (make_char_table_entry): Likewise.
245         (copy_char_table_entry): Likewise.
246         (get_non_ascii_char_table_value): Likewise.
247         (map_over_charset_ascii): Likewise.
248         (map_over_charset_control_1): Likewise.
249         (map_over_charset_row): Likewise.
250         (map_over_other_charset): Likewise.
251         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
252         (print_char_table): Likewise.
253         (char_table_equal): Likewise.
254         (char_table_hash): Likewise.
255         (char_table_description): Likewise.
256         (fill_char_table): Likewise.
257         (Fcopy_char_table): Likewise.
258         (get_char_table): Likewise.
259         (Fget_range_char_table): Likewise.
260         (put_char_table): Likewise.
261         (map_char_table): Likewise.
262         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
263         UTF-2000.
264
265 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
266
267         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
268         `Vauto_fill_chars' in XEmacs UTF-2000.
269
270         * chartab.h (get_byte_table): New prototype [moved from
271         chartab.c].
272         (put_byte_table): Likewise [moved from chartab.c].
273         (put_char_id_table_0): New inline function [moved from chartab.c].
274         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
275         (Lisp_Char_Table_Entry): Likewise.
276         (char_table_entry): Likewise.
277         (XCHAR_TABLE_ENTRY): Likewise.
278         (XSETCHAR_TABLE_ENTRY): Likewise.
279         (CHAR_TABLE_ENTRYP): Likewise.
280         (CHECK_CHAR_TABLE_ENTRY): Likewise.
281         (NUM_ASCII_CHARS): Likewise.
282         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
283         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
284
285 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
286
287         * chartab.c (get_char_id_table): Change interface.
288         (put_char_id_table_0): New function.
289         (put_char_id_table): Change interface; new implementation.
290         (Fget_composite_char): Modify for interface change of
291         `get_char_id_table'.
292         (Fchar_variants): Likewise.
293         (add_char_attribute_alist_mapper): Likewise.
294         (Fchar_attribute_alist): Likewise.
295         (Fget_char_attribute): Likewise.
296         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
297         as same as character as the first argument like `put-char-table';
298         modify for interface change of `put_char_id_table'.
299         (Fremove_char_attribute): Modify for interface change of
300         `put_char_id_table'.
301
302 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
303
304         * text-coding.c: Sync up with XEmacs 21.2.41.
305         (COMPOSE_ADD_CHAR): Modify for interface change of
306         `get_char_id_table'.
307
308         * mule-charset.c (put_char_ccs_code_point): Modify for interface
309         change of `put_char_id_table'.
310         (remove_char_ccs): Likewise.
311
312         * chartab.h (put_char_id_table): Change interface.
313
314         * char-ucs.h (get_char_id_table): Change interface.
315         (charset_code_point): Modify for interface change of
316         `get_char_id_table'.
317         (encode_char_1): Likewise.
318
319 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
320
321         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
322         argument `ccs'.
323         (map_over_uint16_byte_table): Likewise.
324         (map_over_byte_table): Likewise.
325         (map_char_id_table): Add new argument `range' like
326         `map_char_table'.
327         (Fmap_char_attribute): Add new argument `range' like
328         `Fmap_char_table'.
329
330 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
331
332         * chartab.c (map_over_uint8_byte_table): Change interface of
333         mapping function to use struct chartab_range instead of Emchar.
334         (map_over_uint16_byte_table): Likewise.
335         (map_over_byte_table): Likewise.
336         (map_char_id_table): Likewise.
337         (struct slow_map_char_id_table_arg): Deleted.
338         (slow_map_char_id_table_fun): Deleted.
339         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
340         function `slow_map_char_table_fun' instead of struct
341         `slow_map_char_id_table_arg' and function
342         `slow_map_char_id_table_fun'.
343
344 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
345
346         * mule-charset.c: Move char-it-table related codes to chartab.c.
347         (Vutf_2000_version): Moved to chartab.c.
348         (Fdefine_char): Likewise.
349         (Ffind_char): Likewise.
350         (syms_of_mule_charset): Move types `uint8-byte-table',
351         `uint16-byte-table', `byte-table' and `char-id-table' to
352         chartab.c; move functions `char_attribute_list,
353         `find_char_attribute_table, `char_attribute_alist,
354         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
355         `map_char_attribute, `define_char, `find_char, `char_variants and
356         `get_composite_char to chartab.c; move symbols `=>ucs',
357         `->decomposition', `compat', `isolated', `initial', `medial',
358         `final', `vertical', `noBreak', `fraction', `super', `sub',
359         `circle', `square', `wide', `narrow', `small' and `font' to
360         chartab.c.
361         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
362         setting codes for `Vcharacter_composition_table' and
363         `Vcharacter_variant_table' to chartab.c.
364         (complex_vars_of_mule_charset): Move setting code for
365         `Vchar_attribute_hash_table' to chartab.c.
366
367         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
368         (make_char_id_table): New prototype.
369         (put_char_id_table): Likewise.
370         (Fget_char_attribute): Likewise.
371
372         * chartab.c: Move char-id-table related code from mule-charset.c.
373         (Vutf_2000_version): Moved from mule-charset.c.
374
375         * char-ucs.h (Qucs): New external variable.
376         (put_char_ccs_code_point): New prototype.
377         (remove_char_ccs): Likewise.
378
379 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
380
381         * mule-charset.c (Vcharset_ucs_jis): New variable.
382         (Qucs_jis): Likewise.
383         (syms_of_mule_charset): Add new symbol `ucs-jis'.
384         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
385
386         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
387
388 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
389
390         * mule-charset.c (map_over_uint8_byte_table): New function.
391         (map_over_uint16_byte_table): Likewise.
392         (map_over_byte_table): Likewise.
393         (map_char_id_table): Likewise.
394         (slow_map_char_id_table_fun): Likewise.
395         (Fmap_char_attribute): Likewise.
396         (syms_of_mule_charset): Add new function `map-char-attribute'.
397
398 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
399
400         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
401         (syms_of_mule_charset): Add new function `find-char'.
402
403 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
404
405         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
406         XEmacs UTF-2000.
407         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
408         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
409         XEmacs UTF-2000.
410         (complex_vars_of_mule_charset): Add new coded-charset
411         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
412         `ideograph-gt-pj-*'.
413
414         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
415
416 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
417
418         * mule-charset.c (encode_builtin_char_1): Purge codes about
419         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
420         {MIN|MAX}_CHAR_HEBREW.
421         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
422         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
423
424         * char-ucs.h (MIN_CHAR_GREEK): Purged.
425         (MAX_CHAR_GREEK): Purged.
426         (MIN_CHAR_CYRILLIC): Purged.
427         (MAX_CHAR_CYRILLIC): Purged.
428         (MIN_CHAR_HEBREW): Commented out.
429         (MAX_CHAR_HEBREW): Likewise.
430
431 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
432
433         * mule-charset.c (Qto_ucs): New variable.
434         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
435         (Fdefine_char): Likewise.
436         (syms_of_mule_charset): Add new symbol `=>ucs'.
437
438 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
439
440         * mule-charset.c (Fdecode_char): Fixed.
441
442 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
443
444         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
445         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
446         "tcvn5712-1".
447
448 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
449
450         * mule-charset.c (Vcharset_ucs_big5): New variable.
451         (Qucs_big5): Likewise.
452         (syms_of_mule_charset): Add new symbol `ucs-big5'.
453         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
454
455         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
456
457 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
458
459         * mule-charset.c (decode_builtin_char): Check Big5 code range
460         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
461
462 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
463
464         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
465         (Qchinese_gb12345): Likewise.
466         (Fdecode_builtin_char): Fixed.
467         (syms_of_mule_charset): Add `chinese-gb12345'.
468         (complex_vars_of_mule_charset): Add coded-charset
469         `chinese-gb12345'.
470
471         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
472         (LEADING_BYTE_CHINESE_GB12345): New macro.
473
474 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
475
476         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
477         and `latin-viscii-upper' for `latin-viscii'.
478
479 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
480
481         * mule-charset.c (Fdecode_builtin_char): Comment out
482         regularization code for ISO-IR GR representation.
483
484 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
485
486         * mule-charset.c (decode_builtin_char): New function; renamed from
487         `make_builtin_char'; return -1 instead of signal.
488         (Fdecode_builtin_char): Use `decode_builtin_char'.
489
490         * char-ucs.h (decode_builtin_char): New prototype; renamed from
491         `make_builtin_char'.
492         (DECODE_CHAR): Use `decode_builtin_char' instead of
493         `make_builtin_char'; use mapping table of `chinese-big5' for
494         `chinese-big5-{1,2}'.
495
496 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
497
498         * text-coding.c (char_encode_big5): New function.
499         (char_finish_big5): Likewise.
500         (reset_encoding_stream): Use `char_encode_big5' and
501         `char_finish_big5' for CODESYS_BIG5.
502         (mule_encode): Don't use `encode_coding_big5'.
503         (encode_coding_big5): Deleted.
504
505 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
506
507         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
508         0x81- in XEmacs UTF-2000.
509         (detect_coding_big5): Likewise.
510
511 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
512
513         * mule-charset.c (Fdefine_char): Don't use a CCS property to
514         generate character-id if the CCS property does not have
515         corresponding predefined character.
516         (make_builtin_char): Return -1 if corresponding predefined
517         character is not found.
518         (Fdecode_char): Return nil if corresponding character is not
519         found.
520         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
521         don't map to builtin ucs space.
522
523 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
524
525         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
526         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
527
528 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
529
530         * mule-charset.c (Vcharset_ideograph_gt): New variable.
531         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
532         (Qideograph_gt): Likewise.
533         (Qideograph_gt_pj_{1..11}): Likewise.
534         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
535         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
536         `ideograph-gt-pj-11'.
537         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
538         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
539         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
540
541         * char-ucs.h (LEADING_BYTE_GT): New macro.
542         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
543         (MIN_CHAR_GT): Likewise.
544         (MAX_CHAR_GT): Likewise.
545
546 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
547
548         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
549         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
550
551         * doprnt.c (unsigned_int_converters): Add `c'.
552         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
553
554         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
555         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
556         `MIN_CHAR_MOJIKYO'.
557         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
558         (MAX_CHAR_MOJIKYO_0): New macro.
559         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
560
561 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
562
563         * mule-charset.c (Fdefine_char): Delete cemented out code.
564         (encode_builtin_char_1): Modify for new allocation of builtin
565         Mojikyo characters.
566
567         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
568
569 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
570
571         * mule-charset.c (Vcharset_ucs_cns): New variable.
572         (Qucs_cns): New variable.
573         (syms_of_mule_charset): Add new symbol `ucs-cns'.
574         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
575
576 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
577
578         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
579
580 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
581
582         * search.c (search_buffer): Make `charset_base_code' as
583         character-id >> 6 to eliminate the corresponding last byte in
584         UTF-8 representation [I'm not sure it is right thing].
585         (boyer_moore): Likewise.
586
587 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
588
589         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
590         representation in MULE.
591
592 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
593
594         * text-coding.c (Fmake_coding_system): Use
595         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
596         `EXTERNAL_PROPERTY_LIST_LOOP'.
597
598 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
599
600         * text-coding.c (decode_output_utf8_partial_char): New function.
601         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
602
603 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
604
605         * text-coding.c (decode_coding_utf8): Output original byte
606         sequence if it is broken; change order of conditions.
607
608         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
609         of conditions.
610
611         * mb-multibyte.h (BYTE_ASCII_P):
612         Use bit ops for char-signedness safety.
613         (BYTE_C0_P): Use bit ops for char-signedness safety.
614         (BYTE_C1_P): Use bit ops for char-signedness safety.
615
616         * character.h: (XCHAR_OR_CHAR_INT):
617         Always use inline function.
618         Remove redundant type checking assert() - XINT will abort quite
619         nicely.
620
621 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
622
623         * text-coding.c: (Fencode_shift_jis_char):
624         (Fencode_big5_char):
625         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
626         Replace 0 with '\0' when working with bytes.
627         Replace initial "(" with "\(" in docstrings.
628
629         (Fmake_coding_system):
630         When type is ccl and value is vector, register it with a proper
631         symbol.  And checks whether the given ccl program is valid.
632         (mule_decode): When calling ccl_driver, if src indicates
633         NULL pointer, set an empty string instead.
634         (mule_encode): Likewise.
635
636         (detect_eol_type):
637         (detect_coding_sjis):
638         (decode_coding_sjis):
639         (detect_coding_big5):
640         (decode_coding_big5):
641         (detect_coding_ucs4):
642         (decode_coding_ucs4):
643         (detect_coding_utf8):
644         (decode_coding_utf8):
645         (detect_coding_iso2022):
646         (decode_coding_iso2022):
647         (decode_coding_no_conversion):
648         (mule_decode):
649         Make all detecting and decoding functions take an Extbyte * arg.
650         (text_encode_generic):
651         (encode_coding_big5):
652         (encode_coding_no_conversion):
653         (mule_encode):
654         Make all encoding functions take a Bufbyte * arg.
655         Use size_t instead of unsigned int for memory sizes.
656         Only cast to unsigned char whenever dereferencing Extbyte *.
657
658         (struct lrecord_description fcd_description_1): Use countof.
659         (complex_vars_of_file_coding):
660         Use countof instead of sizeof.
661         Use CHECK_NATNUM instead of CHECK_INT.
662
663 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
664
665         * mule-charset.c (Fget_char_attribute): Add new optional argument
666         `default-value'.
667         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
668         (remove_char_ccs): Likewise.
669
670 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
671
672         * text-coding.c (char_encode_shift_jis): New implementation in
673         UTF-2000.
674         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
675         ...)'.
676
677         * mule-charset.c (Vcharset_chinese_big5): New variable in
678         UTF-2000.
679         (Qchinese_big5): New variable in UTF-2000.
680         (BIG5_SAME_ROW): New macro in UTF-2000.
681         (make_builtin_char): Use builtin characters of
682         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
683         characters of `Vcharset_chinese_big5'.
684         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
685         (complex_vars_of_mule_charset): Add new coded-charset
686         `chinese-big5' in UTF-2000.
687
688         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
689         (Vcharset_chinese_big5): New external variable declaration.
690         (Vcharset_japanese_jisx0208_1990): Likewise.
691
692 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
693
694         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
695         function.
696         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
697
698 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
699
700         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
701         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
702         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
703         `mojikyo-pj-*'.
704
705 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
706
707         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
708
709 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
710
711         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
712         to 0.17.
713
714 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
715
716         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
717         for `CHARSET_BY_ATTRIBUTES'.
718         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
719         `CHARSET_BY_ATTRIBUTES'.
720
721         * text-coding.c (struct decoding_stream): Rename member `CH' to
722         `CPOS'.
723         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
724         (decode_coding_sjis): Likewise.
725         (decode_coding_big5): Likewise.
726         (decode_coding_ucs4): Likewise.
727         (decode_coding_utf8): Likewise.
728         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
729         `CHARSET_BY_ATTRIBUTES'.
730         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
731         `str->counter'; decode 3, 4 bytes sets.
732         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
733         sets.
734         (decode_coding_no_conversion): Use `str->cpos' instead of
735         `str->ch'.
736
737         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
738         (Qmojikyo_2022_1): New variable.
739         (make_charset): Don't use `CHARSET_TYPE_*'.
740         (range_charset_code_point): Support coded-charset
741         `mojikyo-2022-1'.
742         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
743         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
744         `CHARSET_BY_ATTRIBUTES'.
745         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
746         `CHARSET_BY_ATTRIBUTES'.
747         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
748         (complex_vars_of_mule_charset): Add new coded-charset
749         `mojikyo-2022-1'.
750
751         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
752         interface; changed to inline function.
753
754         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
755         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
756         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
757         (CHARSET_TYPE_94): Deleted.
758         (CHARSET_TYPE_94X94): Deleted.
759         (CHARSET_TYPE_96): Deleted.
760         (CHARSET_TYPE_96X96): Deleted.
761         (CHARSET_TYPE_128): Deleted.
762         (CHARSET_TYPE_128X128): Deleted.
763         (CHARSET_TYPE_256): Deleted.
764         (CHARSET_TYPE_256X256): Deleted.
765         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
766         to inline function.
767         (DECODE_MOJIKYO_2022): New inline function.
768         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
769         `Vcharset_mojikyo_2022_1'.
770
771 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
772
773         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
774         instead of `EQ'.
775         (put_byte_table): Likewise.
776         (char_id_table_equal): Use `get_byte_table' [new implementation].
777
778 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
779
780         * mule-charset.c: Include <limits.h> in UTF-2000.
781         (BT_UINT8_MIN): New macro in UTF-2000.
782         (BT_UINT8_MAX): New macro in UTF-2000.
783         (BT_UINT8_t): New macro in UTF-2000.
784         (BT_UINT8_nil): New macro in UTF-2000.
785         (BT_UINT8_unbound): New macro in UTF-2000.
786         (INT_UINT8_P): New inline function in UTF-2000.
787         (UINT8_VALUE_P): New inline function in UTF-2000.
788         (UINT8_ENCODE): New inline function in UTF-2000.
789         (UINT8_DECODE): New inline function in UTF-2000.
790         (mark_uint8_byte_table): New function in UTF-2000.
791         (print_uint8_byte_table): New function in UTF-2000.
792         (uint8_byte_table_equal): New function in UTF-2000.
793         (uint8_byte_table_hash): New function in UTF-2000.
794         (make_uint8_byte_table): New function in UTF-2000.
795         (uint8_byte_table_same_value_p): New function in UTF-2000.
796         (BT_UINT16_MIN): New macro in UTF-2000.
797         (BT_UINT16_MAX): New macro in UTF-2000.
798         (BT_UINT16_t): New macro in UTF-2000.
799         (BT_UINT16_nil): New macro in UTF-2000.
800         (BT_UINT16_unbound): New macro in UTF-2000.
801         (INT_UINT16_P): New inline function in UTF-2000.
802         (UINT16_VALUE_P): New inline function in UTF-2000.
803         (UINT16_ENCODE): New inline function in UTF-2000.
804         (UINT16_DECODE): New inline function in UTF-2000.
805         (UINT8_TO_UINT16): New inline function in UTF-2000.
806         (mark_uint16_byte_table): New function in UTF-2000.
807         (print_uint16_byte_table): New function in UTF-2000.
808         (uint16_byte_table_equal): New function in UTF-2000.
809         (uint16_byte_table_hash): New function in UTF-2000.
810         (make_uint16_byte_table): New function in UTF-2000.
811         (uint16_byte_table_same_value_p): New function in UTF-2000.
812         (print_byte_table): New function in UTF-2000.
813         (byte-table): Use `print_byte_table' as printer.
814         (make_byte_table): Delete second argument `older'.
815         (byte_table_same_value_p): New function in UTF-2000.
816         (copy_byte_table): Deleted.
817         (get_byte_table): New function in UTF-2000.
818         (put_byte_table): New function in UTF-2000.
819         (print_char_id_table): New function in UTF-2000.
820         (char-id-table): Use `print_char_id_table' as printer.
821         (make_char_id_table): Delete second argument `older'.
822         (get_char_id_table): Use `get_byte_table [new implementation].
823         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
824         implementation].
825         (Ffind_char_attribute_table): New function in UTF-2000.
826         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
827         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
828         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
829         (syms_of_mule_charset): Add new function
830         `find-char-attribute-table' in UTF-2000.
831
832         * lrecord.h (enum lrecord_type): Add
833         `lrecord_type_uint16_byte_table' and
834         `lrecord_type_uint8_byte_table'.
835
836         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
837         (Lisp_Uint8_Byte_Table): New type.
838         (XUINT8_BYTE_TABLE): New macro.
839         (XSETUINT8_BYTE_TABLE): New macro.
840         (UINT8_BYTE_TABLE_P): New macro.
841         (GC_UINT8_BYTE_TABLE_P): New macro.
842         (struct Lisp_Uint16_Byte_Table): New structure.
843         (Lisp_Uint16_Byte_Table): New type.
844         (XUINT16_BYTE_TABLE): New macro.
845         (XSETUINT16_BYTE_TABLE): New macro.
846         (UINT16_BYTE_TABLE_P): New macro.
847         (GC_UINT16_BYTE_TABLE_P): New macro.
848
849 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
850
851         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
852         (Vcharacter_ideographic_strokes_table): Deleted.
853         (Vcharacter_total_strokes_table): Deleted.
854         (Vcharacter_morohashi_daikanwa_table): Deleted.
855         (Vcharacter_decomposition_table): Deleted.
856         (Qname): Deleted because it is duplicated.
857         (Qideographic_radical): Deleted.
858         (Qideographic_strokes): Deleted.
859         (Qtotal_strokes): Deleted.
860         (Qmorohashi_daikanwa): Deleted.
861         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
862         `ideographic-radical', `ideographic-strokes', `total-strokes',
863         `morohashi-daikanwa' and `->decomposition'.
864         (Fget_char_attribute): Likewise.
865         (Fput_char_attribute): Likewise; use `make-vector' instead of
866         `make_older_vector' for `->decomposition' value.
867         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
868         `ideograph-daikanwa'.
869         (syms_of_mule_charset): Delete builtin symbols `name',
870         `ideographic-radical', `ideographic-strokes', `total-strokes' and
871         `morohashi-daikanwa'.
872         (vars_of_mule_charset): Don't setup
873         `Vcharacter_ideographic_radical_table',
874         `Vcharacter_ideographic_strokes_table',
875         `Vcharacter_total_strokes_table',
876         `Vcharacter_morohashi_daikanwa_table' and
877         `Vcharacter_decomposition_table'.
878
879 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
880
881         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
882         `make_older_vector', `make_vector_newer_1' and
883         `make_vector_newer'.
884
885         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
886         `make_older_vector' and `make_vector_newer'.
887
888         * config.h.in (HAVE_GGC): New macro.
889
890 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
891
892         * mule-charset.c (struct char_attribute_list_closure): New
893         structure in UTF-2000.
894         (add_char_attribute_to_list_mapper): New function in UTF-2000.
895         (Fchar_attribute_list): Likewise.
896         (Fset_charset_mapping_table): Use `make_vector_newer'.
897         (Fdecode_builtin_char): New function in UTF-2000.
898         (syms_of_mule_charset): Add new function `char-attribute-list' and
899         `decode-builtin-char' in UTF-2000.
900
901         * lisp.h (make_vector_newer): New prototype.
902
903         * alloc.c (make_vector_newer_1): New function.
904         (make_vector_newer): New function.
905
906 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
907
908         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
909         50100)'.
910
911 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
912
913         * mule-charset.c (Vchar_attribute_hash_table): New variable.
914         (Vcharacter_attribute_table): Deleted.
915         (Vcharacter_name_table): Deleted.
916         (put_char_attribute): Deleted.
917         (remove_char_attribute): Deleted.
918         (struct char_attribute_alist_closure): New structure.
919         (add_char_attribute_alist_mapper): New function.
920         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
921         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
922         (Fget_char_attribute): Likewise.
923         (Fput_char_attribute): Likewise.
924         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
925         of `remove_char_attribute'.
926         (Fdefine_char): Return character.
927         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
928         and `Vcharacter_name_table'.
929         (complex_vars_of_mule_charset): Likewise
930         `Vchar_attribute_hash_table'.
931
932 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
933
934         * character.h (CHARC_CHARSET): New macro.
935         (CHARC_CHARSET_ID): New macro.
936         (CHARC_CODE_POINT): New macro.
937         (CHARC_COLUMNS): New macro.
938         (CHARC_TO_CHAR): New inline function.
939         (CHARC_EQ): New inline function.
940         (CHARC_ASCII_EQ): New inline function.
941         (CHARC_IS_SPACE): New inline function.
942         (ASCII_TO_CHARC): New inline function.
943
944         * char-ucs.h (encode_char_2): Deleted.
945         (ENCODE_CHAR): Use `encode_char_1' again.
946         (breakup_char_1): Likewise.
947         (CHAR_TO_CHARC): New inline function.
948
949         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
950
951 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
952
953         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
954         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
955         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
956         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
957         (create_string_text_block): Use `CHARC_ASCII_EQ' and
958         `CHARC_IS_SPACE'.
959         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
960
961         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
962         `CHARC_CODE_POINT'.
963         (x_output_display_block): Use `CHARC_CHARSET' and
964         `CHARC_ASCII_EQ'.
965
966         * redisplay-tty.c (tty_output_display_block): Use
967         `CHARC_ASCII_EQ'.
968         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
969
970         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
971
972         * insdel.c (find_charsets_in_charc_string): Use
973         `CHARC_CHARSET_ID'.
974         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
975         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
976         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
977         (convert_charc_string_into_malloced_string): Likewise.
978
979 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
980
981         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
982         instead of <Emchar_dynarr *> for buf; use
983         `convert_bufbyte_string_into_charc_dynarr' instead of
984         `convert_bufbyte_string_into_emchar_dynarr'; use
985         `find_charsets_in_charc_string' instead of
986         `find_charsets_in_emchar_string'.
987
988         * redisplay.h:
989         - Include "character.h".
990         (struct rune): New member `cglyph'; delete member `chr'.
991
992         * redisplay.c (redisplay_text_width_charc_string): New function;
993         delete `redisplay_text_width_emchar_string'.
994         (rtw_charc_dynarr): New variable; renamed from
995         `rtw_emchar_dynarr'.
996         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
997         `rtw_emchar_dynarr'; use
998         `convert_bufbyte_string_into_charc_dynarr' instead of
999         `convert_bufbyte_string_into_emchar_dynarr'; use
1000         `redisplay_text_width_charc_string' instead of
1001         `redisplay_text_width_emchar_string'.
1002         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
1003         instead of `rtw_emchar_dynarr'; use
1004         `convert_bufbyte_string_into_charc_dynarr' instead of
1005         `convert_bufbyte_string_into_emchar_dynarr'.
1006         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
1007         `redisplay_text_width_charc_string' instead of
1008         `redisplay_text_width_emchar_string'.
1009         (create_text_block): Modify for <struct rune> change.
1010         (generate_formatted_string_db): Likewise.
1011         (create_string_text_block): Likewise.
1012         (pixel_to_glyph_translation): Likewise.
1013
1014         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
1015         instead of <const Emchar *>.
1016         (x_text_width): Likewise.
1017         (x_output_display_block): Use <Charc_dynarr *> instead
1018         <Emchar_dynarr *>; modify for <structure rune> change.
1019         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
1020         *>.
1021
1022         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
1023         <const Emchar *>; use `charc_string_displayed_columns' instead of
1024         `emchar_string_displayed_columns'.
1025         (tty_output_display_block): Use <Charc_dynarr *> instead of
1026         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
1027         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
1028         (tty_output_charc_dynarr_dynarr): New variable; renamed from
1029         `tty_output_emchar_dynarr_dynarr'.
1030         (tty_output_charc_dynarr): New function; delete
1031         `tty_output_charc_dynarr'.
1032
1033         * redisplay-output.c (compare_runes): Modify for `struct rune'.
1034         (redisplay_output_layout): Use <Charc_dynarr *> instead of
1035         <Emchar_dynarr *> for buf; use
1036         `convert_bufbyte_string_into_charc_dynarr' instead of
1037         `convert_bufbyte_string_into_emchar_dynarr'.
1038
1039         * frame.c (title_string_charc_dynarr): New variable; renamed from
1040         `title_string_emchar_dynarr'.
1041         (generate_title_string): Use `title_string_charc_dynarr' instead
1042         of `title_string_emchar_dynarr'; use
1043         `convert_charc_string_into_malloced_string' instead of
1044         `convert_emchar_string_into_malloced_string'.
1045         (init_frame): Use `title_string_charc_dynarr' instead of
1046         `title_string_emchar_dynarr'.
1047
1048         * console.h:
1049         - Include "character.h".
1050         (struct console_methods): Use <const Charc *> instead of <const
1051         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
1052         <Emchar_dynarr *> in output_string_method.
1053
1054         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
1055         <Emchar_dynarr *>.
1056
1057         * console-stream.c (stream_text_width): Use <const Charc *>
1058         instead of <const Emchar *>.
1059
1060         * character.h (Charc_dynarr): New type.
1061
1062         * char-ucs.h (structure Charc): New structure; define new type
1063         `Charc'.
1064
1065         * char-lb.h (DECODE_CHAR): New inline function.
1066         (encode_char_1): New inline function.
1067         (ENCODE_CHAR): New macro.
1068         (structure Charc): New structure; define new type `Charc'.
1069
1070         * char-1byte.h (Vcharset_control_1): New macro.
1071         (Vcharset_latin_iso8859_1): New macro.
1072         (DECODE_CHAR): New inline function.
1073         (encode_char_1): New inline function.
1074         (ENCODE_CHAR): New macro.
1075         (structure Charc): New structure; define new type `Charc'.
1076
1077         * insdel.c (find_charsets_in_charc_string): New function; delete
1078         `find_charsets_in_emchar_string'.
1079         (charc_string_displayed_columns): New function; delete
1080         `emchar_string_displayed_columns'.
1081         (convert_bufbyte_string_into_charc_dynarr): New function; delete
1082         `convert_bufbyte_string_into_emchar_dynarr'.
1083         (convert_charc_string_into_bufbyte_dynarr): New function; delete
1084         `convert_charc_string_into_bufbyte_dynarr'.
1085         (convert_charc_string_into_malloced_string): New function; delete
1086         `convert_charc_string_into_malloced_string'.
1087
1088         * buffer.h (find_charsets_in_charc_string): New prototype; delete
1089         `find_charsets_in_emchar_string'.
1090         (charc_string_displayed_columns): New prototype; delete
1091         `emchar_string_displayed_columns'.
1092         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
1093         `convert_charc_string_into_bufbyte_dynarr'.
1094         (convert_charc_string_into_malloced_string): New prototype; delete
1095         `convert_charc_string_into_malloced_string'.
1096
1097 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1098
1099         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
1100
1101 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1102
1103         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
1104
1105         * char-ucs.h: Use <short> for <Charset_ID>.
1106
1107         * mule-charset.h, char-1byte.h: Use <unsigned char> for
1108         <Charset_ID>.
1109
1110 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1111
1112         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1113         to 0.16.
1114
1115 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1116
1117         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
1118         variable.
1119         (Qmorohashi_daikanwa): New variable.
1120         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
1121         for `morohashi-daikanwa' attribute.
1122         (Fget_char_attribute): Likewise.
1123         (Fput_char_attribute): Likewise.
1124         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
1125         has the same value of `ideograph-daikanwa'.
1126         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
1127         (vars_of_mule_charset): Setup
1128         `Vcharacter_morohashi_daikanwa_table'.
1129
1130 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1131
1132         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
1133         attributes.
1134         (add_charset_to_list_mapper): Add `key' instead of
1135         `XCHARSET_NAME (value)' to return aliases.
1136
1137 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1138
1139         * mule-charset.c (Vcharacter_ideographic_radical_table): New
1140         variable.
1141         (Vcharacter_ideographic_strokes_table): New variable.
1142         (Qideographic_radical): New variable.
1143         (Qideographic_strokes): New variable.
1144         (Fchar_attribute_alist): Use
1145         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
1146         attribute; use `Vcharacter_ideographic_strokes_table' for
1147         `ideographic-strokes' attribute.
1148         (Fget_char_attribute): Likewise.
1149         (Fput_char_attribute): Likewise.
1150         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
1151         `ideographic-strokes'.
1152         (vars_of_mule_charset): Setup
1153         `Vcharacter_ideographic_radical_table' and
1154         `Vcharacter_ideographic_strokes_table'.
1155
1156 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1157
1158         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
1159         (Qtotal_strokes): New variable.
1160         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
1161         `total-strokes' attribute.
1162         (Fget_char_attribute): Likewise.
1163         (Fput_char_attribute): Likewise.
1164         (syms_of_mule_charset): Add new symbol `total-strokes'.
1165         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
1166
1167 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1168
1169         * mule-charset.c (Vcharacter_decomposition_table): New variable.
1170         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
1171         are found.
1172         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
1173         `->decomposition' attribute.
1174         (Fput_char_attribute): Likewise.
1175         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
1176
1177 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1178
1179         * mule-charset.c (decoding_table_check_elements): New function.
1180         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
1181
1182 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1183
1184         * mule-charset.c (Fset_charset_mapping_table): Use
1185         `put_char_ccs_code_point'.
1186
1187 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1188
1189         * mule-charset.c (decoding_table_put_char): New inline function.
1190         (put_char_ccs_code_point): Use `decoding_table_put_char'.
1191
1192 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1193
1194         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
1195         (XCHARSET_BYTE_SIZE): New macro.
1196         (decoding_table_remove_char): New inline function.
1197         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
1198         `decoding_table_remove_char'.
1199         (remove_char_ccs): Use `decoding_table_remove_char'.
1200         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
1201
1202 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1203
1204         * mule-charset.c (Vcharacter_name_table): New variable.
1205         (Qname): New variable.
1206         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
1207         attribute.
1208         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
1209         `Vcharacter_name_table' for `name' attribute.
1210         (Fremove_char_attribute): Use function `remove_char_ccs'.
1211         (put_char_ccs_code_point): New function.
1212         (remove_char_ccs): New function.
1213         (syms_of_mule_charset): Add new symbol `name'.
1214         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
1215
1216 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1217
1218         * mule-charset.c (make_byte_table): Add new argument `older'.
1219         (make_char_id_table): Likewise.
1220         (copy_char_id_table): Comment out because it is not used.
1221         (put_char_id_table): Modify for `make_byte_table'.
1222         (Fput_char_attribute): Make encoding_table as older object;
1223         inherit older bit of `Vcharacter_composition_table'.
1224         (mark_charset): Don't mark `cs->encoding_table'.
1225         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
1226         normal object; make `Vcharacter_composition_table' as an older
1227         object; delete staticpro for `Vcharacter_composition_table'; make
1228         `Vcharacter_variant_table' as a normal object.
1229
1230         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
1231         (mark_object): Don't check older object in UTF-2000.
1232
1233         * lrecord.h (struct lrecord_header): Add new member `older' in
1234         UTF-2000.
1235         (set_lheader_implementation): Setup `SLI_header->older' in
1236         UTF-2000.
1237         (set_lheader_older_implementation): New macro in UTF-2000.
1238         (OLDER_RECORD_P): New macro in UTF-2000.
1239         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
1240         (alloc_older_lcrecord): New prototype in UTF-2000.
1241         (alloc_older_lcrecord_type): New macro in UTF-2000.
1242
1243 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1244
1245         * mule-charset.c (byte_table_description): Use
1246         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
1247         (char_id_table_description): Delete bogus `, 1'.
1248         (Fget_char_attribute): Refer encoding_table of each coded-charset
1249         to get value of coded-charset attribute of a character.
1250         (Fput_char_attribute): Use `make_older_vector' instead of
1251         `make_vector'; use encoding_table of each coded-charset to store
1252         value of coded-charset attribute of a character.
1253         (Fremove_char_attribute): Use encoding_table of each coded-charset
1254         to store value of coded-charset attribute of a character.
1255         (mark_charset): Mark `cs->encoding_table'; don't mark
1256         `cs->decoding_table'.
1257         (charset_description): Add description of new member
1258         `encoding_table'.
1259         (make_charset): Initialize `encoding_table'.
1260
1261         * char-ucs.h (struct Lisp_Charset): Add new member
1262         `encoding_table'.
1263         (CHARSET_ENCODING_TABLE): New macro.
1264         (XCHARSET_ENCODING_TABLE): New macro.
1265         (charset_code_point): New implementation.
1266         (encode_char_1): Likewise.
1267
1268         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
1269         (disksave_object_finalization_1): Call finalizers of
1270         `all_older_lcrecords' in UTF-2000.
1271         (make_older_vector): New function in UTF-2000.
1272         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
1273         UTF-2000.
1274
1275         * lisp.h (make_older_vector): New prototype in UTF-2000.
1276
1277 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1278
1279         * lrecord.h (enum lrecord_type): Rename
1280         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
1281
1282         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
1283         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
1284         `get_char_code_table'.
1285
1286         * mule-charset.c (mark_char_id_table): Renamed from
1287         `mark_char_code_table'.
1288         (char_id_table_equal): Renamed from `char_code_table_equal'.
1289         (char_id_table_hash): Renamed from `char_code_table_hash'.
1290         (make_char_id_table): Renamed from `make_char_code_table'.
1291         (copy_char_id_table): Renamed from `copy_char_code_table'.
1292         (get_char_id_table): Renamed from `get_char_code_table'.
1293         (put_char_id_table): Renamed from `put_char_code_table'.
1294         (to_char_id): Renamed from `to_char_code'.
1295
1296         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
1297         `Lisp_Char_Code_Table'.
1298         (char_id_table): Renamed from `char_code_table'.
1299         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
1300         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
1301         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
1302         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
1303         (get_char_id_table): Renamed from `get_char_code_table'.
1304
1305 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1306
1307         * lrecord.h (enum lrecord_type): Rename
1308         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
1309
1310         * mule-charset.c (mark_byte_table): Renamed from
1311         `mark_char_byte_table'.
1312         (byte_table_equal): Renamed from `char_byte_table_equal'.
1313         (byte_table_hash): Renamed from `byte_table_hash'.
1314         (make_byte_table): Renamed from `make_byte_table'.
1315         (copy_byte_table): Renamed from `copy_char_byte_table'.
1316
1317         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
1318         `Lisp_Char_Byte_Table'.
1319         (byte_table): Renamed from `char_byte_table'.
1320         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
1321         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
1322         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
1323         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
1324
1325 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1326
1327         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
1328         (dfc_convert_to_internal_format): Likewise.
1329         
1330         * text-coding.c (Fcoding_system_canonical_name_p): New function.
1331         * text-coding.c (Fcoding_system_alias_p): New function.
1332         * text-coding.c (Fcoding_system_aliasee): New function.
1333         * text-coding.c (append_suffix_to_symbol): New function.
1334         * text-coding.c (dangling_coding_system_alias_p): New function.
1335         * text-coding.c (Ffind_coding_system):
1336         * text-coding.c (Fcopy_coding_system):
1337         * text-coding.c (encode_coding_no_conversion):
1338         * text-coding.c (syms_of_file_coding):
1339         * text-coding.c (vars_of_file_coding):
1340         Rewrite coding system alias code.
1341         Allow nested aliases, like symbolic links.
1342         Allow redefinition of coding system aliases.
1343         Prevent existence of dangling coding system aliases.
1344         Eliminate convert_to_external_format.
1345         Eliminate convert_to_internal_format.
1346         
1347         * text-coding.c: Change enum eol_type to eol_type_t.
1348
1349 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1350
1351         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
1352         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
1353
1354         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
1355         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
1356
1357 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1358
1359         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
1360         `ideograph-daikanwa'.
1361
1362         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
1363         (Vcharset_ucs_bmp): Likewise.
1364         (Vcharset_mojikyo): Add new extern variable definition.
1365         (Vcharset_latin_iso8859_2): Deleted because it is not used.
1366         (Vcharset_latin_iso8859_3): Likewise.
1367         (Vcharset_latin_iso8859_4): Likewise.
1368         (Vcharset_latin_iso8859_9): Likewise.
1369         (Vcharset_latin_viscii_lower): Likewise.
1370         (Vcharset_latin_viscii_upper): Likewise.
1371         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
1372         `mojikyo' code-point is used to decode.
1373         (encode_char_2): New function [to convert `mojikyo' code-point to
1374         Mojikyo font encoding].
1375         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
1376         (breakup_char_1): Likewise.
1377         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
1378
1379 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1380
1381         * text-coding.c (Fmake_coding_system): Add document about
1382         `disable-composition' property.
1383
1384 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1385
1386         * text-coding.c (Qdisable_composition): New variable; delete
1387         `Qcomposite'.
1388         (Fmake_coding_system): Add new property `disable-composite';
1389         delete property `composite'.
1390         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
1391         instead of `!CODING_SYSTEM_COMPOSITE'.
1392         (syms_of_file_coding): Add new symbol `disable-composition';
1393         delete symbol `composite'.
1394
1395         * file-coding.h (struct Lisp_Coding_System): Add
1396         `disable_composition'; delete `enable_composition'.
1397         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
1398         `CODING_SYSTEM_COMPOSITE'.
1399         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
1400         `XCODING_SYSTEM_COMPOSITE'.
1401
1402 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1403
1404         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1405         to 0.15.
1406
1407 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1408
1409         * text-coding.c (Qcomposite): New variable.
1410         (Fmake_coding_system): Add new property `composite'.
1411         (struct decoding_stream): Add `combined_char_count',
1412         `combined_chars' and `combining_table' in UTF-2000.
1413         (COMPOSE_FLUSH_CHARS): New macro.
1414         (COMPOSE_ADD_CHAR): New macro.
1415         (reset_decoding_stream): Reset `str->combined_char_count' and
1416         `str->combining_table' in UTF-2000.
1417         (decode_coding_iso2022): Modify for character-decomposition.
1418         (syms_of_file_coding): Add new symbol `composite'.
1419
1420 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1421
1422         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
1423         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
1424         of `Vcharacter_composition_table' if `->decomposition' property
1425         has only 1 element.
1426         (Qlatin_tcvn5712): New variable.
1427         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
1428         (complex_vars_of_mule_charset): Add new coded-charset
1429         `latin-tcvn5712'.
1430
1431         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
1432
1433 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1434
1435         * file-coding.h (struct Lisp_Coding_System): Add
1436         `enable_composition'.
1437         (CODING_SYSTEM_COMPOSITE): New macro.
1438         (XCODING_SYSTEM_COMPOSITE): New macro.
1439
1440 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
1441
1442         * mule-canna.c (c2mu): Fix problem with UTF-2000.
1443
1444 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
1445
1446         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
1447         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
1448
1449 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
1450
1451         * mule-charset.c (Vcharset_mojikyo): New variable.
1452         (Fdefine_char): Don't use coded-charset which does not have
1453         non-builtin character range to allocate character-id.
1454         (Qmojikyo): New variable.
1455         (syms_of_mule_charset): Add new symbol `mojikyo'.
1456         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
1457
1458         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
1459         (LEADING_BYTE_MOJIKYO): New macro.
1460         (MIN_CHAR_MOJIKYO): New macro.
1461         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
1462         (MAX_CHAR_MOJIKYO): New macro.
1463
1464 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
1465
1466         * mule-charset.c (remove_char_attribute): Fixed.
1467
1468 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
1469
1470         * mule-charset.c (remove_char_attribute): New function.
1471         (Fremove_char_attribute): New function.
1472         (encode_builtin_char_1): Comment out builtin-support for
1473         greek-iso8859-7 and cyrillic-iso8859-5.
1474         (Fdecode_char): Check `code' is an integer.
1475         (syms_of_mule_charset): Add `remove-char-attribute'.
1476         (MIN_CHAR_GREEK): Deleted.
1477         (MAX_CHAR_GREEK): Likewise.
1478         (MIN_CHAR_CYRILLIC): Likewise.
1479         (MAX_CHAR_CYRILLIC): Likewise.
1480         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
1481         MAX_CHAR_GREEK for `greek-iso8859-7'.
1482
1483         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
1484         (MAX_CHAR_GREEK): Likewise.
1485         (MIN_CHAR_CYRILLIC): Likewise.
1486         (MAX_CHAR_CYRILLIC): Likewise.
1487
1488 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
1489
1490         * mule-charset.c (Fdefine_char): Fix problem when new code-point
1491         format is used without `ucs' property.
1492         (Fdecode_char): Fix problem with GR representation.
1493         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
1494         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
1495
1496 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
1497
1498         * mule-charset.c (make_builtin_char): New function.
1499         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
1500         (Fset_charset_mapping_table): Modify for new representation of
1501         code-point.
1502         (Fdecode_char): New function.
1503         (syms_of_mule_charset): Add new builtin function `decode-char' in
1504         UTF-2000.
1505
1506         * char-ucs.h (make_builtin_char): New prototype.
1507         (DECODE_CHAR): New inline function.
1508         (MAKE_CHAR): Use `DECODE_CHAR'.
1509
1510 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
1511
1512         * text-coding.c (parse_charset_conversion_specs): Use
1513         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
1514         `XCHARSET_TYPE'.
1515         (iso2022_designate): Likewise.
1516
1517         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
1518         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
1519
1520         * mule-charset.c (Vcharset_ucs): New variable.
1521         (print_charset): Change design; use `CHARSET_CHARS' and
1522         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
1523         (make_charset): Change signature to specify `chars' and
1524         `dimension' instead of `type'.
1525         (range_charset_code_point): Modify for 256^n-set.
1526         (encode_builtin_char_1): Encode as `ucs' in default.
1527         (Fmake_charset): Modify for `make_charset'.
1528         (Fmake_reverse_direction_charset): Likewise.
1529         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
1530         UTF-2000.
1531         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
1532         for `make_charset'.
1533
1534         * char-ucs.h (Vcharset_ucs): New variable.
1535         (LEADING_BYTE_UCS): New macro.
1536         (struct Lisp_Charset): Delete `type'; change type of `dimension'
1537         and `chars' to `unsigned short' from `unsigned int'.
1538         (CHARSET_TYPE): Deleted.
1539         (XCHARSET_TYPE): Deleted.
1540
1541 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
1542
1543         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
1544
1545         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
1546         (ENCODE_CHAR): New macro.
1547
1548 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
1549
1550         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1551         to 0.14 (Kawachi-Katakami).
1552
1553 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
1554
1555         * text-coding.c (char_encode_shift_jis): Modify for
1556         `charset_code_point'.
1557         (char_encode_iso2022): Likewise.
1558
1559         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
1560         (integer) instead of list of <Lisp_Object>s (integers) as the
1561         format of code-point of a coded-charset.
1562         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
1563         (encode_builtin_char_1): New function; delete
1564         `split_builtin_char'.
1565         (charset_code_point): Return <int> instead of <Lisp_Object>.
1566         (Fsplit_char): Don't use `SPLIT_CHAR'.
1567
1568         * char-ucs.h (encode_builtin_char_1): New prototype; delete
1569         prototype for `split_builtin_char'.
1570         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
1571         (charset_code_point): Likewise.
1572         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
1573         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
1574
1575 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
1576
1577         * mule-charset.c (complex_vars_of_mule_charset): Don't define
1578         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
1579
1580 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
1581
1582         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
1583
1584         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
1585         (MAX_CHAR_OBS_94x94): Deleted.
1586
1587 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
1588
1589         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
1590
1591         * char-ucs.h (MAX_CHAR_BMP): New macro.
1592
1593 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
1594
1595         * text-coding.c: Sync with r21-2-24.
1596
1597 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
1598
1599         * file-coding.c: Modify for UTF-2000.
1600
1601 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
1602
1603         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1604         to 0.13 (Takaida).
1605
1606 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
1607
1608         * mule-charset.c (split_builtin_char): Delete builtin support for
1609         `katakana-jisx0201'.
1610         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
1611         BMP area in builtin representation.
1612
1613         * char-ucs.h (MAKE_CHAR): Delete builtin support for
1614         `Vcharset_katakana_jisx0201'.
1615
1616 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
1617
1618         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
1619         (Qisolated): New variable.
1620         (Qinitial): New variable.
1621         (Qmedial): New variable.
1622         (Qfinal): New variable.
1623         (Qvertical): New variable.
1624         (Qsmall): New variable.
1625         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
1626         `Qvertical' and `Qsmall'.
1627         (Qmojikyo_pj_[1 .. 21]): New variable.
1628         (syms_of_mule_charset): Add new symbols `isolated', `initial',
1629         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
1630         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
1631         .. 21]'.
1632
1633 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
1634
1635         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
1636         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
1637         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
1638
1639 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
1640
1641         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
1642         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
1643         BMP.
1644         (Qjapanese_jisx0208_1990): New variable.
1645         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
1646         (complex_vars_of_mule_charset): Add new coded-charset
1647         `japanese-jisx0208-1990'.
1648
1649         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
1650         (MIN_CHAR_JIS_X0208_1990): New macro.
1651         (MAX_CHAR_JIS_X0208_1990): New macro.
1652
1653 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1654
1655         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
1656         coded-charset is not found.
1657
1658 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1659
1660         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
1661         (Fdefine_char): Use `Fmake_char'.
1662
1663 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1664
1665         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
1666         (Vcharset_hiragana_jisx0208): Deleted.
1667         (Vcharset_katakana_jisx0208): Deleted.
1668         (Qideograph_daikanwa): New variable.
1669         (Qhiragana_jisx0208): Deleted.
1670         (Qkatakana_jisx0208): Deleted.
1671         (split_builtin_char): Split `ideograph-daikanwa'.
1672         (Fsplit_char): New implementation for UTF-2000.
1673         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
1674         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
1675         (complex_vars_of_mule_charset): Add new coded-charset
1676         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
1677         `katakana-jisx0208'.
1678
1679         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
1680         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
1681         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
1682         (MIN_CHAR_DAIKANWA): New macro.
1683         (MAX_CHAR_DAIKANWA): New macro.
1684
1685 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1686
1687         * data.c (Fstring_to_number): Don't recognize floating point if
1688         base is not 10.
1689
1690 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1691
1692         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
1693
1694 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1695
1696         * mule-charset.c (Qsquare): New variable.
1697         (to_char_code): Add `Qsquare'.
1698         (syms_of_mule_charset): Add new symbol `square'.
1699
1700 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1701
1702         * mule-charset.c (Qcircle): New variable.
1703         (to_char_code): Add `Qcircle'.
1704         (syms_of_mule_charset): Add new symbol `circle'.
1705
1706 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1707
1708         * mule-charset.c (Qfont): New variable.
1709         (to_char_code): Add `Qfont'.
1710         (syms_of_mule_charset): Add new symbol `font'.
1711
1712 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1713
1714         * mule-charset.c (Qsub): New variable.
1715         (to_char_code): Add `Qsub'.
1716         (syms_of_mule_charset): Add new symbol `sub'.
1717
1718 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1719
1720         * mule-charset.c (Fput_char_attribute): Convert each element of
1721         VALUE to GL position if ATTRIBUTE is a GR-set,
1722
1723 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1724
1725         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
1726         coded-charset is a GR-set.
1727
1728 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1729
1730         * mule-charset.c (Fput_char_attribute): Check each element of
1731         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
1732
1733 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1734
1735         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
1736         UTF-2000.
1737         (Qethiopic_ucs): New variable in UTF-2000.
1738         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
1739         (complex_vars_of_mule_charset): Add new coded-charset
1740         `ethiopic-ucs' in UTF-2000.
1741
1742         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
1743         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
1744         9)'.
1745         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
1746         10)'.
1747         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
1748
1749 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
1750
1751         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
1752         `ascii'.
1753
1754 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1755
1756         * mule-charset.c (Vcharacter_variant_table): New variable.
1757         (Q_ucs): New variable.
1758         (Fchar_variants): New function.
1759         (Fput_char_attribute): Register `->ucs' value to
1760         `Vcharacter_variant_table'.
1761         (syms_of_mule_charset): Add new function `char-variants' and new
1762         symbol `->ucs'.
1763         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
1764
1765 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1766
1767         * mule-charset.c (get_char_code_table): Allow negative character
1768         code.
1769         (put_char_code_table): Likewise.
1770         (Vcharacter_composition_table): New variable.
1771         (Q_decomposition): New variable.
1772         (Qwide): New variable.
1773         (Qnarrow): New variable.
1774         (Qcompat): New variable.
1775         (QnoBreak): New variable.
1776         (Qsuper): New variable.
1777         (Qfraction): New variable.
1778         (to_char_code): New function.
1779         (Fget_composite_char): New function.
1780         (Fput_char_attribute): Register `->decomposition' value to
1781         `Vcharacter_composition_table'.
1782         (syms_of_mule_charset): Add new function `get-composite-char', new
1783         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
1784         `super' and `fraction'.
1785         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
1786
1787 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1788
1789         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
1790         character; copy the return value.
1791
1792 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
1793
1794         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
1795
1796         * mule-charset.c (range_charset_code_point): Must use make_int.
1797         (split_builtin_char): New function.
1798
1799 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
1800
1801         * mule-charset.c (char_byte_table): Change name from
1802         "char-code-table" to "char-byte-table".
1803         (mark_char_code_table): New function.
1804         (char_code_table_equal): New function.
1805         (char_code_table_hash): New function.
1806         (char_code_table_description): New constant.
1807         (char_code_table): New type.
1808         (make_char_code_table): New function.
1809         (copy_char_code_table): New function.
1810         (get_char_code_table): Modify for `char_code_table' type.
1811         (put_char_code_table): Likewise.
1812         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
1813         (Kashiwara).
1814
1815         * char-ucs.h (char_code_table): New type.
1816         (XCHAR_CODE_TABLE): New macro.
1817         (XSETCHAR_CODE_TABLE): New macro.
1818         (CHAR_CODE_TABLE_P): New macro.
1819         (GC_CHAR_CODE_TABLE_P): New macro.
1820         (struct Lisp_Char_Code_Table): New structure.
1821
1822 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
1823
1824         * mule-charset.c (Fmake_charset): Setup byte_offset for
1825         {94|96}^n-set.
1826
1827 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1828
1829         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
1830         character.
1831
1832 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
1833
1834         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
1835         is found.
1836
1837 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
1838
1839         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
1840         charset, it is regarded as a charset.
1841         (put_char_attribute): New function in UTF-2000.
1842         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
1843         charset, mapping-table of the charset is modified.
1844         (Fdefine_char): New function in UTF-2000.
1845         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
1846         `Fput_char_attribute'.
1847         (syms_of_mule_charset): Add new function `define-char' and new
1848         symbol `ucs' in UTF-2000.
1849         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
1850
1851 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
1852
1853         * mule-charset.c (Fcharset_name): Define `byte_offset' in
1854         non-UTF-2000 configuration.
1855
1856 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
1857
1858         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
1859         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
1860
1861         * mule-charset.c (mark_charset): `cs->encoding_table' has been
1862         deleted.
1863         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
1864         (Fset_charset_mapping_table): Likewise.
1865
1866         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
1867         (CHARSET_ENCODING_TABLE): Delete.
1868         (XCHARSET_ENCODING_TABLE): Delete.
1869         (charset_code_point): New interface.
1870
1871 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
1872
1873         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
1874         instead of `charset_get_byte1' and `charset_get_byte2'.
1875
1876         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
1877         (charset_get_byte2): Deleted.
1878
1879 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
1880
1881         * char-ucs.h (SPLIT_CHAR): New inline function.
1882         (breakup_char_1): Use `SPLIT_CHAR'.
1883
1884         * mule-charset.c (range_charset_code_point): New function.
1885         (charset_code_point): New function.
1886
1887         * char-ucs.h (range_charset_code_point): New interface.
1888         (breakup_char_1): Use `range_charset_code_point'.
1889
1890 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
1891
1892         * mule-charset.c (Fmake_charset): Delete unused local variable
1893         `code_offset'.
1894
1895         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
1896         (breakup_char_1): Find a charset and code-point in
1897         `Vcharacter_attribute_table'.
1898
1899 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
1900
1901         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1902         to 0.10 (Yao).
1903
1904 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
1905
1906         * mule-charset.c (Vcharacter_attribute_table): New variable.
1907         (Fchar_attribute_alist): New function.
1908         (Fget_char_attribute): New function.
1909         (Fput_char_attribute): New function.
1910         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
1911         too.
1912         (syms_of_mule_charset): Add new function `char-attribute-alist',
1913         `get-char-attribute' and `put-char-attribute'.
1914         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
1915
1916 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
1917
1918         * mule-charset.c (Fmake_charset): Just use
1919         `get_unallocated_leading_byte'.
1920
1921         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
1922         sets; don't use final-byte based number for private sets.
1923
1924 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
1925
1926         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
1927         integer.
1928
1929 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
1930
1931         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1932         to 0.9.
1933
1934 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1935
1936         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
1937         of `CHAR_LEADING_BYTE' in UTF-2000.
1938
1939         * insdel.c (find_charsets_in_bufbyte_string): Use
1940         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
1941         (find_charsets_in_emchar_string): Likewise.
1942
1943         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
1944         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
1945
1946         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
1947         (CHAR_CHARSET_ID): New macro.
1948
1949 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1950
1951         * chartab.c (get_char_table): Don't use type `Charset_ID' for
1952         charset-id - MIN_LEADING_BYTE.
1953         (put_char_table): Likewise.
1954
1955 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1956
1957         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
1958         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
1959         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
1960         (CHARSET_ID_OFFSET): New macro.
1961         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
1962         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
1963         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
1964         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
1965         4).
1966         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
1967         5).
1968         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
1969         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
1970         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
1971         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
1972         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
1973
1974 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1975
1976         * mule-charset.c (next_allocated_leading_byte): New variable in
1977         UTF-2000.
1978         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
1979         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
1980         (get_unallocated_leading_byte): Simply use
1981         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
1982         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
1983         UTF-2000.
1984
1985         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
1986         (MAX_LEADING_BYTE_PRIVATE): New macro.
1987         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
1988         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
1989
1990 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1991
1992         * mule-charset.c (Fmake_charset): Allocate final-byte based
1993         charset-id for 94-set, 96-set and 94x94-set.
1994
1995 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
1996
1997         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
1998         ambiguous `else'.
1999         (Fmake_charset): Likewise.
2000         (complex_vars_of_mule_charset): Modify the font registry of
2001         `ucs-bmp' not to match `Ethiopic-Unicode'.
2002
2003 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2004
2005         * mule-charset.c (complex_vars_of_mule_charset): Add font
2006         registory of `ucs-bmp'.
2007
2008 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2009
2010         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
2011         coded-charsets in `default-coded-charset-priority-list' when
2012         breaking up a character.
2013
2014         * mule-charset.c (Vcharset_latin_viscii): New variable.
2015         (Qlatin_viscii): New variable.
2016         (make_charset): Don't use `decoding_table'.
2017         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
2018         byte_offset.
2019         (Fset_charset_mapping_table): New implementation.
2020         (syms_of_mule_charset): Add new symbol `latin-viscii'.
2021         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
2022         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
2023         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
2024         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
2025         charset `latin_viscii'.
2026
2027         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
2028         (CHARSET_TYPE_94X94): Change to 1 from 2.
2029         (CHARSET_TYPE_96): Change to 2 from 1.
2030         (CHARSET_TYPE_128): New macro.
2031         (CHARSET_TYPE_128X128): Change to 5 from 4.
2032         (CHARSET_TYPE_256): New macro.
2033         (CHARSET_TYPE_256X256): Change to 7 from 5.
2034         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
2035
2036 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2037
2038         * text-coding.c (char_encode_shift_jis): Refer
2039         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
2040         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
2041
2042         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
2043         (char_byte_table_equal): New function in UTF-2000.
2044         (char_byte_table_hash): New function in UTF-2000.
2045         (char_byte_table_description): New constant in UTF-2000.
2046         (char_byte_table): New type in UTF-2000.
2047         (make_char_byte_table): New function in UTF-2000.
2048         (copy_char_byte_table): New function in UTF-2000.
2049         (make_char_code_table): New macro in UTF-2000.
2050         (get_char_code_table): New function in UTF-2000.
2051         (put_char_code_table): New function in UTF-2000.
2052         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2053         (charset_description): Add setting in UTF-2000.
2054         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
2055         `CHARSET_TO_BYTE1_TABLE(cs)'.
2056         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
2057         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
2058         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
2059         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
2060         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
2061         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
2062         `CHARSET_TO_BYTE2_TABLE(cs)'.
2063
2064         * char-ucs.h (char_byte_table): New type.
2065         (XCHAR_BYTE_TABLE): New macro.
2066         (XSETCHAR_BYTE_TABLE): New macro.
2067         (CHAR_BYTE_TABLE_P): New macro.
2068         (GC_CHAR_BYTE_TABLE_P): New macro.
2069         (struct Lisp_Char_Byte_Table): New structure.
2070         (get_char_code_table): New interface.
2071         (Emchar_to_byte_table): Deleted.
2072         (get_byte_from_character_table): Deleted.
2073         (struct Lisp_Charset): Add `encoding_table'; delete
2074         `to_byte1_table' and `to_byte2_table'.
2075         (CHARSET_ENCODING_TABLE): New macro.
2076         (CHARSET_TO_BYTE1_TABLE): Deleted.
2077         (CHARSET_TO_BYTE2_TABLE): Deleted.
2078         (XCHARSET_ENCODING_TABLE): New macro.
2079         (XCHARSET_TO_BYTE1_TABLE): Deleted.
2080         (XCHARSET_TO_BYTE2_TABLE): Deleted.
2081
2082 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2083
2084         * mule-charset.c (syms_of_mule_charset): Delete charset alias
2085         `vietnamese-viscii-*'.
2086
2087 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2088
2089         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
2090         (Qvietnamese_viscii_upper): New variable.
2091         (Fdefine_charset_alias): New function.
2092         (syms_of_mule_charset): Add new function `define-charset-alias'.
2093         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
2094         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
2095         `latin-viscii-*'.
2096
2097 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
2098
2099         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
2100         (MAX_CHAR_OBS_94x94): New macro.
2101         (breakup_char_1): Support obsolete XEmacs-UCS private code space
2102         for 94x94 sets.
2103
2104         * mule-charset.c (put_byte_from_character_table): Change unit size
2105         from 128 to 256.
2106         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
2107         not defined.
2108         (Fmake_reverse_direction_charset): Modify dummy argument of
2109         `make_charset' for non-UTF-2000 environment.
2110
2111 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2112
2113         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
2114
2115         * mule-charset.c (destroy_byte_from_character_table): New macro.
2116         (latin_jisx0201_to_ucs): Deleted.
2117         (latin_iso8859_2_to_ucs): Deleted.
2118         (latin_iso8859_3_to_ucs): Deleted.
2119         (latin_iso8859_4_to_ucs): Deleted.
2120         (latin_iso8859_9_to_ucs): Deleted.
2121         (latin_viscii_lower_to_ucs): Deleted.
2122         (latin_viscii_upper_to_ucs): Deleted.
2123         (mark_charset): Mark `cs->decoding_table'.
2124         (Fcharset_mapping_table): Fix DOC-string.
2125         (Fset_charset_mapping_table): New function.
2126         (syms_of_mule_charset): Add nwe function
2127         `set-charset-mapping-table'.
2128         (complex_vars_of_mule_charset): Don't setup and use
2129         `latin_*_to_ucs'.
2130
2131 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2132
2133         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
2134         charset.
2135
2136 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2137
2138         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
2139         (Vcharset_katakana_jisx0208): New variable.
2140         (Qhiragana_jisx0208): New variable.
2141         (Qkatakana_jisx0208): New variable.
2142         (make_charset): Add new argument `byte_offset'.
2143         (charset_get_byte1): Modify for new coded-charset definition; use
2144         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
2145         `XCHARSET_BYTE_OFFSET'.
2146         (Fmake_charset): Modify for `make_charset'.
2147         (Fmake_reverse_direction_charset): Likewise.
2148         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
2149         `katakana-jisx0208'.
2150         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
2151         `.'  in font registry of charset `katakana-jisx0201',
2152         `latin-jisx0201', `vietnamese-viscii-lower' and
2153         `vietnamese-viscii-upper'; modify DOC-string of charset
2154         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
2155         registry of charset `japanese-jisx0208' not to use font for JIS
2156         X0208:1990; add new charset `hiragana-jisx0208' and
2157         `katakana-jisx0208'.
2158
2159         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
2160         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
2161         (struct Lisp_Charset): Add `byte_offset'.
2162         (CHARSET_BYTE_OFFSET): New macro.
2163         (XCHARSET_UCS_MIN): New macro.
2164         (XCHARSET_UCS_MAX): New macro.
2165         (XCHARSET_CODE_OFFSET): New macro.
2166         (XCHARSET_BYTE_OFFSET): New macro.
2167         (MIN_CHAR_HIRAGANA): New macro.
2168         (MAX_CHAR_HIRAGANA): New macro.
2169         (MIN_CHAR_KATAKANA): New macro.
2170         (MAX_CHAR_KATAKANA): New macro.
2171         (MAKE_CHAR): Modify for new coded-charset definition; use
2172         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
2173         `XCHARSET_BYTE_OFFSET'.
2174
2175 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2176
2177         * mule-charset.c (CHAR96): Deleted.
2178         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
2179         <Lisp_Object>.
2180         (latin_iso8859_2_to_ucs): Likewise.
2181         (latin_iso8859_3_to_ucs): Likewise.
2182         (latin_iso8859_4_to_ucs): Likewise.
2183         (latin_iso8859_9_to_ucs): Likewise.
2184         (latin_viscii_lower_to_ucs): Likewise.
2185         (latin_viscii_upper_to_ucs): Likewise.
2186         (latin_tcvn5712_to_ucs): Commented out.
2187         (make_charset): Change type of argument `decoding_table' from
2188         <Emchar*> to <Lisp_Object> [vector of characters].
2189         (Fmake_charset): Modify for `make_charset'.
2190         (Fmake_reverse_direction_charset): Likewise.
2191         (Fcharset_mapping_table): New function in UTF-2000.
2192         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
2193         UTF-2000.
2194         (complex_vars_of_mule_charset): Modify for type change of
2195         `*_to_ucs'; modify for `make_charset'.
2196
2197         * char-ucs.h (struct Lisp_Charset): Change type of
2198         `decoding_table' from <Emchar*> to <Lisp_Object>.
2199         (MAKE_CHAR): Modify for new specification of `decoding_table'.
2200
2201 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
2202
2203         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
2204         error with non-UTF-2000-Mule.
2205
2206 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
2207
2208         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
2209         in lisp again].
2210         (Vcharset_chinese_cns11643_4): Likewise.
2211         (Vcharset_chinese_cns11643_5): Likewise.
2212         (Vcharset_chinese_cns11643_6): Likewise.
2213         (Vcharset_chinese_cns11643_7): Likewise.
2214         (Qchinese_cns11643_3): Likewise.
2215         (Qchinese_cns11643_4): Likewise.
2216         (Qchinese_cns11643_5): Likewise.
2217         (Qchinese_cns11643_6): Likewise.
2218         (Qchinese_cns11643_7): Likewise.
2219         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
2220         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
2221         and `chinese-cns11643-7' to lisp/mule/chinese.el.
2222         (complex_vars_of_mule_charset): Likewise.
2223
2224 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2225
2226         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
2227         96-set.
2228         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
2229         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
2230
2231 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
2232
2233         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
2234         0xFF60.
2235         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
2236         (breakup_char_1): Likewise.
2237
2238         * text-coding.c (char_encode_iso2022): Keep designated charsets if
2239         one of them includes the specified character.
2240
2241 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
2242
2243         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
2244
2245 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
2246
2247         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
2248
2249 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
2250
2251         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
2252         definition for non-UTF-2000 Mule.
2253         (latin_iso8859_3_to_ucs): Likewise.
2254         (latin_iso8859_4_to_ucs): Likewise.
2255         (latin_iso8859_9_to_ucs): Likewise.
2256         (latin_jisx0201_to_ucs): Likewise.
2257         (MIN_CHAR_THAI): Likewise.
2258         (MAX_CHAR_THAI): Likewise.
2259         (MIN_CHAR_GREEK): Likewise.
2260         (MAX_CHAR_GREEK): Likewise.
2261         (MIN_CHAR_HEBREW): Likewise.
2262         (MAX_CHAR_HEBREW): Likewise.
2263         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
2264         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
2265         (MIN_CHAR_CYRILLIC): Likewise.
2266         (MAX_CHAR_CYRILLIC): Likewise.
2267
2268 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
2269
2270         * char-ucs.h (breakup_char_1): Use
2271         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
2272         thai-tis620 and katakana-jisx0201 area.
2273
2274 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2275
2276         * char-ucs.h (breakup_char_1): Use
2277         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
2278         area.
2279
2280         * text-coding.c (reset_encoding_stream): Fixed.
2281         (char_encode_ucs4): Delete `& 255'.
2282
2283         * char-ucs.h (breakup_char_1): Use
2284         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
2285
2286 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2287
2288         * file-coding.c (Fmake_coding_system): Don't set up
2289         `codesys->fixed.size'.
2290         (encode_coding_no_conversion): Don't refer
2291         `str->codesys->fixed.size'.
2292
2293 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2294
2295         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
2296         (latin_a_char_to_byte1): Deleted.
2297         (latin_a_char_to_byte2): Deleted.
2298
2299 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2300
2301         * mule-charset.c (make_charset): Add new argument `ucs_min',
2302         `ucs_max' and `code_offset'.
2303         (charset_get_byte1): New implementation [delete specific charset
2304         depended implementations].
2305         (Fmake_charset): Modify for `make_charset'.
2306         (Fmake_reverse_direction_charset): Likewise.
2307         (complex_vars_of_mule_charset): Likewise.
2308
2309         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
2310         `code_offset'.
2311         (CHARSET_UCS_MIN): New macro.
2312         (CHARSET_UCS_MAX): New macro.
2313         (CHARSET_CODE_OFFSET): New macro.
2314         (MAKE_CHAR): Delete charset depended definitions [except
2315         katakana-jisx0201].
2316
2317 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
2318
2319         * char-ucs.h (breakup_char_1): Use
2320         `Vdefault_coded_charset_priority_list' for C0-Controls,
2321         Basic-Latin, C1-Controls and Latin-1-Supplement area.
2322
2323 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2324
2325         * char-ucs.h (charset_get_byte1): New function.
2326         (XCHARSET_GET_BYTE1): Deleted.
2327         (charset_get_byte2): New function.
2328         (XCHARSET_GET_BYTE2): Deleted.
2329         (Vdefault_coded_charset_priority_list): New external variable.
2330         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
2331         `Vdefault_preferred_coded_charset_list'.
2332
2333         * mule-charset.c (charset_get_byte1): New function.
2334         (charset_get_byte2): New function.
2335         (Vdefault_coded_charset_priority_list): New variable.
2336         (vars_of_mule_charset): Add new variable
2337         `default-coded-charset-priority-list'.
2338
2339 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2340
2341         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
2342         (XCHARSET_GET_BYTE2): New inline function.
2343         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
2344         `XCHARSET_GET_BYTE2'.
2345
2346 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2347
2348         * mule-charset.c (make_charset): Initialize
2349         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
2350         NULL if table is not defined.
2351
2352 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2353
2354         * text-coding.c (char_encode_shift_jis): Use
2355         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
2356         `ucs_to_latin_jisx0201'.
2357
2358         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
2359         (ucs_to_latin_iso8859_2): Deleted.
2360         (ucs_to_latin_iso8859_3): Deleted.
2361         (ucs_to_latin_iso8859_4): Deleted.
2362         (ucs_to_latin_iso8859_9): Deleted.
2363         (ucs_to_latin_viscii_lower): Deleted.
2364         (ucs_to_latin_viscii_upper): Deleted.
2365         (ucs_to_latin_tcvn5712): Deleted.
2366         (make_charset): Add new argument `decoding_table'; set up
2367         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
2368         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
2369         `decoding_table' is defined in UTF-2000.
2370         (Fmake_charset): Modify for `make_charset'.
2371         (Fmake_reverse_direction_charset): Likewise.
2372         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
2373         and `GENERATE_96_SET'.
2374
2375         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
2376         (ucs_to_latin_jisx0201): Deleted.
2377         (latin_iso8859_2_to_ucs): Deleted.
2378         (ucs_to_latin_iso8859_2): Deleted.
2379         (latin_iso8859_3_to_ucs): Deleted.
2380         (ucs_to_latin_iso8859_3): Deleted.
2381         (latin_iso8859_4_to_ucs): Deleted.
2382         (ucs_to_latin_iso8859_4): Deleted.
2383         (latin_iso8859_9_to_ucs): Deleted.
2384         (ucs_to_latin_iso8859_9): Deleted.
2385         (latin_viscii_lower_to_ucs): Deleted.
2386         (ucs_to_latin_viscii_lower): Deleted.
2387         (latin_viscii_upper_to_ucs): Deleted.
2388         (ucs_to_latin_viscii_upper): Deleted.
2389         (struct Lisp_Charset): Renamed `encoding_table' to
2390         `to_byte1_table'; add `to_byte2_table'.
2391         (CHARSET_DECODING_TABLE): New macro.
2392         (CHARSET_TO_BYTE1_TABLE): New macro.
2393         (CHARSET_TO_BYTE2_TABLE): New macro.
2394         (XCHARSET_DECODING_TABLE): New macro.
2395         (XCHARSET_TO_BYTE1_TABLE): New macro.
2396         (XCHARSET_TO_BYTE2_TABLE): New macro.
2397         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
2398         tables.
2399         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
2400         don't use `ucs_to_*' tables.
2401
2402 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2403
2404         * text-coding.c (Fmake_coding_system): Don't set up
2405         `codesys->fixed.size'.
2406         (encode_coding_no_conversion): Use `if' instead of `switch'.
2407
2408         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
2409
2410 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2411
2412         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
2413         (Fmake_charset): Modify for `make_charset'.
2414         (Fmake_reverse_direction_charset): Likewise.
2415         (complex_vars_of_mule_charset): Likewise.
2416
2417 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2418
2419         * text-coding.c (char_encode_shift_jis): Use table
2420         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
2421
2422 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2423
2424         * text-coding.c (text_encode_generic): Use `if' instead of
2425         `switch'.
2426         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
2427         decode JIS-Latin.
2428
2429 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2430
2431         * text-coding.c (encode_coding_sjis): Deleted.
2432         (char_encode_shift_jis): New function.
2433         (char_finish_shift_jis): New function.
2434         (reset_encoding_stream): Set up `encode_char' and `finish' for
2435         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
2436         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
2437         (char_encode_utf8): Treat `eol_type'.
2438
2439 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2440
2441         * file-coding.c (decode_coding_iso2022): Use
2442         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
2443
2444 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2445
2446         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2447         to 0.7 (Hirano).
2448
2449 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2450
2451         * char-lb.h (CHAR_COLUMNS): New macro.
2452
2453 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2454
2455         * text-coding.c (char_encode_ucs4): New function.
2456         (char_finish_ucs4): New function.
2457         (encode_coding_ucs4): Deleted.
2458         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
2459         (text_encode_generic): Delete local variable `charset' and `half'.
2460         (ucs_to_mule_table): Deleted.
2461         (mule_to_ucs_table): Deleted.
2462         (Fset_ucs_char): Deleted.
2463         (ucs_to_char): Deleted.
2464         (Fucs_char): Deleted.
2465         (Fset_char_ucs): Deleted.
2466         (Fchar_ucs): Deleted.
2467         (decode_ucs4): Deleted.
2468         (mule_char_to_ucs4): Deleted.
2469         (encode_ucs4): Deleted.
2470         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
2471         (decode_coding_utf8): Likewise.
2472         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
2473         (char_encode_iso2022): Fixed.
2474         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
2475         `Fset_char_ucs' and `Fchar_ucs'.
2476         (complex_vars_of_file_coding): Don't initialize
2477         `ucs_to_mule_table'.
2478
2479         * objects-tty.c (tty_initialize_font_instance): Don't use
2480         `XCHARSET_COLUMNS'.
2481
2482         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
2483         UTF-2000.
2484
2485         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
2486         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
2487
2488         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
2489         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
2490         (emchar_string_displayed_columns): Likewise.
2491
2492         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
2493         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
2494         (string_column_at_point): Likewise.
2495         (Fmove_to_column): Likewise.
2496
2497         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
2498         `encoding_table' and `decoding_table'.
2499         (CHARSET_REP_BYTES): Deleted.
2500         (XCHARSET_REP_BYTES): Deleted.
2501         (XCHARSET_COLUMNS): Deleted.
2502         (CHAR_COLUMNS): New macro.
2503         (lookup_composite_char): Deleted unconditionally.
2504         (composite_char_string): Likewise.
2505
2506 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2507
2508         * char-ucs.h (Emchar_to_byte_table): New type.
2509         (get_byte_from_character_table): New function interface.
2510         (Vcharset_latin_jisx0201): New variable.
2511         (latin_jisx0201_to_ucs): New variable.
2512         (ucs_to_latin_jisx0201): New variable.
2513         (Vcharset_latin_iso8859_2): New variable.
2514         (latin_iso8859_2_to_ucs): New variable.
2515         (ucs_to_latin_iso8859_2): New variable.
2516         (Vcharset_latin_iso8859_3): New variable.
2517         (latin_iso8859_3_to_ucs): New variable.
2518         (ucs_to_latin_iso8859_3): New variable.
2519         (Vcharset_latin_iso8859_4): New variable.
2520         (latin_iso8859_4_to_ucs): New variable.
2521         (ucs_to_latin_iso8859_4): New variable.
2522         (Vcharset_latin_iso8859_9): New variable.
2523         (latin_iso8859_9_to_ucs): New variable.
2524         (ucs_to_latin_iso8859_9): New variable.
2525         (Vcharset_latin_viscii_lower): New variable.
2526         (latin_viscii_lower_to_ucs): New variable.
2527         (ucs_to_latin_viscii_lower): New variable.
2528         (Vcharset_latin_viscii_upper): New variable.
2529         (latin_viscii_upper_to_ucs): New variable.
2530         (ucs_to_latin_viscii_upper): New variable.
2531         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
2532         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
2533         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
2534         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
2535         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
2536         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
2537         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
2538         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
2539         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
2540         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
2541
2542         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
2543         (Vcharset_latin_viscii_upper): New variable.
2544         (make_byte_from_character_table): New function.
2545         (put_byte_from_character_table): New function.
2546         (get_byte_from_character_table): New function.
2547         (CHAR96): New macro.
2548         (ucs_to_latin_jisx0201): New variable.
2549         (latin_jisx0201_to_ucs): New variable.
2550         (ucs_to_latin_iso8859_2): New variable.
2551         (latin_iso8859_2_to_ucs): New variable.
2552         (ucs_to_latin_iso8859_3): New variable.
2553         (latin_iso8859_3_to_ucs): New variable.
2554         (ucs_to_latin_iso8859_4): New variable.
2555         (latin_iso8859_4_to_ucs): New variable.
2556         (ucs_to_latin_iso8859_9): New variable.
2557         (latin_iso8859_9_to_ucs): New variable.
2558         (ucs_to_latin_viscii_lower): New variable.
2559         (latin_viscii_lower_to_ucs): New variable.
2560         (ucs_to_latin_viscii_upper): New variable.
2561         (latin_viscii_upper_to_ucs): New variable.
2562         (ucs_to_latin_tcvn5712): New variable.
2563         (latin_tcvn5712_to_ucs): New variable.
2564         (Qlatin_viscii_lower): New variable.
2565         (Qlatin_viscii_upper): New variable.
2566         (syms_of_mule_charset): Set up new symbol
2567         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
2568         (complex_vars_of_mule_charset): Set up new charset
2569         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
2570         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
2571         `ucs_to_<CHARSET>' tables.
2572
2573 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
2574
2575         * text-coding.c: New file.
2576
2577 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2578
2579         * mule-charset.c (Fmake_char): Fix problem of 256-set.
2580
2581         * char-ucs.h (Vcharset_ucs_bmp): New variable.
2582         (MAKE_CHAR): Modify for `ucs-bmp'.
2583         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
2584         non-MULE characters of BMP.
2585
2586 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
2587
2588         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2589         to 0.6.
2590
2591 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2592
2593         * lstream.h:
2594         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
2595         - Include character.h for `CHAR_ASCII_P'.
2596
2597         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
2598
2599         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
2600         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
2601
2602         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
2603         (BYTE_C0_P): Likewise.
2604         (BYTE_C1_P): Likewise.
2605         (Lstream_get_emchar_1): Likewise.
2606         (Lstream_fput_emchar): Likewise.
2607         (Lstream_funget_emchar): Likewise.
2608         (copy_internal_to_external): Likewise.
2609         (copy_external_to_internal): Likewise.
2610
2611         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
2612         (BYTE_C0_P): Likewise.
2613         (BYTE_C1_P): Likewise.
2614         (Lstream_get_emchar_1): Likewise.
2615         (Lstream_fput_emchar): Likewise.
2616         (Lstream_funget_emchar): Likewise.
2617         (copy_internal_to_external): Likewise.
2618         (copy_external_to_internal): Likewise.
2619
2620         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
2621         (REP_BYTES_BY_FIRST_BYTE): Likewise.
2622
2623         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
2624         (BYTE_ASCII_P): Moved to mb-1byte.h.
2625
2626 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2627
2628         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
2629
2630         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
2631         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
2632         (VALID_CHARPTR_P): Moved to mb-*byte.h.
2633         (VALIDATE_CHARPTR_BACKWARD): Likewise.
2634         (VALIDATE_CHARPTR_FORWARD): Likewise.
2635         (simple_charptr_emchar): Moved to mb-multibyte.h.
2636         (simple_set_charptr_emchar): Likewise.
2637         (simple_charptr_copy_char): Likewise.
2638         (non_ascii_charptr_emchar): Likewise.
2639         (non_ascii_set_charptr_emchar): Likewise.
2640         (non_ascii_charptr_copy_char): Likewise.
2641         (charptr_emchar): Moved to mb-*byte.h.
2642         (set_charptr_emchar): Likewise.
2643         (charptr_copy_char): Likewise.
2644
2645         * mb-1byte.h, mb-multibyte.h: New files.
2646
2647 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2648
2649         * mb-utf-8.h (MULTIBYTE): New macro.
2650         (MAX_EMCHAR_LEN): Moved from buffer.h.
2651         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
2652
2653         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
2654
2655         * mb-lb.h, multibyte.h: New files.
2656
2657         * char-1byte.h (Charset_ID): Moved from buffer.h.
2658         (MIN_LEADING_BYTE): Likewise.
2659         (LEADING_BYTE_ASCII): Likewise.
2660         (NUM_LEADING_BYTES): Likewise.
2661         (CHARSETP): Likewise.
2662         (CHARSET_BY_LEADING_BYTE): Likewise.
2663         (XCHARSET_LEADING_BYTE): Likewise.
2664         (XCHARSET_GRAPHIC): Likewise.
2665         (XCHARSET_COLUMNS): Likewise.
2666         (XCHARSET_DIMENSION): Likewise.
2667         (CHAR_CHARSET): Likewise.
2668         (CHAR_LEADING_BYTE): Likewise.
2669         (BREAKUP_CHAR): Likewise.
2670         (Vcharset_ascii): Likewise.
2671
2672         * buffer.h: Include multibyte.h unconditionally.
2673         (VALID_CHARPTR_P): Moved to multibyte.h.
2674         (ASSERT_VALID_CHARPTR): Likewise.
2675         (REAL_INC_CHARPTR): Likewise.
2676         (REAL_INC_CHARBYTIND): Likewise.
2677         (REAL_DEC_CHARPTR): Likewise.
2678         (INC_CHARPTR): Likewise.
2679         (INC_CHARBYTIND): Likewise.
2680         (DEC_CHARPTR): Likewise.
2681         (VALIDATE_CHARPTR_BACKWARD): Likewise.
2682         (VALIDATE_CHARPTR_FORWARD): Likewise.
2683         (charptr_n_addr): Likewise.
2684         (MAX_EMCHAR_LEN): Moved to mb-*.h.
2685         (simple_charptr_emchar): Moved to multibyte.h.
2686         (simple_set_charptr_emchar): Likewise.
2687         (simple_charptr_copy_char): Likewise.
2688         (non_ascii_charptr_emchar): Likewise.
2689         (non_ascii_set_charptr_emchar): Likewise.
2690         (non_ascii_charptr_copy_char): Likewise.
2691         (charptr_emchar): Likewise.
2692         (set_charptr_emchar): Likewise.
2693         (charptr_copy_char): Likewise.
2694         (charptr_emchar_n): Likewise.
2695         (Charset_ID): Moved to char-1byte.h.
2696         (Vcharset_ascii): Likewise.
2697         (CHAR_CHARSET): Likewise.
2698         (CHAR_LEADING_BYTE): Likewise.
2699         (LEADING_BYTE_ASCII): Likewise.
2700         (NUM_LEADING_BYTES): Likewise.
2701         (MIN_LEADING_BYTE): Likewise.
2702         (CHARSETP): Likewise.
2703         (CHARSET_BY_LEADING_BYTE): Likewise.
2704         (XCHARSET_LEADING_BYTE): Likewise.
2705         (XCHARSET_GRAPHIC): Likewise.
2706         (XCHARSET_COLUMNS): Likewise.
2707         (XCHARSET_DIMENSION): Likewise.
2708         (BREAKUP_CHAR): Likewise.
2709
2710 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2711
2712         * character.h: Add document about interface for characters.
2713
2714         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
2715         (MAKE_CHAR): Delete comment about
2716         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
2717         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
2718         (BREAKUP_CHAR): Modify name of arguments.
2719         (CHAR_CHARSET): Modify name of argument.
2720
2721         * buffer.h: Delete document about Emchar accessors.
2722
2723 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2724
2725         * character.h (CHAR_INTP): Moved from buffer.h
2726         (CHAR_OR_CHAR_INTP): Likewise.
2727         (XCHAR_OR_CHAR_INT): Likewise.
2728         (CHECK_CHAR_COERCE_INT): Likewise.
2729
2730         * buffer.h (CHAR_INTP): Moved to character.h
2731         (CHAR_OR_CHAR_INTP): Likewise.
2732         (XCHAR_OR_CHAR_INT): Likewise.
2733         (CHECK_CHAR_COERCE_INT): Likewise.
2734
2735 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2736
2737         * character.h:
2738         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
2739         - Include char-1byte.h, char-lb.h or char-ucs.h.
2740
2741         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
2742
2743         * buffer.h: Include character unconditionally.
2744         (valid_char_p): Moved to char-*.h.
2745         (non_ascii_valid_char_p): Moved to char-lb.h.
2746
2747         * char-1byte.h, char-lb.h, char-ucs.h: New files.
2748
2749 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2750
2751         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
2752         in UTF-2000 because it is not ported yet and not to use
2753         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
2754         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
2755         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
2756
2757         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
2758         (CHAR_ASCII_P): Moved from character.h.
2759
2760         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
2761         (CHAR_ASCII_P): Likewise.
2762         (CHAR_FIELD1_MASK): Deleted.
2763         (CHAR_FIELD2_MASK): Deleted.
2764         (CHAR_FIELD3_MASK): Deleted.
2765         (MAX_CHAR_BASIC_LATIN): New macro.
2766         (CHAR_FIELD1): Deleted.
2767         (CHAR_FIELD2_INTERNAL): Deleted.
2768         (CHAR_FIELD3_INTERNAL): Deleted.
2769         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
2770         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
2771         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
2772         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
2773         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
2774         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
2775         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
2776         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
2777         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
2778         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
2779         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
2780         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
2781         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
2782         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
2783         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
2784         (MIN_CHAR_COMPOSITION): Deleted.
2785         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
2786         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
2787
2788 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
2789
2790         * buffer.h: Include mb-utf-8.h in UTF-2000.
2791
2792         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
2793
2794         * mb-utf-8.h: New file.
2795
2796 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
2797
2798         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
2799         instead of `int'.
2800
2801         * mule-charset.h, buffer.h (Charset_ID): New type.
2802
2803 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
2804
2805         * mule-canna.c (c2mu): Use `MAKE_CHAR',
2806         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
2807         instead of `MULE_CHAR_PRIVATE_OFFSET',
2808         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
2809         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
2810         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
2811
2812         * character.h (Vcharset_japanese_jisx0212): New variable
2813         definition.
2814
2815 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
2816
2817         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
2818         (charset_by_attributes): Delete array about direction.
2819         (latin_a_char_to_charset): New variable in UTF-2000.
2820         (latin_a_char_to_byte1): New variable in UTF-2000.
2821         (latin_a_char_to_byte2): New variable in UTF-2000.
2822         (Qucs_bmp): New variable.
2823         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
2824         `Bufbyte'.
2825         (next_allocated_2_byte_leading_byte): Likewise.
2826         (non_ascii_set_charptr_emchar): Likewise.
2827         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
2828         `CHARSET_TYPE_256X256' in UTF-2000; modify for
2829         `charset_by_attributes'.
2830         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
2831         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
2832         and `CHARSET_BY_LEADING_BYTE'.
2833         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
2834         `utf-2000-version' to `vars_of_mule_charset'.
2835         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
2836         define `leading-code-private-11' in UTF-2000; move setting of
2837         `utf-2000-version' from `syms_of_mule_charset'.
2838         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
2839         UTF-2000.
2840
2841         * character.h (Charset_ID): New type.
2842         (LEADING_BYTE_UCS_BMP): New macro.
2843         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
2844         (CHARSET_ID_OFFSET_94): New macro.
2845         (MIN_CHARSET_ID_PRIVATE_94): New macro.
2846         (MAX_CHARSET_ID_PRIVATE_94): New macro.
2847         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
2848         final-byte.
2849         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
2850         (LEADING_BYTE_LATIN_JISX0201): Likewise.
2851         (CHARSET_ID_OFFSET_96): New macro.
2852         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
2853         CHARSET_ID_OFFSET_96 and final-byte.
2854         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
2855         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
2856         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
2857         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
2858         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
2859         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
2860         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
2861         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
2862         (LEADING_BYTE_THAI_TIS620): Likewise.
2863         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
2864         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
2865         (CHARSET_ID_OFFSET_94x94): New macro.
2866         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
2867         CHARSET_ID_OFFSET_94x94 and final-byte.
2868         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
2869         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
2870         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
2871         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
2872         (LEADING_BYTE_CHINESE_GB2312): Likewise.
2873         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
2874         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
2875         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
2876         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
2877         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
2878         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
2879         (CHARSET_TYPE_128X128): New macro.
2880         (CHARSET_TYPE_256X256): New macro.
2881         (XCHARSET_PRIVATE_P): Delete unconditionally.
2882         (charset_by_attributes): Delete array about direction.
2883         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
2884         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
2885         (MIN_CHAR_94): New macro.
2886         (MAX_CHAR_94): New macro.
2887         (MIN_CHAR_96): New macro.
2888         (MAX_CHAR_96): New macro.
2889         (MIN_CHAR_94x94): New macro.
2890         (MAX_CHAR_94x94): New macro.
2891         (MIN_CHAR_96x96): New macro.
2892         (MAX_CHAR_96x96): New macro.
2893         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
2894         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
2895         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
2896         - 32)'.
2897         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
2898         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
2899         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
2900         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
2901         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
2902         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
2903         `XCHARSET_LEADING_BYTE' to make code-point.
2904         (latin_a_char_to_charset): New variable.
2905         (latin_a_char_to_byte1): New variable.
2906         (latin_a_char_to_byte2): New variable.
2907         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
2908         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
2909         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
2910
2911         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
2912         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
2913         (find_charsets_in_emchar_string): Likewise.
2914         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
2915
2916         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
2917         `int'.
2918         (decode_coding_iso2022): Likewise.
2919
2920         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
2921         of `unsigned char'.
2922
2923         * redisplay.c (redisplay_text_width_emchar_string): Use
2924         `Charset_ID' instead of `unsigned char'.
2925         (redisplay_frame_text_width_string): Likewise.
2926
2927         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
2928         `unsigned char'.
2929
2930         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
2931         instead of `unsigned char'.
2932         (face_cachel_charset_font_metric_info): Likewise.
2933
2934         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
2935         (get_non_ascii_char_table_value): Likewise.
2936         (get_char_table): Likewise.
2937         (put_char_table): Likewise.
2938         (map_over_other_charset): Likewise.
2939         (map_char_table): Likewise.
2940
2941         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
2942         instead of `unsigned char'.
2943
2944 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
2945
2946         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
2947         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
2948
2949         * mule-charset.c (leading_code_private_11): Don't define in
2950         UTF-2000.
2951
2952         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
2953         in UTF-2000 because it is not ported yet and not to use
2954         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
2955
2956 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
2957
2958         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
2959
2960 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2961
2962         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
2963         in UTF-2000.
2964
2965         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
2966         of unsigned char to store leading-byte.
2967
2968         * chartab.c (get_non_ascii_char_table_value): Don't use
2969         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
2970
2971         * file-coding.c (encode_coding_big5): Delete bogus implementation
2972         in UTF2000.
2973
2974         * character.h (LEADING_BYTE_*): Delete definition for
2975         non-UTF-2000.
2976         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
2977         (LEADING_BYTE_PREFIX_P): Deleted.
2978         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
2979         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
2980         (BUFBYTE_LEADING_BYTE_P): Deleted.
2981         (CHARSET_PRIVATE_P): Deleted unconditionally.
2982         (rep_bytes_by_first_byte): Deleted unconditionally.
2983         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
2984         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
2985         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
2986         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
2987         (CHAR_FIELD2): Deleted.
2988         (CHAR_FIELD3): Deleted.
2989         (MAKE_CHAR): Delete definition for non-UTF-2000.
2990         (BREAKUP_CHAR_1_UNSAFE): Deleted.
2991         (breakup_char_1): New implementation.
2992         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
2993         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
2994
2995 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2996
2997         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
2998         condition.
2999
3000 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3001
3002         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
3003         (CHARSET_PRIVATE_P): Likewise.
3004         (XCHARSET_PRIVATE_P): Likewise.
3005         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
3006
3007         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
3008         UTF2000.
3009         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
3010
3011 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3012
3013         * character.h (LEADING_BYTE_*): Changed in UTF2000.
3014         (NUM_LEADING_BYTES): Changed from 128 to 256.
3015         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3016         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
3017         UTF2000.
3018         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3019
3020         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
3021         UTF2000.
3022         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
3023         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
3024         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
3025         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
3026         (Qchinese_cns11643_3): New variable in UTF2000.
3027         (Qchinese_cns11643_4): New variable in UTF2000.
3028         (Qchinese_cns11643_5): New variable in UTF2000.
3029         (Qchinese_cns11643_6): New variable in UTF2000.
3030         (Qchinese_cns11643_7): New variable in UTF2000.
3031         (syms_of_mule_charset): Define `chinese-cns11643-3',
3032         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3033         and `chinese-cns11643-7' in UTF2000.
3034         (vars_of_mule_charset): Initialize
3035         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
3036         + 1 in UTF2000.
3037         (complex_vars_of_mule_charset): Setup charset
3038         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
3039         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
3040
3041 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3042
3043         * mule-charset.c: Move setting for `leading-code-private-11' from
3044         `syms_of_mule_charset' to `vars_of_mule_charset'.
3045
3046 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3047
3048         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
3049         and `NUM_LEADING_BYTES' in assert.
3050
3051 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3052
3053         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
3054         instead of 128.
3055         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
3056         `NUM_LEADING_BYTES' instead of 128.
3057
3058 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3059
3060         * mule-charset.h (charset_by_leading_byte): Use
3061         `NUM_LEADING_BYTES' instead of 128.
3062         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
3063
3064         * mule-charset.c (charset_by_leading_byte): Use
3065         `NUM_LEADING_BYTES' instead of 128.
3066         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
3067
3068         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
3069         128.
3070
3071 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
3072
3073         * mule-charset.c (syms_of_mule_charset): Update to
3074         0.4 (Shin-Imamiya).
3075
3076 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
3077
3078         * file-coding.c (encode_coding_sjis): New implementation for
3079         UTF2000.  (decode_coding_sjis): Ditto.
3080
3081 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3082
3083         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
3084         Don't define in UTF2000.
3085
3086         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
3087         defined.
3088
3089         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3090         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
3091         MULE.
3092
3093 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3094
3095         * config.h.in (CHAR_IS_UCS4): New macro.
3096
3097         * mule-charset.c (rep_bytes_by_first_byte): Modify for
3098         conventional MULE representation.
3099         (syms_of_mule_charset): Update to 0.3 (Imamiya).
3100
3101         * mule-charset.h: Reverted to original.
3102
3103         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3104         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
3105         "mule-charset.h" if CHAR_IS_UCS4 is defined.
3106
3107         * character.h: New file.
3108
3109         * file-coding.c (Fmake_coding_system): Set 1 to
3110         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
3111         defined.
3112         (encode_coding_no_conversion): New implementation for UTF2000.
3113
3114         * file-coding.h (struct Lisp_Coding_System): Add new member
3115         `fixed.size'.
3116
3117 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
3118
3119         * file-coding.c (decode_coding_iso2022): Code-point arguments of
3120         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
3121         (encode_coding_iso2022): New implementation for UTF2000.
3122
3123 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3124
3125         * mule-canna.c (c2mu): New implementation for UTF2000.
3126         (m2c): Likewise.
3127
3128 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3129
3130         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
3131
3132 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3133
3134         * file-coding.c (reset_encoding_stream): Set 0 to
3135         `str->iso2022.current_char_boundary' in UTF2000.
3136         (encode_utf8): Don't define in UTF2000.
3137         (encode_coding_utf8): New implementation for UTF-8 representation
3138         of UTF2000.
3139         (complex_vars_of_file_coding): Define coding-system `utf-8'.
3140
3141 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3142
3143         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
3144
3145         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
3146         UTF2000.
3147         (REP_BYTES_BY_FIRST_BYTE): Likewise.
3148
3149         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
3150
3151         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
3152         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
3153         as UTF-8 in UTF2000.
3154         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
3155         (non_ascii_valid_char_p): Don't define in UTF2000.
3156         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
3157         (Lstream_get_emchar_1): Likewise.
3158         (utf-2000-version): New variable in UTF2000.
3159
3160         * lread.c (read_escape): Add new reader `u'.
3161
3162         * insdel.c (three_to_one_table): Don't define in UTF2000.
3163         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
3164         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
3165         UTF2000.
3166         (bytind_to_bufpos_func): Likewise.
3167         (buffer_mule_signal_inserted_region): Likewise.
3168         (vars_of_insdel): Don't initialize `three_to_one_table'.
3169         (init_buffer_text): Use `buf->text->mule_size' instead of
3170         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
3171         UTF2000.
3172
3173         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
3174         UTF-8 representation in UTF2000.
3175         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
3176         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
3177         (decode_coding_iso2022): Don't define local variable `lb' in
3178         UTF2000; don't use LEADING_BYTE in UTF2000; use
3179         `DECODE_ADD_UCS_CHAR' in UTF2000.
3180         (convert_to_external_format): Decode as UTF-8 in UTF2000.
3181
3182         * config.h.in (UTF2000): New macro.
3183
3184         * buffer.h (struct buffer_text): Add new member `mule_size' and
3185         don't add `mule_shifter' and `mule_three_p' in UTF2000.
3186         (valid_char_p): Return always 1 in UTF2000.
3187         (MAX_EMCHAR_LEN): 6 in UTF2000.
3188         (three_to_one_table): Don't define in UTF2000.
3189         (real_bufpos_to_bytind): Modify for UTF-8 representation in
3190         UTF2000.
3191         (real_bytind_to_bufpos): Likewise.
3192
3193         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
3194
3195 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3196
3197         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
3198         representation change.
3199         (Vutf_2000_version): New variable.
3200         (leading_code_private_11): New variable.
3201         (syms_of_mule_charset): Add new variables `utf-2000-version' and
3202         `leading-code-private-11'.
3203
3204         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
3205         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
3206         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
3207         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
3208         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
3209         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
3210         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
3211         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
3212         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
3213         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
3214         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
3215         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
3216         (MIN_CHAR_GREEK): New macro.
3217         (MAX_CHAR_GREEK): New macro.
3218         (MIN_CHAR_CYRILLIC): New macro.
3219         (MAX_CHAR_CYRILLIC): New macro.
3220         (MIN_CHAR_HEBREW): New macro.
3221         (MAX_CHAR_HEBREW): New macro.
3222         (MIN_CHAR_THAI): New macro.
3223         (MAX_CHAR_THAI): New macro.
3224         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
3225         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
3226         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
3227         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
3228         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
3229         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
3230         (CHAR_FIELD2): New inline function.
3231         (CHAR_FIELD3): New inline function.
3232         (MULE_CHAR_PRIVATE_OFFSET): New macro.
3233         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
3234         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
3235         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
3236         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
3237         (MIN_CHAR_COMPOSITION): Likewise.
3238         (CHAR_LEADING_BYTE): Modified for character representation change.
3239         (MAKE_CHAR): Likewise.
3240
3241         * lisp.h (Vcharset_latin_iso8859_1): New variable.
3242         (Vcharset_greek_iso8859_7): Likewise.
3243         (Vcharset_cyrillic_iso8859_5): Likewise.
3244         (Vcharset_hebrew_iso8859_8): Likewise.
3245         (Vcharset_thai_tis620): Likewise.
3246         (Vcharset_katakana_jisx0201): Likewise.
3247
3248 2001-01-17  Martin Buchholz <martin@xemacs.org>
3249
3250         * XEmacs 21.2.41 "Polyhymnia" is released.
3251
3252 2001-01-16  Didier Verna  <didier@xemacs.org>
3253
3254         * glyphs.c (image_instantiate): don't use fallbacks when
3255         instantiating a face's background pixmap by inheritance.
3256
3257 2001-01-14  Mike Sperber <mike@xemacs.org>
3258
3259         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
3260         Conditionalize accordingly.
3261
3262 2001-01-16  Martin Buchholz  <martin@xemacs.org>
3263
3264         * dumper.c (pdump_file_get): Fix a compiler warning.
3265
3266 2001-01-15  Martin Buchholz  <martin@xemacs.org>
3267
3268         Make Purify happy when pdumping.
3269         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
3270         iniitalizing all bits of new lisp object memory.
3271         * symbols.c (Fmake_local_variable): Likewise.
3272         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
3273         * symbols.c (Fdefvaralias): Likewise.
3274         * mule-charset.c (vars_of_mule_charset): Likewise.
3275
3276 2001-01-15  Martin Buchholz  <martin@xemacs.org>
3277         Add the `-nd' flag when running pre-dump operations under the debugger.
3278         * .dbxrc (run-temacs): Add `-nd'.
3279         * .dbxrc (update-elc): Likewise.
3280         * .dbxrc (dump-temacs): Likewise.
3281         * .gdbinit (run-temacs): Likewise.
3282         * .gdbinit (check-temacs): Likewise.
3283         * .gdbinit (update-elc): Likewise.
3284         * .gdbinit (dump-temacs): Likewise.
3285
3286 2001-01-14  Martin Buchholz  <martin@xemacs.org>
3287
3288         Allow building 64-bit executables on AIX with GNU malloc, e.g.
3289         export OBJECT_MODE=64
3290         configure --pdump --use-union-type=no
3291         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
3292         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
3293
3294         * miscplay.c (sndcnv8U_2mono):
3295         Avoid two uses of `++' in the same expression.
3296         Suppresses a GCC warning.
3297
3298 2001-01-13  Martin Buchholz  <martin@xemacs.org>
3299
3300         Make sure future compilers don't miscompile alloc.c.
3301         * alloc.c:
3302         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
3303         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
3304
3305 2001-01-12  Martin Buchholz  <martin@xemacs.org>
3306
3307         * dumper.c: A little post-pdump-rename comment fixup.
3308
3309 2001-01-09  Jerry James  <james@eecs.ku.edu>
3310
3311         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
3312
3313 2001-01-13  Martin Buchholz  <martin@xemacs.org>
3314
3315         * *.[ch]: Globally rename symbols using the following `pdump-rename'
3316         script:
3317         #!/bin/sh
3318         replace_symbol () {
3319           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
3320         }
3321
3322         replace_symbol pdump_wire_lists pdump_weak_object_chains
3323         replace_symbol pdump_wire_list dump_add_weak_object_chain
3324
3325         replace_symbol pdump_wires pdump_root_objects
3326         replace_symbol pdump_wire dump_add_root_object
3327
3328         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
3329         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
3330
3331         replace_symbol dumpstructinfos pdump_root_struct_ptrs
3332         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
3333         replace_symbol dumpstructinfo pdump_root_struct_ptr
3334         replace_symbol dumpstruct dump_add_root_struct_ptr
3335
3336         replace_symbol dumpopaque dump_add_opaque
3337         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
3338         replace_symbol dumpopaqueinfos pdump_opaques
3339         replace_symbol dumpopaqueinfo pdump_opaque
3340
3341         replace_symbol nb_structdump nb_root_struct_ptrs
3342         replace_symbol nb_opaquedump nb_opaques
3343
3344         replace_symbol align_table pdump_align_table
3345         replace_symbol dump_header pdump_header
3346
3347         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
3348         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
3349
3350
3351 2001-01-12  Martin Buchholz  <martin@xemacs.org>
3352
3353         * s/aix4.h: Keep the C for AIX compiler from overaggressively
3354         optimizing bytecount_to_charcount().
3355
3356 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
3357
3358         * config.h.in:
3359         (HAVE_DLFCN_H): Removed.
3360         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
3361
3362 2001-01-06  Martin Buchholz  <martin@xemacs.org>
3363
3364         Portable dumper maintainability improvements.
3365         * alloc.c (staticpro):
3366         * alloc.c (staticpro_nodump):
3367         * alloc.c (garbage_collect_1):
3368         * alloc.c (reinit_alloc_once_early):
3369         * alloc.c (init_alloc_once_early):
3370         * alloc.c: Move dumper functions to alloc.c.
3371         * dumper.c (pdump_backtrace):
3372         * dumper.c (pdump_dump_structs):
3373         * dumper.c (pdump_dump_opaques):
3374         * dumper.c (pdump_dump_rtables):
3375         * dumper.c (pdump_dump_wired):
3376         * dumper.c (pdump):
3377         * dumper.c (pdump_load_check):
3378         * dumper.c (pdump_load_finish):
3379         * dumper.c (pdump_file_unmap):
3380         * dumper.c (pdump_file_get):
3381         * dumper.c (pdump_resource_free):
3382         * dumper.c (pdump_resource_get):
3383         * dumper.c (pdump_file_free):
3384         * dumper.c (pdump_file_try):
3385         * dumper.c (pdump_load):
3386         Remove fixed size limits on staticpro(), staticpro_nodump(),
3387         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
3388         Remove custom code for dumping lrecord_implementations_table - use
3389         dumpopaque instead.
3390         Remove (most of the) custom code for dumping staticpros - dump it
3391         like any other dynarr.
3392
3393         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
3394         * dumper.c: Moved functions from alloc.c.
3395         * alloc.c (dumpstruct): Moved to dumper.c.
3396         * alloc.c (dumpopaque): Likewise.
3397         * alloc.c (pdump_wire): Likewise.
3398         * alloc.c (pdump_wire_list): Likewise.
3399
3400         * lisp.h (Dynarr_sizeof): New.
3401         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
3402         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
3403         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
3404
3405         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
3406         * lisp.h (dumpopaque): ditto.
3407         * lisp.h (pdump_wire): ditto.
3408         * lisp.h (pdump_wire_list): ditto.
3409
3410 2001-01-09  Martin Buchholz  <martin@xemacs.org>
3411
3412         * make-src-depend (PrintPatternDeps):
3413         Use `sort' to make output independent of perl version.
3414
3415 2001-01-08  Martin Buchholz  <martin@xemacs.org>
3416
3417         Port to Netbsd 1.5.
3418         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
3419         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
3420
3421 2001-01-03  Didier Verna  <didier@xemacs.org>
3422
3423         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
3424         that `focus_frame' is alive before thinking of calling
3425         `redisplay_redraw_cursor' on it.
3426
3427 2001-01-08  Martin Buchholz <martin@xemacs.org>
3428
3429         * XEmacs 21.2.40 is released.
3430
3431 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
3432
3433         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
3434
3435 2001-01-06  Martin Buchholz  <martin@xemacs.org>
3436
3437         * alloc.c (dbg_valmask): Make const.
3438         * alloc.c (dbg_typemask): Make const.
3439         * alloc.c (dbg_USE_UNION_TYPE): Make const.
3440         * alloc.c (dbg_valbits): Make const.
3441         * alloc.c (dbg_gctypebits): Make const.
3442
3443 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
3444
3445         * redisplay-x.c (x_bevel_area):
3446         redisplay.h (struct rune):
3447         Typo fixes in comments.
3448
3449 2001-01-05  Andy Piper  <andy@xemacs.org>
3450
3451         * glyphs-x.c (x_redisplay_widget): use size changed for offset
3452         adjustment.
3453
3454         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
3455
3456 2001-01-05  Martin Buchholz  <martin@xemacs.org>
3457
3458         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
3459
3460         * mule-ccl.c (stack_idx_of_map_multiple):
3461         Non const global data must not be initialized!
3462         Found by MIYASHITA Hisashi.
3463
3464 2001-01-02  Andy Piper  <andy@xemacs.org>
3465
3466         * frame.c (change_frame_size): make sure frame size is always
3467         marked as changed.
3468
3469         * glyphs.c (image_instance_layout): minor code reuse.
3470
3471         * window.c (Fcurrent_window_configuration): revert previous
3472         change.
3473
3474 2001-01-02  Martin Buchholz  <martin@xemacs.org>
3475
3476         * glyphs.h:
3477         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
3478
3479 2000-12-31  Andy Piper  <andy@xemacs.org>
3480
3481         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
3482         when widget gets unmapped.
3483
3484         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
3485         function. Make sure widgets losing focus don't just drop it.
3486         (handle_focus_event_1): record the widget with focus.
3487
3488 2000-12-31  Andy Piper  <andy@xemacs.org>
3489
3490         * window.c (allocate_window): use
3491         make_image_instance_cache_hash_table.
3492         (make_dummy_parent): ditto.
3493         (Fset_window_configuration): ditto.
3494
3495         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
3496
3497         * glyphs.c (process_image_string_instantiator): use
3498         INSTANTIATOR_TYPE.
3499         (get_image_instantiator_governing_domain): ditto.
3500         (normalize_image_instantiator): ditto.
3501         (instantiate_image_instantiator): ditto.
3502         (make_image_instance_1): ditto.
3503         (image_instantiate): ditto. Key on glyph *and* instantiator type.
3504         (instantiator_eq_equal): new function for use with instance hash
3505         tables.
3506         (instantiator_eq_hash): ditto.
3507         (make_image_instance_cache_hash_table): create a suitable hash
3508         table for storing image instances.
3509
3510         * elhash.h (hash_table_weakness): new internal weakness type
3511         HASH_TABLE_KEY_CAR_VALUE_WEAK.
3512         declare new functions.
3513
3514         * elhash.c (finish_marking_weak_hash_tables): introduce yet
3515         another weakness type for glyphs.
3516         (make_standard_lisp_hash_table): new function split out from
3517         make_general_lisp_hash_table.
3518         (make_lisp_hash_table): call make_standard_lisp_hash_table.
3519         (hash_table_instantiate): ditto.
3520         (Fmake_hash_table): ditto.
3521
3522 2000-12-31  Martin Buchholz <martin@xemacs.org>
3523
3524         * XEmacs 21.2.39 is released.
3525
3526 2000-12-29  Andy Piper  <andy@xemacs.org>
3527
3528         * menubar.c (menubar_visible_p_changed): signal the frame changed.
3529
3530         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
3531         the frame has changed so that we pick up geometry changes such as
3532         menubar visibility.
3533
3534 2000-12-28  Andy Piper  <andy@xemacs.org>
3535
3536         * lastfile.c (my_ebss): make a char array so we can pad the
3537         bss. Fixes cygwin unexec.
3538
3539         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
3540
3541 2000-12-26  Andy Piper  <andy@xemacs.org>
3542
3543         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
3544         comments and try and be more precise about a non-/SIGIO world.
3545         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
3546         SIGIO.
3547
3548         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
3549         we don't normalize to zero width or height.
3550
3551 2000-12-24  Andy Piper  <andy@xemacs.org>
3552
3553         * Makefile.in.in (ldflags): add -mwindows when appropriate.
3554
3555 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
3556
3557         * s/sco5.h: SCO 5 has pty support.
3558
3559 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
3560
3561         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
3562         input-method-xlib.c contains whole contents of input-method-xfs.c,
3563         so we can use input-method-xlib.c's code for USE_XFONTSET
3564         using #ifdefs.
3565         * input-method-xfs.c: removed.
3566
3567 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
3568
3569         * file-coding.h (enum coding_category_type): reorder enumerators to
3570         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
3571         (now one greater than largest real coding_category_type enumerator).
3572         * file-coding.c (coding_category_symbol, coding_category_by_priority,
3573         coding_category_system, fcd_descriptihon_1, decode_coding_category,
3574         Fcoding_category_list, Fset_coding_priority_list,
3575         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
3576         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
3577
3578 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
3579
3580         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
3581         * redisplay-output.c (redisplay_output_window): Clear top of window
3582         when face is changed.
3583         * redisplay-x.c (x_redraw_exposed_window): Call
3584         redisplay_clear_top_of_window.
3585         * redisplay.h: Publish redisplay_clear_top_of_window.
3586
3587 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
3588
3589         * buffer.c (Fkill_buffer): Map over all devices.
3590         * window.c (window_loop): Remove UNSHOW_BUFFER code.
3591         (list_windows): New function.
3592         (list_all_windows): Ditto.
3593         (Freplace_buffer_in_windows): Use them.
3594
3595 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
3596
3597         * database.c (berkdb_subtype): Recognize new subtype `queue'.
3598         (Fopen_database): Use `db_create' instead of `db_open'.
3599         (syms_of_database): Initialize Qqueue.
3600
3601 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
3602
3603         * buffer.c (common_init_complex_vars_of_buffer): Initialize
3604         buffer_local_face_property.
3605         * buffer.h (struct buffer): New member buffer_local_face_property.
3606         * window.c (Fset_window_buffer):  Mark window's face as changed
3607         when buffer has buffer local face.
3608         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
3609         * objects.c (color_after_change): Set buffer_local_face_property
3610         when locale of face specifier is buffer.
3611         * objects.c (font_after_change): Ditto.
3612         * objects.c (face_boolean_after_change): Ditto.
3613         * glyphs.c (image_after_change): Ditto.
3614
3615 2000-12-09  Dan Holmsand  <dan@eyebee.com>
3616
3617         * nt.c (mswindows_fstat): Report file permissions, volume serial
3618         number, etc. Code adapted from FSF Emacs 20.7.
3619
3620 2000-12-09  Dan Holmsand  <dan@eyebee.com>
3621
3622         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
3623         of stat when we don't have symbolic links, to make sure
3624         mswindows_stat is called on mswindows.
3625
3626 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
3627
3628         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
3629
3630 2000-12-12  Martin Buchholz  <martin@xemacs.org>
3631
3632         * doprnt.c (emacs_doprnt_1): More printing fixes.
3633         Make printing of numbers compatible with libc and FSF Emacs.
3634         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
3635         Use the system printf to do most of the hard work of formatting,
3636         instead of doprnt_1().
3637         Calculate memory to allocate for format string.
3638         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
3639         (doprnt_1): Cleaner code and documentation.
3640
3641 2000-12-01  Jerry James  <james@eecs.ukans.edu>
3642
3643         * Makefile.in.in: Use the loop variable to install headers.
3644
3645 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
3646
3647         * window.c (Fsplit_window): Don't invalidate face cache.
3648
3649 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
3650
3651         * minibuf.c (Fall_completions): Undo the previous change
3652         which removed checking elements start with space.
3653
3654 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
3655
3656         * mule-canna.c: Didier suppression.
3657
3658 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
3659
3660         * mule-canna.c: rename static unsigned char buf[] to key_buffer
3661         (warning suppression).  Add English comment translations.
3662
3663 2000-12-05  Martin Buchholz  <martin@xemacs.org>
3664
3665         * unexelfsgi.c (unexec): Better test for mmap failure.
3666
3667 2000-12-05  Martin Buchholz <martin@xemacs.org>
3668
3669         * XEmacs 21.2.38 is released.
3670
3671 2000-12-05  Martin Buchholz  <martin@xemacs.org>
3672
3673         * redisplay.c (bar-cursor): Make a user variable.
3674
3675         * symsinit.h: Add init_postgresql_from_environment.
3676
3677 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
3678
3679         * regex.c: Convert to clean C.
3680
3681 2000-12-05  Dan Holmsand  <dan@eyebee.com>
3682
3683         * realpath.c:
3684         Don't #include sysfile.h. Revert to duplicating PATH_MAX
3685         initialization.
3686         (sys_readlink): renamed to system_readlink to avoid conflict with
3687         the other sys_readlink.
3688
3689 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
3690
3691         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
3692
3693 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
3694
3695         * postgresql.c (init_postgresql_from_environment): new function.
3696         (vars_of_postgresql): Move code initializing Lisp variables out and
3697         into init_postgresql_from_environment.
3698         emacs.c (main_1): Call init_postgresql_from_environment if and only
3699         if running a dumped XEmacs.
3700
3701 2000-08-31  Dan Holmsand  <dan@eyebee.com>
3702
3703         * buffer.c: Make find-file-compare-truenames default to true on
3704         windows.
3705
3706         * realpath.c (win32_abs_start):
3707         (cygwin_readlink):
3708         (win32_readlink): New functions.
3709         (xrealpath): Return really real filenames on windows.
3710
3711         * fileio.c (Ffile_truename): Make file-truename work on windows.
3712
3713 2000-11-29  Didier Verna  <didier@xemacs.org>
3714
3715         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
3716         * faces.c (update_face_cachel_data): use it.
3717         * faces.c (add_face_cachel): use it. Complete background pixmap
3718         frobbing in face cache if `update_face_cachel_data' has not done so.
3719
3720 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
3721
3722         * search.c (string_match_1): Don't set last_thing_searched
3723         when search failed.
3724
3725 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
3726
3727         * buffer.c: Include casetab.h
3728         (common_init_complex_vars_of_buffer): Use new case-table object.
3729         * buffer.h: Include casetab.h
3730         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
3731         (DOWNCASE_TABLE_OF): Ditto.
3732         * bufslots.h: Remove char-tables and add case-table.
3733         * casetab.c: Include casetab.h
3734         (CASE_TABLE_P): Removed.
3735         (mark_case_table): New function.
3736         (allocate_case_table): New function.
3737         (Fcase_table_p): Use new case-table.
3738         (case_table_char): New function.
3739         (Fget_case_table): Ditto.
3740         (Fput_case_table): Ditto.
3741         (Fput_case_table_pair): Ditto.
3742         (Fcopy_case_table): Ditto.
3743         (Fcurrent_case_table): Return case-table.
3744         (Fstandard_case_table): Return case-table.
3745         (Fset_case_table): Fix doc-string.
3746         (set_case_table): Use case-table
3747         (syms_of_casetab): DEFSUBR new functions.
3748         (complex_vars_of_casetab): Set up standard case-table.
3749         * casetab.h: New file.
3750         * editfns.c: Include casetab.h
3751         (Fcompare_buffer_substrings): Use case-table.
3752         * inline.c: Include casetab.h
3753         * lisp.h: Remove bogus extern.
3754         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
3755         * search.c: Include casetab.h
3756         (TRANSLATE_ASCII): Removed.
3757         (TRANSLATE): Unconditionally translate character.
3758         (looking_at_1): Use case-table.
3759         (string_match_1): Ditto.
3760         (fast_string_match): Ditto.
3761         (search_command): Ditto.
3762         (search_buffer): Separate boyer_moore.  Check whether
3763         boyer_moore is poosible.
3764         (simple_search): New function.
3765         (boyer_moore): Separated from search_buffer. Translate char.
3766
3767 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
3768
3769         * regex.c (RE_TR_ASCII): Removed.
3770         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
3771         (PATFETCH): Call PATFETCH_RAW.
3772         (PATFETCH_RAW): Fetch Emchar.
3773         (PATUNFETCH): Decrement charptr.
3774         (GET_BUFFER_SPACE): Rename b to buf_end.
3775         (BUF_PUSH): Ditto.
3776         (BUF_PUSH_2): Ditto.
3777         (BUF_PUSH_3): Ditto.
3778         (EXTEND_BUFFER): Ditto.
3779         (SET_LIST_BIT): Ditto.
3780         (regex_compile): Ditto.  Translate non ASCII char.
3781         (compile_range): Ditto.
3782         (re_search_2): Ditto.
3783         (re_match_2_internal): Compare Emchar.
3784         (bcmp_translate): Ditto.
3785
3786 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
3787
3788         * lisp.h (basic char/int typedefs):  comment improvement.
3789
3790 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
3791
3792         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
3793         unstomp inhibit_site_lisp.  Improve comments.
3794
3795 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
3796
3797         * mule-charset.c (Fcharset_property):  improve type checking, comments.
3798
3799 2000-11-28  Andy Piper  <andy@xemacs.org>
3800
3801         * redisplay-output.c (redisplay_output_subwindow): make sure we do
3802         clipped display for windows in the gutter also.
3803         (redisplay_display_boxes_in_window_p): change semantics of return
3804         codes to be more intuitive.
3805
3806         * gutter.h: declare display_boxes_in_gutter_p.
3807
3808         * gutter.c (display_boxes_in_gutter_p): new function for
3809         redisplay.
3810
3811 2000-11-22  Andy Piper  <andy@xemacs.org>
3812
3813         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
3814         autodetect domain.
3815
3816 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
3817
3818         * callproc.c (Fold_call_process_internal):
3819         * gpm.c (Freceive_gpm_event):
3820         (tty_get_foreign_selection): Might be just warning supression.
3821         * fileio.c (Fwrite_region_internal):
3822         (Fset_visited_file_modtime):
3823         * keymap.c (event_matches_key_specifier_p):
3824         Initialize GCPROed variable.
3825
3826         * menubar-x.c (command_builder_find_menu_accelerator):
3827         Initialize before use.
3828
3829 2000-11-23  Andy Piper  <andy@xemacs.org>
3830
3831         * unexcw.c (unexec): make the resulting executable executable.
3832
3833 2000-11-21  Martin Buchholz  <martin@xemacs.org>
3834
3835         * doc.c (get_doc_string):
3836         Use size_t, not int, for result of XSTRING_LENGTH.
3837
3838         * cmds.c (Fdelete_char):
3839         * cmds.c (Fpoint_at_eol):
3840         * cmds.c (Fself_insert_command):
3841         Use EMACS_INT, not int, for result of XINT.
3842         Someday, someone will want to insert more than 2**31 identical characters.
3843
3844         * cmds.c (Fdelete_char):
3845         * cmds.c (Fdelete_backward_char):
3846         * syntax.c (Fforward_word):
3847         * syntax.c (Fforward_comment):
3848         Make COUNT argument optional, for consistency with forward-char et al.
3849
3850 2000-11-22  Martin Buchholz  <martin@xemacs.org>
3851
3852         * lisp.h:
3853         * print.c (long_to_string):
3854         Return a useful value: the pointer at end of data written.
3855
3856         * doprnt.c:
3857         Use `static const char * const' for constant strings.
3858         (union printf_arg): Delete `i', `ui' members.
3859         (get_doprnt_args):
3860         (emacs_doprnt_1):
3861         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
3862         Do all printf-ing via the `l' specifier.
3863         Use EMACS_INT instead of int.
3864         Optimize.
3865
3866 2000-11-20  Didier Verna  <didier@xemacs.org>
3867
3868         * faces.c (update_face_cachel_data): don't frob the background
3869         pixmap when the window is being created. The face is needed but
3870         does not exist yet.
3871
3872 2000-11-20  Andy Piper  <andy@xemacs.org>
3873
3874         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
3875         messing with a debug environment.
3876
3877 2000-11-20  Martin Buchholz  <martin@xemacs.org>
3878
3879         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
3880
3881 2000-11-20  Martin Buchholz  <martin@xemacs.org>
3882
3883         * casetab.c (Fcase_table_p): Fix compile error and crash.
3884
3885 2000-11-18  Philip Aston  <philipa@mail.com>
3886
3887         * s/cygwin32.h: Cygwin has SVR4-like pty support.
3888
3889 2000-11-18  Martin Buchholz  <martin@xemacs.org>
3890
3891         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
3892         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
3893
3894 2000-11-17  Martin Buchholz  <martin@xemacs.org>
3895
3896         * config.h.in: Define HAVE_ELF_H if elf.h exists.
3897         * unexelf.c: Use HAVE_ELF_H.
3898         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
3899         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
3900         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
3901         Greg Harrington <greg_harrington@hotmail.com> provided a machine
3902         for testing.
3903         So this is an unexelfsgi.c from a different line of development.
3904
3905 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
3906
3907         * regex.c (RE_TR_ASCII): New function.
3908         (RE_TRANSLATE): Call it.
3909
3910 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
3911
3912         * buffer.h (TRT_TABLE_OF): Remove assert.
3913         (IN_TRT_TABLE_DOMAIN): Removed.
3914
3915 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
3916
3917         * free-hook.c (log_gcpro):
3918         (show_gcprohist): Add support for GCPRO5.
3919
3920 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
3921
3922         * emacs.c (main_1): Improve -sd error message when --pdump=no.
3923
3924 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
3925
3926         * symeval.h: Declare flush_all_buffer_local_cache.
3927
3928         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
3929         (flush_buffer_local_cache): Added.
3930         (flush_all_buffer_local_cache): Added.
3931
3932         * lrecord.h: Remove unused XD_LO_RESET_NIL.
3933
3934         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
3935         (pdump_dump_data): Ditto.
3936         (pdump_reloc_one): Ditto.
3937         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
3938         before dumping.
3939
3940
3941 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
3942
3943         * buffer.c: Remove if 0'ed entry.
3944         * buffer.h: Rewrite TRT to use char-table.
3945         * bufslots.h: Remove mirror tables.
3946         * casetab.c: Remove mirror tables.
3947         (CASE_TABLE_P): New macro.
3948         (Fcase_table_p): Element of a case table is string or char-table.
3949         (make_mirror_trt_table): Removed.
3950         (set_case_table): Setup char-table from strings for backward
3951         compatibility.
3952         * dired.c (Fdirectory_files):
3953         * dired-msw.c: (mswindows_get_files):
3954         * lisp.h: Change prototype of re_pattern_buffer.
3955         * regex.c: (RE_TRANSLATE): New macro.
3956         (TRANSLATE_P): Ditto.
3957         Change translate to type RE_TRANSLATE_TYPE.
3958         * regex.h: Define RE_TRANSLATE_TYPE
3959         * search.c (TRANSLATE): New macro.
3960         (TRANSLATE_ASCII): New macro.
3961         Translate table is changed to Lisp_Object.
3962         (signal_failure): Inhibit return.
3963
3964 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
3965
3966         * device-msw.c:
3967         * eldap.c:
3968         * event-Xt.c:
3969         * event-stream.c:
3970         * print.c:
3971         Do UNGCPRO before return.
3972
3973 2000-11-14  Martin Buchholz <martin@xemacs.org>
3974
3975         * XEmacs 21.2.37 is released.
3976
3977 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
3978
3979         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
3980         Add comments about discarded return value.
3981
3982 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
3983
3984         * callint.c:
3985         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
3986
3987 2000-10-27  Andy Piper  <andy@xemacs.org>
3988
3989         * gutter.c (Fset_default_gutter_position): default left and right
3990         gutters to visible.
3991         (calculate_gutter_size): calculate resonable heuristic for left
3992         and right gutter sizes.
3993         (specifier_vars_of_gutter): change left and right gutter sizes to
3994         autodetect.
3995         (calculate_gutter_size_from_display_lines): new function.
3996         (output_gutter): check for resizing on left and right gutters.
3997         (clear_gutter): don't special case top and left gutters.
3998         (specifier_vars_of_gutter): use new signature for
3999         set_specifier_caching.
4000
4001         * glyphs-x.c (x_redisplay_widget): spelling fix.
4002         * glyphs.c (specifier_vars_of_glyphs):
4003         * menubar.c (specifier_vars_of_menubar):
4004         * redisplay.c (specifier_vars_of_redisplay):
4005         * toolbar.c (specifier_vars_of_toolbar):
4006         * window.c (specifier_vars_of_window):
4007         * scrollbar.c (specifier_vars_of_scrollbar):
4008         (complex_vars_of_scrollbar): use new signature for
4009         set_specifier_caching.
4010
4011         * specifier.c (set_specifier_caching): include recompute flag.
4012         (recompute_one_cached_specifier_in_window): always recompute if
4013         flag set.
4014         (recompute_one_cached_specifier_in_frame): ditto.
4015
4016         * specifier.h (struct specifier_caching): add recompute flag.
4017
4018 2000-10-24  Andy Piper  <andy@xemacs.org>
4019
4020         * unexcw.c (copy_executable_and_dump_data_section): add new
4021         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
4022         5.0 happy.
4023
4024 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
4025
4026         * console-x.h (x_device): New member modifier_release_time.
4027         * event-Xt.c (x_handle_sticky_modifiers):
4028         Bound interval modifier keys are sticky.
4029         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
4030         * events.h: extern it.
4031
4032 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
4033
4034         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
4035
4036 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
4037
4038         * event-stream.c (execute_command_event): Preserve current_events
4039         and the like when event is misc-user-event.
4040         Inhibit quit during the call to maybe_echo_keys.
4041
4042 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
4043
4044         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
4045         symlink when buffer is killed.
4046         (inhibit_clash_detection): New variable.
4047
4048 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
4049
4050         * console.c (Fset_input_method): Trigger redisplay on tty.
4051
4052 2000-11-07  Martin Buchholz  <martin@xemacs.org>
4053
4054         * process.c (Fprocess_status): Revert to previous behavior:
4055         (process-status "nosuchprocess") ==> nil
4056
4057 2000-11-06  Martin Buchholz  <martin@xemacs.org>
4058
4059         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
4060         Work around another GCC 2.95.2 optimizer bug.
4061
4062 2000-11-02  Martin Buchholz  <martin@xemacs.org>
4063
4064         * process.c (Fget_process): Use LIST_LOOP_2.
4065         (kill_buffer_processes): Use LIST_LOOP_2.
4066
4067         * minibuf.c (Fall_completions):
4068         Delete old non-functional code for FSF fourth argument.
4069
4070         * frame.c (frame_matches_frame_spec):
4071         Renamed from `frame_matches_frametype'.  Update all callers.
4072         (device_matches_device_spec):
4073         Renamed from 'device_matches_console_spec'.  Update all callers.
4074
4075         * doc.c (Fsubstitute_command_keys):
4076         Remove buffer overflow crash.  Small code cleanups.
4077
4078         * casetab.c (check_case_table): Simpler code.
4079
4080         * window.c (Freplace_buffer_in_windows):
4081         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
4082         (and similar implementation) as Fdelete_windows_on.
4083         Update all callers.
4084
4085         * alloc.c (Fmake_list):
4086         * alloc.c (make_vector):
4087         * alloc.c (Fmake_vector):
4088         * alloc.c (make_bit_vector):
4089         * alloc.c (Fmake_bit_vector):
4090         * alloc.c (Fbit_vector):
4091         * alloc.c (Fmake_string):
4092         * alloc.c (Fpurecopy):
4093         * alloc.c (Fmemory_limit):
4094         * buffer.c:
4095         * buffer.c (Fget_buffer):
4096         * buffer.c (Fkill_buffer):
4097         * buffer.c (complex_vars_of_buffer):
4098         * bytecode.c (Fcompiled_function_stack_depth):
4099         * callint.c (Fprefix_numeric_value):
4100         * event-stream.c:
4101         * event-stream.c (Fread_key_sequence):
4102         * casetab.c:
4103         * casetab.c (Fcase_table_p):
4104         * casetab.c (check_case_table):
4105         * casetab.c (Fset_case_table):
4106         * casetab.c (Fset_standard_case_table):
4107         * chartab.c:
4108         * chartab.c (Fchar_table_type):
4109         * chartab.c (Freset_char_table):
4110         * chartab.c (Fget_char_table):
4111         * chartab.c (Fget_range_char_table):
4112         * chartab.c (Fput_char_table):
4113         * chartab.c (Fmap_char_table):
4114         * chartab.c (Fcategory_table_p):
4115         * chartab.c (Fcheck_category_at):
4116         * chartab.c (Fchar_in_category_p):
4117         * chartab.c (Fcategory_table):
4118         * chartab.c (Fcopy_category_table):
4119         * chartab.c (Fset_category_table):
4120         * chartab.c (Fcategory_designator_p):
4121         * chartab.c (Fcategory_table_value_p):
4122         * cmds.c (Fdelete_char):
4123         * cmds.c (Fdelete_backward_char):
4124         * cmds.c (Fself_insert_command):
4125         * cmds.c (Fself_insert_internal):
4126         * console.c (Fvalid_console_type_p):
4127         * console.c (Fcdfw_console):
4128         * console.c (Fconsole_type):
4129         * console.c (Fconsole_name):
4130         * console.c (Fconsole_device_list):
4131         * console.c (Fconsole_on_window_system_p):
4132         * data.c:
4133         * data.c (Feq):
4134         * data.c (Fold_eq):
4135         * data.c (Fsubr_interactive):
4136         * data.c (Fchar_to_int):
4137         * data.c (Fint_to_char):
4138         * data.c (Fsetcar):
4139         * data.c (Fsetcdr):
4140         * data.c (Fnumber_to_string):
4141         * data.c (Fstring_to_number):
4142         * data.c (Frem):
4143         * database.c (mark_database):
4144         * database.c (finalize_database):
4145         * database.c (Fdatabase_live_p):
4146         * database.c (Fdatabasep):
4147         * device-x.c (Fx_get_resource):
4148         * device.c (Fdfw_device):
4149         * dired.c:
4150         * dired.c (Ffile_name_completion):
4151         * dired.c (Ffile_name_all_completions):
4152         * dired.c (Fuser_name_completion):
4153         * dired.c (Fuser_name_completion_1):
4154         * dired.c (Fuser_name_all_completions):
4155         * doc.c (Fdocumentation):
4156         * doc.c (Fdocumentation_property):
4157         * doc.c (Fsubstitute_command_keys):
4158         * editfns.c:
4159         * editfns.c (Fchar_to_string):
4160         * editfns.c (Fstring_to_char):
4161         * editfns.c (Ftemp_directory):
4162         * editfns.c (Finsert_char):
4163         * editfns.c (Fbuffer_substring_no_properties):
4164         * editfns.c (Fnarrow_to_region):
4165         * editfns.c (Fchar_equal):
4166         * editfns.c (Fchar_Equal):
4167         * editfns.c (Ftranspose_regions):
4168         * emacs.c (Fdump_emacs):
4169         * eval.c (Fthrow):
4170         * eval.c (Fcommand_execute):
4171         * eval.c (Fautoload):
4172         * eval.c (Fbacktrace):
4173         * eval.c (Fbacktrace_frame):
4174         * events.c:
4175         * events.c (Fcopy_event):
4176         * events.c (Fcharacter_to_event):
4177         * events.c (Fevent_button):
4178         * events.c (Fevent_process):
4179         * extents.c:
4180         * extents.c (Fnext_extent_change):
4181         * extents.c (Fextent_property):
4182         * faces.c (Ffacep):
4183         * faces.c (Fmake_face):
4184         * file-coding.c:
4185         * file-coding.c (Fencode_shift_jis_char):
4186         * file-coding.c (Fencode_big5_char):
4187         * fileio.c (Ffile_name_directory):
4188         * fileio.c (Ffile_name_nondirectory):
4189         * fileio.c (Ffile_name_as_directory):
4190         * fileio.c (Fdirectory_file_name):
4191         * fileio.c (Ffile_truename):
4192         * fileio.c (Fsubstitute_in_file_name):
4193         * fileio.c (Ffile_modes):
4194         * fileio.c (Fset_file_modes):
4195         * fileio.c (Fset_default_file_modes):
4196         * fileio.c (Fverify_visited_file_modtime):
4197         * floatfns.c (Facos):
4198         * floatfns.c (Fasin):
4199         * floatfns.c (Fatan):
4200         * floatfns.c (Fcos):
4201         * floatfns.c (Fsin):
4202         * floatfns.c (Ftan):
4203         * floatfns.c (Fbessel_j0):
4204         * floatfns.c (Fbessel_j1):
4205         * floatfns.c (Fbessel_jn):
4206         * floatfns.c (Fbessel_y0):
4207         * floatfns.c (Fbessel_y1):
4208         * floatfns.c (Fbessel_yn):
4209         * floatfns.c (Ferf):
4210         * floatfns.c (Ferfc):
4211         * floatfns.c (Flog_gamma):
4212         * floatfns.c (Fexp):
4213         * floatfns.c (Fexpt):
4214         * floatfns.c (Flog):
4215         * floatfns.c (Flog10):
4216         * floatfns.c (Fsqrt):
4217         * floatfns.c (Fcube_root):
4218         * floatfns.c (Facosh):
4219         * floatfns.c (Fasinh):
4220         * floatfns.c (Fatanh):
4221         * floatfns.c (Fcosh):
4222         * floatfns.c (Fsinh):
4223         * floatfns.c (Ftanh):
4224         * floatfns.c (Fabs):
4225         * floatfns.c (Ffloat):
4226         * floatfns.c (Flogb):
4227         * floatfns.c (Fceiling):
4228         * floatfns.c (Ffloor):
4229         * floatfns.c (Fround):
4230         * floatfns.c (Ftruncate):
4231         * floatfns.c (Ffceiling):
4232         * floatfns.c (Fffloor):
4233         * floatfns.c (Ffround):
4234         * floatfns.c (Fftruncate):
4235         * fns.c (Fstring_equal):
4236         * fns.c (Fstring_lessp):
4237         * fns.c (concat2):
4238         * fns.c (concat3):
4239         * fns.c (vconcat2):
4240         * fns.c (vconcat3):
4241         * fns.c (Fsubstring):
4242         * fns.c (Fassoc):
4243         * fns.c (Fold_assoc):
4244         * fns.c (assoc_no_quit):
4245         * fns.c (Fassq):
4246         * fns.c (Fold_assq):
4247         * fns.c (assq_no_quit):
4248         * fns.c (Frassoc):
4249         * fns.c (Fold_rassoc):
4250         * fns.c (Frassq):
4251         * fns.c (Fold_rassq):
4252         * fns.c (rassq_no_quit):
4253         * fns.c (Fremassoc):
4254         * fns.c (remassoc_no_quit):
4255         * fns.c (Fremassq):
4256         * fns.c (remassq_no_quit):
4257         * fns.c (Fremrassoc):
4258         * fns.c (Fremrassq):
4259         * fns.c (remrassq_no_quit):
4260         * fns.c (Fsort):
4261         * fns.c (Fplist_get):
4262         * fns.c (Fplist_put):
4263         * fns.c (Fplist_remprop):
4264         * fns.c (Fplist_member):
4265         * fns.c (Flax_plist_get):
4266         * fns.c (Flax_plist_put):
4267         * fns.c (Flax_plist_remprop):
4268         * fns.c (Flax_plist_member):
4269         * fns.c (Fequal):
4270         * fns.c (Fold_equal):
4271         * fns.c (Frequire):
4272         * fns.c (Fbase64_encode_region):
4273         * fns.c (Fbase64_encode_string):
4274         * fns.c (Fbase64_decode_region):
4275         * frame.c:
4276         * frame.c (frame_matches_frame_spec):
4277         * frame.c (device_matches_device_spec):
4278         * frame.c (next_frame):
4279         * frame.c (previous_frame):
4280         * frame.c (Fnext_frame):
4281         * frame.c (Fprevious_frame):
4282         * frame.c (Fframe_property):
4283         * frame.c (Fset_frame_height):
4284         * frame.c (Fset_frame_size):
4285         * frame.h:
4286         * glyphs.c:
4287         * glyphs.c (if):
4288         * glyphs.c (decode_error_behavior_flag):
4289         * glyphs.c (Fmake_image_instance):
4290         * indent.c (Findent_to):
4291         * intl.c (Fignore_defer_gettext):
4292         * keymap.c (Fkeymapp):
4293         * keymap.c (Flookup_key):
4294         * lread.c:
4295         * lread.c (Fload_internal):
4296         * lread.c (Feval_buffer):
4297         * lread.c (Feval_region):
4298         * macros.c (Fexecute_kbd_macro):
4299         * marker.c (set_marker_internal):
4300         * marker.c (Fset_marker):
4301         * marker.c (set_marker_restricted):
4302         * marker.c (Fcopy_marker):
4303         * marker.c (noseeum_copy_marker):
4304         * menubar.c:
4305         * menubar.c (Fpopup_menu):
4306         * minibuf.c:
4307         * mule-charset.c (Fcharset_name):
4308         * mule-charset.c (Fchar_charset):
4309         * mule-charset.c (Fchar_octet):
4310         * mule-charset.c (Fsplit_char):
4311         * mule-wnnfns.c (Fwnn_open):
4312         * mule-wnnfns.c (Fwnn_dict_comment):
4313         * mule-wnnfns.c (Fwnn_quit_henkan):
4314         * mule-wnnfns.c (Fwnn_word_toroku):
4315         * mule-wnnfns.c (Fwnn_word_sakujo):
4316         * mule-wnnfns.c (Fwnn_word_use):
4317         * mule-wnnfns.c (Fwnn_hindo_set):
4318         * objects.c:
4319         * objects.c (Fmake_color_instance):
4320         * objects.c (Fmake_font_instance):
4321         * print.c (Fwrite_char):
4322         * process.c:
4323         * process.c (mark_process):
4324         * process.c (print_process):
4325         * process.c (get_process_from_usid):
4326         * process.c (Fprocessp):
4327         * process.c (Fprocess_live_p):
4328         * process.c (Fget_process):
4329         * process.c (Fget_buffer_process):
4330         * process.c (get_process):
4331         * process.c (Fprocess_id):
4332         * process.c (Fprocess_name):
4333         * process.c (Fprocess_command):
4334         * process.c (init_process_io_handles):
4335         * process.c (start_process_unwind):
4336         * process.c (Fstart_process_internal):
4337         * process.c (Fopen_multicast_group_internal):
4338         * process.c (Fset_process_window_size):
4339         * process.c (read_process_output):
4340         * process.c (send_process):
4341         * process.c (Fprocess_tty_name):
4342         * process.c (Fset_process_buffer):
4343         * process.c (Fprocess_buffer):
4344         * process.c (Fprocess_mark):
4345         * process.c (set_process_filter):
4346         * process.c (Fset_process_filter):
4347         * process.c (Fprocess_filter):
4348         * process.c (Fprocess_send_region):
4349         * process.c (Fprocess_send_string):
4350         * process.c (exec_sentinel):
4351         * process.c (Fset_process_sentinel):
4352         * process.c (Fprocess_sentinel):
4353         * process.c (status_notify):
4354         * process.c (Fprocess_status):
4355         * process.c (Fprocess_exit_status):
4356         * process.c (process_send_signal):
4357         * process.c (Fprocess_send_eof):
4358         * process.c (deactivate_process):
4359         * process.c (remove_process):
4360         * process.c (Fdelete_process):
4361         * process.c (kill_buffer_processes):
4362         * process.c (Fprocess_kill_without_query):
4363         * process.c (Fprocess_kill_without_query_p):
4364         * rangetab.c:
4365         * rangetab.c (Fget_range_table):
4366         * rangetab.c (Fput_range_table):
4367         * rangetab.c (Fremove_range_table):
4368         * rangetab.c (Fclear_range_table):
4369         * search.c:
4370         * search.c (Fskip_chars_forward):
4371         * search.c (Fskip_chars_backward):
4372         * search.c (Fskip_syntax_forward):
4373         * search.c (Fskip_syntax_backward):
4374         * search.c (search_command):
4375         * search.c (Freplace_match):
4376         * search.c (Fregexp_quote):
4377         * select.c (Fown_selection_internal):
4378         * select.c (Fselection_owner_p):
4379         * select.c (Fselection_exists_p):
4380         * select.c (Fget_selection_internal):
4381         * specifier.c:
4382         * symbols.c:
4383         * symbols.c (Fintern):
4384         * symbols.c (Fintern_soft):
4385         * symbols.c (Funintern):
4386         * symbols.c (Fapropos_internal):
4387         * symbols.c (Fset_default):
4388         * syntax.c:
4389         * syntax.c (Fsyntax_table_p):
4390         * syntax.c (Fcopy_syntax_table):
4391         * syntax.c (Fset_syntax_table):
4392         * syntax.c (Fchar_syntax):
4393         * syntax.c (syntax_match):
4394         * syntax.c (Fmatching_paren):
4395         * syntax.c (Fforward_word):
4396         * syntax.c (scan_lists):
4397         * syntax.c (Fscan_lists):
4398         * syntax.c (Fscan_sexps):
4399         * syntax.c (Fparse_partial_sexp):
4400         * toolbar.c (Fcheck_toolbar_button_syntax):
4401         * tooltalk.doc:
4402         * window.c:
4403         * window.c (Fwindowp):
4404         * window.c (Fwindow_live_p):
4405         * window.c (Fwindow_point):
4406         * window.c (Fdelete_window):
4407         * window.c (Fnext_window):
4408         * window.c (Fprevious_window):
4409         * window.c (Fother_window):
4410         * window.c (window_loop):
4411         * window.c (Fget_lru_window):
4412         * window.c (Fsplit_window):
4413         * window.c (Fenlarge_window):
4414         * window.c (Fenlarge_window_pixels):
4415         * window.c (Fshrink_window):
4416         * window.c (Fshrink_window_pixels):
4417         * window.c (change_window_height):
4418         * window.c (Fwindow_configuration_p):
4419         * window.c (Fcurrent_window_configuration):
4420         * window.h:
4421         * casefiddle.c (casify_object):
4422         * casefiddle.c (Fupcase):
4423         * casefiddle.c (Fdowncase):
4424         * casefiddle.c (Fcapitalize):
4425         * casefiddle.c (Fupcase_initials):
4426         * casefiddle.c (casify_region_internal):
4427         * casefiddle.c (casify_region):
4428         * casefiddle.c (Fupcase_region):
4429         * casefiddle.c (Fdowncase_region):
4430         * casefiddle.c (Fcapitalize_region):
4431         * casefiddle.c (Fupcase_initials_region):
4432         * casefiddle.c (Fupcase_word):
4433         * casefiddle.c (Fdowncase_word):
4434         * casefiddle.c (Fcapitalize_word):
4435         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
4436         Replace 0 with '\0' when working with bytes.
4437         Replace initial "(" with "\(" in docstrings.
4438
4439 2000-11-01  Martin Buchholz  <martin@xemacs.org>
4440
4441         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
4442
4443         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
4444
4445 2000-10-31  Martin Buchholz  <martin@xemacs.org>
4446
4447         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
4448
4449 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
4450
4451         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
4452         correctly.
4453
4454 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
4455
4456         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
4457         (inhibit_auto_save_session): New variable.
4458         (vars_of_fileio): Declare and initialize them.
4459         * fileio.c (Fdo_auto_save): Don't create session file if
4460         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
4461
4462 2000-10-31  Martin Buchholz  <martin@xemacs.org>
4463
4464         * sgiplay.c (play_internal): C++ compilability.
4465         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
4466         * callproc.c (Fold_call_process_internal):
4467         Remove unused vars `env', `first'.
4468         * scrollbar.c (update_scrollbar_instance):
4469         #### unused var `current_window'.
4470         * redisplay-tty.c: Put currently unused vars insert_mode_on,
4471         etc. within #ifdef NOT_YET.
4472         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
4473         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
4474         * specifier.c (specifier_instance):
4475         #### unused var `tag'.
4476         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
4477
4478 2000-10-27  Martin Buchholz  <martin@xemacs.org>
4479
4480         * fns.c (Fbutlast):
4481         * fns.c (list_sort):
4482         * fns.c (Ffillarray):
4483         * fns.c (bytecode_nconc2):
4484         * fns.c (Fnconc):
4485         * fns.c (mapcar1):
4486         * fns.c (Fmapconcat):
4487         Be pedantically 64-bit correct.  For the time when someone will
4488         want to have a list with length > 2**32.
4489
4490         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
4491         Work around MIPSpro compiler bug.
4492
4493         * process-unix.c (unix_kill_child_process): Add snarky comment.
4494         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
4495
4496         * config.h.in: Oops, _getpt ==> _getpty
4497
4498 2000-10-26  Martin Buchholz  <martin@xemacs.org>
4499
4500         * config.h.in:
4501         * regex.c:
4502         Use void*, not char*, as return type of alloca().
4503
4504         * alloc.c (free_marker): Side effect inside assert expression!
4505
4506 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
4507
4508         * mule-charset.c (Fset_charset_ccl_program): To check
4509         if the given ccl program is valid, use setup_ccl_program()
4510         instead of CHECK_VECTOR().
4511         (Fmake_charset): Likewise.
4512
4513 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
4514
4515         * faces.c (get_extent_fragment_face_cache_index):
4516         Fix cachel.merged_faces memory leak.
4517
4518 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
4519
4520         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
4521         Reset MSB of octets obtained by DECODE_SJIS
4522         because of the incompatibility with Emacs.
4523         (ccl_driver)<CCL_ENCODE_SJIS>:
4524         Set MSB of octets before passing them to
4525         ENCODE_SJIS because of the incompatibility
4526         with Emacs.
4527
4528 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
4529
4530         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
4531         (DECLARE_LRECORD): Undo the last change.
4532         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
4533
4534 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
4535
4536         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
4537         the implementation to lrecord_implementations_table.
4538
4539 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
4540
4541         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
4542         initial value of `lrecord_type_##c_name' and
4543         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
4544         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
4545         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
4546         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
4547         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
4548
4549 2000-10-17  Martin Buchholz  <martin@xemacs.org>
4550
4551         * miscplay.c (sndcnv8S_2mono):
4552         (sndcnv2monounsigned):
4553         (sndcnvULaw_2linear):
4554         (sndcnv16swap):
4555         Remove implementation-defined behavior.
4556
4557 2000-10-12  Martin Buchholz  <martin@xemacs.org>
4558
4559         * input-method-xlib.c: Warning suppression.
4560
4561 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
4562
4563         * mule-ccl.c: Sync up with Emacs 21.0.90.
4564         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
4565         Do nothing.
4566         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
4567         Likewise.
4568         (ccl_driver[WriteMultibyteChar2]): Bug fix.
4569         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
4570         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
4571         leading char belongs to official 2-dimensional charset.
4572         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
4573         write the given character as is.  Otherwise,
4574         if it is a multibyte char, convert it by
4575         non_ascii_set_charptr_emchar, then write it.
4576         (CCL_WRITE_STRING): Likewise.
4577         (ccl_get_compiled_code): New function.
4578         (setup_ccl_program): When ccl_prog is invalid,
4579         return -1.
4580         (Fregister_code_conversion_map): New function.
4581         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
4582
4583         * mule-ccl.h: Sync up with Emacs 21.0.90.
4584         (Fregister_ccl_program): export it.
4585
4586         * redisplay-msw.c (separate_textual_runs):
4587         If ccl program is not valid, don't do ccl conversion.
4588
4589         * redisplay-x.c (separate_textual_runs): Ditto.
4590
4591         * file-coding.c (Fmake_coding_system):
4592         When type is ccl and value is vector, register it
4593         with a proper symbol.  And checks whether the
4594         given ccl program is valid.
4595         (mule_decode): When calling ccl_driver, if src indicates
4596         NULL pointer, set an empty string instead.
4597         (mule_encode): Likewise.
4598
4599 2000-10-11  Martin Buchholz  <martin@xemacs.org>
4600
4601         The following large batch of changes gets us back to a state of
4602         C++ compilability.  Extbyte is now a char, which means that
4603         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
4604
4605         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
4606
4607         * sound.c (Fplay_sound): Type correctness.
4608
4609         * select-x.c (hack_motif_clipboard_selection): Type correctness.
4610         (x_get_window_property): Type correctness.
4611         (receive_incremental_selection): unsigned char ==> Extbyte
4612         (selection_data_to_lisp_data): unsigned char ==> Extbyte
4613         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
4614         (Fx_store_cutbuffer_internal): Type correctness.
4615
4616         * process-unix.c (try_to_initialize_subtty): Type correctness.
4617
4618         * objects-x.c (x_print_color_instance): Type correctness.
4619         (x_print_font_instance): Type correctness.
4620         (x_list_fonts): SExtbyte ==> Extbyte.
4621         (valid_x_font_name_p): SExtbyte ==> Extbyte.
4622         (x_find_charset_font): SExtbyte ==> Extbyte.
4623         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
4624         (truename_via_XListFonts): SExtbyte ==> Extbyte.
4625         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
4626         Use bufbyte_strcmp.
4627
4628         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
4629         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
4630         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
4631         (BYTE_C0_P): Use bit ops for char-signedness safety.
4632         (BYTE_C1_P): Use bit ops for char-signedness safety.
4633         (CHARSET_BY_LEADING_BYTE):
4634         (CHARSET_BY_ATTRIBUTES):
4635         Always use inline function.
4636         Use type_checking_assert.
4637         Hide chlook.
4638
4639         * mule-charset.c (non_ascii_charptr_copy_char):
4640         Modify to work with both ASCII and non-ASCII characters.
4641         Improve docs and variable names.
4642         Replace over-clever fall-through switch with a simple loop.
4643         (Lstream_get_emchar_1):
4644         Replace over-clever fall-through switch with a simple loop.
4645
4646         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
4647         Warning suppression.
4648
4649         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
4650         the return value of Lstream_getc, which could be EOF as well.
4651
4652         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
4653
4654         * lisp.h: Make Extbyte a char, not unsigned char, so that external
4655         APIs can be used on Extbytes without casts.  Risky!
4656         (SExtbyte): Remove.
4657         (UExtbyte): Remove.
4658
4659         * input-method-xlib.c (XIM_init_device):
4660         Use Xlib.h instead of IntrinsicP.h.
4661         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
4662         which will break in X11R7.
4663         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
4664         to call XRegisterIMInstantiateCallback with correct types.
4665
4666         * gui-x.c (button_item_to_widget_value): Type correctness.
4667
4668         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
4669
4670         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
4671         (xbm_instantiate_1): Type correctness.
4672         (BUILD_GLYPH_INST):  Type correctness.
4673
4674         * fileio.c (Fsubstitute_in_file_name): Type correctness.
4675
4676         * file-coding.c:
4677         (decode_coding_sjis):
4678         (decode_coding_big5):
4679         (decode_coding_ucs4):
4680         (decode_coding_utf8):
4681         (decode_coding_iso2022):
4682         (decode_coding_no_conversion):
4683         Make all decoding functions take an Extbyte * arg.
4684         (encode_coding_sjis):
4685         (encode_coding_big5):
4686         (encode_coding_ucs4):
4687         (encode_coding_utf8):
4688         (encode_coding_iso2022):
4689         (encode_coding_no_conversion):
4690         Make all encoding functions take a Bufbyte * arg.
4691         Use size_t instead of unsigned int for memory sizes.
4692         Only cast to unsigned char whenever dereferencing Extbyte *.
4693
4694         * doc.c (unparesseuxify_doc_string): Type correctness.
4695
4696         * console-x.c (split_up_display_spec):
4697         Rewrite without using details of internal string representation.
4698         (x_semi_canonicalize_device_connection): Type correctness.
4699
4700         * config.h.in:
4701         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
4702         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
4703         (HAVE_XFREE386): Removed.
4704
4705         * buffer.h (DEC_CHARPTR): `const' correctness.
4706         (bufbyte_strcmp): New.
4707         (bufbyte_memcmp): New.
4708
4709         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
4710
4711         * buffer.h (XCHAR_OR_CHAR_INT):
4712         Always use inline function.
4713         Remove redundant type checking assert() - XINT will abort quite nicely.
4714
4715 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
4716
4717         * search.c (Freplace_match): Set newtext to an empty string.
4718
4719 2000-10-10  Martin Buchholz  <martin@xemacs.org>
4720
4721         * s/decosf1-3.h: Remove #include of stropts.h
4722         * s/ptx.h: Remove #include of stropts.h
4723         * s/usg5-4.h: Remove #include of stropts.h
4724         * sysproc.h:
4725         * config.h.in:
4726         Use stropts.h, not sys/stropts.h.
4727         Use strtio.h, not sys/strtio.h.
4728
4729 2000-10-04  Martin Buchholz <martin@xemacs.org>
4730
4731         * XEmacs 21.2.36 is released.
4732
4733 2000-09-21  Andy Piper  <andy@xemacs.org>
4734
4735         * glyphs-x.c (x_redisplay_widget): make sure non-structural
4736         changes still involve copying the widget tree.
4737         (update_widget_face): make sure a change is register in the widget
4738         tree. Call update_tab_widget_face appropriately.
4739         (update_tab_widget_face): ditto.
4740         (x_tab_control_redisplay): make sure non-structural changes still
4741         involve copying the widget tree.
4742
4743 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
4744
4745         * lread.c (locate_file): Check the path element is non-nil.
4746
4747 2000-10-02  Martin Buchholz  <martin@xemacs.org>
4748
4749         * lisp.h: Warning suppression for SCO compilers.
4750
4751         * redisplay-tty.c (reset_tty_modes): Fix crash.
4752         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
4753
4754 2000-09-27  Martin Buchholz  <martin@xemacs.org>
4755
4756         Big signal/process handling overhaul.  Bugs fixed:
4757         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
4758         M-x comint-kill-subjob should work for both values nil and t of
4759         process-connection-type. It was broken on most platforms.
4760         Testing on Irix and Cygwin still needed.  Other plaforms tested.
4761         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
4762         * process-unix.c: Signal/Process handling overhaul.
4763         (pty_name): make 64 bytes, as `expect' does, for paranoia.
4764         (allocate_pty): Use all available modern methods of allocating
4765         ptys, falling back to old style BSD allocation as a last resort.
4766         Use allegedly more secure Unix98 pty allocation by default.
4767         (allocate_pty_the_old_fashioned_way): New. the last resort.
4768         (unix_create_process): Push ptem, ldterm, ttcompat where
4769         available.  Autoconfiscate.
4770         (try_to_initialize_subtty): New.
4771         (unix_kill_child_process): Proper signal handling for ptys on most
4772         platforms, using special knowledge of AIX, BSD, etc...
4773         (unix_create_process): Always disconnect_controlling_terminal() for
4774         subprocesses, whether using ptys or not.
4775         * process.h: Remove old getpt-dependent PTY code.
4776         * process.c (Fprocess_send_signal): New, obvious generic function.
4777         (decode_signal): New.
4778         (Finterrupt_process):
4779         (Fkill_process):
4780         (Fquit_process):
4781         (Fstop_process):
4782         (Fcontinue_process):
4783         (Fsignal_process): Use decode_signal.
4784         (process_send_signal):
4785         Many docstring corrections.
4786         Allow any signal to be sent to a process object.
4787         * config.h.in: Add symbols for big signal/process overhaul.
4788         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
4789         * sysproc.h: Include process-related headers, where available:
4790         sys/stropts.h sys/strtio.h pty.h libutil.h
4791         * s/irix4-0.h:
4792         * s/irix5-0.h:
4793         * s/cygwin32.h:
4794         * s/gnu.h:
4795         * s/linux.h:
4796         * s/hpux.h:
4797         * s/aix3-1.h:
4798         Remove old S&M pty stuff.
4799         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
4800         * systty.h: Simplify cpp hackery, improve comments.
4801         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
4802
4803         * editfns.c (Fformat_time_string):
4804         Be a little more paranoid with the return value of ctime.
4805
4806         * fileio.c (check_executable):
4807         (check_writable):
4808         Use symbolic constants X_OK, W_OK.
4809
4810         * console-x.c (split_up_display_spec): Fix a warning.
4811
4812 2000-10-02  Martin Buchholz  <martin@xemacs.org>
4813
4814         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
4815         * ntproc.c (sys_spawnve): make_string ==> build_string
4816         Small clarity improvements.
4817
4818 2000-09-30  Martin Buchholz  <martin@xemacs.org>
4819
4820         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
4821
4822         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
4823
4824         * config.h.in (HAVE_STRCASECMP): Remove.
4825
4826 2000-09-29  Martin Buchholz  <martin@xemacs.org>
4827
4828         * redisplay-output.c (redisplay_output_pixmap):
4829         Cleaner and possibly more 64-bit correct code.
4830
4831 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
4832
4833         * dumper.c (pdump_load_finish): move restoration of
4834         `noninteractive1' to emacs.c (main_1).
4835         * emacs.c (main_1): protect LISP-visible command-line flags
4836         from pdump_load().
4837
4838 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
4839
4840         * Makefile.in.in (versionclean):  Use EXE_TARGET and
4841         DUMP_TARGET instead of literal program names.
4842
4843 2000-09-20  Martin Buchholz  <martin@xemacs.org>
4844
4845         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
4846
4847 2000-09-19  Martin Buchholz  <martin@xemacs.org>
4848
4849         * *: Spelling mega-patch
4850
4851 2000-09-19  Martin Buchholz  <martin@xemacs.org>
4852
4853         * fns.c (bad_bad_turtle):
4854         Delete "Eek!" comment, since we fixed the bug to which it refers.
4855
4856 2000-09-16  Martin Buchholz  <martin@xemacs.org>
4857
4858         * alloca.c: Replace REGISTER with register.
4859
4860 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
4861
4862         * file-coding.c (ucs_to_char): Use countof.
4863
4864 2000-09-16  Martin Buchholz  <martin@xemacs.org>
4865
4866         * file-coding.c: (ucs_to_char):
4867         (complex_vars_of_file_coding):
4868         Use countof instead of sizeof.
4869         Use CHECK_NATNUM instead of CHECK_INT.
4870
4871         * sysdep.c (strcasecmp): Remove.
4872         * device-x.c (ascii_strcasecmp): New.
4873         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
4874         Avoid using non-standard non-portable strcasecmp.
4875
4876 2000-09-16  Martin Buchholz  <martin@xemacs.org>
4877
4878         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
4879         * font-lock.c: remove reference to emacsfns.h.
4880         * search.c: small doc improvement.
4881         * event-Xt.c: correct file names in comments.
4882         * console-x.h Correct file names in comments.
4883         * frame.c: Correct file names in comments.
4884         * event-stream.c: remove Energize from comments.
4885
4886 2000-09-15  Martin Buchholz  <martin@xemacs.org>
4887
4888         * symeval.h (DEFERROR_STANDARD):
4889         (DEFERROR):
4890         (DEFSYMBOL):
4891         (DEFSYMBOL_NO_DUMP):
4892         (DEFSYMBOL_MULTIWORD_PREDICATE):
4893         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
4894         (DEFKEYWORD):
4895         The construct &##name is not sensible C.
4896         Fixes compilation errors with Unixware native compiler.
4897
4898 2000-09-14  Martin Buchholz  <martin@xemacs.org>
4899
4900         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
4901         (next_frame_internal): Removed.  We now just have next_frame.
4902         (next_frame):
4903         Write a simpler and cleaner one-pass algorithm.
4904         Remove called_from_delete_device arg and #ifdefed-out code.
4905         (previous_frame):
4906         Renamed from prev_frame.  Update callers.
4907         Cleaned up to have an analogous implementation to next_frame.
4908         (other_visible_frames_internal): Remove the
4909         called_from_delete_device bogus arg, and hence, remove this
4910         function.  Just use other_visible_frames().
4911
4912         * window.c (Fnext_window):
4913         Prettify docstring.
4914         Since next_frame() is guaranteed to return a frame, remove check
4915         for nil inserted in previous patch.
4916         (Fprevious_window):
4917         Prettify docstring.
4918         Make code look more like Fnext_window.
4919         (window_loop):
4920         Respect the `console' arg when iterating through windows.
4921         Fixes bug: (get-buffer-window buffer t device) not respecting
4922         the `device' arg.
4923         This function needs more work, as others have pointed out.
4924
4925         * frame.h: Rename prev_frame to previous_frame.
4926         device_matches_console_spec no longer takes a `frame' arg.
4927
4928         * s/gnu.h:
4929         * s/linux.h:
4930         * s/hpux.h:
4931         Use EMACS_BLOCK_SIGNAL instead of sigblock.
4932         From "Golubev I. N." <gin@mo.msk.ru>.
4933
4934         * make-src-depend: Fix typo.
4935
4936 2000-09-13  Martin Buchholz  <martin@xemacs.org>
4937
4938         * window.c (Fnext_window):
4939         next_frame() might return nil, not a frame.
4940         Fixes this crash:
4941         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
4942
4943         * frame.c (next_frame_internal):
4944         We've passed a frame if we've passed its device.
4945         Fixes this crash:
4946         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
4947 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
4948
4949 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
4950
4951         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
4952         Allow option to suppress accelerators in menu/dialog items.
4953         (populate_or_checksum_helper): Pass dialog title through above.
4954
4955 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
4956
4957         * event-msw.c (mswindows_key_to_emacs_keysym):
4958         Add "pause" key, fix "menu" key.
4959
4960 2000-09-09  Martin Buchholz  <martin@xemacs.org>
4961
4962         * eval.c (reinit_vars_of_eval):
4963         Increase max_lisp_eval_depth to 1000,
4964         required for thai-xtis.el to byte-compile under some circumstances.
4965
4966 2000-09-04  Martin Buchholz  <martin@xemacs.org>
4967
4968         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
4969         From Kenichi Handa.
4970
4971 2000-09-01  Martin Buchholz  <martin@xemacs.org>
4972
4973         * make-src-depend: Make the generated Makefiles smaller.
4974
4975         * s/hpux.h (SETUP_SLAVE_PTY):
4976         Provide a %d in the format string for the errno argument.
4977
4978         * editfns.c (Ftemp_directory):
4979         Warning fix.
4980         Avoid buffer overrun on very long file name.
4981
4982         * input-method-xlib.c (XIM_init_device):
4983         6th parameter of XRegisterIMInstantiateCallback has different
4984         pointer types on different OSes, so simply cast to (void *).
4985
4986         * unexhp9k800.c: Warning fixes.  Fiddly changes.
4987
4988         * sysdll.c (dll_open):
4989         shl_load will hang hard if passed a NULL filename.
4990         Simply return NULL for compatibility with dlopen.
4991         * sysdll.c: Conform to XEmacs coding standards.
4992
4993         * sysdep.c (get_pty_max_bytes):
4994         Support pty input lines longer than 512 bytes on HP-UX 10.20.
4995
4996 2000-08-31  Martin Buchholz  <martin@xemacs.org>
4997
4998         * tooltalk.c: Add #include <syssignal.h>
4999
5000 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
5001
5002         * s/hpux.h: Don't use undefined function sigunblock().
5003
5004 2000-08-31  Martin Buchholz  <martin@xemacs.org>
5005
5006         * config.h.in: Add HAVE_BALLOON_HELP.
5007         * emacs.c: Use HAVE_BALLOON_HELP.
5008         * Makefile.in.in (x_objs):
5009         Make Balloon Help conditional on finding shape.h.
5010
5011 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
5012
5013         * syntax.c (regex_emacs_buffer_p): New variable.
5014         * syntax.h (regex_emacs_buffer_p): extern.
5015         * search.c (looking_at_1):
5016         (string_match_1):
5017         (fast_string_match):
5018         (search_buffer): Set regex_emacs_buffer_p.
5019         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
5020         when before_dot, at_dot, after_dot.
5021
5022 2000-08-23  Andy Piper  <andy@xemacs.org>
5023
5024         * gui-x.c (popup_selection_callback): Only set action_occurred
5025         when we really have an image instance.
5026         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
5027
5028 2000-08-23  Andy Piper  <andy@xemacs.org>
5029
5030         * gui-msw.c (mswindows_handle_gui_wm_command): set
5031         action_occurred.
5032         * gui-x.c (popup_selection_callback): ditto.
5033
5034         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
5035         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
5036         (struct Lisp_Image_Instance): add action_occurred flag.
5037
5038         * glyphs.c (redisplay_subwindow): use action_occurred flag.
5039         (image_instance_changed): ditto.
5040         (reset_frame_subwindow_instance_cache): only unmap windows - do
5041         not remove them from the cache also.
5042
5043         * glyphs-widget.c (tab_control_update): better debug.
5044         (progress_gauge_update): ditto.
5045         (layout_update): ditto.
5046         (layout_instantiate): ditto.
5047         (tab_control_order_only_changed): cope with null pending items.
5048
5049         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
5050         debug. Force selection of an item when an action occurred. Cope
5051         with null pending_items.
5052         (mswindows_progress_gauge_redisplay): better debug.
5053         * glyphs-x.c (x_tab_control_redisplay): ditto.
5054
5055         * redisplay.c (redisplay_frame): reset the frame cache if the
5056         frame is garbaged.
5057
5058         * window.c (Fset_window_configuration): potentially re-enable
5059         frame cache reset.
5060         (window_unmap_subwindows): need to finalize instances here since
5061         it is only used in mark_window_as_deleted.
5062
5063 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
5064
5065         * nas.c (SndOpenDataForReading):
5066         nas.c (WaveOpenDataForReading):
5067         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
5068         Somehow escaped from the 2000-08-14 patch.
5069
5070 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5071
5072         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
5073         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
5074
5075 2000-08-21  Andy Piper  <andy@xemacs.org>
5076
5077         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
5078         window if it is not already displayed.
5079
5080         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
5081         it is not already displayed.
5082
5083         * window.c (Fset_window_configuration): don't reset the frame
5084         cache.
5085
5086         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
5087         instances from the frame cache if we are actually finalizing them.
5088         (reset_frame_subwindow_instance_cache): reset frame cache only
5089         after unmapping everything.
5090         (map_subwindow): set displayed flag after mapping.
5091
5092 2000-08-21  Martin Buchholz  <martin@xemacs.org>
5093
5094         * data.c (indirect_function):
5095         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
5096
5097         * eval.c (function_argcount):
5098         Use original function when signaling errors.
5099
5100 2000-08-18  Andy Piper  <andy@xemacs.org>
5101
5102         * frame.c (delete_frame_internal): use new
5103         free_frame_subwindow_instances name.
5104
5105         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
5106         (add_tab_item): make return type correct.
5107         (mswindows_tab_control_instantiate): assert index of tab.
5108         (mswindows_tab_control_redisplay): Re-code to use
5109         gui_item_equal_sans_selected and gui_item_list_find_selected.
5110
5111         * glyphs-widget.c (tab_control_update): Correct comment.
5112
5113         * window.c (window_unmap_subwindows): use new
5114         unmap_subwindow_instance_cache_mapper.
5115         (window_unmap_subwindows_cache_mapper): deleted.
5116         (Fset_window_configuration): comparisons should now be with
5117         EQ. Preserve the subwindow instance cache across configuration
5118         changes.
5119         (allocate_window): ditto.
5120         (make_dummy_parent): ditto.
5121
5122         * glyphs.c (free_frame_subwindow_instances): rename from
5123         free_frame_subwindow_instance_cache. finalize all instances rather
5124         than just those in the display cache.
5125         (finalize_all_subwindow_instances): walk windows unmapping and
5126         finalizing subwindows.
5127         (unmap_subwindow_instance_cache_mapper): moved from
5128         window.c. Allow finalization as well as unmapping.
5129
5130         * gui.c (gui_item_list_find_selected): new function.
5131
5132         * gui.h (gui_item_list_find_selected): declare.
5133
5134         * glyphs-x.c (x_tab_control_redisplay): pick tab
5135         explicitly. Re-code to use gui_item_equal_sans_selected and
5136         gui_item_list_find_selected.
5137
5138         * glyphs-x.h: add lwlib-utils.h
5139
5140         * buffer.c (Frecord_buffer): undo previous change.
5141
5142 2000-08-09  Vin Shelton  <acs@xemacs.org>
5143
5144         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
5145         possible.  Create temporary files more securely.  The patch was
5146         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
5147         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
5148         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
5149         for details.
5150
5151 2000-08-07  Ben Wing  <ben@xemacs.org>
5152
5153         * getloadavg.c: remove duplicate (and windows-breaking)
5154         includes of fcntl.h and sys/file.h.
5155
5156         * nt.c: remove duplicate getloadavg() definition.
5157
5158         * sysdll.h (Qdll_filename_encoding): add missing stand-in
5159         encodings.
5160
5161 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
5162
5163         * eval.c (function_argcount): If function needs to be autoloaded
5164         actually use the loaded definition.
5165         GCPRO function.
5166
5167 2000-08-05  Ben Wing  <ben@xemacs.org>
5168
5169         * getloadavg.c: add prototype for getloadavg().  remove
5170         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
5171         of the code).  remove duplicate header includes.
5172
5173         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
5174
5175         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
5176         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
5177         useful load average.
5178
5179         * alloc.c (reinit_alloc_once_early): removed references to
5180         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
5181         the lisp vars are the only things referencing the malloc_sbrk_*
5182         vars, and they were already if 0'd out.  these vars only exist
5183         in the older malloc.c, which is basically unused, and they're
5184         only for informational purposes.
5185
5186         * m\*.h: removed useless VIRT_ADDR_VARIES.
5187
5188         * m\powerpc.h: removed stray NO_ARG_ARRAY.
5189
5190 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
5191
5192         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
5193         color if the image is a mono pixmap.
5194
5195 2000-07-30  Ben Wing  <ben@xemacs.org>
5196
5197         * Makefile.in.in (release):
5198         Remove stray @.
5199
5200         * buffer.c (directory_is_current_directory):
5201         * dired-msw.c (mswindows_get_files):
5202         * dired.c:
5203         * dired.c (Fdirectory_files):
5204         * dired.c (file_name_completion_stat):
5205         * dired.c (Ffile_attributes):
5206         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
5207         preprocessor tricks, to avoid problems on some machines
5208         (e.g. SCO).
5209
5210         * callproc.c (egetenv): GC docs.
5211
5212         * console-msw.h:
5213         * console-msw.h (struct mswindows_dialog_id):
5214         * lrecord.h (lrecord_type):
5215         New object for use with MSW dialogs.
5216
5217         * console.h (struct console_methods):
5218         New enable/disable frame methods, for proper modal dialogs.
5219
5220         * device-msw.c (msprinter_default_printer): Fix to follow
5221         proper Mule conventions.
5222
5223         * device-msw.c:
5224         * device-msw.c (signal_open_printer_error):
5225         * device-msw.c (msprinter_init_device):
5226         * device-msw.c (ensure_not_printing):
5227         * device-msw.c (plist_get_margin):
5228         * device-msw.c (Fmsprinter_select_settings):
5229         * device-msw.c (finalize_devmode):
5230         * device-msw.c (Fmsprinter_settings_despecialize):
5231         * device-msw.c (signal_enum_priner_error):
5232         * extents.c (decode_extent):
5233         * extents.c (decode_map_extents_flags):
5234         * extents.c (decode_extent_at_flag):
5235         * extents.c (Fextent_at):
5236         * extents.c (Fextents_at):
5237         * extents.c (symbol_to_glyph_layout):
5238         [[[[2]]]] Use structured errors.
5239
5240         * dialog-msw.c:
5241         * dialog-msw.c (mswindows_is_dialog_msg):
5242         * dialog-msw.c (mark_mswindows_dialog_id):
5243         * dialog-msw.c (dialog_proc):
5244         * dialog-msw.c (handle_question_dialog_box):
5245         * dialog-msw.c (syms_of_dialog_mswindows):
5246         Define new object to clean up marking; use it as a dialog identifier.
5247         Call new delete-dialog-box-hook.
5248
5249         * dialog-x.c (dbox_selection_callback):
5250         * dialog-x.c (dbox_descriptor_to_widget_value):
5251         * dialog-x.c (x_make_dialog_box_internal):
5252         Call new delete-dialog-box-hook.
5253         Return an id.
5254
5255         * dialog.c:
5256         * dialog.c (syms_of_dialog):
5257         * dialog.c (vars_of_dialog):
5258         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
5259
5260         * eval.c:
5261         * eval.c (signal_call_debugger):
5262         when noninteractive, output stack traces on the console instead
5263         of in a (never-seen) buffer.
5264
5265         * eval.c (signal_type_error):
5266         * eval.c (invalid_argument_2):
5267         * lisp.h:
5268         new funs for use w/structured errors.
5269
5270         * event-Xt.c:
5271         * event-Xt.c (x_to_emacs_keysym):
5272         * event-Xt.c (describe_event):
5273         * event-Xt.c (emacs_Xt_event_handler):
5274         * event-Xt.c (vars_of_event_Xt):
5275         * event-msw.c:
5276         * event-msw.c (mswindows_wnd_proc):
5277         * event-msw.c (vars_of_event_mswindows):
5278         rename {x,mswindows}-debug-events to debug-{}-events for
5279         consistency with other debug-foo variables.
5280
5281         * event-stream.c:
5282         document next-event more clearly.
5283
5284         * fileio.c (Ffile_name_directory):
5285         * fileio.c (Ffile_name_nondirectory):
5286         * fileio.c (Funhandled_file_name_directory):
5287         * fileio.c (file_name_as_directory):
5288         * fileio.c (Ffile_name_as_directory):
5289         * fileio.c (directory_file_name):
5290         * fileio.c (Fdirectory_file_name):
5291         * fileio.c (Fmake_temp_name):
5292         * fileio.c (Ffile_truename):
5293         * fileio.c (Fsubstitute_in_file_name):
5294         * fileio.c (expand_and_dir_to_file):
5295         * fileio.c (barf_or_query_if_file_exists):
5296         * fileio.c (check_executable):
5297         * fileio.c (Ffile_exists_p):
5298         * fileio.c (Ffile_writable_p):
5299         * fileio.c (Ffile_directory_p):
5300         * fileio.c (Ffile_regular_p):
5301         * fileio.c (Ffile_modes):
5302         * fileio.c (Ffile_newer_than_file_p):
5303         * fileio.c (Fverify_visited_file_modtime):
5304         * fileio.c (Fset_visited_file_modtime):
5305         * fileio.c (auto_save_1):
5306         (1). (2).
5307         fix up gcpro's.
5308
5309         * frame-msw.c:
5310         * frame-msw.c (mswindows_init_frame_1):
5311         * frame-msw.c (mswindows_enable_frame):
5312         * frame-msw.c (error_frame_unsizable):
5313         * frame-msw.c (msprinter_init_frame_1):
5314         * frame-msw.c (msprinter_init_frame_3):
5315         * frame-msw.c (console_type_create_frame_mswindows):
5316         (2).
5317         implement new enable/disable frame methods.
5318
5319         * frame-x.c:
5320         * frame-x.c (x_enable_frame):
5321         * frame-x.c (console_type_create_frame_x):
5322         implement new enable/disable frame methods.
5323
5324         * frame.c:
5325         * frame.c (Fdisable_frame):
5326         * frame.c (syms_of_frame):
5327         * frame.h (struct frame):
5328         implement new enable/disable frame methods/functions.
5329
5330         * general-slots.h:
5331         add initial-focus.
5332
5333         * glyphs-msw.c (mswindows_widget_instantiate):
5334         comment that initial-focus should be implemented.
5335
5336         * glyphs-widget.c:
5337         * glyphs-widget.c (check_valid_instantiator):
5338         * glyphs-widget.c (check_valid_orientation):
5339         * glyphs-widget.c (check_valid_tab_orientation):
5340         * glyphs-widget.c (check_valid_justification):
5341         * glyphs-widget.c (check_valid_border):
5342         * glyphs-widget.c (check_valid_callback):
5343         * glyphs-widget.c (check_valid_int_or_function):
5344         * glyphs-widget.c (check_valid_string_or_vector):
5345         * glyphs-widget.c (check_valid_item_list_1):
5346         * glyphs-widget.c (widget_validate):
5347         * glyphs-widget.c (combo_box_validate):
5348         * glyphs-widget.c (widget_instantiate):
5349         * glyphs-widget.c (syms_of_glyphs_widget):
5350         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
5351         * glyphs-widget.c (image_instantiator_combo_box):
5352         * glyphs-widget.c (image_instantiator_scrollbar):
5353         * glyphs-widget.c (image_instantiator_tab_control):
5354         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
5355         (2).
5356         support (unimplemented) keyword initial-focus.
5357         reindent long macros.
5358
5359         * glyphs-x.c (x_redisplay_widget):
5360         * glyphs-x.c (x_button_instantiate):
5361         * glyphs-x.c (x_button_redisplay):
5362         * glyphs-x.c (x_progress_gauge_instantiate):
5363         * glyphs-x.c (x_edit_field_instantiate):
5364         * glyphs-x.c (x_combo_box_instantiate):
5365         * glyphs-x.c (x_tab_control_instantiate):
5366         * glyphs-x.c (x_label_instantiate):
5367         * gui-x.c:
5368         * gui-x.c (button_item_to_widget_value):
5369         * gui-x.c (gui_items_to_widget_values_1):
5370         * gui-x.c (gui_item_children_to_widget_values):
5371         * gui-x.c (gui_items_to_widget_values):
5372         * gui-x.h:
5373         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
5374         add new flag to gui-parsing routines to indicate whether
5375         accelerator specs should be supported.
5376
5377         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
5378
5379         * glyphs.h (struct Lisp_Image_Instance):
5380         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
5381         add initial-focus flag.
5382
5383         * gui.c:
5384         * gui.c (syms_of_gui):
5385         * gui.c (vars_of_gui):
5386         clean up menu-no-selection-hook.
5387
5388         * gui.h:
5389         support delete-dialog-box-hook.
5390
5391         * lread.c (Fload_internal):
5392         * lread.c (locate_file_in_directory_mapper):
5393         (1).
5394
5395         * lrecord.h:
5396         * lrecord.h (struct toolbar_button):
5397         * lrecord.h (syms_of_toolbar):
5398         document how to create a new object.
5399
5400         * menubar-msw.c (mswindows_char_is_accelerator):
5401         may be called on frames w/o menus.
5402
5403         * menubar.c (vars_of_menubar):
5404         clean up :filter docs.
5405
5406         * nt.c (readdir):
5407         * ntproc.c:
5408         (1).
5409
5410         * process-nt.c:
5411         * process-nt.c (validate_signal_number):
5412         * process-nt.c (signal_cannot_launch):
5413         * process-nt.c (nt_create_process):
5414         * process-nt.c (nt_send_process):
5415         * process-nt.c (nt_kill_child_process):
5416         * process-nt.c (nt_open_network_stream):
5417         * process-nt.c (syms_of_process_nt):
5418         (2).
5419         delete quote-handling.  call new lisp code that does it better.
5420
5421         * process-unix.c (connect_to_file_descriptor):
5422         * process-unix.c (allocate_pty):
5423         * process-unix.c (unix_send_process):
5424         * process-unix.c (unix_kill_child_process):
5425         * process-unix.c (unix_open_network_stream):
5426         * process-unix.c (unix_open_multicast_group):
5427         (1). (2).
5428
5429         * process.c:
5430         * process.c (Fstart_process_internal):
5431         (2).  need to canonicalize process path even if absolute.
5432
5433         * select-msw.c (symbol_to_ms_cf):
5434         * select-msw.c (ms_cf_to_symbol):
5435         * select-msw.c (cf_is_autofreed):
5436         * select-msw.c (mswindows_destroy_selection):
5437         * select.c:
5438         * select.c (syms_of_select):
5439         * select.h:
5440         support dibv5, fix bugs. (from Mike Alexander)
5441
5442         * select.c (Fget_selection_internal):
5443         * select.c (select_convert_out):
5444
5445         * sysdep.c:
5446         * sysdep.c (xemacs_stat):
5447         renamed.
5448
5449         * sysdep.c (mkdir):
5450         * sysdep.c (rmdir):
5451         but keep original stat() here because we provide encapsulation
5452         around these funs.
5453
5454         * sysfile.h:
5455         * sysfile.h (fstat):
5456         remove stat garbage.
5457
5458         * syswindows.h:
5459         fix X/MSW conflict.
5460         don't include tchar.h.  it's inappropriate because it makes
5461         compile-time distinctions when we want runtime distinctions.
5462         (we provide our own tchar replacements)
5463
5464         * toolbar.c:
5465         use default object printer for toolbar-button.
5466
5467         * unexcw.c:
5468         make sure we don't encapsulate.
5469
5470         * window.c (vars_of_window):
5471         emphasize that temp-buffer-show-hook is obsolete.
5472
5473 2000-08-05  Martin Buchholz  <martin@xemacs.org>
5474
5475         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
5476         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
5477
5478         * events.c (Fevent_timestamp_lessp):
5479         Not 64-bit clean.  Use EMACS_INT, not int.
5480
5481 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
5482
5483         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
5484         unsigned int and changed the last enum to
5485         lrecord_type_last_built_in_type.
5486         (lrecord_implementations_table): changed prototype to know how
5487         long the array is supposed to be.
5488         (lrecord_type_count): new unsigned int to keep track of the
5489         current number of lisp lrecord types.
5490         (DEFINE_EXTERNAL_LRECORD):
5491         (DECLARE_EXTERNAL_LRECORD): Added these two for external
5492         dynamic-modules to declare new lisp types. They are the same
5493         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
5494         int for each new type, and increment lrecord_type_count by 1.
5495
5496         * alloc.c (lrecord_implementations_table): Changed to reference
5497         lrecord_type_last_built_in_type for the size of the array.
5498         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
5499
5500 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
5501
5502         * glyphs.h (check_valid_item_list): Renamed from
5503         check_valid_item_list_1.
5504
5505 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
5506
5507         * select.c (Qselect_coerce): New.
5508         * select.c (Vselection_coercion_alist): New.
5509         * select.c (syms_of_select): Declare.
5510         * select.c (get-selection-internal): Use it.
5511         Use the new select-coerce functionality.
5512
5513         * select.c (select_coerce): New.
5514         * select.h (select_coerce): Declare.
5515         New function to coerce one type of data into another.
5516
5517 2000-08-03  Martin Buchholz  <martin@xemacs.org>
5518
5519         * callproc.c (Fcall_process_internal):
5520         (Fcall_process_internal):
5521         * process-unix.c (unix_create_process):
5522         Save and restore the value of errno, so that error messages are accurate.
5523
5524 2000-08-01  Martin Buchholz  <martin@xemacs.org>
5525
5526         * elhash.c (print_hash_table):
5527         Fix printing of hash tables to also use `key-and-value' instead of `t'.
5528         Prettify docstrings and indentation.
5529
5530 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
5531
5532         * window.c (Fwindow_pixel_edges): Subtract frame border and
5533         gutter size.
5534
5535 2000-07-31  Andy Piper  <andy@xemacs.org>
5536
5537         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
5538         will acknowledge the change.
5539
5540         * glyphs.h: declare tab_control_order_only_changed.
5541
5542         * glyphs-x.c (x_tab_control_redisplay): use
5543         tab_control_order_only_changed.
5544
5545         * glyphs-widget.c (tab_control_order_only_changed): new function.
5546
5547         * glyphs-msw.c (mswindows_tab_control_redisplay): use
5548         tab_control_order_only_changed.
5549
5550         * gui.c (gui_item_equal_sans_selected): new function.
5551         (gui_item_equal): use it.
5552
5553         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
5554         :properties in favor of :items..
5555
5556         * glyphs-widget.c (check_valid_item_list): rename from
5557         check_valid_item_list_1.
5558         (check_valid_item_list_1): renamed.
5559         (combo_box_validate): deprecate :properties in favor of :items.
5560         (widget_instantiate): ditto.
5561         (tab_control_update): ditto.
5562         (image_instantiator_combo_box): ditto.
5563         (image_instantiator_tree_view): ditto.
5564         (image_instantiator_tab_control): ditto.
5565         (layout_post_instantiate): remove dead code.
5566
5567         * print.c (debug_print_no_newline): only write to debugger if in
5568         WIN32_NATIVE.
5569
5570         * elhash.c (Fmake_hash_table): update doc string.
5571
5572         * event-msw.c (mswindows_wnd_proc): don't allow processing of
5573         messages whilst in GC. This at least stops XEmacs crashing but has
5574         the potential for wierd behaviour.
5575
5576 2000-07-31  Martin Buchholz  <martin@xemacs.org>
5577
5578         * config.h.in:
5579         Make existence of s&m files optional.
5580
5581         * s/bsd386.h: Remove HAVE_GETLOADAVG.
5582         * s/freebsd.h: Remove HAVE_GETLOADAVG.
5583         * s/gnu.h: Remove HAVE_GETLOADAVG.
5584         * s/netbsd.h: Remove HAVE_GETLOADAVG.
5585         * s/sol2.h: Remove HAVE_GETLOADAVG.
5586         * lisp.h: Remove getloadavg() declaration.
5587         * fns.c:
5588         Include <sys/loadavg.h> if available.
5589         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
5590         * config.h.in:  Group together getloadavg()-related macros.
5591         Use only configure-time tests to detect getloadavg().
5592
5593 2000-07-30  Martin Buchholz  <martin@xemacs.org>
5594
5595         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
5596
5597 2000-07-25  Andy Piper  <andy@xemacs.org>
5598
5599         * syswindows.h: add tchar.h for native builds.
5600
5601         * frame.c (syms_of_frame): remove set-glyph-image.
5602
5603         * general-slots.h: add Qset_glyph_image.
5604
5605         * glyphs-widget.c (layout_update): add domain arg to
5606         set-glyph-image.
5607         (syms_of_glyphs_widget): remove set-glyph-image.
5608
5609 2000-07-23  Ben Wing  <ben@xemacs.org>
5610
5611         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
5612         Vpopup_frame_list.
5613
5614 2000-07-22  Andy Piper  <andy@xemacs.org>
5615
5616         * symsinit.h: add syms_of_win32().
5617
5618         * gui-msw.c (syms_of_gui_mswindows): remove
5619         Fmswindows_shell_execute.
5620         (Fmswindows_shell_execute): moved to win32.c.
5621
5622         * emacs.c (main_1): add syms_of_win32 ().
5623
5624         * win32.c (init_potentially_nonexistent_functions): rewrite in
5625         compiler-friendly terms.
5626         (Fmswindows_shell_execute): move here from gui-msw.c.
5627         (syms_of_win32): new.
5628
5629         * device-msw.c (Fmswindows_printer_list): clean up args to
5630         EnumPrinters.
5631         Don't include tchar under cygwin or mingw.
5632         (msprinter_default_printer): make cygwin-friendly.
5633
5634 2000-07-21  Andy Piper  <andy@xemacs.org>
5635
5636         * glyphs-widget.c (image_instantiator_tree_view): use tab
5637         control's update function.
5638         (layout_property): new function. Retrieve items.
5639
5640         * glyphs-msw.c (mswindows_tree_view_redisplay): new
5641         function. Re-populate the tree view from the pending items.
5642
5643         * glyphs.c (instantiate_image_instantiator): Make sure the domain
5644         is designated the parent if the domain is an image instance. This
5645         is needed so that dirtiness can be cascade up the hierarchy and
5646         thus for layout children to be redisplayed correctly.
5647         (allocate_image_instance): rename glyph -> parent.
5648
5649         * redisplay.h: change redisplay_output_layout signature.
5650
5651         * redisplay-msw.c (mswindows_output_display_block): use domain
5652         arg.
5653
5654         * redisplay-x.c (x_output_display_block): use domain arg.
5655
5656 2000-07-10  Andy Piper  <andy@xemacs.org>
5657
5658         * window.c (Fset_window_configuration): add comment.
5659
5660         * redisplay-output.c (compare_runes):
5661         (redisplay_output_subwindow): redisplay rather than update subwindow.
5662         (redisplay_output_layout): ditto.
5663
5664         * redisplay-msw.c (mswindows_frame_output_end):
5665         (mswindows_frame_output_end): make defer window pos optional.
5666
5667         * lisp.h: add Flast.
5668
5669         * glyphs.h (struct image_instantiator_methods): add dest_mask top
5670         normalize method. Change update method to be for changed
5671         instantiators. Add redisplay method. Change signature of layout
5672         method.
5673         (struct Lisp_Image_Instance): add instantiator.
5674         (IMAGE_INSTANCE_INSTANTIATOR): new.
5675         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
5676         (XIMAGE_INSTANCE_INSTANTIATOR): new.
5677         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
5678
5679         * glyphs.c:
5680         (find_instantiator_differences): new function.
5681         (Fset_instantiator_property): new convenience function.
5682         (check_image_instance_structure): strictly check for vector
5683         instantiators.
5684         (normalize_image_instantiator): make non-static.
5685         (instantiate_image_instantiator): pass on dest_mask and use new
5686         signatures for image_instance_layout and friends.
5687         (mark_image_instance): mark the instantiator. Mark the subwindow
5688         face not the widget face.
5689         (image_instance_equal): add instantiator.
5690         (image_instance_hash): ditto.
5691         (allocate_image_instance): ditto.
5692         (Fset_image_instance_property): removed.
5693         (Fimage_instance_file_name): ditto.
5694         (Fcolorize_image_instance): ditto.
5695         (image_instance_layout): add offsets to be set.
5696         (update_image_instance): new function. update an image instance
5697         from its changed instantiator.
5698         (inherit_normalize): add dest_mask.
5699         (xbm_normalize): ditto.
5700         (xface_normalize): ditto.
5701         (xpm_normalize): ditto.
5702         (text_update): set_property -> update.
5703         (image_instantiate): use the glyph identity as a hash key, not the
5704         instantiator.
5705         (glyph_width): use new image_instance_layout signature.
5706         (glyph_ascent): ditto.
5707         (glyph_descent): ditto.
5708         (glyph_height): ditto.
5709         (glyph_query_geometry): ressurrect.
5710         (glyph_layout): ditto.
5711         (redisplay_subwindow): update -> redisplay.
5712         (syms_of_glyphs): add Fset_instantiator_property.
5713         (image_instantiator_format_create): set_property -> update.
5714
5715         * glyphs-x.c:
5716         (autodetect_normalize): add dest_maks to signature.
5717         (x_redisplay_subwindow): update -> redisplay.
5718         (x_redisplay_widget): ditto.
5719         (x_button_redisplay): ditto.
5720         (x_progress_gauge_redisplay): ditto.
5721         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
5722         stacking order.
5723         (console_type_create_glyphs_x): update -> redisplay.
5724         (image_instantiator_format_create_glyphs_x): ditto.
5725
5726         * glyphs-widget.c:
5727         (check_valid_instantiator): disallow glyphs in the instantiator,
5728         they must now be vectors.
5729         (check_valid_instantiator_list): ditto.
5730         (glyph_instantiator_to_glyph): use internal symbol rather than
5731         intern.
5732         (widget_update): renamed from widget_set_property. Call cascaded
5733         update methods.
5734         (redisplay_widget): renamed from update_widget.
5735         (widget_layout): image_instance_layout now takes position as well
5736         as size.
5737         (widget_normalize): ditto.
5738         (widget_instantiate): ditto.
5739         (tab_control_query_geometry) ditto.:
5740         (tab_control_update): renamed from tab_control_set_property.
5741         (progress_gauge_update): set_property -> update.
5742         (layout_normalize): rewrite so that child instantiators are
5743         normalized also.
5744         (layout_update): new function. Create glyphs from the normalized
5745         children and cope with any other layout keywords. We do not
5746         instantiate children here that will be take care of by
5747         redisplay_output_layout.
5748         (layout_instantiate): call layout_update and not much else.
5749         (layout_post_instantiate): not sure whether this is needed
5750         anymore.
5751         (layout_query_geometry): query glyph geometry rather than
5752         image_instance geometry.
5753         (layout_layout): set offsets from pass in parameters. Use glyph
5754         geometry and layout functions rather than image instance ones.
5755         (native_layout_layout): ditto.
5756         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
5757         (image_instantiator_widget): set_property -> update.
5758         (image_instantiator_buttons): ditto.
5759         (image_instantiator_progress_guage): ditto.
5760         (image_instantiator_tab_control): ditto.
5761         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
5762         (image_instantiator_layout): add update method.
5763
5764         * glyphs-msw.c (bmp_normalize):
5765         (mswindows_resource_normalize): add dest_mask so that it can be
5766         proprogated by layout_normalize.
5767         (begin_defer_window_pos): make optional because it may not be the
5768         right thing to do and it introduces differences with X.
5769         (mswindows_unmap_subwindow): ditto.
5770         (mswindows_map_subwindow): ditto.
5771         (mswindows_redisplay_subwindow): renamed from
5772         mswindows_update_subwindow.
5773         (mswindows_redisplay_widget): ditto.
5774         (mswindows_button_redisplay): renamed from
5775         mswindows_button_update. Update is now what the instantiation
5776         function does for a changed instantiator.
5777         (mswindows_progress_gauge_instantiate): set the progress value
5778         here if appropriate.
5779         (mswindows_tab_control_redisplay): cope with re-ordering of the
5780         members of the tab widget by simply selecting the new top
5781         widget. This makes things appear ok if you click on a tab.
5782         (mswindows_combo_box_instantiate): image_instance_layout now takes
5783         position as well as size.
5784         (mswindows_progress_gauge_redisplay): renamed from
5785         mswindows_progress_gauge_update.
5786         (console_type_create_glyphs_mswindows): fix update -> redisplay.
5787         (image_instantiator_format_create_glyphs_mswindows): ditto.
5788
5789         * glyphs-eimage.c (jpeg_normalize):
5790         (gif_normalize):
5791         (png_normalize):
5792         (tiff_normalize): add dest_mask so that it can be proprogated by
5793         layout_normalize.
5794
5795         * elhash.c:
5796         (print_hash_table):
5797         (hash_table_weakness_validate):
5798         (decode_hash_table_weakness):
5799         (Fhash_table_weakness):
5800         (Fhash_table_type):
5801         (syms_of_elhash): use Ben's naming scheme for hashtable types..
5802
5803         * console.h (struct console_methods): move update_* to
5804         redisplay_*.
5805
5806 2000-07-20  Ben Wing  <ben@xemacs.org>
5807
5808         * *.[ch] (XSETOBJ): remove unused middle argument.
5809         lisp-disunion.h: correct wrap_object() to one argument.
5810
5811 2000-07-15  Ben Wing  <ben@xemacs.org>
5812
5813         * s/cygwin32.h:
5814         * s/cygwin32.h (CYGWIN_CONV_PATH):
5815         Add missing logb prototype for v1.1.
5816         Use post-b20 names and alias to pre-b20 names when pre-b20.
5817
5818         * s/windowsnt.h: [5].
5819
5820 2000-07-15  Ben Wing  <ben@xemacs.org>
5821
5822         * Makefile.in.in (x_objs):
5823         * Makefile.in.in (sheap_objs):
5824         * Makefile.in.in (objs):
5825         added win32.o, cosmetic cleanups.
5826
5827         * alloc.c (Fmake_byte_code):
5828         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
5829         etc. macros which declare their own args now.
5830
5831         * alloc.c (syms_of_alloc):
5832         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
5833
5834         * buffer.c:
5835         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
5836
5837         * buffer.c (Fget_file_buffer):
5838         Fixed GCPRO problem.
5839
5840         * buffer.c (get_truename_buffer):
5841         Fixed comment about GC checking.
5842
5843         * buffer.c (syms_of_buffer):
5844         Undeclared those dedicated frame funs.
5845         [2].
5846
5847         * buffer.h:
5848         Define convenience macros for internal/external conversions.
5849         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
5850         and Qenvironment_variable_encoding for cleaner code.
5851
5852         * bufslots.h:
5853         Remove dedicated-frame; in lisp.
5854
5855         * bytecode.c (funcall_compiled_function):
5856         [1].
5857
5858         * bytecode.c (syms_of_bytecode):
5859         [2].
5860
5861         * console-msw.c:
5862         * console-msw.c (mswindows_show_console): Rewrote.
5863
5864         * console-msw.c (Fmswindows_debugging_output): New.
5865         Sends to OutputDebugString (special MSWin debugger interface).
5866
5867         * console-msw.c (Fmswindows_message_box):
5868         Fixed stupid bugs so it works when called from kill-emacs.
5869
5870         * console-msw.c (syms_of_console_mswindows):
5871         Declare Fmswindows_debugging_output.
5872
5873         * console-msw.h:
5874         New MSWin prototypes.
5875
5876         * console-msw.h (struct mswindows_frame):
5877         New entry last-click-mods for improved button-modifier support.
5878
5879         * console-msw.h (FRAME_MSWINDOWS_POPUP):
5880         New struct entry `popup' with corresponding accessor.
5881
5882         * console-x.c:
5883         * console-x.c (split_up_display_spec):
5884         * console-x.c (get_display_arg_connection):
5885         * console-x.c (x_semi_canonicalize_console_connection):
5886         * console-x.c (x_canonicalize_device_connection):
5887         [[[6]]]: Change char to more specific type.
5888         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
5889
5890         * console-x.c (x_semi_canonicalize_console_connection):
5891         * console-x.c (x_canonicalize_device_connection):
5892         [[[9]]]: Fix up error signalling to use new structured error system.
5893
5894         * console-x.h:
5895         [[[4]]]: Define codesys aliases:
5896         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
5897         Qx_color_name_encoding, Qx_display_name_encoding.
5898
5899         * console.h (struct console_methods):
5900         New method make_dialog_box_internal supersedes older
5901         popup_dialog_box method.
5902
5903         * data.c:
5904         Define many new errors, part of new structured errors.
5905
5906         * data.c (init_errors_once_early):
5907         * data.c (syms_of_data):
5908         [2].
5909
5910         * device-msw.c (mswindows_init_device):
5911         [[[5]]]: Cleanup to support NT 3.51.
5912
5913         * device-msw.c (decode_devmode): Cleanup.
5914
5915         * device-msw.c (mswindows_handle_print_setup_dialog_box):
5916         * device-msw.c (mswindows_handle_print_dialog_box):
5917         * device-msw.c (mswindows_handle_page_setup_dialog_box):
5918         * device-msw.c (syms_of_device_mswindows):
5919         Delete the dialog box primitives recently introduced by Kirill and
5920         instead interface to general dialog box interface.
5921
5922         * device-x.c:
5923         * device-x.c (compute_x_app_name):
5924         * device-x.c (x_init_device):
5925         * device-x.c (Fx_valid_keysym_name_p):
5926         * device-x.c (Fx_set_font_path):
5927         [6].
5928         [7].
5929
5930         * device.h (wrap_device): New.
5931         First of its kind; meant to replace XSETDEVICE.
5932
5933         * dialog-msw.c: Many file-dialog symbols.
5934
5935         * dialog-msw.c (mswindows_register_popup_frame): New.
5936         * dialog-msw.c (mswindows_is_dialog_msg): New.
5937         For supporting kbd traversal in dialog boxes.
5938
5939         * dialog-msw.c (dialog_proc):
5940         Support hitting ESC in dialogs.
5941
5942         * dialog-msw.c (struct):
5943         Common dialog box errors.
5944
5945         * dialog-msw.c (handle_file_dialog_box): New.
5946         Add file dialog code.
5947
5948         * dialog-msw.c (handle_question_dialog_box):
5949         Redo existing code to support new question dialog syntax.
5950
5951         * dialog-msw.c (console_type_create_dialog_mswindows):
5952         We support new dialog console method.
5953
5954         * dialog-msw.c (syms_of_dialog_mswindows):
5955         * dialog-msw.c (vars_of_dialog_mswindows):
5956         New file dialog symbols, vars.
5957
5958         * dialog-x.c:
5959         * dialog-x.c (maybe_run_dbox_text_callback):
5960         * dialog-x.c (dbox_descriptor_to_widget_value):
5961         * dialog-x.c (x_make_dialog_box_internal):
5962         * dialog-x.c (console_type_create_dialog_x):
5963         Mule-ize entire file.
5964         Redo to support question dialog syntax.
5965         [6].
5966
5967         * dialog.c:
5968         * dialog.c (Fmake_dialog_box_internal):
5969         * dialog.c (syms_of_dialog):
5970         Kill old popup-dialog-box, replace with new primitive.
5971         Just call device method or signal error.
5972
5973         * eldap.c (Fldap_open):
5974         * eldap.c (Fldap_search_basic):
5975         * eldap.c (Fldap_add):
5976         * eldap.c (Fldap_modify):
5977         [1].
5978         [7].
5979
5980         * emacs.c:
5981         * emacs.c (make_arg_list_1):
5982         * emacs.c (make_arg_list):
5983         Mule-ize call to dll_init().
5984         [6].
5985         [8].
5986
5987         * emacs.c (make_argc_argv):
5988         * emacs.c (free_argc_argv):
5989         * emacs.c (init_cmdargs):
5990         * emacs.c (main_1):
5991         * emacs.c (Fkill_emacs):
5992         * emacs.c (Fdump_emacs):
5993         Update comments about what can be used in syms_* etc.
5994         Call init_win32() when necessary.
5995         Fix up MS Win dialog box in kill-buffer to actually work right.
5996         [7].
5997
5998         * eval.c:
5999         * eval.c (For):
6000         * eval.c (Fand):
6001         * eval.c (Fprogn):
6002         * eval.c (Fprog1):
6003         * eval.c (Fprog2):
6004         * eval.c (FletX):
6005         * eval.c (Flet):
6006         * eval.c (condition_case_3):
6007         * eval.c (Feval):
6008         * eval.c (function_argcount):
6009         * eval.c (funcall_lambda):
6010         [1].
6011
6012         * eval.c (type_error): New.
6013         * eval.c (maybe_type_error): New.
6014         * eval.c (continuable_type_error): New.
6015         * eval.c (maybe_continuable_type_error): New.
6016         * eval.c (type_error_with_frob): New.
6017         * eval.c (maybe_type_error_with_frob): New.
6018         * eval.c (continuable_type_error_with_frob): New.
6019         * eval.c (maybe_continuable_type_error_with_frob): New.
6020         New functions for use with structured errors.
6021
6022         * event-Xt.c:
6023         * event-Xt.c (x_event_to_emacs_event):
6024         Buttons are now modifiers too.
6025
6026         * event-Xt.c (emacs_Xt_current_event_timestamp):
6027         Implement new event method.
6028         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
6029
6030         * event-msw.c:
6031         * event-msw.c (ntpipe_shove_writer): [5].
6032         * event-msw.c (mswindows_enqueue_mouse_button_event):
6033         * event-msw.c (mswindows_drain_windows_queue):
6034         * event-msw.c (mswindows_wnd_proc): [7].
6035         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
6036         * event-msw.c (mswindows_modifier_state):
6037         Throughout: support new button modifiers.
6038
6039         * event-msw.c (emacs_mswindows_current_event_timestamp):
6040         Implement new event method.
6041         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
6042
6043         * event-stream.c:
6044         * event-stream.c (event_stream_current_event_timestamp): New.
6045         * event-stream.c (maybe_kbd_translate): New functionality.
6046         * event-stream.c (vars_of_event_stream):
6047         Document new kbd-translate-table functionality.
6048
6049         * event-stream.c (Fcurrent_event_timestamp): New.
6050         New primitive for use in fabricated events.
6051         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
6052
6053         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
6054
6055         * events.c:
6056         * events.c (Fmake_event):
6057         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
6058         [1].
6059         [9].
6060
6061         * events.c (format_event_object): fix gcc warnings.
6062
6063         * events.c (Fevent_timestamp): Document new primitives.
6064
6065         * events.c (TIMESTAMP_HALFSPACE): New.
6066
6067         * events.c (Fevent_timestamp_lessp): New.  New primitive for
6068         comparing timestamps correctly (half-space algorithm).
6069
6070         * events.c (Fevent_modifier_bits): Doc fix.
6071
6072         * events.c (Fevent_modifiers): Major doc addition.
6073         * events.c (event_x_y_pixel_internal): Typo fix.
6074         * events.c (syms_of_events): Declare new primitives.
6075
6076         * events.h:
6077         Update long comment for button modifiers, timestamps.
6078
6079         * events.h (struct event_stream):
6080         New current_event_timestamp method.
6081
6082         * extents.c:
6083         * extents.c (extent_in_region_p):
6084         * extents.c (decode_extent):
6085         * extents.c (Fset_extent_parent):
6086         * extents.c (decode_map_extents_flags):
6087         Fix gcc warnings.
6088         [9].
6089
6090         * extents.c (struct extent_at_arg):
6091         * extents.c (decode_extent_at_flag):
6092         * extents.c (extent_at_mapper):
6093         * extents.c (extent_at_bytind):
6094         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
6095         * extents.c (Fextents_at): New primitive. [9].
6096         * extents.c (symbol_to_glyph_layout): [9].
6097         Support new primitive `extents-at'.
6098
6099
6100         * extents.c (get_text_property_bytind):
6101         extent_at_bytind has another arg.
6102         [9].
6103
6104         * extents.c (syms_of_extents): New primitive.
6105
6106         * file-coding.c (Fmake_coding_system): [1].
6107         * file-coding.c (subsidiary_coding_system): fix gcc warning
6108         * file-coding.c (syms_of_file_coding): [2].
6109
6110         * fileio.c (Fexpand_file_name):
6111         * fileio.c (Fsysnetunam):
6112         * fileio.c (Ffile_exists_p):
6113         * fileio.c (Ffile_executable_p):
6114         * fileio.c (Fverify_visited_file_modtime):
6115         Clean up GCPROing.
6116
6117         * fileio.c (syms_of_fileio): [2].
6118
6119         * filelock.c (lock_file_1):
6120         * filelock.c (current_lock_owner):
6121         * filelock.c (lock_if_free):
6122         * filelock.c (lock_file):
6123         * filelock.c (unlock_file):
6124         Clean up GCPROing.
6125
6126         * fns.c (concat): Fix gcc warning.
6127
6128         * fns.c (Fmember):
6129         * fns.c (Fold_member):
6130         * fns.c (Fmemq):
6131         * fns.c (Fold_memq):
6132         * fns.c (memq_no_quit):
6133         * fns.c (Fassoc):
6134         * fns.c (Fold_assoc):
6135         * fns.c (Fassq):
6136         * fns.c (Fold_assq):
6137         * fns.c (assq_no_quit):
6138         * fns.c (Frassoc):
6139         * fns.c (Fold_rassoc):
6140         * fns.c (Frassq):
6141         * fns.c (Fold_rassq):
6142         * fns.c (rassq_no_quit):
6143         * fns.c (Fdelete):
6144         * fns.c (Fold_delete):
6145         * fns.c (Fdelq):
6146         * fns.c (Fold_delq):
6147         * fns.c (delq_no_quit):
6148         * fns.c (Fremassoc):
6149         * fns.c (Fremassq):
6150         * fns.c (remassq_no_quit):
6151         * fns.c (Fremrassoc):
6152         * fns.c (Fremrassq):
6153         * fns.c (remrassq_no_quit):
6154         * fns.c (Freverse):
6155         * fns.c (mapcar1):
6156         [1].
6157
6158         * frame-msw.c (mswindows_init_frame_1):
6159         * frame-msw.c (mswindows_delete_frame):
6160         Register popups with dialog code so keyboard traversing works.
6161
6162         * frame-tty.c (tty_raise_frame_no_select): [1].
6163
6164         * frame-x.c:
6165         * frame-x.c (x_set_frame_text_value):
6166         * frame-x.c (x_set_frame_properties):
6167         * frame-x.c (x_create_widgets):
6168         [7].
6169
6170         * frame.c:
6171         * frame.c (Fmouse_pixel_position): Minor doc fixes.
6172
6173         * frame.h (wrap_frame): New.
6174         Macro like wrap_device.
6175
6176         * general.c:
6177         * general.c (SYMBOL):
6178         * general.c (syms_of_general):
6179         Major reorg.  This is now just a wrapper and symbols themselves
6180         are listed in general-slots.h.
6181
6182         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
6183         * glyphs-msw.c (mswindows_resource_instantiate): [5].
6184
6185         * glyphs-msw.c (mswindows_native_layout_instantiate):
6186         Add DS_CONTROL so keyboard traversal will work.
6187
6188         * glyphs-widget.c:
6189         * glyphs-widget.c (syms_of_glyphs_widget):
6190         Move some symbols to general-slots.h.
6191
6192         * glyphs-x.c:
6193         * glyphs-x.c (xbm_instantiate_1):
6194         * glyphs-x.c (x_xbm_instantiate):
6195         * glyphs-x.c (x_xface_instantiate):
6196         * glyphs-x.c (autodetect_instantiate):
6197         * glyphs-x.c (cursor_font_instantiate):
6198         * glyphs-x.c (x_update_widget):
6199         * glyphs-x.c (x_widget_instantiate):
6200         * glyphs.c (bitmap_to_lisp_data):
6201         * glyphs.c (pixmap_to_lisp_data):
6202         [7].
6203
6204         * glyphs.c (syms_of_glyphs):
6205         [2].
6206
6207         * gui-x.c:
6208         * gui-x.c (print_widget_value):
6209         * gui-x.c (menu_separator_style_and_to_external):
6210         * gui-x.c (add_accel_and_to_external):
6211         * gui-x.c (button_item_to_widget_value):
6212         * gui-x.c (gui_items_to_widget_values_1):
6213         * gui-x.c (gui_items_to_widget_values):
6214         * gui-x.c (syms_of_gui_x):
6215         * gui-x.c (vars_of_gui_x):
6216         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
6217         [9].
6218
6219         * gui-x.h:
6220         Muleize, prototype changes matching gui-x.c.
6221
6222         * gui.c:
6223         * gui.c (separator_string_p):
6224         * gui.c (gui_item_add_keyval_pair):
6225         * gui.c (make_gui_item_from_keywords_internal):
6226         * gui.c (signal_too_long_error):
6227         * gui.c (parse_gui_item_tree_item):
6228         * gui.c (syms_of_gui):
6229         * gui.c (vars_of_gui):
6230         * gui.h:
6231         menu-no-selection-hook moved here (used by MSWin).
6232         Move some symbols to general-slots.h.
6233         [6].
6234         [9].
6235
6236         * insdel.c (get_buffer_pos_char):
6237         * insdel.c (get_buffer_range_char):
6238         Add GC comments.
6239
6240         * keymap.c (keymap_lookup_directly):
6241         * keymap.c (keymap_store):
6242         * keymap.c (ensure_meta_prefix_char_keymapp):
6243         * keymap.c (describe_map):
6244         * keymap.h:
6245         Support new button modifiers.
6246
6247         * lisp-disunion.h (wrap_object):
6248         * lisp-disunion.h (XSETOBJ):
6249         Rename make_obj to wrap_object.
6250
6251         * lisp-union.h:
6252         * lisp-union.h (make_int):
6253         * lisp-union.h (make_char):
6254         Support wrap_object.
6255
6256         * lisp.h:
6257         * lisp.h (LIST_LOOP):
6258         * lisp.h (EXTERNAL_LIST_LOOP):
6259         * lisp.h (LIST_LOOP_2):
6260         * lisp.h (EXTERNAL_LIST_LOOP_1):
6261         * lisp.h (EXTERNAL_LIST_LOOP_2):
6262         * lisp.h (EXTERNAL_LIST_LOOP_3):
6263         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
6264         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
6265         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
6266         * lisp.h (EXTERNAL_ALIST_LOOP_5):
6267         * lisp.h (EXTERNAL_ALIST_LOOP_6):
6268         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
6269         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
6270         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
6271         * lisp.h (struct Lisp_Symbol):
6272         * lisp.h (maybe_continuable_error_with_frob):
6273         Fix up section comments.
6274         Add new types for char to indicate usage.
6275         Delete symbols auto-generated from general-slots.h.
6276         Add prototypes for structured error functions.
6277         Add long comments describing looping macros and change interface
6278         so that lvalues are automatically declared.
6279         Add NO_DECLARE macro in case callers want to declare lvalues
6280         themselves.
6281
6282         * lread.c (read_syntax_error):
6283         * lread.c (continuable_read_syntax_error):
6284         * lread.c (read_structure):
6285         * lread.c (sequence_reader):
6286         * lread.c (read_list_conser):
6287         * lread.c (read_compiled_function):
6288         Rename syntax_error and continuable_syntax_error to avoid clash
6289         with same-named structured error functions.
6290
6291         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
6292         * menubar-msw.c (populate_menu_add_item):
6293         * menubar-msw.c (populate_or_checksum_helper):
6294         [5].
6295         [9].
6296
6297         * menubar-x.c:
6298         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
6299         Mule-ize whole file.
6300
6301         * menubar.c (Fnormalize_menu_item_name): Add optimization.
6302
6303         * mule-charset.c (Fmake_charset):
6304         * mule-wnnfns.c (Fwnn_set_param):
6305         [1].
6306
6307         * ntproc.c (create_child):
6308         * ntproc.c (Fwin32_set_current_locale):
6309         Add comments portending doom.
6310
6311         * objects-msw.c:
6312         * objects-msw.c (old_font_enum_callback_2):
6313         * objects-msw.c (font_enum_callback_1):
6314         * objects-msw.c (mswindows_enumerate_fonts):
6315         [5].
6316
6317         * objects-x.c:
6318         * objects-x.c (allocate_nearest_color):
6319         * objects-x.c (x_parse_nearest_color):
6320         * objects-x.c (x_initialize_color_instance):
6321         * objects-x.c (x_print_color_instance):
6322         * objects-x.c (x_finalize_color_instance):
6323         * objects-x.c (x_valid_color_name_p):
6324         * objects-x.c (x_initialize_font_instance):
6325         * objects-x.c (x_print_font_instance):
6326         * objects-x.c (valid_x_font_name_p):
6327         * objects-x.c (truename_via_FONT_prop):
6328         * objects-x.c (truename_via_random_props):
6329         * objects-x.c (truename_via_XListFonts):
6330         * objects-x.c (x_font_truename):
6331         * objects-x.c (x_font_instance_truename):
6332         * objects-x.c (x_font_instance_properties):
6333         * objects-x.c (x_list_fonts):
6334         * objects-x.c (x_find_charset_font):
6335         Mule-ize entire file.
6336         [7].
6337
6338         * objects-x.h:
6339         Mule-verify.
6340
6341         * print.c:
6342         * print.c (std_handle_out_external):
6343         * print.c (debug_print_no_newline):
6344         * print.c (syms_of_print):
6345         Output to all debugger kinds in debug-print.
6346         Fix console-output code under MSWin to actually work.
6347
6348         * process-nt.c (send_signal):
6349         * process-nt.c (nt_create_process):
6350         Use newer Unicode macros.
6351
6352         * process-unix.c (unix_create_process):
6353         * process-unix.c (unix_canonicalize_host_name):
6354         * process-unix.c (unix_open_network_stream):
6355         [7].
6356
6357         * scrollbar-x.c:
6358         Mule-verify.
6359
6360         * search.c (syms_of_search):
6361         [2].
6362
6363         * select-msw.c (mswindows_destroy_selection):
6364         Use LIST_LOOP_2.
6365
6366         * select-x.c (symbol_to_x_atom):
6367         [7].
6368
6369         * select.c (syms_of_select):
6370         [2].
6371
6372         * sound.c (Fplay_sound_file):
6373         [7].
6374
6375         * specifier.c:
6376         * specifier.c (decode_specifier_type):
6377         * specifier.c (Fvalid_specifier_locale_type_p):
6378         * specifier.c (check_valid_locale_or_locale_type):
6379         * specifier.c (decode_locale):
6380         * specifier.c (decode_locale_type):
6381         * specifier.c (decode_locale_list):
6382         * specifier.c (check_valid_domain):
6383         * specifier.c (decode_specifier_tag_set):
6384         * specifier.c (Fcanonicalize_tag_set):
6385         * specifier.c (Fdefine_specifier_tag):
6386         * specifier.c (Fspecifier_tag_predicate):
6387         * specifier.c (check_valid_inst_list):
6388         * specifier.c (check_valid_spec_list):
6389         * specifier.c (decode_how_to_add_specification):
6390         * specifier.c (check_modifiable_specifier):
6391         * specifier.c (specifier_add_spec):
6392         * specifier.c (boolean_validate):
6393         * specifier.c (display_table_validate):
6394         [9].
6395
6396         * specifier.c (syms_of_specifier):
6397         Move some symbols to general-slots.h.
6398         [2].
6399
6400         * symbols.c:
6401         * symbols.c (Fmapatoms):
6402         * symbols.c (Fapropos_internal):
6403         Add GCPROs.
6404
6405         * symbols.c (set_default_buffer_slot_variable):
6406         * symbols.c (set_default_console_slot_variable):
6407         [1].
6408
6409         * symbols.c (defsymbol_massage_name_1):
6410         * symbols.c (defkeyword_massage_name):
6411         * symbols.c (deferror_1):
6412         * symbols.c (deferror):
6413         * symbols.c (deferror_massage_name_and_message):
6414         * symeval.h:
6415         * symeval.h (DEFSYMBOL):
6416         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
6417
6418         * symbols.c (syms_of_symbols):
6419         [2].
6420
6421         * symsinit.h:
6422         * symsinit.h (init_win32): New.
6423         Also new is syms_of_dialog_mswindows.
6424
6425         * syswindows.h:
6426         Add new Unicode macros, missing Cygwin wide-char functions,
6427         convenience conversion macros for Qmswindows_tstr, macros for
6428         encapsulating required MSWin <-> Cygwin filename conversions,
6429         prototype for dynamically-extracted (not in NT 3.51) functions.
6430
6431         * toolbar-x.c:
6432         Mule-verify.
6433
6434         * tooltalk.c (Fadd_tooltalk_message_arg):
6435         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
6436         * tooltalk.c (Fadd_tooltalk_pattern_arg):
6437         [7].
6438
6439         * tooltalk.c (syms_of_tooltalk):
6440         [2].
6441
6442         * unexnt.c:
6443         * unexnt.c (unexec):
6444         Fix up headers, declaration of unexec() to be more standard.
6445
6446 2000-07-20  Martin Buchholz  <martin@xemacs.org>
6447
6448         * offix.h: Revert change to guard macros - they're used in offix.c!
6449
6450 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6451
6452         * lisp.h: Defsubred Fdelete.
6453
6454         * console-msw.h:  (msprinter_default_printer): Added.
6455
6456         * console-msw.c (msprinter_canonicalize_console_connection):
6457         (msprinter_canonicalize_device_connection): Added.
6458
6459         * device-msw.c (msprinter_default_printer):
6460         (Fmswingows_get_default_printer):
6461         (signal_enum_priner_error):
6462         (Fmswingows_printer_list): Added.
6463
6464 2000-07-19  Martin Buchholz <martin@xemacs.org>
6465
6466         * XEmacs 21.2.35 is released.
6467
6468 2000-07-19  Martin Buchholz  <martin@xemacs.org>
6469
6470         * select-x.c (x_handle_selection_request):
6471         Text selected in xemacs and pasted into xterm failed to appear.
6472         Spelling fixes and cosmetic changes.
6473
6474 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6475
6476         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
6477         XEmacs frame (fix for doubling chars in dialog boxes).
6478
6479 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
6480
6481         * select.c (select_convert_in, select_convert_out):
6482         Don't call intern() every time.
6483
6484         * select.c (Qselect_convert_in, Qselect_convert_out): New.
6485         * select.c (vars_of_select): Initialise them.
6486
6487 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
6488
6489         * select.c (selection-coercible-types): New.
6490
6491         * select.c (own-selection-internal):
6492         * select.c (get-selection-internal):
6493         MULE bug fix - these should default to COMPOUND_TEXT and not
6494         STRING for MULE. I think.
6495
6496         * select.c (select_convert_out): Use selection-coercible-types
6497         to find types that we can attempt to perform coercions on.
6498
6499 2000-07-18  Martin Buchholz  <martin@xemacs.org>
6500
6501         * mule-wnnfns.c:
6502         * mule-canna.c:
6503         Add coding: cookie to identify encoding.
6504
6505         * mule-canna.c (CANNA_mode_keys): make static.
6506         Use proper prototypes, even for functions of no arguments.
6507         Remove external prototype for Fding().
6508
6509         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
6510
6511         * select.c (syms_of_select): Add missing DEFSUBR.
6512
6513 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
6514
6515         * select.c (get_selection_internal, own_selection_internal):
6516         Make the type default to STRING, rather than placing a nil type
6517         into Vselection_alist.
6518
6519 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
6520
6521         * gpmevent.c (tty_selection_exists_p):
6522         * gpmevent.c (tty_own_selection):
6523         Updated parameter lists.
6524
6525 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
6526
6527         * select.h (selection-alist): Removed declaration.
6528
6529         * select.h (get_local_selection):
6530         * select.c (get_local_selection):
6531         Made static.
6532
6533         * select.h (convert_selection): Removed declaration.
6534         * select.c (convert_selection): Removed.
6535         This function belongs in Lisp.
6536
6537         * select.h (select_convert_in): Declare.
6538         * select.h (select_convert_out): Declare.
6539         * select.c (select_convert_in): New.
6540         * select.c (select_convert_out): New.
6541         New conversion functions for other files to call.
6542
6543         * select.h (select_notify_buffer_kill): Declare.
6544         * select.c (select_notify_buffer_kill): New.
6545         New functions that get called from kill-buffer.
6546
6547         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
6548         X-specific lisp code.
6549
6550         * select.h: Declare some of the lisp-visible functions for
6551         external use.
6552
6553         * select.c (clean_local_selection_data): Removed. This was
6554         a disgusting function, and previously should have been in
6555         select-x.c in any case. The functionality is now provided
6556         in select-convert-from-integer (select.el).
6557
6558         * select.c (available-selection-types): Fixed stupidity where
6559         INTEGER and ATOM got added twice. Also add STRING when we see an
6560         extent.
6561
6562         * select.c (get-selection-internal): Removed symbol stripping. No
6563         longer causes conversion when data comes from the internal cache.
6564
6565         * select.c (syms_of_select): Added new functions.
6566
6567         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
6568         error checking - previously this called abort!
6569
6570         * select-x.c (x_own_selection): Changed comment.
6571
6572         * select-x.c (x_handle_selection_request): Use select_convert_out.
6573         Don't mess with selection-alist; it's an internal variable of select.c.
6574
6575         * select-x.c (x_get_foreign_selection): Use select_convert_in.
6576
6577         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
6578         rather than messing with selection-alist.
6579
6580         * select-msw.c (mswindows_get_foreign_selection):
6581         Use TO_INTERNAL_FORMAT rather than hacking.
6582
6583 2000-07-14  Martin Buchholz  <martin@xemacs.org>
6584
6585         * process-unix.c (unix_open_multicast_group):
6586         (unix_open_multicast_group): Remove useless casts.
6587
6588 2000-07-13  Martin Buchholz  <martin@xemacs.org>
6589
6590         * sound.c (Fplay_sound): Fix `unused variable' warning.
6591
6592         * emacs.c (main): Use correct type for _environ on SCO5.
6593
6594 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
6595
6596         * console.h (own_selection_method):
6597         * console.h (selection_exists_p_method):
6598         * console.h (available_selection_types_method): New.
6599         * console.h (register_selection_data_type_method): New.
6600         * console.h (selection_data_type_name): New.
6601
6602         * console-msw.h (mswindows_destroy_selection): Declare it.  New
6603         function & alist to track GlobalAlloc()'d handles that need
6604         releasing when the clipboard data gets replaced or emptied.
6605
6606         * event-msw.c (mswindows_wnd_proc): Call it.
6607
6608         * lisp.h, general.c (Qappend): New symbol representing a
6609         `how-to-add' mode.
6610
6611         * select.c (own-selection-internal):
6612         * select.c (selection-exists-p):
6613         * select.c (available-selection-types): New.
6614         * select.c (register-selection-data-type): New.
6615         * select.c (selection-data-type-name): New.  New functions to deal
6616         with device-specific selection data formats.
6617         * select.c (selection-converter-out-alist): Renamed.
6618         * select.c (selection-converter-in-alist): New.
6619         * select.c (selection-appender-alist): New.  Added new alists.
6620         * select.c (syms_of_select, vars_of_select): Added new symbols &
6621         variables.
6622         * select.c (get_local_selection): Split.
6623         * select.c: Removed spurious type checking - selections may now be
6624         of any type, not just strings.
6625         * select.c (own-selection-internal):
6626
6627         * select.h, select.c (convert_selection): New. Created
6628         convert_selection() function based on get_local_selection().
6629         * select.h, select.c (QCF_*): New symbols representing mswindows
6630         clipboard formats.
6631         * select.h, select.c (Qreplace_all, Qreplace_existing): New
6632         symbols representing `how-to-add' modes.
6633
6634         * select-msw.c (x_sym_p): New.
6635         * select-msw.c (symbol_to_ms_cf): New.
6636         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
6637         symbols & clipboard formats. Can also handle string names.
6638         * select-msw.c (mswindows_own_selection):
6639         * select-msw.c (mswindows_selection_exists_p):
6640         Added `data-type' parameter. Use it.
6641         * select-msw.c (mswindows_available_selection_types): New.
6642         * select-msw.c (mswindows_register_selection_data_type): New.
6643         * select-msw.c (mswindows_selection_data_type_name): New.
6644         * select-msw.c (mswindows_own_selection):
6645         * select-msw.c (mswindows_get_foreign_selection):
6646         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
6647         * select-msw.c (console_create_select_mswindows): Added new methods.
6648         * select-msw.c (mswindows_destroy_selection): New.
6649         * select-msw.c (Vhandle_alist): New list.
6650         * select-msw.c (mswindows_own_selection):
6651
6652         * select-x.c (x_own_selection):
6653         * select-x.c (x_selection_exists_p):
6654         * select-x.c: Added some comments about maybe using new
6655         functionality.
6656         * select-x.c (x_own_selection):
6657
6658         * specifier.c: Remove definition of Qappend (now in general.c)
6659         * specifier.c (syms_of_specifier): Remove Qappend.
6660
6661 2000-07-12  Martin Buchholz  <martin@xemacs.org>
6662
6663         * config.h.in: Add socklen_t.
6664
6665         * s/decosf4-0.h: No special compiler flags needed or desired.
6666         In particular, undefine _BSD for DEC OSF 4.0.
6667
6668 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6669
6670         * redisplay-msw.c (msprinter_frame_output_end): Added.
6671         (console_type_create_redisplay_mswindows): Referred the above.
6672
6673         * frame.c (setup_frame_without_minibuffer): Do not create a
6674         default minibuffer frame on a printer device.
6675
6676         * frame-msw.c (apply_dc_geometry): Added.
6677         (msprinter_start_page):
6678         (msprinter_init_frame_3):
6679         (msprinter_eject_page): Use it.
6680
6681         * console-msw.h (struct msprinter_frame): Added pix_left and top,
6682         and removed residual duplex and orientation properties.
6683
6684 2000-07-11  Martin Buchholz  <martin@xemacs.org>
6685
6686         * eval.c (function_argcount): Work around a DEC CC compiler bug.
6687
6688         * unexalpha.c: Remove system prototypes from C sources!
6689
6690 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
6691
6692         * eval.c: Remove references to M-x edit-options in DEFUNs for
6693         `defvar' and `defconst'.
6694
6695 2000-07-09  Martin Buchholz  <martin@xemacs.org>
6696
6697         * config.h.in: Remove SMART_INCLUDE hackery.
6698
6699         PostgreSQL hacking:
6700         * config.h.in: Don't use SMART_INCLUDE.
6701
6702         * postgresql.h: Include libpq-fe.h here.  Fix typo.
6703         * inline.c: Simply #include "postgresql.h"
6704         * postgresql.c:
6705         - Don't use SMART_INCLUDE
6706         - Use simply "const".
6707         - Use standard doc string conventions.
6708         - Use correct type for result of PQstatus.
6709
6710 2000-07-09  Martin Buchholz  <martin@xemacs.org>
6711
6712         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
6713
6714         C++ compilation changes.
6715         * config.h.in (EXTERN_C): Define.
6716         * config.h.in (not): This is also a C++ keyword.
6717         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
6718         * cm.c: Use EXTERN_C.
6719         * redisplay-tty.c: Use EXTERN_C.
6720         * sysdep.c: Use EXTERN_C.  Remove Gould support.
6721
6722 2000-07-09  Martin Buchholz  <martin@xemacs.org>
6723
6724         * general.c: Remove duplicate definition for Qfunction.
6725
6726 2000-07-08  Ben Wing  <ben@xemacs.org>
6727
6728         * device-msw.c (msprinter_init_device):
6729         * device-msw.c (sync_printer_with_devmode):
6730         * device-msw.c (handle_devmode_changes):
6731         * device-msw.c (print_dialog_worker):
6732         * device-msw.c (Fmsprinter_apply_settings):
6733         * device-msw.c (hash_devmode):
6734         * device-msw.c (Fmsprinter_settings_despecialize):
6735         use Qmswindows_tstr, not Qctext.
6736
6737         * vm-limit.c (check_memory_limits):
6738         avoid infinite loop printing warning messages.
6739
6740 2000-07-05  Craig Lanning  <lanning@scra.org>
6741
6742         * Makefile.in.in: Add support for including the Windows resources
6743         when building with the cygwin and mingw targets.
6744
6745         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
6746         not set or not correct.
6747         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
6748         (init_initial_directory): Don't try to use $PWD on the
6749         WIN32_NATIVE target.
6750
6751         * s\cygwin32.h:
6752         [[Add -mwindows to eliminate console window.]] not required --ben
6753         (HAVE_NATIVE_SOUND): removed; now handled by configure.
6754         (MAIL_USE_POP): removed; now handled by configure.
6755
6756         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
6757         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
6758         (HAVE_NATIVE_SOUND): removed; now handled by configure.
6759         (MAIL_USE_POP): removed; now handled by configure.
6760         (ENCAPSULATE_STAT): from Dan Holmsand, added.
6761         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
6762         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
6763         constant string.
6764         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
6765         up from <winsock.h> via systime.h.
6766         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
6767         (getpagesize): from Dan Holmsand, added.
6768         Added #endif which was left dangling by Ben's mega patch; added
6769         comment to help prevent this in the future.
6770
6771         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
6772
6773 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6774
6775         * console-msw.h (struct mswindows_device): Removed unnecessary
6776         cached device geometry values.
6777         Added update_tick and an accessor macro.
6778         (Lisp_Devmode): Added lrecord declaration.
6779         (struct msprinter_device): Contain devmode as a Lisp object.
6780         Added mswindows_get_selected_frame_hwnd();
6781
6782         * console.h (struct console_methods): Indentation nitpicking.
6783
6784         * device-msw.c (mswindows_init_device): Do not initialize geometry
6785         cache. Initialize update tick.
6786         (mswindows_device_system_metrics): Ask the device for its geometry.
6787         (global_free_2_maybe):
6788         (devmode_to_hglobal):
6789         (handle_printer_changes):
6790         (ensure_not_printing):
6791         (print_dialog_worker):
6792         (Fmsprinter_print_setup_dialog):
6793         (Fmsprinter_print_dialog):
6794         (plist_get_margin):
6795         (plist_set_margin):
6796         (Fmsprinter_page_setup_dialog): Added functions.
6797         (sync_printer_with_devmode):
6798         (handle_devmode_changes):
6799         (Fmsprinter_get_settings):
6800         (Fmsprinter_select_settings):
6801         (Fmsprinter_apply_settings):
6802         (allocate_devmode):
6803         (Fmsprinter_settings_copy):
6804         (Fmsprinter_settings_despecialize):
6805         (print_devmode):
6806         (finalize_devmode):
6807         (equal_devmode):
6808         (hash_devmode): Added functions
6809         (syms_of_device_mswindows): Init devmode lrecord class.
6810
6811         * device.h: Added an exfun for find-device.
6812
6813         * event-msw.c (mswindows_wnd_proc): Do not update the cached
6814         geometry; although, recreate the device compatible DC.
6815
6816         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
6817         (msprinter_init_frame_3):
6818         (msprinter_frame_property):
6819         (msprinter_internal_frame_property_p):
6820         (msprinter_frame_properties):
6821         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
6822         print job properties (will move to device settings).
6823
6824         * lisp.h: Added symbols.
6825
6826         * general.c (syms_of_general): Declared them.
6827
6828         * hash.c (string_hash): Added.
6829
6830         * lrecord.h (lrecord_type): Added devmode lrecord type.
6831
6832 2000-07-02  Mike Sperber <mike@xemacs.org>
6833
6834         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
6835         FreeBSD 4.0.
6836
6837 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
6838
6839         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
6840         integer.
6841
6842 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
6843
6844         * data.c (Fstring_to_number): Don't recognize floating point if
6845         base is not 10.
6846
6847 2000-06-22  Martin Buchholz  <martin@xemacs.org>
6848
6849         * glyphs-widget.c (tab_control_query_geometry):
6850         (widget_query_geometry):
6851         (button_query_geometry):
6852         * glyphs.c (text_query_geometry):
6853         Enforce type correctness.
6854
6855 2000-06-18  Martin Buchholz  <martin@xemacs.org>
6856
6857         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
6858         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
6859
6860 2000-06-17  Martin Buchholz  <martin@xemacs.org>
6861
6862         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
6863         conflicts with gcc's fixincluded version of FOO.h.
6864
6865         * glyphs.h (image_instance_geometry): Remove trailing `,'
6866
6867 2000-06-08  Mike Alexander  <mta@arbortext.com>
6868
6869         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
6870         (shove_thread): Don't write the same output twice
6871         (make_ntpipe_output_stream): Increase priority of shove thread
6872         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
6873         chance to run
6874         (ntpipe_shove_closer): Don't delete the pipe until we're done with
6875         it.
6876
6877 2000-06-12  Ben Wing  <ben@xemacs.org>
6878
6879         * s\mingw32.h (sigset):
6880         * s\windowsnt.h (sigset):
6881         rename msw_ to mswindows_ for consistency with general convention.
6882
6883 2000-06-12  Ben Wing  <ben@xemacs.org>
6884
6885         * console-msw.c:
6886         * console-msw.c (mswindows_get_console_hwnd):
6887         * console-msw.c (mswindows_ensure_console_allocated):
6888         * console-msw.c (mswindows_hide_console):
6889         * console-msw.c (mswindows_show_console):
6890         * console-msw.c (mswindows_ensure_console_buffered):
6891         * console-msw.c (mswindows_output_console_string):
6892         * console-msw.c (mswindows_windows9x_p):
6893         * console-msw.h:
6894         * device-msw.c (mswindows_get_workspace_coords):
6895         * device-msw.c (mswindows_device_system_metrics):
6896         * dialog-msw.c (mswindows_popup_dialog_box):
6897         * event-msw.c (mswindows_wnd_proc):
6898         * frame-msw.c (mswindows_size_frame_internal):
6899         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
6900         * menubar-msw.c (displayable_menu_item):
6901         * menubar-msw.c (mswindows_char_is_accelerator):
6902         * nt.c:
6903         * nt.c (mswindows_sigset):
6904         * nt.c (mswindows_sigrelse):
6905         * nt.c (mswindows_sigpause):
6906         * nt.c (mswindows_raise):
6907         * nt.c (timer_proc):
6908         * ntproc.c:
6909         * ntproc.c (find_child_console):
6910         * ntproc.c (sys_kill):
6911         * print.c:
6912         * print.c (std_handle_out_external):
6913         * process-nt.c (find_child_console):
6914         * process-nt.c (send_signal_the_95_way):
6915         * process-nt.c (ensure_console_window_exists):
6916         * process-nt.c (nt_create_process):
6917         * syssignal.h:
6918         rename msw_ to mswindows_ for consistency with general convention.
6919
6920         * emacs.c:
6921         * dumper.c:
6922         include nt.h, not syswindows.h.
6923
6924         * nt.c (mswindows_fstat):
6925         * nt.c (mswindows_stat):
6926         prefix mswindows_ instead of attempting to directly override the
6927         library functions.  fix declarations.
6928
6929         * nt.h:
6930         include syswindows.h.  move some sysdep.h stuff here.
6931
6932         * ntheap.h:
6933         include syswindows.h, not <windows.h>.
6934
6935         * ntplay.c:
6936         clean up headers.
6937
6938         * sysdep.c:
6939         clean up headers.
6940
6941         * sysdep.c (sys_fstat):
6942         * sysdep.c (sys_stat):
6943         call mswindows versions when appropriate.
6944
6945         * sysdep.h:
6946         move mswin decls to nt.h.
6947
6948         * syswindows.h:
6949         add long comment describing appropriate use of the various windows
6950         headers.
6951
6952 2000-06-11  Ben Wing  <ben@xemacs.org>
6953
6954         * device-x.c: Correct doc string for sixth arg of x-get-resource.
6955
6956 2000-06-10  Ben Wing  <ben@xemacs.org>
6957
6958         * Makefile.in.in (release):
6959         Correction to make sure xemacs.exe always dumped when correct.
6960
6961         * alloca.c:
6962         * balloon_help.c:
6963         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
6964
6965         * buffer.c (set_buffer_internal):
6966         [[[[2]]]]: Remove HAVE_FEP code.
6967
6968         * buffer.c (init_initial_directory):
6969         [3].
6970
6971         * bytecode.c:
6972         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
6973         individual files.
6974
6975         * callproc.c:
6976         * callproc.c (call_process_cleanup):
6977         * callproc.c (Fold_call_process_internal):
6978         * callproc.c (child_setup):
6979         * callproc.c (getenv_internal):
6980         * callproc.c (init_callproc):
6981         * callproc.c (vars_of_callproc):
6982         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
6983         __CYGWIN32__ -> CYGWIN.
6984         DOS_NT -> WIN32_NATIVE.
6985         Remove MSDOS support/references, converting to WIN32_NATIVE
6986           where correct.
6987         __MINGW32__ -> MINGW.
6988         Fix windows.h includes.
6989         Remove bogus HAVE_NTGUI.
6990
6991         * config.h.in:
6992         [2].
6993
6994         * console-msw.c:
6995         mswindows_message_outputted added for use in allowing startup
6996         errors on the console to be seen.
6997
6998         * console-msw.c (msw_ensure_console_allocated):
6999         * console-msw.c (msw_output_console_string):
7000         * console-msw.c (DHEADER):
7001         * console-msw.c (DOPAQUE_DATA):
7002         * console-msw.c (DEVENT):
7003         * console-msw.c (DCONS):
7004         * console-msw.c (DCONSCDR):
7005         * console-msw.c (DSTRING):
7006         * console-msw.c (DVECTOR):
7007         * console-msw.c (DSYMBOL):
7008         * console-msw.c (DSYMNAME):
7009         Fix warnings.
7010
7011         * console-stream.c (stream_init_console):
7012         Fix text/binary problems.
7013
7014         * device-msw.c:
7015         * device-msw.c (mswindows_finish_init_device):
7016         * device-msw.c (mswindows_delete_device):
7017         [1].
7018
7019         * device.c (handle_asynch_device_change):
7020         [3].
7021
7022         * dgif_lib.c:
7023         * dgif_lib.c (DGifOpenFileName):
7024         * dgif_lib.c (DGifOpenFileHandle):
7025         * dgif_lib.c (DGifGetLine):
7026         * dgif_lib.c (DGifGetPixel):
7027         Added config.h/lisp.h, fix up includes.
7028         [1].
7029
7030         * dired-msw.c:
7031         [4].
7032
7033         * dired.c:
7034         * dired.c (file_name_completion):
7035         * dired.c (Ffile_attributes):
7036         * dired.c (syms_of_dired):
7037         [1].
7038
7039         * dumper.c:
7040         * dumper.c (pdump_file_unmap):
7041         * dumper.c (pdump_load):
7042         [1].
7043
7044         * editfns.c:
7045         * editfns.c (Ftemp_directory):
7046         * editfns.c (user_login_name):
7047         * editfns.c (Fuser_real_login_name):
7048         * editfns.c (get_home_directory):
7049         [1].
7050
7051         * elhash.c (finish_marking_weak_hash_tables):
7052         [[[[5]]]]: Fix GCC warnings.
7053
7054         * emacs.c:
7055         * emacs.c (mswindows_handle_hardware_exceptions):
7056         * emacs.c (make_arg_list_1):
7057         * emacs.c (main_1):
7058         * emacs.c (Fkill_emacs):
7059         * emacs.c (Fdump_emacs):
7060         [1].
7061         Fix problems with nested crashes, add long comment.
7062
7063         * event-Xt.c (init_event_Xt_late):
7064         [1].
7065
7066         * event-msw.c:
7067         * event-msw.c (mswindows_dde_callback):
7068         * event-msw.c (mswindows_handle_sticky_modifiers):
7069         * event-msw.c (mswindows_wnd_proc):
7070         [1].
7071         [5].
7072
7073         * events.c (character_to_event):
7074         [1].
7075
7076         * fileio.c:
7077         * fileio.c (Ffile_name_directory):
7078         * fileio.c (Ffile_name_nondirectory):
7079         * fileio.c (directory_file_name):
7080         * fileio.c (Fexpand_file_name):
7081         * fileio.c (Fsubstitute_in_file_name):
7082         * fileio.c (Ffile_name_absolute_p):
7083         * fileio.c (check_executable):
7084         * fileio.c (Ffile_readable_p):
7085         * fileio.c (Ffile_accessible_directory_p):
7086         * fileio.c (Ffile_modes):
7087         * fileio.c (Funix_sync):
7088         * fileio.c (vars_of_fileio):
7089         [1]. [4].
7090
7091         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
7092
7093         Expand getdefdir defn.
7094         Fix bogus rename() comment.
7095
7096         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
7097         to use standard XEmacs include files, e.g. sysfile.h, rather
7098         than system-specific includes.
7099
7100         * fns.c:
7101         * fns.c (Fsubseq):
7102         [5]. [6].
7103
7104         * frame.c (vars_of_frame):
7105         [1].
7106
7107         * getloadavg.c:
7108         * getloadavg.c (getloadavg):
7109         [1]. [6].
7110         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
7111         (We don't use it elsewhere in the code; just add a comment.)
7112
7113         * gif_io.c:
7114         [6].
7115         Add config.h.
7116
7117         * glyphs-msw.c:
7118         * glyphs-msw.c (mswindows_resource_instantiate):
7119         [1].
7120
7121         * glyphs-x.c (x_native_layout_instantiate):
7122         [5].
7123
7124         * gui-msw.c (Fmswindows_shell_execute):
7125         [1].
7126
7127         * insdel.c:
7128         [4].
7129
7130         * lisp.h:
7131         [4]. [5].
7132
7133         * lread.c (locate_file_in_directory_mapper):
7134         [1].
7135
7136         * lstream.c:
7137         [4].
7138
7139         * mem-limits.h:
7140         * mem-limits.h (get_lim_data):
7141         [1].
7142
7143         * menubar-msw.c:
7144         [4].
7145
7146         * ndir.h:
7147         [1].
7148
7149         * nt.c:
7150         * nt.c (getwd):
7151         * nt.c (closedir):
7152         * nt.c (rva_to_section):
7153         * nt.c (mswindows_executable_type):
7154         [1]. [6].
7155         Fix closedir() defn.
7156
7157         * nt.h:
7158         [[[[8]]]]: *_OK defs moved to sysfile.h.
7159
7160         * ntproc.c:
7161         [6]. [7].
7162
7163         * objects-x.c:
7164         [4].
7165
7166         * print.c:
7167         * print.c (std_handle_out_external):
7168         [1]. [4].
7169
7170         * process-nt.c:
7171         * process-nt.c (nt_create_process):
7172         [6].
7173         try to fix process quoting somewhat.
7174
7175         * process-unix.c (unix_create_process):
7176         [1].
7177
7178         * process.c:
7179         * process.c (vars_of_process):
7180         Add Vnull_device.
7181
7182         * process.h:
7183         [1].
7184
7185         * realpath.c:
7186         * realpath.c (xrealpath):
7187         [1].
7188
7189         * redisplay-tty.c (init_tty_for_redisplay):
7190         [3].
7191
7192         * redisplay.c:
7193         [4]. [6].
7194
7195         * scrollbar-msw.c:
7196         [4].
7197
7198         * sheap.c:
7199         * sheap.c (more_static_core):
7200         * sheap.c (report_sheap_usage):
7201         [5]. [6].
7202
7203         * signal.c:
7204         * signal.c (alarm_signal):
7205         [1]. [6].
7206
7207         * sound.c:
7208         [6].
7209
7210         * strftime.c:
7211         * strftime.c (zone_name):
7212         [1]. [5].
7213
7214         * symsinit.h (init_sunpro):
7215         [1].
7216
7217         * syscommctrl.h:
7218         commctrl.h not in Cygwin b20.1.
7219
7220         * sysdep.c:
7221         * sysdep.c (endif):
7222         * sysdep.c (sys_subshell):
7223         * sysdep.c (init_baud_rate):
7224         * sysdep.c (emacs_get_tty):
7225         * sysdep.c (emacs_set_tty):
7226         * sysdep.c (tty_init_sys_modes_on_device):
7227         * sysdep.c (init_system_name):
7228         * sysdep.c (sys_open):
7229         * sysdep.c (interruptible_open):
7230         * sysdep.c (sys_fopen):
7231         * sysdep.c (sys_mkdir):
7232         * sysdep.c (sys_rename):
7233         * sysdep.c (get_process_times_1):
7234         [1]. [6].
7235
7236         * sysdep.h:
7237         [1].
7238
7239         * sysdir.h:
7240         * sysdir.h (DIRENTRY_NONEMPTY):
7241         [1]. [6].
7242
7243         * sysdll.c (dll_init):
7244         * sysdll.h:
7245         [1].
7246
7247         * sysfile.h:
7248         [1]. [6]. [8].
7249         added text/binary defs.
7250
7251         * sysfloat.h:
7252         [1].
7253
7254         * sysproc.h:
7255         * sysproc.h (EDESTADDRREQ):
7256         * sysproc.h (poll_fds_for_input):
7257         [1]. [6].
7258
7259         * syspwd.h:
7260         [6].
7261
7262         * syssignal.h:
7263         [1].
7264
7265         * systime.h:
7266         [1]. [6].
7267
7268         * systty.h:
7269         [1].
7270
7271         * syswindows.h:
7272         [1].
7273         Always define WIN32_LEAN_AND_MEAN.
7274
7275         * unexcw.c (unexec):
7276         [5].
7277
7278         * unexec.c:
7279         * unexec.c (copy_text_and_data):
7280         * unexec.c (adjust_lnnoptrs):
7281         [1].
7282
7283         * unexnt.c:
7284         * unexnt.c (_start):
7285         [1].
7286
7287 2000-06-07  Ben Wing  <ben@xemacs.org>
7288
7289         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
7290         was used only as a model.  We've long since extracted any useful
7291         logic or code out of this. (I just did an exhaustive search.)
7292
7293         * s\msdos.h: Removed.
7294
7295         * s\windows95.h: Removed.
7296
7297 2000-06-10  Ben Wing  <ben@xemacs.org>
7298
7299         * s\cygwin32.h:
7300         [1]. [5].
7301         Don't use extern with fun defs.
7302
7303         * s\mingw32.h:
7304         [1]. [7].
7305         Remove nt\inc include.
7306         Remove getdisk, getdefdir. (The former is unused, the latter
7307         expanded in fileio.h.)
7308
7309         * s\windowsnt.h:
7310         * s\windowsnt.h (WIN32_NATIVE):
7311         * s\windowsnt.h (HAVE_STRCASECMP):
7312         [1]. [7].
7313         Add long comment about preprocessor changes.
7314         Remove getdisk, getdefdir. (The former is unused, the latter
7315         expanded in fileio.h.)
7316
7317 2000-06-10  Ben Wing  <ben@xemacs.org>
7318
7319         * m\arm.h:
7320         * m\delta.h:
7321         * m\intel386.h:
7322         * m\sequent.h:
7323         * m\template.h:
7324         * m\windowsnt.h:
7325         [1].
7326         Remove bogus/unused NO_SOCK_SIGIO.
7327
7328 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
7329
7330         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
7331         not an Emchar.
7332
7333 2000-06-04  Mike Sperber <mike@xemacs.org>
7334
7335         * casetab.c (set_case_table): For `set-standard-case-table',
7336         actually deposit the new case tables where the rest of XEmacs can
7337         see them.
7338
7339 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
7340
7341         * data.c (Faset): Don't cast XCHAR() to unsigned char.
7342
7343 2000-06-05  Ben Wing  <ben@xemacs.org>
7344
7345         * callproc.c (child_setup): Don't do close_load_descs() under
7346         MS Windows.  Put in a comment explaining why.
7347
7348 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
7349
7350         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
7351         Toolkit shell" which breaks `kill-compilation' on Windows NT
7352         native, retaining STDERR handling improvements.
7353
7354 2000-06-01  Andreas Jaeger  <aj@suse.de>
7355
7356         * s/s390.h: Support for S390, based on a patch by Martin
7357         Schwidefsky <schwidefsky@de.ibm.com>.
7358
7359 2000-05-30  Andy Piper  <andy@xemacs.org>
7360
7361         * window.c (allocate_window):
7362         (make_dummy_parent):
7363         (Fset_window_configuration): use new hashtable type.
7364
7365         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
7366         (struct image_instantiator_methods):
7367         (struct Lisp_Image_Instance): make instance geometry signed.
7368
7369         * glyphs.c (instantiate_image_instantiator):
7370         (image_instance_query_geometry):
7371         (image_instance_layout):
7372         (image_instance_layout):
7373         (query_string_geometry):
7374         (text_query_geometry):
7375         (image_instantiate):
7376         (image_instantiate):
7377         (cache_subwindow_instance_in_frame_maybe):
7378         (subwindow_query_geometry): make instance geometry signed.
7379
7380         * glyphs-widget.c (widget_query_geometry):
7381         (widget_layout):
7382         (button_query_geometry):
7383         (tree_view_query_geometry):
7384         (tab_control_query_geometry):
7385         (layout_query_geometry):
7386         (layout_layout):
7387         (native_layout_layout): make instance geometry signed.
7388
7389 2000-05-29  Olivier Galibert  <galibert@pobox.com>
7390
7391         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
7392         constant.
7393
7394         * general.c (syms_of_general): Add Qfull_assoc symbol.
7395
7396         * data.c (finish_marking_weak_lists): Mark full-assoc lists
7397         correctly.
7398         (decode_weak_list_type): Decode full-assoc type.
7399         (encode_weak_list_type): Encode full-assoc type.
7400         (Fmake_weak_list): Update doc string.
7401
7402 2000-05-30  Andy Piper  <andy@xemacs.org>
7403
7404         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
7405
7406         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
7407         (decode_hash_table_weakness): ditto.
7408         (Fhash_table_weakness): ditto.
7409         (Fhash_table_type): ditto.
7410         (finish_marking_weak_hash_tables): ditto.
7411         (hash_table_weakness_validate): ditto.
7412         (syms_of_elhash): ditto.
7413
7414 2000-05-28  Martin Buchholz <martin@xemacs.org>
7415
7416         * XEmacs 21.2.34 is released.
7417
7418 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
7419
7420         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
7421         start cache.
7422         (updating_line_start_cache): Gone.
7423         (regenerate_window): Replace resetting of VERTICAL_CLIP by
7424         generic code to force a minimum of 1 line laid out in the
7425         CMOTION_DISP case.
7426
7427 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
7428
7429         * glyphs.c (instantiate_image_instantiator): Check for initialized
7430         height & width no longer special cases IMAGE_NOTHING.
7431         (nothing_instantiate): Set height and width of instance.
7432
7433 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
7434
7435         * unexelf.c (unexec): Search for ".data" section.
7436         Initialize new_data2_offset from old_data_index.
7437         Remove redundant check for ElfW.
7438
7439 2000-05-23  Andy Piper  <andy@xemacs.org>
7440
7441         * glyphs.c (get_image_instantiator_governing_domain): allow more
7442         specific domains as the governing domain rather than expecting an
7443         exact match. This fixes problems with layouts.
7444
7445 2000-05-22  Andy Piper  <andy@xemacs.org>
7446
7447         * redisplay-output.c (compare_runes): check for non-images
7448
7449         * glyphs.c (set_glyph_dirty_p): ditto.
7450         (update_glyph_cachel_data): ditto.
7451
7452         * glyphs-widget.c (layout_post_instantiate): ditto.
7453         (layout_post_instantiate): ditto.
7454
7455         * event-msw.c (mswindows_wnd_proc): warning removal.
7456
7457 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
7458
7459         * s\mingw32.h: Added #undef for CLASH_DETECTION.
7460
7461         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
7462
7463         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
7464
7465         * nt.c (rva_to_section): mingw32 needs rva_to_section.
7466         (mswindows_executable_type): mingw32 now has enough headers for
7467         this to work.
7468
7469 2000-05-20  Andy Piper  <andy@xemacs.org>
7470
7471         * console-msw.c (mswindows_output_last_error): ; -> ,
7472
7473 2000-05-12  Andy Piper  <andy@xemacs.org>
7474
7475         * console-msw.c (FROB): compare ints with ints.
7476
7477 2000-05-11  Andy Piper  <andy@xemacs.org>
7478
7479         * glyphs-x.c (x_finalize_image_instance): make minimal build
7480         happy.
7481
7482 2000-05-20  Ben Wing  <ben@xemacs.org>
7483
7484         * event-Xt.c:
7485         * event-Xt.c (vars_of_event_Xt):
7486         move modifier-keys-are-sticky to event-stream.c.
7487
7488         * event-msw.c:
7489         * event-msw.c (mswindows_enqueue_mouse_button_event):
7490         * event-msw.c (key_needs_default_processing_p):
7491         * event-msw.c (XEMSW_LCONTROL):
7492         * event-msw.c (mswindows_handle_sticky_modifiers):
7493         * event-msw.c (FROB):
7494         * event-msw.c (clear_sticky_modifiers):
7495         * event-msw.c (output_modifier_keyboard_state):
7496         * event-msw.c (output_alt_keyboard_state):
7497         * event-msw.c (mswindows_wnd_proc):
7498         * event-msw.c (mswindows_modifier_state):
7499         * event-msw.c (emacs_mswindows_handle_magic_event):
7500         implement sticky modifiers.
7501
7502         * event-stream.c:
7503         * event-stream.c (vars_of_event_stream):
7504         move modifier-keys-are-sticky here.
7505
7506         * lisp.h:
7507         add CHECK_FUNCTION.
7508
7509         * rangetab.c:
7510         implement map-range-table.
7511
7512
7513 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
7514
7515         * redisplay-tty.c (reset_tty_modes):
7516         (tty_redisplay_shutdown): Adjust argument type to
7517         tty_frame_output_end.
7518
7519 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
7520
7521         * eval.c (Fbacktrace): Don't output a line with only right
7522         parenthesis.
7523
7524 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
7525
7526         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
7527         (Fpq_reset_poll): Ditto.
7528
7529 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
7530
7531         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
7532
7533 2000-05-16  Ben Wing  <ben@xemacs.org>
7534
7535         * buffer.c:
7536         * buffer.c (dfc_convert_to/from_internal_format):
7537         * buffer.c (reinit_vars_of_buffer):
7538         Fix conversion functions to allow reentrancy.
7539
7540         * console-msw.c:
7541         * console-msw.c (mswindows_output_last_error):
7542         New fun, generally useful -- output a human-readable
7543         version of GetLastError() on the console.
7544
7545         * console-msw.h:
7546         * console-msw.h (struct mswindows_frame):
7547         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
7548
7549         * console-stream.c (stream_output_begin):
7550         * console-stream.c (stream_output_end):
7551         * console-stream.c (stream_output_vertical_divider):
7552         * console-stream.c (stream_clear_region):
7553         * console-stream.c (stream_flash):
7554         * console-stream.c (console_type_create_stream):
7555         Delete blank stream methods, not needed.
7556
7557         * console.h (struct console_methods):
7558         Split begin/end methods into window and frame.
7559
7560         * event-msw.c:
7561         * event-msw.c (mswindows_handle_paint):
7562         * event-msw.c (output_alt_keyboard_state):
7563         * event-msw.c (mswindows_wnd_proc):
7564         * event-msw.c (vars_of_event_mswindows):
7565         Comment about problems with ignored-expose.
7566         Define mswindows-debug-events; not really implemented.
7567
7568         * frame-msw.c (mswindows_init_frame_1):
7569         random cleanups.
7570
7571         * glyphs-msw.c:
7572         * glyphs-msw.c (begin_defer_window_pos):
7573         * glyphs-msw.c (mswindows_unmap_subwindow):
7574         * glyphs-msw.c (mswindows_map_subwindow):
7575         * glyphs-msw.c (mswindows_resize_subwindow):
7576         Use DeferWindowPos to reduce flashing when mapping/unmapping.
7577
7578         * glyphs.c (make_image_instance_1):
7579         Fix crash.
7580
7581         * gutter.c (Fredisplay_gutter_area):
7582         Use new begin/end methods.
7583
7584         * lisp.h (Dynarr_new2):
7585         New creation fun.
7586
7587         * redisplay-msw.c:
7588         * redisplay-msw.c (mswindows_frame_output_begin):
7589         * redisplay-msw.c (mswindows_frame_output_end):
7590         * redisplay-msw.c (console_type_create_redisplay_mswindows):
7591         New begin/end methods -- handle DeferWindowPos.
7592
7593         * redisplay-output.c (redisplay_move_cursor):
7594         * redisplay-output.c (redraw_cursor_in_window):
7595         * redisplay-output.c (redisplay_update_line):
7596         * redisplay-output.c (redisplay_output_window):
7597         New begin/end methods.
7598
7599         * redisplay-tty.c:
7600         * redisplay-tty.c (tty_frame_output_begin):
7601         * redisplay-tty.c (tty_frame_output_end):
7602         * redisplay-tty.c (console_type_create_redisplay_tty):
7603         New begin/end methods.
7604
7605         * redisplay-x.c:
7606         * redisplay-x.c (x_window_output_begin):
7607         * redisplay-x.c (x_window_output_end):
7608         * redisplay-x.c (console_type_create_redisplay_x):
7609         New begin/end methods.
7610
7611         * redisplay.c (redisplay_frame):
7612         * redisplay.c (Fredisplay_echo_area):
7613         New begin/end methods.
7614         use MAYBE_DEVMETH for clear_frame; it may not exist.
7615
7616         * window.h (WINDOW_XFRAME):
7617         WINDOW_XFOO macros -- get locale and decode struct pointer.
7618
7619
7620 2000-05-12  Ben Wing  <ben@xemacs.org>
7621
7622         * emacs.c:
7623         * emacs.c (ensure_no_quitting_from_now_on):
7624         * emacs.c (fatal_error_signal):
7625         * emacs.c (mswindows_handle_hardware_exceptions):
7626         * emacs.c (main):
7627         * emacs.c (Fkill_emacs):
7628         * emacs.c (shut_down_emacs):
7629         * emacs.c (assert_failed):
7630         various improvements in fatal error handling.
7631
7632         * eval.c:
7633         move preparing_for_armageddon to emacs.c.
7634
7635         * lisp.h:
7636         declare fatal_error_in_progress.
7637
7638         * print.c:
7639         * print.c (std_handle_out_external):
7640         * print.c (std_handle_out_va):
7641         * print.c (stderr_out):
7642         * print.c (stdout_out):
7643         use console under mswin when no standard output.
7644         don't do code conversion during fatal error.
7645
7646         * scrollbar.c (Fscrollbar_page_up):
7647         * scrollbar.c (Fscrollbar_page_down):
7648         fix missing else.  reindent.
7649
7650 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
7651
7652         Emergency fix.
7653
7654         * glyphs.h (GLYPH_CACHEL_DESCENT):
7655         (GLYPH_CACHEL_DESCENT):
7656         (GLYPH_CACHEL_DESCENT):
7657         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
7658         used in case these are inline functions.
7659         Use more absurd values to error check.
7660
7661         include window.h for error check functions.
7662
7663 2000-05-11  Ben Wing  <ben@xemacs.org>
7664
7665         * cmdloop.c (Freally_early_error_handler):
7666         Display message box under windows; otherwise, message will disappear
7667         before it can be viewed.
7668
7669         * console-msw.c:
7670         * console-msw.c (Fmswindows_message_box):
7671         * console-msw.c (FROB):
7672         * console-msw.c (syms_of_console_mswindows):
7673         Define new fun `mswindows-message-box'.
7674         #### I will merge this into `popup-dialog-box'; just give me
7675         a bit of time.
7676
7677         * general.c:
7678         * general.c (syms_of_general):
7679         Some new symbols used in `mswindows-message-box'.
7680
7681         * glyphs.c:
7682         * glyphs.c (Fset_image_instance_property):
7683         put warning in this fun.
7684
7685         * glyphs.h:
7686         * glyphs.h (GLYPH_CACHEL_WIDTH):
7687         * glyphs.h (GLYPH_CACHEL_ASCENT):
7688         * glyphs.h (GLYPH_CACHEL):
7689         * glyphs.h (GLYPH_CACHEL_GLYPH):
7690         define error-checking versions to try to catch a bug i've seen --
7691         redisplay gets in an infinite loop because the glyph width of the
7692         continuation glyph is 65535.
7693
7694         * lisp.h:
7695         Extern message-box stuff.
7696
7697         * window.c (allocate_window):
7698         * window.c (make_dummy_parent):
7699         * window.c (Fset_window_configuration):
7700         Use EQUAL not EQ for subwindow caches to make them work a bit
7701         better. (Something is still very broken.)
7702
7703
7704 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
7705
7706         * glyphs.c (image_instantiate): Suppress gcc warnings.
7707         (Fmake_image_instance): Fix doc string.
7708         * specifier.c (Fmake_specifier): Ditto.
7709
7710 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
7711
7712         * paths.h.in (PATH_LOCK): Removed.
7713         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
7714         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
7715
7716 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
7717
7718         * fns.c (Ffeaturep): Update e-mail address in doc-string.
7719         Document (featurep '(and xemacs 21.02)).
7720
7721 2000-05-09  Ben Wing  <ben@xemacs.org>
7722
7723         * buffer.c (complex_vars_of_buffer):
7724         update modeline-format doc.
7725
7726         * device.h:
7727         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
7728
7729         * emacs.c:
7730         timeline of all released versions of Emacs, for use in creating
7731         authorship comments and in synching up.
7732
7733         * glyphs-widget.c (image_instantiator_buttons):
7734         * glyphs-widget.c (image_instantiator_edit_fields):
7735         * glyphs-widget.c (image_instantiator_combo_box):
7736         * glyphs-widget.c (image_instantiator_scrollbar):
7737         * glyphs-widget.c (image_instantiator_progress_guage):
7738         * glyphs-widget.c (image_instantiator_tree_view):
7739         * glyphs-widget.c (image_instantiator_tab_control):
7740         * glyphs-widget.c (image_instantiator_labels):
7741         * glyphs-widget.c (image_instantiator_layout):
7742         * glyphs-widget.c (image_instantiator_native_layout):
7743         rename decode_domain method to governing_domain.
7744
7745         * glyphs.c:
7746         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
7747         * glyphs.c (add_entry_to_device_ii_format_list):
7748         make sure we don't put an entry more than once into the list.
7749         * glyphs.c (check_instance_cache_mapper):
7750         *************************************************************
7751         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
7752         HAVE BEEN GETTING.
7753         *************************************************************
7754         * glyphs.c (get_image_instantiator_governing_domain):
7755         clean up, expand on new concept of governing domain.
7756         * glyphs.c (instantiate_image_instantiator):
7757         * glyphs.c (allocate_image_instance):
7758         use governing_domain instead of cache_domain in naming.
7759         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
7760         * glyphs.c (make_image_instance_1):
7761         * glyphs.c (Fmake_image_instance):
7762         allow for any domain (not just device), and process the
7763         governing domain correctly.  very big doc fix.
7764         * glyphs.c (Fimage_instance_domain):
7765         new primitive, to retrieve the governing domain of an image instance.
7766         * glyphs.c (image_instantiate):
7767         use new governing_domain stuff.  this fixes a crash you could get
7768         by instantiating certain widget glyphs in frame locales. (should
7769         signal an error instead of crashing.)
7770         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
7771         * glyphs.c (Fglyphp): clean up doc.
7772         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
7773         * glyphs.c (syms_of_glyphs):
7774         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
7775         * glyphs.c (image_instantiator_format_create): add some comments about
7776         bogus code.
7777         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
7778         for current-display-table. (Apparently Hrjove implemented in 1998 a
7779         design I wrote up in 1996, but didn't update the doc string.)
7780
7781         * glyphs.h: clean up a doc string.
7782         * glyphs.h (governing_domain):
7783         * glyphs.h (struct image_instantiator_methods):
7784         changes for governing_domain stuff.
7785
7786         * gutter.c:
7787         * gutter.c (Fgutter_specifier_p):
7788         * gutter.c (Fgutter_size_specifier_p):
7789         * gutter.c (Fgutter_visible_specifier_p):
7790         * objects.c:
7791         * objects.c (Fcolor_specifier_p):
7792         * objects.c (Ffont_specifier_p):
7793         * objects.c (Fface_boolean_specifier_p):
7794         doc strings moved to make-*-specifier.
7795
7796         * redisplay.c (add_disp_table_entry_runes_1):
7797         * redisplay.c (generate_fstring_runes):
7798         * redisplay.c (screen):
7799         add random comments and doc strings.
7800
7801         * specifier.c:
7802         * specifier.c (Fmake_specifier):
7803         major overhaul of this doc string.
7804
7805         * specifier.c (Fvalid_specifier_domain_p):
7806         comment about the bogosity of image instances being domains.
7807         * specifier.c (decode_domain):
7808         now non-static, used in glyphs.c.
7809         * specifier.c (specifier_instance):
7810         comment about the bogosity of image instances being domains.
7811         * specifier.c (Fgeneric_specifier_p):
7812         move doc string to make-generic-specifier.
7813         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
7814         rebackslashify.
7815
7816         * specifier.h:
7817         * specifier.h (DOMAIN_FRAME):
7818         * specifier.h (DOMAIN_LIVE_P):
7819         * specifier.h (DOMAIN_XDEVICE):
7820         rebackslashify.
7821         add comments about problems with these macros.
7822         prototype for decode_domain.
7823
7824         * toolbar.c:
7825         * toolbar.c (Ftoolbar_specifier_p):
7826         move doc string to `make-toolbar-specifier'.
7827
7828         * window.c (window_unmap_subwindows_cache_mapper):
7829         *************************************************************
7830         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
7831         HAVE BEEN GETTING.
7832         *************************************************************
7833
7834 2000-05-09  Andy Piper  <andy@xemacs.org>
7835
7836         * glyphs.h: declare reset_frame_subwindow_instance_cache.
7837
7838         * window.c (Fset_window_configuration): reset the frame subwindow
7839         cache and re-initialize the window subwindow caches.
7840
7841         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
7842
7843 2000-05-09  Ben Wing  <ben@xemacs.org>
7844
7845         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
7846         DWORD.
7847
7848 2000-04-26  Mike Woolley  <mike@bulsara.com>
7849
7850         * ntheap.c: Changed recreate_heap to limit the amount reserved
7851         for the heap to that which is actually available. Also now
7852         displays a message box (with some dignostics) in the event that
7853         it still can't start.
7854
7855 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
7856
7857         * callproc.c (Fold_call_process_internal): GCPRO path
7858
7859 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
7860
7861         Patch by Bill Perry.
7862
7863         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
7864         back data instead of #ifdef.
7865         (Fscrollbar_page_down): ditto.
7866
7867 2000-05-07  Ben Wing  <ben@xemacs.org>
7868
7869         * buffer.h:
7870         Kludge for defining Qmswindows_tstr.
7871
7872         * nt.c:
7873         * nt.c (open_input_file):
7874         * nt.c (open_output_file):
7875         * nt.c (rva_to_section):
7876         * nt.c (mswindows_executable_type):
7877         Move all memory-mapped-file routines here (some were in unexnt.c,
7878         which is bad because they are used by process-nt.c, and unexnt
7879         won't be around when portable dumping).  Synched the above routines
7880         with FSF 20.6.
7881
7882         * nt.h:
7883         Removed ifdef'd out bogus code.
7884         Fixed some prototypes.
7885
7886         * nt.h (file_data):
7887         * nt.h (OFFSET_TO_RVA):
7888         * nt.h (RVA_TO_OFFSET):
7889         * nt.h (RVA_TO_PTR):
7890         Moved the memory-mapped-file structures, macros and prototypes
7891         here, to parallel nt.c.  ntheap.h should really be removed
7892         entirely, and it's a non-portable-dumper specific file.
7893
7894         * ntheap.h (round_to_next):
7895         Moved the memory-mapped-file structures, macros and prototypes
7896         to nt.h.
7897
7898         * ntproc.c (compare_env):
7899         Moved rva_to_section and mswindows_executable_type to nt.c.
7900         Moved compare_env to process-nt.c.
7901         ntproc.c will die, one day.
7902
7903         * ntproc.c (sys_spawnve):
7904         Account for win32_ -> mswindows_.
7905
7906         * process-nt.c:
7907         * process-nt.c (struct nt_process_data):
7908         * process-nt.c (ensure_console_window_exists):
7909         * process-nt.c (compare_env):
7910         * process-nt.c (nt_create_process):
7911         * process-nt.c (nt_kill_process_by_pid):
7912         * process-nt.c (syms_of_process_nt):
7913         * process-nt.c (vars_of_process_nt):
7914         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
7915         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
7916         changes).  Eliminate our old `nt-quote-process-args' mechanism.
7917         Synch up nt_create_process with FSF 20.6 sys_spawnve.
7918         Move compare_env here from ntproc.c.
7919
7920         * process.c (Fprocess_send_region):
7921         Takes an optional fourth argument, BUFFER, which should fix some
7922         problems with call-process.
7923
7924         * syscommctrl.h:
7925         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
7926
7927         * syswindows.h:
7928         Move ICC_BAR_CLASSES to syscommctrl.h.
7929         Add preliminary macros for MSWindows/Mule.  More to come.
7930
7931         * unexnt.c:
7932         * unexnt.c (unexec):
7933         open_output_file moved to nt.c.
7934
7935
7936 2000-05-05  Andy Piper  <andy@xemacs.org>
7937
7938         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
7939         instance from the frame cache also since GC may catch up too late
7940         to make frame deletion sane.
7941
7942 2000-05-04  Andy Piper  <andy@xemacs.org>
7943
7944         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
7945         (x_finalize_image_instance): ungcpro on deletion.
7946
7947         * glyphs.c (image_instantiator_format_create): give pointers a
7948         query geometry method so that the geometry is at least set.
7949
7950         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
7951         initialize layouts if using widgets.
7952
7953 2000-05-03  Andy Piper  <andy@xemacs.org>
7954
7955         * nt.c: remove bogus reference to sysmmsystem.h
7956
7957         * gui-x.c (popup_selection_callback): fix no selection abort.
7958
7959 2000-05-02  Andy Piper  <andy@xemacs.org>
7960
7961         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
7962         (mswindows_widget_instantiate): ditto.
7963
7964         * glyphs-widget.c (initialize_widget_image_instance): initialize
7965         children correctly.
7966         (widget_instantiate): cope with children and items in the same
7967         instance.
7968
7969         * glyphs.c (mark_image_instance): cope with children as a first
7970         class member.
7971         (image_instance_equal): ditto.
7972         (image_instance_hash): ditto.
7973         (image_instance_changed): ditto.
7974
7975 2000-04-30  Andy Piper  <andy@xemacs.org>
7976
7977         * glyphs.c (subwindow_query_geometry): new function. Return some
7978         defaults.
7979         (subwindow_instantiate): don't assign dimensions if none have been
7980         given.
7981         (image_instantiator_format_create): add subwindow_query_geometry.
7982         (print_image_instance): cope with layouts as widgets.
7983
7984 2000-04-29  Andy Piper  <andy@xemacs.org>
7985
7986         * frame.c (delete_frame_internal): call
7987         free_frame_subwindow_instance_cache so that all subwindows are
7988         finalized before their parent.
7989         (mark_frame): remove subwindow_cachels.
7990         (Fmake_frame): remove subwindow_cachel manipulation.
7991         (allocate_frame_core): subwindow_instance_cache is a weak list.
7992         (delete_frame_internal): set subwindow_instance_cache to nil.
7993
7994         * glyphs-msw.c (mswindows_finalize_image_instance): make double
7995         finalization safe.
7996         (mswindows_finalize_image_instance): use the device
7997         not the domain as the domain may have died already.
7998
7999         * glyphs-x.c (x_finalize_image_instance): ditto.
8000         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
8001         HEIGHT.
8002
8003         * redisplay-output.c (redisplay_unmap_subwindows): update for
8004         subwindow instance cache as a weak list.
8005         (redisplay_unmap_subwindows_maybe): ditto.
8006         (redisplay_unmap_subwindows_except_us): ditto.
8007
8008         * glyphs.c (unmap_subwindow): error checking will check the domain
8009         so don't deal with it here. Don't use cachels anymore.
8010         (map_subwindow): ditto.
8011         (update_subwindow_cachel_data): remove old accessor names.
8012         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
8013         (Fresize_subwindow): don't update cachel.
8014         (mark_subwindow_cachels):
8015         (update_subwindow_cachel_data):
8016         (add_subwindow_cachel):
8017         (get_subwindow_cachel_index):
8018         (update_subwindow_cachel):
8019         (reset_subwindow_cachels):
8020         (mark_subwindow_cachels_as_not_updated): deleted.
8021         (cache_subwindow_instance_in_frame_maybe): new function. Add a
8022         subwindow instance to the frame cache.
8023         (find_matching_subwindow): update for subwindow instance cache as
8024         a weak list.
8025         (update_widget_instances): ditto.
8026         (image_instance_type_to_mask):inlined.
8027         (free_frame_subwindow_instance_cache): new function. finalize all
8028         subwindows that are instantiated.
8029
8030         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
8031         of cachel information.
8032         (IMAGE_INSTANCE_DISPLAY_X):
8033         (IMAGE_INSTANCE_DISPLAY_Y):
8034         (IMAGE_INSTANCE_DISPLAY_WIDTH):
8035         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
8036         (XIMAGE_INSTANCE_DISPLAY_X):
8037         (XIMAGE_INSTANCE_DISPLAY_Y):
8038         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
8039         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
8040         remove subwindow_cachel structure and function references.
8041         (image_instance_type_to_mask): inline from glyphs.c
8042
8043         * redisplay.c (redisplay_frame): remove subwindow_cachel
8044         references.
8045
8046         * frame.h (struct frame): remove subwindow_cachels.
8047         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
8048
8049         * frameslots.h: add subwindow_instance_cache.
8050
8051         * window.c (replace_window): check subwindow cache of replacement.
8052         (window_unmap_subwindows_cache_mapper):
8053         (window_unmap_subwindows): new functions. Unmap all subwindows
8054         cached on this window.
8055         (mark_window_as_deleted): unmap all subwindows.
8056
8057 2000-04-27  Andy Piper  <andy@xemacs.org>
8058
8059         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
8060
8061         * glyphs-widget.c (widget_layout): return something.
8062         (layout_layout): return something. Fail if not initialized.
8063         (layout_query_geometry): ditto.
8064         (image_instantiator_native_layout): new function. Initialized the
8065         native layout type.
8066         (widget_instantiate): don't do layout stuff here.
8067
8068         * glyphs.c (instantiate_image_instantiator): reorded calling or
8069         instantiate and post_instantiate with layout in between.
8070         (image_instance_layout): be more selective about deciding whether
8071         the layout has been done or not.
8072
8073         * glyphs.h (struct image_instantiator_methods): return a value
8074         from layout_method.
8075
8076 2000-04-26  Andy Piper  <andy@xemacs.org>
8077
8078         * glyphs.c (allocate_image_instance): make initial width and
8079         height unspecified. Set initialized to 0.
8080
8081         * syscommctrl.h new file. Encapsulates commctrl.h.
8082
8083         * syswindows.h new file. Encapsulates windows.h.
8084
8085         * ntplay.c: use new syswindows.h and syscommctrl.h header.
8086         * nt.c: ditto.
8087         * console-msw.h: ditto.
8088
8089         * redisplay-tty.c (tty_output_display_block): remove layout references.
8090
8091         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
8092         window handle rather than just the frame.
8093
8094         * glyphs.c (mark_image_instance): remove layout references.
8095         (print_image_instance): ditto.
8096         (image_instance_equal): ditto.
8097         (image_instance_hash): ditto.
8098         (decode_image_instance_type): ditto.
8099         (encode_image_instance_type): ditto.
8100         (image_instantiate): ditto.
8101         (allocate_glyph): ditto.
8102         (Fimage_instance_height): ditto.
8103         (Fimage_instance_width): ditto.
8104         (update_subwindow): ditto.
8105
8106         * redisplay-x.c (x_output_display_block): recode for layouts as
8107         widgets.
8108
8109         * redisplay-output.c (redisplay_output_layout): recode for layouts
8110         as widgets.
8111         (compare_runes): remove layout references.
8112
8113         * redisplay-msw.c (mswindows_output_display_block): recode for
8114         layouts as widgets.
8115
8116         * glyphs-widget.c (image_instantiator_layout): remove
8117         layout_possible_dest_types.
8118         (layout_possible_dest_types): deleted.
8119
8120         * glyphs.h (image_instance_type): remove layout references.
8121         (struct Lisp_Image_Instance): ditto. Add initialized flag.
8122         (IMAGE_INSTANCE_INITIALIZED): new accessor.
8123         (XIMAGE_INSTANCE_INITIALIZED): ditto.
8124
8125 2000-04-25  Andy Piper  <andy@xemacs.org>
8126
8127         * glyphs-widget.c (image_instantiator_buttons):
8128         (image_instantiator_edit_fields):
8129         (image_instantiator_combo_box):
8130         (image_instantiator_scrollbar):
8131         (image_instantiator_progress_guage):
8132         (image_instantiator_tree_view):
8133         (image_instantiator_tab_control):
8134         (image_instantiator_labels):
8135         (image_instantiator_layout): call default post_instantiate method.
8136         (widget_post_instantiate): new function. Simply lays out the
8137         widgets.
8138
8139         * glyphs.h (struct image_instantiator_methods): add
8140         post_instantiate method.
8141
8142         * glyphs.c (instantiate_image_instantiator): add post_instantiate
8143         method calls.
8144
8145 2000-04-23  Andy Piper  <andy@xemacs.org>
8146
8147         * glyphs.h (struct image_instantiator_methods): add
8148         decode_domain_method.
8149         (struct Lisp_Image_Instance): remove subwindow frame - it can be
8150         derived from the domain.
8151         (IMAGE_INSTANCE_FRAME): new accessor.
8152         (XIMAGE_INSTANCE_FRAME): ditto.
8153
8154         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
8155         instead of _SUBWINDOW_FRAME.
8156         (finalize_image_instance): ditto.
8157         (Fimage_instance_foreground): ditto.
8158         (Fimage_instance_background): ditto.
8159         (image_instantiate): ditto.
8160         (update_subwindow_cachel): ditto.
8161         (update_subwindow): ditto.
8162         (unmap_subwindow): ditto.
8163         (map_subwindow): ditto
8164         (subwindow_instantiate): ditto.
8165         * glyphs-msw.c (mswindows_update_widget): ditto.
8166         (mswindows_progress_gauge_instantiate): ditto.
8167         (mswindows_tab_control_update): ditto.
8168         * glyphs-x.c (x_update_widget): ditto.
8169         (x_widget_instantiate): ditto.
8170         (x_tab_control_instantiate): ditto.
8171         (x_tab_control_update): ditto.
8172         * event-msw.c (mswindows_wnd_proc): ditto
8173
8174         * glyphs-widget.c (image_instantiator_layout): use
8175         subwindow_decode_domain.
8176         (image_instantiator_buttons): ditto.
8177         (image_instantiator_edit_fields): ditto.
8178         (image_instantiator_combo_box): ditto.
8179         (image_instantiator_scrollbar): ditto.
8180         (image_instantiator_progress_guage): ditto.
8181         (image_instantiator_tree_view): ditto.
8182         (image_instantiator_tab_control): ditto.
8183         (image_instantiator_labels): ditto.
8184         (image_instantiator_layout): ditto.
8185
8186         * glyphs.c: add instance error checking to many functions.
8187         (instantiate_image_instantiator): decode device from cache_domain.
8188         (image_instantiate): partially rewrite by using
8189         decode_image_instantiator_domain to determine what domain the
8190         instance needs to be cached in.
8191         (decode_image_instantiator_domain): new function. Determine what
8192         domain the image needs to be cached in.
8193         (check_window_subwindow_cache): new error checking function.
8194         (check_instance_cache_mapper): ditto.
8195         (check_image_instance_structure): ditto.
8196         (subwindow_decode_domain): new function. Encodes a window as a
8197         subwindow's cache domain.
8198         (image_instantiator_format_create): use it for text and
8199         subwindows.
8200
8201 2000-04-21  Andy Piper  <andy@xemacs.org>
8202
8203         * glyphs.c (image_instance_device): new function.
8204         (image_instance_frame): new function.
8205         (image_instance_window): new function.
8206         (image_instance_live_p): new function.
8207
8208         * window.c (mark_window_as_deleted): reset the subwindow_instance_
8209         cache to nil.
8210
8211         * glyphs.h (struct Lisp_Image_Instance): device->domain.
8212         (IMAGE_INSTANCE_DOMAIN): new accessor.
8213         (XIMAGE_INSTANCE_DOMAIN): ditto.
8214
8215         * glyphs-x.c (x_finalize_image_instance): device->domain.
8216
8217         * glyphs-msw.c (init_image_instance_geometry): device->domain.
8218         (mswindows_finalize_image_instance): ditto.
8219
8220         * glyphs-eimage.c (jpeg_instantiate): device->domain.
8221         (gif_instantiate): ditto.
8222         (png_instantiate): ditto.
8223         (tiff_instantiate): ditto.
8224
8225         * glyphs.c (instantiate_image_instantiator): use domain rather
8226         than device.
8227         (mark_image_instance): device -> domain.
8228         (print_image_instance): ditto.
8229         (finalize_image_instance): ditto.
8230         (image_instance_equal): ditto.
8231         (allocate_image_instance): ditto.
8232         (Fcolorize_image_instance): ditto.
8233         (query_string_geometry): ditto.
8234         (image_instantiate): ditto
8235         (query_string_font): ditto.
8236         (image_instantiate): ditto.
8237         (update_subwindow): ditto.
8238         (unmap_subwindow): ditto.
8239         (map_subwindow): ditto.
8240         (subwindow_instantiate): ditto.
8241
8242         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
8243         (DOMAIN_FRAME): ditto.
8244         (DOMAIN_WINDOW): ditto.
8245         (DOMAIN_LIVE_P): ditto.
8246         (XDOMAIN_DEVICE): ditto.
8247         (XDOMAIN_FRAME): ditto.
8248         (XDOMAIN_WINDOW): ditto.
8249
8250         * specifier.c (Fvalid_specifier_domain_p): add image instances as
8251         a valid specifier domain.
8252
8253 2000-04-19  Andy Piper  <andy@xemacs.org>
8254
8255         * glyphs-widget.c (syms_of_glyphs_widget): remove
8256         widget-callback-current-channel.
8257         (vars_of_glyphs_widget): ditto.
8258         * glyphs.h: ditto
8259
8260         * gui.c (get_gui_callback): revert to previous behaviour.
8261
8262 2000-04-18  Andy Piper  <andy@xemacs.org>
8263
8264         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
8265         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
8266         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
8267
8268         * glyphs.c (image_instance_equal): add margin_width.
8269         (image_instance_hash): ditto.
8270
8271         * glyphs-widget.c (widget_instantiate): deal with margin-width.
8272         (layout_query_geometry): ditto.
8273         (layout_layout): ditto.
8274         (syms_of_glyphs_widget): add margin-width.
8275         (image_instantiator_layout): allow margin-width.
8276
8277         * glyphs.c (update_widget_instances): make a normal function.
8278         (syms_of_glyphs): remove Qupdate_widget_instances.
8279         * glyphs.h: ditto.
8280
8281         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
8282         so that we don't corrupt ideas about the last event or
8283         command. Remove widget-callback-current-channel fiddling.
8284         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
8285
8286 2000-05-01  Martin Buchholz <martin@xemacs.org>
8287
8288         * XEmacs 21.2.33 is released.
8289
8290 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
8291
8292         * make-src-depend: Allow dots in header file name.
8293
8294 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
8295
8296         * mule-charset.h (struct charset_lookup): Add
8297         next_allocated_1_byte_leading_byte and
8298         next_allocated_2_byte_leading_byte.
8299         * mule-charset.c: Move above two variables so that those values
8300         will be dumped.
8301
8302 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
8303
8304         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
8305         when string length is zero.
8306         (find_charsets_in_emchar_string): Ditto.
8307
8308 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
8309
8310         * lisp.h: extern Qdialog and Qmenubar.
8311
8312         * gui-x.c: added events.h.
8313                 also fixed typo which made the file uncompilable.
8314
8315         * general.c: Added Qmenubar and Qdialog
8316
8317 2000-04-28  Ben Wing  <ben@xemacs.org>
8318
8319         * frame-msw.c (mswindows_init_frame_1):
8320         * frame-msw.c (mswindows_mark_frame):
8321         * event-msw.c (mswindows_enqueue_dispatch_event):
8322         * console-msw.h:
8323         * console-msw.h (struct mswindows_frame):
8324         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
8325         there are now three hash tables for callbacks.
8326         mswindows_enqueue_dispatch_event is no longer static.
8327
8328         * dialog-x.c (maybe_run_dbox_text_callback):
8329         * dialog-x.c (dbox_descriptor_to_widget_value):
8330         switch to new cons3 form for callbacks.
8331
8332         * glyphs-msw.c (mswindows_register_gui_item):
8333         * glyphs-msw.c (mswindows_widget_instantiate):
8334         * glyphs-msw.c (add_tree_item):
8335         * glyphs-msw.c (add_tab_item):
8336         new image instance parameter, so it can be passed to callback-ex.
8337         respect :callback-ex as well as :callback.
8338
8339         * glyphs-widget.c (VALID_GUI_KEYWORDS):
8340         add :callback-ex.
8341
8342         * glyphs.c (print_image_instance):
8343         prettify, e.g. now prints widget type.
8344
8345         * gui-x.h:
8346         certain funs have new image instance parameter.
8347
8348         * gui.c:
8349         * gui.c (get_gui_callback):
8350         * gui.c (gui_item_add_keyval_pair):
8351         * gui.c (gui_item_init):
8352         * gui.c (gui_add_item_keywords_to_plist):
8353         * gui.c (mark_gui_item):
8354         * gui.c (gui_item_hash):
8355         * gui.c (gui_item_equal):
8356         * gui.c (copy_gui_item):
8357         * gui.c (syms_of_gui):
8358         recognize callback-ex in a number of places.
8359         also, fix the annoying "can't get out of yes-no dialog" bug.
8360
8361         * gui.h:
8362         * gui.h (struct Lisp_Gui_Item):
8363         recognize callback-ex in a number of places.
8364
8365         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
8366         new parameter in button_item_to_widget_value.
8367
8368         * glyphs-x.c (x_update_widget):
8369         * glyphs-x.c (x_button_instantiate):
8370         * glyphs-x.c (x_button_update):
8371         * glyphs-x.c (x_progress_gauge_instantiate):
8372         * glyphs-x.c (x_edit_field_instantiate):
8373         * glyphs-x.c (x_combo_box_instantiate):
8374         * glyphs-x.c (x_tab_control_instantiate):
8375         * glyphs-x.c (x_label_instantiate):
8376         new image instance parameter in various places.
8377
8378         * event-Xt.c:
8379         * event-Xt.c (enqueue_Xt_dispatch_event):
8380         this fun gets exported.
8381
8382         * gui-msw.c:
8383         * gui-msw.c (mswindows_handle_gui_wm_command):
8384         handle both :callback and :callback-ex, and generate our own
8385         event because it's one of the callback-ex arguments.
8386
8387         * gui-x.c:
8388         * gui-x.c (popup_selection_callback):
8389         handle both :callback and :callback-ex, and generate our own
8390         event because it's one of the callback-ex arguments.
8391         * gui-x.c (button_item_to_widget_value):
8392         * gui-x.c (gui_items_to_widget_values_1):
8393         * gui-x.c (gui_item_children_to_widget_values):
8394         * gui-x.c (gui_items_to_widget_values):
8395         new image instance parameter in various places.
8396
8397         * fns.c (Freplace_list):
8398         fix small typo in doc string.
8399
8400         * lisp.h:
8401         declare enqueue_Xt_dispatch_event.
8402
8403 2000-04-28  Ben Wing  <ben@xemacs.org>
8404
8405         * buffer.c:
8406         * buffer.c (Frecord_buffer):
8407         * buffer.c (syms_of_buffer):
8408         delete record-buffer-hook.
8409
8410         * fns.c:
8411         * fns.c (Freplace_list):
8412         * fns.c (syms_of_fns):
8413         new primitive replace-list.
8414
8415         * frameslots.h:
8416         slot for old buffer-alist.
8417
8418         * lisp.h:
8419         exfun replace-list.
8420
8421         * redisplay.c:
8422         * redisplay.c (redisplay_frame):
8423         * redisplay.c (syms_of_redisplay):
8424         * redisplay.c (vars_of_redisplay):
8425         new hook buffer-list-changed-hook.
8426         call it.
8427
8428 2000-04-27  Ben Wing  <ben@xemacs.org>
8429
8430         * extents.h: extern in_modeline_generation.
8431
8432         * redisplay.c (generate_formatted_string_db): set
8433         in_modeline_generation.
8434
8435         * extents.c (extent_changed_for_redisplay): don't mark redisplay
8436         flags if in modeline generation.  otherwise frame-modified-tick
8437         is ticked far too often.
8438         Declare in_modeline_generation.
8439
8440 2000-04-26  Ben Wing  <ben@xemacs.org>
8441
8442         * emacs.c (vars_of_emacs): document quick-build "error-checking"
8443         option.
8444         (vars_of_emacs): add quick-build as an error-checking option.
8445         A bit kludgy, but there doesn't seem much point in creating
8446         a real var for this.
8447
8448         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
8449
8450 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
8451
8452         * redisplay.h (struct display_line): Add a new variable,
8453         line_continuation.
8454
8455         * redisplay.c (create_text_block): Set dl->line_continuation if
8456         the line continues.
8457         (create_string_text_block): Ditto.
8458         (regenerate_window_incrementally): Use line_continuation instead
8459         of searching continuation glyph.
8460         (add_margin_runes): Call add_glyph_rune.
8461         (add_glyph_rune): Handle margin glyph.
8462
8463 2000-04-20  Martin Buchholz  <martin@xemacs.org>
8464
8465         * filelock.c (fill_in_lock_file_name):
8466         ANSIfy.
8467         Check for IS_ANY_SEP instead of '/'.
8468         (lock_file_1):
8469         Avoid generating gratuitous garbage.  Call user_login_name() directly.
8470         Never check errno without first seeing that system call failed.
8471         (unlock_file): Add GCPRO.
8472         (Flock_buffer): Fix docstring.
8473         (Ffile_locked_p): Fix docstring.  Add GCPRO.
8474
8475 2000-04-19  Martin Buchholz  <martin@xemacs.org>
8476
8477         * sysdep.c (get_pty_max_bytes):
8478         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
8479         strings longer than 252 bytes.
8480
8481         * md5.c: Unconditionally include ANSI header <limits.h>
8482
8483         * glyphs-x.c (convert_EImage_to_XImage):
8484         * lisp-union.h (union Lisp_Object):
8485         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
8486
8487 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8488
8489         * filelock.c (current_lock_owner): Remove unused variable o, p.
8490
8491 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
8492
8493         * callint.c: Remove multiply defined symbol Qlet
8494         (syms_of_callint): ditto.
8495
8496 2000-04-14  Andy Piper  <andy@xemacs.org>
8497
8498         * general.c (syms_of_general): add last-command, this-command, let
8499         and funcall.
8500
8501         * lisp.h: declare various symbols.
8502
8503         * glyphs.h: declare Qwidget_callback_current_channel;
8504
8505         * glyphs-widget.c (syms_of_glyphs_widget): add
8506         Qgui_callback_current_channel.
8507         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
8508
8509         * gui-msw.c (mswindows_handle_gui_wm_command): bind
8510         widget-callback-current-channel when invoking the interactive
8511         arg. Also bind last-command and next-command when invoking the
8512         widget updates.
8513         * gui-x.c (popup_selection_callback): ditto.
8514
8515         * gui.c (get_gui_callback): massage args so that we are always
8516         calling eval. This allows us to add our own variable bindings
8517         outside.
8518
8519         * glyphs-x.c (x_button_instantiate): use
8520         gui_items_to_widget_values since this is GC safe.
8521         (x_progress_gauge_instantiate): ditto.
8522         (x_edit_field_instantiate): ditto.
8523         (x_label_instantiate): ditto.
8524
8525         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
8526         (emacs_Xt_event_widget_focus_out): new function
8527         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
8528         focus.
8529         (emacs_Xt_event_add_widget_actions): new function. add focus
8530         functions as actions.
8531         (init_event_Xt_late): use it.
8532
8533 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
8534
8535         * event-stream.c (Fdispatch_event): Doc fix.
8536
8537 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
8538
8539         * postgresql.c: Remove all references to PQsetenv*.
8540
8541         * postgresql.h: Remove references to PGsetenvHandler object.
8542         * lrecord.h (lrecord_type): Ditto.
8543
8544 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8545
8546         * glyphs-msw.h (struct mswindows_image_instance_data): Added
8547         real_heigh and real_width members, and accessor macros for these.
8548
8549         * glyphs-msw.c (init_image_instance_geometry): New function.
8550         (init_image_instance_from_dibitmap): Use it.
8551         (mswindows_resource_instantiate): Use it.
8552         (init_image_instance_from_xbm_inline): Use it.
8553         (mswindows_initialize_image_instance_mask): Use real bitmap
8554         geometry.
8555         (mswindows_create_resized_bitmap): Ditto.
8556         (mswindows_create_resized_mask): Ditto.
8557
8558         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
8559         and bitmap to their surface size.
8560
8561 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
8562
8563         * process-unix.c (unix_send_process): Guard against process MIA
8564         after Faccept_process_output.
8565
8566 2000-04-11  Ben Wing  <ben@xemacs.org>
8567
8568         * eval.c (unbind_to_hairy): fix brokenness introduced by
8569         nanosecond speed improvements.
8570
8571 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
8572
8573         * sunplay.c (init_device): To play sounds correctly, the device
8574         apparently needs to be initialized at least once by XEmacs.  Make
8575         it so.
8576
8577 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
8578
8579         * redisplay.c (add_margin_runes): Add text image glyph
8580           handling.
8581
8582 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8583
8584         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
8585         gcc is newer than 2.5.
8586
8587 2000-04-06  Colin Rafferty  <colin@xemacs.org>
8588
8589         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
8590
8591         * fns.c (size_bit_vector):
8592         * alloc.c (size_vector):
8593         (make_vector_internal):
8594         (make_bit_vector_internal):
8595         (sweep_bit_vectors_1):
8596         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
8597
8598 2000-04-06  Andy Piper  <andy@xemacs.org>
8599
8600         * gmalloc.c (malloc): undo previous change.
8601         (malloc): ditto.
8602         (free): ditto.
8603         (realloc): ditto.
8604
8605 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
8606
8607         * line-number.c (buffer_line_number): Revert to former version.
8608
8609 2000-04-06  Andy Piper  <andy@xemacs.org>
8610
8611         * gmalloc.c (malloc): add error checking.
8612         (malloc): ditto.
8613         (free): ditto.
8614         (realloc): ditto.
8615
8616         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
8617         button_item_to_widget_value arg.
8618
8619         * glyphs-x.c (x_button_instantiate): add extra
8620         button_item_to_widget_value arg.
8621         (x_progress_gauge_instantiate): ditto.
8622         (x_edit_field_instantiate): ditto.
8623         (x_label_instantiate): ditto.
8624
8625         * gui-x.c (gui_items_to_widget_values_1): add extra
8626         button_item_to_widget_value arg.
8627         (button_item_to_widget_value): add extra menu_item_p arg.
8628
8629         * gui-x.h: change signature of button_item_to_widget_value.
8630
8631         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
8632         button_item_to_widget_value arg.
8633
8634 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
8635
8636         * buffer.h (struct buffer): auto_save_modified should be long.
8637
8638 2000-04-05  Andy Piper  <andy@xemacs.org>
8639
8640         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
8641         type.
8642         (button_query_geometry): give a little more room so that athena
8643         buttons fit.
8644
8645 2000-04-05  Andy Piper  <andy@xemacs.org>
8646
8647         * faces.c (complex_vars_of_faces): The widget face should inherit
8648         the font of the gui-element face.
8649
8650 2000-04-04  Andy Piper  <andy@xemacs.org>
8651
8652         * glyphs-x.c (x_button_update): new function. unconditionally
8653         update a button's state when the instance is dirty.
8654         (image_instantiator_format_create_glyphs_x): add x_button_update.
8655         (x_widget_instantiate): remove old resize cruft.
8656
8657 2000-04-02  Andy Piper  <andy@xemacs.org>
8658
8659         * frame.c (change_frame_size_1): The introduction of gutters means
8660         that we need to allow 0 as a potential frame dimension.
8661
8662 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
8663
8664         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
8665         image glyph if allow_cursor.
8666         (add_hscroll_rune): Don't allow cursor to border glyph.
8667         (create_text_block): Ditto.
8668
8669         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
8670         text not in buffer.
8671         (redisplay_output_layout): Call ensure_face_cachel_complete for
8672         text image glyph.
8673
8674
8675 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
8676
8677         * redisplay.c (add_glyph_rune): Adding text image as text runes.
8678
8679         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
8680         not in buffer
8681
8682         * redisplay-tty.c (tty_output_display_block): Delete the routine
8683         for text image glyph
8684         * redisplay-x.c (x_output_display_block): ditto
8685         * redisplay-msw.c (mswindows_output_display_block): ditto
8686
8687 2000-02-02  Mike Alexander  <mta@arbortext.com>
8688
8689         Note: Some of these were committed by accident as part of other
8690         patches.
8691
8692         * regex.c (regex_compile): Avoid compiler warnings.
8693
8694         * ntproc.c (sys_spawnve): Avoid compiler warnings.
8695
8696         * nt.h: Declare term_ntproc correctly.
8697
8698         * nt.c: Remove incorrect declaration of get_home_directory which
8699         is declared correctly in lisp.h.
8700
8701         * keymap.c (get_keyelt): Avoid compiler warnings.
8702         (raw_lookup_key_mapper): Avoid compiler warnings.
8703
8704         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
8705
8706         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
8707
8708         * filemode.c (mode_string): Avoid compiler warnings.
8709
8710         * file-coding.c (Fcoding_system_aliasee): Add return statement to
8711         avoid warning.
8712
8713         * events-mod.h: Undef some things that winuser.h defines differently.
8714
8715         * data.c (Faset): Avoid compiler warnings.
8716
8717         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
8718
8719 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
8720
8721         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
8722         Fall through to simple beep on error.
8723         Replace "extern" by real header file.
8724
8725         * linuxplay.c: Use nativesound.h
8726         (play_sound_data): Return error code. Be less verbose on error.
8727
8728         * sunplay.c: Use nativesound.h
8729         (play_sound_data): Return error code. Be less verbose on error.
8730
8731         * ntplay.c: Use nativesound.h
8732         (play_sound_data): Return fake error code
8733
8734         * sgiplay.c: Use nativesound.h
8735         (play_sound_data): Return error code
8736
8737         * hpplay.c: Use nativesound.h, partially implement
8738         new error code. Break compilation until finished.
8739         (play_sound_data): error code.
8740
8741         * nativesound.h (play_sound_file):
8742           (play_sound_data): Prototype in new header.
8743
8744 2000-03-31  Andy Piper  <andy@xemacs.org>
8745
8746         * glyphs-widget.c: (button_query_geometry): new function. Adjust
8747         for toggle and radio buttons.
8748         (image_instantiator_buttons): use it.
8749
8750 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
8751
8752         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
8753         (x_update_horizontal_scrollbar_callback): Return if no mirror was
8754         found. Scrollbar event probably belonged to some old config.
8755
8756 2000-03-31  Andy Piper  <andy@xemacs.org>
8757
8758         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
8759         than 1.
8760         (initialize_widget_image_instance): default layout to
8761         LAYOUT_HORIZONTAL rather than 0.
8762         (widget_instantiate): reverse the item list at the end rather than
8763         every iteration.
8764         (layout_layout): re-code for the border text at the front of the
8765         item list rather than at the end.
8766         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
8767         provided by the user.
8768         (widget_query_geometry): comment.
8769
8770 2000-03-30  Andy Piper  <andy@xemacs.org>
8771
8772         * glyphs-widget.c (image_instantiator_layout): allow standard
8773         widget keywords in layouts.
8774
8775         * gutter.c (output_gutter): cope with nil gutter contents.
8776
8777         * frame.c (Fset_frame_properties): add gutter docs.
8778
8779 2000-03-29  Andy Piper  <andy@xemacs.org>
8780
8781         * toolbar-msw.c (TBSTYLE_FLAT): add.
8782         (mswindows_output_toolbar): minor fiddling.
8783
8784 2000-03-29  Andy Piper  <andy@xemacs.org>
8785
8786         * gutter.c (output_gutter): force gutter size recalculation if
8787         what we are trying to display won't fit.
8788         (update_gutter_geometry): new function. A per-gutter version of
8789         update_frame_gutter_geometry.
8790         (update_frame_gutter_geometry): use it.
8791         (redraw_exposed_gutter): add extra debugging output.
8792
8793 2000-03-28  Mike Alexander  <mta@arbortext.com>
8794
8795         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
8796         (pdump_file_unmap): Implement it on Windows
8797         (pdump_file_get): Save alocated handles for pdump_file_unmap
8798
8799 2000-03-28  Andy Piper  <andy@xemacs.org>
8800
8801         * gui.c (get_gui_callback): treat Quit specially.
8802
8803 2000-03-27  Andy Piper  <andy@xemacs.org>
8804
8805         * glyphs.c (image_instantiate): be careful to check in the same
8806         way we assigned.
8807
8808 2000-03-27  Didier Verna  <didier@xemacs.org>
8809
8810         * config.h.in: define the proper SMART_INCLUDE macro.
8811         handle renaming of `foo_h_path' to `foo_h_file'.
8812
8813         * database.c: ditto.
8814
8815         * emacs.c: ditto.
8816
8817         * linuxplay.c: ditto.
8818
8819         * terminfo.c: ditto.
8820
8821         * tooltalk.h: ditto.
8822
8823 2000-03-27  Andy Piper  <andy@xemacs.org>
8824
8825         * glyphs-msw.c (mswindows_update_widget): make sure the widget
8826         gets updated whenever the face might have changed.
8827
8828 2000-03-26  Mike Alexander  <mta@arbortext.com>
8829
8830         * dumper.c (pdump_resource_free): Fix the comment.
8831
8832 2000-03-21  Olivier Galibert  <galibert@pobox.com>
8833
8834         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
8835
8836 2000-03-22  Mike Alexander  <mta@arbortext.com>
8837
8838         * dumper.c: Include Windows headers on Windows
8839         (pdump_resource_free): Add a body to the function
8840         (pdump_load): exe_name -> exe_path and add some comments.
8841
8842 2000-03-25  Mike Alexander  <mta@arbortext.com>
8843
8844         * gui.c (copy_gui_item_tree): Return a value in all cases
8845
8846 2000-03-21  Didier Verna  <didier@xemacs.org>
8847
8848         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
8849         lwlib/config.h.in.
8850         (SMART_INCLUDE): new macro.
8851         (POSTGRES_INCLUDE): new macro to include postgresql headers from
8852         the proper location.
8853
8854         * postgresql.c: use it.
8855
8856         * inline.c: ditto.
8857
8858 2000-03-24  Andy Piper  <andy@xemacs.org>
8859
8860         * gutter.c (redraw_exposed_gutters): must be "in display" when we
8861         do this.
8862
8863 2000-03-24  Andy Piper  <andy@xemacs.org>
8864
8865         * redisplay-output.c (compare_runes): use image_instance_changed
8866         to detect changes. Do not depend on glyphs_changed, only depend on
8867         dirtiness.
8868          (redisplay_output_layout): add debug messages.
8869         (compare_runes): ditto.
8870
8871         * glyphs.h: declare new functions.
8872         (struct Lisp_Image_Instance): remove percent and associated
8873         accessors.
8874
8875         * gui.h: declare new copying functions.
8876
8877         * gui.c (copy_gui_item_tree): new function.
8878         (copy_gui_item): new function.
8879         (gui_item_id_hash): revert to standard hash.
8880         (gui_item_hash): ditto.
8881         (gui_item_hash_internal): deleted.
8882         (mark_gui_item): mark value.
8883         (gui_item_add_keyval_pair): add value.
8884         (gui_item_init): ditto.
8885         (gui_add_item_keywords_to_plist): ditto.
8886         (gui_item_equal): ditto.
8887         (syms_of_gui): add Q_value.
8888
8889         * glyphs-x.c (x_progress_gauge_update): use pending items and
8890         value for setting the state.
8891         (x_update_widget): don't set items from pending here.
8892
8893         * glyphs-widget.c (update_widget): update items here.
8894         (progress_gauge_set_property): use items for storing value. Put
8895         new value in pending items.
8896
8897         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
8898         items for new value. Convert percent -> value.
8899         (mswindows_tab_control_update): don't update items here.
8900
8901         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
8902         (update_subwindow): ditto.
8903         (image_instance_changed): new function. Compare hash values and
8904         past and present widget items.
8905         (image_instantiate): We more careful about where we instantiate
8906         things.
8907         (image_instantiate): add error checking.
8908
8909         * gutter.c (syms_of_gutter): use -hook.
8910
8911 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
8912
8913         * console-tty.c (Fset_console_tty_input_coding_system): Use
8914         Qkeyboard.
8915         (Fset_console_tty_output_coding_system): Use Qterminal.
8916         (tty_init_console): Use Qkeyboard and Qterminal.
8917
8918 2000-03-21  Ben Wing  <ben@xemacs.org>
8919
8920         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
8921         From Mike Alexander <mta@arbortext.com>.
8922
8923 2000-03-21  Ben Wing  <ben@xemacs.org>
8924
8925         * event-msw.c (mswindows_need_event): Horrible kludge to fix
8926         process brokenness.  Proper implementation to come.
8927         * callproc.c:
8928         Rename call-process-internal to old-call-process-internal.
8929         New impl. in process.el.
8930
8931 2000-03-21  Martin Buchholz  <martin@xemacs.org>
8932
8933         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
8934
8935 2000-03-20  Andy Piper  <andy@xemacs.org>
8936
8937         * glyphs.c (full_list_hash): make hashes of the same elements in
8938         different orders return different values.
8939
8940 2000-03-20  Martin Buchholz <martin@xemacs.org>
8941
8942         * XEmacs 21.2.32 is released.
8943
8944 2000-03-20  Martin Buchholz  <martin@xemacs.org>
8945
8946         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
8947         (DFC_MALLOC_USE_CONVERTED_DATA):
8948         Add aliasing-safe casts to allow use with char* or unsigned char*
8949         lvalues.
8950
8951         * eldap.c (Fldap_open):
8952         (Fldap_search_basic):
8953         (Fldap_add):
8954         (Fldap_modify):
8955         Make C++-compilable.
8956         Make sure GCPRO'ed variables are initialized.
8957         Use temp variables to avoid repeated calls to Flength.
8958
8959 2000-03-16  Martin Buchholz  <martin@xemacs.org>
8960
8961         * sysfile.h:
8962         Make sure PATH_MAX is always defined.
8963         Include limits.h for PATH_MAX.
8964         Deprecate use of MAXPATHLEN.
8965
8966 2000-03-10  Martin Buchholz  <martin@xemacs.org>
8967
8968         * emacs.c: Add reinit_vars_of_fileio.
8969         * symsinit.h: Add reinit_vars_of_fileio.
8970         * fileio.c (reinit_vars_of_fileio): New.
8971         * fileio.c (Fmake_temp_name):
8972         Initialize temp_name random number from microseconds to make
8973         collisions even less likely.  Initialize always at process startup
8974         time.  (make-temp-name) used to return the same file name twice in
8975         a row when PDUMP.
8976         Random stylistic fiddling.
8977         Comment fixes.
8978
8979 2000-03-20  Andy Piper  <andy@xemacs.org>
8980
8981         * glyphs.c (image_instantiate): allow text glyphs to be
8982         instantiated in the minibuffer window.
8983
8984 2000-03-19  Andy Piper  <andy@xemacs.org>
8985
8986         * glyphs.c (image_instance_hash): be careful about which items we
8987         hash on.
8988
8989         * glyphs-widget.c (tab_control_set_property): record into pending
8990         items rather than the actual items.
8991
8992         * glyphs-x.c (x_update_widget): use pending items to update with.
8993
8994         * glyphs-msw.c (mswindows_tab_control_update): use pending items
8995         to update with.
8996
8997         * glyphs.c (mark_image_instance): mark pending items.
8998
8999         * window.c (Fset_window_configuration): record the buffer.
9000         (Fselect_window): totally revert previous change which breaks many
9001         things.
9002
9003 2000-03-18  Andy Piper  <andy@xemacs.org>
9004
9005         * glyphs-msw.c (mswindows_tab_control_update): force selected
9006         item.
9007
9008         * glyphs.c (image_instantiate): don't allow the minibuffer as a
9009         window domain cache, otherwise we get inconsistencies at
9010         startup. There is something fishy at startup which can lead to the
9011         minibuffer being the selected window when the gutter content is
9012         instantiated.
9013
9014         * gui.c (parse_gui_item_tree_list): add probably unnecessary
9015         gcpros.
9016         (parse_gui_item_tree_children): ditto.
9017         (parse_gui_item_tree_item): ditto.
9018
9019         * glyphs.c (Fupdate_widget_instances): return something.
9020
9021 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9022
9023         * window.c (Fselect_window): Undo 2000-03-17 change.
9024
9025 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
9026
9027         * postgresql.c (Fpq_setenv): Remove this turkey when linking
9028         against v7.0 libraries.  Insta-coredump city until the postgres
9029         folks fix it.
9030
9031 2000-03-17  Andy Piper  <andy@xemacs.org>
9032
9033         * faces.c (complex_vars_of_faces): don't give the widget face an
9034         inherited background pixmap.
9035
9036         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
9037         selected item.
9038
9039         * event-stream.c (Fdispatch_non_command_events): return something.
9040
9041         * gutter.c (output_gutter): use widget face.
9042         (clear_gutter): ditto.
9043
9044         * NEWS: adjust again.
9045
9046         * window.c (Fselect_window): make sure this runs to completion to
9047         avoid oddities with Fset_window_configuration.
9048         (Fcurrent_window_configuration): in general do not save the
9049         minibuffer as the selected window.
9050
9051         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
9052
9053 2000-03-16  Olivier Galibert  <galibert@pobox.com>
9054
9055         * emacs.c (Frunning_temacs_p): Revert previous patch.
9056         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
9057
9058 2000-03-16  Andy Piper  <andy@xemacs.org>
9059
9060         * glyphs-x.c (x_tab_control_update): if no widget values then
9061         return.
9062
9063         * NEWS: update for new features.
9064
9065         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
9066         synthetic event to the native system.
9067         (reinit_vars_of_event_Xt): set force_event_pending to
9068         emacs_Xt_force_event_pending.
9069
9070         * events.h (struct event_stream): add force_event_pending.
9071
9072         * specifier.c (recompute_one_cached_specifier_in_window): add
9073         comment.
9074
9075         * redisplay.c (redisplay_frame): don't call
9076         update_frame_subwindows. Reset subwindow cachels when
9077         subwindows_changed, removing this was an optimization too far.
9078
9079         * redisplay-output.c (compare_runes): reorganize so that we catch
9080         glyph changes when we want them. Set optimize_output when this
9081         would help layouts.
9082         (redisplay_output_layout): remove frame_really_changed, use
9083         optimize_output instead.
9084
9085         * redisplay-msw.c (mswindows_output_display_block): reset
9086         optimize_output after outputting a glyph.
9087         * redisplay-x.c (x_output_display_block): ditto.
9088         * redisplay-tty.c (tty_output_display_block): ditto.
9089
9090         * gutter.c: (specifier_vars_of_gutter): use new spec changed
9091         functions.
9092         (gutter_specs_changed): do specific gutter positions.
9093         (top_gutter_specs_changed): new function. Only update the
9094         specified gutter specs.
9095         (bottom_gutter_specs_changed): ditto.
9096         (left_gutter_specs_changed): ditto.
9097         (right_gutter_specs_changed): ditto.
9098
9099         * gui.c (gui_item_hash_internal): new function, does a real hash.
9100         (gui_item_id_hash): use it.
9101         (gui_item_hash): hash the eval'ed gui_item.
9102
9103         * gui-x.c (popup_selection_callback): send an eval event to call
9104         Fupdate_widget_instances.
9105
9106         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
9107         to call Fupdate_widget_instances.
9108
9109         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
9110         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
9111
9112         * glyphs.c: (update_frame_subwindows): deleted.
9113         (Fupdate_widget_instances): new function for updating the dirty
9114         state of widgets that might have changed.
9115         (syms_of_glyphs): add Qupdate_widget_instances.
9116         (full_list_hash): hash a list completely.
9117         (image_instance_hash): use it for items and properties.
9118
9119         * frame-msw.c (mswindows_size_frame_internal): remove unused
9120         variable.
9121
9122         * faces.h (struct face_cachel): fix comment.
9123
9124         * event-stream.c (Fdispatch_non_command_events): new
9125         function. Process non-command events, forcing an event cycle
9126         beforehand.
9127         (syms_of_event_stream): declare.
9128         (event_stream_force_event_pending): new function. Force an event
9129         on the native event queue so that an event cycle will occur next
9130         time we check.
9131
9132         * event-msw.c:
9133         (struct ntpipe_shove_stream):
9134         (mswindows_enqueue_dispatch_event):
9135         (mswindows_dequeue_dispatch_event):
9136         (mswindows_cancel_dispatch_event):
9137         (mswindows_pump_outstanding_events):
9138         (mswindows_drain_windows_queue):
9139         (mswindows_handle_paint):
9140         (mswindows_wnd_proc):
9141         (mswindows_key_to_emacs_keysym):
9142         (get_process_input_waitable):
9143         (emacs_mswindows_delete_stream_pair): re-indent file.
9144         (mswindows_need_event): do not process further fds if the windows
9145         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
9146         fixes the 100% cpu problem.
9147         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
9148
9149 2000-03-15  Olivier Galibert  <galibert@pobox.com>
9150
9151         * alloc.h: New.
9152         * dumper.h: New.
9153         * dumper.c: New.
9154
9155         * emacs.c: Moved dump file searching to dumper.c.
9156         (Frunning_temacs_p): Fixed.
9157
9158         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
9159         last_lrecord_type_index_assigned.
9160
9161 2000-02-20  Olivier Galibert  <galibert@pobox.com>
9162
9163         * symsinit.h: Added reinit parameter to init_console_stream
9164         declaration.
9165
9166         * lisp.h: Added file parameter to pdump_load declaration.
9167
9168         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
9169         support.  Added dump file searching.
9170
9171         * config.h.in: Added EMACS_PROGNAME.
9172
9173         * console-stream.c (init_console_stream): Fix reinitialisation
9174         when running from temacs.
9175
9176         * alloc.c (pdump): Add id support.
9177         (pdump_load): Add file parameter and signature/id support.
9178
9179         * Makefile.in.in: Add full pdump support.
9180
9181 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
9182
9183         * postgresql.c: Update documentation to reflect latest code
9184         status.
9185         (print_result): Show tuple counts in printed representation when
9186         appropriate.
9187         (Fpq_put_nbytes): MULE-ize.
9188         (Fpq_get_line_async): Ditto.
9189
9190 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
9191
9192         * postgresql.c (Fpq_lo_import): Fix return value.
9193         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
9194
9195 2000-03-13  Ben Wing  <ben@xemacs.org>
9196
9197         * alloc.c (pdump_load):
9198         Fix compile warning under mswin.
9199
9200 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
9201
9202         * postgresql.c: Mule-ization, bug fixes.
9203         Use PG_CODING to encapsulate coding system name changes.
9204         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
9205         (pg-coding-system): Create.
9206
9207         (Fpq_conn_defaults): Mule-ize.
9208         (Fpq_connectdb): Mule-ize & bug fix.
9209         (Fpq_connect_start): Mule-ize.
9210         (Fpq_set_client_encoding): Mule-ize.
9211         (Fpq_finish): Document `DEAD' connection status.
9212         (Fpq_clear): Ditto.
9213         (Fpq_pgconn): Mule-ize.
9214         (Fpq_exec): Mule-ize & bug fix.
9215         (Fpq_send_query): Ditto.
9216         (Fpq_get_result): Ditto.
9217         (Fpq_res_status): Mule-ize.
9218         (Fpq_result_error_message): Mule-ize.
9219         (Fpq_ntuples): fix comments.
9220         (Fpq_fname): Mule-ize.
9221         (Fpq_fnumber): Mule-ize.
9222         (Fpq_ftype): fix comments.
9223         (Fpq_get_value): Mule-ize.
9224         (Fpq_cmd_status): Ditto.
9225         (Fpq_cmd_tuples): Ditto.
9226         (Fpq_oid_value): Ditto.
9227         (Fpq_notifies): Ditto.
9228         (Fpq_lo_import): Ditto.
9229         (Fpq_lo_export): Ditto.
9230         (Fpq_get_line): Ditto.
9231         (Fpq_put_line): Mule-ize and bug fix.
9232         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
9233
9234 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
9235
9236         * postgresql.c (vars_of_postgresql): Mule-ize.
9237         (Fpq_conn_defaults): Ditto.
9238
9239 2000-03-12  Ben Wing  <ben@xemacs.org>
9240
9241         * alloc.c (Fmake_byte_code):
9242         * alloc.c (debug_string_purity_print):
9243         * alloc.c (pdump_backtrace):
9244         * alloc.c (pdump_get_indirect_count):
9245         * alloc.c (pdump_register_sub):
9246         * alloc.c (pdump_register_object):
9247         * alloc.c (pdump_register_struct):
9248         * alloc.c (pdump_dump_data):
9249         * alloc.c (pdump_reloc_one):
9250         Minor cleanups.
9251
9252         * console-msw.c:
9253         * console-msw.c (GetConsoleHwnd):
9254         * console-msw.c (msw_hide_console):
9255         * console-msw.c (msw_show_console):
9256         * console-msw.c (msw_ensure_console_buffered):
9257         * console-msw.c (msw_output_console_string):
9258         * console-msw.c (console_type_create_mswindows):
9259
9260         a) Added functions to manipulate the console window for use with
9261         shell support.
9262
9263         b) Added support for writing text to the console, which is now
9264         used under Windows when xemacs is not being run non-interactively,
9265         to write text that would otherwise be destined for stdout because
9266         under these circumstances, text written to stdout tends to
9267         disappear and not be seen.
9268
9269         * console-msw.h:
9270         * event-Xt.c:
9271         * event-Xt.c (x_event_to_emacs_event):
9272         * event-Xt.c (describe_event_window):
9273         * events-mod.h (XEMACS_MOD_CONTROL):
9274         * events.c:
9275         * events.c (Fmake_event):
9276         * events.c (character_to_event):
9277         * events.c (event_to_character):
9278         * events.c (format_event_object):
9279         * events.c (Fevent_modifiers):
9280         * events.h:
9281         * events.h (struct key_data):
9282         * events.h (struct button_data):
9283         * events.h (struct misc_user_data):
9284         * frame-x.c (Fcde_start_drag_internal):
9285         * frame-x.c (Foffix_start_drag_internal):
9286         * gpmevent.c (Freceive_gpm_event):
9287         * keymap.c:
9288         * keymap.c (bucky_sym_to_bucky_bit):
9289         * keymap.c (control_meta_superify):
9290         * keymap.c (make_key_description):
9291         * keymap.c (keymap_lookup_directly):
9292         * keymap.c (create_bucky_submap):
9293         * keymap.c (keymap_store):
9294         * keymap.c (define_key_check_and_coerce_keysym):
9295         * keymap.c (define_key_parser):
9296         * keymap.c (define_key_alternate_name):
9297         * keymap.c (Fdefine_key):
9298         * keymap.c (raw_lookup_key_mapper):
9299         * keymap.c (struct map_keymap_unsorted_closure):
9300         * keymap.c (map_keymap_unsorted_mapper):
9301         * keymap.c (map_keymap_sort_predicate):
9302         * keymap.c (map_keymap_sorted):
9303         * keymap.c (accessible_keymaps_mapper_1):
9304         * keymap.c (where_is_recursive_mapper):
9305         * keymap.c (describe_map_mapper):
9306         * keymap.c (describe_map_sort_predicate):
9307         * keymap.c (describe_map):
9308         * keymap.c (complex_vars_of_keymap):
9309         And a number of other files, the key modifier preprocessor
9310         constants that xemacs uses have names that conflict with constants
9311         defined under MS Windows for other purposes, so they were renamed
9312         to begin with the prefix XEMACS_. The variables that hold such
9313         modifiers were changed to consistently be of type int to fix
9314         various compile warnings.
9315
9316         * console.c (complex_vars_of_console):
9317         * device.c:
9318         * device-msw.c:
9319         * device-msw.c (mswindows_finish_init_device):
9320         * device-msw.c (msw_get_workspace_coords):
9321         * device-msw.c (mswindows_device_system_metrics):
9322         and various other files, added support for a new
9323         device property called offset-workspace which returns the position
9324         of the upper left corner of the workspace area and goes along with
9325         the existing size-workspace property.
9326
9327         * dialog-msw.c:
9328         * dialog-msw.c (push_bufbyte_string_as_unicode):
9329         * dialog-msw.c (mswindows_popup_dialog_box):
9330         Added support for XEmacs-style accelerator specifications in
9331         button text.  Note: I didn't add support for this under X Windows,
9332         and somebody needs to do this.
9333
9334         * dialog.c:
9335         * dialog.c (Fpopup_dialog_box):
9336         Documented the support for accelerators that was just mentioned.
9337
9338         editfns.c (get_home_directory): Changed behavior under Windows
9339         when HOME not defined; former behavior was irretrievably broken.
9340
9341         * emacs.c:
9342         * emacs.c (main_1):
9343         * emacs.c (main):
9344         * minibuf.c (clear_echo_area_internal):
9345         * minibuf.c (echo_area_append):
9346         * print.c:
9347         * print.c (std_handle_out_external):
9348         * print.c (std_handle_out_va):
9349         * print.c (fatal):
9350         * print.c (write_string_to_stdio_stream):
9351         * print.c (output_string):
9352         * print.c (debug_print):
9353         * print.c (debug_backtrace):
9354         * print.c (debug_short_backtrace):
9355         Cleaned up the code that prints text to stdout so that this can be
9356         changed to output into a console window instead under MS Windows,
9357         as described above.
9358
9359         * eval.c:
9360         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
9361         * eval.c (internal_catch):
9362         * eval.c (unwind_to_catch):
9363         * eval.c (throw_or_bomb_out):
9364         * eval.c (condition_case_1):
9365         * eval.c (signal_1):
9366         * eval.c (check_error_state_sanity):
9367         * eval.c (call_with_suspended_errors_1):
9368         * eval.c (call_with_suspended_errors):
9369         * eval.c (reinit_vars_of_eval):
9370         Added code to catch throw loops and check for a pesky bug that may
9371         be gone now.
9372
9373         * event-msw.c:
9374         * event-msw.c (key_needs_default_processing_p):
9375         * event-msw.c (mswindows_wnd_proc):
9376         * event-msw.c (mswindows_modifier_state):
9377         * event-msw.c (emacs_mswindows_quit_p):
9378         * event-msw.c (vars_of_event_mswindows):
9379         a) Added support for using the alt key to select menu items as is
9380         standard under MS Windows.  This is controlled using the variable
9381         menu-accelerator-enabled, just like under X Windows.  There is an
9382         option on the options menu to turn this support on.  I really
9383         think that it should be on by default under Windows, but I'm not
9384         going to make this change yet.
9385
9386         b)  Added support for dynamic display size changes under Windows.
9387
9388         * event-stream.c:
9389         * event-stream.c (maybe_echo_keys):
9390         * event-stream.c (Fnext_event):
9391         * event-stream.c (command_builder_find_leaf):
9392         * event-stream.c (lookup_command_event):
9393         * event-stream.c (execute_command_event):
9394         * event-stream.c (pre_command_hook):
9395         * event-stream.c (post_command_hook):
9396         * event-stream.c (syms_of_event_stream):
9397         * event-stream.c (vars_of_event_stream):
9398         * event-stream.c (complex_vars_of_event_stream):
9399         * events.h (struct command_builder):
9400
9401         a) Tried to clean up a little bit the horribly written x-specific
9402         accelerator code that crept into this file.  I moved this code
9403         into menubar-x.c where it belongs. I also needed to move the
9404         command builder structure into the file events.h because it is
9405         accessed directly by this accelerator code.  What I didn't do, but
9406         which should be done at some point, is to properly abstract this
9407         code using device methods instead of the kludgy way that it
9408         currently hooks into the event code.
9409
9410         b) Added the lisp variables this-command-properties and
9411         last-command- properties, which should be used to synchronize two
9412         adjacent commands in preference to playing games with the variable
9413         this-command, which is typically what happens.
9414
9415         c) Added some slightly nasty code to hook into the lisp support
9416         for shifted- motion-key selection.  This is actually necessary for
9417         somewhat complicated reasons, which are described in
9418         simple.el. (NB: I think the proper thing would be to have the code
9419         that calls the pre and post command hooks also call out to generic
9420         lisp functions in simple.el, where all built-in stuff could be
9421         added.  I will think about this more.)
9422
9423         * event-unixoid.c (poll_fds_for_input):
9424         * lread.c (readchar):
9425         * redisplay-tty.c (tty_clear_frame):
9426         * redisplay-x.c (x_get_gc):
9427         * signal.c (interrupt_signal):
9428         And a whole bunch of other files: fixed up places that printed
9429         directly to stderr to instead call the function stderr_out so that
9430         the changes I made under Windows work correctly.
9431
9432         * filemode.c (mode_string):
9433         Warning fixes.
9434
9435         * frame-msw.c:
9436         * frame-msw.c (mswindows_size_frame_internal):
9437         Fixed the computation of frame size and position to keep the frame
9438         within the workspace area, rather than within the physical
9439         dimensions of the screen, so that the frame doesn't overlap window
9440         manager decorations, such as the start menu and toolbar, typically
9441         at the bottom of the screen.
9442
9443         * frame.c (vars_of_frame):
9444         Changed the default frame title format under MS Windows to consist
9445         of buffername-XEmacs, which is standard under MS Windows.  I think
9446         it might be a good idea to change this everywhere because I think
9447         it is superior to the current frame title format, but this is the
9448         kind of change that is likely to cause some people to get annoyed,
9449         so I'm not making it.
9450
9451         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
9452
9453         * gui-msw.c (mswindows_handle_gui_wm_command):
9454         Fixed compile warnings.
9455
9456         * gui-x.c:
9457         * gui-x.c (strdup_and_add_accel):
9458         * gui-x.c (button_item_to_widget_value):
9459         * gui-x.h:
9460         Added code to automatically put an accelerator onto the beginning
9461         of menu items that don't have one as is now the standard, and is
9462         described more later.  Also fixed things so that the menu item
9463         name can be an evaluated expression, again a new standard.
9464
9465         * gui.c:
9466         * gui.c (gui_item_add_keyval_pair):
9467         * gui.c (make_gui_item_from_keywords_internal):
9468         * gui.c (gui_add_item_keywords_to_plist):
9469         * gui.c (gui_item_accelerator):
9470         * gui.c (gui_name_accelerator):
9471         * gui.c (gui_item_included_p):
9472         * gui.c (gui_item_display_flush_left):
9473         * gui.c (gui_item_display_flush_right):
9474         * gui.c (parse_gui_item_tree_item):
9475         * gui.c (parse_gui_item_tree_children):
9476         * gui.c (parse_gui_item_tree_list):
9477         Mule-ized.  Cleanup.  GCPRO addition.
9478
9479         * line-number.c (buffer_line_number):
9480         * lisp.h:
9481         * lisp.h (EMACS_INT_MAX):
9482         Added the manifest constant EMACS_INT_MIN corresponding to the
9483         existing constant EMACS_INT_MAX.  This is partially to fix compile
9484         warnings under Windows, and partly for cleanliness.
9485
9486         * menubar-msw.c:
9487         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
9488         * menubar-msw.c (msw_translate_menu_or_dialog_item):
9489         * menubar-msw.c (displayable_menu_item):
9490         * menubar-msw.c (populate_menu_add_item):
9491         * menubar-msw.c (populate_or_checksum_helper):
9492         * menubar-msw.c (populate_menu):
9493         * menubar-msw.c (update_frame_menubar_maybe):
9494         * menubar-msw.c (prune_menubar):
9495         * menubar-msw.c (msw_char_is_accelerator):
9496         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
9497         * menubar-msw.c (mswindows_handle_wm_command):
9498         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
9499         * menubar-msw.c (mswindows_handle_wm_initmenu):
9500         * menubar-msw.c (mswindows_update_frame_menubars):
9501         * menubar-msw.c (mswindows_free_frame_menubars):
9502         * menubar-msw.c (mswindows_popup_menu):
9503         Fixed a bug in handling accelerators where an extra character
9504         would be displayed in the menu item.  Also generalized the
9505         function displayable_menu_item because it is now used by the
9506         dialog box code as well.  And finally, added code in the functions
9507         that create the menubar to extract a list of accelerators for the
9508         top level menubar, which is used in the event code to determine
9509         whether a particular alt-key combination should be used to invoke
9510         a menu item, or should be passed through to access the standard
9511         XEmacs keymap binding for this key combination.
9512
9513         Much needed GCPROing.
9514
9515         * menubar-x.c:
9516         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9517         * menubar-x.c (menu_item_descriptor_to_widget_value):
9518         * menubar-x.c (restore_in_menu_callback):
9519         * menubar-x.c (x_popup_menu):
9520         * menubar-x.c (menu_move_up):
9521         * menubar-x.c (menu_move_down):
9522         * menubar-x.c (menu_move_left):
9523         * menubar-x.c (menu_move_right):
9524         * menubar-x.c (menu_select_item):
9525         * menubar-x.c (command_builder_operate_menu_accelerator):
9526         * menubar-x.c (menu_accelerator_junk_on_error):
9527         * menubar-x.c (command_builder_find_menu_accelerator):
9528         * menubar-x.c (Faccelerate_menu):
9529         * menubar.h:
9530         Moved a whole bunch of code here that was previously in
9531         event-stream.c as described above.  There is also code connected
9532         to the new standard of adding an accelerator to the beginning of
9533         menu items that don't have one as described above and below.
9534
9535         * menubar.c:
9536         * menubar.c (menu_parse_submenu_keywords):
9537         * menubar.c (Fmenu_find_real_submenu):
9538         * menubar.c (Fnormalize_menu_item_name):
9539         * menubar.c (syms_of_menubar):
9540         * menubar.c (vars_of_menubar):
9541         * menubar.c (complex_vars_of_menubar):
9542
9543         a) Cleaned up a bunch of documentation and improved it.
9544
9545         b) XEmacs now automatically adds an accelerator onto the beginning
9546         of any menu items that don't have one.  I did this because there
9547         will inevitably be some menu items on the main menubar that don't
9548         have accelerators on them because the package that adds that
9549         particular menu item hasn't yet been fixed up to have accelerators
9550         in them and it looked rather strange to have some items with and
9551         some items without accelerators, especially since even in items
9552         without accelerators, you can, at least under windows, still
9553         access the item through an accelerator corresponding to the first
9554         character in the item's name.  If people don't like this behavior,
9555         I can add a variable to turn it off optionally, but I'm not sure
9556         this is a good idea because we really do need to have accelerators
9557         on all of the menu items, and if a package doesn't like the
9558         accelerators being put on the first character, then it should put
9559         the accelerators where they belong.
9560
9561         c) I made a behavior change, which is that the descriptor that
9562         specifies the text of the menu item, which formerly was just a
9563         string, can now also be an evaluated expression.  This makes this
9564         descriptor parallel with all of the others, which could also be
9565         evaluated expressions.  This also obviates the need for the
9566         keyword :label, which was previously listed in the documentation
9567         as unimplemented, and which was for the same purpose.
9568
9569         d) GCPROing.
9570
9571         * ntproc.c:
9572         * ntproc.c (new_child):
9573         * ntproc.c (sys_spawnve):
9574         * ntproc.c (find_child_console):
9575         * ntproc.c (sys_kill):
9576         Fixed compile warnings.  By the way, this file should really go
9577         away entirely, and this will happen as soon as Kirill makes his
9578         final round of process cleanups, which affect the function
9579         call-process.
9580
9581         * process-nt.c:
9582         * process-nt.c (struct nt_process_data):
9583         * process-nt.c (find_process_from_pid):
9584         * process-nt.c (send_signal_the_nt_way):
9585         * process-nt.c (enable_child_signals):
9586         * process-nt.c (find_child_console):
9587         * process-nt.c (send_signal_the_95_way):
9588         * process-nt.c (nt_finalize_process_data):
9589         * process-nt.c (ensure_console_window_exists):
9590         * process-nt.c (nt_create_process):
9591         * process-nt.c (nt_kill_child_process):
9592         * process-nt.c (nt_kill_process_by_pid):
9593         * process-nt.c (nt_open_network_stream):
9594         * process-nt.c (vars_of_process_nt):
9595         Copied over code from Emacs 20.5 to correctly send signals to sub-
9596         processes under Windows 95.  Also added code to automatically
9597         create and hide console window when a sub-process is created under
9598         Windows 95, which obviates the need for the separate runemacs.exe
9599         executable, and finally implemented some variables that were
9600         implemented in Emacs 20.5, but previously not in XEmacs.  These
9601         include mswindows- start-process-share-console and
9602         mswindows-start-process-inherit-error-mode. (Both of these only
9603         apply to Windows 95.)
9604
9605         * regex.c (regex_compile): Fixed a compile warning.
9606
9607         * select-msw.c:
9608         * select-msw.c (mswindows_own_selection):
9609         * select-msw.c (mswindows_get_foreign_selection):
9610         * select-msw.c (mswindows_disown_selection):
9611         * select-msw.c (console_type_create_select_mswindows):
9612         * select-msw.c (syms_of_select_mswindows):
9613         Cleaned up the file and implemented the device method
9614         selection_exists_p, which had accidentally been left out.  Also
9615         removed four lisp functions that were remnants from before the
9616         time when the selection code was properly device abstracted.
9617         These functions are no longer needed because there are generic
9618         equivalents, and because they were added recently and don't exist
9619         in FSF Emacs, I don't think there's any problem with just deleting
9620         them.
9621
9622         * sysdep.c:
9623         * sysdep.c (sys_subshell):
9624         Fixed a compile warning, although in this case there's probably
9625         something wrong with this code, and it ought to be looked into
9626         more thoroughly by somebody who understands it.
9627
9628         * window.c:
9629         * window.c (Fwindow_text_area_height):
9630         * window.c (Fwindow_width):
9631         * window.c (Fwindow_full_width):
9632         * window.c (Fwindow_pixel_width):
9633         * window.c (debug_print_window):
9634         * window.c (syms_of_window):
9635         Added functions window-text-area-height and window-full-width,
9636         which are functions for returning various width and height
9637         characteristics of a window. (One of these functions is necessary
9638         for making the file dialog box work correctly, and the other one
9639         was added for completeness.)  Also added a table to the
9640         documentation for window-height which describes the entire scheme
9641         for accessing width and height characteristics of a window.
9642
9643 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
9644
9645         * nt.c (fstat): Added a comment for another problem with
9646         non-encapsulated [f]stat(), reported by Adrian Aichner
9647         <aichner@ecf.teradyne.com>.
9648
9649 2000-03-11  Andy Piper  <andy@xemacs.org>
9650
9651         * window.c (make_dummy_parent): initialize subwindow instance
9652         cache.
9653         (Fset_window_configuration): zero extent_modiff.
9654
9655 2000-03-10  Andy Piper  <andy@xemacs.org>
9656
9657         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
9658         more changes can be triggered.
9659         (Fredisplay_frame): ditto.
9660         (Fredraw_device): ditto.
9661         (Fredisplay_device): ditto.
9662         (redisplay_frame): make non-static.
9663         (redisplay_frame): call update_frame_gutter_geometry outside of
9664         display proper.
9665
9666         * gutter.h: declare update_frame_gutter_geometry.
9667
9668         * redisplay.h: declare redisplay_frame.
9669
9670         * gutter.c (update_frame_gutter_geometry): move geometry changes
9671         in update_frame_gutters here. Geometry changes can only occur
9672         outside of redisplay.
9673         (update_frame_gutters): remove geometry change code.
9674         (Fredisplay_gutter_area): make sure that we are in display when we
9675         update and that we have flushed any size changes.
9676
9677 2000-03-11  Andy Piper  <andy@xemacs.org>
9678
9679         * alloc.c (pdump_dump_data): remove i & count shadows.
9680
9681 2000-02-27  Mike Alexander  <mta@arbortext.com>
9682
9683         * sysdep.h: Declare pdump_read_file
9684
9685         * sysdep.c (pdump_read_file): New function
9686
9687         * alloc.c (pdump_load): Call pdump_read_file to get the portable
9688         dump data
9689
9690 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
9691
9692         * lrecord.h: add `lrecord_type_pgsetenv'.
9693
9694 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
9695
9696         * symsinit.h: declare (vars|syms)_of* functions.
9697         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
9698
9699 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
9700
9701         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
9702
9703         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
9704         GCCs.
9705
9706         * emacs.c (main_1): Call postgres initialization code.
9707
9708         * postgresql.h: New file.  PostgreSQL RDBMS support.
9709         * postgresql.c: New file.
9710
9711 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
9712
9713         * redisplay-output.c (redisplay_output_display_block): Disable
9714         redundant code.
9715
9716 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
9717
9718         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
9719         (Fcanna_henkan_next): Ditto.
9720         (Fcanna_bunsetu_henkou): Ditto.
9721         (Fcanna_henkan_kakutei): Ditto.
9722         (Fcanna_henkan_end): Ditto.
9723         (Fcanna_henkan_quit): Ditto.
9724         (Fcanna_henkan_next): Set retun value correctly.
9725         (c2mu): Use unsigned char instead of signed char.
9726
9727 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
9728
9729         * emacs.c (main_1): Always call syms_of_gui.
9730         * inline.c: include gui.h
9731
9732 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
9733
9734         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
9735         converted to Lisp_Object.
9736         (Qtop_bottom): New variable.
9737         (syms_of_redisplay): Initialize it.
9738         * redisplay.h (Vvisible_bell): Ditto.
9739         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
9740         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
9741         only flash top and bottom.
9742
9743 2000-03-08  Andy Piper  <andy@xemacs.org>
9744
9745         * buffer.c (Frename_buffer): record new buffer name the right way.
9746
9747 2000-03-08  Andy Piper  <andy@xemacs.org>
9748
9749         * glyphs.c (update_subwindow): increase hash depth so that widget
9750         items get picked up properly.
9751
9752         * redisplay-output.c (compare_runes): increase hash depth so that
9753         widget items get picked up properly.
9754
9755 2000-03-08  Andy Piper  <andy@xemacs.org>
9756
9757         * gutter.c (output_gutter): add some debug.
9758
9759         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
9760         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
9761         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
9762
9763         * redisplay-output.c (compare_runes): use display_hash to
9764         determine if glyphs really are not the same.
9765
9766         * glyphs.c (update_subwindow): check display_hash to see if
9767         anything really needs to be updated. If not then do
9768         nothing. Record the display_hash after updating.
9769         (image_instance_equal): compare the image_instance face also.
9770
9771 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
9772
9773         * redisplay.h: Fix comment style.
9774
9775 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9776
9777         * consle-msw.h (struct mswindows_frame):
9778         Added new member paint_pending to indicate whether a WM_PAINT
9779         magic event has been queued for this frame.
9780
9781         * event-msw.c (mswindows_drain_windows_queue):
9782         Don't queue a WM_PAINT magic event if one is already queued.
9783         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
9784
9785         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
9786
9787 2000-03-07  Didier Verna  <didier@xemacs.org>
9788
9789         * dired.c: #include `regex.h' after `sysfile.h'.
9790
9791 2000-03-06  Martin Buchholz  <martin@xemacs.org>
9792
9793         * sound.c (init_nas_sound): Fix compiler warning.
9794
9795         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
9796         (FREE_STRUCT_P):
9797         (MARK_STRUCT_AS_FREE):
9798         (MARK_STRUCT_AS_NOT_FREE):
9799         Make `gcc -fstrict-aliasing' work properly.
9800
9801 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9802
9803         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
9804         (mswindows_delete_device): Call CoUnnitialize().
9805
9806         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
9807
9808 2000-02-25    <CraigL@DyCon.com>
9809
9810         * process-nt.c: MinGW now has <shellapi.h>, but still needs
9811         <errno.h>.
9812
9813         * sysdep.c: This extern declaration for environ prevents MinGW
9814         from finding the variable in CRTDLL.DLL.
9815
9816         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
9817         windows headers.
9818         (SHGFI_EXETYPE): ..
9819         (WM_MOUSEWHEEL): ..
9820         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
9821         definitions.
9822         (MMRESULT): Removed, now defined in cygwin's windows headers.
9823         (TIMECAPS): ..
9824         (uid_t,gid_t,pid_t,ssize_t): ..
9825         (_timeb): Removed, MinGW defines both _timeb and timeb.
9826         (HAVE_H_ERRNO): Added.
9827         (HAVE_TZNAME): Added, configure is not detecting this.
9828
9829 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
9830
9831         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
9832         * syntax.c (syntax_match): Use it.
9833
9834         * cmds.c: Import auto-fill-chars from FSF Emacs.
9835         (Vauto_fill_chars): New variables.
9836         (internal_self_insert): Check Vauto_fill_chars.
9837         (vars_of_cmds):
9838         Declare auto-fill-chars as a Lisp variable and initialize it.
9839
9840 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9841
9842         * fileio.c (Fmake_symbolic_link):
9843         (Ffile_symlink_p):
9844         Run handlers even if local machine doesn't have symlinks.
9845
9846 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9847
9848         * event-msw.c (mswindows_drain_windows_queue):
9849         Don't generate paint magic events for non-XEmacs frames.
9850
9851 2000-03-05  Andy Piper  <andy@xemacs.org>
9852
9853         * redisplay.c (redisplay_frame): generate_displayable_area and
9854         friends assumes that we are not in GC, we therefore have to make
9855         sure that this doesn't happen.
9856
9857         * gutter.c (calculate_gutter_size): generate_displayable_area
9858         assumes that we are not in GC, we therefore have to make sure that
9859         this doesn't happen.
9860
9861 2000-03-05  Martin Buchholz  <martin@xemacs.org>
9862
9863         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
9864
9865 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
9866
9867         * redisplay.c (regenerate_window): Make sure we set a sane value
9868         for end_pos even if we jump out of the loop.
9869         (regenerate_window): Answer Ben's question :-).
9870         (start_end_of_last_line): Add may_error argument.
9871         (start_of_last_line):
9872         (end_of_last_line): Pass may_error = 0.
9873         (end_of_last_line_may_error): New function.
9874         (pixel_to_glyph_translation): Use it, so we don't crash in
9875         event_to_glyph.
9876
9877 2000-03-04  Andy Piper  <andy@xemacs.org>
9878
9879         * window.h (struct window): add gutter_extent_modiff.
9880
9881         * window.c (allocate_window): zero out gutter_extent_modiff.
9882
9883         * redisplay.h: declare sync_display_line_structs.
9884
9885         * redisplay.c (add_glyph_rune): add a better comment.
9886
9887         * redisplay-output.c (sync_display_line_structs): made non-static.
9888         (compare_runes): remove unneccesary glyph cachel access.
9889
9890         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
9891
9892         * gutter.c (output_gutter): don't output the gutter if extent
9893         changes only involve extents in buffers. use 4 sets of display
9894         lines.
9895         (gutter_extent_signal_changed_region_maybe): new function. Mark
9896         extents in gutters as changed.
9897         (update_frame_gutters): use 4 sets of display lines.
9898         (reset_gutter_display_lines): ditto.
9899         (free_frame_gutters): ditto.
9900         (redraw_exposed_gutter): force output of gutters.
9901
9902         * frame.h (struct frame): add 4 sets of gutter display lines.
9903
9904         * extents.c: (extent_changed_for_redisplay): signal changes to
9905         extents in strings in the gutter as well as extents in buffers.
9906
9907 2000-03-02  Andy Piper  <andy@xemacs.org>
9908
9909         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
9910
9911         * frame.c (Fmake_frame): make sure the gutters get initialized
9912         after the frame is visible.
9913         (set_frame_selected_window): re-arrange compilation macros a
9914         little.
9915         (change_frame_size_1): mark gutters changed.
9916
9917         * device.c (Fset_device_class): mark gutters changed.
9918
9919 2000-03-01  Andy Piper  <andy@xemacs.org>
9920
9921         * window.c (window_top_frame_gutter_height): deleted.
9922         (window_bottom_frame_gutter_height): ditto.
9923         (window_left_frame_gutter_height): ditto.
9924         (window_right_frame_gutter_height): ditto.
9925         (window_top_gutter_height): don't use them.
9926         (window_bottom_gutter_height): ditto.
9927         (window_left_gutter_width): ditto.
9928         (window_right_gutter_width): ditto.
9929         (Fsplit_window): ditto.
9930         (Fwindow_pixel_edges): don't use border dimensions here.
9931
9932         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
9933         (update_scrollbar_instance): ditto.
9934
9935         * redisplay.c (generate_modeline): don't take gutters into account.
9936         (generate_modeline): ditto.
9937         (redisplay_frame): small gutter display optimization.
9938
9939         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
9940
9941         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
9942         gutters into account.
9943
9944         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
9945         for window position and type.
9946
9947         * gutter.c (get_gutter_coords): fix for frame gutters.
9948         (update_frame_gutters): update frame geometry if the gutters have
9949         changed.
9950         (init_frame_gutters): record current gutter geometries.
9951
9952         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
9953         var.
9954         (mswindows_widget_instantiate): ditto.
9955
9956         * frame.h (struct frame): add current_gutter_bounds.
9957
9958         * frame.c (change_frame_size_1): position window and minibuffer
9959         appropriately taking into account the frame gutters.
9960
9961         * frame-x.c: (x_initialize_frame_size): take into account the
9962         frame gutters.
9963
9964 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
9965
9966         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
9967
9968 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
9969
9970         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
9971
9972 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
9973
9974         * file-coding.c (reset_decoding_stream): Clear previous
9975         detection state when autodetect.
9976
9977 2000-02-29  Didier Verna  <didier@xemacs.org>
9978
9979         * extents.c (set_extent_glyph_1): don't require extents to be
9980         attached.
9981
9982 2000-02-27  Andy Piper  <andy@xemacs.org>
9983
9984         * gutter.c (Fset_default_gutter_position): don't default left and
9985         right gutter visibility to t.
9986         (Fset_default_gutter_position): run
9987         default-gutter-position-changed-hook.
9988         (syms_of_gutter): add default-gutter-position-changed-hook.
9989
9990 2000-02-26  Andy Piper  <andy@xemacs.org>
9991
9992         * specifier.c (Fmake_specifier): add gutter references.
9993
9994         * gutter.h (RAW_WINDOW_GUTTER): new macro.
9995
9996         * lisp.h: declare Fvalid_plist_p.
9997
9998         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
9999         as changed.
10000         (default_gutter_visible_p_changed_in_window): invalidate gutter as
10001         well as its visibility so that it gets reconstructed.
10002         (construct_window_gutter_spec): new function. Construct a string
10003         to be displayed in the gutter from a plist of strings. Take care
10004         to only use elements that are declared as visible.
10005         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
10006         WINDOW_GUTTER.
10007         (gutter_validate): allow plists of strings in the specifier.
10008         (gutter_specs_changed): construct the real_gutter from the gutter
10009         specs using construct_window_gutter_spec.
10010         (gutter_visible_validate): gutter-visible is a new specifier type.
10011         (Fgutter_visible_specifier_p): new function for the new specifier.
10012         (syms_of_gutter): declare gutter-visible and
10013         Fgutter_visible_specifier_p.
10014         (specifier_type_create_gutter): intitalize new gutter-visible
10015         specifier.
10016         (reinit_specifier_type_create_gutter): ditto.
10017         (specifier_vars_of_gutter): use new specifier type for gutter
10018         visibility.
10019         (init_frame_gutters): construct real_gutter correctly.
10020         (Fgutter_specifier_p): beef up documentation.
10021         (Fgutter_size_specifier_p): ditto.
10022
10023         * winslots.h: add real_gutter slots.
10024
10025 2000-02-25  Andy Piper  <andy@xemacs.org>
10026
10027         * device-msw.c: Be kind to older cygwin versions. From Raymond
10028         Toy <toy@rtp.ericsson.se>.
10029
10030         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
10031         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
10032
10033 2000-02-25  Martin Buchholz  <martin@xemacs.org>
10034
10035         * elhash.c (MARK_OBJ): Practice macro hygiene.
10036
10037 2000-02-24  Martin Buchholz  <martin@xemacs.org>
10038
10039         * miscplay.c: s/__inline__/inline/g;
10040         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
10041         (get_device_compdc): INLINE ==> static inline
10042         * *.[ch]: Change INLINE to INLINE_HEADER globally.
10043         find -name '*.h' | \
10044         xargs global-replace \
10045         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
10046
10047 2000-02-25  Andy Piper  <andy@xemacs.org>
10048
10049         * window.c (window_top_frame_gutter_height): new function.
10050         (window_top_window_gutter_height): ditto.
10051         (window_top_gutter_height): use them.
10052         (window_bottom_frame_gutter_height): new function.
10053         (window_bottom_window_gutter_height): ditto.
10054         (window_bottom_gutter_height): use them.
10055         (window_left_window_gutter_width): new function.
10056         (window_left_frame_gutter_width): ditto.
10057         (window_left_gutter_width): use them.
10058         (window_right_window_gutter_width): new function.
10059         (window_right_frame_gutter_width): ditto.
10060         (window_right_gutter_width): use them.
10061         (window_pixel_height): new function. calulate window pixel height
10062         with frame gutter involvement.
10063         (Fsplit_window): calculate new sizes taking frame gutters into
10064         account.
10065         (window_char_height_to_pixel_height): don't include frame gutters.
10066         (window_char_height): use window_pixel_height.
10067         (window_pixheight): rename from window_pixel_height.
10068         (change_window_height): use it.
10069         (window_pixel_height_to_char_height): don't include frame gutters.
10070         (window_char_width_to_pixel_width): ditto.
10071
10072 2000-02-25  Andy Piper  <andy@xemacs.org>
10073
10074         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
10075         if it is.
10076
10077 2000-02-24  Martin Buchholz  <martin@xemacs.org>
10078
10079         * alloc.c (staticpro):
10080         (staticpro_nodump):
10081         (dumpstruct):
10082         (dumpopaque):
10083         (pdump_wire):
10084         (pdump_wire_list):
10085         (compact_string_chars):
10086         (pdump_dump_wired):
10087         Convert:  if (foo) abort();  ==>  assert (! foo);
10088
10089         * eldap.c (Fldap_search_basic):
10090         (Fldap_add):
10091         (Fldap_modify):
10092         (Fldap_delete):
10093         Fix compiler warnings, and possible crashes if (random) return
10094         value were to be used.
10095
10096 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10097
10098         * device-msw.c: Workaround ResetDC failure.
10099
10100         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
10101         applying a devmode.
10102
10103         * redisplay-msw.c (get_frame_dc): Added start_page_p.
10104         (mswindows_text_width): Do not start printer page.
10105
10106         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
10107
10108         * glyphs-msw.c: Added image methods to msprinter console and
10109         msprinter-specific image instantiation.
10110
10111 2000-02-20  Mike Alexander  <mta@arbortext.com>
10112
10113         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
10114         to avoid crashes when selection-sets-clipboard is on
10115         (mswindows_own_selection): ditto
10116
10117 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10118
10119         * glyphs-msw.c:
10120         * redisplay-msw.c (get_frame_dc):
10121         (get_frame_compdc):
10122         * console-msw.h:
10123         * device-msw.c (mswindows_init_device):
10124         (mswindows_delete_device):
10125         (msprinter_init_device):
10126         (msprinter_delete_device):
10127         * frame-msw.c (mswindows_init_frame_1):
10128         (mswindows_delete_frame):
10129         (msprinter_init_frame_3):
10130         (msprinter_delete_frame): Move compatible DC to device object from
10131         frame object, for both mswindows and msprinter. Only one at a time
10132         is needed, it is a real waste to have one per frame!
10133
10134 2000-02-23  Andy Piper  <andy@xemacs.org>
10135
10136         * glyphs.c: add dynamic width and height elements.
10137         (image_instance_equal): ditto.
10138
10139         * glyphs-widget.c (widget_query_geometry): calculate width and
10140         height dynamically if required.
10141         (initialize_widget_image_instance): initialize dynamic dimensions.
10142         (widget_instantiate): pick-up dynamic dimensions.
10143
10144         * glyphs.h (struct Lisp_Image_Instance): add width and height for
10145         dynamic determination. Add appropriate macros.
10146
10147         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
10148         dimensions safe.
10149         (WINDOW_GUTTER_SIZE): ditto.
10150         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
10151
10152         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
10153         inline.
10154         (get_frame_dc): ditto.
10155
10156         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
10157         here.
10158
10159 2000-02-23  Martin Buchholz <martin@xemacs.org>
10160
10161         * XEmacs 21.2.31 is released.
10162
10163 2000-02-22  Ben Wing <ben@xemacs.org>
10164
10165         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
10166
10167 2000-02-22  Andy Piper  <andy@xemacs.org>
10168
10169         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
10170
10171 2000-02-21  Mike Sperber <mike@xemacs.org>
10172
10173         * .dbxrc:
10174         * .gdbinit:
10175         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
10176         variables.
10177
10178 2000-02-21  Mike Sperber <mike@xemacs.org>
10179
10180         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
10181
10182 2000-02-21  Martin Buchholz <martin@xemacs.org>
10183
10184         * XEmacs 21.2.30 is released.
10185
10186 2000-02-20  Martin Buchholz  <martin@xemacs.org>
10187
10188         Performance hacking.
10189         * *.c (syms_of_*):
10190         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
10191         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
10192         * emacs.c (main_1):
10193         * lisp.h (DEFUN):
10194         * console.c (DEFVAR_CONSOLE_LOCAL_1):
10195         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
10196         * symeval.h (DEFVAR_SYMVAL_FWD):
10197         * symbols.c (guts_of_unbound_marker):
10198         Make all c_readonly objects also lisp_readonly and marked for life.
10199         * lrecord.h (struct lrecord_implementation):
10200         Document flags better.
10201         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
10202         * lrecord.h (DECLARE_LRECORD):
10203         * lrecord.h (XSETRECORD):
10204         * lrecord.h (RECORDP):
10205         * lrecord.h (RECORD_TYPEP):
10206         * lrecord.h (RECORD_MARKER): New.
10207         * lrecord.h (error_check_*):
10208         * lrecord.h (CONCHECK_NONRECORD):
10209         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
10210         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
10211         * lrecord.h (set_lheader_implementation):
10212         * lrecord.h (enum lrecord_type): New.
10213         * symeval.h (SYMBOL_VALUE_MAGIC_P):
10214         * alloc.c (disksave_object_finalization_1):
10215         * alloc.c (mark_object):
10216         * alloc.c (lrecord_type_index):
10217         * alloc.c (tick_lcrecord_stats):
10218         * alloc.c (Fgarbage_collect):
10219         * alloc.c (init_alloc_once_early):
10220         * alloc.c (pdump_load):
10221         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
10222         * alloc.c (lrecord_type_index): Delete.
10223         Make lisp object type indexes be constant.
10224           Makes (byte-compile) 5% faster.
10225         Put all marker functions into their own array.
10226           Makes (garbage-collect) 5% faster.
10227         Optimize SYMBOL_VALUE_MAGIC_P.
10228           Makes (byte-compile) 2-3% faster.
10229         * config.h.in (gc_checking_assert): New.
10230         * alloc.c: Use gc_checking_assert().
10231         * .dbxrc: Make compatible with new object type implementation.
10232         * .gdbinit: Make compatible with new object type implementation.
10233         * alloc.c: Delete all symbols defined only for debugging, such as
10234         Lisp_Type_Vector and lrecord_charset.
10235
10236 2000-02-21  Andy Piper  <andy@xemacs.org>
10237
10238         * gui-msw.c (Fmswindows_shell_execute): fix file location
10239         problems.
10240
10241         * buffer.c (Fkill_buffer): remove buffer from alist buffer
10242         unshowing so that set_window_buffer doesn't undo
10243         kill_buffer_hook's hard work.
10244
10245         * glyphs-widget.c (tab_control_query_geometry): don't count the
10246         first item when calculating geometry.
10247
10248         * glyphs.c (map_subwindow): remove redundant code.
10249         (update_frame_subwindows): be more circumspect about when to
10250         update subwindows.
10251
10252         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
10253         when items haven't changed. Update faces if faces have changed as
10254         well as just the widget face.
10255         (x_tab_control_update): Update faces if faces have changed as well
10256         as just the widget face.
10257
10258 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10259
10260         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
10261         registration.
10262         (build_syscolor_string): Use mswindows_color_to_string to try to
10263         get a named color.
10264         (mswindows_device_system_metrics): Reverse the foreground and
10265         background colors so that they match the documentation.
10266
10267         * objects-msw.c: (mswindows_X_color_map): tweak some values so
10268         they match the default Windows palette.
10269         (mswindows_color_to_string): New function.
10270
10271 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10272
10273         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
10274
10275 2000-02-18  Olivier Galibert  <galibert@pobox.com>
10276
10277         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
10278         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
10279
10280         * symbols.c (init_symbols_once_early): Removed obsolete
10281         DATA_SEG_BITS related kludge.
10282         (defvar_magic): Ditto.
10283
10284         * malloc.c: Removed obsolete DATA_SEG_BITS
10285         * ralloc.c: Ditto.
10286         * mem-limits.h: Ditto.
10287
10288         * Makefile.in.in: Removed obsolete HAVE_SHM
10289         * emacs.c: Ditto.
10290
10291 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10292
10293         *  device-msw.c (mswindows_delete_device): Free DDE string
10294         handles.
10295
10296 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10297
10298         * keymap.c (get_keyelt):
10299         * unexnt.c (unexec):
10300         * vm-limit.c (memory_warnings):
10301         * ntheap.c (recreate_heap):
10302         * ntheap.h (UNINIT_PTR):
10303         * select-msw.c (Fmswindows_get_clipboard):
10304         (Fmswindows_set_clipboard):
10305         * objects-msw.h (MSWINDOWS_BAD_HFONT):
10306         * objects-msw.c:
10307         * menubar-msw.c (displayable_menu_item):
10308         * glyphs-msw.c:
10309         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
10310         * sysdep.c (sys_subshell):
10311         * process-nt.c (nt_create_process):
10312         * nt.c (normalize_filename):
10313         (dostounix_filename):
10314         (unixtodos_filename):
10315         * ntproc.c (win32_executable_type):
10316         * ntplay.c (play_sound_data_1):
10317         (play_sound_file):
10318         * editfns.c (get_home_directory):
10319         * event-msw.c (struct winsock_stream):
10320         (mswindows_dde_callback):
10321         * device-msw.c (msprinter_init_device):
10322         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
10323
10324         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
10325         mswindows_clear_toolbar were swapped!
10326
10327         * objects-msw.c:(colormap_t):
10328         (fontmap_t):
10329         * emacs.c (struct standard_args): Fixed const jumble.
10330
10331         * glyphs-widget.c (update_widget): Fixed comparison notation.
10332
10333         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
10334
10335         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
10336         __declspec(noreturn) syntax.
10337
10338 2000-02-19  Martin Buchholz  <martin@xemacs.org>
10339
10340         * eldap.c (Fldap_open):
10341         (Fldap_search_basic):
10342         (Fldap_add):
10343         (Fldap_modify):
10344         Use new coding system conversion macros.
10345
10346 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
10347
10348         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
10349
10350 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
10351
10352         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
10353         (Fldap_add, Fldap_modify, Fldap_delete): New functions
10354
10355         * eldap.c (Qadd, Qreplace): New constant symbols
10356         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
10357         interruptions by XEmacs signals
10358         Remove unnecessary calls to slow_down_interrupts and
10359         speed_up_interrupts
10360         (Fldap_search_basic): Renamed from Fldap_search_internal
10361         Added new optional parameter VERBOSE that triggers the
10362         display of progress messages
10363         Remove unnecessary calls to slow_down_interrupts and
10364         speed_up_interrupts
10365         LDAP result code analysis rewritten
10366         (Fldap_add, Fldap_modify, Fldap_delete): New functions
10367         (syms_of_eldap): Define the new symbols and functions
10368
10369
10370 2000-02-17  Martin Buchholz  <martin@xemacs.org>
10371
10372         * realpath.c: Determine PATH_MAX maximally portably.
10373
10374         * insdel.c (bytecount_to_charcount): Optimize.
10375         The function used to be optimized for entirely ASCII sequences.
10376         Now it is optimized for successive characters from the same
10377         charset.  This also wins big for _mostly_ ASCII sequences.
10378
10379         * fileio.c (Ffile_truename): convert return from realpath() using
10380         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
10381         - Rewrite GCPROing slightly.
10382
10383         * sysdep.c (sys_open): Do filename conversion, like all other
10384         sys_* functions.  Fixes bug:
10385         (let ((file-name-coding-system 'iso-8859-2))
10386            (write-region x y latin2-name))
10387         ==> writes filename using internal encoding.
10388
10389 2000-02-18  Martin Buchholz  <martin@xemacs.org>
10390
10391         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
10392         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
10393         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
10394         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
10395         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
10396         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
10397         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
10398         (CONST_IF_NOT_DEBUG): Delete.
10399         * alloc.c (this_one_is_unmarkable): Delete.
10400         (mark_object): Don't check for this_one_is_unmarkable. Use the
10401         c_readonly flag instead.
10402         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
10403
10404 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10405
10406         * event-msw.c (mswindows_drain_windows_queue):
10407         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
10408         away redundant repaint events.
10409
10410 2000-02-17  Andy Piper  <andy@xemacs.org>
10411
10412         * redisplay.h: declare mark_redisplay_structs.
10413
10414         * redisplay.c (redisplay_window):
10415         (redisplay_frame): don't check subwindows_state_changed.
10416         (mark_redisplay): mark gutters here.
10417
10418         * glyphs.c: (instantiate_image_instantiator): always layout if we
10419         haven't done so already.
10420         (allocate_image_instance): don't mark as dirty.
10421         (update_subwindow): bind inhibit_quit.
10422
10423         * gutter.c (mark_gutters): new function.
10424
10425         * glyphs-x.c (x_update_widget): Always resize to get round a
10426         widget bug.
10427
10428         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
10429         breaking absolutely everything.
10430
10431         * gutter.h: declare mark_gutters.
10432
10433 2000-02-16  Martin Buchholz <martin@xemacs.org>
10434
10435         * XEmacs 21.2.29 is released.
10436
10437 2000-02-15  Olivier Galibert  <galibert@pobox.com>
10438
10439         * fns.c (size_bit_vector): Fix computation of the size.
10440
10441 2000-02-15  Martin Buchholz  <martin@xemacs.org>
10442
10443         * *.[ch]: Change CONST to const globally.
10444         find -name '*.[ch]' | \
10445         xargs global-replace \
10446         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
10447         - Remove vestigial references to CONST_IS_LOSING
10448
10449 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10450
10451         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
10452         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
10453         events instead of dispatching them directly.
10454         (mswindows_handle_paint): New function to do repainting.
10455         (mswindows_wnd_proc):
10456         (emacs_mswindows_handle_magic_event): Call above function.
10457
10458 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10459
10460         * objects-msw.c (mswindows_create_font_variant): Return the new
10461         font handle.
10462         (initialize_font_instance): Get font metrics from the underlined
10463         variant of the font to cope with the case where the underlined
10464         font has a bigger descent.
10465
10466 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
10467
10468         * gui.c (gui_item_accelerator): Return the first underlined
10469         character in item name.
10470
10471 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10472
10473         * lisp.h: Added Qprinter.
10474
10475         * general.c (syms_of_general): Initialized it.
10476
10477         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
10478         (get_frame_dc):
10479         (get_frame_compdc): Made inline.
10480
10481         * console.h (struct console_methods): Added eject_page method.
10482
10483         * frame.h: Added FRAME_DISPLAY_P and friends.
10484         Aligned backslahes in many macros in more readable fashion.
10485         Added page_number to struct frame, and an accessor macro
10486         for it.
10487
10488         * defice.h: Added DEVICE_DISPLAY_P and friends.
10489
10490         * device.c (Fdevice_printer_p): Used these.
10491
10492         * frame.c (allocate_frame_core): Initialize page number.
10493         (Fprint_job_page_number):
10494         (Fprint_job_eject_page): Implemented.
10495
10496         * frame-msw.c (msprinter_eject_page): Added method.
10497         (msprinter_start_page): Added.
10498
10499         * window.c (Fwindow_truncated_p): Fixed docstring.
10500         (Fwindow_last_line_visible_height): Implemented.
10501
10502 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10503
10504         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
10505
10506 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
10507
10508         * syntax.c (scan_words): Always advance at least one character.
10509
10510 2000-02-13  Andy Piper  <andy@xemacs.org>
10511
10512         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
10513         to make sure the glyph is in the cachels.
10514
10515         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
10516         global image instance flag.
10517         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
10518         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
10519
10520         * glyphs.c (allocate_image_instance): set dirty bits correctly.
10521         (Fset_image_instance_property): mark layout as changed.
10522         (invalidate_glyph_geometry_maybe): mark layout as changed.
10523         (glyph_width): use new NEEDS_LAYOUT macro.
10524         (glyph_ascent): ditto.
10525         (glyph_descent): ditto.
10526         (glyph_height): ditto.
10527         (image_instance_layout): mark layout as clean after laying out.
10528         (update_subwindow): don't mark layout as clean here.
10529
10530         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
10531         should no longer be needed.
10532
10533         * glyphs-x.c (x_update_widget): sanitize asserts.
10534         (x_finalize_image_instance): sanitize assignment to widgets.
10535
10536         * glyphs-widget.c (widget_instantiate): don't need to clear the
10537         layout flag here.
10538
10539 2000-02-13  Martin Buchholz  <martin@xemacs.org>
10540
10541         * sysdep.c (getcwd): Use standard prototype.
10542         * sysdep.h (getcwd): Use standard prototype.
10543
10544         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
10545         (sequence, start, end).
10546         Remove redundant type checking.
10547         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
10548         view of `caller-protects') to avoid a crash where the real fix was
10549         found elsewhere.
10550
10551 2000-02-12  Martin Buchholz  <martin@xemacs.org>
10552
10553         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
10554
10555         * s/sol2.h: Remove feature macro initialization.
10556
10557         * alloc.c (alloc_lcrecord): Add more type checking assertions.
10558         (vector_hash): New.  Code from internal_hash.
10559         * lrecord.h:
10560         Fix up allocation subsystem comments.
10561
10562         * config.h.in: Add __EXTENSIONS__ for Solaris.
10563
10564         * systime.h (EMACS_GETTIMEOFDAY): New.
10565         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
10566         Remove Solaris-specific code.
10567         Use void* for the (ignored) second arg for gettimeofday().
10568
10569         * elhash.c (hash_table_hash): Implement it, finally.
10570         * elhash.c:  Use hashcode_t.
10571
10572         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
10573         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
10574
10575         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
10576         * fns.c (size_bit_vector):
10577         * alloc.c (size_vector):
10578         (make_vector_internal):
10579         (make_bit_vector_internal):
10580         (sweep_bit_vectors_1):
10581         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
10582
10583 2000-02-10  Martin Buchholz  <martin@xemacs.org>
10584
10585         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
10586         Include strings.h to avoid warnings for bzero and strcasecmp.
10587
10588 2000-02-10  Olivier Galibert  <galibert@pobox.com>
10589
10590         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
10591         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
10592
10593         * fns.c (size_bit_vector): New.  Declare bit vectors as a
10594         sequence.
10595
10596 2000-02-10  Olivier Galibert  <galibert@pobox.com>
10597
10598         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
10599         use a value field instead.
10600         (symbol_value_forward_forward): Use value field.
10601         (DEFVAR_SYMVAL_FWD): Use value field.
10602         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
10603         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
10604         (DEFVAR_CONST_INT): Ditto.
10605         (DEFVAR_BOOL): Ditto.
10606         (DEFVAR_CONST_BOOL): Ditto.
10607         (DEFVAR_INT_MAGIC): Ditto.
10608         (DEFVAR_BOOL_MAGIC): Ditto.
10609
10610         * symbols.c (guts_of_unbound_marker): Use value field.
10611         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
10612         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
10613
10614         * lisp.h: Declare dumpopaque and noninteractive1.
10615
10616         * alloc.c (dumpopaque): Added.
10617         (pdump_dump_opaquevec): Added.
10618         (pdump): Call pdump_dump_opaquevec to dump opaque data.
10619         (pdump_load): Reload opaque data.  Sync noninteractive1 with
10620         noninteractive.
10621
10622 2000-02-10  Andy Piper  <andy@xemacs.org>
10623
10624         * glyphs.c (image_instance_layout): if the size changes, mark it
10625         as such.
10626
10627         * redisplay-output.c (redisplay_output_layout): Update the
10628         subwindow here.
10629         (redisplay_output_subwindow): ditto.
10630
10631         * glyphs.c (update_subwindow): make sure we reset flags for
10632         layouts as well as everything else.
10633
10634         * glyphs-widget.c (layout_layout): don't need to set the instances
10635         dimensions here.
10636
10637 2000-02-09  Martin Buchholz  <martin@xemacs.org>
10638
10639         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
10640         not HAVE_DLOPEN, which is a lower-level thing.
10641
10642         * .cvsignore: Ignore gmon.out
10643
10644 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
10645
10646         * .cvsignore: Ignore portable dumper xemacs.dmp file
10647
10648 2000-02-09  Andy Piper  <andy@xemacs.org>
10649
10650         * redisplay-output.c (redisplay_output_layout): be more clever
10651         about when we output based on the changed flags.
10652
10653         * glyphs.h (struct image_instantiator_methods): add update_method.
10654         (struct Lisp_Image_Instance): add changed flags. Declare new
10655         macros for manipulating them.
10656
10657         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
10658         (image_instance_parent_glyph): find an image_instance's parent
10659         glyph or image_instance.
10660         (image_instance_layout): mark the size as changed.
10661         (set_image_instance_dirty_p): new function. mark an image
10662         instance, plus all of its parents, as dirty.
10663         (Fset_image_instance_property): use it.
10664         (Fglyph_animated_timeout_handler): use it.
10665         (update_subwindow): call update_widget and device methods for
10666         update_subwindow. Mark all changed flags as clean.
10667         (Fresize_subwindow): mark size as changed.
10668
10669         * glyphs-x.c (x_finalize_image_instance): try and detect gc
10670         failures.
10671         (x_update_subwindow): only resize subwindows here.
10672         (x_update_widget): new function. Update all changed properties of
10673         a widget.
10674         (x_resize_subwindow): deleted.
10675         (x_widget_set_property): deleted.
10676         (x_progress_gauge_set_property): deleted.
10677         (x_progress_gauge_update): new function. Implement recorded
10678         changes.
10679         (x_tab_control_update): ditto.
10680         (x_tab_control_set_property): deleted.
10681         (console_type_create_glyphs_x): declare new functions.
10682         (image_instantiator_format_create_glyphs_x): ditto.
10683
10684         * glyphs-widget.c (widget_set_property): mark text changed.
10685         (update_widget): new function. Update properties of a widget.
10686         (widget_instantiate): for layouts make sure we set their
10687         children's parent correctly.
10688         (tab_control_set_property): new function. Record changes that will
10689         take place under redisplay's control.
10690         (progress_gauge_set_property): ditto.
10691         (image_instantiator_progress_guage): declare new functions.
10692         (image_instantiator_tab_control): ditto.
10693
10694         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
10695         now.
10696         (mswindows_update_widget): new function. Update all properties on
10697         a widget that have changed.
10698         (mswindows_button_update): new function. Update a button's set
10699         state.
10700         (mswindows_tab_control_update): new function. Update the items in
10701         a tab.
10702         (mswindows_tab_control_set_property): deleted.
10703         (mswindows_progress_gauge_update): new function. Update the
10704         progress gauge's progress.
10705         (mswindows_widget_set_property): deleted. This is all done
10706         asynchronously now.
10707         (mswindows_progress_gauge_set_property): ditto.
10708         (console_type_create_glyphs_mswindows): declare new methods.
10709         (image_instantiator_format_create_glyphs_mswindows): ditto.
10710
10711         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
10712         (msprinter_set_frame_properties): ditto.
10713
10714         * console.h (struct console_methods): Add update_widget_method.
10715
10716 2000-02-09  Andy Piper  <andy@xemacs.org>
10717
10718         * gui-msw.c (Fmswindows_shell_execute): Make
10719         mswindows-shell-execute industrial strength.
10720
10721 2000-02-08  Martin Buchholz  <martin@xemacs.org>
10722
10723         * lrecord.h: Make macro argument `props' match member function `plist'.
10724         * fns.c (Fget):
10725         * fns.c (Fput):
10726         * fns.c (Fremprop):
10727         * fns.c (Fobject_plist):
10728         * alloc.c:
10729         * symbols.c:
10730         Object property list frobbing cleanup.
10731         - Allow any lisp object (compared with `eq'), not just symbols, as
10732           keys in object plists.
10733         - Move symbol plist frobbing into symbols.c, where it belongs.
10734         - Move string plist frobbing into alloc.c, where it belongs.
10735         - Everything's an lrecord now, so no need to test for symbolp, etc.
10736         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
10737
10738         * extents.c: Reorder code to remove declarations.
10739
10740         * frame.h (store_in_alist): Remove useless declaration.
10741
10742 2000-02-07  Martin Buchholz  <martin@xemacs.org>
10743
10744         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
10745         * config.h.in: Add HAVE_XCONVERTCASE.
10746
10747 2000-02-07  Andy Piper  <andy@xemacs.org>
10748
10749         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
10750         it breaks many things.
10751
10752 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
10753
10754         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
10755         actually can start a common comment type.
10756         * src/syntax.h (SYNTAX_END_P): ditto for end.
10757
10758 2000-02-07  Martin Buchholz <martin@xemacs.org>
10759
10760         * XEmacs 21.2.28 is released.
10761
10762 2000-02-06  Martin Buchholz  <martin@xemacs.org>
10763
10764         * event-Xt.c (x_keysym_to_character): New.
10765         (maybe_define_x_key_as_self_inserting_character): New.
10766         (x_has_keysym): New.
10767         Auto-define all keys on the keyboard as self-insert-key.
10768
10769 2000-02-02  Martin Buchholz  <martin@xemacs.org>
10770
10771         * menubar.c (vars_of_menubar): A small code simplification.
10772
10773         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
10774
10775         * ExternalShell.c:
10776         * ExternalClient.c:
10777         * EmacsShell-sub.c:
10778         * EmacsManager.c:
10779         * EmacsFrame.c:
10780         Use consistent style for specifying X resources.
10781
10782         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
10783         This makes (dontusethis-set-symbol-value-handler) actually usable.
10784
10785         * lrecord.h (lrecord_decription_type):
10786         * alloc.c (pdump_register_sub):
10787         (pdump_dump_data):
10788         (pdump_reloc_one):
10789         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
10790         Comply with XEmacs coding style.
10791         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
10792         args, and XD_LISP_OBJECT_ARRAY with 3 args.
10793
10794         * keymap.c (Faccessible_keymaps):
10795         Make (accessible-keymaps map "\C-h") do the Right Thing.
10796         Make (accessible-keymaps map []) do the Right Thing.
10797         Make (accessible-keymaps map "") do the Right Thing.
10798         (check_keymap_definition_loop): New function.
10799         (keymap_store_internal): Keep luser from shooting self in foot,
10800           via (define-key ctl-x-4-map "p" global-map).
10801         Remove fullness slot from struct Lisp_Keymap, since hash tables
10802         are now reliable.
10803         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
10804
10805 2000-01-30  Martin Buchholz  <martin@xemacs.org>
10806
10807         * redisplay.c (init_redisplay): Fix small memory leak.
10808         * elhash.h:
10809         * elhash.c (pdump_reorganize_hash_table):
10810         Rename from reorganize_hash_table. Change prototype.
10811         Reuse the original memory for hentries.  Save 100k.
10812         * alloc.c (PDUMP_READ): new macro.
10813         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
10814         * alloc.c: No need to #ifndef before #undef.
10815
10816         * print.c: Allow debug_print() to print readably by modifying
10817         debug_print_readably.  Use consistent variable names.
10818
10819         * .dbxrc: Try to get things to work even if stopped in a function
10820         without source available by explicitly specifying source files.
10821 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10822
10823         * unexnt.c (_start): Removed bogus code which caused loading heap
10824         from differrent executable file.
10825         Removed bogus assignment to _fmode, which caused inconsistencies.
10826
10827 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10828
10829         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
10830         Have spawnve encapsulation regard DONT_ENCAPSULATE.
10831         Do not preliminary `#define signal sigset'.
10832
10833         * systime.h: Do not prototype environ on windows nt and cygwin,
10834         this conflicts with system header.
10835
10836         * syssignal.h: Use correct define for WINDOWSNT
10837
10838         * sysdep.h: Do not prototype environ on windows nt, this conflicts
10839         with system header.
10840
10841         * sysdep.c (near start of file): Fixed commentary and rearranged
10842         ifdefs in readable order.
10843         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
10844         (start_of_text):
10845         (end_of_text):
10846         (end_of_data): Do not compile in if using PDUMP.
10847
10848         * symsinit.h: Prototyped vars_of_nt().
10849
10850         * ntproc.c (windows9x_p): Added, instead of os_subtype.
10851         (find_child_console): Use it.
10852         (sys_kill): Use it.
10853
10854         * ntheap.h: Do not extern os_subtype.
10855
10856         * ntheap.c (cache_system_info): Do not cache unneeded:
10857         nt_major_version, nt_minor_version and os_subtype.
10858         (recreate_heap): Do not compile in when PDUMPing.
10859
10860         * nt.c (geteuid and friends): Use the new varibale
10861         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
10862         (init_user_info): Removed the above mentioned hackery.
10863         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
10864         stat has been fixed in the C runtime.
10865         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
10866
10867         * file-coding.c (struct file_coding_dump): Do not define
10868         ucs_to_mule_table in the struct if not MULE.
10869         (struct struct lrecord_description fcd_description_1): Do not dump
10870         the above.
10871
10872         * emacs.c (main_1): Call vars_of_nt().
10873         (right before Fdump_emacs_data): Don't need lastfile if using both
10874         portabe dumper and system malloc.
10875
10876         * alloc.c (Fmemory_limit): Conditionalized out.
10877         (pdump): Use OPEN_BINARY for the portable dump file.
10878         (pdump_load): Ditto.
10879
10880 2000-02-02  Mike Alexander  <mta@arbortext.com>
10881
10882         * nt.c (convert_time): Set tm_isdst before calling mktime and
10883         avoid calling it at all if the compiler supports 64 bit integers.
10884         Also initialize utc_base_ft before using it.
10885
10886 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
10887
10888         * frame.c (change_frame_size_1): Take f->internal_border_width
10889         into consideration when calculating the width of the frame.
10890
10891 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10892
10893         * window.c (frame_min_height):
10894         (frame_size_valid_p):
10895         (frame_pixsize_valid_p): Added.
10896         (check_frame_size): Generalized.
10897
10898         * window.h: Prototyped the above.
10899
10900         * lisp.h:
10901         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
10902         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
10903         Deleted Vwin32_* and Vbinary_process_* unused variables.
10904
10905         * device-msw.c (msprinter_init_device): Do not get printer font
10906         list; Added DEVMODE functions.
10907
10908         * frame-msw.c: Added lots of printer code.
10909
10910         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
10911         general.c.
10912
10913         * console-msw.h: Added more msprinter device private slots.
10914
10915 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10916
10917         * event-msw.c (key_needs_default_processing_p): Added.
10918         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
10919
10920 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10921
10922         * glyphs.c (image_instance_layout): Mark image instance as clean
10923         after layout.
10924         (glyph_dirty_p): Removed redundant function.
10925         (invalidate_glyph_geometry_maybe): Added.
10926         (update_glyph_cachel_data): Call it.
10927
10928         * glyphs.h: Prototyped it.
10929
10930         * redisplay.c (add_glyph_rune): Call it.
10931         (redisplay_window): Reset glyphs cachels when frame faces have
10932         changed, thus forcing recomputation of built-in border glyphs.
10933
10934 2000-01-30  Martin Buchholz  <martin@xemacs.org>
10935
10936         * Makefile.in.in: Make portable dumper and purify play well together.
10937         Add imperfect, but better than nothing, support for pdump.
10938         Remove xemacs.dmp when temacs is re-generated.
10939         Don't ignore errors when dumping xemacs.
10940
10941         * symbols.c (maybe_call_magic_handler): Remove one magic number.
10942
10943 2000-01-28  Andy Piper  <andy@xemacs.org>
10944
10945         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
10946         (setup_normal_frame): ditto.
10947         (setup_frame_without_minibuffer): ditto.
10948         (setup_minibuffer_frame): ditto.
10949         (delete_frame_internal): ditto.
10950         (Fmake_frame_invisible): ditto.
10951         (Ficonify_frame): ditto.
10952
10953         * window.h: change Fset_window_buffer signature.
10954
10955         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
10956         (Fset_window_buffer): allow recording of buffer if the window is
10957         the selected window.
10958         (window_loop): Use new Fset_window signature.
10959
10960 2000-01-23  Daniel Pittman  <daniel@danann.net>
10961
10962         * config.h.in: Added template for `HAVE_ATHENA_3D'
10963
10964 2000-01-29  Andy Piper  <andy@xemacs.org>
10965
10966         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
10967
10968         * gutter.c (output_gutter): Don't output if the window isn't live.
10969
10970 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10971
10972         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
10973         of 01/12/00: Moved SetFocus back here where it belongs.
10974
10975 2000-01-23  Andy Piper  <andy@xemacs.org>
10976
10977         * s/cygwin32.h: declare printer things.
10978
10979 2000-01-26  Andy Piper  <andy@xemacs.org>
10980
10981         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
10982         Alexander.
10983
10984 2000-01-24  Andy Piper  <andy@xemacs.org>
10985
10986         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
10987         (mswindows_button_instantiate): Make sure glyph is a pixmap.
10988
10989         * glyphs-widget.c (widget_instantiate): Avoid shadows.
10990
10991         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
10992
10993         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
10994
10995         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
10996         (mswindows_output_display_block): Avoid local shadows.
10997
10998         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
10999         (mswindows_enqueue_mouse_button_event): ditto.
11000         (mswindows_handle_gui_wm_command): remove declaration.
11001
11002         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
11003         warnings.
11004
11005         * console-msw.h: Avoid shadows.
11006         (mswindows_get_toolbar_button_text):
11007         (emacs_mswindows_create_stream_pair):
11008         (emacs_mswindows_delete_stream_pair):
11009         (mswindows_handle_toolbar_wm_command): declare.
11010
11011         * device-msw.c (build_syscolor_string): Avoid shadows.
11012
11013 2000-01-23  Andy Piper  <andy@xemacs.org>
11014
11015         * glyphs-widget.c (widget_instantiate): reverse the items for
11016         layouts so that children are in the expected order.
11017
11018 2000-01-28  Martin Buchholz  <martin@xemacs.org>
11019
11020         * ralloc.c: safe_bcopy ==> memmove
11021         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
11022         * s/msdos.h: Remove BCOPY macros.
11023         * insdel.c (gap_right): Remove BCOPY conditional code.
11024         * insdel.c (gap_left): Remove BCOPY conditional code.
11025         XEmacs demands a working ANSI C compiler - hence memmove.
11026
11027         * regex.c (regex_compile): Remove accidental use of trigraphs.
11028
11029 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11030
11031         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
11032         event timestamp.
11033
11034 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11035
11036         * event-msw.c (mswindows_drain_windows_queue): Added the
11037         parameter.
11038         (mswindows_need_event): Commented the call to
11039         mswindows_drain_windows_queue().
11040         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
11041         only.
11042
11043         * console-msw.h: Moved a few function prototypes here from
11044         event-msw.c.
11045
11046         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
11047         parameter from unsigned short to unsigned long.
11048         (Fmswindows_shell_execute): Added return value.
11049
11050 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
11051
11052         * sysdep.c (init_system_name):
11053           process-unix.c (unix_canonicalized_host_name):
11054         Don't call freeaddrinfo() if getaddrinfo() fails.
11055
11056         * process-unix.c (unix_open_unix_network_stream):
11057         Moved the code to get a port # into address loop.
11058
11059 2000-01-27  Martin Buchholz  <martin@xemacs.org>
11060
11061         * buffer.c (reinit_vars_of_buffer):
11062         The right place to initialize conversion_in_dynarr and
11063         conversion_out_dynarr.
11064
11065         * alloc.c (pdump): Use the real open() till sys_open() is functional.
11066
11067         * process-unix.c (unix_canonicalize_host_name): Muleize.
11068         (unix_open_network_stream): Muleize.
11069
11070         * buffer.h: Fix up prototypes for ralloc.c functions.
11071
11072 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
11073         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
11074         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
11075                 instead of gethostbyname()
11076         * process-unix.c: In unix_canonicalize_host_name() and
11077                 unix_open_network_stream(), add code to use getaddrinfo()
11078                 instead of gethostbyname().
11079
11080 2000-01-27  Daniel Pittman <daniel@danann.net>
11081
11082         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
11083         libs when built with flat Athena.
11084
11085 2000-01-27  Martin Buchholz  <martin@xemacs.org>
11086
11087         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
11088         Use coding standards for function prototypes.
11089
11090 2000-01-25  Martin Buchholz  <martin@xemacs.org>
11091
11092         * dialog-msw.c (push_lisp_string_as_unicode):
11093         * doc.c (unparesseuxify_doc_string):
11094         * dired.c (Fuser_name_completion_1):
11095         * dired.c (Fuser_name_all_completions):
11096         * dired.c (free_user_cache):
11097         * dired.c (user_name_completion):
11098         * console-x.c (get_display_arg_connection):
11099         * minibuf.c (clear_echo_area_internal):
11100         * minibuf.c (echo_area_append):
11101         * eldap.c (Fldap_open):
11102         * eldap.c (Fldap_search_internal):
11103         * frame-x.c (x_set_frame_text_value):
11104         * frame-x.c (x_set_frame_properties):
11105         * frame-x.c (x_create_widgets):
11106         * redisplay-tty.c (term_get_fkeys_1):
11107         * objects-x.c (x_parse_nearest_color):
11108         * objects-x.c (x_valid_color_name_p):
11109         * objects-x.c (x_initialize_font_instance):
11110         * objects-x.c (x_list_fonts):
11111         * objects-x.c (x_find_charset_font):
11112         * tooltalk.c (Fadd_tooltalk_message_arg):
11113         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
11114         * tooltalk.c (Fadd_tooltalk_pattern_arg):
11115         * process-unix.c (unix_create_process):
11116         * ntproc.c (sys_spawnve):
11117         * sound.c (Fplay_sound_file):
11118         * sound.c (Fplay_sound):
11119         * buffer.c (init_initial_directory):
11120         * buffer.c (init_buffer):
11121         * editfns.c (init_editfns):
11122         * editfns.c (Ftemp_directory):
11123         * editfns.c (Fuser_full_name):
11124         * editfns.c (uncache_home_directory):
11125         * editfns.c (get_home_directory):
11126         * editfns.c (Fuser_home_directory):
11127         * editfns.c (Fformat_time_string):
11128         * editfns.c (Fcurrent_time_string):
11129         * gui-x.c (button_item_to_widget_value):
11130         * database.c (Fopen_database):
11131         * event-Xt.c (x_to_emacs_keysym):
11132         * event-Xt.c (x_event_to_emacs_event):
11133         * event-Xt.c (describe_event_window):
11134         * event-msw.c (mswindows_wnd_proc):
11135         * glyphs-eimage.c (jpeg_instantiate):
11136         * glyphs-eimage.c (gif_instantiate):
11137         * glyphs-eimage.c (png_instantiate):
11138         * glyphs-eimage.c (tiff_instantiate):
11139         * glyphs-x.c (xbm_instantiate_1):
11140         * glyphs-x.c (x_xbm_instantiate):
11141         * glyphs-x.c (x_xface_instantiate):
11142         * glyphs-x.c (autodetect_instantiate):
11143         * glyphs-x.c (cursor_font_instantiate):
11144         * glyphs-x.c (x_widget_instantiate):
11145         * glyphs-x.c (x_widget_set_property):
11146         * glyphs-x.c (x_widget_property):
11147         * glyphs-x.c (BUILD_GLYPH_INST):
11148         * print.c (write_string_to_stdio_stream):
11149         * print.c (output_string):
11150         * print.c (Falternate_debugging_output):
11151         * print.c (Fexternal_debugging_output):
11152         * glyphs-msw.c (extract_xpm_color_names):
11153         * glyphs-msw.c (mswindows_xpm_instantiate):
11154         * glyphs-msw.c (bmp_instantiate):
11155         * glyphs-msw.c (resource_name_to_resource):
11156         * glyphs-msw.c (mswindows_resource_instantiate):
11157         * glyphs-msw.c (xbm_instantiate_1):
11158         * glyphs-msw.c (mswindows_xbm_instantiate):
11159         * glyphs-msw.c (mswindows_xface_instantiate):
11160         * glyphs-msw.c (mswindows_widget_instantiate):
11161         * glyphs-msw.c (add_tree_item):
11162         * glyphs-msw.c (add_tab_item):
11163         * glyphs-msw.c (mswindows_combo_box_instantiate):
11164         * glyphs-msw.c (mswindows_widget_property):
11165         * glyphs-msw.c (mswindows_combo_box_property):
11166         * glyphs-msw.c (mswindows_widget_set_property):
11167         * console.c (stuff_buffered_input):
11168         * objects-msw.c (mswindows_initialize_color_instance):
11169         * objects-msw.c (mswindows_valid_color_name_p):
11170         * objects-msw.c (mswindows_list_fonts):
11171         * objects-msw.c (mswindows_font_instance_truename):
11172         * bytecode.c (optimize_compiled_function):
11173         * select-x.c (symbol_to_x_atom):
11174         * select-x.c (x_atom_to_symbol):
11175         * select-x.c (hack_motif_clipboard_selection):
11176         * select-x.c (selection_data_to_lisp_data):
11177         * select-x.c (lisp_data_to_selection_data):
11178         * select-x.c (Fx_get_cutbuffer_internal):
11179         * select-x.c (Fx_store_cutbuffer_internal):
11180         * buffer.h (TO_EXTERNAL_FORMAT): New function.
11181         * buffer.h (TO_INTERNAL_FORMAT): New function.
11182         * emacs.c (make_arg_list_1):
11183         * emacs.c (make_argc_argv):
11184         * emacs.c (main_1):
11185         * emacs.c (Fdump_emacs):
11186         * emacs.c (split_string_by_emchar_1):
11187         * file-coding.h:
11188         * lisp.h:
11189         * lstream.h:
11190         * symsinit.h:
11191         * device-x.c (x_init_device):
11192         * device-x.c (Fx_valid_keysym_name_p):
11193         * device-x.c (Fx_get_font_path):
11194         * device-x.c (Fx_set_font_path):
11195         * glyphs.c (bitmap_to_lisp_data):
11196         * glyphs.c (pixmap_to_lisp_data):
11197         * alloc.c (make_ext_string): Use coding system arguments.  Update
11198         all callers.
11199         * alloc.c (build_string):
11200         * callproc.c (child_setup):
11201         * callproc.c (init_callproc):
11202         * fileio.c (lisp_strerror):
11203         * fileio.c (directory_file_name):
11204         * fileio.c (Fexpand_file_name):
11205         * fileio.c (Ffile_truename):
11206         * fileio.c (Fsysnetunam):
11207         * fileio.c (Fdo_auto_save):
11208         * sysdep.c (sys_readdir):
11209         * tests.c: New file.  Allow adding C tests.
11210         Replace GET_* macros with a more comprehensible and flexible
11211         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
11212         Modify all calls.
11213         Any coding system can be used to do format conversion.
11214         Eliminate enum external_data_format.
11215         Eliminate convert_to_external_format.
11216         Eliminate convert_to_internal_format.
11217         Make sure file-name, keyboard, terminal, and ctext are always
11218         defined as coding systems or aliases.  Make
11219         file-name-coding-system, terminal-coding-system, and
11220         keyboard-coding-system magical variables that are equivalent to
11221         defining the corresponding coding system aliases.
11222
11223         * file-coding.c (Fcoding_system_canonical_name_p): New function.
11224         * file-coding.c (Fcoding_system_alias_p): New function.
11225         * file-coding.c (Fcoding_system_aliasee): New function.
11226         * file-coding.c (append_suffix_to_symbol): New function.
11227         * file-coding.c (dangling_coding_system_alias_p): New function.
11228         * file-coding.c (Ffind_coding_system):
11229         * file-coding.c (Fcopy_coding_system):
11230         * file-coding.c (encode_coding_no_conversion):
11231         * file-coding.c (syms_of_file_coding):
11232         * file-coding.c (vars_of_file_coding):
11233         Rewrite coding system alias code.
11234         Allow nested aliases, like symbolic links.
11235         Allow redefinition of coding system aliases.
11236         Prevent existence of dangling coding system aliases.
11237
11238         * dired.c (Fuser_name_completion_1):
11239         * dired.c (Fuser_name_all_completions):
11240         A crash would happen if user did QUIT in the middle of building
11241         user_name_cache.  Remove redundant code in mainline and unwind_protect.
11242
11243         * lisp.h:
11244         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
11245
11246         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
11247         an unsigned char *.  Update all callers.
11248
11249 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11250
11251         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
11252
11253 2000-01-25  Martin Buchholz  <martin@xemacs.org>
11254
11255         * elhash.c (hentry_description): Use more portable definition.
11256         (resize_hash_table): Initialize new hentries using
11257         xnew_array_and_zero, thereby simplifying the code.
11258
11259         * mule-charset.c (make_charset): Make sure entire object is
11260         initialized, to avoid Purify warnings.
11261
11262         * alloc.c (resize_string): Fix unlikely crash with big strings.
11263
11264 2000-01-24  Martin Buchholz  <martin@xemacs.org>
11265
11266         * realpath.c (xrealpath):
11267         Don't call getwd().
11268
11269 2000-01-25  Martin Buchholz  <martin@xemacs.org>
11270
11271         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
11272
11273 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
11274
11275         * unexelfsgi.c (unexec): Change the way we decide which segment
11276         should be extended.
11277
11278         Assumption that .bss section should be outside the PT_LOADable
11279         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
11280         it's present) is inside the 'data' segment. This would fail the
11281         test which was used to find a segment to grow and cover new
11282         heap. Instead of this assumption, I created another one - on IRIX
11283         the segment to grow should start below .bss and it's address
11284         should extent above the end of .bss. Once this segment is
11285         identified, it's grown to accommodate the new heap and new
11286         zero-length .bss section is added at the end of .data2.
11287
11288 2000-01-25  Martin Buchholz  <martin@xemacs.org>
11289
11290         * eval.c (Feval): Wrong number of arguments should use original
11291         function, not the indirect_function version of it.
11292
11293 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
11294
11295         * glyphs-x.c (x_button_instantiate): Don't add image if
11296         it is not a pixmap.
11297         (x_locate_pixmap_file): Call Fexpand_file_name when file name
11298         is relative.
11299
11300 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
11301
11302         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
11303         declaration.
11304         (DEFVAR_INT_MAGIC): Ditto.
11305         (DEFVAR_BOOL_MAGIC): Ditto.
11306         * glyphs.h: Reindent backslash.
11307
11308 2000-01-24  Martin Buchholz  <martin@xemacs.org>
11309
11310         * glyphs-widget.c (layout_query_geometry):
11311         (layout_layout): Use correct types for gheight, gwidth.
11312
11313 2000-01-24  Martin Buchholz  <martin@xemacs.org>
11314
11315         * EmacsManager.c (QueryGeometry): Purified.
11316
11317 2000-01-23  Martin Buchholz  <martin@xemacs.org>
11318
11319         * alloc.c (make_float): Make sure entire object is initialized, to
11320         avoid Purify warnings.
11321         (pdump_register_sub): Remove useless assignment.
11322         (pdump): Use xmalloc, not malloc.
11323         (pdump_load): Use xmalloc, not malloc.
11324
11325 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11326
11327         * callproc.c:
11328         * dired-msw.c:
11329         * fileio.c:
11330         * process-nt.c:
11331         * redisplay-msw.c:
11332         * sysdep.c: Removed redundant #include <windows.h>
11333
11334 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11335
11336         * frame.c (delete_frame_internal): Do not delete device when its
11337         implementation so declares.
11338         (delete_frame_internal): Set device selected frame to nil when
11339         last frame goes away.
11340
11341         * device-msw.c (msprinter_device_system_metrics): Implemented.
11342         (mswindows_device_system_metrics): Added 'device-dpi property.
11343
11344         * device.c: (Fdevice_printer_p): Added.
11345         Added 'offset-workspace device metric.
11346
11347         * console.h (device_metrics): Declared DM_offset_workspace.
11348
11349 2000-01-23  Martin Buchholz  <martin@xemacs.org>
11350
11351         * fileio.c (Ffile_truename): Remove pointless and confusing
11352         initialization of elen.
11353
11354         * glyphs-widget.c: Compiler warning fixes.
11355
11356 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
11357
11358         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
11359         instead of a Lisp_Object as argument to make it consistent with
11360         the other LIVE_P macros.
11361         (CHECK_LIVE_PROCESS): New macro.
11362
11363         * process.c: Declare Qprocess_live_p.
11364         (Fprocess_live_p): New function.
11365         (create_process): Use PROCESS_LIVE_P.
11366         (read_process_output): Ditto.
11367         (set_process_filter): Ditto.
11368         (Fdelete_process): Ditto.
11369         (kill_buffer_processes): Ditto
11370         (process_send_signal): Use CHECK_LIVE_PROCESS.
11371         (Fprocess_input_coding_system): Check whether process is still
11372         alive (fix PR#1061).
11373         (Fprocess_output_coding_system): Ditto.
11374         (Fprocess_coding_system): Ditto.
11375         (Fset_process_input_coding_system): Ditto.
11376         (Fset_process_output_coding_system): Ditto.
11377
11378 2000-01-23  Andy Piper  <andy@xemacs.org>
11379
11380         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
11381         layout and widget.
11382
11383         * glyphs.c (mark_image_instance): take into account changed
11384         image_instance format.
11385         (image_instance_equal): ditto.
11386         (image_instance_hash): ditto.
11387
11388         * glyphs-widget.c (widget_instantiate): Incorporate layout
11389         instantiation here. Delay layout of the layout until later.
11390         (layout_instantiate): deleted.
11391         (layout_query_geometry): new function. get the geometry of a
11392         layout.
11393         (layout_layout): layout a layout dynamically.
11394         (image_instantiator_widget): New function - splitting up
11395         image_instantiator_format_create_glyphs_widget for netwinder
11396         compilation.
11397         (image_instantiator_buttons):
11398         (image_instantiator_edit_fields):
11399         (image_instantiator_combo_box):
11400         (image_instantiator_scrollbar):
11401         (image_instantiator_progress_guage):
11402         (image_instantiator_tree_view):
11403         (image_instantiator_tab_control):
11404         (image_instantiator_labels):
11405         (image_instantiator_layout): ditto.
11406         (image_instantiator_format_create_glyphs_widget): Call preceding
11407         functions.
11408
11409 2000-01-22  Martin Buchholz  <martin@xemacs.org>
11410
11411         * process.c (Fset_process_coding_system):
11412         * device-x.c (Fx_keysym_hash_table):
11413         Docstring fixes.
11414
11415         * lstream.c (Lstream_write): Return documented value, not 0.
11416
11417         * fileio.c (directory_file_name):
11418         (Fsubstitute_in_file_name):
11419         (Fsubstitute_insert_file_contents_internal):
11420         (Fwrite_region_internal):
11421         * emacs.c:
11422         * sysdep.c:
11423         * getloadavg.c:
11424         * systty.h:
11425         Remove vestigial APOLLO-conditional code.
11426
11427 2000-01-21  Martin Buchholz  <martin@xemacs.org>
11428
11429         * getpagesize.h: Add guard macros.
11430         * libsst.h: Add guard macros.
11431         * libst.h: Add guard macros.
11432         * line-number.h: Add guard macros.
11433         * ndir.h: Add guard macros.
11434         * sysfloat.h: Add guard macros.
11435         * sysfile.h: Add guard macros.
11436         * sysproc.h: Add guard macros.
11437         * syswait.h: Add guard macros.
11438         * xintrinsic.h: Add guard macros.
11439         * xintrinsicp.h: Add guard macros.
11440         * xmmanager.h: Add guard macros.
11441         * xmmanagerp.h: Add guard macros.
11442         * xmprimitive.h: Add guard macros.
11443         * xmu.h: Add guard macros.
11444         * gpmevent.h: Add copyright statement. Add guard macros.
11445         * miscplay.h: Add guard macros.
11446         * *.h: Use consistent C-standards-approved guard macro names.
11447
11448         * opaque.c (make_opaque): Switch parameter order.
11449         * opaque.h (make_opaque): Switch parameter order.
11450         Update all callers.
11451         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
11452
11453         * config.h.in (type_checking_assert): Added.
11454         (bufpos_checking_assert): Added.
11455
11456 2000-01-21  Martin Buchholz  <martin@xemacs.org>
11457
11458         * alloc.c: Harmless pdump changes.
11459         - Use countof().
11460         - spell alignment correctly.
11461         * sysdep.c: Use countof()
11462
11463 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11464
11465         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
11466         initially_selected_for_input() console method, default to 0.
11467         (semi_canonicalize_console_connection): Try to delegate to
11468         canonicalize_console_connection if no such console method.
11469         (canonicalize_console_connection): Vice versa.
11470         (print_console): Do not print nil connection.
11471
11472         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
11473         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
11474         (XDEVIMPF_FRAMELESS_OK): Added.
11475         (CONSOLE_INHERITS_METHOD): Added.
11476
11477         * console-msw.c (mswindows_canonicalize_console_connection):
11478         Added.
11479         (mswindows_canonicalize_device_connection): Added.
11480
11481         * console-msw.h (struct msprinter_device): Added this struct and
11482         accessor macros.
11483         (mswindows_device): Made fontlist a lisp object.
11484
11485         * device.c (semi_canonicalize_device_connection):  Try to delegate
11486         to canonicalize_device_connection if no such console method.
11487         (canonicalize_device_connection): Vice versa.
11488         (print_device): Do not print nil connection.
11489
11490         * device-msw.c (mswindows_init_device): Call InitCommonControls
11491         when have widgets.
11492         (mswindows_delete_device): Removed fontlist deallocation.
11493         (mswindows_mark_device): Added.
11494
11495         * events.c (event_equal): Added abort() at unreached code.
11496         (event_hash): Ditto.
11497
11498         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
11499         fallback tags of Windows devices.
11500
11501         * general.c (syms_of_general): Initialized Qmsprinter.
11502
11503         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
11504         of fallback tags of Windows devices.
11505
11506         * lisp.h: Declared Qmsprinter.
11507
11508         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
11509         of strings.
11510         (mswindows_list_fonts): Ditto.
11511         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
11512         that it can be used by both mswindows and msprinter devices.
11513         (initialize_font_instance): Added.
11514         (mswindows_initialize_font_instance): Use it.
11515         (msprinter_initialize_font_instance): Added.
11516
11517         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
11518         and implementation flags check.
11519         (redisplay_without_hooks): Changed the call to the above.
11520         (Fredraw_device): Ditto.
11521         (Fredisplay_device): Ditto.
11522
11523         * redisplay-msw.c (get_frame_dc): Implemented.
11524         (get_frame_compdc): Implemented.
11525         (many functions): Use the two functions above to get device
11526         contexts, ether for a window or a printer.
11527
11528 2000-01-21  Olivier Galibert  <galibert@pobox.com>
11529
11530         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
11531         initialization here.
11532         (init_symbols_once_early): Call it.
11533         * emacs.c (main_1): Call it.
11534         * symsinit.h: Declare it.
11535
11536 2000-01-19  Olivier Galibert  <galibert@pobox.com>
11537
11538         * alloc.c: Use a lrecord_header * in the backtrace instead of a
11539         Lisp_Object.
11540         (pdump_backtrace): Ditto.
11541         (pdump_register_object): Ditto.  Cleanup use of the pointers.
11542         (pdump_get_entry): Abort if trying to register a null pointer.
11543         (pdump_dump_data): Cleanup types when relocating.
11544         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
11545         (pdump_dump_rtables): Remove bad casts.
11546         (pdump_load): Cleanup relocation w.r.t union type.  Use a
11547         Lisp_Object instead of a EMACS_INT for the hashtable
11548         reorganization.
11549
11550 2000-01-20  Martin Buchholz  <martin@xemacs.org>
11551
11552         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
11553
11554         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
11555
11556         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
11557
11558         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
11559
11560 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11561
11562         * faces.h (FACE_STRIKETHRU_P): Added.
11563
11564         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
11565         of font variants.
11566
11567         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
11568         (mswindows_set_dc_font): New function, aware of font variants,
11569         separated from mswindows_update_dc.
11570
11571         * objects-msw.h (struct mswindows_font_instance_data): Added
11572         definition.
11573
11574         * objects-msw.c (mswindows_finalize_font_instance): Delete all
11575         cached fonts and the data structure.
11576         (mswindows_initialize_font_instance): Added creation of font data
11577         structure.
11578         (mswindows_print_font_instance): Print at least something.
11579         (mswindows_create_font_variant): Implemented.
11580         (mswindows_get_hfont): Implemented.
11581
11582 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
11583
11584         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
11585         prototyping problem with msvc.
11586
11587         * emacs.c (main_1): added syms_of_gui_mswindows() call
11588
11589         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
11590         syms_of_gui_mswindows() function
11591
11592         * symsinit.h: added the prototype for syms_of_gui_mswindows()
11593
11594 2000-01-18  Martin Buchholz <martin@xemacs.org>
11595
11596         * XEmacs 21.2.27 is released.
11597
11598 2000-01-18  Martin Buchholz  <martin@xemacs.org>
11599
11600         * glyphs-eimage.c (struct tiff_error_struct):
11601         (tiff_error_func):
11602         (tiff_warning_func):
11603         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
11604
11605         * unexmips.c:
11606         * unexhp9k3.c:
11607         * unexfreebsd.c:
11608         * unexec.c: Remove vestigial Lucid C code.
11609         * unexalpha.c:
11610         * unexaix.c:
11611         * termcap.c:
11612         * libsst.c: Ansify.
11613         Remove declarations of errno and strerror().
11614
11615         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
11616
11617         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
11618
11619 2000-01-16  Martin Buchholz  <martin@xemacs.org>
11620
11621         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
11622         Optimize.
11623
11624 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11625
11626         * md5.c:
11627         * file-coding.c:
11628         * file-coding.h:
11629         Change enum eol_type to eol_type_t.
11630
11631 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11632
11633         * gui.c (get_gui_callback): Check cons before accessing car.
11634
11635 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11636
11637         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
11638         (XSETSPECIFIER_TYPE): Ditto.
11639
11640 2000-01-17  Didier Verna  <didier@xemacs.org>
11641
11642         * redisplay.c (generate_fstring_runes): compute string size in
11643         characters, not bytes.
11644
11645 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
11646
11647         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
11648
11649 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
11650
11651         * print.c (print_error_message): Call print_prepare().
11652
11653 2000-01-14  Martin Buchholz  <martin@xemacs.org>
11654
11655         * .dbxrc: Renamed from dbxrc.
11656
11657         * events.c (event_to_character):
11658         Use `assert (foo)' instead of `if (!foo) abort()'
11659
11660         * .gdbinit (xtype): Add documentation.
11661         * .gdbinit (check-temacs): New function.
11662         * .gdbinit (check-xemacs): New function.
11663         * dbxrc (check-xemacs): New function.
11664         * dbxrc (check-xemacs): New function.
11665
11666 2000-01-14  Andy Piper  <andy@xemacs.org>
11667
11668         * glyphs-widget.c (widget_query_geometry): Make sure that we
11669         calculate default dimensions correctly.
11670
11671 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11672
11673         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
11674
11675         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
11676         pdump_wire'd variable.
11677
11678         * emacs.c: (main_1): Conditionalized calls to
11679         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
11680
11681 2000-01-13  Martin Buchholz  <martin@xemacs.org>
11682
11683         * window.c (Fset_window_configuration):
11684         * sysdep.c (_start):
11685         * input-method-motif.c (res):
11686         * event-Xt.c (Xt_process_to_emacs_event):
11687         Simple compiler warning fixes.
11688
11689         * bytecode.c (funcall_compiled_function): Use the original
11690         function symbol on the backtrace list in preference to the
11691         compiled_function object in error messages.
11692
11693 2000-01-13  Andy Piper  <andy@xemacs.org>
11694
11695         * glyphs-x.c (update_widget_face): Make sure we update the widget
11696         background as well as foreground.
11697
11698 2000-01-13  Andy Piper  <andy@xemacs.org>
11699
11700         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
11701         fields to subwindow.
11702         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
11703         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
11704         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
11705         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
11706
11707         * glyphs-widget.c (check_valid_tab_orientation): new function.
11708         (initialize_widget_image_instance): zero orientation and
11709         justification.
11710         (widget_instantiate): pick up orientation.
11711         (tab_control_query_geometry): return appropriate values for
11712         vertical tabs.
11713
11714         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
11715         appropriate creation flags for left, right and bottom tabs.
11716
11717         * s/cygwin32.h: add tab definitions.
11718
11719 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11720
11721         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
11722         frame upon hiding a subwindow.
11723         (mswindows_button_instantiate): Changed the push button style to
11724         BS_PUSHBUTTON.
11725         (mswindows_button_instantiate): Removed button BS_NOTIFY
11726         style.
11727         (mswindows_button_instantiate): Removed redundant check for
11728         a disabled gui item.
11729         (mswindows_button_instantiate): Made use of WS_TABSTOP
11730         consistent: "operable" controls (edit, button, tree, scroll) have
11731         this style, "display-only" ones (static, progress gauge) do
11732         not. This style is currently ignored by XEmacs though. Also,
11733         removed the WS_EX_CONTROLPARENT style - it is not for children,
11734         it is for their parents!
11735         (mswindows_edit_field_instantiate): Ditto.
11736         (mswindows_progress_gauge_instantiate): Ditto.
11737         (mswindows_tree_view_instantiate): Ditto.
11738         (mswindows_tab_control_instantiate): Ditto.
11739         (mswindows_scrollbar_instantiate): Ditto.
11740         (mswindows_combo_box_instantiate): Ditto.
11741         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
11742         style to the "clip" window.
11743         (mswindows_button_instantiate): Removed compilation warning by
11744         equally typing terms of the ?: operator.
11745
11746 2000-01-12  Didier Verna  <didier@xemacs.org>
11747
11748         * redisplay.c (generate_fstring_runes): new parameter holding the
11749         last modeline-format extent.
11750         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
11751         extent, fill the glyph block with it.
11752         (generate_fstring_runes): handle these parameters.
11753         (generate_formatted_string_db): ditto.
11754
11755         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
11756         glyphs'extents in the modeline.
11757
11758 1999-01-11  Mike Woolley  <mike@bulsara.com>
11759
11760         * ntheap.c: Reduced the reserved heap space from 1Gb down to
11761         256Mb, as a workaround for the non-starting problem many people
11762         have experienced.
11763
11764 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11765
11766         * console-tty.c (Fset_console_tty_output_coding_system):
11767         Force redrawing tty frame.
11768
11769 2000-01-10  Didier Verna  <didier@xemacs.org>
11770
11771         * redisplay.c (generate_fstring_runes): fix size computation bug.
11772
11773 2000-01-09  William M. Perry <wmperry@aventail.com>
11774
11775         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
11776
11777 2000-01-09  Andy Piper  <andy@xemacs.org>
11778
11779         * glyphs-msw.c: index -> i to avoid shadows.
11780         (xbm_create_bitmap_from_data): make static.
11781         (check_valid_string_or_int): deleted.
11782         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
11783
11784         * glyphs-x.c (x_update_subwindow): remove unused args.
11785
11786         * glyphs.c (glyph_image_instance): return the thing. Don't set the
11787         back pointer - this is done in allocate_image_instance.
11788         (query_string_font): return Qnil to make the compiler happy.
11789         (unmap_subwindow): set to ~0 to make the compiler happy.
11790         (glyph_query_geometry): comment out until used.
11791         (glyph_layout): ditto.
11792
11793 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
11794
11795         * insdel.c (signal_after_change): Remove extraneous unbind_to().