9e80eba95c894930e87d545c182c3dae32a7b201
[chise/xemacs-chise.git-] / src / ChangeLog
1 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * chartab.c (put_char_id_table): Use `put_char_table'.
4
5 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
6
7         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
8         (map_over_uint16_byte_table): Likewise.
9         (map_over_byte_table): Likewise.
10         (map_char_table): Modify for `map_over_uint8_byte_table',
11         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
12         UTF-2000.
13
14 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
15
16         * chartab.c (struct map_char_table_for_charset_arg): New
17         structure.
18         (map_char_table_for_charset_fun): New function.
19         (map_char_table): Use `map_char_table' for encoding_table of
20         `range->charset'.
21
22 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
23
24         * chartab.c (map_char_table): Check a character is found in
25         range->charset instead of non default value is defined in
26         char-table when range is CHARTAB_RANGE_ROW.
27
28 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
29
30         * chartab.c (map_char_id_table): Deleted.
31         (Fmap_char_attribute): Use `map_char_table' instead of
32         `map_char_id_table'.
33
34 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
35
36         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
37         UTF-2000.
38         (update_syntax_table): Deleted in XEmacs UTF-2000.
39
40         * syntax.c (find_defun_start): Use `syntax_table' instead of
41         `mirror_syntax_table' in XEmacs UTF-2000.
42         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
43         UTF-2000.
44         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
45         XEmacs UTF-2000.
46         (Fmatching_paren): Likewise.
47         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
48         in XEmacs UTF-2000.
49         (find_start_of_comment): Likewise.
50         (find_end_of_comment): Likewise.
51         (Fforward_comment): Likewise.
52         (scan_lists): Likewise.
53         (char_quoted): Likewise.
54         (Fbackward_prefix_chars): Likewise.
55         (scan_sexps_forward): Likewise.
56         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
57         (update_syntax_table): Likewise.
58
59         * search.c (skip_chars): Use `syntax_table' instead of
60         `mirror_syntax_table' in XEmacs UTF-2000.
61         (wordify): Likewise.
62         (Freplace_match): Likewise.
63
64         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
65         `mirror_syntax_table' in XEmacs UTF-2000.
66         (WORDCHAR_P_UNSAFE): Likewise.
67         (re_match_2_internal): Likewise.
68
69         * font-lock.c (find_context): Use `buf->syntax_table' instead of
70         `buf->mirror_syntax_table' in XEmacs UTF-2000.
71
72         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
73         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
74
75         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
76         XEmacs UTF-2000.
77
78         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
79         UTF-2000.
80         (print_char_table): Print `default_value' in XEmacs UTF-2000.
81         (char_table_description): Delete `mirror_table' in XEmacs
82         UTF-2000.
83         (fill_char_table): Don't call `update_syntax_table' in XEmacs
84         UTF-2000.
85         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
86         (Fcopy_char_table): Likewise.
87         (put_char_table): Don't call `update_syntax_table' in XEmacs
88         UTF-2000.
89
90         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
91         `buf->mirror_syntax_table' in XEmacs UTF-2000.
92         (casify_region_internal): Likewise.
93
94         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
95
96         * buffer.c (common_init_complex_vars_of_buffer): Don't use
97         `mirror_syntax_table' in XEmacs UTF-2000.
98
99         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
100         `buf->mirror_syntax_table' in XEmacs UTF-2000.
101         (Fexpand_abbrev): Likewise.
102
103 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
104
105         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
106
107 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
108
109         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
110         (map_over_uint16_byte_table): Likewise.
111         (map_over_byte_table): Likewise.
112         (get_char_id_table): Refer `cit->default_value'.
113         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
114         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
115         of character-id ranges.
116         (mark_char_table): Mark `ct->default_value'.
117         (char_table_description): Add `default_value'.
118         (fill_char_table): Use `default_value'.
119         (decode_char_table_range): Decode `nil' as
120         `CHARTAB_RANGE_DEFAULT'.
121         (get_char_id_table): Refer `cit->default_value'.
122         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
123         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
124         temporary hack; check value of char-table is bound or not.
125         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
126
127         * chartab.h (struct Lisp_Char_Table): Add new member
128         `default_value' in XEmacs UTF-2000.
129         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
130         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
131         UTF-2000.
132
133 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
134
135         * chartab.h (Lisp_Char_ID_Table): Deleted.
136
137         * chartab.c (char_table_description): Fix typo.
138         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
139         `Lisp_Char_ID_Table'.
140
141 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
142
143         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
144         `CHAR_ID_TABLE_P'.
145
146         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
147         `CHAR_ID_TABLE_P'.
148
149         * chartab.h (XCHAR_ID_TABLE): Deleted.
150         (XSETCHAR_ID_TABLE): Deleted.
151         (CHAR_ID_TABLE_P): Deleted.
152
153         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
154         `CHAR_ID_TABLE_P'.
155         (Fget_composite_char): Likewise.
156         (put_char_table): Likewise.
157         (add_char_attribute_alist_mapper): Fixed.
158         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
159         `CHAR_ID_TABLE_P'.
160         (Fget_char_attribute): Likewise.
161         (Fget_char_attribute): Likewise.
162         (Fmap_char_attribute): Likewise.
163
164         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
165         `CHAR_ID_TABLE_P'.
166         (encode_char_1): Likewise.
167
168 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
169
170         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
171         `XCHAR_ID_TABLE'.
172
173         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
174         instead of `XCHAR_ID_TABLE'.
175         (remove_char_ccs): Likewise.
176
177         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
178         `XCHAR_ID_TABLE'.
179         (Fget_composite_char): Likewise.
180         (Fchar_variants): Likewise.
181         (put_char_table): Likewise.
182         (add_char_attribute_alist_mapper): Likewise.
183         (Fchar_attribute_alist): Likewise.
184         (Fget_char_attribute): Likewise.
185         (Fput_char_attribute): Likewise.
186         (Fmap_char_attribute): Likewise.
187         (Fmap_char_attribute): Likewise.
188
189         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
190         `XCHAR_ID_TABLE'.
191         (encode_char_1): Likewise.
192
193 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
194
195         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
196         `Lisp_Char_ID_Table'.
197         (mark_char_id_table): Deleted.
198         (print_char_id_table): Likewise.
199         (char_id_table_equal): Likewise.
200         (char_id_table_hash): Likewise.
201         (char_id_table_description): Likewise.
202         (char_id_table): Likewise.
203         (make_char_id_table): Use `Fmake_char_table' and
204         `fill_char_table'.
205         (get_char_id_table): Use `Lisp_Char_Table' instead of
206         `Lisp_Char_ID_Table'.
207         (put_char_id_table): Likewise.
208         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
209         `XCHAR_ID_TABLE'.
210         (Fremove_char_attribute): Likewise.
211         (syms_of_chartab): Don't define type `char-id-table'.
212
213         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
214         (char_id_table): Likewise.
215         (GC_CHAR_ID_TABLE_P): Likewise.
216         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
217         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
218         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
219         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
220         (get_char_id_table): Use `Lisp_Char_Table' instead of
221         `Lisp_Char_ID_Table'.
222         (put_char_id_table_0): Likewise.
223         (put_char_id_table): Likewise.
224
225 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
226
227         * chartab.h: Lisp_Byte_Table related codes are moved from
228         chartab.h.
229
230         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
231
232 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
233
234         * chartab.h: Don't include "chartab.h".
235         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
236         (Lisp_Char_ID_Table): Likewise.
237         (char_id_table): Likewise.
238         (XCHAR_ID_TABLE): Likewise.
239         (XSETCHAR_ID_TABLE): Likewise.
240         (CHAR_ID_TABLE_P): Likewise.
241         (GC_CHAR_ID_TABLE_P): Likewise.
242         (get_char_id_table): Likewise.
243
244         * char-ucs.h: Include "chartab.h".
245         (struct Lisp_Char_ID_Table): Moved to chartab.h.
246         (Lisp_Char_ID_Table): Likewise.
247         (char_id_table): Likewise.
248         (XCHAR_ID_TABLE): Likewise.
249         (XSETCHAR_ID_TABLE): Likewise.
250         (CHAR_ID_TABLE_P): Likewise.
251         (GC_CHAR_ID_TABLE_P): Likewise.
252         (get_char_id_table): Likewise.
253
254 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
255
256         * chartab.c (copy_uint8_byte_table): New function.
257         (copy_uint16_byte_table): New function.
258         (copy_byte_table): New function.
259         (map_over_uint8_byte_table): Modify to avoid huge numbers of
260         characters to call.
261         (map_over_uint16_byte_table): Likewise.
262         (map_over_byte_table): Likewise.
263         (get_byte_table): Move prototype to chartab.h.
264         (put_byte_table): Likewise.
265         (put_char_id_table_0): Moved to chartab.h.
266         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
267         (char_table_entry_equal): Likewise.
268         (char_table_entry_hash): Likewise.
269         (char_table_entry_description): Likewise.
270         (char_table_entry): Likewise.
271         (make_char_table_entry): Likewise.
272         (copy_char_table_entry): Likewise.
273         (get_non_ascii_char_table_value): Likewise.
274         (map_over_charset_ascii): Likewise.
275         (map_over_charset_control_1): Likewise.
276         (map_over_charset_row): Likewise.
277         (map_over_other_charset): Likewise.
278         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
279         (print_char_table): Likewise.
280         (char_table_equal): Likewise.
281         (char_table_hash): Likewise.
282         (char_table_description): Likewise.
283         (fill_char_table): Likewise.
284         (Fcopy_char_table): Likewise.
285         (get_char_table): Likewise.
286         (Fget_range_char_table): Likewise.
287         (put_char_table): Likewise.
288         (map_char_table): Likewise.
289         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
290         UTF-2000.
291
292 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
293
294         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
295         `Vauto_fill_chars' in XEmacs UTF-2000.
296
297         * chartab.h (get_byte_table): New prototype [moved from
298         chartab.c].
299         (put_byte_table): Likewise [moved from chartab.c].
300         (put_char_id_table_0): New inline function [moved from chartab.c].
301         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
302         (Lisp_Char_Table_Entry): Likewise.
303         (char_table_entry): Likewise.
304         (XCHAR_TABLE_ENTRY): Likewise.
305         (XSETCHAR_TABLE_ENTRY): Likewise.
306         (CHAR_TABLE_ENTRYP): Likewise.
307         (CHECK_CHAR_TABLE_ENTRY): Likewise.
308         (NUM_ASCII_CHARS): Likewise.
309         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
310         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
311
312 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
313
314         * chartab.c (get_char_id_table): Change interface.
315         (put_char_id_table_0): New function.
316         (put_char_id_table): Change interface; new implementation.
317         (Fget_composite_char): Modify for interface change of
318         `get_char_id_table'.
319         (Fchar_variants): Likewise.
320         (add_char_attribute_alist_mapper): Likewise.
321         (Fchar_attribute_alist): Likewise.
322         (Fget_char_attribute): Likewise.
323         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
324         as same as character as the first argument like `put-char-table';
325         modify for interface change of `put_char_id_table'.
326         (Fremove_char_attribute): Modify for interface change of
327         `put_char_id_table'.
328
329 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
330
331         * text-coding.c: Sync up with XEmacs 21.2.41.
332         (COMPOSE_ADD_CHAR): Modify for interface change of
333         `get_char_id_table'.
334
335         * mule-charset.c (put_char_ccs_code_point): Modify for interface
336         change of `put_char_id_table'.
337         (remove_char_ccs): Likewise.
338
339         * chartab.h (put_char_id_table): Change interface.
340
341         * char-ucs.h (get_char_id_table): Change interface.
342         (charset_code_point): Modify for interface change of
343         `get_char_id_table'.
344         (encode_char_1): Likewise.
345
346 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
347
348         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
349         argument `ccs'.
350         (map_over_uint16_byte_table): Likewise.
351         (map_over_byte_table): Likewise.
352         (map_char_id_table): Add new argument `range' like
353         `map_char_table'.
354         (Fmap_char_attribute): Add new argument `range' like
355         `Fmap_char_table'.
356
357 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
358
359         * chartab.c (map_over_uint8_byte_table): Change interface of
360         mapping function to use struct chartab_range instead of Emchar.
361         (map_over_uint16_byte_table): Likewise.
362         (map_over_byte_table): Likewise.
363         (map_char_id_table): Likewise.
364         (struct slow_map_char_id_table_arg): Deleted.
365         (slow_map_char_id_table_fun): Deleted.
366         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
367         function `slow_map_char_table_fun' instead of struct
368         `slow_map_char_id_table_arg' and function
369         `slow_map_char_id_table_fun'.
370
371 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
372
373         * mule-charset.c: Move char-it-table related codes to chartab.c.
374         (Vutf_2000_version): Moved to chartab.c.
375         (Fdefine_char): Likewise.
376         (Ffind_char): Likewise.
377         (syms_of_mule_charset): Move types `uint8-byte-table',
378         `uint16-byte-table', `byte-table' and `char-id-table' to
379         chartab.c; move functions `char_attribute_list,
380         `find_char_attribute_table, `char_attribute_alist,
381         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
382         `map_char_attribute, `define_char, `find_char, `char_variants and
383         `get_composite_char to chartab.c; move symbols `=>ucs',
384         `->decomposition', `compat', `isolated', `initial', `medial',
385         `final', `vertical', `noBreak', `fraction', `super', `sub',
386         `circle', `square', `wide', `narrow', `small' and `font' to
387         chartab.c.
388         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
389         setting codes for `Vcharacter_composition_table' and
390         `Vcharacter_variant_table' to chartab.c.
391         (complex_vars_of_mule_charset): Move setting code for
392         `Vchar_attribute_hash_table' to chartab.c.
393
394         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
395         (make_char_id_table): New prototype.
396         (put_char_id_table): Likewise.
397         (Fget_char_attribute): Likewise.
398
399         * chartab.c: Move char-id-table related code from mule-charset.c.
400         (Vutf_2000_version): Moved from mule-charset.c.
401
402         * char-ucs.h (Qucs): New external variable.
403         (put_char_ccs_code_point): New prototype.
404         (remove_char_ccs): Likewise.
405
406 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
407
408         * mule-charset.c (Vcharset_ucs_jis): New variable.
409         (Qucs_jis): Likewise.
410         (syms_of_mule_charset): Add new symbol `ucs-jis'.
411         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
412
413         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
414
415 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
416
417         * mule-charset.c (map_over_uint8_byte_table): New function.
418         (map_over_uint16_byte_table): Likewise.
419         (map_over_byte_table): Likewise.
420         (map_char_id_table): Likewise.
421         (slow_map_char_id_table_fun): Likewise.
422         (Fmap_char_attribute): Likewise.
423         (syms_of_mule_charset): Add new function `map-char-attribute'.
424
425 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
426
427         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
428         (syms_of_mule_charset): Add new function `find-char'.
429
430 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
431
432         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
433         XEmacs UTF-2000.
434         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
435         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
436         XEmacs UTF-2000.
437         (complex_vars_of_mule_charset): Add new coded-charset
438         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
439         `ideograph-gt-pj-*'.
440
441         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
442
443 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
444
445         * mule-charset.c (encode_builtin_char_1): Purge codes about
446         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
447         {MIN|MAX}_CHAR_HEBREW.
448         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
449         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
450
451         * char-ucs.h (MIN_CHAR_GREEK): Purged.
452         (MAX_CHAR_GREEK): Purged.
453         (MIN_CHAR_CYRILLIC): Purged.
454         (MAX_CHAR_CYRILLIC): Purged.
455         (MIN_CHAR_HEBREW): Commented out.
456         (MAX_CHAR_HEBREW): Likewise.
457
458 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
459
460         * mule-charset.c (Qto_ucs): New variable.
461         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
462         (Fdefine_char): Likewise.
463         (syms_of_mule_charset): Add new symbol `=>ucs'.
464
465 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
466
467         * mule-charset.c (Fdecode_char): Fixed.
468
469 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
470
471         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
472         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
473         "tcvn5712-1".
474
475 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
476
477         * mule-charset.c (Vcharset_ucs_big5): New variable.
478         (Qucs_big5): Likewise.
479         (syms_of_mule_charset): Add new symbol `ucs-big5'.
480         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
481
482         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
483
484 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
485
486         * mule-charset.c (decode_builtin_char): Check Big5 code range
487         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
488
489 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
490
491         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
492         (Qchinese_gb12345): Likewise.
493         (Fdecode_builtin_char): Fixed.
494         (syms_of_mule_charset): Add `chinese-gb12345'.
495         (complex_vars_of_mule_charset): Add coded-charset
496         `chinese-gb12345'.
497
498         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
499         (LEADING_BYTE_CHINESE_GB12345): New macro.
500
501 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
502
503         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
504         and `latin-viscii-upper' for `latin-viscii'.
505
506 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
507
508         * mule-charset.c (Fdecode_builtin_char): Comment out
509         regularization code for ISO-IR GR representation.
510
511 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
512
513         * mule-charset.c (decode_builtin_char): New function; renamed from
514         `make_builtin_char'; return -1 instead of signal.
515         (Fdecode_builtin_char): Use `decode_builtin_char'.
516
517         * char-ucs.h (decode_builtin_char): New prototype; renamed from
518         `make_builtin_char'.
519         (DECODE_CHAR): Use `decode_builtin_char' instead of
520         `make_builtin_char'; use mapping table of `chinese-big5' for
521         `chinese-big5-{1,2}'.
522
523 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
524
525         * text-coding.c (char_encode_big5): New function.
526         (char_finish_big5): Likewise.
527         (reset_encoding_stream): Use `char_encode_big5' and
528         `char_finish_big5' for CODESYS_BIG5.
529         (mule_encode): Don't use `encode_coding_big5'.
530         (encode_coding_big5): Deleted.
531
532 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
533
534         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
535         0x81- in XEmacs UTF-2000.
536         (detect_coding_big5): Likewise.
537
538 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
539
540         * mule-charset.c (Fdefine_char): Don't use a CCS property to
541         generate character-id if the CCS property does not have
542         corresponding predefined character.
543         (make_builtin_char): Return -1 if corresponding predefined
544         character is not found.
545         (Fdecode_char): Return nil if corresponding character is not
546         found.
547         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
548         don't map to builtin ucs space.
549
550 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
551
552         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
553         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
554
555 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
556
557         * mule-charset.c (Vcharset_ideograph_gt): New variable.
558         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
559         (Qideograph_gt): Likewise.
560         (Qideograph_gt_pj_{1..11}): Likewise.
561         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
562         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
563         `ideograph-gt-pj-11'.
564         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
565         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
566         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
567
568         * char-ucs.h (LEADING_BYTE_GT): New macro.
569         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
570         (MIN_CHAR_GT): Likewise.
571         (MAX_CHAR_GT): Likewise.
572
573 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
574
575         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
576         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
577
578         * doprnt.c (unsigned_int_converters): Add `c'.
579         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
580
581         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
582         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
583         `MIN_CHAR_MOJIKYO'.
584         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
585         (MAX_CHAR_MOJIKYO_0): New macro.
586         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
587
588 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
589
590         * mule-charset.c (Fdefine_char): Delete cemented out code.
591         (encode_builtin_char_1): Modify for new allocation of builtin
592         Mojikyo characters.
593
594         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
595
596 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
597
598         * mule-charset.c (Vcharset_ucs_cns): New variable.
599         (Qucs_cns): New variable.
600         (syms_of_mule_charset): Add new symbol `ucs-cns'.
601         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
602
603 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
604
605         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
606
607 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
608
609         * search.c (search_buffer): Make `charset_base_code' as
610         character-id >> 6 to eliminate the corresponding last byte in
611         UTF-8 representation [I'm not sure it is right thing].
612         (boyer_moore): Likewise.
613
614 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
615
616         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
617         representation in MULE.
618
619 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
620
621         * text-coding.c (Fmake_coding_system): Use
622         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
623         `EXTERNAL_PROPERTY_LIST_LOOP'.
624
625 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
626
627         * text-coding.c (decode_output_utf8_partial_char): New function.
628         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
629
630 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
631
632         * text-coding.c (decode_coding_utf8): Output original byte
633         sequence if it is broken; change order of conditions.
634
635         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
636         of conditions.
637
638         * mb-multibyte.h (BYTE_ASCII_P):
639         Use bit ops for char-signedness safety.
640         (BYTE_C0_P): Use bit ops for char-signedness safety.
641         (BYTE_C1_P): Use bit ops for char-signedness safety.
642
643         * character.h: (XCHAR_OR_CHAR_INT):
644         Always use inline function.
645         Remove redundant type checking assert() - XINT will abort quite
646         nicely.
647
648 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
649
650         * text-coding.c: (Fencode_shift_jis_char):
651         (Fencode_big5_char):
652         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
653         Replace 0 with '\0' when working with bytes.
654         Replace initial "(" with "\(" in docstrings.
655
656         (Fmake_coding_system):
657         When type is ccl and value is vector, register it with a proper
658         symbol.  And checks whether the given ccl program is valid.
659         (mule_decode): When calling ccl_driver, if src indicates
660         NULL pointer, set an empty string instead.
661         (mule_encode): Likewise.
662
663         (detect_eol_type):
664         (detect_coding_sjis):
665         (decode_coding_sjis):
666         (detect_coding_big5):
667         (decode_coding_big5):
668         (detect_coding_ucs4):
669         (decode_coding_ucs4):
670         (detect_coding_utf8):
671         (decode_coding_utf8):
672         (detect_coding_iso2022):
673         (decode_coding_iso2022):
674         (decode_coding_no_conversion):
675         (mule_decode):
676         Make all detecting and decoding functions take an Extbyte * arg.
677         (text_encode_generic):
678         (encode_coding_big5):
679         (encode_coding_no_conversion):
680         (mule_encode):
681         Make all encoding functions take a Bufbyte * arg.
682         Use size_t instead of unsigned int for memory sizes.
683         Only cast to unsigned char whenever dereferencing Extbyte *.
684
685         (struct lrecord_description fcd_description_1): Use countof.
686         (complex_vars_of_file_coding):
687         Use countof instead of sizeof.
688         Use CHECK_NATNUM instead of CHECK_INT.
689
690 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
691
692         * mule-charset.c (Fget_char_attribute): Add new optional argument
693         `default-value'.
694         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
695         (remove_char_ccs): Likewise.
696
697 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
698
699         * text-coding.c (char_encode_shift_jis): New implementation in
700         UTF-2000.
701         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
702         ...)'.
703
704         * mule-charset.c (Vcharset_chinese_big5): New variable in
705         UTF-2000.
706         (Qchinese_big5): New variable in UTF-2000.
707         (BIG5_SAME_ROW): New macro in UTF-2000.
708         (make_builtin_char): Use builtin characters of
709         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
710         characters of `Vcharset_chinese_big5'.
711         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
712         (complex_vars_of_mule_charset): Add new coded-charset
713         `chinese-big5' in UTF-2000.
714
715         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
716         (Vcharset_chinese_big5): New external variable declaration.
717         (Vcharset_japanese_jisx0208_1990): Likewise.
718
719 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
720
721         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
722         function.
723         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
724
725 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
726
727         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
728         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
729         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
730         `mojikyo-pj-*'.
731
732 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
733
734         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
735
736 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
737
738         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
739         to 0.17.
740
741 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
742
743         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
744         for `CHARSET_BY_ATTRIBUTES'.
745         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
746         `CHARSET_BY_ATTRIBUTES'.
747
748         * text-coding.c (struct decoding_stream): Rename member `CH' to
749         `CPOS'.
750         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
751         (decode_coding_sjis): Likewise.
752         (decode_coding_big5): Likewise.
753         (decode_coding_ucs4): Likewise.
754         (decode_coding_utf8): Likewise.
755         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
756         `CHARSET_BY_ATTRIBUTES'.
757         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
758         `str->counter'; decode 3, 4 bytes sets.
759         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
760         sets.
761         (decode_coding_no_conversion): Use `str->cpos' instead of
762         `str->ch'.
763
764         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
765         (Qmojikyo_2022_1): New variable.
766         (make_charset): Don't use `CHARSET_TYPE_*'.
767         (range_charset_code_point): Support coded-charset
768         `mojikyo-2022-1'.
769         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
770         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
771         `CHARSET_BY_ATTRIBUTES'.
772         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
773         `CHARSET_BY_ATTRIBUTES'.
774         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
775         (complex_vars_of_mule_charset): Add new coded-charset
776         `mojikyo-2022-1'.
777
778         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
779         interface; changed to inline function.
780
781         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
782         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
783         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
784         (CHARSET_TYPE_94): Deleted.
785         (CHARSET_TYPE_94X94): Deleted.
786         (CHARSET_TYPE_96): Deleted.
787         (CHARSET_TYPE_96X96): Deleted.
788         (CHARSET_TYPE_128): Deleted.
789         (CHARSET_TYPE_128X128): Deleted.
790         (CHARSET_TYPE_256): Deleted.
791         (CHARSET_TYPE_256X256): Deleted.
792         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
793         to inline function.
794         (DECODE_MOJIKYO_2022): New inline function.
795         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
796         `Vcharset_mojikyo_2022_1'.
797
798 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
799
800         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
801         instead of `EQ'.
802         (put_byte_table): Likewise.
803         (char_id_table_equal): Use `get_byte_table' [new implementation].
804
805 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
806
807         * mule-charset.c: Include <limits.h> in UTF-2000.
808         (BT_UINT8_MIN): New macro in UTF-2000.
809         (BT_UINT8_MAX): New macro in UTF-2000.
810         (BT_UINT8_t): New macro in UTF-2000.
811         (BT_UINT8_nil): New macro in UTF-2000.
812         (BT_UINT8_unbound): New macro in UTF-2000.
813         (INT_UINT8_P): New inline function in UTF-2000.
814         (UINT8_VALUE_P): New inline function in UTF-2000.
815         (UINT8_ENCODE): New inline function in UTF-2000.
816         (UINT8_DECODE): New inline function in UTF-2000.
817         (mark_uint8_byte_table): New function in UTF-2000.
818         (print_uint8_byte_table): New function in UTF-2000.
819         (uint8_byte_table_equal): New function in UTF-2000.
820         (uint8_byte_table_hash): New function in UTF-2000.
821         (make_uint8_byte_table): New function in UTF-2000.
822         (uint8_byte_table_same_value_p): New function in UTF-2000.
823         (BT_UINT16_MIN): New macro in UTF-2000.
824         (BT_UINT16_MAX): New macro in UTF-2000.
825         (BT_UINT16_t): New macro in UTF-2000.
826         (BT_UINT16_nil): New macro in UTF-2000.
827         (BT_UINT16_unbound): New macro in UTF-2000.
828         (INT_UINT16_P): New inline function in UTF-2000.
829         (UINT16_VALUE_P): New inline function in UTF-2000.
830         (UINT16_ENCODE): New inline function in UTF-2000.
831         (UINT16_DECODE): New inline function in UTF-2000.
832         (UINT8_TO_UINT16): New inline function in UTF-2000.
833         (mark_uint16_byte_table): New function in UTF-2000.
834         (print_uint16_byte_table): New function in UTF-2000.
835         (uint16_byte_table_equal): New function in UTF-2000.
836         (uint16_byte_table_hash): New function in UTF-2000.
837         (make_uint16_byte_table): New function in UTF-2000.
838         (uint16_byte_table_same_value_p): New function in UTF-2000.
839         (print_byte_table): New function in UTF-2000.
840         (byte-table): Use `print_byte_table' as printer.
841         (make_byte_table): Delete second argument `older'.
842         (byte_table_same_value_p): New function in UTF-2000.
843         (copy_byte_table): Deleted.
844         (get_byte_table): New function in UTF-2000.
845         (put_byte_table): New function in UTF-2000.
846         (print_char_id_table): New function in UTF-2000.
847         (char-id-table): Use `print_char_id_table' as printer.
848         (make_char_id_table): Delete second argument `older'.
849         (get_char_id_table): Use `get_byte_table [new implementation].
850         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
851         implementation].
852         (Ffind_char_attribute_table): New function in UTF-2000.
853         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
854         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
855         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
856         (syms_of_mule_charset): Add new function
857         `find-char-attribute-table' in UTF-2000.
858
859         * lrecord.h (enum lrecord_type): Add
860         `lrecord_type_uint16_byte_table' and
861         `lrecord_type_uint8_byte_table'.
862
863         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
864         (Lisp_Uint8_Byte_Table): New type.
865         (XUINT8_BYTE_TABLE): New macro.
866         (XSETUINT8_BYTE_TABLE): New macro.
867         (UINT8_BYTE_TABLE_P): New macro.
868         (GC_UINT8_BYTE_TABLE_P): New macro.
869         (struct Lisp_Uint16_Byte_Table): New structure.
870         (Lisp_Uint16_Byte_Table): New type.
871         (XUINT16_BYTE_TABLE): New macro.
872         (XSETUINT16_BYTE_TABLE): New macro.
873         (UINT16_BYTE_TABLE_P): New macro.
874         (GC_UINT16_BYTE_TABLE_P): New macro.
875
876 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
877
878         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
879         (Vcharacter_ideographic_strokes_table): Deleted.
880         (Vcharacter_total_strokes_table): Deleted.
881         (Vcharacter_morohashi_daikanwa_table): Deleted.
882         (Vcharacter_decomposition_table): Deleted.
883         (Qname): Deleted because it is duplicated.
884         (Qideographic_radical): Deleted.
885         (Qideographic_strokes): Deleted.
886         (Qtotal_strokes): Deleted.
887         (Qmorohashi_daikanwa): Deleted.
888         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
889         `ideographic-radical', `ideographic-strokes', `total-strokes',
890         `morohashi-daikanwa' and `->decomposition'.
891         (Fget_char_attribute): Likewise.
892         (Fput_char_attribute): Likewise; use `make-vector' instead of
893         `make_older_vector' for `->decomposition' value.
894         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
895         `ideograph-daikanwa'.
896         (syms_of_mule_charset): Delete builtin symbols `name',
897         `ideographic-radical', `ideographic-strokes', `total-strokes' and
898         `morohashi-daikanwa'.
899         (vars_of_mule_charset): Don't setup
900         `Vcharacter_ideographic_radical_table',
901         `Vcharacter_ideographic_strokes_table',
902         `Vcharacter_total_strokes_table',
903         `Vcharacter_morohashi_daikanwa_table' and
904         `Vcharacter_decomposition_table'.
905
906 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
907
908         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
909         `make_older_vector', `make_vector_newer_1' and
910         `make_vector_newer'.
911
912         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
913         `make_older_vector' and `make_vector_newer'.
914
915         * config.h.in (HAVE_GGC): New macro.
916
917 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
918
919         * mule-charset.c (struct char_attribute_list_closure): New
920         structure in UTF-2000.
921         (add_char_attribute_to_list_mapper): New function in UTF-2000.
922         (Fchar_attribute_list): Likewise.
923         (Fset_charset_mapping_table): Use `make_vector_newer'.
924         (Fdecode_builtin_char): New function in UTF-2000.
925         (syms_of_mule_charset): Add new function `char-attribute-list' and
926         `decode-builtin-char' in UTF-2000.
927
928         * lisp.h (make_vector_newer): New prototype.
929
930         * alloc.c (make_vector_newer_1): New function.
931         (make_vector_newer): New function.
932
933 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
934
935         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
936         50100)'.
937
938 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
939
940         * mule-charset.c (Vchar_attribute_hash_table): New variable.
941         (Vcharacter_attribute_table): Deleted.
942         (Vcharacter_name_table): Deleted.
943         (put_char_attribute): Deleted.
944         (remove_char_attribute): Deleted.
945         (struct char_attribute_alist_closure): New structure.
946         (add_char_attribute_alist_mapper): New function.
947         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
948         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
949         (Fget_char_attribute): Likewise.
950         (Fput_char_attribute): Likewise.
951         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
952         of `remove_char_attribute'.
953         (Fdefine_char): Return character.
954         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
955         and `Vcharacter_name_table'.
956         (complex_vars_of_mule_charset): Likewise
957         `Vchar_attribute_hash_table'.
958
959 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
960
961         * character.h (CHARC_CHARSET): New macro.
962         (CHARC_CHARSET_ID): New macro.
963         (CHARC_CODE_POINT): New macro.
964         (CHARC_COLUMNS): New macro.
965         (CHARC_TO_CHAR): New inline function.
966         (CHARC_EQ): New inline function.
967         (CHARC_ASCII_EQ): New inline function.
968         (CHARC_IS_SPACE): New inline function.
969         (ASCII_TO_CHARC): New inline function.
970
971         * char-ucs.h (encode_char_2): Deleted.
972         (ENCODE_CHAR): Use `encode_char_1' again.
973         (breakup_char_1): Likewise.
974         (CHAR_TO_CHARC): New inline function.
975
976         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
977
978 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
979
980         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
981         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
982         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
983         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
984         (create_string_text_block): Use `CHARC_ASCII_EQ' and
985         `CHARC_IS_SPACE'.
986         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
987
988         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
989         `CHARC_CODE_POINT'.
990         (x_output_display_block): Use `CHARC_CHARSET' and
991         `CHARC_ASCII_EQ'.
992
993         * redisplay-tty.c (tty_output_display_block): Use
994         `CHARC_ASCII_EQ'.
995         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
996
997         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
998
999         * insdel.c (find_charsets_in_charc_string): Use
1000         `CHARC_CHARSET_ID'.
1001         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
1002         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
1003         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
1004         (convert_charc_string_into_malloced_string): Likewise.
1005
1006 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1007
1008         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
1009         instead of <Emchar_dynarr *> for buf; use
1010         `convert_bufbyte_string_into_charc_dynarr' instead of
1011         `convert_bufbyte_string_into_emchar_dynarr'; use
1012         `find_charsets_in_charc_string' instead of
1013         `find_charsets_in_emchar_string'.
1014
1015         * redisplay.h:
1016         - Include "character.h".
1017         (struct rune): New member `cglyph'; delete member `chr'.
1018
1019         * redisplay.c (redisplay_text_width_charc_string): New function;
1020         delete `redisplay_text_width_emchar_string'.
1021         (rtw_charc_dynarr): New variable; renamed from
1022         `rtw_emchar_dynarr'.
1023         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
1024         `rtw_emchar_dynarr'; use
1025         `convert_bufbyte_string_into_charc_dynarr' instead of
1026         `convert_bufbyte_string_into_emchar_dynarr'; use
1027         `redisplay_text_width_charc_string' instead of
1028         `redisplay_text_width_emchar_string'.
1029         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
1030         instead of `rtw_emchar_dynarr'; use
1031         `convert_bufbyte_string_into_charc_dynarr' instead of
1032         `convert_bufbyte_string_into_emchar_dynarr'.
1033         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
1034         `redisplay_text_width_charc_string' instead of
1035         `redisplay_text_width_emchar_string'.
1036         (create_text_block): Modify for <struct rune> change.
1037         (generate_formatted_string_db): Likewise.
1038         (create_string_text_block): Likewise.
1039         (pixel_to_glyph_translation): Likewise.
1040
1041         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
1042         instead of <const Emchar *>.
1043         (x_text_width): Likewise.
1044         (x_output_display_block): Use <Charc_dynarr *> instead
1045         <Emchar_dynarr *>; modify for <structure rune> change.
1046         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
1047         *>.
1048
1049         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
1050         <const Emchar *>; use `charc_string_displayed_columns' instead of
1051         `emchar_string_displayed_columns'.
1052         (tty_output_display_block): Use <Charc_dynarr *> instead of
1053         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
1054         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
1055         (tty_output_charc_dynarr_dynarr): New variable; renamed from
1056         `tty_output_emchar_dynarr_dynarr'.
1057         (tty_output_charc_dynarr): New function; delete
1058         `tty_output_charc_dynarr'.
1059
1060         * redisplay-output.c (compare_runes): Modify for `struct rune'.
1061         (redisplay_output_layout): Use <Charc_dynarr *> instead of
1062         <Emchar_dynarr *> for buf; use
1063         `convert_bufbyte_string_into_charc_dynarr' instead of
1064         `convert_bufbyte_string_into_emchar_dynarr'.
1065
1066         * frame.c (title_string_charc_dynarr): New variable; renamed from
1067         `title_string_emchar_dynarr'.
1068         (generate_title_string): Use `title_string_charc_dynarr' instead
1069         of `title_string_emchar_dynarr'; use
1070         `convert_charc_string_into_malloced_string' instead of
1071         `convert_emchar_string_into_malloced_string'.
1072         (init_frame): Use `title_string_charc_dynarr' instead of
1073         `title_string_emchar_dynarr'.
1074
1075         * console.h:
1076         - Include "character.h".
1077         (struct console_methods): Use <const Charc *> instead of <const
1078         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
1079         <Emchar_dynarr *> in output_string_method.
1080
1081         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
1082         <Emchar_dynarr *>.
1083
1084         * console-stream.c (stream_text_width): Use <const Charc *>
1085         instead of <const Emchar *>.
1086
1087         * character.h (Charc_dynarr): New type.
1088
1089         * char-ucs.h (structure Charc): New structure; define new type
1090         `Charc'.
1091
1092         * char-lb.h (DECODE_CHAR): New inline function.
1093         (encode_char_1): New inline function.
1094         (ENCODE_CHAR): New macro.
1095         (structure Charc): New structure; define new type `Charc'.
1096
1097         * char-1byte.h (Vcharset_control_1): New macro.
1098         (Vcharset_latin_iso8859_1): New macro.
1099         (DECODE_CHAR): New inline function.
1100         (encode_char_1): New inline function.
1101         (ENCODE_CHAR): New macro.
1102         (structure Charc): New structure; define new type `Charc'.
1103
1104         * insdel.c (find_charsets_in_charc_string): New function; delete
1105         `find_charsets_in_emchar_string'.
1106         (charc_string_displayed_columns): New function; delete
1107         `emchar_string_displayed_columns'.
1108         (convert_bufbyte_string_into_charc_dynarr): New function; delete
1109         `convert_bufbyte_string_into_emchar_dynarr'.
1110         (convert_charc_string_into_bufbyte_dynarr): New function; delete
1111         `convert_charc_string_into_bufbyte_dynarr'.
1112         (convert_charc_string_into_malloced_string): New function; delete
1113         `convert_charc_string_into_malloced_string'.
1114
1115         * buffer.h (find_charsets_in_charc_string): New prototype; delete
1116         `find_charsets_in_emchar_string'.
1117         (charc_string_displayed_columns): New prototype; delete
1118         `emchar_string_displayed_columns'.
1119         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
1120         `convert_charc_string_into_bufbyte_dynarr'.
1121         (convert_charc_string_into_malloced_string): New prototype; delete
1122         `convert_charc_string_into_malloced_string'.
1123
1124 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1125
1126         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
1127
1128 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1129
1130         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
1131
1132         * char-ucs.h: Use <short> for <Charset_ID>.
1133
1134         * mule-charset.h, char-1byte.h: Use <unsigned char> for
1135         <Charset_ID>.
1136
1137 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1138
1139         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1140         to 0.16.
1141
1142 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1143
1144         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
1145         variable.
1146         (Qmorohashi_daikanwa): New variable.
1147         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
1148         for `morohashi-daikanwa' attribute.
1149         (Fget_char_attribute): Likewise.
1150         (Fput_char_attribute): Likewise.
1151         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
1152         has the same value of `ideograph-daikanwa'.
1153         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
1154         (vars_of_mule_charset): Setup
1155         `Vcharacter_morohashi_daikanwa_table'.
1156
1157 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1158
1159         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
1160         attributes.
1161         (add_charset_to_list_mapper): Add `key' instead of
1162         `XCHARSET_NAME (value)' to return aliases.
1163
1164 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1165
1166         * mule-charset.c (Vcharacter_ideographic_radical_table): New
1167         variable.
1168         (Vcharacter_ideographic_strokes_table): New variable.
1169         (Qideographic_radical): New variable.
1170         (Qideographic_strokes): New variable.
1171         (Fchar_attribute_alist): Use
1172         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
1173         attribute; use `Vcharacter_ideographic_strokes_table' for
1174         `ideographic-strokes' attribute.
1175         (Fget_char_attribute): Likewise.
1176         (Fput_char_attribute): Likewise.
1177         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
1178         `ideographic-strokes'.
1179         (vars_of_mule_charset): Setup
1180         `Vcharacter_ideographic_radical_table' and
1181         `Vcharacter_ideographic_strokes_table'.
1182
1183 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1184
1185         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
1186         (Qtotal_strokes): New variable.
1187         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
1188         `total-strokes' attribute.
1189         (Fget_char_attribute): Likewise.
1190         (Fput_char_attribute): Likewise.
1191         (syms_of_mule_charset): Add new symbol `total-strokes'.
1192         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
1193
1194 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1195
1196         * mule-charset.c (Vcharacter_decomposition_table): New variable.
1197         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
1198         are found.
1199         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
1200         `->decomposition' attribute.
1201         (Fput_char_attribute): Likewise.
1202         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
1203
1204 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1205
1206         * mule-charset.c (decoding_table_check_elements): New function.
1207         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
1208
1209 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1210
1211         * mule-charset.c (Fset_charset_mapping_table): Use
1212         `put_char_ccs_code_point'.
1213
1214 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1215
1216         * mule-charset.c (decoding_table_put_char): New inline function.
1217         (put_char_ccs_code_point): Use `decoding_table_put_char'.
1218
1219 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1220
1221         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
1222         (XCHARSET_BYTE_SIZE): New macro.
1223         (decoding_table_remove_char): New inline function.
1224         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
1225         `decoding_table_remove_char'.
1226         (remove_char_ccs): Use `decoding_table_remove_char'.
1227         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
1228
1229 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1230
1231         * mule-charset.c (Vcharacter_name_table): New variable.
1232         (Qname): New variable.
1233         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
1234         attribute.
1235         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
1236         `Vcharacter_name_table' for `name' attribute.
1237         (Fremove_char_attribute): Use function `remove_char_ccs'.
1238         (put_char_ccs_code_point): New function.
1239         (remove_char_ccs): New function.
1240         (syms_of_mule_charset): Add new symbol `name'.
1241         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
1242
1243 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1244
1245         * mule-charset.c (make_byte_table): Add new argument `older'.
1246         (make_char_id_table): Likewise.
1247         (copy_char_id_table): Comment out because it is not used.
1248         (put_char_id_table): Modify for `make_byte_table'.
1249         (Fput_char_attribute): Make encoding_table as older object;
1250         inherit older bit of `Vcharacter_composition_table'.
1251         (mark_charset): Don't mark `cs->encoding_table'.
1252         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
1253         normal object; make `Vcharacter_composition_table' as an older
1254         object; delete staticpro for `Vcharacter_composition_table'; make
1255         `Vcharacter_variant_table' as a normal object.
1256
1257         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
1258         (mark_object): Don't check older object in UTF-2000.
1259
1260         * lrecord.h (struct lrecord_header): Add new member `older' in
1261         UTF-2000.
1262         (set_lheader_implementation): Setup `SLI_header->older' in
1263         UTF-2000.
1264         (set_lheader_older_implementation): New macro in UTF-2000.
1265         (OLDER_RECORD_P): New macro in UTF-2000.
1266         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
1267         (alloc_older_lcrecord): New prototype in UTF-2000.
1268         (alloc_older_lcrecord_type): New macro in UTF-2000.
1269
1270 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1271
1272         * mule-charset.c (byte_table_description): Use
1273         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
1274         (char_id_table_description): Delete bogus `, 1'.
1275         (Fget_char_attribute): Refer encoding_table of each coded-charset
1276         to get value of coded-charset attribute of a character.
1277         (Fput_char_attribute): Use `make_older_vector' instead of
1278         `make_vector'; use encoding_table of each coded-charset to store
1279         value of coded-charset attribute of a character.
1280         (Fremove_char_attribute): Use encoding_table of each coded-charset
1281         to store value of coded-charset attribute of a character.
1282         (mark_charset): Mark `cs->encoding_table'; don't mark
1283         `cs->decoding_table'.
1284         (charset_description): Add description of new member
1285         `encoding_table'.
1286         (make_charset): Initialize `encoding_table'.
1287
1288         * char-ucs.h (struct Lisp_Charset): Add new member
1289         `encoding_table'.
1290         (CHARSET_ENCODING_TABLE): New macro.
1291         (XCHARSET_ENCODING_TABLE): New macro.
1292         (charset_code_point): New implementation.
1293         (encode_char_1): Likewise.
1294
1295         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
1296         (disksave_object_finalization_1): Call finalizers of
1297         `all_older_lcrecords' in UTF-2000.
1298         (make_older_vector): New function in UTF-2000.
1299         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
1300         UTF-2000.
1301
1302         * lisp.h (make_older_vector): New prototype in UTF-2000.
1303
1304 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1305
1306         * lrecord.h (enum lrecord_type): Rename
1307         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
1308
1309         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
1310         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
1311         `get_char_code_table'.
1312
1313         * mule-charset.c (mark_char_id_table): Renamed from
1314         `mark_char_code_table'.
1315         (char_id_table_equal): Renamed from `char_code_table_equal'.
1316         (char_id_table_hash): Renamed from `char_code_table_hash'.
1317         (make_char_id_table): Renamed from `make_char_code_table'.
1318         (copy_char_id_table): Renamed from `copy_char_code_table'.
1319         (get_char_id_table): Renamed from `get_char_code_table'.
1320         (put_char_id_table): Renamed from `put_char_code_table'.
1321         (to_char_id): Renamed from `to_char_code'.
1322
1323         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
1324         `Lisp_Char_Code_Table'.
1325         (char_id_table): Renamed from `char_code_table'.
1326         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
1327         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
1328         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
1329         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
1330         (get_char_id_table): Renamed from `get_char_code_table'.
1331
1332 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1333
1334         * lrecord.h (enum lrecord_type): Rename
1335         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
1336
1337         * mule-charset.c (mark_byte_table): Renamed from
1338         `mark_char_byte_table'.
1339         (byte_table_equal): Renamed from `char_byte_table_equal'.
1340         (byte_table_hash): Renamed from `byte_table_hash'.
1341         (make_byte_table): Renamed from `make_byte_table'.
1342         (copy_byte_table): Renamed from `copy_char_byte_table'.
1343
1344         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
1345         `Lisp_Char_Byte_Table'.
1346         (byte_table): Renamed from `char_byte_table'.
1347         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
1348         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
1349         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
1350         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
1351
1352 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1353
1354         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
1355         (dfc_convert_to_internal_format): Likewise.
1356         
1357         * text-coding.c (Fcoding_system_canonical_name_p): New function.
1358         * text-coding.c (Fcoding_system_alias_p): New function.
1359         * text-coding.c (Fcoding_system_aliasee): New function.
1360         * text-coding.c (append_suffix_to_symbol): New function.
1361         * text-coding.c (dangling_coding_system_alias_p): New function.
1362         * text-coding.c (Ffind_coding_system):
1363         * text-coding.c (Fcopy_coding_system):
1364         * text-coding.c (encode_coding_no_conversion):
1365         * text-coding.c (syms_of_file_coding):
1366         * text-coding.c (vars_of_file_coding):
1367         Rewrite coding system alias code.
1368         Allow nested aliases, like symbolic links.
1369         Allow redefinition of coding system aliases.
1370         Prevent existence of dangling coding system aliases.
1371         Eliminate convert_to_external_format.
1372         Eliminate convert_to_internal_format.
1373         
1374         * text-coding.c: Change enum eol_type to eol_type_t.
1375
1376 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1377
1378         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
1379         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
1380
1381         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
1382         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
1383
1384 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1385
1386         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
1387         `ideograph-daikanwa'.
1388
1389         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
1390         (Vcharset_ucs_bmp): Likewise.
1391         (Vcharset_mojikyo): Add new extern variable definition.
1392         (Vcharset_latin_iso8859_2): Deleted because it is not used.
1393         (Vcharset_latin_iso8859_3): Likewise.
1394         (Vcharset_latin_iso8859_4): Likewise.
1395         (Vcharset_latin_iso8859_9): Likewise.
1396         (Vcharset_latin_viscii_lower): Likewise.
1397         (Vcharset_latin_viscii_upper): Likewise.
1398         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
1399         `mojikyo' code-point is used to decode.
1400         (encode_char_2): New function [to convert `mojikyo' code-point to
1401         Mojikyo font encoding].
1402         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
1403         (breakup_char_1): Likewise.
1404         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
1405
1406 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1407
1408         * text-coding.c (Fmake_coding_system): Add document about
1409         `disable-composition' property.
1410
1411 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1412
1413         * text-coding.c (Qdisable_composition): New variable; delete
1414         `Qcomposite'.
1415         (Fmake_coding_system): Add new property `disable-composite';
1416         delete property `composite'.
1417         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
1418         instead of `!CODING_SYSTEM_COMPOSITE'.
1419         (syms_of_file_coding): Add new symbol `disable-composition';
1420         delete symbol `composite'.
1421
1422         * file-coding.h (struct Lisp_Coding_System): Add
1423         `disable_composition'; delete `enable_composition'.
1424         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
1425         `CODING_SYSTEM_COMPOSITE'.
1426         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
1427         `XCODING_SYSTEM_COMPOSITE'.
1428
1429 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1430
1431         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1432         to 0.15.
1433
1434 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1435
1436         * text-coding.c (Qcomposite): New variable.
1437         (Fmake_coding_system): Add new property `composite'.
1438         (struct decoding_stream): Add `combined_char_count',
1439         `combined_chars' and `combining_table' in UTF-2000.
1440         (COMPOSE_FLUSH_CHARS): New macro.
1441         (COMPOSE_ADD_CHAR): New macro.
1442         (reset_decoding_stream): Reset `str->combined_char_count' and
1443         `str->combining_table' in UTF-2000.
1444         (decode_coding_iso2022): Modify for character-decomposition.
1445         (syms_of_file_coding): Add new symbol `composite'.
1446
1447 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1448
1449         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
1450         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
1451         of `Vcharacter_composition_table' if `->decomposition' property
1452         has only 1 element.
1453         (Qlatin_tcvn5712): New variable.
1454         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
1455         (complex_vars_of_mule_charset): Add new coded-charset
1456         `latin-tcvn5712'.
1457
1458         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
1459
1460 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1461
1462         * file-coding.h (struct Lisp_Coding_System): Add
1463         `enable_composition'.
1464         (CODING_SYSTEM_COMPOSITE): New macro.
1465         (XCODING_SYSTEM_COMPOSITE): New macro.
1466
1467 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
1468
1469         * mule-canna.c (c2mu): Fix problem with UTF-2000.
1470
1471 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
1472
1473         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
1474         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
1475
1476 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
1477
1478         * mule-charset.c (Vcharset_mojikyo): New variable.
1479         (Fdefine_char): Don't use coded-charset which does not have
1480         non-builtin character range to allocate character-id.
1481         (Qmojikyo): New variable.
1482         (syms_of_mule_charset): Add new symbol `mojikyo'.
1483         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
1484
1485         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
1486         (LEADING_BYTE_MOJIKYO): New macro.
1487         (MIN_CHAR_MOJIKYO): New macro.
1488         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
1489         (MAX_CHAR_MOJIKYO): New macro.
1490
1491 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
1492
1493         * mule-charset.c (remove_char_attribute): Fixed.
1494
1495 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
1496
1497         * mule-charset.c (remove_char_attribute): New function.
1498         (Fremove_char_attribute): New function.
1499         (encode_builtin_char_1): Comment out builtin-support for
1500         greek-iso8859-7 and cyrillic-iso8859-5.
1501         (Fdecode_char): Check `code' is an integer.
1502         (syms_of_mule_charset): Add `remove-char-attribute'.
1503         (MIN_CHAR_GREEK): Deleted.
1504         (MAX_CHAR_GREEK): Likewise.
1505         (MIN_CHAR_CYRILLIC): Likewise.
1506         (MAX_CHAR_CYRILLIC): Likewise.
1507         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
1508         MAX_CHAR_GREEK for `greek-iso8859-7'.
1509
1510         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
1511         (MAX_CHAR_GREEK): Likewise.
1512         (MIN_CHAR_CYRILLIC): Likewise.
1513         (MAX_CHAR_CYRILLIC): Likewise.
1514
1515 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
1516
1517         * mule-charset.c (Fdefine_char): Fix problem when new code-point
1518         format is used without `ucs' property.
1519         (Fdecode_char): Fix problem with GR representation.
1520         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
1521         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
1522
1523 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
1524
1525         * mule-charset.c (make_builtin_char): New function.
1526         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
1527         (Fset_charset_mapping_table): Modify for new representation of
1528         code-point.
1529         (Fdecode_char): New function.
1530         (syms_of_mule_charset): Add new builtin function `decode-char' in
1531         UTF-2000.
1532
1533         * char-ucs.h (make_builtin_char): New prototype.
1534         (DECODE_CHAR): New inline function.
1535         (MAKE_CHAR): Use `DECODE_CHAR'.
1536
1537 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
1538
1539         * text-coding.c (parse_charset_conversion_specs): Use
1540         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
1541         `XCHARSET_TYPE'.
1542         (iso2022_designate): Likewise.
1543
1544         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
1545         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
1546
1547         * mule-charset.c (Vcharset_ucs): New variable.
1548         (print_charset): Change design; use `CHARSET_CHARS' and
1549         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
1550         (make_charset): Change signature to specify `chars' and
1551         `dimension' instead of `type'.
1552         (range_charset_code_point): Modify for 256^n-set.
1553         (encode_builtin_char_1): Encode as `ucs' in default.
1554         (Fmake_charset): Modify for `make_charset'.
1555         (Fmake_reverse_direction_charset): Likewise.
1556         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
1557         UTF-2000.
1558         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
1559         for `make_charset'.
1560
1561         * char-ucs.h (Vcharset_ucs): New variable.
1562         (LEADING_BYTE_UCS): New macro.
1563         (struct Lisp_Charset): Delete `type'; change type of `dimension'
1564         and `chars' to `unsigned short' from `unsigned int'.
1565         (CHARSET_TYPE): Deleted.
1566         (XCHARSET_TYPE): Deleted.
1567
1568 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
1569
1570         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
1571
1572         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
1573         (ENCODE_CHAR): New macro.
1574
1575 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
1576
1577         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1578         to 0.14 (Kawachi-Katakami).
1579
1580 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
1581
1582         * text-coding.c (char_encode_shift_jis): Modify for
1583         `charset_code_point'.
1584         (char_encode_iso2022): Likewise.
1585
1586         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
1587         (integer) instead of list of <Lisp_Object>s (integers) as the
1588         format of code-point of a coded-charset.
1589         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
1590         (encode_builtin_char_1): New function; delete
1591         `split_builtin_char'.
1592         (charset_code_point): Return <int> instead of <Lisp_Object>.
1593         (Fsplit_char): Don't use `SPLIT_CHAR'.
1594
1595         * char-ucs.h (encode_builtin_char_1): New prototype; delete
1596         prototype for `split_builtin_char'.
1597         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
1598         (charset_code_point): Likewise.
1599         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
1600         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
1601
1602 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
1603
1604         * mule-charset.c (complex_vars_of_mule_charset): Don't define
1605         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
1606
1607 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
1608
1609         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
1610
1611         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
1612         (MAX_CHAR_OBS_94x94): Deleted.
1613
1614 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
1615
1616         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
1617
1618         * char-ucs.h (MAX_CHAR_BMP): New macro.
1619
1620 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
1621
1622         * text-coding.c: Sync with r21-2-24.
1623
1624 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
1625
1626         * file-coding.c: Modify for UTF-2000.
1627
1628 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
1629
1630         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1631         to 0.13 (Takaida).
1632
1633 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
1634
1635         * mule-charset.c (split_builtin_char): Delete builtin support for
1636         `katakana-jisx0201'.
1637         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
1638         BMP area in builtin representation.
1639
1640         * char-ucs.h (MAKE_CHAR): Delete builtin support for
1641         `Vcharset_katakana_jisx0201'.
1642
1643 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
1644
1645         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
1646         (Qisolated): New variable.
1647         (Qinitial): New variable.
1648         (Qmedial): New variable.
1649         (Qfinal): New variable.
1650         (Qvertical): New variable.
1651         (Qsmall): New variable.
1652         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
1653         `Qvertical' and `Qsmall'.
1654         (Qmojikyo_pj_[1 .. 21]): New variable.
1655         (syms_of_mule_charset): Add new symbols `isolated', `initial',
1656         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
1657         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
1658         .. 21]'.
1659
1660 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
1661
1662         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
1663         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
1664         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
1665
1666 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
1667
1668         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
1669         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
1670         BMP.
1671         (Qjapanese_jisx0208_1990): New variable.
1672         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
1673         (complex_vars_of_mule_charset): Add new coded-charset
1674         `japanese-jisx0208-1990'.
1675
1676         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
1677         (MIN_CHAR_JIS_X0208_1990): New macro.
1678         (MAX_CHAR_JIS_X0208_1990): New macro.
1679
1680 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1681
1682         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
1683         coded-charset is not found.
1684
1685 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1686
1687         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
1688         (Fdefine_char): Use `Fmake_char'.
1689
1690 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1691
1692         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
1693         (Vcharset_hiragana_jisx0208): Deleted.
1694         (Vcharset_katakana_jisx0208): Deleted.
1695         (Qideograph_daikanwa): New variable.
1696         (Qhiragana_jisx0208): Deleted.
1697         (Qkatakana_jisx0208): Deleted.
1698         (split_builtin_char): Split `ideograph-daikanwa'.
1699         (Fsplit_char): New implementation for UTF-2000.
1700         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
1701         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
1702         (complex_vars_of_mule_charset): Add new coded-charset
1703         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
1704         `katakana-jisx0208'.
1705
1706         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
1707         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
1708         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
1709         (MIN_CHAR_DAIKANWA): New macro.
1710         (MAX_CHAR_DAIKANWA): New macro.
1711
1712 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1713
1714         * data.c (Fstring_to_number): Don't recognize floating point if
1715         base is not 10.
1716
1717 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1718
1719         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
1720
1721 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1722
1723         * mule-charset.c (Qsquare): New variable.
1724         (to_char_code): Add `Qsquare'.
1725         (syms_of_mule_charset): Add new symbol `square'.
1726
1727 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1728
1729         * mule-charset.c (Qcircle): New variable.
1730         (to_char_code): Add `Qcircle'.
1731         (syms_of_mule_charset): Add new symbol `circle'.
1732
1733 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1734
1735         * mule-charset.c (Qfont): New variable.
1736         (to_char_code): Add `Qfont'.
1737         (syms_of_mule_charset): Add new symbol `font'.
1738
1739 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1740
1741         * mule-charset.c (Qsub): New variable.
1742         (to_char_code): Add `Qsub'.
1743         (syms_of_mule_charset): Add new symbol `sub'.
1744
1745 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1746
1747         * mule-charset.c (Fput_char_attribute): Convert each element of
1748         VALUE to GL position if ATTRIBUTE is a GR-set,
1749
1750 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1751
1752         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
1753         coded-charset is a GR-set.
1754
1755 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1756
1757         * mule-charset.c (Fput_char_attribute): Check each element of
1758         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
1759
1760 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1761
1762         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
1763         UTF-2000.
1764         (Qethiopic_ucs): New variable in UTF-2000.
1765         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
1766         (complex_vars_of_mule_charset): Add new coded-charset
1767         `ethiopic-ucs' in UTF-2000.
1768
1769         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
1770         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
1771         9)'.
1772         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
1773         10)'.
1774         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
1775
1776 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
1777
1778         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
1779         `ascii'.
1780
1781 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1782
1783         * mule-charset.c (Vcharacter_variant_table): New variable.
1784         (Q_ucs): New variable.
1785         (Fchar_variants): New function.
1786         (Fput_char_attribute): Register `->ucs' value to
1787         `Vcharacter_variant_table'.
1788         (syms_of_mule_charset): Add new function `char-variants' and new
1789         symbol `->ucs'.
1790         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
1791
1792 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1793
1794         * mule-charset.c (get_char_code_table): Allow negative character
1795         code.
1796         (put_char_code_table): Likewise.
1797         (Vcharacter_composition_table): New variable.
1798         (Q_decomposition): New variable.
1799         (Qwide): New variable.
1800         (Qnarrow): New variable.
1801         (Qcompat): New variable.
1802         (QnoBreak): New variable.
1803         (Qsuper): New variable.
1804         (Qfraction): New variable.
1805         (to_char_code): New function.
1806         (Fget_composite_char): New function.
1807         (Fput_char_attribute): Register `->decomposition' value to
1808         `Vcharacter_composition_table'.
1809         (syms_of_mule_charset): Add new function `get-composite-char', new
1810         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
1811         `super' and `fraction'.
1812         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
1813
1814 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1815
1816         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
1817         character; copy the return value.
1818
1819 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
1820
1821         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
1822
1823         * mule-charset.c (range_charset_code_point): Must use make_int.
1824         (split_builtin_char): New function.
1825
1826 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
1827
1828         * mule-charset.c (char_byte_table): Change name from
1829         "char-code-table" to "char-byte-table".
1830         (mark_char_code_table): New function.
1831         (char_code_table_equal): New function.
1832         (char_code_table_hash): New function.
1833         (char_code_table_description): New constant.
1834         (char_code_table): New type.
1835         (make_char_code_table): New function.
1836         (copy_char_code_table): New function.
1837         (get_char_code_table): Modify for `char_code_table' type.
1838         (put_char_code_table): Likewise.
1839         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
1840         (Kashiwara).
1841
1842         * char-ucs.h (char_code_table): New type.
1843         (XCHAR_CODE_TABLE): New macro.
1844         (XSETCHAR_CODE_TABLE): New macro.
1845         (CHAR_CODE_TABLE_P): New macro.
1846         (GC_CHAR_CODE_TABLE_P): New macro.
1847         (struct Lisp_Char_Code_Table): New structure.
1848
1849 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
1850
1851         * mule-charset.c (Fmake_charset): Setup byte_offset for
1852         {94|96}^n-set.
1853
1854 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1855
1856         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
1857         character.
1858
1859 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
1860
1861         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
1862         is found.
1863
1864 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
1865
1866         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
1867         charset, it is regarded as a charset.
1868         (put_char_attribute): New function in UTF-2000.
1869         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
1870         charset, mapping-table of the charset is modified.
1871         (Fdefine_char): New function in UTF-2000.
1872         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
1873         `Fput_char_attribute'.
1874         (syms_of_mule_charset): Add new function `define-char' and new
1875         symbol `ucs' in UTF-2000.
1876         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
1877
1878 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
1879
1880         * mule-charset.c (Fcharset_name): Define `byte_offset' in
1881         non-UTF-2000 configuration.
1882
1883 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
1884
1885         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
1886         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
1887
1888         * mule-charset.c (mark_charset): `cs->encoding_table' has been
1889         deleted.
1890         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
1891         (Fset_charset_mapping_table): Likewise.
1892
1893         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
1894         (CHARSET_ENCODING_TABLE): Delete.
1895         (XCHARSET_ENCODING_TABLE): Delete.
1896         (charset_code_point): New interface.
1897
1898 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
1899
1900         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
1901         instead of `charset_get_byte1' and `charset_get_byte2'.
1902
1903         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
1904         (charset_get_byte2): Deleted.
1905
1906 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
1907
1908         * char-ucs.h (SPLIT_CHAR): New inline function.
1909         (breakup_char_1): Use `SPLIT_CHAR'.
1910
1911         * mule-charset.c (range_charset_code_point): New function.
1912         (charset_code_point): New function.
1913
1914         * char-ucs.h (range_charset_code_point): New interface.
1915         (breakup_char_1): Use `range_charset_code_point'.
1916
1917 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
1918
1919         * mule-charset.c (Fmake_charset): Delete unused local variable
1920         `code_offset'.
1921
1922         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
1923         (breakup_char_1): Find a charset and code-point in
1924         `Vcharacter_attribute_table'.
1925
1926 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
1927
1928         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1929         to 0.10 (Yao).
1930
1931 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
1932
1933         * mule-charset.c (Vcharacter_attribute_table): New variable.
1934         (Fchar_attribute_alist): New function.
1935         (Fget_char_attribute): New function.
1936         (Fput_char_attribute): New function.
1937         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
1938         too.
1939         (syms_of_mule_charset): Add new function `char-attribute-alist',
1940         `get-char-attribute' and `put-char-attribute'.
1941         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
1942
1943 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
1944
1945         * mule-charset.c (Fmake_charset): Just use
1946         `get_unallocated_leading_byte'.
1947
1948         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
1949         sets; don't use final-byte based number for private sets.
1950
1951 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
1952
1953         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
1954         integer.
1955
1956 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
1957
1958         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1959         to 0.9.
1960
1961 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1962
1963         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
1964         of `CHAR_LEADING_BYTE' in UTF-2000.
1965
1966         * insdel.c (find_charsets_in_bufbyte_string): Use
1967         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
1968         (find_charsets_in_emchar_string): Likewise.
1969
1970         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
1971         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
1972
1973         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
1974         (CHAR_CHARSET_ID): New macro.
1975
1976 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1977
1978         * chartab.c (get_char_table): Don't use type `Charset_ID' for
1979         charset-id - MIN_LEADING_BYTE.
1980         (put_char_table): Likewise.
1981
1982 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
1983
1984         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
1985         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
1986         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
1987         (CHARSET_ID_OFFSET): New macro.
1988         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
1989         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
1990         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
1991         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
1992         4).
1993         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
1994         5).
1995         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
1996         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
1997         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
1998         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
1999         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
2000
2001 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2002
2003         * mule-charset.c (next_allocated_leading_byte): New variable in
2004         UTF-2000.
2005         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
2006         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
2007         (get_unallocated_leading_byte): Simply use
2008         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
2009         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
2010         UTF-2000.
2011
2012         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
2013         (MAX_LEADING_BYTE_PRIVATE): New macro.
2014         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
2015         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
2016
2017 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2018
2019         * mule-charset.c (Fmake_charset): Allocate final-byte based
2020         charset-id for 94-set, 96-set and 94x94-set.
2021
2022 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2023
2024         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
2025         ambiguous `else'.
2026         (Fmake_charset): Likewise.
2027         (complex_vars_of_mule_charset): Modify the font registry of
2028         `ucs-bmp' not to match `Ethiopic-Unicode'.
2029
2030 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2031
2032         * mule-charset.c (complex_vars_of_mule_charset): Add font
2033         registory of `ucs-bmp'.
2034
2035 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2036
2037         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
2038         coded-charsets in `default-coded-charset-priority-list' when
2039         breaking up a character.
2040
2041         * mule-charset.c (Vcharset_latin_viscii): New variable.
2042         (Qlatin_viscii): New variable.
2043         (make_charset): Don't use `decoding_table'.
2044         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
2045         byte_offset.
2046         (Fset_charset_mapping_table): New implementation.
2047         (syms_of_mule_charset): Add new symbol `latin-viscii'.
2048         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
2049         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
2050         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
2051         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
2052         charset `latin_viscii'.
2053
2054         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
2055         (CHARSET_TYPE_94X94): Change to 1 from 2.
2056         (CHARSET_TYPE_96): Change to 2 from 1.
2057         (CHARSET_TYPE_128): New macro.
2058         (CHARSET_TYPE_128X128): Change to 5 from 4.
2059         (CHARSET_TYPE_256): New macro.
2060         (CHARSET_TYPE_256X256): Change to 7 from 5.
2061         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
2062
2063 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2064
2065         * text-coding.c (char_encode_shift_jis): Refer
2066         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
2067         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
2068
2069         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
2070         (char_byte_table_equal): New function in UTF-2000.
2071         (char_byte_table_hash): New function in UTF-2000.
2072         (char_byte_table_description): New constant in UTF-2000.
2073         (char_byte_table): New type in UTF-2000.
2074         (make_char_byte_table): New function in UTF-2000.
2075         (copy_char_byte_table): New function in UTF-2000.
2076         (make_char_code_table): New macro in UTF-2000.
2077         (get_char_code_table): New function in UTF-2000.
2078         (put_char_code_table): New function in UTF-2000.
2079         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2080         (charset_description): Add setting in UTF-2000.
2081         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
2082         `CHARSET_TO_BYTE1_TABLE(cs)'.
2083         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
2084         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
2085         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
2086         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
2087         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
2088         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
2089         `CHARSET_TO_BYTE2_TABLE(cs)'.
2090
2091         * char-ucs.h (char_byte_table): New type.
2092         (XCHAR_BYTE_TABLE): New macro.
2093         (XSETCHAR_BYTE_TABLE): New macro.
2094         (CHAR_BYTE_TABLE_P): New macro.
2095         (GC_CHAR_BYTE_TABLE_P): New macro.
2096         (struct Lisp_Char_Byte_Table): New structure.
2097         (get_char_code_table): New interface.
2098         (Emchar_to_byte_table): Deleted.
2099         (get_byte_from_character_table): Deleted.
2100         (struct Lisp_Charset): Add `encoding_table'; delete
2101         `to_byte1_table' and `to_byte2_table'.
2102         (CHARSET_ENCODING_TABLE): New macro.
2103         (CHARSET_TO_BYTE1_TABLE): Deleted.
2104         (CHARSET_TO_BYTE2_TABLE): Deleted.
2105         (XCHARSET_ENCODING_TABLE): New macro.
2106         (XCHARSET_TO_BYTE1_TABLE): Deleted.
2107         (XCHARSET_TO_BYTE2_TABLE): Deleted.
2108
2109 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2110
2111         * mule-charset.c (syms_of_mule_charset): Delete charset alias
2112         `vietnamese-viscii-*'.
2113
2114 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2115
2116         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
2117         (Qvietnamese_viscii_upper): New variable.
2118         (Fdefine_charset_alias): New function.
2119         (syms_of_mule_charset): Add new function `define-charset-alias'.
2120         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
2121         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
2122         `latin-viscii-*'.
2123
2124 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
2125
2126         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
2127         (MAX_CHAR_OBS_94x94): New macro.
2128         (breakup_char_1): Support obsolete XEmacs-UCS private code space
2129         for 94x94 sets.
2130
2131         * mule-charset.c (put_byte_from_character_table): Change unit size
2132         from 128 to 256.
2133         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
2134         not defined.
2135         (Fmake_reverse_direction_charset): Modify dummy argument of
2136         `make_charset' for non-UTF-2000 environment.
2137
2138 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2139
2140         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
2141
2142         * mule-charset.c (destroy_byte_from_character_table): New macro.
2143         (latin_jisx0201_to_ucs): Deleted.
2144         (latin_iso8859_2_to_ucs): Deleted.
2145         (latin_iso8859_3_to_ucs): Deleted.
2146         (latin_iso8859_4_to_ucs): Deleted.
2147         (latin_iso8859_9_to_ucs): Deleted.
2148         (latin_viscii_lower_to_ucs): Deleted.
2149         (latin_viscii_upper_to_ucs): Deleted.
2150         (mark_charset): Mark `cs->decoding_table'.
2151         (Fcharset_mapping_table): Fix DOC-string.
2152         (Fset_charset_mapping_table): New function.
2153         (syms_of_mule_charset): Add nwe function
2154         `set-charset-mapping-table'.
2155         (complex_vars_of_mule_charset): Don't setup and use
2156         `latin_*_to_ucs'.
2157
2158 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2159
2160         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
2161         charset.
2162
2163 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2164
2165         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
2166         (Vcharset_katakana_jisx0208): New variable.
2167         (Qhiragana_jisx0208): New variable.
2168         (Qkatakana_jisx0208): New variable.
2169         (make_charset): Add new argument `byte_offset'.
2170         (charset_get_byte1): Modify for new coded-charset definition; use
2171         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
2172         `XCHARSET_BYTE_OFFSET'.
2173         (Fmake_charset): Modify for `make_charset'.
2174         (Fmake_reverse_direction_charset): Likewise.
2175         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
2176         `katakana-jisx0208'.
2177         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
2178         `.'  in font registry of charset `katakana-jisx0201',
2179         `latin-jisx0201', `vietnamese-viscii-lower' and
2180         `vietnamese-viscii-upper'; modify DOC-string of charset
2181         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
2182         registry of charset `japanese-jisx0208' not to use font for JIS
2183         X0208:1990; add new charset `hiragana-jisx0208' and
2184         `katakana-jisx0208'.
2185
2186         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
2187         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
2188         (struct Lisp_Charset): Add `byte_offset'.
2189         (CHARSET_BYTE_OFFSET): New macro.
2190         (XCHARSET_UCS_MIN): New macro.
2191         (XCHARSET_UCS_MAX): New macro.
2192         (XCHARSET_CODE_OFFSET): New macro.
2193         (XCHARSET_BYTE_OFFSET): New macro.
2194         (MIN_CHAR_HIRAGANA): New macro.
2195         (MAX_CHAR_HIRAGANA): New macro.
2196         (MIN_CHAR_KATAKANA): New macro.
2197         (MAX_CHAR_KATAKANA): New macro.
2198         (MAKE_CHAR): Modify for new coded-charset definition; use
2199         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
2200         `XCHARSET_BYTE_OFFSET'.
2201
2202 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2203
2204         * mule-charset.c (CHAR96): Deleted.
2205         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
2206         <Lisp_Object>.
2207         (latin_iso8859_2_to_ucs): Likewise.
2208         (latin_iso8859_3_to_ucs): Likewise.
2209         (latin_iso8859_4_to_ucs): Likewise.
2210         (latin_iso8859_9_to_ucs): Likewise.
2211         (latin_viscii_lower_to_ucs): Likewise.
2212         (latin_viscii_upper_to_ucs): Likewise.
2213         (latin_tcvn5712_to_ucs): Commented out.
2214         (make_charset): Change type of argument `decoding_table' from
2215         <Emchar*> to <Lisp_Object> [vector of characters].
2216         (Fmake_charset): Modify for `make_charset'.
2217         (Fmake_reverse_direction_charset): Likewise.
2218         (Fcharset_mapping_table): New function in UTF-2000.
2219         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
2220         UTF-2000.
2221         (complex_vars_of_mule_charset): Modify for type change of
2222         `*_to_ucs'; modify for `make_charset'.
2223
2224         * char-ucs.h (struct Lisp_Charset): Change type of
2225         `decoding_table' from <Emchar*> to <Lisp_Object>.
2226         (MAKE_CHAR): Modify for new specification of `decoding_table'.
2227
2228 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
2229
2230         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
2231         error with non-UTF-2000-Mule.
2232
2233 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
2234
2235         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
2236         in lisp again].
2237         (Vcharset_chinese_cns11643_4): Likewise.
2238         (Vcharset_chinese_cns11643_5): Likewise.
2239         (Vcharset_chinese_cns11643_6): Likewise.
2240         (Vcharset_chinese_cns11643_7): Likewise.
2241         (Qchinese_cns11643_3): Likewise.
2242         (Qchinese_cns11643_4): Likewise.
2243         (Qchinese_cns11643_5): Likewise.
2244         (Qchinese_cns11643_6): Likewise.
2245         (Qchinese_cns11643_7): Likewise.
2246         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
2247         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
2248         and `chinese-cns11643-7' to lisp/mule/chinese.el.
2249         (complex_vars_of_mule_charset): Likewise.
2250
2251 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2252
2253         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
2254         96-set.
2255         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
2256         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
2257
2258 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
2259
2260         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
2261         0xFF60.
2262         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
2263         (breakup_char_1): Likewise.
2264
2265         * text-coding.c (char_encode_iso2022): Keep designated charsets if
2266         one of them includes the specified character.
2267
2268 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
2269
2270         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
2271
2272 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
2273
2274         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
2275
2276 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
2277
2278         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
2279         definition for non-UTF-2000 Mule.
2280         (latin_iso8859_3_to_ucs): Likewise.
2281         (latin_iso8859_4_to_ucs): Likewise.
2282         (latin_iso8859_9_to_ucs): Likewise.
2283         (latin_jisx0201_to_ucs): Likewise.
2284         (MIN_CHAR_THAI): Likewise.
2285         (MAX_CHAR_THAI): Likewise.
2286         (MIN_CHAR_GREEK): Likewise.
2287         (MAX_CHAR_GREEK): Likewise.
2288         (MIN_CHAR_HEBREW): Likewise.
2289         (MAX_CHAR_HEBREW): Likewise.
2290         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
2291         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
2292         (MIN_CHAR_CYRILLIC): Likewise.
2293         (MAX_CHAR_CYRILLIC): Likewise.
2294
2295 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
2296
2297         * char-ucs.h (breakup_char_1): Use
2298         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
2299         thai-tis620 and katakana-jisx0201 area.
2300
2301 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2302
2303         * char-ucs.h (breakup_char_1): Use
2304         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
2305         area.
2306
2307         * text-coding.c (reset_encoding_stream): Fixed.
2308         (char_encode_ucs4): Delete `& 255'.
2309
2310         * char-ucs.h (breakup_char_1): Use
2311         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
2312
2313 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2314
2315         * file-coding.c (Fmake_coding_system): Don't set up
2316         `codesys->fixed.size'.
2317         (encode_coding_no_conversion): Don't refer
2318         `str->codesys->fixed.size'.
2319
2320 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2321
2322         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
2323         (latin_a_char_to_byte1): Deleted.
2324         (latin_a_char_to_byte2): Deleted.
2325
2326 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2327
2328         * mule-charset.c (make_charset): Add new argument `ucs_min',
2329         `ucs_max' and `code_offset'.
2330         (charset_get_byte1): New implementation [delete specific charset
2331         depended implementations].
2332         (Fmake_charset): Modify for `make_charset'.
2333         (Fmake_reverse_direction_charset): Likewise.
2334         (complex_vars_of_mule_charset): Likewise.
2335
2336         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
2337         `code_offset'.
2338         (CHARSET_UCS_MIN): New macro.
2339         (CHARSET_UCS_MAX): New macro.
2340         (CHARSET_CODE_OFFSET): New macro.
2341         (MAKE_CHAR): Delete charset depended definitions [except
2342         katakana-jisx0201].
2343
2344 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
2345
2346         * char-ucs.h (breakup_char_1): Use
2347         `Vdefault_coded_charset_priority_list' for C0-Controls,
2348         Basic-Latin, C1-Controls and Latin-1-Supplement area.
2349
2350 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2351
2352         * char-ucs.h (charset_get_byte1): New function.
2353         (XCHARSET_GET_BYTE1): Deleted.
2354         (charset_get_byte2): New function.
2355         (XCHARSET_GET_BYTE2): Deleted.
2356         (Vdefault_coded_charset_priority_list): New external variable.
2357         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
2358         `Vdefault_preferred_coded_charset_list'.
2359
2360         * mule-charset.c (charset_get_byte1): New function.
2361         (charset_get_byte2): New function.
2362         (Vdefault_coded_charset_priority_list): New variable.
2363         (vars_of_mule_charset): Add new variable
2364         `default-coded-charset-priority-list'.
2365
2366 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2367
2368         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
2369         (XCHARSET_GET_BYTE2): New inline function.
2370         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
2371         `XCHARSET_GET_BYTE2'.
2372
2373 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2374
2375         * mule-charset.c (make_charset): Initialize
2376         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
2377         NULL if table is not defined.
2378
2379 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2380
2381         * text-coding.c (char_encode_shift_jis): Use
2382         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
2383         `ucs_to_latin_jisx0201'.
2384
2385         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
2386         (ucs_to_latin_iso8859_2): Deleted.
2387         (ucs_to_latin_iso8859_3): Deleted.
2388         (ucs_to_latin_iso8859_4): Deleted.
2389         (ucs_to_latin_iso8859_9): Deleted.
2390         (ucs_to_latin_viscii_lower): Deleted.
2391         (ucs_to_latin_viscii_upper): Deleted.
2392         (ucs_to_latin_tcvn5712): Deleted.
2393         (make_charset): Add new argument `decoding_table'; set up
2394         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
2395         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
2396         `decoding_table' is defined in UTF-2000.
2397         (Fmake_charset): Modify for `make_charset'.
2398         (Fmake_reverse_direction_charset): Likewise.
2399         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
2400         and `GENERATE_96_SET'.
2401
2402         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
2403         (ucs_to_latin_jisx0201): Deleted.
2404         (latin_iso8859_2_to_ucs): Deleted.
2405         (ucs_to_latin_iso8859_2): Deleted.
2406         (latin_iso8859_3_to_ucs): Deleted.
2407         (ucs_to_latin_iso8859_3): Deleted.
2408         (latin_iso8859_4_to_ucs): Deleted.
2409         (ucs_to_latin_iso8859_4): Deleted.
2410         (latin_iso8859_9_to_ucs): Deleted.
2411         (ucs_to_latin_iso8859_9): Deleted.
2412         (latin_viscii_lower_to_ucs): Deleted.
2413         (ucs_to_latin_viscii_lower): Deleted.
2414         (latin_viscii_upper_to_ucs): Deleted.
2415         (ucs_to_latin_viscii_upper): Deleted.
2416         (struct Lisp_Charset): Renamed `encoding_table' to
2417         `to_byte1_table'; add `to_byte2_table'.
2418         (CHARSET_DECODING_TABLE): New macro.
2419         (CHARSET_TO_BYTE1_TABLE): New macro.
2420         (CHARSET_TO_BYTE2_TABLE): New macro.
2421         (XCHARSET_DECODING_TABLE): New macro.
2422         (XCHARSET_TO_BYTE1_TABLE): New macro.
2423         (XCHARSET_TO_BYTE2_TABLE): New macro.
2424         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
2425         tables.
2426         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
2427         don't use `ucs_to_*' tables.
2428
2429 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2430
2431         * text-coding.c (Fmake_coding_system): Don't set up
2432         `codesys->fixed.size'.
2433         (encode_coding_no_conversion): Use `if' instead of `switch'.
2434
2435         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
2436
2437 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2438
2439         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
2440         (Fmake_charset): Modify for `make_charset'.
2441         (Fmake_reverse_direction_charset): Likewise.
2442         (complex_vars_of_mule_charset): Likewise.
2443
2444 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2445
2446         * text-coding.c (char_encode_shift_jis): Use table
2447         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
2448
2449 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2450
2451         * text-coding.c (text_encode_generic): Use `if' instead of
2452         `switch'.
2453         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
2454         decode JIS-Latin.
2455
2456 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2457
2458         * text-coding.c (encode_coding_sjis): Deleted.
2459         (char_encode_shift_jis): New function.
2460         (char_finish_shift_jis): New function.
2461         (reset_encoding_stream): Set up `encode_char' and `finish' for
2462         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
2463         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
2464         (char_encode_utf8): Treat `eol_type'.
2465
2466 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2467
2468         * file-coding.c (decode_coding_iso2022): Use
2469         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
2470
2471 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2472
2473         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2474         to 0.7 (Hirano).
2475
2476 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2477
2478         * char-lb.h (CHAR_COLUMNS): New macro.
2479
2480 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2481
2482         * text-coding.c (char_encode_ucs4): New function.
2483         (char_finish_ucs4): New function.
2484         (encode_coding_ucs4): Deleted.
2485         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
2486         (text_encode_generic): Delete local variable `charset' and `half'.
2487         (ucs_to_mule_table): Deleted.
2488         (mule_to_ucs_table): Deleted.
2489         (Fset_ucs_char): Deleted.
2490         (ucs_to_char): Deleted.
2491         (Fucs_char): Deleted.
2492         (Fset_char_ucs): Deleted.
2493         (Fchar_ucs): Deleted.
2494         (decode_ucs4): Deleted.
2495         (mule_char_to_ucs4): Deleted.
2496         (encode_ucs4): Deleted.
2497         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
2498         (decode_coding_utf8): Likewise.
2499         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
2500         (char_encode_iso2022): Fixed.
2501         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
2502         `Fset_char_ucs' and `Fchar_ucs'.
2503         (complex_vars_of_file_coding): Don't initialize
2504         `ucs_to_mule_table'.
2505
2506         * objects-tty.c (tty_initialize_font_instance): Don't use
2507         `XCHARSET_COLUMNS'.
2508
2509         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
2510         UTF-2000.
2511
2512         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
2513         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
2514
2515         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
2516         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
2517         (emchar_string_displayed_columns): Likewise.
2518
2519         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
2520         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
2521         (string_column_at_point): Likewise.
2522         (Fmove_to_column): Likewise.
2523
2524         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
2525         `encoding_table' and `decoding_table'.
2526         (CHARSET_REP_BYTES): Deleted.
2527         (XCHARSET_REP_BYTES): Deleted.
2528         (XCHARSET_COLUMNS): Deleted.
2529         (CHAR_COLUMNS): New macro.
2530         (lookup_composite_char): Deleted unconditionally.
2531         (composite_char_string): Likewise.
2532
2533 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2534
2535         * char-ucs.h (Emchar_to_byte_table): New type.
2536         (get_byte_from_character_table): New function interface.
2537         (Vcharset_latin_jisx0201): New variable.
2538         (latin_jisx0201_to_ucs): New variable.
2539         (ucs_to_latin_jisx0201): New variable.
2540         (Vcharset_latin_iso8859_2): New variable.
2541         (latin_iso8859_2_to_ucs): New variable.
2542         (ucs_to_latin_iso8859_2): New variable.
2543         (Vcharset_latin_iso8859_3): New variable.
2544         (latin_iso8859_3_to_ucs): New variable.
2545         (ucs_to_latin_iso8859_3): New variable.
2546         (Vcharset_latin_iso8859_4): New variable.
2547         (latin_iso8859_4_to_ucs): New variable.
2548         (ucs_to_latin_iso8859_4): New variable.
2549         (Vcharset_latin_iso8859_9): New variable.
2550         (latin_iso8859_9_to_ucs): New variable.
2551         (ucs_to_latin_iso8859_9): New variable.
2552         (Vcharset_latin_viscii_lower): New variable.
2553         (latin_viscii_lower_to_ucs): New variable.
2554         (ucs_to_latin_viscii_lower): New variable.
2555         (Vcharset_latin_viscii_upper): New variable.
2556         (latin_viscii_upper_to_ucs): New variable.
2557         (ucs_to_latin_viscii_upper): New variable.
2558         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
2559         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
2560         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
2561         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
2562         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
2563         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
2564         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
2565         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
2566         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
2567         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
2568
2569         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
2570         (Vcharset_latin_viscii_upper): New variable.
2571         (make_byte_from_character_table): New function.
2572         (put_byte_from_character_table): New function.
2573         (get_byte_from_character_table): New function.
2574         (CHAR96): New macro.
2575         (ucs_to_latin_jisx0201): New variable.
2576         (latin_jisx0201_to_ucs): New variable.
2577         (ucs_to_latin_iso8859_2): New variable.
2578         (latin_iso8859_2_to_ucs): New variable.
2579         (ucs_to_latin_iso8859_3): New variable.
2580         (latin_iso8859_3_to_ucs): New variable.
2581         (ucs_to_latin_iso8859_4): New variable.
2582         (latin_iso8859_4_to_ucs): New variable.
2583         (ucs_to_latin_iso8859_9): New variable.
2584         (latin_iso8859_9_to_ucs): New variable.
2585         (ucs_to_latin_viscii_lower): New variable.
2586         (latin_viscii_lower_to_ucs): New variable.
2587         (ucs_to_latin_viscii_upper): New variable.
2588         (latin_viscii_upper_to_ucs): New variable.
2589         (ucs_to_latin_tcvn5712): New variable.
2590         (latin_tcvn5712_to_ucs): New variable.
2591         (Qlatin_viscii_lower): New variable.
2592         (Qlatin_viscii_upper): New variable.
2593         (syms_of_mule_charset): Set up new symbol
2594         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
2595         (complex_vars_of_mule_charset): Set up new charset
2596         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
2597         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
2598         `ucs_to_<CHARSET>' tables.
2599
2600 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
2601
2602         * text-coding.c: New file.
2603
2604 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2605
2606         * mule-charset.c (Fmake_char): Fix problem of 256-set.
2607
2608         * char-ucs.h (Vcharset_ucs_bmp): New variable.
2609         (MAKE_CHAR): Modify for `ucs-bmp'.
2610         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
2611         non-MULE characters of BMP.
2612
2613 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
2614
2615         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2616         to 0.6.
2617
2618 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2619
2620         * lstream.h:
2621         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
2622         - Include character.h for `CHAR_ASCII_P'.
2623
2624         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
2625
2626         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
2627         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
2628
2629         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
2630         (BYTE_C0_P): Likewise.
2631         (BYTE_C1_P): Likewise.
2632         (Lstream_get_emchar_1): Likewise.
2633         (Lstream_fput_emchar): Likewise.
2634         (Lstream_funget_emchar): Likewise.
2635         (copy_internal_to_external): Likewise.
2636         (copy_external_to_internal): Likewise.
2637
2638         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
2639         (BYTE_C0_P): Likewise.
2640         (BYTE_C1_P): Likewise.
2641         (Lstream_get_emchar_1): Likewise.
2642         (Lstream_fput_emchar): Likewise.
2643         (Lstream_funget_emchar): Likewise.
2644         (copy_internal_to_external): Likewise.
2645         (copy_external_to_internal): Likewise.
2646
2647         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
2648         (REP_BYTES_BY_FIRST_BYTE): Likewise.
2649
2650         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
2651         (BYTE_ASCII_P): Moved to mb-1byte.h.
2652
2653 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2654
2655         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
2656
2657         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
2658         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
2659         (VALID_CHARPTR_P): Moved to mb-*byte.h.
2660         (VALIDATE_CHARPTR_BACKWARD): Likewise.
2661         (VALIDATE_CHARPTR_FORWARD): Likewise.
2662         (simple_charptr_emchar): Moved to mb-multibyte.h.
2663         (simple_set_charptr_emchar): Likewise.
2664         (simple_charptr_copy_char): Likewise.
2665         (non_ascii_charptr_emchar): Likewise.
2666         (non_ascii_set_charptr_emchar): Likewise.
2667         (non_ascii_charptr_copy_char): Likewise.
2668         (charptr_emchar): Moved to mb-*byte.h.
2669         (set_charptr_emchar): Likewise.
2670         (charptr_copy_char): Likewise.
2671
2672         * mb-1byte.h, mb-multibyte.h: New files.
2673
2674 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2675
2676         * mb-utf-8.h (MULTIBYTE): New macro.
2677         (MAX_EMCHAR_LEN): Moved from buffer.h.
2678         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
2679
2680         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
2681
2682         * mb-lb.h, multibyte.h: New files.
2683
2684         * char-1byte.h (Charset_ID): Moved from buffer.h.
2685         (MIN_LEADING_BYTE): Likewise.
2686         (LEADING_BYTE_ASCII): Likewise.
2687         (NUM_LEADING_BYTES): Likewise.
2688         (CHARSETP): Likewise.
2689         (CHARSET_BY_LEADING_BYTE): Likewise.
2690         (XCHARSET_LEADING_BYTE): Likewise.
2691         (XCHARSET_GRAPHIC): Likewise.
2692         (XCHARSET_COLUMNS): Likewise.
2693         (XCHARSET_DIMENSION): Likewise.
2694         (CHAR_CHARSET): Likewise.
2695         (CHAR_LEADING_BYTE): Likewise.
2696         (BREAKUP_CHAR): Likewise.
2697         (Vcharset_ascii): Likewise.
2698
2699         * buffer.h: Include multibyte.h unconditionally.
2700         (VALID_CHARPTR_P): Moved to multibyte.h.
2701         (ASSERT_VALID_CHARPTR): Likewise.
2702         (REAL_INC_CHARPTR): Likewise.
2703         (REAL_INC_CHARBYTIND): Likewise.
2704         (REAL_DEC_CHARPTR): Likewise.
2705         (INC_CHARPTR): Likewise.
2706         (INC_CHARBYTIND): Likewise.
2707         (DEC_CHARPTR): Likewise.
2708         (VALIDATE_CHARPTR_BACKWARD): Likewise.
2709         (VALIDATE_CHARPTR_FORWARD): Likewise.
2710         (charptr_n_addr): Likewise.
2711         (MAX_EMCHAR_LEN): Moved to mb-*.h.
2712         (simple_charptr_emchar): Moved to multibyte.h.
2713         (simple_set_charptr_emchar): Likewise.
2714         (simple_charptr_copy_char): Likewise.
2715         (non_ascii_charptr_emchar): Likewise.
2716         (non_ascii_set_charptr_emchar): Likewise.
2717         (non_ascii_charptr_copy_char): Likewise.
2718         (charptr_emchar): Likewise.
2719         (set_charptr_emchar): Likewise.
2720         (charptr_copy_char): Likewise.
2721         (charptr_emchar_n): Likewise.
2722         (Charset_ID): Moved to char-1byte.h.
2723         (Vcharset_ascii): Likewise.
2724         (CHAR_CHARSET): Likewise.
2725         (CHAR_LEADING_BYTE): Likewise.
2726         (LEADING_BYTE_ASCII): Likewise.
2727         (NUM_LEADING_BYTES): Likewise.
2728         (MIN_LEADING_BYTE): Likewise.
2729         (CHARSETP): Likewise.
2730         (CHARSET_BY_LEADING_BYTE): Likewise.
2731         (XCHARSET_LEADING_BYTE): Likewise.
2732         (XCHARSET_GRAPHIC): Likewise.
2733         (XCHARSET_COLUMNS): Likewise.
2734         (XCHARSET_DIMENSION): Likewise.
2735         (BREAKUP_CHAR): Likewise.
2736
2737 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2738
2739         * character.h: Add document about interface for characters.
2740
2741         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
2742         (MAKE_CHAR): Delete comment about
2743         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
2744         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
2745         (BREAKUP_CHAR): Modify name of arguments.
2746         (CHAR_CHARSET): Modify name of argument.
2747
2748         * buffer.h: Delete document about Emchar accessors.
2749
2750 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2751
2752         * character.h (CHAR_INTP): Moved from buffer.h
2753         (CHAR_OR_CHAR_INTP): Likewise.
2754         (XCHAR_OR_CHAR_INT): Likewise.
2755         (CHECK_CHAR_COERCE_INT): Likewise.
2756
2757         * buffer.h (CHAR_INTP): Moved to character.h
2758         (CHAR_OR_CHAR_INTP): Likewise.
2759         (XCHAR_OR_CHAR_INT): Likewise.
2760         (CHECK_CHAR_COERCE_INT): Likewise.
2761
2762 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2763
2764         * character.h:
2765         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
2766         - Include char-1byte.h, char-lb.h or char-ucs.h.
2767
2768         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
2769
2770         * buffer.h: Include character unconditionally.
2771         (valid_char_p): Moved to char-*.h.
2772         (non_ascii_valid_char_p): Moved to char-lb.h.
2773
2774         * char-1byte.h, char-lb.h, char-ucs.h: New files.
2775
2776 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2777
2778         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
2779         in UTF-2000 because it is not ported yet and not to use
2780         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
2781         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
2782         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
2783
2784         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
2785         (CHAR_ASCII_P): Moved from character.h.
2786
2787         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
2788         (CHAR_ASCII_P): Likewise.
2789         (CHAR_FIELD1_MASK): Deleted.
2790         (CHAR_FIELD2_MASK): Deleted.
2791         (CHAR_FIELD3_MASK): Deleted.
2792         (MAX_CHAR_BASIC_LATIN): New macro.
2793         (CHAR_FIELD1): Deleted.
2794         (CHAR_FIELD2_INTERNAL): Deleted.
2795         (CHAR_FIELD3_INTERNAL): Deleted.
2796         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
2797         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
2798         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
2799         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
2800         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
2801         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
2802         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
2803         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
2804         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
2805         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
2806         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
2807         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
2808         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
2809         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
2810         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
2811         (MIN_CHAR_COMPOSITION): Deleted.
2812         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
2813         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
2814
2815 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
2816
2817         * buffer.h: Include mb-utf-8.h in UTF-2000.
2818
2819         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
2820
2821         * mb-utf-8.h: New file.
2822
2823 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
2824
2825         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
2826         instead of `int'.
2827
2828         * mule-charset.h, buffer.h (Charset_ID): New type.
2829
2830 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
2831
2832         * mule-canna.c (c2mu): Use `MAKE_CHAR',
2833         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
2834         instead of `MULE_CHAR_PRIVATE_OFFSET',
2835         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
2836         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
2837         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
2838
2839         * character.h (Vcharset_japanese_jisx0212): New variable
2840         definition.
2841
2842 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
2843
2844         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
2845         (charset_by_attributes): Delete array about direction.
2846         (latin_a_char_to_charset): New variable in UTF-2000.
2847         (latin_a_char_to_byte1): New variable in UTF-2000.
2848         (latin_a_char_to_byte2): New variable in UTF-2000.
2849         (Qucs_bmp): New variable.
2850         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
2851         `Bufbyte'.
2852         (next_allocated_2_byte_leading_byte): Likewise.
2853         (non_ascii_set_charptr_emchar): Likewise.
2854         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
2855         `CHARSET_TYPE_256X256' in UTF-2000; modify for
2856         `charset_by_attributes'.
2857         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
2858         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
2859         and `CHARSET_BY_LEADING_BYTE'.
2860         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
2861         `utf-2000-version' to `vars_of_mule_charset'.
2862         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
2863         define `leading-code-private-11' in UTF-2000; move setting of
2864         `utf-2000-version' from `syms_of_mule_charset'.
2865         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
2866         UTF-2000.
2867
2868         * character.h (Charset_ID): New type.
2869         (LEADING_BYTE_UCS_BMP): New macro.
2870         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
2871         (CHARSET_ID_OFFSET_94): New macro.
2872         (MIN_CHARSET_ID_PRIVATE_94): New macro.
2873         (MAX_CHARSET_ID_PRIVATE_94): New macro.
2874         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
2875         final-byte.
2876         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
2877         (LEADING_BYTE_LATIN_JISX0201): Likewise.
2878         (CHARSET_ID_OFFSET_96): New macro.
2879         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
2880         CHARSET_ID_OFFSET_96 and final-byte.
2881         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
2882         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
2883         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
2884         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
2885         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
2886         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
2887         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
2888         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
2889         (LEADING_BYTE_THAI_TIS620): Likewise.
2890         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
2891         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
2892         (CHARSET_ID_OFFSET_94x94): New macro.
2893         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
2894         CHARSET_ID_OFFSET_94x94 and final-byte.
2895         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
2896         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
2897         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
2898         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
2899         (LEADING_BYTE_CHINESE_GB2312): Likewise.
2900         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
2901         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
2902         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
2903         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
2904         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
2905         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
2906         (CHARSET_TYPE_128X128): New macro.
2907         (CHARSET_TYPE_256X256): New macro.
2908         (XCHARSET_PRIVATE_P): Delete unconditionally.
2909         (charset_by_attributes): Delete array about direction.
2910         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
2911         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
2912         (MIN_CHAR_94): New macro.
2913         (MAX_CHAR_94): New macro.
2914         (MIN_CHAR_96): New macro.
2915         (MAX_CHAR_96): New macro.
2916         (MIN_CHAR_94x94): New macro.
2917         (MAX_CHAR_94x94): New macro.
2918         (MIN_CHAR_96x96): New macro.
2919         (MAX_CHAR_96x96): New macro.
2920         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
2921         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
2922         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
2923         - 32)'.
2924         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
2925         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
2926         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
2927         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
2928         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
2929         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
2930         `XCHARSET_LEADING_BYTE' to make code-point.
2931         (latin_a_char_to_charset): New variable.
2932         (latin_a_char_to_byte1): New variable.
2933         (latin_a_char_to_byte2): New variable.
2934         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
2935         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
2936         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
2937
2938         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
2939         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
2940         (find_charsets_in_emchar_string): Likewise.
2941         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
2942
2943         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
2944         `int'.
2945         (decode_coding_iso2022): Likewise.
2946
2947         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
2948         of `unsigned char'.
2949
2950         * redisplay.c (redisplay_text_width_emchar_string): Use
2951         `Charset_ID' instead of `unsigned char'.
2952         (redisplay_frame_text_width_string): Likewise.
2953
2954         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
2955         `unsigned char'.
2956
2957         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
2958         instead of `unsigned char'.
2959         (face_cachel_charset_font_metric_info): Likewise.
2960
2961         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
2962         (get_non_ascii_char_table_value): Likewise.
2963         (get_char_table): Likewise.
2964         (put_char_table): Likewise.
2965         (map_over_other_charset): Likewise.
2966         (map_char_table): Likewise.
2967
2968         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
2969         instead of `unsigned char'.
2970
2971 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
2972
2973         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
2974         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
2975
2976         * mule-charset.c (leading_code_private_11): Don't define in
2977         UTF-2000.
2978
2979         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
2980         in UTF-2000 because it is not ported yet and not to use
2981         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
2982
2983 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
2984
2985         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
2986
2987 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2988
2989         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
2990         in UTF-2000.
2991
2992         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
2993         of unsigned char to store leading-byte.
2994
2995         * chartab.c (get_non_ascii_char_table_value): Don't use
2996         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
2997
2998         * file-coding.c (encode_coding_big5): Delete bogus implementation
2999         in UTF2000.
3000
3001         * character.h (LEADING_BYTE_*): Delete definition for
3002         non-UTF-2000.
3003         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
3004         (LEADING_BYTE_PREFIX_P): Deleted.
3005         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
3006         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
3007         (BUFBYTE_LEADING_BYTE_P): Deleted.
3008         (CHARSET_PRIVATE_P): Deleted unconditionally.
3009         (rep_bytes_by_first_byte): Deleted unconditionally.
3010         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
3011         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
3012         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3013         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
3014         (CHAR_FIELD2): Deleted.
3015         (CHAR_FIELD3): Deleted.
3016         (MAKE_CHAR): Delete definition for non-UTF-2000.
3017         (BREAKUP_CHAR_1_UNSAFE): Deleted.
3018         (breakup_char_1): New implementation.
3019         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
3020         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
3021
3022 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3023
3024         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
3025         condition.
3026
3027 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3028
3029         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
3030         (CHARSET_PRIVATE_P): Likewise.
3031         (XCHARSET_PRIVATE_P): Likewise.
3032         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
3033
3034         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
3035         UTF2000.
3036         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
3037
3038 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3039
3040         * character.h (LEADING_BYTE_*): Changed in UTF2000.
3041         (NUM_LEADING_BYTES): Changed from 128 to 256.
3042         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3043         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
3044         UTF2000.
3045         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3046
3047         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
3048         UTF2000.
3049         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
3050         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
3051         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
3052         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
3053         (Qchinese_cns11643_3): New variable in UTF2000.
3054         (Qchinese_cns11643_4): New variable in UTF2000.
3055         (Qchinese_cns11643_5): New variable in UTF2000.
3056         (Qchinese_cns11643_6): New variable in UTF2000.
3057         (Qchinese_cns11643_7): New variable in UTF2000.
3058         (syms_of_mule_charset): Define `chinese-cns11643-3',
3059         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3060         and `chinese-cns11643-7' in UTF2000.
3061         (vars_of_mule_charset): Initialize
3062         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
3063         + 1 in UTF2000.
3064         (complex_vars_of_mule_charset): Setup charset
3065         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
3066         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
3067
3068 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3069
3070         * mule-charset.c: Move setting for `leading-code-private-11' from
3071         `syms_of_mule_charset' to `vars_of_mule_charset'.
3072
3073 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3074
3075         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
3076         and `NUM_LEADING_BYTES' in assert.
3077
3078 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3079
3080         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
3081         instead of 128.
3082         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
3083         `NUM_LEADING_BYTES' instead of 128.
3084
3085 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3086
3087         * mule-charset.h (charset_by_leading_byte): Use
3088         `NUM_LEADING_BYTES' instead of 128.
3089         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
3090
3091         * mule-charset.c (charset_by_leading_byte): Use
3092         `NUM_LEADING_BYTES' instead of 128.
3093         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
3094
3095         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
3096         128.
3097
3098 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
3099
3100         * mule-charset.c (syms_of_mule_charset): Update to
3101         0.4 (Shin-Imamiya).
3102
3103 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
3104
3105         * file-coding.c (encode_coding_sjis): New implementation for
3106         UTF2000.  (decode_coding_sjis): Ditto.
3107
3108 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3109
3110         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
3111         Don't define in UTF2000.
3112
3113         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
3114         defined.
3115
3116         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3117         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
3118         MULE.
3119
3120 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3121
3122         * config.h.in (CHAR_IS_UCS4): New macro.
3123
3124         * mule-charset.c (rep_bytes_by_first_byte): Modify for
3125         conventional MULE representation.
3126         (syms_of_mule_charset): Update to 0.3 (Imamiya).
3127
3128         * mule-charset.h: Reverted to original.
3129
3130         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3131         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
3132         "mule-charset.h" if CHAR_IS_UCS4 is defined.
3133
3134         * character.h: New file.
3135
3136         * file-coding.c (Fmake_coding_system): Set 1 to
3137         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
3138         defined.
3139         (encode_coding_no_conversion): New implementation for UTF2000.
3140
3141         * file-coding.h (struct Lisp_Coding_System): Add new member
3142         `fixed.size'.
3143
3144 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
3145
3146         * file-coding.c (decode_coding_iso2022): Code-point arguments of
3147         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
3148         (encode_coding_iso2022): New implementation for UTF2000.
3149
3150 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3151
3152         * mule-canna.c (c2mu): New implementation for UTF2000.
3153         (m2c): Likewise.
3154
3155 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3156
3157         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
3158
3159 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3160
3161         * file-coding.c (reset_encoding_stream): Set 0 to
3162         `str->iso2022.current_char_boundary' in UTF2000.
3163         (encode_utf8): Don't define in UTF2000.
3164         (encode_coding_utf8): New implementation for UTF-8 representation
3165         of UTF2000.
3166         (complex_vars_of_file_coding): Define coding-system `utf-8'.
3167
3168 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3169
3170         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
3171
3172         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
3173         UTF2000.
3174         (REP_BYTES_BY_FIRST_BYTE): Likewise.
3175
3176         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
3177
3178         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
3179         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
3180         as UTF-8 in UTF2000.
3181         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
3182         (non_ascii_valid_char_p): Don't define in UTF2000.
3183         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
3184         (Lstream_get_emchar_1): Likewise.
3185         (utf-2000-version): New variable in UTF2000.
3186
3187         * lread.c (read_escape): Add new reader `u'.
3188
3189         * insdel.c (three_to_one_table): Don't define in UTF2000.
3190         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
3191         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
3192         UTF2000.
3193         (bytind_to_bufpos_func): Likewise.
3194         (buffer_mule_signal_inserted_region): Likewise.
3195         (vars_of_insdel): Don't initialize `three_to_one_table'.
3196         (init_buffer_text): Use `buf->text->mule_size' instead of
3197         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
3198         UTF2000.
3199
3200         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
3201         UTF-8 representation in UTF2000.
3202         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
3203         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
3204         (decode_coding_iso2022): Don't define local variable `lb' in
3205         UTF2000; don't use LEADING_BYTE in UTF2000; use
3206         `DECODE_ADD_UCS_CHAR' in UTF2000.
3207         (convert_to_external_format): Decode as UTF-8 in UTF2000.
3208
3209         * config.h.in (UTF2000): New macro.
3210
3211         * buffer.h (struct buffer_text): Add new member `mule_size' and
3212         don't add `mule_shifter' and `mule_three_p' in UTF2000.
3213         (valid_char_p): Return always 1 in UTF2000.
3214         (MAX_EMCHAR_LEN): 6 in UTF2000.
3215         (three_to_one_table): Don't define in UTF2000.
3216         (real_bufpos_to_bytind): Modify for UTF-8 representation in
3217         UTF2000.
3218         (real_bytind_to_bufpos): Likewise.
3219
3220         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
3221
3222 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3223
3224         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
3225         representation change.
3226         (Vutf_2000_version): New variable.
3227         (leading_code_private_11): New variable.
3228         (syms_of_mule_charset): Add new variables `utf-2000-version' and
3229         `leading-code-private-11'.
3230
3231         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
3232         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
3233         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
3234         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
3235         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
3236         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
3237         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
3238         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
3239         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
3240         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
3241         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
3242         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
3243         (MIN_CHAR_GREEK): New macro.
3244         (MAX_CHAR_GREEK): New macro.
3245         (MIN_CHAR_CYRILLIC): New macro.
3246         (MAX_CHAR_CYRILLIC): New macro.
3247         (MIN_CHAR_HEBREW): New macro.
3248         (MAX_CHAR_HEBREW): New macro.
3249         (MIN_CHAR_THAI): New macro.
3250         (MAX_CHAR_THAI): New macro.
3251         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
3252         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
3253         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
3254         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
3255         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
3256         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
3257         (CHAR_FIELD2): New inline function.
3258         (CHAR_FIELD3): New inline function.
3259         (MULE_CHAR_PRIVATE_OFFSET): New macro.
3260         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
3261         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
3262         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
3263         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
3264         (MIN_CHAR_COMPOSITION): Likewise.
3265         (CHAR_LEADING_BYTE): Modified for character representation change.
3266         (MAKE_CHAR): Likewise.
3267
3268         * lisp.h (Vcharset_latin_iso8859_1): New variable.
3269         (Vcharset_greek_iso8859_7): Likewise.
3270         (Vcharset_cyrillic_iso8859_5): Likewise.
3271         (Vcharset_hebrew_iso8859_8): Likewise.
3272         (Vcharset_thai_tis620): Likewise.
3273         (Vcharset_katakana_jisx0201): Likewise.
3274
3275 2001-01-17  Martin Buchholz <martin@xemacs.org>
3276
3277         * XEmacs 21.2.41 "Polyhymnia" is released.
3278
3279 2001-01-16  Didier Verna  <didier@xemacs.org>
3280
3281         * glyphs.c (image_instantiate): don't use fallbacks when
3282         instantiating a face's background pixmap by inheritance.
3283
3284 2001-01-14  Mike Sperber <mike@xemacs.org>
3285
3286         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
3287         Conditionalize accordingly.
3288
3289 2001-01-16  Martin Buchholz  <martin@xemacs.org>
3290
3291         * dumper.c (pdump_file_get): Fix a compiler warning.
3292
3293 2001-01-15  Martin Buchholz  <martin@xemacs.org>
3294
3295         Make Purify happy when pdumping.
3296         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
3297         iniitalizing all bits of new lisp object memory.
3298         * symbols.c (Fmake_local_variable): Likewise.
3299         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
3300         * symbols.c (Fdefvaralias): Likewise.
3301         * mule-charset.c (vars_of_mule_charset): Likewise.
3302
3303 2001-01-15  Martin Buchholz  <martin@xemacs.org>
3304         Add the `-nd' flag when running pre-dump operations under the debugger.
3305         * .dbxrc (run-temacs): Add `-nd'.
3306         * .dbxrc (update-elc): Likewise.
3307         * .dbxrc (dump-temacs): Likewise.
3308         * .gdbinit (run-temacs): Likewise.
3309         * .gdbinit (check-temacs): Likewise.
3310         * .gdbinit (update-elc): Likewise.
3311         * .gdbinit (dump-temacs): Likewise.
3312
3313 2001-01-14  Martin Buchholz  <martin@xemacs.org>
3314
3315         Allow building 64-bit executables on AIX with GNU malloc, e.g.
3316         export OBJECT_MODE=64
3317         configure --pdump --use-union-type=no
3318         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
3319         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
3320
3321         * miscplay.c (sndcnv8U_2mono):
3322         Avoid two uses of `++' in the same expression.
3323         Suppresses a GCC warning.
3324
3325 2001-01-13  Martin Buchholz  <martin@xemacs.org>
3326
3327         Make sure future compilers don't miscompile alloc.c.
3328         * alloc.c:
3329         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
3330         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
3331
3332 2001-01-12  Martin Buchholz  <martin@xemacs.org>
3333
3334         * dumper.c: A little post-pdump-rename comment fixup.
3335
3336 2001-01-09  Jerry James  <james@eecs.ku.edu>
3337
3338         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
3339
3340 2001-01-13  Martin Buchholz  <martin@xemacs.org>
3341
3342         * *.[ch]: Globally rename symbols using the following `pdump-rename'
3343         script:
3344         #!/bin/sh
3345         replace_symbol () {
3346           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
3347         }
3348
3349         replace_symbol pdump_wire_lists pdump_weak_object_chains
3350         replace_symbol pdump_wire_list dump_add_weak_object_chain
3351
3352         replace_symbol pdump_wires pdump_root_objects
3353         replace_symbol pdump_wire dump_add_root_object
3354
3355         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
3356         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
3357
3358         replace_symbol dumpstructinfos pdump_root_struct_ptrs
3359         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
3360         replace_symbol dumpstructinfo pdump_root_struct_ptr
3361         replace_symbol dumpstruct dump_add_root_struct_ptr
3362
3363         replace_symbol dumpopaque dump_add_opaque
3364         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
3365         replace_symbol dumpopaqueinfos pdump_opaques
3366         replace_symbol dumpopaqueinfo pdump_opaque
3367
3368         replace_symbol nb_structdump nb_root_struct_ptrs
3369         replace_symbol nb_opaquedump nb_opaques
3370
3371         replace_symbol align_table pdump_align_table
3372         replace_symbol dump_header pdump_header
3373
3374         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
3375         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
3376
3377
3378 2001-01-12  Martin Buchholz  <martin@xemacs.org>
3379
3380         * s/aix4.h: Keep the C for AIX compiler from overaggressively
3381         optimizing bytecount_to_charcount().
3382
3383 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
3384
3385         * config.h.in:
3386         (HAVE_DLFCN_H): Removed.
3387         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
3388
3389 2001-01-06  Martin Buchholz  <martin@xemacs.org>
3390
3391         Portable dumper maintainability improvements.
3392         * alloc.c (staticpro):
3393         * alloc.c (staticpro_nodump):
3394         * alloc.c (garbage_collect_1):
3395         * alloc.c (reinit_alloc_once_early):
3396         * alloc.c (init_alloc_once_early):
3397         * alloc.c: Move dumper functions to alloc.c.
3398         * dumper.c (pdump_backtrace):
3399         * dumper.c (pdump_dump_structs):
3400         * dumper.c (pdump_dump_opaques):
3401         * dumper.c (pdump_dump_rtables):
3402         * dumper.c (pdump_dump_wired):
3403         * dumper.c (pdump):
3404         * dumper.c (pdump_load_check):
3405         * dumper.c (pdump_load_finish):
3406         * dumper.c (pdump_file_unmap):
3407         * dumper.c (pdump_file_get):
3408         * dumper.c (pdump_resource_free):
3409         * dumper.c (pdump_resource_get):
3410         * dumper.c (pdump_file_free):
3411         * dumper.c (pdump_file_try):
3412         * dumper.c (pdump_load):
3413         Remove fixed size limits on staticpro(), staticpro_nodump(),
3414         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
3415         Remove custom code for dumping lrecord_implementations_table - use
3416         dumpopaque instead.
3417         Remove (most of the) custom code for dumping staticpros - dump it
3418         like any other dynarr.
3419
3420         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
3421         * dumper.c: Moved functions from alloc.c.
3422         * alloc.c (dumpstruct): Moved to dumper.c.
3423         * alloc.c (dumpopaque): Likewise.
3424         * alloc.c (pdump_wire): Likewise.
3425         * alloc.c (pdump_wire_list): Likewise.
3426
3427         * lisp.h (Dynarr_sizeof): New.
3428         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
3429         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
3430         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
3431
3432         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
3433         * lisp.h (dumpopaque): ditto.
3434         * lisp.h (pdump_wire): ditto.
3435         * lisp.h (pdump_wire_list): ditto.
3436
3437 2001-01-09  Martin Buchholz  <martin@xemacs.org>
3438
3439         * make-src-depend (PrintPatternDeps):
3440         Use `sort' to make output independent of perl version.
3441
3442 2001-01-08  Martin Buchholz  <martin@xemacs.org>
3443
3444         Port to Netbsd 1.5.
3445         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
3446         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
3447
3448 2001-01-03  Didier Verna  <didier@xemacs.org>
3449
3450         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
3451         that `focus_frame' is alive before thinking of calling
3452         `redisplay_redraw_cursor' on it.
3453
3454 2001-01-08  Martin Buchholz <martin@xemacs.org>
3455
3456         * XEmacs 21.2.40 is released.
3457
3458 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
3459
3460         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
3461
3462 2001-01-06  Martin Buchholz  <martin@xemacs.org>
3463
3464         * alloc.c (dbg_valmask): Make const.
3465         * alloc.c (dbg_typemask): Make const.
3466         * alloc.c (dbg_USE_UNION_TYPE): Make const.
3467         * alloc.c (dbg_valbits): Make const.
3468         * alloc.c (dbg_gctypebits): Make const.
3469
3470 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
3471
3472         * redisplay-x.c (x_bevel_area):
3473         redisplay.h (struct rune):
3474         Typo fixes in comments.
3475
3476 2001-01-05  Andy Piper  <andy@xemacs.org>
3477
3478         * glyphs-x.c (x_redisplay_widget): use size changed for offset
3479         adjustment.
3480
3481         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
3482
3483 2001-01-05  Martin Buchholz  <martin@xemacs.org>
3484
3485         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
3486
3487         * mule-ccl.c (stack_idx_of_map_multiple):
3488         Non const global data must not be initialized!
3489         Found by MIYASHITA Hisashi.
3490
3491 2001-01-02  Andy Piper  <andy@xemacs.org>
3492
3493         * frame.c (change_frame_size): make sure frame size is always
3494         marked as changed.
3495
3496         * glyphs.c (image_instance_layout): minor code reuse.
3497
3498         * window.c (Fcurrent_window_configuration): revert previous
3499         change.
3500
3501 2001-01-02  Martin Buchholz  <martin@xemacs.org>
3502
3503         * glyphs.h:
3504         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
3505
3506 2000-12-31  Andy Piper  <andy@xemacs.org>
3507
3508         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
3509         when widget gets unmapped.
3510
3511         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
3512         function. Make sure widgets losing focus don't just drop it.
3513         (handle_focus_event_1): record the widget with focus.
3514
3515 2000-12-31  Andy Piper  <andy@xemacs.org>
3516
3517         * window.c (allocate_window): use
3518         make_image_instance_cache_hash_table.
3519         (make_dummy_parent): ditto.
3520         (Fset_window_configuration): ditto.
3521
3522         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
3523
3524         * glyphs.c (process_image_string_instantiator): use
3525         INSTANTIATOR_TYPE.
3526         (get_image_instantiator_governing_domain): ditto.
3527         (normalize_image_instantiator): ditto.
3528         (instantiate_image_instantiator): ditto.
3529         (make_image_instance_1): ditto.
3530         (image_instantiate): ditto. Key on glyph *and* instantiator type.
3531         (instantiator_eq_equal): new function for use with instance hash
3532         tables.
3533         (instantiator_eq_hash): ditto.
3534         (make_image_instance_cache_hash_table): create a suitable hash
3535         table for storing image instances.
3536
3537         * elhash.h (hash_table_weakness): new internal weakness type
3538         HASH_TABLE_KEY_CAR_VALUE_WEAK.
3539         declare new functions.
3540
3541         * elhash.c (finish_marking_weak_hash_tables): introduce yet
3542         another weakness type for glyphs.
3543         (make_standard_lisp_hash_table): new function split out from
3544         make_general_lisp_hash_table.
3545         (make_lisp_hash_table): call make_standard_lisp_hash_table.
3546         (hash_table_instantiate): ditto.
3547         (Fmake_hash_table): ditto.
3548
3549 2000-12-31  Martin Buchholz <martin@xemacs.org>
3550
3551         * XEmacs 21.2.39 is released.
3552
3553 2000-12-29  Andy Piper  <andy@xemacs.org>
3554
3555         * menubar.c (menubar_visible_p_changed): signal the frame changed.
3556
3557         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
3558         the frame has changed so that we pick up geometry changes such as
3559         menubar visibility.
3560
3561 2000-12-28  Andy Piper  <andy@xemacs.org>
3562
3563         * lastfile.c (my_ebss): make a char array so we can pad the
3564         bss. Fixes cygwin unexec.
3565
3566         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
3567
3568 2000-12-26  Andy Piper  <andy@xemacs.org>
3569
3570         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
3571         comments and try and be more precise about a non-/SIGIO world.
3572         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
3573         SIGIO.
3574
3575         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
3576         we don't normalize to zero width or height.
3577
3578 2000-12-24  Andy Piper  <andy@xemacs.org>
3579
3580         * Makefile.in.in (ldflags): add -mwindows when appropriate.
3581
3582 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
3583
3584         * s/sco5.h: SCO 5 has pty support.
3585
3586 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
3587
3588         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
3589         input-method-xlib.c contains whole contents of input-method-xfs.c,
3590         so we can use input-method-xlib.c's code for USE_XFONTSET
3591         using #ifdefs.
3592         * input-method-xfs.c: removed.
3593
3594 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
3595
3596         * file-coding.h (enum coding_category_type): reorder enumerators to
3597         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
3598         (now one greater than largest real coding_category_type enumerator).
3599         * file-coding.c (coding_category_symbol, coding_category_by_priority,
3600         coding_category_system, fcd_descriptihon_1, decode_coding_category,
3601         Fcoding_category_list, Fset_coding_priority_list,
3602         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
3603         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
3604
3605 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
3606
3607         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
3608         * redisplay-output.c (redisplay_output_window): Clear top of window
3609         when face is changed.
3610         * redisplay-x.c (x_redraw_exposed_window): Call
3611         redisplay_clear_top_of_window.
3612         * redisplay.h: Publish redisplay_clear_top_of_window.
3613
3614 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
3615
3616         * buffer.c (Fkill_buffer): Map over all devices.
3617         * window.c (window_loop): Remove UNSHOW_BUFFER code.
3618         (list_windows): New function.
3619         (list_all_windows): Ditto.
3620         (Freplace_buffer_in_windows): Use them.
3621
3622 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
3623
3624         * database.c (berkdb_subtype): Recognize new subtype `queue'.
3625         (Fopen_database): Use `db_create' instead of `db_open'.
3626         (syms_of_database): Initialize Qqueue.
3627
3628 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
3629
3630         * buffer.c (common_init_complex_vars_of_buffer): Initialize
3631         buffer_local_face_property.
3632         * buffer.h (struct buffer): New member buffer_local_face_property.
3633         * window.c (Fset_window_buffer):  Mark window's face as changed
3634         when buffer has buffer local face.
3635         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
3636         * objects.c (color_after_change): Set buffer_local_face_property
3637         when locale of face specifier is buffer.
3638         * objects.c (font_after_change): Ditto.
3639         * objects.c (face_boolean_after_change): Ditto.
3640         * glyphs.c (image_after_change): Ditto.
3641
3642 2000-12-09  Dan Holmsand  <dan@eyebee.com>
3643
3644         * nt.c (mswindows_fstat): Report file permissions, volume serial
3645         number, etc. Code adapted from FSF Emacs 20.7.
3646
3647 2000-12-09  Dan Holmsand  <dan@eyebee.com>
3648
3649         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
3650         of stat when we don't have symbolic links, to make sure
3651         mswindows_stat is called on mswindows.
3652
3653 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
3654
3655         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
3656
3657 2000-12-12  Martin Buchholz  <martin@xemacs.org>
3658
3659         * doprnt.c (emacs_doprnt_1): More printing fixes.
3660         Make printing of numbers compatible with libc and FSF Emacs.
3661         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
3662         Use the system printf to do most of the hard work of formatting,
3663         instead of doprnt_1().
3664         Calculate memory to allocate for format string.
3665         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
3666         (doprnt_1): Cleaner code and documentation.
3667
3668 2000-12-01  Jerry James  <james@eecs.ukans.edu>
3669
3670         * Makefile.in.in: Use the loop variable to install headers.
3671
3672 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
3673
3674         * window.c (Fsplit_window): Don't invalidate face cache.
3675
3676 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
3677
3678         * minibuf.c (Fall_completions): Undo the previous change
3679         which removed checking elements start with space.
3680
3681 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
3682
3683         * mule-canna.c: Didier suppression.
3684
3685 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
3686
3687         * mule-canna.c: rename static unsigned char buf[] to key_buffer
3688         (warning suppression).  Add English comment translations.
3689
3690 2000-12-05  Martin Buchholz  <martin@xemacs.org>
3691
3692         * unexelfsgi.c (unexec): Better test for mmap failure.
3693
3694 2000-12-05  Martin Buchholz <martin@xemacs.org>
3695
3696         * XEmacs 21.2.38 is released.
3697
3698 2000-12-05  Martin Buchholz  <martin@xemacs.org>
3699
3700         * redisplay.c (bar-cursor): Make a user variable.
3701
3702         * symsinit.h: Add init_postgresql_from_environment.
3703
3704 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
3705
3706         * regex.c: Convert to clean C.
3707
3708 2000-12-05  Dan Holmsand  <dan@eyebee.com>
3709
3710         * realpath.c:
3711         Don't #include sysfile.h. Revert to duplicating PATH_MAX
3712         initialization.
3713         (sys_readlink): renamed to system_readlink to avoid conflict with
3714         the other sys_readlink.
3715
3716 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
3717
3718         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
3719
3720 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
3721
3722         * postgresql.c (init_postgresql_from_environment): new function.
3723         (vars_of_postgresql): Move code initializing Lisp variables out and
3724         into init_postgresql_from_environment.
3725         emacs.c (main_1): Call init_postgresql_from_environment if and only
3726         if running a dumped XEmacs.
3727
3728 2000-08-31  Dan Holmsand  <dan@eyebee.com>
3729
3730         * buffer.c: Make find-file-compare-truenames default to true on
3731         windows.
3732
3733         * realpath.c (win32_abs_start):
3734         (cygwin_readlink):
3735         (win32_readlink): New functions.
3736         (xrealpath): Return really real filenames on windows.
3737
3738         * fileio.c (Ffile_truename): Make file-truename work on windows.
3739
3740 2000-11-29  Didier Verna  <didier@xemacs.org>
3741
3742         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
3743         * faces.c (update_face_cachel_data): use it.
3744         * faces.c (add_face_cachel): use it. Complete background pixmap
3745         frobbing in face cache if `update_face_cachel_data' has not done so.
3746
3747 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
3748
3749         * search.c (string_match_1): Don't set last_thing_searched
3750         when search failed.
3751
3752 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
3753
3754         * buffer.c: Include casetab.h
3755         (common_init_complex_vars_of_buffer): Use new case-table object.
3756         * buffer.h: Include casetab.h
3757         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
3758         (DOWNCASE_TABLE_OF): Ditto.
3759         * bufslots.h: Remove char-tables and add case-table.
3760         * casetab.c: Include casetab.h
3761         (CASE_TABLE_P): Removed.
3762         (mark_case_table): New function.
3763         (allocate_case_table): New function.
3764         (Fcase_table_p): Use new case-table.
3765         (case_table_char): New function.
3766         (Fget_case_table): Ditto.
3767         (Fput_case_table): Ditto.
3768         (Fput_case_table_pair): Ditto.
3769         (Fcopy_case_table): Ditto.
3770         (Fcurrent_case_table): Return case-table.
3771         (Fstandard_case_table): Return case-table.
3772         (Fset_case_table): Fix doc-string.
3773         (set_case_table): Use case-table
3774         (syms_of_casetab): DEFSUBR new functions.
3775         (complex_vars_of_casetab): Set up standard case-table.
3776         * casetab.h: New file.
3777         * editfns.c: Include casetab.h
3778         (Fcompare_buffer_substrings): Use case-table.
3779         * inline.c: Include casetab.h
3780         * lisp.h: Remove bogus extern.
3781         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
3782         * search.c: Include casetab.h
3783         (TRANSLATE_ASCII): Removed.
3784         (TRANSLATE): Unconditionally translate character.
3785         (looking_at_1): Use case-table.
3786         (string_match_1): Ditto.
3787         (fast_string_match): Ditto.
3788         (search_command): Ditto.
3789         (search_buffer): Separate boyer_moore.  Check whether
3790         boyer_moore is poosible.
3791         (simple_search): New function.
3792         (boyer_moore): Separated from search_buffer. Translate char.
3793
3794 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
3795
3796         * regex.c (RE_TR_ASCII): Removed.
3797         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
3798         (PATFETCH): Call PATFETCH_RAW.
3799         (PATFETCH_RAW): Fetch Emchar.
3800         (PATUNFETCH): Decrement charptr.
3801         (GET_BUFFER_SPACE): Rename b to buf_end.
3802         (BUF_PUSH): Ditto.
3803         (BUF_PUSH_2): Ditto.
3804         (BUF_PUSH_3): Ditto.
3805         (EXTEND_BUFFER): Ditto.
3806         (SET_LIST_BIT): Ditto.
3807         (regex_compile): Ditto.  Translate non ASCII char.
3808         (compile_range): Ditto.
3809         (re_search_2): Ditto.
3810         (re_match_2_internal): Compare Emchar.
3811         (bcmp_translate): Ditto.
3812
3813 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
3814
3815         * lisp.h (basic char/int typedefs):  comment improvement.
3816
3817 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
3818
3819         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
3820         unstomp inhibit_site_lisp.  Improve comments.
3821
3822 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
3823
3824         * mule-charset.c (Fcharset_property):  improve type checking, comments.
3825
3826 2000-11-28  Andy Piper  <andy@xemacs.org>
3827
3828         * redisplay-output.c (redisplay_output_subwindow): make sure we do
3829         clipped display for windows in the gutter also.
3830         (redisplay_display_boxes_in_window_p): change semantics of return
3831         codes to be more intuitive.
3832
3833         * gutter.h: declare display_boxes_in_gutter_p.
3834
3835         * gutter.c (display_boxes_in_gutter_p): new function for
3836         redisplay.
3837
3838 2000-11-22  Andy Piper  <andy@xemacs.org>
3839
3840         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
3841         autodetect domain.
3842
3843 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
3844
3845         * callproc.c (Fold_call_process_internal):
3846         * gpm.c (Freceive_gpm_event):
3847         (tty_get_foreign_selection): Might be just warning supression.
3848         * fileio.c (Fwrite_region_internal):
3849         (Fset_visited_file_modtime):
3850         * keymap.c (event_matches_key_specifier_p):
3851         Initialize GCPROed variable.
3852
3853         * menubar-x.c (command_builder_find_menu_accelerator):
3854         Initialize before use.
3855
3856 2000-11-23  Andy Piper  <andy@xemacs.org>
3857
3858         * unexcw.c (unexec): make the resulting executable executable.
3859
3860 2000-11-21  Martin Buchholz  <martin@xemacs.org>
3861
3862         * doc.c (get_doc_string):
3863         Use size_t, not int, for result of XSTRING_LENGTH.
3864
3865         * cmds.c (Fdelete_char):
3866         * cmds.c (Fpoint_at_eol):
3867         * cmds.c (Fself_insert_command):
3868         Use EMACS_INT, not int, for result of XINT.
3869         Someday, someone will want to insert more than 2**31 identical characters.
3870
3871         * cmds.c (Fdelete_char):
3872         * cmds.c (Fdelete_backward_char):
3873         * syntax.c (Fforward_word):
3874         * syntax.c (Fforward_comment):
3875         Make COUNT argument optional, for consistency with forward-char et al.
3876
3877 2000-11-22  Martin Buchholz  <martin@xemacs.org>
3878
3879         * lisp.h:
3880         * print.c (long_to_string):
3881         Return a useful value: the pointer at end of data written.
3882
3883         * doprnt.c:
3884         Use `static const char * const' for constant strings.
3885         (union printf_arg): Delete `i', `ui' members.
3886         (get_doprnt_args):
3887         (emacs_doprnt_1):
3888         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
3889         Do all printf-ing via the `l' specifier.
3890         Use EMACS_INT instead of int.
3891         Optimize.
3892
3893 2000-11-20  Didier Verna  <didier@xemacs.org>
3894
3895         * faces.c (update_face_cachel_data): don't frob the background
3896         pixmap when the window is being created. The face is needed but
3897         does not exist yet.
3898
3899 2000-11-20  Andy Piper  <andy@xemacs.org>
3900
3901         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
3902         messing with a debug environment.
3903
3904 2000-11-20  Martin Buchholz  <martin@xemacs.org>
3905
3906         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
3907
3908 2000-11-20  Martin Buchholz  <martin@xemacs.org>
3909
3910         * casetab.c (Fcase_table_p): Fix compile error and crash.
3911
3912 2000-11-18  Philip Aston  <philipa@mail.com>
3913
3914         * s/cygwin32.h: Cygwin has SVR4-like pty support.
3915
3916 2000-11-18  Martin Buchholz  <martin@xemacs.org>
3917
3918         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
3919         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
3920
3921 2000-11-17  Martin Buchholz  <martin@xemacs.org>
3922
3923         * config.h.in: Define HAVE_ELF_H if elf.h exists.
3924         * unexelf.c: Use HAVE_ELF_H.
3925         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
3926         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
3927         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
3928         Greg Harrington <greg_harrington@hotmail.com> provided a machine
3929         for testing.
3930         So this is an unexelfsgi.c from a different line of development.
3931
3932 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
3933
3934         * regex.c (RE_TR_ASCII): New function.
3935         (RE_TRANSLATE): Call it.
3936
3937 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
3938
3939         * buffer.h (TRT_TABLE_OF): Remove assert.
3940         (IN_TRT_TABLE_DOMAIN): Removed.
3941
3942 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
3943
3944         * free-hook.c (log_gcpro):
3945         (show_gcprohist): Add support for GCPRO5.
3946
3947 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
3948
3949         * emacs.c (main_1): Improve -sd error message when --pdump=no.
3950
3951 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
3952
3953         * symeval.h: Declare flush_all_buffer_local_cache.
3954
3955         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
3956         (flush_buffer_local_cache): Added.
3957         (flush_all_buffer_local_cache): Added.
3958
3959         * lrecord.h: Remove unused XD_LO_RESET_NIL.
3960
3961         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
3962         (pdump_dump_data): Ditto.
3963         (pdump_reloc_one): Ditto.
3964         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
3965         before dumping.
3966
3967
3968 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
3969
3970         * buffer.c: Remove if 0'ed entry.
3971         * buffer.h: Rewrite TRT to use char-table.
3972         * bufslots.h: Remove mirror tables.
3973         * casetab.c: Remove mirror tables.
3974         (CASE_TABLE_P): New macro.
3975         (Fcase_table_p): Element of a case table is string or char-table.
3976         (make_mirror_trt_table): Removed.
3977         (set_case_table): Setup char-table from strings for backward
3978         compatibility.
3979         * dired.c (Fdirectory_files):
3980         * dired-msw.c: (mswindows_get_files):
3981         * lisp.h: Change prototype of re_pattern_buffer.
3982         * regex.c: (RE_TRANSLATE): New macro.
3983         (TRANSLATE_P): Ditto.
3984         Change translate to type RE_TRANSLATE_TYPE.
3985         * regex.h: Define RE_TRANSLATE_TYPE
3986         * search.c (TRANSLATE): New macro.
3987         (TRANSLATE_ASCII): New macro.
3988         Translate table is changed to Lisp_Object.
3989         (signal_failure): Inhibit return.
3990
3991 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
3992
3993         * device-msw.c:
3994         * eldap.c:
3995         * event-Xt.c:
3996         * event-stream.c:
3997         * print.c:
3998         Do UNGCPRO before return.
3999
4000 2000-11-14  Martin Buchholz <martin@xemacs.org>
4001
4002         * XEmacs 21.2.37 is released.
4003
4004 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
4005
4006         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
4007         Add comments about discarded return value.
4008
4009 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
4010
4011         * callint.c:
4012         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
4013
4014 2000-10-27  Andy Piper  <andy@xemacs.org>
4015
4016         * gutter.c (Fset_default_gutter_position): default left and right
4017         gutters to visible.
4018         (calculate_gutter_size): calculate resonable heuristic for left
4019         and right gutter sizes.
4020         (specifier_vars_of_gutter): change left and right gutter sizes to
4021         autodetect.
4022         (calculate_gutter_size_from_display_lines): new function.
4023         (output_gutter): check for resizing on left and right gutters.
4024         (clear_gutter): don't special case top and left gutters.
4025         (specifier_vars_of_gutter): use new signature for
4026         set_specifier_caching.
4027
4028         * glyphs-x.c (x_redisplay_widget): spelling fix.
4029         * glyphs.c (specifier_vars_of_glyphs):
4030         * menubar.c (specifier_vars_of_menubar):
4031         * redisplay.c (specifier_vars_of_redisplay):
4032         * toolbar.c (specifier_vars_of_toolbar):
4033         * window.c (specifier_vars_of_window):
4034         * scrollbar.c (specifier_vars_of_scrollbar):
4035         (complex_vars_of_scrollbar): use new signature for
4036         set_specifier_caching.
4037
4038         * specifier.c (set_specifier_caching): include recompute flag.
4039         (recompute_one_cached_specifier_in_window): always recompute if
4040         flag set.
4041         (recompute_one_cached_specifier_in_frame): ditto.
4042
4043         * specifier.h (struct specifier_caching): add recompute flag.
4044
4045 2000-10-24  Andy Piper  <andy@xemacs.org>
4046
4047         * unexcw.c (copy_executable_and_dump_data_section): add new
4048         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
4049         5.0 happy.
4050
4051 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
4052
4053         * console-x.h (x_device): New member modifier_release_time.
4054         * event-Xt.c (x_handle_sticky_modifiers):
4055         Bound interval modifier keys are sticky.
4056         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
4057         * events.h: extern it.
4058
4059 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
4060
4061         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
4062
4063 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
4064
4065         * event-stream.c (execute_command_event): Preserve current_events
4066         and the like when event is misc-user-event.
4067         Inhibit quit during the call to maybe_echo_keys.
4068
4069 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
4070
4071         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
4072         symlink when buffer is killed.
4073         (inhibit_clash_detection): New variable.
4074
4075 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
4076
4077         * console.c (Fset_input_method): Trigger redisplay on tty.
4078
4079 2000-11-07  Martin Buchholz  <martin@xemacs.org>
4080
4081         * process.c (Fprocess_status): Revert to previous behavior:
4082         (process-status "nosuchprocess") ==> nil
4083
4084 2000-11-06  Martin Buchholz  <martin@xemacs.org>
4085
4086         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
4087         Work around another GCC 2.95.2 optimizer bug.
4088
4089 2000-11-02  Martin Buchholz  <martin@xemacs.org>
4090
4091         * process.c (Fget_process): Use LIST_LOOP_2.
4092         (kill_buffer_processes): Use LIST_LOOP_2.
4093
4094         * minibuf.c (Fall_completions):
4095         Delete old non-functional code for FSF fourth argument.
4096
4097         * frame.c (frame_matches_frame_spec):
4098         Renamed from `frame_matches_frametype'.  Update all callers.
4099         (device_matches_device_spec):
4100         Renamed from 'device_matches_console_spec'.  Update all callers.
4101
4102         * doc.c (Fsubstitute_command_keys):
4103         Remove buffer overflow crash.  Small code cleanups.
4104
4105         * casetab.c (check_case_table): Simpler code.
4106
4107         * window.c (Freplace_buffer_in_windows):
4108         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
4109         (and similar implementation) as Fdelete_windows_on.
4110         Update all callers.
4111
4112         * alloc.c (Fmake_list):
4113         * alloc.c (make_vector):
4114         * alloc.c (Fmake_vector):
4115         * alloc.c (make_bit_vector):
4116         * alloc.c (Fmake_bit_vector):
4117         * alloc.c (Fbit_vector):
4118         * alloc.c (Fmake_string):
4119         * alloc.c (Fpurecopy):
4120         * alloc.c (Fmemory_limit):
4121         * buffer.c:
4122         * buffer.c (Fget_buffer):
4123         * buffer.c (Fkill_buffer):
4124         * buffer.c (complex_vars_of_buffer):
4125         * bytecode.c (Fcompiled_function_stack_depth):
4126         * callint.c (Fprefix_numeric_value):
4127         * event-stream.c:
4128         * event-stream.c (Fread_key_sequence):
4129         * casetab.c:
4130         * casetab.c (Fcase_table_p):
4131         * casetab.c (check_case_table):
4132         * casetab.c (Fset_case_table):
4133         * casetab.c (Fset_standard_case_table):
4134         * chartab.c:
4135         * chartab.c (Fchar_table_type):
4136         * chartab.c (Freset_char_table):
4137         * chartab.c (Fget_char_table):
4138         * chartab.c (Fget_range_char_table):
4139         * chartab.c (Fput_char_table):
4140         * chartab.c (Fmap_char_table):
4141         * chartab.c (Fcategory_table_p):
4142         * chartab.c (Fcheck_category_at):
4143         * chartab.c (Fchar_in_category_p):
4144         * chartab.c (Fcategory_table):
4145         * chartab.c (Fcopy_category_table):
4146         * chartab.c (Fset_category_table):
4147         * chartab.c (Fcategory_designator_p):
4148         * chartab.c (Fcategory_table_value_p):
4149         * cmds.c (Fdelete_char):
4150         * cmds.c (Fdelete_backward_char):
4151         * cmds.c (Fself_insert_command):
4152         * cmds.c (Fself_insert_internal):
4153         * console.c (Fvalid_console_type_p):
4154         * console.c (Fcdfw_console):
4155         * console.c (Fconsole_type):
4156         * console.c (Fconsole_name):
4157         * console.c (Fconsole_device_list):
4158         * console.c (Fconsole_on_window_system_p):
4159         * data.c:
4160         * data.c (Feq):
4161         * data.c (Fold_eq):
4162         * data.c (Fsubr_interactive):
4163         * data.c (Fchar_to_int):
4164         * data.c (Fint_to_char):
4165         * data.c (Fsetcar):
4166         * data.c (Fsetcdr):
4167         * data.c (Fnumber_to_string):
4168         * data.c (Fstring_to_number):
4169         * data.c (Frem):
4170         * database.c (mark_database):
4171         * database.c (finalize_database):
4172         * database.c (Fdatabase_live_p):
4173         * database.c (Fdatabasep):
4174         * device-x.c (Fx_get_resource):
4175         * device.c (Fdfw_device):
4176         * dired.c:
4177         * dired.c (Ffile_name_completion):
4178         * dired.c (Ffile_name_all_completions):
4179         * dired.c (Fuser_name_completion):
4180         * dired.c (Fuser_name_completion_1):
4181         * dired.c (Fuser_name_all_completions):
4182         * doc.c (Fdocumentation):
4183         * doc.c (Fdocumentation_property):
4184         * doc.c (Fsubstitute_command_keys):
4185         * editfns.c:
4186         * editfns.c (Fchar_to_string):
4187         * editfns.c (Fstring_to_char):
4188         * editfns.c (Ftemp_directory):
4189         * editfns.c (Finsert_char):
4190         * editfns.c (Fbuffer_substring_no_properties):
4191         * editfns.c (Fnarrow_to_region):
4192         * editfns.c (Fchar_equal):
4193         * editfns.c (Fchar_Equal):
4194         * editfns.c (Ftranspose_regions):
4195         * emacs.c (Fdump_emacs):
4196         * eval.c (Fthrow):
4197         * eval.c (Fcommand_execute):
4198         * eval.c (Fautoload):
4199         * eval.c (Fbacktrace):
4200         * eval.c (Fbacktrace_frame):
4201         * events.c:
4202         * events.c (Fcopy_event):
4203         * events.c (Fcharacter_to_event):
4204         * events.c (Fevent_button):
4205         * events.c (Fevent_process):
4206         * extents.c:
4207         * extents.c (Fnext_extent_change):
4208         * extents.c (Fextent_property):
4209         * faces.c (Ffacep):
4210         * faces.c (Fmake_face):
4211         * file-coding.c:
4212         * file-coding.c (Fencode_shift_jis_char):
4213         * file-coding.c (Fencode_big5_char):
4214         * fileio.c (Ffile_name_directory):
4215         * fileio.c (Ffile_name_nondirectory):
4216         * fileio.c (Ffile_name_as_directory):
4217         * fileio.c (Fdirectory_file_name):
4218         * fileio.c (Ffile_truename):
4219         * fileio.c (Fsubstitute_in_file_name):
4220         * fileio.c (Ffile_modes):
4221         * fileio.c (Fset_file_modes):
4222         * fileio.c (Fset_default_file_modes):
4223         * fileio.c (Fverify_visited_file_modtime):
4224         * floatfns.c (Facos):
4225         * floatfns.c (Fasin):
4226         * floatfns.c (Fatan):
4227         * floatfns.c (Fcos):
4228         * floatfns.c (Fsin):
4229         * floatfns.c (Ftan):
4230         * floatfns.c (Fbessel_j0):
4231         * floatfns.c (Fbessel_j1):
4232         * floatfns.c (Fbessel_jn):
4233         * floatfns.c (Fbessel_y0):
4234         * floatfns.c (Fbessel_y1):
4235         * floatfns.c (Fbessel_yn):
4236         * floatfns.c (Ferf):
4237         * floatfns.c (Ferfc):
4238         * floatfns.c (Flog_gamma):
4239         * floatfns.c (Fexp):
4240         * floatfns.c (Fexpt):
4241         * floatfns.c (Flog):
4242         * floatfns.c (Flog10):
4243         * floatfns.c (Fsqrt):
4244         * floatfns.c (Fcube_root):
4245         * floatfns.c (Facosh):
4246         * floatfns.c (Fasinh):
4247         * floatfns.c (Fatanh):
4248         * floatfns.c (Fcosh):
4249         * floatfns.c (Fsinh):
4250         * floatfns.c (Ftanh):
4251         * floatfns.c (Fabs):
4252         * floatfns.c (Ffloat):
4253         * floatfns.c (Flogb):
4254         * floatfns.c (Fceiling):
4255         * floatfns.c (Ffloor):
4256         * floatfns.c (Fround):
4257         * floatfns.c (Ftruncate):
4258         * floatfns.c (Ffceiling):
4259         * floatfns.c (Fffloor):
4260         * floatfns.c (Ffround):
4261         * floatfns.c (Fftruncate):
4262         * fns.c (Fstring_equal):
4263         * fns.c (Fstring_lessp):
4264         * fns.c (concat2):
4265         * fns.c (concat3):
4266         * fns.c (vconcat2):
4267         * fns.c (vconcat3):
4268         * fns.c (Fsubstring):
4269         * fns.c (Fassoc):
4270         * fns.c (Fold_assoc):
4271         * fns.c (assoc_no_quit):
4272         * fns.c (Fassq):
4273         * fns.c (Fold_assq):
4274         * fns.c (assq_no_quit):
4275         * fns.c (Frassoc):
4276         * fns.c (Fold_rassoc):
4277         * fns.c (Frassq):
4278         * fns.c (Fold_rassq):
4279         * fns.c (rassq_no_quit):
4280         * fns.c (Fremassoc):
4281         * fns.c (remassoc_no_quit):
4282         * fns.c (Fremassq):
4283         * fns.c (remassq_no_quit):
4284         * fns.c (Fremrassoc):
4285         * fns.c (Fremrassq):
4286         * fns.c (remrassq_no_quit):
4287         * fns.c (Fsort):
4288         * fns.c (Fplist_get):
4289         * fns.c (Fplist_put):
4290         * fns.c (Fplist_remprop):
4291         * fns.c (Fplist_member):
4292         * fns.c (Flax_plist_get):
4293         * fns.c (Flax_plist_put):
4294         * fns.c (Flax_plist_remprop):
4295         * fns.c (Flax_plist_member):
4296         * fns.c (Fequal):
4297         * fns.c (Fold_equal):
4298         * fns.c (Frequire):
4299         * fns.c (Fbase64_encode_region):
4300         * fns.c (Fbase64_encode_string):
4301         * fns.c (Fbase64_decode_region):
4302         * frame.c:
4303         * frame.c (frame_matches_frame_spec):
4304         * frame.c (device_matches_device_spec):
4305         * frame.c (next_frame):
4306         * frame.c (previous_frame):
4307         * frame.c (Fnext_frame):
4308         * frame.c (Fprevious_frame):
4309         * frame.c (Fframe_property):
4310         * frame.c (Fset_frame_height):
4311         * frame.c (Fset_frame_size):
4312         * frame.h:
4313         * glyphs.c:
4314         * glyphs.c (if):
4315         * glyphs.c (decode_error_behavior_flag):
4316         * glyphs.c (Fmake_image_instance):
4317         * indent.c (Findent_to):
4318         * intl.c (Fignore_defer_gettext):
4319         * keymap.c (Fkeymapp):
4320         * keymap.c (Flookup_key):
4321         * lread.c:
4322         * lread.c (Fload_internal):
4323         * lread.c (Feval_buffer):
4324         * lread.c (Feval_region):
4325         * macros.c (Fexecute_kbd_macro):
4326         * marker.c (set_marker_internal):
4327         * marker.c (Fset_marker):
4328         * marker.c (set_marker_restricted):
4329         * marker.c (Fcopy_marker):
4330         * marker.c (noseeum_copy_marker):
4331         * menubar.c:
4332         * menubar.c (Fpopup_menu):
4333         * minibuf.c:
4334         * mule-charset.c (Fcharset_name):
4335         * mule-charset.c (Fchar_charset):
4336         * mule-charset.c (Fchar_octet):
4337         * mule-charset.c (Fsplit_char):
4338         * mule-wnnfns.c (Fwnn_open):
4339         * mule-wnnfns.c (Fwnn_dict_comment):
4340         * mule-wnnfns.c (Fwnn_quit_henkan):
4341         * mule-wnnfns.c (Fwnn_word_toroku):
4342         * mule-wnnfns.c (Fwnn_word_sakujo):
4343         * mule-wnnfns.c (Fwnn_word_use):
4344         * mule-wnnfns.c (Fwnn_hindo_set):
4345         * objects.c:
4346         * objects.c (Fmake_color_instance):
4347         * objects.c (Fmake_font_instance):
4348         * print.c (Fwrite_char):
4349         * process.c:
4350         * process.c (mark_process):
4351         * process.c (print_process):
4352         * process.c (get_process_from_usid):
4353         * process.c (Fprocessp):
4354         * process.c (Fprocess_live_p):
4355         * process.c (Fget_process):
4356         * process.c (Fget_buffer_process):
4357         * process.c (get_process):
4358         * process.c (Fprocess_id):
4359         * process.c (Fprocess_name):
4360         * process.c (Fprocess_command):
4361         * process.c (init_process_io_handles):
4362         * process.c (start_process_unwind):
4363         * process.c (Fstart_process_internal):
4364         * process.c (Fopen_multicast_group_internal):
4365         * process.c (Fset_process_window_size):
4366         * process.c (read_process_output):
4367         * process.c (send_process):
4368         * process.c (Fprocess_tty_name):
4369         * process.c (Fset_process_buffer):
4370         * process.c (Fprocess_buffer):
4371         * process.c (Fprocess_mark):
4372         * process.c (set_process_filter):
4373         * process.c (Fset_process_filter):
4374         * process.c (Fprocess_filter):
4375         * process.c (Fprocess_send_region):
4376         * process.c (Fprocess_send_string):
4377         * process.c (exec_sentinel):
4378         * process.c (Fset_process_sentinel):
4379         * process.c (Fprocess_sentinel):
4380         * process.c (status_notify):
4381         * process.c (Fprocess_status):
4382         * process.c (Fprocess_exit_status):
4383         * process.c (process_send_signal):
4384         * process.c (Fprocess_send_eof):
4385         * process.c (deactivate_process):
4386         * process.c (remove_process):
4387         * process.c (Fdelete_process):
4388         * process.c (kill_buffer_processes):
4389         * process.c (Fprocess_kill_without_query):
4390         * process.c (Fprocess_kill_without_query_p):
4391         * rangetab.c:
4392         * rangetab.c (Fget_range_table):
4393         * rangetab.c (Fput_range_table):
4394         * rangetab.c (Fremove_range_table):
4395         * rangetab.c (Fclear_range_table):
4396         * search.c:
4397         * search.c (Fskip_chars_forward):
4398         * search.c (Fskip_chars_backward):
4399         * search.c (Fskip_syntax_forward):
4400         * search.c (Fskip_syntax_backward):
4401         * search.c (search_command):
4402         * search.c (Freplace_match):
4403         * search.c (Fregexp_quote):
4404         * select.c (Fown_selection_internal):
4405         * select.c (Fselection_owner_p):
4406         * select.c (Fselection_exists_p):
4407         * select.c (Fget_selection_internal):
4408         * specifier.c:
4409         * symbols.c:
4410         * symbols.c (Fintern):
4411         * symbols.c (Fintern_soft):
4412         * symbols.c (Funintern):
4413         * symbols.c (Fapropos_internal):
4414         * symbols.c (Fset_default):
4415         * syntax.c:
4416         * syntax.c (Fsyntax_table_p):
4417         * syntax.c (Fcopy_syntax_table):
4418         * syntax.c (Fset_syntax_table):
4419         * syntax.c (Fchar_syntax):
4420         * syntax.c (syntax_match):
4421         * syntax.c (Fmatching_paren):
4422         * syntax.c (Fforward_word):
4423         * syntax.c (scan_lists):
4424         * syntax.c (Fscan_lists):
4425         * syntax.c (Fscan_sexps):
4426         * syntax.c (Fparse_partial_sexp):
4427         * toolbar.c (Fcheck_toolbar_button_syntax):
4428         * tooltalk.doc:
4429         * window.c:
4430         * window.c (Fwindowp):
4431         * window.c (Fwindow_live_p):
4432         * window.c (Fwindow_point):
4433         * window.c (Fdelete_window):
4434         * window.c (Fnext_window):
4435         * window.c (Fprevious_window):
4436         * window.c (Fother_window):
4437         * window.c (window_loop):
4438         * window.c (Fget_lru_window):
4439         * window.c (Fsplit_window):
4440         * window.c (Fenlarge_window):
4441         * window.c (Fenlarge_window_pixels):
4442         * window.c (Fshrink_window):
4443         * window.c (Fshrink_window_pixels):
4444         * window.c (change_window_height):
4445         * window.c (Fwindow_configuration_p):
4446         * window.c (Fcurrent_window_configuration):
4447         * window.h:
4448         * casefiddle.c (casify_object):
4449         * casefiddle.c (Fupcase):
4450         * casefiddle.c (Fdowncase):
4451         * casefiddle.c (Fcapitalize):
4452         * casefiddle.c (Fupcase_initials):
4453         * casefiddle.c (casify_region_internal):
4454         * casefiddle.c (casify_region):
4455         * casefiddle.c (Fupcase_region):
4456         * casefiddle.c (Fdowncase_region):
4457         * casefiddle.c (Fcapitalize_region):
4458         * casefiddle.c (Fupcase_initials_region):
4459         * casefiddle.c (Fupcase_word):
4460         * casefiddle.c (Fdowncase_word):
4461         * casefiddle.c (Fcapitalize_word):
4462         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
4463         Replace 0 with '\0' when working with bytes.
4464         Replace initial "(" with "\(" in docstrings.
4465
4466 2000-11-01  Martin Buchholz  <martin@xemacs.org>
4467
4468         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
4469
4470         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
4471
4472 2000-10-31  Martin Buchholz  <martin@xemacs.org>
4473
4474         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
4475
4476 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
4477
4478         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
4479         correctly.
4480
4481 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
4482
4483         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
4484         (inhibit_auto_save_session): New variable.
4485         (vars_of_fileio): Declare and initialize them.
4486         * fileio.c (Fdo_auto_save): Don't create session file if
4487         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
4488
4489 2000-10-31  Martin Buchholz  <martin@xemacs.org>
4490
4491         * sgiplay.c (play_internal): C++ compilability.
4492         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
4493         * callproc.c (Fold_call_process_internal):
4494         Remove unused vars `env', `first'.
4495         * scrollbar.c (update_scrollbar_instance):
4496         #### unused var `current_window'.
4497         * redisplay-tty.c: Put currently unused vars insert_mode_on,
4498         etc. within #ifdef NOT_YET.
4499         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
4500         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
4501         * specifier.c (specifier_instance):
4502         #### unused var `tag'.
4503         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
4504
4505 2000-10-27  Martin Buchholz  <martin@xemacs.org>
4506
4507         * fns.c (Fbutlast):
4508         * fns.c (list_sort):
4509         * fns.c (Ffillarray):
4510         * fns.c (bytecode_nconc2):
4511         * fns.c (Fnconc):
4512         * fns.c (mapcar1):
4513         * fns.c (Fmapconcat):
4514         Be pedantically 64-bit correct.  For the time when someone will
4515         want to have a list with length > 2**32.
4516
4517         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
4518         Work around MIPSpro compiler bug.
4519
4520         * process-unix.c (unix_kill_child_process): Add snarky comment.
4521         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
4522
4523         * config.h.in: Oops, _getpt ==> _getpty
4524
4525 2000-10-26  Martin Buchholz  <martin@xemacs.org>
4526
4527         * config.h.in:
4528         * regex.c:
4529         Use void*, not char*, as return type of alloca().
4530
4531         * alloc.c (free_marker): Side effect inside assert expression!
4532
4533 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
4534
4535         * mule-charset.c (Fset_charset_ccl_program): To check
4536         if the given ccl program is valid, use setup_ccl_program()
4537         instead of CHECK_VECTOR().
4538         (Fmake_charset): Likewise.
4539
4540 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
4541
4542         * faces.c (get_extent_fragment_face_cache_index):
4543         Fix cachel.merged_faces memory leak.
4544
4545 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
4546
4547         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
4548         Reset MSB of octets obtained by DECODE_SJIS
4549         because of the incompatibility with Emacs.
4550         (ccl_driver)<CCL_ENCODE_SJIS>:
4551         Set MSB of octets before passing them to
4552         ENCODE_SJIS because of the incompatibility
4553         with Emacs.
4554
4555 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
4556
4557         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
4558         (DECLARE_LRECORD): Undo the last change.
4559         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
4560
4561 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
4562
4563         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
4564         the implementation to lrecord_implementations_table.
4565
4566 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
4567
4568         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
4569         initial value of `lrecord_type_##c_name' and
4570         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
4571         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
4572         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
4573         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
4574         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
4575
4576 2000-10-17  Martin Buchholz  <martin@xemacs.org>
4577
4578         * miscplay.c (sndcnv8S_2mono):
4579         (sndcnv2monounsigned):
4580         (sndcnvULaw_2linear):
4581         (sndcnv16swap):
4582         Remove implementation-defined behavior.
4583
4584 2000-10-12  Martin Buchholz  <martin@xemacs.org>
4585
4586         * input-method-xlib.c: Warning suppression.
4587
4588 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
4589
4590         * mule-ccl.c: Sync up with Emacs 21.0.90.
4591         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
4592         Do nothing.
4593         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
4594         Likewise.
4595         (ccl_driver[WriteMultibyteChar2]): Bug fix.
4596         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
4597         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
4598         leading char belongs to official 2-dimensional charset.
4599         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
4600         write the given character as is.  Otherwise,
4601         if it is a multibyte char, convert it by
4602         non_ascii_set_charptr_emchar, then write it.
4603         (CCL_WRITE_STRING): Likewise.
4604         (ccl_get_compiled_code): New function.
4605         (setup_ccl_program): When ccl_prog is invalid,
4606         return -1.
4607         (Fregister_code_conversion_map): New function.
4608         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
4609
4610         * mule-ccl.h: Sync up with Emacs 21.0.90.
4611         (Fregister_ccl_program): export it.
4612
4613         * redisplay-msw.c (separate_textual_runs):
4614         If ccl program is not valid, don't do ccl conversion.
4615
4616         * redisplay-x.c (separate_textual_runs): Ditto.
4617
4618         * file-coding.c (Fmake_coding_system):
4619         When type is ccl and value is vector, register it
4620         with a proper symbol.  And checks whether the
4621         given ccl program is valid.
4622         (mule_decode): When calling ccl_driver, if src indicates
4623         NULL pointer, set an empty string instead.
4624         (mule_encode): Likewise.
4625
4626 2000-10-11  Martin Buchholz  <martin@xemacs.org>
4627
4628         The following large batch of changes gets us back to a state of
4629         C++ compilability.  Extbyte is now a char, which means that
4630         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
4631
4632         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
4633
4634         * sound.c (Fplay_sound): Type correctness.
4635
4636         * select-x.c (hack_motif_clipboard_selection): Type correctness.
4637         (x_get_window_property): Type correctness.
4638         (receive_incremental_selection): unsigned char ==> Extbyte
4639         (selection_data_to_lisp_data): unsigned char ==> Extbyte
4640         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
4641         (Fx_store_cutbuffer_internal): Type correctness.
4642
4643         * process-unix.c (try_to_initialize_subtty): Type correctness.
4644
4645         * objects-x.c (x_print_color_instance): Type correctness.
4646         (x_print_font_instance): Type correctness.
4647         (x_list_fonts): SExtbyte ==> Extbyte.
4648         (valid_x_font_name_p): SExtbyte ==> Extbyte.
4649         (x_find_charset_font): SExtbyte ==> Extbyte.
4650         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
4651         (truename_via_XListFonts): SExtbyte ==> Extbyte.
4652         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
4653         Use bufbyte_strcmp.
4654
4655         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
4656         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
4657         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
4658         (BYTE_C0_P): Use bit ops for char-signedness safety.
4659         (BYTE_C1_P): Use bit ops for char-signedness safety.
4660         (CHARSET_BY_LEADING_BYTE):
4661         (CHARSET_BY_ATTRIBUTES):
4662         Always use inline function.
4663         Use type_checking_assert.
4664         Hide chlook.
4665
4666         * mule-charset.c (non_ascii_charptr_copy_char):
4667         Modify to work with both ASCII and non-ASCII characters.
4668         Improve docs and variable names.
4669         Replace over-clever fall-through switch with a simple loop.
4670         (Lstream_get_emchar_1):
4671         Replace over-clever fall-through switch with a simple loop.
4672
4673         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
4674         Warning suppression.
4675
4676         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
4677         the return value of Lstream_getc, which could be EOF as well.
4678
4679         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
4680
4681         * lisp.h: Make Extbyte a char, not unsigned char, so that external
4682         APIs can be used on Extbytes without casts.  Risky!
4683         (SExtbyte): Remove.
4684         (UExtbyte): Remove.
4685
4686         * input-method-xlib.c (XIM_init_device):
4687         Use Xlib.h instead of IntrinsicP.h.
4688         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
4689         which will break in X11R7.
4690         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
4691         to call XRegisterIMInstantiateCallback with correct types.
4692
4693         * gui-x.c (button_item_to_widget_value): Type correctness.
4694
4695         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
4696
4697         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
4698         (xbm_instantiate_1): Type correctness.
4699         (BUILD_GLYPH_INST):  Type correctness.
4700
4701         * fileio.c (Fsubstitute_in_file_name): Type correctness.
4702
4703         * file-coding.c:
4704         (decode_coding_sjis):
4705         (decode_coding_big5):
4706         (decode_coding_ucs4):
4707         (decode_coding_utf8):
4708         (decode_coding_iso2022):
4709         (decode_coding_no_conversion):
4710         Make all decoding functions take an Extbyte * arg.
4711         (encode_coding_sjis):
4712         (encode_coding_big5):
4713         (encode_coding_ucs4):
4714         (encode_coding_utf8):
4715         (encode_coding_iso2022):
4716         (encode_coding_no_conversion):
4717         Make all encoding functions take a Bufbyte * arg.
4718         Use size_t instead of unsigned int for memory sizes.
4719         Only cast to unsigned char whenever dereferencing Extbyte *.
4720
4721         * doc.c (unparesseuxify_doc_string): Type correctness.
4722
4723         * console-x.c (split_up_display_spec):
4724         Rewrite without using details of internal string representation.
4725         (x_semi_canonicalize_device_connection): Type correctness.
4726
4727         * config.h.in:
4728         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
4729         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
4730         (HAVE_XFREE386): Removed.
4731
4732         * buffer.h (DEC_CHARPTR): `const' correctness.
4733         (bufbyte_strcmp): New.
4734         (bufbyte_memcmp): New.
4735
4736         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
4737
4738         * buffer.h (XCHAR_OR_CHAR_INT):
4739         Always use inline function.
4740         Remove redundant type checking assert() - XINT will abort quite nicely.
4741
4742 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
4743
4744         * search.c (Freplace_match): Set newtext to an empty string.
4745
4746 2000-10-10  Martin Buchholz  <martin@xemacs.org>
4747
4748         * s/decosf1-3.h: Remove #include of stropts.h
4749         * s/ptx.h: Remove #include of stropts.h
4750         * s/usg5-4.h: Remove #include of stropts.h
4751         * sysproc.h:
4752         * config.h.in:
4753         Use stropts.h, not sys/stropts.h.
4754         Use strtio.h, not sys/strtio.h.
4755
4756 2000-10-04  Martin Buchholz <martin@xemacs.org>
4757
4758         * XEmacs 21.2.36 is released.
4759
4760 2000-09-21  Andy Piper  <andy@xemacs.org>
4761
4762         * glyphs-x.c (x_redisplay_widget): make sure non-structural
4763         changes still involve copying the widget tree.
4764         (update_widget_face): make sure a change is register in the widget
4765         tree. Call update_tab_widget_face appropriately.
4766         (update_tab_widget_face): ditto.
4767         (x_tab_control_redisplay): make sure non-structural changes still
4768         involve copying the widget tree.
4769
4770 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
4771
4772         * lread.c (locate_file): Check the path element is non-nil.
4773
4774 2000-10-02  Martin Buchholz  <martin@xemacs.org>
4775
4776         * lisp.h: Warning suppression for SCO compilers.
4777
4778         * redisplay-tty.c (reset_tty_modes): Fix crash.
4779         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
4780
4781 2000-09-27  Martin Buchholz  <martin@xemacs.org>
4782
4783         Big signal/process handling overhaul.  Bugs fixed:
4784         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
4785         M-x comint-kill-subjob should work for both values nil and t of
4786         process-connection-type. It was broken on most platforms.
4787         Testing on Irix and Cygwin still needed.  Other plaforms tested.
4788         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
4789         * process-unix.c: Signal/Process handling overhaul.
4790         (pty_name): make 64 bytes, as `expect' does, for paranoia.
4791         (allocate_pty): Use all available modern methods of allocating
4792         ptys, falling back to old style BSD allocation as a last resort.
4793         Use allegedly more secure Unix98 pty allocation by default.
4794         (allocate_pty_the_old_fashioned_way): New. the last resort.
4795         (unix_create_process): Push ptem, ldterm, ttcompat where
4796         available.  Autoconfiscate.
4797         (try_to_initialize_subtty): New.
4798         (unix_kill_child_process): Proper signal handling for ptys on most
4799         platforms, using special knowledge of AIX, BSD, etc...
4800         (unix_create_process): Always disconnect_controlling_terminal() for
4801         subprocesses, whether using ptys or not.
4802         * process.h: Remove old getpt-dependent PTY code.
4803         * process.c (Fprocess_send_signal): New, obvious generic function.
4804         (decode_signal): New.
4805         (Finterrupt_process):
4806         (Fkill_process):
4807         (Fquit_process):
4808         (Fstop_process):
4809         (Fcontinue_process):
4810         (Fsignal_process): Use decode_signal.
4811         (process_send_signal):
4812         Many docstring corrections.
4813         Allow any signal to be sent to a process object.
4814         * config.h.in: Add symbols for big signal/process overhaul.
4815         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
4816         * sysproc.h: Include process-related headers, where available:
4817         sys/stropts.h sys/strtio.h pty.h libutil.h
4818         * s/irix4-0.h:
4819         * s/irix5-0.h:
4820         * s/cygwin32.h:
4821         * s/gnu.h:
4822         * s/linux.h:
4823         * s/hpux.h:
4824         * s/aix3-1.h:
4825         Remove old S&M pty stuff.
4826         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
4827         * systty.h: Simplify cpp hackery, improve comments.
4828         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
4829
4830         * editfns.c (Fformat_time_string):
4831         Be a little more paranoid with the return value of ctime.
4832
4833         * fileio.c (check_executable):
4834         (check_writable):
4835         Use symbolic constants X_OK, W_OK.
4836
4837         * console-x.c (split_up_display_spec): Fix a warning.
4838
4839 2000-10-02  Martin Buchholz  <martin@xemacs.org>
4840
4841         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
4842         * ntproc.c (sys_spawnve): make_string ==> build_string
4843         Small clarity improvements.
4844
4845 2000-09-30  Martin Buchholz  <martin@xemacs.org>
4846
4847         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
4848
4849         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
4850
4851         * config.h.in (HAVE_STRCASECMP): Remove.
4852
4853 2000-09-29  Martin Buchholz  <martin@xemacs.org>
4854
4855         * redisplay-output.c (redisplay_output_pixmap):
4856         Cleaner and possibly more 64-bit correct code.
4857
4858 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
4859
4860         * dumper.c (pdump_load_finish): move restoration of
4861         `noninteractive1' to emacs.c (main_1).
4862         * emacs.c (main_1): protect LISP-visible command-line flags
4863         from pdump_load().
4864
4865 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
4866
4867         * Makefile.in.in (versionclean):  Use EXE_TARGET and
4868         DUMP_TARGET instead of literal program names.
4869
4870 2000-09-20  Martin Buchholz  <martin@xemacs.org>
4871
4872         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
4873
4874 2000-09-19  Martin Buchholz  <martin@xemacs.org>
4875
4876         * *: Spelling mega-patch
4877
4878 2000-09-19  Martin Buchholz  <martin@xemacs.org>
4879
4880         * fns.c (bad_bad_turtle):
4881         Delete "Eek!" comment, since we fixed the bug to which it refers.
4882
4883 2000-09-16  Martin Buchholz  <martin@xemacs.org>
4884
4885         * alloca.c: Replace REGISTER with register.
4886
4887 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
4888
4889         * file-coding.c (ucs_to_char): Use countof.
4890
4891 2000-09-16  Martin Buchholz  <martin@xemacs.org>
4892
4893         * file-coding.c: (ucs_to_char):
4894         (complex_vars_of_file_coding):
4895         Use countof instead of sizeof.
4896         Use CHECK_NATNUM instead of CHECK_INT.
4897
4898         * sysdep.c (strcasecmp): Remove.
4899         * device-x.c (ascii_strcasecmp): New.
4900         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
4901         Avoid using non-standard non-portable strcasecmp.
4902
4903 2000-09-16  Martin Buchholz  <martin@xemacs.org>
4904
4905         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
4906         * font-lock.c: remove reference to emacsfns.h.
4907         * search.c: small doc improvement.
4908         * event-Xt.c: correct file names in comments.
4909         * console-x.h Correct file names in comments.
4910         * frame.c: Correct file names in comments.
4911         * event-stream.c: remove Energize from comments.
4912
4913 2000-09-15  Martin Buchholz  <martin@xemacs.org>
4914
4915         * symeval.h (DEFERROR_STANDARD):
4916         (DEFERROR):
4917         (DEFSYMBOL):
4918         (DEFSYMBOL_NO_DUMP):
4919         (DEFSYMBOL_MULTIWORD_PREDICATE):
4920         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
4921         (DEFKEYWORD):
4922         The construct &##name is not sensible C.
4923         Fixes compilation errors with Unixware native compiler.
4924
4925 2000-09-14  Martin Buchholz  <martin@xemacs.org>
4926
4927         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
4928         (next_frame_internal): Removed.  We now just have next_frame.
4929         (next_frame):
4930         Write a simpler and cleaner one-pass algorithm.
4931         Remove called_from_delete_device arg and #ifdefed-out code.
4932         (previous_frame):
4933         Renamed from prev_frame.  Update callers.
4934         Cleaned up to have an analogous implementation to next_frame.
4935         (other_visible_frames_internal): Remove the
4936         called_from_delete_device bogus arg, and hence, remove this
4937         function.  Just use other_visible_frames().
4938
4939         * window.c (Fnext_window):
4940         Prettify docstring.
4941         Since next_frame() is guaranteed to return a frame, remove check
4942         for nil inserted in previous patch.
4943         (Fprevious_window):
4944         Prettify docstring.
4945         Make code look more like Fnext_window.
4946         (window_loop):
4947         Respect the `console' arg when iterating through windows.
4948         Fixes bug: (get-buffer-window buffer t device) not respecting
4949         the `device' arg.
4950         This function needs more work, as others have pointed out.
4951
4952         * frame.h: Rename prev_frame to previous_frame.
4953         device_matches_console_spec no longer takes a `frame' arg.
4954
4955         * s/gnu.h:
4956         * s/linux.h:
4957         * s/hpux.h:
4958         Use EMACS_BLOCK_SIGNAL instead of sigblock.
4959         From "Golubev I. N." <gin@mo.msk.ru>.
4960
4961         * make-src-depend: Fix typo.
4962
4963 2000-09-13  Martin Buchholz  <martin@xemacs.org>
4964
4965         * window.c (Fnext_window):
4966         next_frame() might return nil, not a frame.
4967         Fixes this crash:
4968         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
4969
4970         * frame.c (next_frame_internal):
4971         We've passed a frame if we've passed its device.
4972         Fixes this crash:
4973         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
4974 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
4975
4976 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
4977
4978         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
4979         Allow option to suppress accelerators in menu/dialog items.
4980         (populate_or_checksum_helper): Pass dialog title through above.
4981
4982 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
4983
4984         * event-msw.c (mswindows_key_to_emacs_keysym):
4985         Add "pause" key, fix "menu" key.
4986
4987 2000-09-09  Martin Buchholz  <martin@xemacs.org>
4988
4989         * eval.c (reinit_vars_of_eval):
4990         Increase max_lisp_eval_depth to 1000,
4991         required for thai-xtis.el to byte-compile under some circumstances.
4992
4993 2000-09-04  Martin Buchholz  <martin@xemacs.org>
4994
4995         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
4996         From Kenichi Handa.
4997
4998 2000-09-01  Martin Buchholz  <martin@xemacs.org>
4999
5000         * make-src-depend: Make the generated Makefiles smaller.
5001
5002         * s/hpux.h (SETUP_SLAVE_PTY):
5003         Provide a %d in the format string for the errno argument.
5004
5005         * editfns.c (Ftemp_directory):
5006         Warning fix.
5007         Avoid buffer overrun on very long file name.
5008
5009         * input-method-xlib.c (XIM_init_device):
5010         6th parameter of XRegisterIMInstantiateCallback has different
5011         pointer types on different OSes, so simply cast to (void *).
5012
5013         * unexhp9k800.c: Warning fixes.  Fiddly changes.
5014
5015         * sysdll.c (dll_open):
5016         shl_load will hang hard if passed a NULL filename.
5017         Simply return NULL for compatibility with dlopen.
5018         * sysdll.c: Conform to XEmacs coding standards.
5019
5020         * sysdep.c (get_pty_max_bytes):
5021         Support pty input lines longer than 512 bytes on HP-UX 10.20.
5022
5023 2000-08-31  Martin Buchholz  <martin@xemacs.org>
5024
5025         * tooltalk.c: Add #include <syssignal.h>
5026
5027 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
5028
5029         * s/hpux.h: Don't use undefined function sigunblock().
5030
5031 2000-08-31  Martin Buchholz  <martin@xemacs.org>
5032
5033         * config.h.in: Add HAVE_BALLOON_HELP.
5034         * emacs.c: Use HAVE_BALLOON_HELP.
5035         * Makefile.in.in (x_objs):
5036         Make Balloon Help conditional on finding shape.h.
5037
5038 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
5039
5040         * syntax.c (regex_emacs_buffer_p): New variable.
5041         * syntax.h (regex_emacs_buffer_p): extern.
5042         * search.c (looking_at_1):
5043         (string_match_1):
5044         (fast_string_match):
5045         (search_buffer): Set regex_emacs_buffer_p.
5046         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
5047         when before_dot, at_dot, after_dot.
5048
5049 2000-08-23  Andy Piper  <andy@xemacs.org>
5050
5051         * gui-x.c (popup_selection_callback): Only set action_occurred
5052         when we really have an image instance.
5053         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
5054
5055 2000-08-23  Andy Piper  <andy@xemacs.org>
5056
5057         * gui-msw.c (mswindows_handle_gui_wm_command): set
5058         action_occurred.
5059         * gui-x.c (popup_selection_callback): ditto.
5060
5061         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
5062         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
5063         (struct Lisp_Image_Instance): add action_occurred flag.
5064
5065         * glyphs.c (redisplay_subwindow): use action_occurred flag.
5066         (image_instance_changed): ditto.
5067         (reset_frame_subwindow_instance_cache): only unmap windows - do
5068         not remove them from the cache also.
5069
5070         * glyphs-widget.c (tab_control_update): better debug.
5071         (progress_gauge_update): ditto.
5072         (layout_update): ditto.
5073         (layout_instantiate): ditto.
5074         (tab_control_order_only_changed): cope with null pending items.
5075
5076         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
5077         debug. Force selection of an item when an action occurred. Cope
5078         with null pending_items.
5079         (mswindows_progress_gauge_redisplay): better debug.
5080         * glyphs-x.c (x_tab_control_redisplay): ditto.
5081
5082         * redisplay.c (redisplay_frame): reset the frame cache if the
5083         frame is garbaged.
5084
5085         * window.c (Fset_window_configuration): potentially re-enable
5086         frame cache reset.
5087         (window_unmap_subwindows): need to finalize instances here since
5088         it is only used in mark_window_as_deleted.
5089
5090 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
5091
5092         * nas.c (SndOpenDataForReading):
5093         nas.c (WaveOpenDataForReading):
5094         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
5095         Somehow escaped from the 2000-08-14 patch.
5096
5097 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5098
5099         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
5100         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
5101
5102 2000-08-21  Andy Piper  <andy@xemacs.org>
5103
5104         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
5105         window if it is not already displayed.
5106
5107         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
5108         it is not already displayed.
5109
5110         * window.c (Fset_window_configuration): don't reset the frame
5111         cache.
5112
5113         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
5114         instances from the frame cache if we are actually finalizing them.
5115         (reset_frame_subwindow_instance_cache): reset frame cache only
5116         after unmapping everything.
5117         (map_subwindow): set displayed flag after mapping.
5118
5119 2000-08-21  Martin Buchholz  <martin@xemacs.org>
5120
5121         * data.c (indirect_function):
5122         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
5123
5124         * eval.c (function_argcount):
5125         Use original function when signaling errors.
5126
5127 2000-08-18  Andy Piper  <andy@xemacs.org>
5128
5129         * frame.c (delete_frame_internal): use new
5130         free_frame_subwindow_instances name.
5131
5132         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
5133         (add_tab_item): make return type correct.
5134         (mswindows_tab_control_instantiate): assert index of tab.
5135         (mswindows_tab_control_redisplay): Re-code to use
5136         gui_item_equal_sans_selected and gui_item_list_find_selected.
5137
5138         * glyphs-widget.c (tab_control_update): Correct comment.
5139
5140         * window.c (window_unmap_subwindows): use new
5141         unmap_subwindow_instance_cache_mapper.
5142         (window_unmap_subwindows_cache_mapper): deleted.
5143         (Fset_window_configuration): comparisons should now be with
5144         EQ. Preserve the subwindow instance cache across configuration
5145         changes.
5146         (allocate_window): ditto.
5147         (make_dummy_parent): ditto.
5148
5149         * glyphs.c (free_frame_subwindow_instances): rename from
5150         free_frame_subwindow_instance_cache. finalize all instances rather
5151         than just those in the display cache.
5152         (finalize_all_subwindow_instances): walk windows unmapping and
5153         finalizing subwindows.
5154         (unmap_subwindow_instance_cache_mapper): moved from
5155         window.c. Allow finalization as well as unmapping.
5156
5157         * gui.c (gui_item_list_find_selected): new function.
5158
5159         * gui.h (gui_item_list_find_selected): declare.
5160
5161         * glyphs-x.c (x_tab_control_redisplay): pick tab
5162         explicitly. Re-code to use gui_item_equal_sans_selected and
5163         gui_item_list_find_selected.
5164
5165         * glyphs-x.h: add lwlib-utils.h
5166
5167         * buffer.c (Frecord_buffer): undo previous change.
5168
5169 2000-08-09  Vin Shelton  <acs@xemacs.org>
5170
5171         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
5172         possible.  Create temporary files more securely.  The patch was
5173         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
5174         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
5175         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
5176         for details.
5177
5178 2000-08-07  Ben Wing  <ben@xemacs.org>
5179
5180         * getloadavg.c: remove duplicate (and windows-breaking)
5181         includes of fcntl.h and sys/file.h.
5182
5183         * nt.c: remove duplicate getloadavg() definition.
5184
5185         * sysdll.h (Qdll_filename_encoding): add missing stand-in
5186         encodings.
5187
5188 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
5189
5190         * eval.c (function_argcount): If function needs to be autoloaded
5191         actually use the loaded definition.
5192         GCPRO function.
5193
5194 2000-08-05  Ben Wing  <ben@xemacs.org>
5195
5196         * getloadavg.c: add prototype for getloadavg().  remove
5197         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
5198         of the code).  remove duplicate header includes.
5199
5200         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
5201
5202         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
5203         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
5204         useful load average.
5205
5206         * alloc.c (reinit_alloc_once_early): removed references to
5207         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
5208         the lisp vars are the only things referencing the malloc_sbrk_*
5209         vars, and they were already if 0'd out.  these vars only exist
5210         in the older malloc.c, which is basically unused, and they're
5211         only for informational purposes.
5212
5213         * m\*.h: removed useless VIRT_ADDR_VARIES.
5214
5215         * m\powerpc.h: removed stray NO_ARG_ARRAY.
5216
5217 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
5218
5219         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
5220         color if the image is a mono pixmap.
5221
5222 2000-07-30  Ben Wing  <ben@xemacs.org>
5223
5224         * Makefile.in.in (release):
5225         Remove stray @.
5226
5227         * buffer.c (directory_is_current_directory):
5228         * dired-msw.c (mswindows_get_files):
5229         * dired.c:
5230         * dired.c (Fdirectory_files):
5231         * dired.c (file_name_completion_stat):
5232         * dired.c (Ffile_attributes):
5233         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
5234         preprocessor tricks, to avoid problems on some machines
5235         (e.g. SCO).
5236
5237         * callproc.c (egetenv): GC docs.
5238
5239         * console-msw.h:
5240         * console-msw.h (struct mswindows_dialog_id):
5241         * lrecord.h (lrecord_type):
5242         New object for use with MSW dialogs.
5243
5244         * console.h (struct console_methods):
5245         New enable/disable frame methods, for proper modal dialogs.
5246
5247         * device-msw.c (msprinter_default_printer): Fix to follow
5248         proper Mule conventions.
5249
5250         * device-msw.c:
5251         * device-msw.c (signal_open_printer_error):
5252         * device-msw.c (msprinter_init_device):
5253         * device-msw.c (ensure_not_printing):
5254         * device-msw.c (plist_get_margin):
5255         * device-msw.c (Fmsprinter_select_settings):
5256         * device-msw.c (finalize_devmode):
5257         * device-msw.c (Fmsprinter_settings_despecialize):
5258         * device-msw.c (signal_enum_priner_error):
5259         * extents.c (decode_extent):
5260         * extents.c (decode_map_extents_flags):
5261         * extents.c (decode_extent_at_flag):
5262         * extents.c (Fextent_at):
5263         * extents.c (Fextents_at):
5264         * extents.c (symbol_to_glyph_layout):
5265         [[[[2]]]] Use structured errors.
5266
5267         * dialog-msw.c:
5268         * dialog-msw.c (mswindows_is_dialog_msg):
5269         * dialog-msw.c (mark_mswindows_dialog_id):
5270         * dialog-msw.c (dialog_proc):
5271         * dialog-msw.c (handle_question_dialog_box):
5272         * dialog-msw.c (syms_of_dialog_mswindows):
5273         Define new object to clean up marking; use it as a dialog identifier.
5274         Call new delete-dialog-box-hook.
5275
5276         * dialog-x.c (dbox_selection_callback):
5277         * dialog-x.c (dbox_descriptor_to_widget_value):
5278         * dialog-x.c (x_make_dialog_box_internal):
5279         Call new delete-dialog-box-hook.
5280         Return an id.
5281
5282         * dialog.c:
5283         * dialog.c (syms_of_dialog):
5284         * dialog.c (vars_of_dialog):
5285         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
5286
5287         * eval.c:
5288         * eval.c (signal_call_debugger):
5289         when noninteractive, output stack traces on the console instead
5290         of in a (never-seen) buffer.
5291
5292         * eval.c (signal_type_error):
5293         * eval.c (invalid_argument_2):
5294         * lisp.h:
5295         new funs for use w/structured errors.
5296
5297         * event-Xt.c:
5298         * event-Xt.c (x_to_emacs_keysym):
5299         * event-Xt.c (describe_event):
5300         * event-Xt.c (emacs_Xt_event_handler):
5301         * event-Xt.c (vars_of_event_Xt):
5302         * event-msw.c:
5303         * event-msw.c (mswindows_wnd_proc):
5304         * event-msw.c (vars_of_event_mswindows):
5305         rename {x,mswindows}-debug-events to debug-{}-events for
5306         consistency with other debug-foo variables.
5307
5308         * event-stream.c:
5309         document next-event more clearly.
5310
5311         * fileio.c (Ffile_name_directory):
5312         * fileio.c (Ffile_name_nondirectory):
5313         * fileio.c (Funhandled_file_name_directory):
5314         * fileio.c (file_name_as_directory):
5315         * fileio.c (Ffile_name_as_directory):
5316         * fileio.c (directory_file_name):
5317         * fileio.c (Fdirectory_file_name):
5318         * fileio.c (Fmake_temp_name):
5319         * fileio.c (Ffile_truename):
5320         * fileio.c (Fsubstitute_in_file_name):
5321         * fileio.c (expand_and_dir_to_file):
5322         * fileio.c (barf_or_query_if_file_exists):
5323         * fileio.c (check_executable):
5324         * fileio.c (Ffile_exists_p):
5325         * fileio.c (Ffile_writable_p):
5326         * fileio.c (Ffile_directory_p):
5327         * fileio.c (Ffile_regular_p):
5328         * fileio.c (Ffile_modes):
5329         * fileio.c (Ffile_newer_than_file_p):
5330         * fileio.c (Fverify_visited_file_modtime):
5331         * fileio.c (Fset_visited_file_modtime):
5332         * fileio.c (auto_save_1):
5333         (1). (2).
5334         fix up gcpro's.
5335
5336         * frame-msw.c:
5337         * frame-msw.c (mswindows_init_frame_1):
5338         * frame-msw.c (mswindows_enable_frame):
5339         * frame-msw.c (error_frame_unsizable):
5340         * frame-msw.c (msprinter_init_frame_1):
5341         * frame-msw.c (msprinter_init_frame_3):
5342         * frame-msw.c (console_type_create_frame_mswindows):
5343         (2).
5344         implement new enable/disable frame methods.
5345
5346         * frame-x.c:
5347         * frame-x.c (x_enable_frame):
5348         * frame-x.c (console_type_create_frame_x):
5349         implement new enable/disable frame methods.
5350
5351         * frame.c:
5352         * frame.c (Fdisable_frame):
5353         * frame.c (syms_of_frame):
5354         * frame.h (struct frame):
5355         implement new enable/disable frame methods/functions.
5356
5357         * general-slots.h:
5358         add initial-focus.
5359
5360         * glyphs-msw.c (mswindows_widget_instantiate):
5361         comment that initial-focus should be implemented.
5362
5363         * glyphs-widget.c:
5364         * glyphs-widget.c (check_valid_instantiator):
5365         * glyphs-widget.c (check_valid_orientation):
5366         * glyphs-widget.c (check_valid_tab_orientation):
5367         * glyphs-widget.c (check_valid_justification):
5368         * glyphs-widget.c (check_valid_border):
5369         * glyphs-widget.c (check_valid_callback):
5370         * glyphs-widget.c (check_valid_int_or_function):
5371         * glyphs-widget.c (check_valid_string_or_vector):
5372         * glyphs-widget.c (check_valid_item_list_1):
5373         * glyphs-widget.c (widget_validate):
5374         * glyphs-widget.c (combo_box_validate):
5375         * glyphs-widget.c (widget_instantiate):
5376         * glyphs-widget.c (syms_of_glyphs_widget):
5377         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
5378         * glyphs-widget.c (image_instantiator_combo_box):
5379         * glyphs-widget.c (image_instantiator_scrollbar):
5380         * glyphs-widget.c (image_instantiator_tab_control):
5381         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
5382         (2).
5383         support (unimplemented) keyword initial-focus.
5384         reindent long macros.
5385
5386         * glyphs-x.c (x_redisplay_widget):
5387         * glyphs-x.c (x_button_instantiate):
5388         * glyphs-x.c (x_button_redisplay):
5389         * glyphs-x.c (x_progress_gauge_instantiate):
5390         * glyphs-x.c (x_edit_field_instantiate):
5391         * glyphs-x.c (x_combo_box_instantiate):
5392         * glyphs-x.c (x_tab_control_instantiate):
5393         * glyphs-x.c (x_label_instantiate):
5394         * gui-x.c:
5395         * gui-x.c (button_item_to_widget_value):
5396         * gui-x.c (gui_items_to_widget_values_1):
5397         * gui-x.c (gui_item_children_to_widget_values):
5398         * gui-x.c (gui_items_to_widget_values):
5399         * gui-x.h:
5400         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
5401         add new flag to gui-parsing routines to indicate whether
5402         accelerator specs should be supported.
5403
5404         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
5405
5406         * glyphs.h (struct Lisp_Image_Instance):
5407         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
5408         add initial-focus flag.
5409
5410         * gui.c:
5411         * gui.c (syms_of_gui):
5412         * gui.c (vars_of_gui):
5413         clean up menu-no-selection-hook.
5414
5415         * gui.h:
5416         support delete-dialog-box-hook.
5417
5418         * lread.c (Fload_internal):
5419         * lread.c (locate_file_in_directory_mapper):
5420         (1).
5421
5422         * lrecord.h:
5423         * lrecord.h (struct toolbar_button):
5424         * lrecord.h (syms_of_toolbar):
5425         document how to create a new object.
5426
5427         * menubar-msw.c (mswindows_char_is_accelerator):
5428         may be called on frames w/o menus.
5429
5430         * menubar.c (vars_of_menubar):
5431         clean up :filter docs.
5432
5433         * nt.c (readdir):
5434         * ntproc.c:
5435         (1).
5436
5437         * process-nt.c:
5438         * process-nt.c (validate_signal_number):
5439         * process-nt.c (signal_cannot_launch):
5440         * process-nt.c (nt_create_process):
5441         * process-nt.c (nt_send_process):
5442         * process-nt.c (nt_kill_child_process):
5443         * process-nt.c (nt_open_network_stream):
5444         * process-nt.c (syms_of_process_nt):
5445         (2).
5446         delete quote-handling.  call new lisp code that does it better.
5447
5448         * process-unix.c (connect_to_file_descriptor):
5449         * process-unix.c (allocate_pty):
5450         * process-unix.c (unix_send_process):
5451         * process-unix.c (unix_kill_child_process):
5452         * process-unix.c (unix_open_network_stream):
5453         * process-unix.c (unix_open_multicast_group):
5454         (1). (2).
5455
5456         * process.c:
5457         * process.c (Fstart_process_internal):
5458         (2).  need to canonicalize process path even if absolute.
5459
5460         * select-msw.c (symbol_to_ms_cf):
5461         * select-msw.c (ms_cf_to_symbol):
5462         * select-msw.c (cf_is_autofreed):
5463         * select-msw.c (mswindows_destroy_selection):
5464         * select.c:
5465         * select.c (syms_of_select):
5466         * select.h:
5467         support dibv5, fix bugs. (from Mike Alexander)
5468
5469         * select.c (Fget_selection_internal):
5470         * select.c (select_convert_out):
5471
5472         * sysdep.c:
5473         * sysdep.c (xemacs_stat):
5474         renamed.
5475
5476         * sysdep.c (mkdir):
5477         * sysdep.c (rmdir):
5478         but keep original stat() here because we provide encapsulation
5479         around these funs.
5480
5481         * sysfile.h:
5482         * sysfile.h (fstat):
5483         remove stat garbage.
5484
5485         * syswindows.h:
5486         fix X/MSW conflict.
5487         don't include tchar.h.  it's inappropriate because it makes
5488         compile-time distinctions when we want runtime distinctions.
5489         (we provide our own tchar replacements)
5490
5491         * toolbar.c:
5492         use default object printer for toolbar-button.
5493
5494         * unexcw.c:
5495         make sure we don't encapsulate.
5496
5497         * window.c (vars_of_window):
5498         emphasize that temp-buffer-show-hook is obsolete.
5499
5500 2000-08-05  Martin Buchholz  <martin@xemacs.org>
5501
5502         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
5503         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
5504
5505         * events.c (Fevent_timestamp_lessp):
5506         Not 64-bit clean.  Use EMACS_INT, not int.
5507
5508 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
5509
5510         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
5511         unsigned int and changed the last enum to
5512         lrecord_type_last_built_in_type.
5513         (lrecord_implementations_table): changed prototype to know how
5514         long the array is supposed to be.
5515         (lrecord_type_count): new unsigned int to keep track of the
5516         current number of lisp lrecord types.
5517         (DEFINE_EXTERNAL_LRECORD):
5518         (DECLARE_EXTERNAL_LRECORD): Added these two for external
5519         dynamic-modules to declare new lisp types. They are the same
5520         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
5521         int for each new type, and increment lrecord_type_count by 1.
5522
5523         * alloc.c (lrecord_implementations_table): Changed to reference
5524         lrecord_type_last_built_in_type for the size of the array.
5525         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
5526
5527 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
5528
5529         * glyphs.h (check_valid_item_list): Renamed from
5530         check_valid_item_list_1.
5531
5532 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
5533
5534         * select.c (Qselect_coerce): New.
5535         * select.c (Vselection_coercion_alist): New.
5536         * select.c (syms_of_select): Declare.
5537         * select.c (get-selection-internal): Use it.
5538         Use the new select-coerce functionality.
5539
5540         * select.c (select_coerce): New.
5541         * select.h (select_coerce): Declare.
5542         New function to coerce one type of data into another.
5543
5544 2000-08-03  Martin Buchholz  <martin@xemacs.org>
5545
5546         * callproc.c (Fcall_process_internal):
5547         (Fcall_process_internal):
5548         * process-unix.c (unix_create_process):
5549         Save and restore the value of errno, so that error messages are accurate.
5550
5551 2000-08-01  Martin Buchholz  <martin@xemacs.org>
5552
5553         * elhash.c (print_hash_table):
5554         Fix printing of hash tables to also use `key-and-value' instead of `t'.
5555         Prettify docstrings and indentation.
5556
5557 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
5558
5559         * window.c (Fwindow_pixel_edges): Subtract frame border and
5560         gutter size.
5561
5562 2000-07-31  Andy Piper  <andy@xemacs.org>
5563
5564         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
5565         will acknowledge the change.
5566
5567         * glyphs.h: declare tab_control_order_only_changed.
5568
5569         * glyphs-x.c (x_tab_control_redisplay): use
5570         tab_control_order_only_changed.
5571
5572         * glyphs-widget.c (tab_control_order_only_changed): new function.
5573
5574         * glyphs-msw.c (mswindows_tab_control_redisplay): use
5575         tab_control_order_only_changed.
5576
5577         * gui.c (gui_item_equal_sans_selected): new function.
5578         (gui_item_equal): use it.
5579
5580         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
5581         :properties in favor of :items..
5582
5583         * glyphs-widget.c (check_valid_item_list): rename from
5584         check_valid_item_list_1.
5585         (check_valid_item_list_1): renamed.
5586         (combo_box_validate): deprecate :properties in favor of :items.
5587         (widget_instantiate): ditto.
5588         (tab_control_update): ditto.
5589         (image_instantiator_combo_box): ditto.
5590         (image_instantiator_tree_view): ditto.
5591         (image_instantiator_tab_control): ditto.
5592         (layout_post_instantiate): remove dead code.
5593
5594         * print.c (debug_print_no_newline): only write to debugger if in
5595         WIN32_NATIVE.
5596
5597         * elhash.c (Fmake_hash_table): update doc string.
5598
5599         * event-msw.c (mswindows_wnd_proc): don't allow processing of
5600         messages whilst in GC. This at least stops XEmacs crashing but has
5601         the potential for wierd behaviour.
5602
5603 2000-07-31  Martin Buchholz  <martin@xemacs.org>
5604
5605         * config.h.in:
5606         Make existence of s&m files optional.
5607
5608         * s/bsd386.h: Remove HAVE_GETLOADAVG.
5609         * s/freebsd.h: Remove HAVE_GETLOADAVG.
5610         * s/gnu.h: Remove HAVE_GETLOADAVG.
5611         * s/netbsd.h: Remove HAVE_GETLOADAVG.
5612         * s/sol2.h: Remove HAVE_GETLOADAVG.
5613         * lisp.h: Remove getloadavg() declaration.
5614         * fns.c:
5615         Include <sys/loadavg.h> if available.
5616         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
5617         * config.h.in:  Group together getloadavg()-related macros.
5618         Use only configure-time tests to detect getloadavg().
5619
5620 2000-07-30  Martin Buchholz  <martin@xemacs.org>
5621
5622         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
5623
5624 2000-07-25  Andy Piper  <andy@xemacs.org>
5625
5626         * syswindows.h: add tchar.h for native builds.
5627
5628         * frame.c (syms_of_frame): remove set-glyph-image.
5629
5630         * general-slots.h: add Qset_glyph_image.
5631
5632         * glyphs-widget.c (layout_update): add domain arg to
5633         set-glyph-image.
5634         (syms_of_glyphs_widget): remove set-glyph-image.
5635
5636 2000-07-23  Ben Wing  <ben@xemacs.org>
5637
5638         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
5639         Vpopup_frame_list.
5640
5641 2000-07-22  Andy Piper  <andy@xemacs.org>
5642
5643         * symsinit.h: add syms_of_win32().
5644
5645         * gui-msw.c (syms_of_gui_mswindows): remove
5646         Fmswindows_shell_execute.
5647         (Fmswindows_shell_execute): moved to win32.c.
5648
5649         * emacs.c (main_1): add syms_of_win32 ().
5650
5651         * win32.c (init_potentially_nonexistent_functions): rewrite in
5652         compiler-friendly terms.
5653         (Fmswindows_shell_execute): move here from gui-msw.c.
5654         (syms_of_win32): new.
5655
5656         * device-msw.c (Fmswindows_printer_list): clean up args to
5657         EnumPrinters.
5658         Don't include tchar under cygwin or mingw.
5659         (msprinter_default_printer): make cygwin-friendly.
5660
5661 2000-07-21  Andy Piper  <andy@xemacs.org>
5662
5663         * glyphs-widget.c (image_instantiator_tree_view): use tab
5664         control's update function.
5665         (layout_property): new function. Retrieve items.
5666
5667         * glyphs-msw.c (mswindows_tree_view_redisplay): new
5668         function. Re-populate the tree view from the pending items.
5669
5670         * glyphs.c (instantiate_image_instantiator): Make sure the domain
5671         is designated the parent if the domain is an image instance. This
5672         is needed so that dirtiness can be cascade up the hierarchy and
5673         thus for layout children to be redisplayed correctly.
5674         (allocate_image_instance): rename glyph -> parent.
5675
5676         * redisplay.h: change redisplay_output_layout signature.
5677
5678         * redisplay-msw.c (mswindows_output_display_block): use domain
5679         arg.
5680
5681         * redisplay-x.c (x_output_display_block): use domain arg.
5682
5683 2000-07-10  Andy Piper  <andy@xemacs.org>
5684
5685         * window.c (Fset_window_configuration): add comment.
5686
5687         * redisplay-output.c (compare_runes):
5688         (redisplay_output_subwindow): redisplay rather than update subwindow.
5689         (redisplay_output_layout): ditto.
5690
5691         * redisplay-msw.c (mswindows_frame_output_end):
5692         (mswindows_frame_output_end): make defer window pos optional.
5693
5694         * lisp.h: add Flast.
5695
5696         * glyphs.h (struct image_instantiator_methods): add dest_mask top
5697         normalize method. Change update method to be for changed
5698         instantiators. Add redisplay method. Change signature of layout
5699         method.
5700         (struct Lisp_Image_Instance): add instantiator.
5701         (IMAGE_INSTANCE_INSTANTIATOR): new.
5702         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
5703         (XIMAGE_INSTANCE_INSTANTIATOR): new.
5704         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
5705
5706         * glyphs.c:
5707         (find_instantiator_differences): new function.
5708         (Fset_instantiator_property): new convenience function.
5709         (check_image_instance_structure): strictly check for vector
5710         instantiators.
5711         (normalize_image_instantiator): make non-static.
5712         (instantiate_image_instantiator): pass on dest_mask and use new
5713         signatures for image_instance_layout and friends.
5714         (mark_image_instance): mark the instantiator. Mark the subwindow
5715         face not the widget face.
5716         (image_instance_equal): add instantiator.
5717         (image_instance_hash): ditto.
5718         (allocate_image_instance): ditto.
5719         (Fset_image_instance_property): removed.
5720         (Fimage_instance_file_name): ditto.
5721         (Fcolorize_image_instance): ditto.
5722         (image_instance_layout): add offsets to be set.
5723         (update_image_instance): new function. update an image instance
5724         from its changed instantiator.
5725         (inherit_normalize): add dest_mask.
5726         (xbm_normalize): ditto.
5727         (xface_normalize): ditto.
5728         (xpm_normalize): ditto.
5729         (text_update): set_property -> update.
5730         (image_instantiate): use the glyph identity as a hash key, not the
5731         instantiator.
5732         (glyph_width): use new image_instance_layout signature.
5733         (glyph_ascent): ditto.
5734         (glyph_descent): ditto.
5735         (glyph_height): ditto.
5736         (glyph_query_geometry): ressurrect.
5737         (glyph_layout): ditto.
5738         (redisplay_subwindow): update -> redisplay.
5739         (syms_of_glyphs): add Fset_instantiator_property.
5740         (image_instantiator_format_create): set_property -> update.
5741
5742         * glyphs-x.c:
5743         (autodetect_normalize): add dest_maks to signature.
5744         (x_redisplay_subwindow): update -> redisplay.
5745         (x_redisplay_widget): ditto.
5746         (x_button_redisplay): ditto.
5747         (x_progress_gauge_redisplay): ditto.
5748         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
5749         stacking order.
5750         (console_type_create_glyphs_x): update -> redisplay.
5751         (image_instantiator_format_create_glyphs_x): ditto.
5752
5753         * glyphs-widget.c:
5754         (check_valid_instantiator): disallow glyphs in the instantiator,
5755         they must now be vectors.
5756         (check_valid_instantiator_list): ditto.
5757         (glyph_instantiator_to_glyph): use internal symbol rather than
5758         intern.
5759         (widget_update): renamed from widget_set_property. Call cascaded
5760         update methods.
5761         (redisplay_widget): renamed from update_widget.
5762         (widget_layout): image_instance_layout now takes position as well
5763         as size.
5764         (widget_normalize): ditto.
5765         (widget_instantiate): ditto.
5766         (tab_control_query_geometry) ditto.:
5767         (tab_control_update): renamed from tab_control_set_property.
5768         (progress_gauge_update): set_property -> update.
5769         (layout_normalize): rewrite so that child instantiators are
5770         normalized also.
5771         (layout_update): new function. Create glyphs from the normalized
5772         children and cope with any other layout keywords. We do not
5773         instantiate children here that will be take care of by
5774         redisplay_output_layout.
5775         (layout_instantiate): call layout_update and not much else.
5776         (layout_post_instantiate): not sure whether this is needed
5777         anymore.
5778         (layout_query_geometry): query glyph geometry rather than
5779         image_instance geometry.
5780         (layout_layout): set offsets from pass in parameters. Use glyph
5781         geometry and layout functions rather than image instance ones.
5782         (native_layout_layout): ditto.
5783         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
5784         (image_instantiator_widget): set_property -> update.
5785         (image_instantiator_buttons): ditto.
5786         (image_instantiator_progress_guage): ditto.
5787         (image_instantiator_tab_control): ditto.
5788         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
5789         (image_instantiator_layout): add update method.
5790
5791         * glyphs-msw.c (bmp_normalize):
5792         (mswindows_resource_normalize): add dest_mask so that it can be
5793         proprogated by layout_normalize.
5794         (begin_defer_window_pos): make optional because it may not be the
5795         right thing to do and it introduces differences with X.
5796         (mswindows_unmap_subwindow): ditto.
5797         (mswindows_map_subwindow): ditto.
5798         (mswindows_redisplay_subwindow): renamed from
5799         mswindows_update_subwindow.
5800         (mswindows_redisplay_widget): ditto.
5801         (mswindows_button_redisplay): renamed from
5802         mswindows_button_update. Update is now what the instantiation
5803         function does for a changed instantiator.
5804         (mswindows_progress_gauge_instantiate): set the progress value
5805         here if appropriate.
5806         (mswindows_tab_control_redisplay): cope with re-ordering of the
5807         members of the tab widget by simply selecting the new top
5808         widget. This makes things appear ok if you click on a tab.
5809         (mswindows_combo_box_instantiate): image_instance_layout now takes
5810         position as well as size.
5811         (mswindows_progress_gauge_redisplay): renamed from
5812         mswindows_progress_gauge_update.
5813         (console_type_create_glyphs_mswindows): fix update -> redisplay.
5814         (image_instantiator_format_create_glyphs_mswindows): ditto.
5815
5816         * glyphs-eimage.c (jpeg_normalize):
5817         (gif_normalize):
5818         (png_normalize):
5819         (tiff_normalize): add dest_mask so that it can be proprogated by
5820         layout_normalize.
5821
5822         * elhash.c:
5823         (print_hash_table):
5824         (hash_table_weakness_validate):
5825         (decode_hash_table_weakness):
5826         (Fhash_table_weakness):
5827         (Fhash_table_type):
5828         (syms_of_elhash): use Ben's naming scheme for hashtable types..
5829
5830         * console.h (struct console_methods): move update_* to
5831         redisplay_*.
5832
5833 2000-07-20  Ben Wing  <ben@xemacs.org>
5834
5835         * *.[ch] (XSETOBJ): remove unused middle argument.
5836         lisp-disunion.h: correct wrap_object() to one argument.
5837
5838 2000-07-15  Ben Wing  <ben@xemacs.org>
5839
5840         * s/cygwin32.h:
5841         * s/cygwin32.h (CYGWIN_CONV_PATH):
5842         Add missing logb prototype for v1.1.
5843         Use post-b20 names and alias to pre-b20 names when pre-b20.
5844
5845         * s/windowsnt.h: [5].
5846
5847 2000-07-15  Ben Wing  <ben@xemacs.org>
5848
5849         * Makefile.in.in (x_objs):
5850         * Makefile.in.in (sheap_objs):
5851         * Makefile.in.in (objs):
5852         added win32.o, cosmetic cleanups.
5853
5854         * alloc.c (Fmake_byte_code):
5855         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
5856         etc. macros which declare their own args now.
5857
5858         * alloc.c (syms_of_alloc):
5859         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
5860
5861         * buffer.c:
5862         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
5863
5864         * buffer.c (Fget_file_buffer):
5865         Fixed GCPRO problem.
5866
5867         * buffer.c (get_truename_buffer):
5868         Fixed comment about GC checking.
5869
5870         * buffer.c (syms_of_buffer):
5871         Undeclared those dedicated frame funs.
5872         [2].
5873
5874         * buffer.h:
5875         Define convenience macros for internal/external conversions.
5876         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
5877         and Qenvironment_variable_encoding for cleaner code.
5878
5879         * bufslots.h:
5880         Remove dedicated-frame; in lisp.
5881
5882         * bytecode.c (funcall_compiled_function):
5883         [1].
5884
5885         * bytecode.c (syms_of_bytecode):
5886         [2].
5887
5888         * console-msw.c:
5889         * console-msw.c (mswindows_show_console): Rewrote.
5890
5891         * console-msw.c (Fmswindows_debugging_output): New.
5892         Sends to OutputDebugString (special MSWin debugger interface).
5893
5894         * console-msw.c (Fmswindows_message_box):
5895         Fixed stupid bugs so it works when called from kill-emacs.
5896
5897         * console-msw.c (syms_of_console_mswindows):
5898         Declare Fmswindows_debugging_output.
5899
5900         * console-msw.h:
5901         New MSWin prototypes.
5902
5903         * console-msw.h (struct mswindows_frame):
5904         New entry last-click-mods for improved button-modifier support.
5905
5906         * console-msw.h (FRAME_MSWINDOWS_POPUP):
5907         New struct entry `popup' with corresponding accessor.
5908
5909         * console-x.c:
5910         * console-x.c (split_up_display_spec):
5911         * console-x.c (get_display_arg_connection):
5912         * console-x.c (x_semi_canonicalize_console_connection):
5913         * console-x.c (x_canonicalize_device_connection):
5914         [[[6]]]: Change char to more specific type.
5915         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
5916
5917         * console-x.c (x_semi_canonicalize_console_connection):
5918         * console-x.c (x_canonicalize_device_connection):
5919         [[[9]]]: Fix up error signalling to use new structured error system.
5920
5921         * console-x.h:
5922         [[[4]]]: Define codesys aliases:
5923         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
5924         Qx_color_name_encoding, Qx_display_name_encoding.
5925
5926         * console.h (struct console_methods):
5927         New method make_dialog_box_internal supersedes older
5928         popup_dialog_box method.
5929
5930         * data.c:
5931         Define many new errors, part of new structured errors.
5932
5933         * data.c (init_errors_once_early):
5934         * data.c (syms_of_data):
5935         [2].
5936
5937         * device-msw.c (mswindows_init_device):
5938         [[[5]]]: Cleanup to support NT 3.51.
5939
5940         * device-msw.c (decode_devmode): Cleanup.
5941
5942         * device-msw.c (mswindows_handle_print_setup_dialog_box):
5943         * device-msw.c (mswindows_handle_print_dialog_box):
5944         * device-msw.c (mswindows_handle_page_setup_dialog_box):
5945         * device-msw.c (syms_of_device_mswindows):
5946         Delete the dialog box primitives recently introduced by Kirill and
5947         instead interface to general dialog box interface.
5948
5949         * device-x.c:
5950         * device-x.c (compute_x_app_name):
5951         * device-x.c (x_init_device):
5952         * device-x.c (Fx_valid_keysym_name_p):
5953         * device-x.c (Fx_set_font_path):
5954         [6].
5955         [7].
5956
5957         * device.h (wrap_device): New.
5958         First of its kind; meant to replace XSETDEVICE.
5959
5960         * dialog-msw.c: Many file-dialog symbols.
5961
5962         * dialog-msw.c (mswindows_register_popup_frame): New.
5963         * dialog-msw.c (mswindows_is_dialog_msg): New.
5964         For supporting kbd traversal in dialog boxes.
5965
5966         * dialog-msw.c (dialog_proc):
5967         Support hitting ESC in dialogs.
5968
5969         * dialog-msw.c (struct):
5970         Common dialog box errors.
5971
5972         * dialog-msw.c (handle_file_dialog_box): New.
5973         Add file dialog code.
5974
5975         * dialog-msw.c (handle_question_dialog_box):
5976         Redo existing code to support new question dialog syntax.
5977
5978         * dialog-msw.c (console_type_create_dialog_mswindows):
5979         We support new dialog console method.
5980
5981         * dialog-msw.c (syms_of_dialog_mswindows):
5982         * dialog-msw.c (vars_of_dialog_mswindows):
5983         New file dialog symbols, vars.
5984
5985         * dialog-x.c:
5986         * dialog-x.c (maybe_run_dbox_text_callback):
5987         * dialog-x.c (dbox_descriptor_to_widget_value):
5988         * dialog-x.c (x_make_dialog_box_internal):
5989         * dialog-x.c (console_type_create_dialog_x):
5990         Mule-ize entire file.
5991         Redo to support question dialog syntax.
5992         [6].
5993
5994         * dialog.c:
5995         * dialog.c (Fmake_dialog_box_internal):
5996         * dialog.c (syms_of_dialog):
5997         Kill old popup-dialog-box, replace with new primitive.
5998         Just call device method or signal error.
5999
6000         * eldap.c (Fldap_open):
6001         * eldap.c (Fldap_search_basic):
6002         * eldap.c (Fldap_add):
6003         * eldap.c (Fldap_modify):
6004         [1].
6005         [7].
6006
6007         * emacs.c:
6008         * emacs.c (make_arg_list_1):
6009         * emacs.c (make_arg_list):
6010         Mule-ize call to dll_init().
6011         [6].
6012         [8].
6013
6014         * emacs.c (make_argc_argv):
6015         * emacs.c (free_argc_argv):
6016         * emacs.c (init_cmdargs):
6017         * emacs.c (main_1):
6018         * emacs.c (Fkill_emacs):
6019         * emacs.c (Fdump_emacs):
6020         Update comments about what can be used in syms_* etc.
6021         Call init_win32() when necessary.
6022         Fix up MS Win dialog box in kill-buffer to actually work right.
6023         [7].
6024
6025         * eval.c:
6026         * eval.c (For):
6027         * eval.c (Fand):
6028         * eval.c (Fprogn):
6029         * eval.c (Fprog1):
6030         * eval.c (Fprog2):
6031         * eval.c (FletX):
6032         * eval.c (Flet):
6033         * eval.c (condition_case_3):
6034         * eval.c (Feval):
6035         * eval.c (function_argcount):
6036         * eval.c (funcall_lambda):
6037         [1].
6038
6039         * eval.c (type_error): New.
6040         * eval.c (maybe_type_error): New.
6041         * eval.c (continuable_type_error): New.
6042         * eval.c (maybe_continuable_type_error): New.
6043         * eval.c (type_error_with_frob): New.
6044         * eval.c (maybe_type_error_with_frob): New.
6045         * eval.c (continuable_type_error_with_frob): New.
6046         * eval.c (maybe_continuable_type_error_with_frob): New.
6047         New functions for use with structured errors.
6048
6049         * event-Xt.c:
6050         * event-Xt.c (x_event_to_emacs_event):
6051         Buttons are now modifiers too.
6052
6053         * event-Xt.c (emacs_Xt_current_event_timestamp):
6054         Implement new event method.
6055         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
6056
6057         * event-msw.c:
6058         * event-msw.c (ntpipe_shove_writer): [5].
6059         * event-msw.c (mswindows_enqueue_mouse_button_event):
6060         * event-msw.c (mswindows_drain_windows_queue):
6061         * event-msw.c (mswindows_wnd_proc): [7].
6062         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
6063         * event-msw.c (mswindows_modifier_state):
6064         Throughout: support new button modifiers.
6065
6066         * event-msw.c (emacs_mswindows_current_event_timestamp):
6067         Implement new event method.
6068         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
6069
6070         * event-stream.c:
6071         * event-stream.c (event_stream_current_event_timestamp): New.
6072         * event-stream.c (maybe_kbd_translate): New functionality.
6073         * event-stream.c (vars_of_event_stream):
6074         Document new kbd-translate-table functionality.
6075
6076         * event-stream.c (Fcurrent_event_timestamp): New.
6077         New primitive for use in fabricated events.
6078         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
6079
6080         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
6081
6082         * events.c:
6083         * events.c (Fmake_event):
6084         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
6085         [1].
6086         [9].
6087
6088         * events.c (format_event_object): fix gcc warnings.
6089
6090         * events.c (Fevent_timestamp): Document new primitives.
6091
6092         * events.c (TIMESTAMP_HALFSPACE): New.
6093
6094         * events.c (Fevent_timestamp_lessp): New.  New primitive for
6095         comparing timestamps correctly (half-space algorithm).
6096
6097         * events.c (Fevent_modifier_bits): Doc fix.
6098
6099         * events.c (Fevent_modifiers): Major doc addition.
6100         * events.c (event_x_y_pixel_internal): Typo fix.
6101         * events.c (syms_of_events): Declare new primitives.
6102
6103         * events.h:
6104         Update long comment for button modifiers, timestamps.
6105
6106         * events.h (struct event_stream):
6107         New current_event_timestamp method.
6108
6109         * extents.c:
6110         * extents.c (extent_in_region_p):
6111         * extents.c (decode_extent):
6112         * extents.c (Fset_extent_parent):
6113         * extents.c (decode_map_extents_flags):
6114         Fix gcc warnings.
6115         [9].
6116
6117         * extents.c (struct extent_at_arg):
6118         * extents.c (decode_extent_at_flag):
6119         * extents.c (extent_at_mapper):
6120         * extents.c (extent_at_bytind):
6121         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
6122         * extents.c (Fextents_at): New primitive. [9].
6123         * extents.c (symbol_to_glyph_layout): [9].
6124         Support new primitive `extents-at'.
6125
6126
6127         * extents.c (get_text_property_bytind):
6128         extent_at_bytind has another arg.
6129         [9].
6130
6131         * extents.c (syms_of_extents): New primitive.
6132
6133         * file-coding.c (Fmake_coding_system): [1].
6134         * file-coding.c (subsidiary_coding_system): fix gcc warning
6135         * file-coding.c (syms_of_file_coding): [2].
6136
6137         * fileio.c (Fexpand_file_name):
6138         * fileio.c (Fsysnetunam):
6139         * fileio.c (Ffile_exists_p):
6140         * fileio.c (Ffile_executable_p):
6141         * fileio.c (Fverify_visited_file_modtime):
6142         Clean up GCPROing.
6143
6144         * fileio.c (syms_of_fileio): [2].
6145
6146         * filelock.c (lock_file_1):
6147         * filelock.c (current_lock_owner):
6148         * filelock.c (lock_if_free):
6149         * filelock.c (lock_file):
6150         * filelock.c (unlock_file):
6151         Clean up GCPROing.
6152
6153         * fns.c (concat): Fix gcc warning.
6154
6155         * fns.c (Fmember):
6156         * fns.c (Fold_member):
6157         * fns.c (Fmemq):
6158         * fns.c (Fold_memq):
6159         * fns.c (memq_no_quit):
6160         * fns.c (Fassoc):
6161         * fns.c (Fold_assoc):
6162         * fns.c (Fassq):
6163         * fns.c (Fold_assq):
6164         * fns.c (assq_no_quit):
6165         * fns.c (Frassoc):
6166         * fns.c (Fold_rassoc):
6167         * fns.c (Frassq):
6168         * fns.c (Fold_rassq):
6169         * fns.c (rassq_no_quit):
6170         * fns.c (Fdelete):
6171         * fns.c (Fold_delete):
6172         * fns.c (Fdelq):
6173         * fns.c (Fold_delq):
6174         * fns.c (delq_no_quit):
6175         * fns.c (Fremassoc):
6176         * fns.c (Fremassq):
6177         * fns.c (remassq_no_quit):
6178         * fns.c (Fremrassoc):
6179         * fns.c (Fremrassq):
6180         * fns.c (remrassq_no_quit):
6181         * fns.c (Freverse):
6182         * fns.c (mapcar1):
6183         [1].
6184
6185         * frame-msw.c (mswindows_init_frame_1):
6186         * frame-msw.c (mswindows_delete_frame):
6187         Register popups with dialog code so keyboard traversing works.
6188
6189         * frame-tty.c (tty_raise_frame_no_select): [1].
6190
6191         * frame-x.c:
6192         * frame-x.c (x_set_frame_text_value):
6193         * frame-x.c (x_set_frame_properties):
6194         * frame-x.c (x_create_widgets):
6195         [7].
6196
6197         * frame.c:
6198         * frame.c (Fmouse_pixel_position): Minor doc fixes.
6199
6200         * frame.h (wrap_frame): New.
6201         Macro like wrap_device.
6202
6203         * general.c:
6204         * general.c (SYMBOL):
6205         * general.c (syms_of_general):
6206         Major reorg.  This is now just a wrapper and symbols themselves
6207         are listed in general-slots.h.
6208
6209         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
6210         * glyphs-msw.c (mswindows_resource_instantiate): [5].
6211
6212         * glyphs-msw.c (mswindows_native_layout_instantiate):
6213         Add DS_CONTROL so keyboard traversal will work.
6214
6215         * glyphs-widget.c:
6216         * glyphs-widget.c (syms_of_glyphs_widget):
6217         Move some symbols to general-slots.h.
6218
6219         * glyphs-x.c:
6220         * glyphs-x.c (xbm_instantiate_1):
6221         * glyphs-x.c (x_xbm_instantiate):
6222         * glyphs-x.c (x_xface_instantiate):
6223         * glyphs-x.c (autodetect_instantiate):
6224         * glyphs-x.c (cursor_font_instantiate):
6225         * glyphs-x.c (x_update_widget):
6226         * glyphs-x.c (x_widget_instantiate):
6227         * glyphs.c (bitmap_to_lisp_data):
6228         * glyphs.c (pixmap_to_lisp_data):
6229         [7].
6230
6231         * glyphs.c (syms_of_glyphs):
6232         [2].
6233
6234         * gui-x.c:
6235         * gui-x.c (print_widget_value):
6236         * gui-x.c (menu_separator_style_and_to_external):
6237         * gui-x.c (add_accel_and_to_external):
6238         * gui-x.c (button_item_to_widget_value):
6239         * gui-x.c (gui_items_to_widget_values_1):
6240         * gui-x.c (gui_items_to_widget_values):
6241         * gui-x.c (syms_of_gui_x):
6242         * gui-x.c (vars_of_gui_x):
6243         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
6244         [9].
6245
6246         * gui-x.h:
6247         Muleize, prototype changes matching gui-x.c.
6248
6249         * gui.c:
6250         * gui.c (separator_string_p):
6251         * gui.c (gui_item_add_keyval_pair):
6252         * gui.c (make_gui_item_from_keywords_internal):
6253         * gui.c (signal_too_long_error):
6254         * gui.c (parse_gui_item_tree_item):
6255         * gui.c (syms_of_gui):
6256         * gui.c (vars_of_gui):
6257         * gui.h:
6258         menu-no-selection-hook moved here (used by MSWin).
6259         Move some symbols to general-slots.h.
6260         [6].
6261         [9].
6262
6263         * insdel.c (get_buffer_pos_char):
6264         * insdel.c (get_buffer_range_char):
6265         Add GC comments.
6266
6267         * keymap.c (keymap_lookup_directly):
6268         * keymap.c (keymap_store):
6269         * keymap.c (ensure_meta_prefix_char_keymapp):
6270         * keymap.c (describe_map):
6271         * keymap.h:
6272         Support new button modifiers.
6273
6274         * lisp-disunion.h (wrap_object):
6275         * lisp-disunion.h (XSETOBJ):
6276         Rename make_obj to wrap_object.
6277
6278         * lisp-union.h:
6279         * lisp-union.h (make_int):
6280         * lisp-union.h (make_char):
6281         Support wrap_object.
6282
6283         * lisp.h:
6284         * lisp.h (LIST_LOOP):
6285         * lisp.h (EXTERNAL_LIST_LOOP):
6286         * lisp.h (LIST_LOOP_2):
6287         * lisp.h (EXTERNAL_LIST_LOOP_1):
6288         * lisp.h (EXTERNAL_LIST_LOOP_2):
6289         * lisp.h (EXTERNAL_LIST_LOOP_3):
6290         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
6291         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
6292         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
6293         * lisp.h (EXTERNAL_ALIST_LOOP_5):
6294         * lisp.h (EXTERNAL_ALIST_LOOP_6):
6295         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
6296         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
6297         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
6298         * lisp.h (struct Lisp_Symbol):
6299         * lisp.h (maybe_continuable_error_with_frob):
6300         Fix up section comments.
6301         Add new types for char to indicate usage.
6302         Delete symbols auto-generated from general-slots.h.
6303         Add prototypes for structured error functions.
6304         Add long comments describing looping macros and change interface
6305         so that lvalues are automatically declared.
6306         Add NO_DECLARE macro in case callers want to declare lvalues
6307         themselves.
6308
6309         * lread.c (read_syntax_error):
6310         * lread.c (continuable_read_syntax_error):
6311         * lread.c (read_structure):
6312         * lread.c (sequence_reader):
6313         * lread.c (read_list_conser):
6314         * lread.c (read_compiled_function):
6315         Rename syntax_error and continuable_syntax_error to avoid clash
6316         with same-named structured error functions.
6317
6318         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
6319         * menubar-msw.c (populate_menu_add_item):
6320         * menubar-msw.c (populate_or_checksum_helper):
6321         [5].
6322         [9].
6323
6324         * menubar-x.c:
6325         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
6326         Mule-ize whole file.
6327
6328         * menubar.c (Fnormalize_menu_item_name): Add optimization.
6329
6330         * mule-charset.c (Fmake_charset):
6331         * mule-wnnfns.c (Fwnn_set_param):
6332         [1].
6333
6334         * ntproc.c (create_child):
6335         * ntproc.c (Fwin32_set_current_locale):
6336         Add comments portending doom.
6337
6338         * objects-msw.c:
6339         * objects-msw.c (old_font_enum_callback_2):
6340         * objects-msw.c (font_enum_callback_1):
6341         * objects-msw.c (mswindows_enumerate_fonts):
6342         [5].
6343
6344         * objects-x.c:
6345         * objects-x.c (allocate_nearest_color):
6346         * objects-x.c (x_parse_nearest_color):
6347         * objects-x.c (x_initialize_color_instance):
6348         * objects-x.c (x_print_color_instance):
6349         * objects-x.c (x_finalize_color_instance):
6350         * objects-x.c (x_valid_color_name_p):
6351         * objects-x.c (x_initialize_font_instance):
6352         * objects-x.c (x_print_font_instance):
6353         * objects-x.c (valid_x_font_name_p):
6354         * objects-x.c (truename_via_FONT_prop):
6355         * objects-x.c (truename_via_random_props):
6356         * objects-x.c (truename_via_XListFonts):
6357         * objects-x.c (x_font_truename):
6358         * objects-x.c (x_font_instance_truename):
6359         * objects-x.c (x_font_instance_properties):
6360         * objects-x.c (x_list_fonts):
6361         * objects-x.c (x_find_charset_font):
6362         Mule-ize entire file.
6363         [7].
6364
6365         * objects-x.h:
6366         Mule-verify.
6367
6368         * print.c:
6369         * print.c (std_handle_out_external):
6370         * print.c (debug_print_no_newline):
6371         * print.c (syms_of_print):
6372         Output to all debugger kinds in debug-print.
6373         Fix console-output code under MSWin to actually work.
6374
6375         * process-nt.c (send_signal):
6376         * process-nt.c (nt_create_process):
6377         Use newer Unicode macros.
6378
6379         * process-unix.c (unix_create_process):
6380         * process-unix.c (unix_canonicalize_host_name):
6381         * process-unix.c (unix_open_network_stream):
6382         [7].
6383
6384         * scrollbar-x.c:
6385         Mule-verify.
6386
6387         * search.c (syms_of_search):
6388         [2].
6389
6390         * select-msw.c (mswindows_destroy_selection):
6391         Use LIST_LOOP_2.
6392
6393         * select-x.c (symbol_to_x_atom):
6394         [7].
6395
6396         * select.c (syms_of_select):
6397         [2].
6398
6399         * sound.c (Fplay_sound_file):
6400         [7].
6401
6402         * specifier.c:
6403         * specifier.c (decode_specifier_type):
6404         * specifier.c (Fvalid_specifier_locale_type_p):
6405         * specifier.c (check_valid_locale_or_locale_type):
6406         * specifier.c (decode_locale):
6407         * specifier.c (decode_locale_type):
6408         * specifier.c (decode_locale_list):
6409         * specifier.c (check_valid_domain):
6410         * specifier.c (decode_specifier_tag_set):
6411         * specifier.c (Fcanonicalize_tag_set):
6412         * specifier.c (Fdefine_specifier_tag):
6413         * specifier.c (Fspecifier_tag_predicate):
6414         * specifier.c (check_valid_inst_list):
6415         * specifier.c (check_valid_spec_list):
6416         * specifier.c (decode_how_to_add_specification):
6417         * specifier.c (check_modifiable_specifier):
6418         * specifier.c (specifier_add_spec):
6419         * specifier.c (boolean_validate):
6420         * specifier.c (display_table_validate):
6421         [9].
6422
6423         * specifier.c (syms_of_specifier):
6424         Move some symbols to general-slots.h.
6425         [2].
6426
6427         * symbols.c:
6428         * symbols.c (Fmapatoms):
6429         * symbols.c (Fapropos_internal):
6430         Add GCPROs.
6431
6432         * symbols.c (set_default_buffer_slot_variable):
6433         * symbols.c (set_default_console_slot_variable):
6434         [1].
6435
6436         * symbols.c (defsymbol_massage_name_1):
6437         * symbols.c (defkeyword_massage_name):
6438         * symbols.c (deferror_1):
6439         * symbols.c (deferror):
6440         * symbols.c (deferror_massage_name_and_message):
6441         * symeval.h:
6442         * symeval.h (DEFSYMBOL):
6443         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
6444
6445         * symbols.c (syms_of_symbols):
6446         [2].
6447
6448         * symsinit.h:
6449         * symsinit.h (init_win32): New.
6450         Also new is syms_of_dialog_mswindows.
6451
6452         * syswindows.h:
6453         Add new Unicode macros, missing Cygwin wide-char functions,
6454         convenience conversion macros for Qmswindows_tstr, macros for
6455         encapsulating required MSWin <-> Cygwin filename conversions,
6456         prototype for dynamically-extracted (not in NT 3.51) functions.
6457
6458         * toolbar-x.c:
6459         Mule-verify.
6460
6461         * tooltalk.c (Fadd_tooltalk_message_arg):
6462         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
6463         * tooltalk.c (Fadd_tooltalk_pattern_arg):
6464         [7].
6465
6466         * tooltalk.c (syms_of_tooltalk):
6467         [2].
6468
6469         * unexnt.c:
6470         * unexnt.c (unexec):
6471         Fix up headers, declaration of unexec() to be more standard.
6472
6473 2000-07-20  Martin Buchholz  <martin@xemacs.org>
6474
6475         * offix.h: Revert change to guard macros - they're used in offix.c!
6476
6477 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6478
6479         * lisp.h: Defsubred Fdelete.
6480
6481         * console-msw.h:  (msprinter_default_printer): Added.
6482
6483         * console-msw.c (msprinter_canonicalize_console_connection):
6484         (msprinter_canonicalize_device_connection): Added.
6485
6486         * device-msw.c (msprinter_default_printer):
6487         (Fmswingows_get_default_printer):
6488         (signal_enum_priner_error):
6489         (Fmswingows_printer_list): Added.
6490
6491 2000-07-19  Martin Buchholz <martin@xemacs.org>
6492
6493         * XEmacs 21.2.35 is released.
6494
6495 2000-07-19  Martin Buchholz  <martin@xemacs.org>
6496
6497         * select-x.c (x_handle_selection_request):
6498         Text selected in xemacs and pasted into xterm failed to appear.
6499         Spelling fixes and cosmetic changes.
6500
6501 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6502
6503         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
6504         XEmacs frame (fix for doubling chars in dialog boxes).
6505
6506 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
6507
6508         * select.c (select_convert_in, select_convert_out):
6509         Don't call intern() every time.
6510
6511         * select.c (Qselect_convert_in, Qselect_convert_out): New.
6512         * select.c (vars_of_select): Initialise them.
6513
6514 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
6515
6516         * select.c (selection-coercible-types): New.
6517
6518         * select.c (own-selection-internal):
6519         * select.c (get-selection-internal):
6520         MULE bug fix - these should default to COMPOUND_TEXT and not
6521         STRING for MULE. I think.
6522
6523         * select.c (select_convert_out): Use selection-coercible-types
6524         to find types that we can attempt to perform coercions on.
6525
6526 2000-07-18  Martin Buchholz  <martin@xemacs.org>
6527
6528         * mule-wnnfns.c:
6529         * mule-canna.c:
6530         Add coding: cookie to identify encoding.
6531
6532         * mule-canna.c (CANNA_mode_keys): make static.
6533         Use proper prototypes, even for functions of no arguments.
6534         Remove external prototype for Fding().
6535
6536         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
6537
6538         * select.c (syms_of_select): Add missing DEFSUBR.
6539
6540 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
6541
6542         * select.c (get_selection_internal, own_selection_internal):
6543         Make the type default to STRING, rather than placing a nil type
6544         into Vselection_alist.
6545
6546 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
6547
6548         * gpmevent.c (tty_selection_exists_p):
6549         * gpmevent.c (tty_own_selection):
6550         Updated parameter lists.
6551
6552 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
6553
6554         * select.h (selection-alist): Removed declaration.
6555
6556         * select.h (get_local_selection):
6557         * select.c (get_local_selection):
6558         Made static.
6559
6560         * select.h (convert_selection): Removed declaration.
6561         * select.c (convert_selection): Removed.
6562         This function belongs in Lisp.
6563
6564         * select.h (select_convert_in): Declare.
6565         * select.h (select_convert_out): Declare.
6566         * select.c (select_convert_in): New.
6567         * select.c (select_convert_out): New.
6568         New conversion functions for other files to call.
6569
6570         * select.h (select_notify_buffer_kill): Declare.
6571         * select.c (select_notify_buffer_kill): New.
6572         New functions that get called from kill-buffer.
6573
6574         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
6575         X-specific lisp code.
6576
6577         * select.h: Declare some of the lisp-visible functions for
6578         external use.
6579
6580         * select.c (clean_local_selection_data): Removed. This was
6581         a disgusting function, and previously should have been in
6582         select-x.c in any case. The functionality is now provided
6583         in select-convert-from-integer (select.el).
6584
6585         * select.c (available-selection-types): Fixed stupidity where
6586         INTEGER and ATOM got added twice. Also add STRING when we see an
6587         extent.
6588
6589         * select.c (get-selection-internal): Removed symbol stripping. No
6590         longer causes conversion when data comes from the internal cache.
6591
6592         * select.c (syms_of_select): Added new functions.
6593
6594         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
6595         error checking - previously this called abort!
6596
6597         * select-x.c (x_own_selection): Changed comment.
6598
6599         * select-x.c (x_handle_selection_request): Use select_convert_out.
6600         Don't mess with selection-alist; it's an internal variable of select.c.
6601
6602         * select-x.c (x_get_foreign_selection): Use select_convert_in.
6603
6604         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
6605         rather than messing with selection-alist.
6606
6607         * select-msw.c (mswindows_get_foreign_selection):
6608         Use TO_INTERNAL_FORMAT rather than hacking.
6609
6610 2000-07-14  Martin Buchholz  <martin@xemacs.org>
6611
6612         * process-unix.c (unix_open_multicast_group):
6613         (unix_open_multicast_group): Remove useless casts.
6614
6615 2000-07-13  Martin Buchholz  <martin@xemacs.org>
6616
6617         * sound.c (Fplay_sound): Fix `unused variable' warning.
6618
6619         * emacs.c (main): Use correct type for _environ on SCO5.
6620
6621 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
6622
6623         * console.h (own_selection_method):
6624         * console.h (selection_exists_p_method):
6625         * console.h (available_selection_types_method): New.
6626         * console.h (register_selection_data_type_method): New.
6627         * console.h (selection_data_type_name): New.
6628
6629         * console-msw.h (mswindows_destroy_selection): Declare it.  New
6630         function & alist to track GlobalAlloc()'d handles that need
6631         releasing when the clipboard data gets replaced or emptied.
6632
6633         * event-msw.c (mswindows_wnd_proc): Call it.
6634
6635         * lisp.h, general.c (Qappend): New symbol representing a
6636         `how-to-add' mode.
6637
6638         * select.c (own-selection-internal):
6639         * select.c (selection-exists-p):
6640         * select.c (available-selection-types): New.
6641         * select.c (register-selection-data-type): New.
6642         * select.c (selection-data-type-name): New.  New functions to deal
6643         with device-specific selection data formats.
6644         * select.c (selection-converter-out-alist): Renamed.
6645         * select.c (selection-converter-in-alist): New.
6646         * select.c (selection-appender-alist): New.  Added new alists.
6647         * select.c (syms_of_select, vars_of_select): Added new symbols &
6648         variables.
6649         * select.c (get_local_selection): Split.
6650         * select.c: Removed spurious type checking - selections may now be
6651         of any type, not just strings.
6652         * select.c (own-selection-internal):
6653
6654         * select.h, select.c (convert_selection): New. Created
6655         convert_selection() function based on get_local_selection().
6656         * select.h, select.c (QCF_*): New symbols representing mswindows
6657         clipboard formats.
6658         * select.h, select.c (Qreplace_all, Qreplace_existing): New
6659         symbols representing `how-to-add' modes.
6660
6661         * select-msw.c (x_sym_p): New.
6662         * select-msw.c (symbol_to_ms_cf): New.
6663         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
6664         symbols & clipboard formats. Can also handle string names.
6665         * select-msw.c (mswindows_own_selection):
6666         * select-msw.c (mswindows_selection_exists_p):
6667         Added `data-type' parameter. Use it.
6668         * select-msw.c (mswindows_available_selection_types): New.
6669         * select-msw.c (mswindows_register_selection_data_type): New.
6670         * select-msw.c (mswindows_selection_data_type_name): New.
6671         * select-msw.c (mswindows_own_selection):
6672         * select-msw.c (mswindows_get_foreign_selection):
6673         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
6674         * select-msw.c (console_create_select_mswindows): Added new methods.
6675         * select-msw.c (mswindows_destroy_selection): New.
6676         * select-msw.c (Vhandle_alist): New list.
6677         * select-msw.c (mswindows_own_selection):
6678
6679         * select-x.c (x_own_selection):
6680         * select-x.c (x_selection_exists_p):
6681         * select-x.c: Added some comments about maybe using new
6682         functionality.
6683         * select-x.c (x_own_selection):
6684
6685         * specifier.c: Remove definition of Qappend (now in general.c)
6686         * specifier.c (syms_of_specifier): Remove Qappend.
6687
6688 2000-07-12  Martin Buchholz  <martin@xemacs.org>
6689
6690         * config.h.in: Add socklen_t.
6691
6692         * s/decosf4-0.h: No special compiler flags needed or desired.
6693         In particular, undefine _BSD for DEC OSF 4.0.
6694
6695 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6696
6697         * redisplay-msw.c (msprinter_frame_output_end): Added.
6698         (console_type_create_redisplay_mswindows): Referred the above.
6699
6700         * frame.c (setup_frame_without_minibuffer): Do not create a
6701         default minibuffer frame on a printer device.
6702
6703         * frame-msw.c (apply_dc_geometry): Added.
6704         (msprinter_start_page):
6705         (msprinter_init_frame_3):
6706         (msprinter_eject_page): Use it.
6707
6708         * console-msw.h (struct msprinter_frame): Added pix_left and top,
6709         and removed residual duplex and orientation properties.
6710
6711 2000-07-11  Martin Buchholz  <martin@xemacs.org>
6712
6713         * eval.c (function_argcount): Work around a DEC CC compiler bug.
6714
6715         * unexalpha.c: Remove system prototypes from C sources!
6716
6717 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
6718
6719         * eval.c: Remove references to M-x edit-options in DEFUNs for
6720         `defvar' and `defconst'.
6721
6722 2000-07-09  Martin Buchholz  <martin@xemacs.org>
6723
6724         * config.h.in: Remove SMART_INCLUDE hackery.
6725
6726         PostgreSQL hacking:
6727         * config.h.in: Don't use SMART_INCLUDE.
6728
6729         * postgresql.h: Include libpq-fe.h here.  Fix typo.
6730         * inline.c: Simply #include "postgresql.h"
6731         * postgresql.c:
6732         - Don't use SMART_INCLUDE
6733         - Use simply "const".
6734         - Use standard doc string conventions.
6735         - Use correct type for result of PQstatus.
6736
6737 2000-07-09  Martin Buchholz  <martin@xemacs.org>
6738
6739         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
6740
6741         C++ compilation changes.
6742         * config.h.in (EXTERN_C): Define.
6743         * config.h.in (not): This is also a C++ keyword.
6744         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
6745         * cm.c: Use EXTERN_C.
6746         * redisplay-tty.c: Use EXTERN_C.
6747         * sysdep.c: Use EXTERN_C.  Remove Gould support.
6748
6749 2000-07-09  Martin Buchholz  <martin@xemacs.org>
6750
6751         * general.c: Remove duplicate definition for Qfunction.
6752
6753 2000-07-08  Ben Wing  <ben@xemacs.org>
6754
6755         * device-msw.c (msprinter_init_device):
6756         * device-msw.c (sync_printer_with_devmode):
6757         * device-msw.c (handle_devmode_changes):
6758         * device-msw.c (print_dialog_worker):
6759         * device-msw.c (Fmsprinter_apply_settings):
6760         * device-msw.c (hash_devmode):
6761         * device-msw.c (Fmsprinter_settings_despecialize):
6762         use Qmswindows_tstr, not Qctext.
6763
6764         * vm-limit.c (check_memory_limits):
6765         avoid infinite loop printing warning messages.
6766
6767 2000-07-05  Craig Lanning  <lanning@scra.org>
6768
6769         * Makefile.in.in: Add support for including the Windows resources
6770         when building with the cygwin and mingw targets.
6771
6772         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
6773         not set or not correct.
6774         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
6775         (init_initial_directory): Don't try to use $PWD on the
6776         WIN32_NATIVE target.
6777
6778         * s\cygwin32.h:
6779         [[Add -mwindows to eliminate console window.]] not required --ben
6780         (HAVE_NATIVE_SOUND): removed; now handled by configure.
6781         (MAIL_USE_POP): removed; now handled by configure.
6782
6783         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
6784         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
6785         (HAVE_NATIVE_SOUND): removed; now handled by configure.
6786         (MAIL_USE_POP): removed; now handled by configure.
6787         (ENCAPSULATE_STAT): from Dan Holmsand, added.
6788         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
6789         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
6790         constant string.
6791         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
6792         up from <winsock.h> via systime.h.
6793         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
6794         (getpagesize): from Dan Holmsand, added.
6795         Added #endif which was left dangling by Ben's mega patch; added
6796         comment to help prevent this in the future.
6797
6798         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
6799
6800 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6801
6802         * console-msw.h (struct mswindows_device): Removed unnecessary
6803         cached device geometry values.
6804         Added update_tick and an accessor macro.
6805         (Lisp_Devmode): Added lrecord declaration.
6806         (struct msprinter_device): Contain devmode as a Lisp object.
6807         Added mswindows_get_selected_frame_hwnd();
6808
6809         * console.h (struct console_methods): Indentation nitpicking.
6810
6811         * device-msw.c (mswindows_init_device): Do not initialize geometry
6812         cache. Initialize update tick.
6813         (mswindows_device_system_metrics): Ask the device for its geometry.
6814         (global_free_2_maybe):
6815         (devmode_to_hglobal):
6816         (handle_printer_changes):
6817         (ensure_not_printing):
6818         (print_dialog_worker):
6819         (Fmsprinter_print_setup_dialog):
6820         (Fmsprinter_print_dialog):
6821         (plist_get_margin):
6822         (plist_set_margin):
6823         (Fmsprinter_page_setup_dialog): Added functions.
6824         (sync_printer_with_devmode):
6825         (handle_devmode_changes):
6826         (Fmsprinter_get_settings):
6827         (Fmsprinter_select_settings):
6828         (Fmsprinter_apply_settings):
6829         (allocate_devmode):
6830         (Fmsprinter_settings_copy):
6831         (Fmsprinter_settings_despecialize):
6832         (print_devmode):
6833         (finalize_devmode):
6834         (equal_devmode):
6835         (hash_devmode): Added functions
6836         (syms_of_device_mswindows): Init devmode lrecord class.
6837
6838         * device.h: Added an exfun for find-device.
6839
6840         * event-msw.c (mswindows_wnd_proc): Do not update the cached
6841         geometry; although, recreate the device compatible DC.
6842
6843         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
6844         (msprinter_init_frame_3):
6845         (msprinter_frame_property):
6846         (msprinter_internal_frame_property_p):
6847         (msprinter_frame_properties):
6848         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
6849         print job properties (will move to device settings).
6850
6851         * lisp.h: Added symbols.
6852
6853         * general.c (syms_of_general): Declared them.
6854
6855         * hash.c (string_hash): Added.
6856
6857         * lrecord.h (lrecord_type): Added devmode lrecord type.
6858
6859 2000-07-02  Mike Sperber <mike@xemacs.org>
6860
6861         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
6862         FreeBSD 4.0.
6863
6864 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
6865
6866         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
6867         integer.
6868
6869 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
6870
6871         * data.c (Fstring_to_number): Don't recognize floating point if
6872         base is not 10.
6873
6874 2000-06-22  Martin Buchholz  <martin@xemacs.org>
6875
6876         * glyphs-widget.c (tab_control_query_geometry):
6877         (widget_query_geometry):
6878         (button_query_geometry):
6879         * glyphs.c (text_query_geometry):
6880         Enforce type correctness.
6881
6882 2000-06-18  Martin Buchholz  <martin@xemacs.org>
6883
6884         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
6885         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
6886
6887 2000-06-17  Martin Buchholz  <martin@xemacs.org>
6888
6889         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
6890         conflicts with gcc's fixincluded version of FOO.h.
6891
6892         * glyphs.h (image_instance_geometry): Remove trailing `,'
6893
6894 2000-06-08  Mike Alexander  <mta@arbortext.com>
6895
6896         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
6897         (shove_thread): Don't write the same output twice
6898         (make_ntpipe_output_stream): Increase priority of shove thread
6899         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
6900         chance to run
6901         (ntpipe_shove_closer): Don't delete the pipe until we're done with
6902         it.
6903
6904 2000-06-12  Ben Wing  <ben@xemacs.org>
6905
6906         * s\mingw32.h (sigset):
6907         * s\windowsnt.h (sigset):
6908         rename msw_ to mswindows_ for consistency with general convention.
6909
6910 2000-06-12  Ben Wing  <ben@xemacs.org>
6911
6912         * console-msw.c:
6913         * console-msw.c (mswindows_get_console_hwnd):
6914         * console-msw.c (mswindows_ensure_console_allocated):
6915         * console-msw.c (mswindows_hide_console):
6916         * console-msw.c (mswindows_show_console):
6917         * console-msw.c (mswindows_ensure_console_buffered):
6918         * console-msw.c (mswindows_output_console_string):
6919         * console-msw.c (mswindows_windows9x_p):
6920         * console-msw.h:
6921         * device-msw.c (mswindows_get_workspace_coords):
6922         * device-msw.c (mswindows_device_system_metrics):
6923         * dialog-msw.c (mswindows_popup_dialog_box):
6924         * event-msw.c (mswindows_wnd_proc):
6925         * frame-msw.c (mswindows_size_frame_internal):
6926         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
6927         * menubar-msw.c (displayable_menu_item):
6928         * menubar-msw.c (mswindows_char_is_accelerator):
6929         * nt.c:
6930         * nt.c (mswindows_sigset):
6931         * nt.c (mswindows_sigrelse):
6932         * nt.c (mswindows_sigpause):
6933         * nt.c (mswindows_raise):
6934         * nt.c (timer_proc):
6935         * ntproc.c:
6936         * ntproc.c (find_child_console):
6937         * ntproc.c (sys_kill):
6938         * print.c:
6939         * print.c (std_handle_out_external):
6940         * process-nt.c (find_child_console):
6941         * process-nt.c (send_signal_the_95_way):
6942         * process-nt.c (ensure_console_window_exists):
6943         * process-nt.c (nt_create_process):
6944         * syssignal.h:
6945         rename msw_ to mswindows_ for consistency with general convention.
6946
6947         * emacs.c:
6948         * dumper.c:
6949         include nt.h, not syswindows.h.
6950
6951         * nt.c (mswindows_fstat):
6952         * nt.c (mswindows_stat):
6953         prefix mswindows_ instead of attempting to directly override the
6954         library functions.  fix declarations.
6955
6956         * nt.h:
6957         include syswindows.h.  move some sysdep.h stuff here.
6958
6959         * ntheap.h:
6960         include syswindows.h, not <windows.h>.
6961
6962         * ntplay.c:
6963         clean up headers.
6964
6965         * sysdep.c:
6966         clean up headers.
6967
6968         * sysdep.c (sys_fstat):
6969         * sysdep.c (sys_stat):
6970         call mswindows versions when appropriate.
6971
6972         * sysdep.h:
6973         move mswin decls to nt.h.
6974
6975         * syswindows.h:
6976         add long comment describing appropriate use of the various windows
6977         headers.
6978
6979 2000-06-11  Ben Wing  <ben@xemacs.org>
6980
6981         * device-x.c: Correct doc string for sixth arg of x-get-resource.
6982
6983 2000-06-10  Ben Wing  <ben@xemacs.org>
6984
6985         * Makefile.in.in (release):
6986         Correction to make sure xemacs.exe always dumped when correct.
6987
6988         * alloca.c:
6989         * balloon_help.c:
6990         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
6991
6992         * buffer.c (set_buffer_internal):
6993         [[[[2]]]]: Remove HAVE_FEP code.
6994
6995         * buffer.c (init_initial_directory):
6996         [3].
6997
6998         * bytecode.c:
6999         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
7000         individual files.
7001
7002         * callproc.c:
7003         * callproc.c (call_process_cleanup):
7004         * callproc.c (Fold_call_process_internal):
7005         * callproc.c (child_setup):
7006         * callproc.c (getenv_internal):
7007         * callproc.c (init_callproc):
7008         * callproc.c (vars_of_callproc):
7009         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
7010         __CYGWIN32__ -> CYGWIN.
7011         DOS_NT -> WIN32_NATIVE.
7012         Remove MSDOS support/references, converting to WIN32_NATIVE
7013           where correct.
7014         __MINGW32__ -> MINGW.
7015         Fix windows.h includes.
7016         Remove bogus HAVE_NTGUI.
7017
7018         * config.h.in:
7019         [2].
7020
7021         * console-msw.c:
7022         mswindows_message_outputted added for use in allowing startup
7023         errors on the console to be seen.
7024
7025         * console-msw.c (msw_ensure_console_allocated):
7026         * console-msw.c (msw_output_console_string):
7027         * console-msw.c (DHEADER):
7028         * console-msw.c (DOPAQUE_DATA):
7029         * console-msw.c (DEVENT):
7030         * console-msw.c (DCONS):
7031         * console-msw.c (DCONSCDR):
7032         * console-msw.c (DSTRING):
7033         * console-msw.c (DVECTOR):
7034         * console-msw.c (DSYMBOL):
7035         * console-msw.c (DSYMNAME):
7036         Fix warnings.
7037
7038         * console-stream.c (stream_init_console):
7039         Fix text/binary problems.
7040
7041         * device-msw.c:
7042         * device-msw.c (mswindows_finish_init_device):
7043         * device-msw.c (mswindows_delete_device):
7044         [1].
7045
7046         * device.c (handle_asynch_device_change):
7047         [3].
7048
7049         * dgif_lib.c:
7050         * dgif_lib.c (DGifOpenFileName):
7051         * dgif_lib.c (DGifOpenFileHandle):
7052         * dgif_lib.c (DGifGetLine):
7053         * dgif_lib.c (DGifGetPixel):
7054         Added config.h/lisp.h, fix up includes.
7055         [1].
7056
7057         * dired-msw.c:
7058         [4].
7059
7060         * dired.c:
7061         * dired.c (file_name_completion):
7062         * dired.c (Ffile_attributes):
7063         * dired.c (syms_of_dired):
7064         [1].
7065
7066         * dumper.c:
7067         * dumper.c (pdump_file_unmap):
7068         * dumper.c (pdump_load):
7069         [1].
7070
7071         * editfns.c:
7072         * editfns.c (Ftemp_directory):
7073         * editfns.c (user_login_name):
7074         * editfns.c (Fuser_real_login_name):
7075         * editfns.c (get_home_directory):
7076         [1].
7077
7078         * elhash.c (finish_marking_weak_hash_tables):
7079         [[[[5]]]]: Fix GCC warnings.
7080
7081         * emacs.c:
7082         * emacs.c (mswindows_handle_hardware_exceptions):
7083         * emacs.c (make_arg_list_1):
7084         * emacs.c (main_1):
7085         * emacs.c (Fkill_emacs):
7086         * emacs.c (Fdump_emacs):
7087         [1].
7088         Fix problems with nested crashes, add long comment.
7089
7090         * event-Xt.c (init_event_Xt_late):
7091         [1].
7092
7093         * event-msw.c:
7094         * event-msw.c (mswindows_dde_callback):
7095         * event-msw.c (mswindows_handle_sticky_modifiers):
7096         * event-msw.c (mswindows_wnd_proc):
7097         [1].
7098         [5].
7099
7100         * events.c (character_to_event):
7101         [1].
7102
7103         * fileio.c:
7104         * fileio.c (Ffile_name_directory):
7105         * fileio.c (Ffile_name_nondirectory):
7106         * fileio.c (directory_file_name):
7107         * fileio.c (Fexpand_file_name):
7108         * fileio.c (Fsubstitute_in_file_name):
7109         * fileio.c (Ffile_name_absolute_p):
7110         * fileio.c (check_executable):
7111         * fileio.c (Ffile_readable_p):
7112         * fileio.c (Ffile_accessible_directory_p):
7113         * fileio.c (Ffile_modes):
7114         * fileio.c (Funix_sync):
7115         * fileio.c (vars_of_fileio):
7116         [1]. [4].
7117
7118         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
7119
7120         Expand getdefdir defn.
7121         Fix bogus rename() comment.
7122
7123         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
7124         to use standard XEmacs include files, e.g. sysfile.h, rather
7125         than system-specific includes.
7126
7127         * fns.c:
7128         * fns.c (Fsubseq):
7129         [5]. [6].
7130
7131         * frame.c (vars_of_frame):
7132         [1].
7133
7134         * getloadavg.c:
7135         * getloadavg.c (getloadavg):
7136         [1]. [6].
7137         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
7138         (We don't use it elsewhere in the code; just add a comment.)
7139
7140         * gif_io.c:
7141         [6].
7142         Add config.h.
7143
7144         * glyphs-msw.c:
7145         * glyphs-msw.c (mswindows_resource_instantiate):
7146         [1].
7147
7148         * glyphs-x.c (x_native_layout_instantiate):
7149         [5].
7150
7151         * gui-msw.c (Fmswindows_shell_execute):
7152         [1].
7153
7154         * insdel.c:
7155         [4].
7156
7157         * lisp.h:
7158         [4]. [5].
7159
7160         * lread.c (locate_file_in_directory_mapper):
7161         [1].
7162
7163         * lstream.c:
7164         [4].
7165
7166         * mem-limits.h:
7167         * mem-limits.h (get_lim_data):
7168         [1].
7169
7170         * menubar-msw.c:
7171         [4].
7172
7173         * ndir.h:
7174         [1].
7175
7176         * nt.c:
7177         * nt.c (getwd):
7178         * nt.c (closedir):
7179         * nt.c (rva_to_section):
7180         * nt.c (mswindows_executable_type):
7181         [1]. [6].
7182         Fix closedir() defn.
7183
7184         * nt.h:
7185         [[[[8]]]]: *_OK defs moved to sysfile.h.
7186
7187         * ntproc.c:
7188         [6]. [7].
7189
7190         * objects-x.c:
7191         [4].
7192
7193         * print.c:
7194         * print.c (std_handle_out_external):
7195         [1]. [4].
7196
7197         * process-nt.c:
7198         * process-nt.c (nt_create_process):
7199         [6].
7200         try to fix process quoting somewhat.
7201
7202         * process-unix.c (unix_create_process):
7203         [1].
7204
7205         * process.c:
7206         * process.c (vars_of_process):
7207         Add Vnull_device.
7208
7209         * process.h:
7210         [1].
7211
7212         * realpath.c:
7213         * realpath.c (xrealpath):
7214         [1].
7215
7216         * redisplay-tty.c (init_tty_for_redisplay):
7217         [3].
7218
7219         * redisplay.c:
7220         [4]. [6].
7221
7222         * scrollbar-msw.c:
7223         [4].
7224
7225         * sheap.c:
7226         * sheap.c (more_static_core):
7227         * sheap.c (report_sheap_usage):
7228         [5]. [6].
7229
7230         * signal.c:
7231         * signal.c (alarm_signal):
7232         [1]. [6].
7233
7234         * sound.c:
7235         [6].
7236
7237         * strftime.c:
7238         * strftime.c (zone_name):
7239         [1]. [5].
7240
7241         * symsinit.h (init_sunpro):
7242         [1].
7243
7244         * syscommctrl.h:
7245         commctrl.h not in Cygwin b20.1.
7246
7247         * sysdep.c:
7248         * sysdep.c (endif):
7249         * sysdep.c (sys_subshell):
7250         * sysdep.c (init_baud_rate):
7251         * sysdep.c (emacs_get_tty):
7252         * sysdep.c (emacs_set_tty):
7253         * sysdep.c (tty_init_sys_modes_on_device):
7254         * sysdep.c (init_system_name):
7255         * sysdep.c (sys_open):
7256         * sysdep.c (interruptible_open):
7257         * sysdep.c (sys_fopen):
7258         * sysdep.c (sys_mkdir):
7259         * sysdep.c (sys_rename):
7260         * sysdep.c (get_process_times_1):
7261         [1]. [6].
7262
7263         * sysdep.h:
7264         [1].
7265
7266         * sysdir.h:
7267         * sysdir.h (DIRENTRY_NONEMPTY):
7268         [1]. [6].
7269
7270         * sysdll.c (dll_init):
7271         * sysdll.h:
7272         [1].
7273
7274         * sysfile.h:
7275         [1]. [6]. [8].
7276         added text/binary defs.
7277
7278         * sysfloat.h:
7279         [1].
7280
7281         * sysproc.h:
7282         * sysproc.h (EDESTADDRREQ):
7283         * sysproc.h (poll_fds_for_input):
7284         [1]. [6].
7285
7286         * syspwd.h:
7287         [6].
7288
7289         * syssignal.h:
7290         [1].
7291
7292         * systime.h:
7293         [1]. [6].
7294
7295         * systty.h:
7296         [1].
7297
7298         * syswindows.h:
7299         [1].
7300         Always define WIN32_LEAN_AND_MEAN.
7301
7302         * unexcw.c (unexec):
7303         [5].
7304
7305         * unexec.c:
7306         * unexec.c (copy_text_and_data):
7307         * unexec.c (adjust_lnnoptrs):
7308         [1].
7309
7310         * unexnt.c:
7311         * unexnt.c (_start):
7312         [1].
7313
7314 2000-06-07  Ben Wing  <ben@xemacs.org>
7315
7316         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
7317         was used only as a model.  We've long since extracted any useful
7318         logic or code out of this. (I just did an exhaustive search.)
7319
7320         * s\msdos.h: Removed.
7321
7322         * s\windows95.h: Removed.
7323
7324 2000-06-10  Ben Wing  <ben@xemacs.org>
7325
7326         * s\cygwin32.h:
7327         [1]. [5].
7328         Don't use extern with fun defs.
7329
7330         * s\mingw32.h:
7331         [1]. [7].
7332         Remove nt\inc include.
7333         Remove getdisk, getdefdir. (The former is unused, the latter
7334         expanded in fileio.h.)
7335
7336         * s\windowsnt.h:
7337         * s\windowsnt.h (WIN32_NATIVE):
7338         * s\windowsnt.h (HAVE_STRCASECMP):
7339         [1]. [7].
7340         Add long comment about preprocessor changes.
7341         Remove getdisk, getdefdir. (The former is unused, the latter
7342         expanded in fileio.h.)
7343
7344 2000-06-10  Ben Wing  <ben@xemacs.org>
7345
7346         * m\arm.h:
7347         * m\delta.h:
7348         * m\intel386.h:
7349         * m\sequent.h:
7350         * m\template.h:
7351         * m\windowsnt.h:
7352         [1].
7353         Remove bogus/unused NO_SOCK_SIGIO.
7354
7355 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
7356
7357         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
7358         not an Emchar.
7359
7360 2000-06-04  Mike Sperber <mike@xemacs.org>
7361
7362         * casetab.c (set_case_table): For `set-standard-case-table',
7363         actually deposit the new case tables where the rest of XEmacs can
7364         see them.
7365
7366 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
7367
7368         * data.c (Faset): Don't cast XCHAR() to unsigned char.
7369
7370 2000-06-05  Ben Wing  <ben@xemacs.org>
7371
7372         * callproc.c (child_setup): Don't do close_load_descs() under
7373         MS Windows.  Put in a comment explaining why.
7374
7375 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
7376
7377         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
7378         Toolkit shell" which breaks `kill-compilation' on Windows NT
7379         native, retaining STDERR handling improvements.
7380
7381 2000-06-01  Andreas Jaeger  <aj@suse.de>
7382
7383         * s/s390.h: Support for S390, based on a patch by Martin
7384         Schwidefsky <schwidefsky@de.ibm.com>.
7385
7386 2000-05-30  Andy Piper  <andy@xemacs.org>
7387
7388         * window.c (allocate_window):
7389         (make_dummy_parent):
7390         (Fset_window_configuration): use new hashtable type.
7391
7392         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
7393         (struct image_instantiator_methods):
7394         (struct Lisp_Image_Instance): make instance geometry signed.
7395
7396         * glyphs.c (instantiate_image_instantiator):
7397         (image_instance_query_geometry):
7398         (image_instance_layout):
7399         (image_instance_layout):
7400         (query_string_geometry):
7401         (text_query_geometry):
7402         (image_instantiate):
7403         (image_instantiate):
7404         (cache_subwindow_instance_in_frame_maybe):
7405         (subwindow_query_geometry): make instance geometry signed.
7406
7407         * glyphs-widget.c (widget_query_geometry):
7408         (widget_layout):
7409         (button_query_geometry):
7410         (tree_view_query_geometry):
7411         (tab_control_query_geometry):
7412         (layout_query_geometry):
7413         (layout_layout):
7414         (native_layout_layout): make instance geometry signed.
7415
7416 2000-05-29  Olivier Galibert  <galibert@pobox.com>
7417
7418         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
7419         constant.
7420
7421         * general.c (syms_of_general): Add Qfull_assoc symbol.
7422
7423         * data.c (finish_marking_weak_lists): Mark full-assoc lists
7424         correctly.
7425         (decode_weak_list_type): Decode full-assoc type.
7426         (encode_weak_list_type): Encode full-assoc type.
7427         (Fmake_weak_list): Update doc string.
7428
7429 2000-05-30  Andy Piper  <andy@xemacs.org>
7430
7431         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
7432
7433         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
7434         (decode_hash_table_weakness): ditto.
7435         (Fhash_table_weakness): ditto.
7436         (Fhash_table_type): ditto.
7437         (finish_marking_weak_hash_tables): ditto.
7438         (hash_table_weakness_validate): ditto.
7439         (syms_of_elhash): ditto.
7440
7441 2000-05-28  Martin Buchholz <martin@xemacs.org>
7442
7443         * XEmacs 21.2.34 is released.
7444
7445 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
7446
7447         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
7448         start cache.
7449         (updating_line_start_cache): Gone.
7450         (regenerate_window): Replace resetting of VERTICAL_CLIP by
7451         generic code to force a minimum of 1 line laid out in the
7452         CMOTION_DISP case.
7453
7454 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
7455
7456         * glyphs.c (instantiate_image_instantiator): Check for initialized
7457         height & width no longer special cases IMAGE_NOTHING.
7458         (nothing_instantiate): Set height and width of instance.
7459
7460 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
7461
7462         * unexelf.c (unexec): Search for ".data" section.
7463         Initialize new_data2_offset from old_data_index.
7464         Remove redundant check for ElfW.
7465
7466 2000-05-23  Andy Piper  <andy@xemacs.org>
7467
7468         * glyphs.c (get_image_instantiator_governing_domain): allow more
7469         specific domains as the governing domain rather than expecting an
7470         exact match. This fixes problems with layouts.
7471
7472 2000-05-22  Andy Piper  <andy@xemacs.org>
7473
7474         * redisplay-output.c (compare_runes): check for non-images
7475
7476         * glyphs.c (set_glyph_dirty_p): ditto.
7477         (update_glyph_cachel_data): ditto.
7478
7479         * glyphs-widget.c (layout_post_instantiate): ditto.
7480         (layout_post_instantiate): ditto.
7481
7482         * event-msw.c (mswindows_wnd_proc): warning removal.
7483
7484 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
7485
7486         * s\mingw32.h: Added #undef for CLASH_DETECTION.
7487
7488         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
7489
7490         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
7491
7492         * nt.c (rva_to_section): mingw32 needs rva_to_section.
7493         (mswindows_executable_type): mingw32 now has enough headers for
7494         this to work.
7495
7496 2000-05-20  Andy Piper  <andy@xemacs.org>
7497
7498         * console-msw.c (mswindows_output_last_error): ; -> ,
7499
7500 2000-05-12  Andy Piper  <andy@xemacs.org>
7501
7502         * console-msw.c (FROB): compare ints with ints.
7503
7504 2000-05-11  Andy Piper  <andy@xemacs.org>
7505
7506         * glyphs-x.c (x_finalize_image_instance): make minimal build
7507         happy.
7508
7509 2000-05-20  Ben Wing  <ben@xemacs.org>
7510
7511         * event-Xt.c:
7512         * event-Xt.c (vars_of_event_Xt):
7513         move modifier-keys-are-sticky to event-stream.c.
7514
7515         * event-msw.c:
7516         * event-msw.c (mswindows_enqueue_mouse_button_event):
7517         * event-msw.c (key_needs_default_processing_p):
7518         * event-msw.c (XEMSW_LCONTROL):
7519         * event-msw.c (mswindows_handle_sticky_modifiers):
7520         * event-msw.c (FROB):
7521         * event-msw.c (clear_sticky_modifiers):
7522         * event-msw.c (output_modifier_keyboard_state):
7523         * event-msw.c (output_alt_keyboard_state):
7524         * event-msw.c (mswindows_wnd_proc):
7525         * event-msw.c (mswindows_modifier_state):
7526         * event-msw.c (emacs_mswindows_handle_magic_event):
7527         implement sticky modifiers.
7528
7529         * event-stream.c:
7530         * event-stream.c (vars_of_event_stream):
7531         move modifier-keys-are-sticky here.
7532
7533         * lisp.h:
7534         add CHECK_FUNCTION.
7535
7536         * rangetab.c:
7537         implement map-range-table.
7538
7539
7540 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
7541
7542         * redisplay-tty.c (reset_tty_modes):
7543         (tty_redisplay_shutdown): Adjust argument type to
7544         tty_frame_output_end.
7545
7546 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
7547
7548         * eval.c (Fbacktrace): Don't output a line with only right
7549         parenthesis.
7550
7551 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
7552
7553         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
7554         (Fpq_reset_poll): Ditto.
7555
7556 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
7557
7558         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
7559
7560 2000-05-16  Ben Wing  <ben@xemacs.org>
7561
7562         * buffer.c:
7563         * buffer.c (dfc_convert_to/from_internal_format):
7564         * buffer.c (reinit_vars_of_buffer):
7565         Fix conversion functions to allow reentrancy.
7566
7567         * console-msw.c:
7568         * console-msw.c (mswindows_output_last_error):
7569         New fun, generally useful -- output a human-readable
7570         version of GetLastError() on the console.
7571
7572         * console-msw.h:
7573         * console-msw.h (struct mswindows_frame):
7574         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
7575
7576         * console-stream.c (stream_output_begin):
7577         * console-stream.c (stream_output_end):
7578         * console-stream.c (stream_output_vertical_divider):
7579         * console-stream.c (stream_clear_region):
7580         * console-stream.c (stream_flash):
7581         * console-stream.c (console_type_create_stream):
7582         Delete blank stream methods, not needed.
7583
7584         * console.h (struct console_methods):
7585         Split begin/end methods into window and frame.
7586
7587         * event-msw.c:
7588         * event-msw.c (mswindows_handle_paint):
7589         * event-msw.c (output_alt_keyboard_state):
7590         * event-msw.c (mswindows_wnd_proc):
7591         * event-msw.c (vars_of_event_mswindows):
7592         Comment about problems with ignored-expose.
7593         Define mswindows-debug-events; not really implemented.
7594
7595         * frame-msw.c (mswindows_init_frame_1):
7596         random cleanups.
7597
7598         * glyphs-msw.c:
7599         * glyphs-msw.c (begin_defer_window_pos):
7600         * glyphs-msw.c (mswindows_unmap_subwindow):
7601         * glyphs-msw.c (mswindows_map_subwindow):
7602         * glyphs-msw.c (mswindows_resize_subwindow):
7603         Use DeferWindowPos to reduce flashing when mapping/unmapping.
7604
7605         * glyphs.c (make_image_instance_1):
7606         Fix crash.
7607
7608         * gutter.c (Fredisplay_gutter_area):
7609         Use new begin/end methods.
7610
7611         * lisp.h (Dynarr_new2):
7612         New creation fun.
7613
7614         * redisplay-msw.c:
7615         * redisplay-msw.c (mswindows_frame_output_begin):
7616         * redisplay-msw.c (mswindows_frame_output_end):
7617         * redisplay-msw.c (console_type_create_redisplay_mswindows):
7618         New begin/end methods -- handle DeferWindowPos.
7619
7620         * redisplay-output.c (redisplay_move_cursor):
7621         * redisplay-output.c (redraw_cursor_in_window):
7622         * redisplay-output.c (redisplay_update_line):
7623         * redisplay-output.c (redisplay_output_window):
7624         New begin/end methods.
7625
7626         * redisplay-tty.c:
7627         * redisplay-tty.c (tty_frame_output_begin):
7628         * redisplay-tty.c (tty_frame_output_end):
7629         * redisplay-tty.c (console_type_create_redisplay_tty):
7630         New begin/end methods.
7631
7632         * redisplay-x.c:
7633         * redisplay-x.c (x_window_output_begin):
7634         * redisplay-x.c (x_window_output_end):
7635         * redisplay-x.c (console_type_create_redisplay_x):
7636         New begin/end methods.
7637
7638         * redisplay.c (redisplay_frame):
7639         * redisplay.c (Fredisplay_echo_area):
7640         New begin/end methods.
7641         use MAYBE_DEVMETH for clear_frame; it may not exist.
7642
7643         * window.h (WINDOW_XFRAME):
7644         WINDOW_XFOO macros -- get locale and decode struct pointer.
7645
7646
7647 2000-05-12  Ben Wing  <ben@xemacs.org>
7648
7649         * emacs.c:
7650         * emacs.c (ensure_no_quitting_from_now_on):
7651         * emacs.c (fatal_error_signal):
7652         * emacs.c (mswindows_handle_hardware_exceptions):
7653         * emacs.c (main):
7654         * emacs.c (Fkill_emacs):
7655         * emacs.c (shut_down_emacs):
7656         * emacs.c (assert_failed):
7657         various improvements in fatal error handling.
7658
7659         * eval.c:
7660         move preparing_for_armageddon to emacs.c.
7661
7662         * lisp.h:
7663         declare fatal_error_in_progress.
7664
7665         * print.c:
7666         * print.c (std_handle_out_external):
7667         * print.c (std_handle_out_va):
7668         * print.c (stderr_out):
7669         * print.c (stdout_out):
7670         use console under mswin when no standard output.
7671         don't do code conversion during fatal error.
7672
7673         * scrollbar.c (Fscrollbar_page_up):
7674         * scrollbar.c (Fscrollbar_page_down):
7675         fix missing else.  reindent.
7676
7677 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
7678
7679         Emergency fix.
7680
7681         * glyphs.h (GLYPH_CACHEL_DESCENT):
7682         (GLYPH_CACHEL_DESCENT):
7683         (GLYPH_CACHEL_DESCENT):
7684         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
7685         used in case these are inline functions.
7686         Use more absurd values to error check.
7687
7688         include window.h for error check functions.
7689
7690 2000-05-11  Ben Wing  <ben@xemacs.org>
7691
7692         * cmdloop.c (Freally_early_error_handler):
7693         Display message box under windows; otherwise, message will disappear
7694         before it can be viewed.
7695
7696         * console-msw.c:
7697         * console-msw.c (Fmswindows_message_box):
7698         * console-msw.c (FROB):
7699         * console-msw.c (syms_of_console_mswindows):
7700         Define new fun `mswindows-message-box'.
7701         #### I will merge this into `popup-dialog-box'; just give me
7702         a bit of time.
7703
7704         * general.c:
7705         * general.c (syms_of_general):
7706         Some new symbols used in `mswindows-message-box'.
7707
7708         * glyphs.c:
7709         * glyphs.c (Fset_image_instance_property):
7710         put warning in this fun.
7711
7712         * glyphs.h:
7713         * glyphs.h (GLYPH_CACHEL_WIDTH):
7714         * glyphs.h (GLYPH_CACHEL_ASCENT):
7715         * glyphs.h (GLYPH_CACHEL):
7716         * glyphs.h (GLYPH_CACHEL_GLYPH):
7717         define error-checking versions to try to catch a bug i've seen --
7718         redisplay gets in an infinite loop because the glyph width of the
7719         continuation glyph is 65535.
7720
7721         * lisp.h:
7722         Extern message-box stuff.
7723
7724         * window.c (allocate_window):
7725         * window.c (make_dummy_parent):
7726         * window.c (Fset_window_configuration):
7727         Use EQUAL not EQ for subwindow caches to make them work a bit
7728         better. (Something is still very broken.)
7729
7730
7731 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
7732
7733         * glyphs.c (image_instantiate): Suppress gcc warnings.
7734         (Fmake_image_instance): Fix doc string.
7735         * specifier.c (Fmake_specifier): Ditto.
7736
7737 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
7738
7739         * paths.h.in (PATH_LOCK): Removed.
7740         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
7741         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
7742
7743 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
7744
7745         * fns.c (Ffeaturep): Update e-mail address in doc-string.
7746         Document (featurep '(and xemacs 21.02)).
7747
7748 2000-05-09  Ben Wing  <ben@xemacs.org>
7749
7750         * buffer.c (complex_vars_of_buffer):
7751         update modeline-format doc.
7752
7753         * device.h:
7754         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
7755
7756         * emacs.c:
7757         timeline of all released versions of Emacs, for use in creating
7758         authorship comments and in synching up.
7759
7760         * glyphs-widget.c (image_instantiator_buttons):
7761         * glyphs-widget.c (image_instantiator_edit_fields):
7762         * glyphs-widget.c (image_instantiator_combo_box):
7763         * glyphs-widget.c (image_instantiator_scrollbar):
7764         * glyphs-widget.c (image_instantiator_progress_guage):
7765         * glyphs-widget.c (image_instantiator_tree_view):
7766         * glyphs-widget.c (image_instantiator_tab_control):
7767         * glyphs-widget.c (image_instantiator_labels):
7768         * glyphs-widget.c (image_instantiator_layout):
7769         * glyphs-widget.c (image_instantiator_native_layout):
7770         rename decode_domain method to governing_domain.
7771
7772         * glyphs.c:
7773         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
7774         * glyphs.c (add_entry_to_device_ii_format_list):
7775         make sure we don't put an entry more than once into the list.
7776         * glyphs.c (check_instance_cache_mapper):
7777         *************************************************************
7778         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
7779         HAVE BEEN GETTING.
7780         *************************************************************
7781         * glyphs.c (get_image_instantiator_governing_domain):
7782         clean up, expand on new concept of governing domain.
7783         * glyphs.c (instantiate_image_instantiator):
7784         * glyphs.c (allocate_image_instance):
7785         use governing_domain instead of cache_domain in naming.
7786         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
7787         * glyphs.c (make_image_instance_1):
7788         * glyphs.c (Fmake_image_instance):
7789         allow for any domain (not just device), and process the
7790         governing domain correctly.  very big doc fix.
7791         * glyphs.c (Fimage_instance_domain):
7792         new primitive, to retrieve the governing domain of an image instance.
7793         * glyphs.c (image_instantiate):
7794         use new governing_domain stuff.  this fixes a crash you could get
7795         by instantiating certain widget glyphs in frame locales. (should
7796         signal an error instead of crashing.)
7797         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
7798         * glyphs.c (Fglyphp): clean up doc.
7799         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
7800         * glyphs.c (syms_of_glyphs):
7801         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
7802         * glyphs.c (image_instantiator_format_create): add some comments about
7803         bogus code.
7804         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
7805         for current-display-table. (Apparently Hrjove implemented in 1998 a
7806         design I wrote up in 1996, but didn't update the doc string.)
7807
7808         * glyphs.h: clean up a doc string.
7809         * glyphs.h (governing_domain):
7810         * glyphs.h (struct image_instantiator_methods):
7811         changes for governing_domain stuff.
7812
7813         * gutter.c:
7814         * gutter.c (Fgutter_specifier_p):
7815         * gutter.c (Fgutter_size_specifier_p):
7816         * gutter.c (Fgutter_visible_specifier_p):
7817         * objects.c:
7818         * objects.c (Fcolor_specifier_p):
7819         * objects.c (Ffont_specifier_p):
7820         * objects.c (Fface_boolean_specifier_p):
7821         doc strings moved to make-*-specifier.
7822
7823         * redisplay.c (add_disp_table_entry_runes_1):
7824         * redisplay.c (generate_fstring_runes):
7825         * redisplay.c (screen):
7826         add random comments and doc strings.
7827
7828         * specifier.c:
7829         * specifier.c (Fmake_specifier):
7830         major overhaul of this doc string.
7831
7832         * specifier.c (Fvalid_specifier_domain_p):
7833         comment about the bogosity of image instances being domains.
7834         * specifier.c (decode_domain):
7835         now non-static, used in glyphs.c.
7836         * specifier.c (specifier_instance):
7837         comment about the bogosity of image instances being domains.
7838         * specifier.c (Fgeneric_specifier_p):
7839         move doc string to make-generic-specifier.
7840         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
7841         rebackslashify.
7842
7843         * specifier.h:
7844         * specifier.h (DOMAIN_FRAME):
7845         * specifier.h (DOMAIN_LIVE_P):
7846         * specifier.h (DOMAIN_XDEVICE):
7847         rebackslashify.
7848         add comments about problems with these macros.
7849         prototype for decode_domain.
7850
7851         * toolbar.c:
7852         * toolbar.c (Ftoolbar_specifier_p):
7853         move doc string to `make-toolbar-specifier'.
7854
7855         * window.c (window_unmap_subwindows_cache_mapper):
7856         *************************************************************
7857         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
7858         HAVE BEEN GETTING.
7859         *************************************************************
7860
7861 2000-05-09  Andy Piper  <andy@xemacs.org>
7862
7863         * glyphs.h: declare reset_frame_subwindow_instance_cache.
7864
7865         * window.c (Fset_window_configuration): reset the frame subwindow
7866         cache and re-initialize the window subwindow caches.
7867
7868         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
7869
7870 2000-05-09  Ben Wing  <ben@xemacs.org>
7871
7872         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
7873         DWORD.
7874
7875 2000-04-26  Mike Woolley  <mike@bulsara.com>
7876
7877         * ntheap.c: Changed recreate_heap to limit the amount reserved
7878         for the heap to that which is actually available. Also now
7879         displays a message box (with some dignostics) in the event that
7880         it still can't start.
7881
7882 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
7883
7884         * callproc.c (Fold_call_process_internal): GCPRO path
7885
7886 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
7887
7888         Patch by Bill Perry.
7889
7890         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
7891         back data instead of #ifdef.
7892         (Fscrollbar_page_down): ditto.
7893
7894 2000-05-07  Ben Wing  <ben@xemacs.org>
7895
7896         * buffer.h:
7897         Kludge for defining Qmswindows_tstr.
7898
7899         * nt.c:
7900         * nt.c (open_input_file):
7901         * nt.c (open_output_file):
7902         * nt.c (rva_to_section):
7903         * nt.c (mswindows_executable_type):
7904         Move all memory-mapped-file routines here (some were in unexnt.c,
7905         which is bad because they are used by process-nt.c, and unexnt
7906         won't be around when portable dumping).  Synched the above routines
7907         with FSF 20.6.
7908
7909         * nt.h:
7910         Removed ifdef'd out bogus code.
7911         Fixed some prototypes.
7912
7913         * nt.h (file_data):
7914         * nt.h (OFFSET_TO_RVA):
7915         * nt.h (RVA_TO_OFFSET):
7916         * nt.h (RVA_TO_PTR):
7917         Moved the memory-mapped-file structures, macros and prototypes
7918         here, to parallel nt.c.  ntheap.h should really be removed
7919         entirely, and it's a non-portable-dumper specific file.
7920
7921         * ntheap.h (round_to_next):
7922         Moved the memory-mapped-file structures, macros and prototypes
7923         to nt.h.
7924
7925         * ntproc.c (compare_env):
7926         Moved rva_to_section and mswindows_executable_type to nt.c.
7927         Moved compare_env to process-nt.c.
7928         ntproc.c will die, one day.
7929
7930         * ntproc.c (sys_spawnve):
7931         Account for win32_ -> mswindows_.
7932
7933         * process-nt.c:
7934         * process-nt.c (struct nt_process_data):
7935         * process-nt.c (ensure_console_window_exists):
7936         * process-nt.c (compare_env):
7937         * process-nt.c (nt_create_process):
7938         * process-nt.c (nt_kill_process_by_pid):
7939         * process-nt.c (syms_of_process_nt):
7940         * process-nt.c (vars_of_process_nt):
7941         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
7942         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
7943         changes).  Eliminate our old `nt-quote-process-args' mechanism.
7944         Synch up nt_create_process with FSF 20.6 sys_spawnve.
7945         Move compare_env here from ntproc.c.
7946
7947         * process.c (Fprocess_send_region):
7948         Takes an optional fourth argument, BUFFER, which should fix some
7949         problems with call-process.
7950
7951         * syscommctrl.h:
7952         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
7953
7954         * syswindows.h:
7955         Move ICC_BAR_CLASSES to syscommctrl.h.
7956         Add preliminary macros for MSWindows/Mule.  More to come.
7957
7958         * unexnt.c:
7959         * unexnt.c (unexec):
7960         open_output_file moved to nt.c.
7961
7962
7963 2000-05-05  Andy Piper  <andy@xemacs.org>
7964
7965         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
7966         instance from the frame cache also since GC may catch up too late
7967         to make frame deletion sane.
7968
7969 2000-05-04  Andy Piper  <andy@xemacs.org>
7970
7971         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
7972         (x_finalize_image_instance): ungcpro on deletion.
7973
7974         * glyphs.c (image_instantiator_format_create): give pointers a
7975         query geometry method so that the geometry is at least set.
7976
7977         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
7978         initialize layouts if using widgets.
7979
7980 2000-05-03  Andy Piper  <andy@xemacs.org>
7981
7982         * nt.c: remove bogus reference to sysmmsystem.h
7983
7984         * gui-x.c (popup_selection_callback): fix no selection abort.
7985
7986 2000-05-02  Andy Piper  <andy@xemacs.org>
7987
7988         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
7989         (mswindows_widget_instantiate): ditto.
7990
7991         * glyphs-widget.c (initialize_widget_image_instance): initialize
7992         children correctly.
7993         (widget_instantiate): cope with children and items in the same
7994         instance.
7995
7996         * glyphs.c (mark_image_instance): cope with children as a first
7997         class member.
7998         (image_instance_equal): ditto.
7999         (image_instance_hash): ditto.
8000         (image_instance_changed): ditto.
8001
8002 2000-04-30  Andy Piper  <andy@xemacs.org>
8003
8004         * glyphs.c (subwindow_query_geometry): new function. Return some
8005         defaults.
8006         (subwindow_instantiate): don't assign dimensions if none have been
8007         given.
8008         (image_instantiator_format_create): add subwindow_query_geometry.
8009         (print_image_instance): cope with layouts as widgets.
8010
8011 2000-04-29  Andy Piper  <andy@xemacs.org>
8012
8013         * frame.c (delete_frame_internal): call
8014         free_frame_subwindow_instance_cache so that all subwindows are
8015         finalized before their parent.
8016         (mark_frame): remove subwindow_cachels.
8017         (Fmake_frame): remove subwindow_cachel manipulation.
8018         (allocate_frame_core): subwindow_instance_cache is a weak list.
8019         (delete_frame_internal): set subwindow_instance_cache to nil.
8020
8021         * glyphs-msw.c (mswindows_finalize_image_instance): make double
8022         finalization safe.
8023         (mswindows_finalize_image_instance): use the device
8024         not the domain as the domain may have died already.
8025
8026         * glyphs-x.c (x_finalize_image_instance): ditto.
8027         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
8028         HEIGHT.
8029
8030         * redisplay-output.c (redisplay_unmap_subwindows): update for
8031         subwindow instance cache as a weak list.
8032         (redisplay_unmap_subwindows_maybe): ditto.
8033         (redisplay_unmap_subwindows_except_us): ditto.
8034
8035         * glyphs.c (unmap_subwindow): error checking will check the domain
8036         so don't deal with it here. Don't use cachels anymore.
8037         (map_subwindow): ditto.
8038         (update_subwindow_cachel_data): remove old accessor names.
8039         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
8040         (Fresize_subwindow): don't update cachel.
8041         (mark_subwindow_cachels):
8042         (update_subwindow_cachel_data):
8043         (add_subwindow_cachel):
8044         (get_subwindow_cachel_index):
8045         (update_subwindow_cachel):
8046         (reset_subwindow_cachels):
8047         (mark_subwindow_cachels_as_not_updated): deleted.
8048         (cache_subwindow_instance_in_frame_maybe): new function. Add a
8049         subwindow instance to the frame cache.
8050         (find_matching_subwindow): update for subwindow instance cache as
8051         a weak list.
8052         (update_widget_instances): ditto.
8053         (image_instance_type_to_mask):inlined.
8054         (free_frame_subwindow_instance_cache): new function. finalize all
8055         subwindows that are instantiated.
8056
8057         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
8058         of cachel information.
8059         (IMAGE_INSTANCE_DISPLAY_X):
8060         (IMAGE_INSTANCE_DISPLAY_Y):
8061         (IMAGE_INSTANCE_DISPLAY_WIDTH):
8062         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
8063         (XIMAGE_INSTANCE_DISPLAY_X):
8064         (XIMAGE_INSTANCE_DISPLAY_Y):
8065         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
8066         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
8067         remove subwindow_cachel structure and function references.
8068         (image_instance_type_to_mask): inline from glyphs.c
8069
8070         * redisplay.c (redisplay_frame): remove subwindow_cachel
8071         references.
8072
8073         * frame.h (struct frame): remove subwindow_cachels.
8074         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
8075
8076         * frameslots.h: add subwindow_instance_cache.
8077
8078         * window.c (replace_window): check subwindow cache of replacement.
8079         (window_unmap_subwindows_cache_mapper):
8080         (window_unmap_subwindows): new functions. Unmap all subwindows
8081         cached on this window.
8082         (mark_window_as_deleted): unmap all subwindows.
8083
8084 2000-04-27  Andy Piper  <andy@xemacs.org>
8085
8086         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
8087
8088         * glyphs-widget.c (widget_layout): return something.
8089         (layout_layout): return something. Fail if not initialized.
8090         (layout_query_geometry): ditto.
8091         (image_instantiator_native_layout): new function. Initialized the
8092         native layout type.
8093         (widget_instantiate): don't do layout stuff here.
8094
8095         * glyphs.c (instantiate_image_instantiator): reorded calling or
8096         instantiate and post_instantiate with layout in between.
8097         (image_instance_layout): be more selective about deciding whether
8098         the layout has been done or not.
8099
8100         * glyphs.h (struct image_instantiator_methods): return a value
8101         from layout_method.
8102
8103 2000-04-26  Andy Piper  <andy@xemacs.org>
8104
8105         * glyphs.c (allocate_image_instance): make initial width and
8106         height unspecified. Set initialized to 0.
8107
8108         * syscommctrl.h new file. Encapsulates commctrl.h.
8109
8110         * syswindows.h new file. Encapsulates windows.h.
8111
8112         * ntplay.c: use new syswindows.h and syscommctrl.h header.
8113         * nt.c: ditto.
8114         * console-msw.h: ditto.
8115
8116         * redisplay-tty.c (tty_output_display_block): remove layout references.
8117
8118         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
8119         window handle rather than just the frame.
8120
8121         * glyphs.c (mark_image_instance): remove layout references.
8122         (print_image_instance): ditto.
8123         (image_instance_equal): ditto.
8124         (image_instance_hash): ditto.
8125         (decode_image_instance_type): ditto.
8126         (encode_image_instance_type): ditto.
8127         (image_instantiate): ditto.
8128         (allocate_glyph): ditto.
8129         (Fimage_instance_height): ditto.
8130         (Fimage_instance_width): ditto.
8131         (update_subwindow): ditto.
8132
8133         * redisplay-x.c (x_output_display_block): recode for layouts as
8134         widgets.
8135
8136         * redisplay-output.c (redisplay_output_layout): recode for layouts
8137         as widgets.
8138         (compare_runes): remove layout references.
8139
8140         * redisplay-msw.c (mswindows_output_display_block): recode for
8141         layouts as widgets.
8142
8143         * glyphs-widget.c (image_instantiator_layout): remove
8144         layout_possible_dest_types.
8145         (layout_possible_dest_types): deleted.
8146
8147         * glyphs.h (image_instance_type): remove layout references.
8148         (struct Lisp_Image_Instance): ditto. Add initialized flag.
8149         (IMAGE_INSTANCE_INITIALIZED): new accessor.
8150         (XIMAGE_INSTANCE_INITIALIZED): ditto.
8151
8152 2000-04-25  Andy Piper  <andy@xemacs.org>
8153
8154         * glyphs-widget.c (image_instantiator_buttons):
8155         (image_instantiator_edit_fields):
8156         (image_instantiator_combo_box):
8157         (image_instantiator_scrollbar):
8158         (image_instantiator_progress_guage):
8159         (image_instantiator_tree_view):
8160         (image_instantiator_tab_control):
8161         (image_instantiator_labels):
8162         (image_instantiator_layout): call default post_instantiate method.
8163         (widget_post_instantiate): new function. Simply lays out the
8164         widgets.
8165
8166         * glyphs.h (struct image_instantiator_methods): add
8167         post_instantiate method.
8168
8169         * glyphs.c (instantiate_image_instantiator): add post_instantiate
8170         method calls.
8171
8172 2000-04-23  Andy Piper  <andy@xemacs.org>
8173
8174         * glyphs.h (struct image_instantiator_methods): add
8175         decode_domain_method.
8176         (struct Lisp_Image_Instance): remove subwindow frame - it can be
8177         derived from the domain.
8178         (IMAGE_INSTANCE_FRAME): new accessor.
8179         (XIMAGE_INSTANCE_FRAME): ditto.
8180
8181         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
8182         instead of _SUBWINDOW_FRAME.
8183         (finalize_image_instance): ditto.
8184         (Fimage_instance_foreground): ditto.
8185         (Fimage_instance_background): ditto.
8186         (image_instantiate): ditto.
8187         (update_subwindow_cachel): ditto.
8188         (update_subwindow): ditto.
8189         (unmap_subwindow): ditto.
8190         (map_subwindow): ditto
8191         (subwindow_instantiate): ditto.
8192         * glyphs-msw.c (mswindows_update_widget): ditto.
8193         (mswindows_progress_gauge_instantiate): ditto.
8194         (mswindows_tab_control_update): ditto.
8195         * glyphs-x.c (x_update_widget): ditto.
8196         (x_widget_instantiate): ditto.
8197         (x_tab_control_instantiate): ditto.
8198         (x_tab_control_update): ditto.
8199         * event-msw.c (mswindows_wnd_proc): ditto
8200
8201         * glyphs-widget.c (image_instantiator_layout): use
8202         subwindow_decode_domain.
8203         (image_instantiator_buttons): ditto.
8204         (image_instantiator_edit_fields): ditto.
8205         (image_instantiator_combo_box): ditto.
8206         (image_instantiator_scrollbar): ditto.
8207         (image_instantiator_progress_guage): ditto.
8208         (image_instantiator_tree_view): ditto.
8209         (image_instantiator_tab_control): ditto.
8210         (image_instantiator_labels): ditto.
8211         (image_instantiator_layout): ditto.
8212
8213         * glyphs.c: add instance error checking to many functions.
8214         (instantiate_image_instantiator): decode device from cache_domain.
8215         (image_instantiate): partially rewrite by using
8216         decode_image_instantiator_domain to determine what domain the
8217         instance needs to be cached in.
8218         (decode_image_instantiator_domain): new function. Determine what
8219         domain the image needs to be cached in.
8220         (check_window_subwindow_cache): new error checking function.
8221         (check_instance_cache_mapper): ditto.
8222         (check_image_instance_structure): ditto.
8223         (subwindow_decode_domain): new function. Encodes a window as a
8224         subwindow's cache domain.
8225         (image_instantiator_format_create): use it for text and
8226         subwindows.
8227
8228 2000-04-21  Andy Piper  <andy@xemacs.org>
8229
8230         * glyphs.c (image_instance_device): new function.
8231         (image_instance_frame): new function.
8232         (image_instance_window): new function.
8233         (image_instance_live_p): new function.
8234
8235         * window.c (mark_window_as_deleted): reset the subwindow_instance_
8236         cache to nil.
8237
8238         * glyphs.h (struct Lisp_Image_Instance): device->domain.
8239         (IMAGE_INSTANCE_DOMAIN): new accessor.
8240         (XIMAGE_INSTANCE_DOMAIN): ditto.
8241
8242         * glyphs-x.c (x_finalize_image_instance): device->domain.
8243
8244         * glyphs-msw.c (init_image_instance_geometry): device->domain.
8245         (mswindows_finalize_image_instance): ditto.
8246
8247         * glyphs-eimage.c (jpeg_instantiate): device->domain.
8248         (gif_instantiate): ditto.
8249         (png_instantiate): ditto.
8250         (tiff_instantiate): ditto.
8251
8252         * glyphs.c (instantiate_image_instantiator): use domain rather
8253         than device.
8254         (mark_image_instance): device -> domain.
8255         (print_image_instance): ditto.
8256         (finalize_image_instance): ditto.
8257         (image_instance_equal): ditto.
8258         (allocate_image_instance): ditto.
8259         (Fcolorize_image_instance): ditto.
8260         (query_string_geometry): ditto.
8261         (image_instantiate): ditto
8262         (query_string_font): ditto.
8263         (image_instantiate): ditto.
8264         (update_subwindow): ditto.
8265         (unmap_subwindow): ditto.
8266         (map_subwindow): ditto.
8267         (subwindow_instantiate): ditto.
8268
8269         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
8270         (DOMAIN_FRAME): ditto.
8271         (DOMAIN_WINDOW): ditto.
8272         (DOMAIN_LIVE_P): ditto.
8273         (XDOMAIN_DEVICE): ditto.
8274         (XDOMAIN_FRAME): ditto.
8275         (XDOMAIN_WINDOW): ditto.
8276
8277         * specifier.c (Fvalid_specifier_domain_p): add image instances as
8278         a valid specifier domain.
8279
8280 2000-04-19  Andy Piper  <andy@xemacs.org>
8281
8282         * glyphs-widget.c (syms_of_glyphs_widget): remove
8283         widget-callback-current-channel.
8284         (vars_of_glyphs_widget): ditto.
8285         * glyphs.h: ditto
8286
8287         * gui.c (get_gui_callback): revert to previous behaviour.
8288
8289 2000-04-18  Andy Piper  <andy@xemacs.org>
8290
8291         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
8292         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
8293         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
8294
8295         * glyphs.c (image_instance_equal): add margin_width.
8296         (image_instance_hash): ditto.
8297
8298         * glyphs-widget.c (widget_instantiate): deal with margin-width.
8299         (layout_query_geometry): ditto.
8300         (layout_layout): ditto.
8301         (syms_of_glyphs_widget): add margin-width.
8302         (image_instantiator_layout): allow margin-width.
8303
8304         * glyphs.c (update_widget_instances): make a normal function.
8305         (syms_of_glyphs): remove Qupdate_widget_instances.
8306         * glyphs.h: ditto.
8307
8308         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
8309         so that we don't corrupt ideas about the last event or
8310         command. Remove widget-callback-current-channel fiddling.
8311         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
8312
8313 2000-05-01  Martin Buchholz <martin@xemacs.org>
8314
8315         * XEmacs 21.2.33 is released.
8316
8317 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
8318
8319         * make-src-depend: Allow dots in header file name.
8320
8321 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
8322
8323         * mule-charset.h (struct charset_lookup): Add
8324         next_allocated_1_byte_leading_byte and
8325         next_allocated_2_byte_leading_byte.
8326         * mule-charset.c: Move above two variables so that those values
8327         will be dumped.
8328
8329 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
8330
8331         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
8332         when string length is zero.
8333         (find_charsets_in_emchar_string): Ditto.
8334
8335 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
8336
8337         * lisp.h: extern Qdialog and Qmenubar.
8338
8339         * gui-x.c: added events.h.
8340                 also fixed typo which made the file uncompilable.
8341
8342         * general.c: Added Qmenubar and Qdialog
8343
8344 2000-04-28  Ben Wing  <ben@xemacs.org>
8345
8346         * frame-msw.c (mswindows_init_frame_1):
8347         * frame-msw.c (mswindows_mark_frame):
8348         * event-msw.c (mswindows_enqueue_dispatch_event):
8349         * console-msw.h:
8350         * console-msw.h (struct mswindows_frame):
8351         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
8352         there are now three hash tables for callbacks.
8353         mswindows_enqueue_dispatch_event is no longer static.
8354
8355         * dialog-x.c (maybe_run_dbox_text_callback):
8356         * dialog-x.c (dbox_descriptor_to_widget_value):
8357         switch to new cons3 form for callbacks.
8358
8359         * glyphs-msw.c (mswindows_register_gui_item):
8360         * glyphs-msw.c (mswindows_widget_instantiate):
8361         * glyphs-msw.c (add_tree_item):
8362         * glyphs-msw.c (add_tab_item):
8363         new image instance parameter, so it can be passed to callback-ex.
8364         respect :callback-ex as well as :callback.
8365
8366         * glyphs-widget.c (VALID_GUI_KEYWORDS):
8367         add :callback-ex.
8368
8369         * glyphs.c (print_image_instance):
8370         prettify, e.g. now prints widget type.
8371
8372         * gui-x.h:
8373         certain funs have new image instance parameter.
8374
8375         * gui.c:
8376         * gui.c (get_gui_callback):
8377         * gui.c (gui_item_add_keyval_pair):
8378         * gui.c (gui_item_init):
8379         * gui.c (gui_add_item_keywords_to_plist):
8380         * gui.c (mark_gui_item):
8381         * gui.c (gui_item_hash):
8382         * gui.c (gui_item_equal):
8383         * gui.c (copy_gui_item):
8384         * gui.c (syms_of_gui):
8385         recognize callback-ex in a number of places.
8386         also, fix the annoying "can't get out of yes-no dialog" bug.
8387
8388         * gui.h:
8389         * gui.h (struct Lisp_Gui_Item):
8390         recognize callback-ex in a number of places.
8391
8392         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
8393         new parameter in button_item_to_widget_value.
8394
8395         * glyphs-x.c (x_update_widget):
8396         * glyphs-x.c (x_button_instantiate):
8397         * glyphs-x.c (x_button_update):
8398         * glyphs-x.c (x_progress_gauge_instantiate):
8399         * glyphs-x.c (x_edit_field_instantiate):
8400         * glyphs-x.c (x_combo_box_instantiate):
8401         * glyphs-x.c (x_tab_control_instantiate):
8402         * glyphs-x.c (x_label_instantiate):
8403         new image instance parameter in various places.
8404
8405         * event-Xt.c:
8406         * event-Xt.c (enqueue_Xt_dispatch_event):
8407         this fun gets exported.
8408
8409         * gui-msw.c:
8410         * gui-msw.c (mswindows_handle_gui_wm_command):
8411         handle both :callback and :callback-ex, and generate our own
8412         event because it's one of the callback-ex arguments.
8413
8414         * gui-x.c:
8415         * gui-x.c (popup_selection_callback):
8416         handle both :callback and :callback-ex, and generate our own
8417         event because it's one of the callback-ex arguments.
8418         * gui-x.c (button_item_to_widget_value):
8419         * gui-x.c (gui_items_to_widget_values_1):
8420         * gui-x.c (gui_item_children_to_widget_values):
8421         * gui-x.c (gui_items_to_widget_values):
8422         new image instance parameter in various places.
8423
8424         * fns.c (Freplace_list):
8425         fix small typo in doc string.
8426
8427         * lisp.h:
8428         declare enqueue_Xt_dispatch_event.
8429
8430 2000-04-28  Ben Wing  <ben@xemacs.org>
8431
8432         * buffer.c:
8433         * buffer.c (Frecord_buffer):
8434         * buffer.c (syms_of_buffer):
8435         delete record-buffer-hook.
8436
8437         * fns.c:
8438         * fns.c (Freplace_list):
8439         * fns.c (syms_of_fns):
8440         new primitive replace-list.
8441
8442         * frameslots.h:
8443         slot for old buffer-alist.
8444
8445         * lisp.h:
8446         exfun replace-list.
8447
8448         * redisplay.c:
8449         * redisplay.c (redisplay_frame):
8450         * redisplay.c (syms_of_redisplay):
8451         * redisplay.c (vars_of_redisplay):
8452         new hook buffer-list-changed-hook.
8453         call it.
8454
8455 2000-04-27  Ben Wing  <ben@xemacs.org>
8456
8457         * extents.h: extern in_modeline_generation.
8458
8459         * redisplay.c (generate_formatted_string_db): set
8460         in_modeline_generation.
8461
8462         * extents.c (extent_changed_for_redisplay): don't mark redisplay
8463         flags if in modeline generation.  otherwise frame-modified-tick
8464         is ticked far too often.
8465         Declare in_modeline_generation.
8466
8467 2000-04-26  Ben Wing  <ben@xemacs.org>
8468
8469         * emacs.c (vars_of_emacs): document quick-build "error-checking"
8470         option.
8471         (vars_of_emacs): add quick-build as an error-checking option.
8472         A bit kludgy, but there doesn't seem much point in creating
8473         a real var for this.
8474
8475         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
8476
8477 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
8478
8479         * redisplay.h (struct display_line): Add a new variable,
8480         line_continuation.
8481
8482         * redisplay.c (create_text_block): Set dl->line_continuation if
8483         the line continues.
8484         (create_string_text_block): Ditto.
8485         (regenerate_window_incrementally): Use line_continuation instead
8486         of searching continuation glyph.
8487         (add_margin_runes): Call add_glyph_rune.
8488         (add_glyph_rune): Handle margin glyph.
8489
8490 2000-04-20  Martin Buchholz  <martin@xemacs.org>
8491
8492         * filelock.c (fill_in_lock_file_name):
8493         ANSIfy.
8494         Check for IS_ANY_SEP instead of '/'.
8495         (lock_file_1):
8496         Avoid generating gratuitous garbage.  Call user_login_name() directly.
8497         Never check errno without first seeing that system call failed.
8498         (unlock_file): Add GCPRO.
8499         (Flock_buffer): Fix docstring.
8500         (Ffile_locked_p): Fix docstring.  Add GCPRO.
8501
8502 2000-04-19  Martin Buchholz  <martin@xemacs.org>
8503
8504         * sysdep.c (get_pty_max_bytes):
8505         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
8506         strings longer than 252 bytes.
8507
8508         * md5.c: Unconditionally include ANSI header <limits.h>
8509
8510         * glyphs-x.c (convert_EImage_to_XImage):
8511         * lisp-union.h (union Lisp_Object):
8512         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
8513
8514 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8515
8516         * filelock.c (current_lock_owner): Remove unused variable o, p.
8517
8518 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
8519
8520         * callint.c: Remove multiply defined symbol Qlet
8521         (syms_of_callint): ditto.
8522
8523 2000-04-14  Andy Piper  <andy@xemacs.org>
8524
8525         * general.c (syms_of_general): add last-command, this-command, let
8526         and funcall.
8527
8528         * lisp.h: declare various symbols.
8529
8530         * glyphs.h: declare Qwidget_callback_current_channel;
8531
8532         * glyphs-widget.c (syms_of_glyphs_widget): add
8533         Qgui_callback_current_channel.
8534         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
8535
8536         * gui-msw.c (mswindows_handle_gui_wm_command): bind
8537         widget-callback-current-channel when invoking the interactive
8538         arg. Also bind last-command and next-command when invoking the
8539         widget updates.
8540         * gui-x.c (popup_selection_callback): ditto.
8541
8542         * gui.c (get_gui_callback): massage args so that we are always
8543         calling eval. This allows us to add our own variable bindings
8544         outside.
8545
8546         * glyphs-x.c (x_button_instantiate): use
8547         gui_items_to_widget_values since this is GC safe.
8548         (x_progress_gauge_instantiate): ditto.
8549         (x_edit_field_instantiate): ditto.
8550         (x_label_instantiate): ditto.
8551
8552         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
8553         (emacs_Xt_event_widget_focus_out): new function
8554         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
8555         focus.
8556         (emacs_Xt_event_add_widget_actions): new function. add focus
8557         functions as actions.
8558         (init_event_Xt_late): use it.
8559
8560 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
8561
8562         * event-stream.c (Fdispatch_event): Doc fix.
8563
8564 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
8565
8566         * postgresql.c: Remove all references to PQsetenv*.
8567
8568         * postgresql.h: Remove references to PGsetenvHandler object.
8569         * lrecord.h (lrecord_type): Ditto.
8570
8571 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8572
8573         * glyphs-msw.h (struct mswindows_image_instance_data): Added
8574         real_heigh and real_width members, and accessor macros for these.
8575
8576         * glyphs-msw.c (init_image_instance_geometry): New function.
8577         (init_image_instance_from_dibitmap): Use it.
8578         (mswindows_resource_instantiate): Use it.
8579         (init_image_instance_from_xbm_inline): Use it.
8580         (mswindows_initialize_image_instance_mask): Use real bitmap
8581         geometry.
8582         (mswindows_create_resized_bitmap): Ditto.
8583         (mswindows_create_resized_mask): Ditto.
8584
8585         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
8586         and bitmap to their surface size.
8587
8588 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
8589
8590         * process-unix.c (unix_send_process): Guard against process MIA
8591         after Faccept_process_output.
8592
8593 2000-04-11  Ben Wing  <ben@xemacs.org>
8594
8595         * eval.c (unbind_to_hairy): fix brokenness introduced by
8596         nanosecond speed improvements.
8597
8598 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
8599
8600         * sunplay.c (init_device): To play sounds correctly, the device
8601         apparently needs to be initialized at least once by XEmacs.  Make
8602         it so.
8603
8604 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
8605
8606         * redisplay.c (add_margin_runes): Add text image glyph
8607           handling.
8608
8609 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8610
8611         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
8612         gcc is newer than 2.5.
8613
8614 2000-04-06  Colin Rafferty  <colin@xemacs.org>
8615
8616         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
8617
8618         * fns.c (size_bit_vector):
8619         * alloc.c (size_vector):
8620         (make_vector_internal):
8621         (make_bit_vector_internal):
8622         (sweep_bit_vectors_1):
8623         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
8624
8625 2000-04-06  Andy Piper  <andy@xemacs.org>
8626
8627         * gmalloc.c (malloc): undo previous change.
8628         (malloc): ditto.
8629         (free): ditto.
8630         (realloc): ditto.
8631
8632 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
8633
8634         * line-number.c (buffer_line_number): Revert to former version.
8635
8636 2000-04-06  Andy Piper  <andy@xemacs.org>
8637
8638         * gmalloc.c (malloc): add error checking.
8639         (malloc): ditto.
8640         (free): ditto.
8641         (realloc): ditto.
8642
8643         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
8644         button_item_to_widget_value arg.
8645
8646         * glyphs-x.c (x_button_instantiate): add extra
8647         button_item_to_widget_value arg.
8648         (x_progress_gauge_instantiate): ditto.
8649         (x_edit_field_instantiate): ditto.
8650         (x_label_instantiate): ditto.
8651
8652         * gui-x.c (gui_items_to_widget_values_1): add extra
8653         button_item_to_widget_value arg.
8654         (button_item_to_widget_value): add extra menu_item_p arg.
8655
8656         * gui-x.h: change signature of button_item_to_widget_value.
8657
8658         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
8659         button_item_to_widget_value arg.
8660
8661 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
8662
8663         * buffer.h (struct buffer): auto_save_modified should be long.
8664
8665 2000-04-05  Andy Piper  <andy@xemacs.org>
8666
8667         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
8668         type.
8669         (button_query_geometry): give a little more room so that athena
8670         buttons fit.
8671
8672 2000-04-05  Andy Piper  <andy@xemacs.org>
8673
8674         * faces.c (complex_vars_of_faces): The widget face should inherit
8675         the font of the gui-element face.
8676
8677 2000-04-04  Andy Piper  <andy@xemacs.org>
8678
8679         * glyphs-x.c (x_button_update): new function. unconditionally
8680         update a button's state when the instance is dirty.
8681         (image_instantiator_format_create_glyphs_x): add x_button_update.
8682         (x_widget_instantiate): remove old resize cruft.
8683
8684 2000-04-02  Andy Piper  <andy@xemacs.org>
8685
8686         * frame.c (change_frame_size_1): The introduction of gutters means
8687         that we need to allow 0 as a potential frame dimension.
8688
8689 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
8690
8691         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
8692         image glyph if allow_cursor.
8693         (add_hscroll_rune): Don't allow cursor to border glyph.
8694         (create_text_block): Ditto.
8695
8696         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
8697         text not in buffer.
8698         (redisplay_output_layout): Call ensure_face_cachel_complete for
8699         text image glyph.
8700
8701
8702 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
8703
8704         * redisplay.c (add_glyph_rune): Adding text image as text runes.
8705
8706         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
8707         not in buffer
8708
8709         * redisplay-tty.c (tty_output_display_block): Delete the routine
8710         for text image glyph
8711         * redisplay-x.c (x_output_display_block): ditto
8712         * redisplay-msw.c (mswindows_output_display_block): ditto
8713
8714 2000-02-02  Mike Alexander  <mta@arbortext.com>
8715
8716         Note: Some of these were committed by accident as part of other
8717         patches.
8718
8719         * regex.c (regex_compile): Avoid compiler warnings.
8720
8721         * ntproc.c (sys_spawnve): Avoid compiler warnings.
8722
8723         * nt.h: Declare term_ntproc correctly.
8724
8725         * nt.c: Remove incorrect declaration of get_home_directory which
8726         is declared correctly in lisp.h.
8727
8728         * keymap.c (get_keyelt): Avoid compiler warnings.
8729         (raw_lookup_key_mapper): Avoid compiler warnings.
8730
8731         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
8732
8733         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
8734
8735         * filemode.c (mode_string): Avoid compiler warnings.
8736
8737         * file-coding.c (Fcoding_system_aliasee): Add return statement to
8738         avoid warning.
8739
8740         * events-mod.h: Undef some things that winuser.h defines differently.
8741
8742         * data.c (Faset): Avoid compiler warnings.
8743
8744         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
8745
8746 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
8747
8748         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
8749         Fall through to simple beep on error.
8750         Replace "extern" by real header file.
8751
8752         * linuxplay.c: Use nativesound.h
8753         (play_sound_data): Return error code. Be less verbose on error.
8754
8755         * sunplay.c: Use nativesound.h
8756         (play_sound_data): Return error code. Be less verbose on error.
8757
8758         * ntplay.c: Use nativesound.h
8759         (play_sound_data): Return fake error code
8760
8761         * sgiplay.c: Use nativesound.h
8762         (play_sound_data): Return error code
8763
8764         * hpplay.c: Use nativesound.h, partially implement
8765         new error code. Break compilation until finished.
8766         (play_sound_data): error code.
8767
8768         * nativesound.h (play_sound_file):
8769           (play_sound_data): Prototype in new header.
8770
8771 2000-03-31  Andy Piper  <andy@xemacs.org>
8772
8773         * glyphs-widget.c: (button_query_geometry): new function. Adjust
8774         for toggle and radio buttons.
8775         (image_instantiator_buttons): use it.
8776
8777 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
8778
8779         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
8780         (x_update_horizontal_scrollbar_callback): Return if no mirror was
8781         found. Scrollbar event probably belonged to some old config.
8782
8783 2000-03-31  Andy Piper  <andy@xemacs.org>
8784
8785         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
8786         than 1.
8787         (initialize_widget_image_instance): default layout to
8788         LAYOUT_HORIZONTAL rather than 0.
8789         (widget_instantiate): reverse the item list at the end rather than
8790         every iteration.
8791         (layout_layout): re-code for the border text at the front of the
8792         item list rather than at the end.
8793         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
8794         provided by the user.
8795         (widget_query_geometry): comment.
8796
8797 2000-03-30  Andy Piper  <andy@xemacs.org>
8798
8799         * glyphs-widget.c (image_instantiator_layout): allow standard
8800         widget keywords in layouts.
8801
8802         * gutter.c (output_gutter): cope with nil gutter contents.
8803
8804         * frame.c (Fset_frame_properties): add gutter docs.
8805
8806 2000-03-29  Andy Piper  <andy@xemacs.org>
8807
8808         * toolbar-msw.c (TBSTYLE_FLAT): add.
8809         (mswindows_output_toolbar): minor fiddling.
8810
8811 2000-03-29  Andy Piper  <andy@xemacs.org>
8812
8813         * gutter.c (output_gutter): force gutter size recalculation if
8814         what we are trying to display won't fit.
8815         (update_gutter_geometry): new function. A per-gutter version of
8816         update_frame_gutter_geometry.
8817         (update_frame_gutter_geometry): use it.
8818         (redraw_exposed_gutter): add extra debugging output.
8819
8820 2000-03-28  Mike Alexander  <mta@arbortext.com>
8821
8822         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
8823         (pdump_file_unmap): Implement it on Windows
8824         (pdump_file_get): Save alocated handles for pdump_file_unmap
8825
8826 2000-03-28  Andy Piper  <andy@xemacs.org>
8827
8828         * gui.c (get_gui_callback): treat Quit specially.
8829
8830 2000-03-27  Andy Piper  <andy@xemacs.org>
8831
8832         * glyphs.c (image_instantiate): be careful to check in the same
8833         way we assigned.
8834
8835 2000-03-27  Didier Verna  <didier@xemacs.org>
8836
8837         * config.h.in: define the proper SMART_INCLUDE macro.
8838         handle renaming of `foo_h_path' to `foo_h_file'.
8839
8840         * database.c: ditto.
8841
8842         * emacs.c: ditto.
8843
8844         * linuxplay.c: ditto.
8845
8846         * terminfo.c: ditto.
8847
8848         * tooltalk.h: ditto.
8849
8850 2000-03-27  Andy Piper  <andy@xemacs.org>
8851
8852         * glyphs-msw.c (mswindows_update_widget): make sure the widget
8853         gets updated whenever the face might have changed.
8854
8855 2000-03-26  Mike Alexander  <mta@arbortext.com>
8856
8857         * dumper.c (pdump_resource_free): Fix the comment.
8858
8859 2000-03-21  Olivier Galibert  <galibert@pobox.com>
8860
8861         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
8862
8863 2000-03-22  Mike Alexander  <mta@arbortext.com>
8864
8865         * dumper.c: Include Windows headers on Windows
8866         (pdump_resource_free): Add a body to the function
8867         (pdump_load): exe_name -> exe_path and add some comments.
8868
8869 2000-03-25  Mike Alexander  <mta@arbortext.com>
8870
8871         * gui.c (copy_gui_item_tree): Return a value in all cases
8872
8873 2000-03-21  Didier Verna  <didier@xemacs.org>
8874
8875         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
8876         lwlib/config.h.in.
8877         (SMART_INCLUDE): new macro.
8878         (POSTGRES_INCLUDE): new macro to include postgresql headers from
8879         the proper location.
8880
8881         * postgresql.c: use it.
8882
8883         * inline.c: ditto.
8884
8885 2000-03-24  Andy Piper  <andy@xemacs.org>
8886
8887         * gutter.c (redraw_exposed_gutters): must be "in display" when we
8888         do this.
8889
8890 2000-03-24  Andy Piper  <andy@xemacs.org>
8891
8892         * redisplay-output.c (compare_runes): use image_instance_changed
8893         to detect changes. Do not depend on glyphs_changed, only depend on
8894         dirtiness.
8895          (redisplay_output_layout): add debug messages.
8896         (compare_runes): ditto.
8897
8898         * glyphs.h: declare new functions.
8899         (struct Lisp_Image_Instance): remove percent and associated
8900         accessors.
8901
8902         * gui.h: declare new copying functions.
8903
8904         * gui.c (copy_gui_item_tree): new function.
8905         (copy_gui_item): new function.
8906         (gui_item_id_hash): revert to standard hash.
8907         (gui_item_hash): ditto.
8908         (gui_item_hash_internal): deleted.
8909         (mark_gui_item): mark value.
8910         (gui_item_add_keyval_pair): add value.
8911         (gui_item_init): ditto.
8912         (gui_add_item_keywords_to_plist): ditto.
8913         (gui_item_equal): ditto.
8914         (syms_of_gui): add Q_value.
8915
8916         * glyphs-x.c (x_progress_gauge_update): use pending items and
8917         value for setting the state.
8918         (x_update_widget): don't set items from pending here.
8919
8920         * glyphs-widget.c (update_widget): update items here.
8921         (progress_gauge_set_property): use items for storing value. Put
8922         new value in pending items.
8923
8924         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
8925         items for new value. Convert percent -> value.
8926         (mswindows_tab_control_update): don't update items here.
8927
8928         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
8929         (update_subwindow): ditto.
8930         (image_instance_changed): new function. Compare hash values and
8931         past and present widget items.
8932         (image_instantiate): We more careful about where we instantiate
8933         things.
8934         (image_instantiate): add error checking.
8935
8936         * gutter.c (syms_of_gutter): use -hook.
8937
8938 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
8939
8940         * console-tty.c (Fset_console_tty_input_coding_system): Use
8941         Qkeyboard.
8942         (Fset_console_tty_output_coding_system): Use Qterminal.
8943         (tty_init_console): Use Qkeyboard and Qterminal.
8944
8945 2000-03-21  Ben Wing  <ben@xemacs.org>
8946
8947         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
8948         From Mike Alexander <mta@arbortext.com>.
8949
8950 2000-03-21  Ben Wing  <ben@xemacs.org>
8951
8952         * event-msw.c (mswindows_need_event): Horrible kludge to fix
8953         process brokenness.  Proper implementation to come.
8954         * callproc.c:
8955         Rename call-process-internal to old-call-process-internal.
8956         New impl. in process.el.
8957
8958 2000-03-21  Martin Buchholz  <martin@xemacs.org>
8959
8960         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
8961
8962 2000-03-20  Andy Piper  <andy@xemacs.org>
8963
8964         * glyphs.c (full_list_hash): make hashes of the same elements in
8965         different orders return different values.
8966
8967 2000-03-20  Martin Buchholz <martin@xemacs.org>
8968
8969         * XEmacs 21.2.32 is released.
8970
8971 2000-03-20  Martin Buchholz  <martin@xemacs.org>
8972
8973         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
8974         (DFC_MALLOC_USE_CONVERTED_DATA):
8975         Add aliasing-safe casts to allow use with char* or unsigned char*
8976         lvalues.
8977
8978         * eldap.c (Fldap_open):
8979         (Fldap_search_basic):
8980         (Fldap_add):
8981         (Fldap_modify):
8982         Make C++-compilable.
8983         Make sure GCPRO'ed variables are initialized.
8984         Use temp variables to avoid repeated calls to Flength.
8985
8986 2000-03-16  Martin Buchholz  <martin@xemacs.org>
8987
8988         * sysfile.h:
8989         Make sure PATH_MAX is always defined.
8990         Include limits.h for PATH_MAX.
8991         Deprecate use of MAXPATHLEN.
8992
8993 2000-03-10  Martin Buchholz  <martin@xemacs.org>
8994
8995         * emacs.c: Add reinit_vars_of_fileio.
8996         * symsinit.h: Add reinit_vars_of_fileio.
8997         * fileio.c (reinit_vars_of_fileio): New.
8998         * fileio.c (Fmake_temp_name):
8999         Initialize temp_name random number from microseconds to make
9000         collisions even less likely.  Initialize always at process startup
9001         time.  (make-temp-name) used to return the same file name twice in
9002         a row when PDUMP.
9003         Random stylistic fiddling.
9004         Comment fixes.
9005
9006 2000-03-20  Andy Piper  <andy@xemacs.org>
9007
9008         * glyphs.c (image_instantiate): allow text glyphs to be
9009         instantiated in the minibuffer window.
9010
9011 2000-03-19  Andy Piper  <andy@xemacs.org>
9012
9013         * glyphs.c (image_instance_hash): be careful about which items we
9014         hash on.
9015
9016         * glyphs-widget.c (tab_control_set_property): record into pending
9017         items rather than the actual items.
9018
9019         * glyphs-x.c (x_update_widget): use pending items to update with.
9020
9021         * glyphs-msw.c (mswindows_tab_control_update): use pending items
9022         to update with.
9023
9024         * glyphs.c (mark_image_instance): mark pending items.
9025
9026         * window.c (Fset_window_configuration): record the buffer.
9027         (Fselect_window): totally revert previous change which breaks many
9028         things.
9029
9030 2000-03-18  Andy Piper  <andy@xemacs.org>
9031
9032         * glyphs-msw.c (mswindows_tab_control_update): force selected
9033         item.
9034
9035         * glyphs.c (image_instantiate): don't allow the minibuffer as a
9036         window domain cache, otherwise we get inconsistencies at
9037         startup. There is something fishy at startup which can lead to the
9038         minibuffer being the selected window when the gutter content is
9039         instantiated.
9040
9041         * gui.c (parse_gui_item_tree_list): add probably unnecessary
9042         gcpros.
9043         (parse_gui_item_tree_children): ditto.
9044         (parse_gui_item_tree_item): ditto.
9045
9046         * glyphs.c (Fupdate_widget_instances): return something.
9047
9048 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9049
9050         * window.c (Fselect_window): Undo 2000-03-17 change.
9051
9052 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
9053
9054         * postgresql.c (Fpq_setenv): Remove this turkey when linking
9055         against v7.0 libraries.  Insta-coredump city until the postgres
9056         folks fix it.
9057
9058 2000-03-17  Andy Piper  <andy@xemacs.org>
9059
9060         * faces.c (complex_vars_of_faces): don't give the widget face an
9061         inherited background pixmap.
9062
9063         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
9064         selected item.
9065
9066         * event-stream.c (Fdispatch_non_command_events): return something.
9067
9068         * gutter.c (output_gutter): use widget face.
9069         (clear_gutter): ditto.
9070
9071         * NEWS: adjust again.
9072
9073         * window.c (Fselect_window): make sure this runs to completion to
9074         avoid oddities with Fset_window_configuration.
9075         (Fcurrent_window_configuration): in general do not save the
9076         minibuffer as the selected window.
9077
9078         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
9079
9080 2000-03-16  Olivier Galibert  <galibert@pobox.com>
9081
9082         * emacs.c (Frunning_temacs_p): Revert previous patch.
9083         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
9084
9085 2000-03-16  Andy Piper  <andy@xemacs.org>
9086
9087         * glyphs-x.c (x_tab_control_update): if no widget values then
9088         return.
9089
9090         * NEWS: update for new features.
9091
9092         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
9093         synthetic event to the native system.
9094         (reinit_vars_of_event_Xt): set force_event_pending to
9095         emacs_Xt_force_event_pending.
9096
9097         * events.h (struct event_stream): add force_event_pending.
9098
9099         * specifier.c (recompute_one_cached_specifier_in_window): add
9100         comment.
9101
9102         * redisplay.c (redisplay_frame): don't call
9103         update_frame_subwindows. Reset subwindow cachels when
9104         subwindows_changed, removing this was an optimization too far.
9105
9106         * redisplay-output.c (compare_runes): reorganize so that we catch
9107         glyph changes when we want them. Set optimize_output when this
9108         would help layouts.
9109         (redisplay_output_layout): remove frame_really_changed, use
9110         optimize_output instead.
9111
9112         * redisplay-msw.c (mswindows_output_display_block): reset
9113         optimize_output after outputting a glyph.
9114         * redisplay-x.c (x_output_display_block): ditto.
9115         * redisplay-tty.c (tty_output_display_block): ditto.
9116
9117         * gutter.c: (specifier_vars_of_gutter): use new spec changed
9118         functions.
9119         (gutter_specs_changed): do specific gutter positions.
9120         (top_gutter_specs_changed): new function. Only update the
9121         specified gutter specs.
9122         (bottom_gutter_specs_changed): ditto.
9123         (left_gutter_specs_changed): ditto.
9124         (right_gutter_specs_changed): ditto.
9125
9126         * gui.c (gui_item_hash_internal): new function, does a real hash.
9127         (gui_item_id_hash): use it.
9128         (gui_item_hash): hash the eval'ed gui_item.
9129
9130         * gui-x.c (popup_selection_callback): send an eval event to call
9131         Fupdate_widget_instances.
9132
9133         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
9134         to call Fupdate_widget_instances.
9135
9136         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
9137         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
9138
9139         * glyphs.c: (update_frame_subwindows): deleted.
9140         (Fupdate_widget_instances): new function for updating the dirty
9141         state of widgets that might have changed.
9142         (syms_of_glyphs): add Qupdate_widget_instances.
9143         (full_list_hash): hash a list completely.
9144         (image_instance_hash): use it for items and properties.
9145
9146         * frame-msw.c (mswindows_size_frame_internal): remove unused
9147         variable.
9148
9149         * faces.h (struct face_cachel): fix comment.
9150
9151         * event-stream.c (Fdispatch_non_command_events): new
9152         function. Process non-command events, forcing an event cycle
9153         beforehand.
9154         (syms_of_event_stream): declare.
9155         (event_stream_force_event_pending): new function. Force an event
9156         on the native event queue so that an event cycle will occur next
9157         time we check.
9158
9159         * event-msw.c:
9160         (struct ntpipe_shove_stream):
9161         (mswindows_enqueue_dispatch_event):
9162         (mswindows_dequeue_dispatch_event):
9163         (mswindows_cancel_dispatch_event):
9164         (mswindows_pump_outstanding_events):
9165         (mswindows_drain_windows_queue):
9166         (mswindows_handle_paint):
9167         (mswindows_wnd_proc):
9168         (mswindows_key_to_emacs_keysym):
9169         (get_process_input_waitable):
9170         (emacs_mswindows_delete_stream_pair): re-indent file.
9171         (mswindows_need_event): do not process further fds if the windows
9172         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
9173         fixes the 100% cpu problem.
9174         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
9175
9176 2000-03-15  Olivier Galibert  <galibert@pobox.com>
9177
9178         * alloc.h: New.
9179         * dumper.h: New.
9180         * dumper.c: New.
9181
9182         * emacs.c: Moved dump file searching to dumper.c.
9183         (Frunning_temacs_p): Fixed.
9184
9185         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
9186         last_lrecord_type_index_assigned.
9187
9188 2000-02-20  Olivier Galibert  <galibert@pobox.com>
9189
9190         * symsinit.h: Added reinit parameter to init_console_stream
9191         declaration.
9192
9193         * lisp.h: Added file parameter to pdump_load declaration.
9194
9195         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
9196         support.  Added dump file searching.
9197
9198         * config.h.in: Added EMACS_PROGNAME.
9199
9200         * console-stream.c (init_console_stream): Fix reinitialisation
9201         when running from temacs.
9202
9203         * alloc.c (pdump): Add id support.
9204         (pdump_load): Add file parameter and signature/id support.
9205
9206         * Makefile.in.in: Add full pdump support.
9207
9208 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
9209
9210         * postgresql.c: Update documentation to reflect latest code
9211         status.
9212         (print_result): Show tuple counts in printed representation when
9213         appropriate.
9214         (Fpq_put_nbytes): MULE-ize.
9215         (Fpq_get_line_async): Ditto.
9216
9217 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
9218
9219         * postgresql.c (Fpq_lo_import): Fix return value.
9220         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
9221
9222 2000-03-13  Ben Wing  <ben@xemacs.org>
9223
9224         * alloc.c (pdump_load):
9225         Fix compile warning under mswin.
9226
9227 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
9228
9229         * postgresql.c: Mule-ization, bug fixes.
9230         Use PG_CODING to encapsulate coding system name changes.
9231         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
9232         (pg-coding-system): Create.
9233
9234         (Fpq_conn_defaults): Mule-ize.
9235         (Fpq_connectdb): Mule-ize & bug fix.
9236         (Fpq_connect_start): Mule-ize.
9237         (Fpq_set_client_encoding): Mule-ize.
9238         (Fpq_finish): Document `DEAD' connection status.
9239         (Fpq_clear): Ditto.
9240         (Fpq_pgconn): Mule-ize.
9241         (Fpq_exec): Mule-ize & bug fix.
9242         (Fpq_send_query): Ditto.
9243         (Fpq_get_result): Ditto.
9244         (Fpq_res_status): Mule-ize.
9245         (Fpq_result_error_message): Mule-ize.
9246         (Fpq_ntuples): fix comments.
9247         (Fpq_fname): Mule-ize.
9248         (Fpq_fnumber): Mule-ize.
9249         (Fpq_ftype): fix comments.
9250         (Fpq_get_value): Mule-ize.
9251         (Fpq_cmd_status): Ditto.
9252         (Fpq_cmd_tuples): Ditto.
9253         (Fpq_oid_value): Ditto.
9254         (Fpq_notifies): Ditto.
9255         (Fpq_lo_import): Ditto.
9256         (Fpq_lo_export): Ditto.
9257         (Fpq_get_line): Ditto.
9258         (Fpq_put_line): Mule-ize and bug fix.
9259         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
9260
9261 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
9262
9263         * postgresql.c (vars_of_postgresql): Mule-ize.
9264         (Fpq_conn_defaults): Ditto.
9265
9266 2000-03-12  Ben Wing  <ben@xemacs.org>
9267
9268         * alloc.c (Fmake_byte_code):
9269         * alloc.c (debug_string_purity_print):
9270         * alloc.c (pdump_backtrace):
9271         * alloc.c (pdump_get_indirect_count):
9272         * alloc.c (pdump_register_sub):
9273         * alloc.c (pdump_register_object):
9274         * alloc.c (pdump_register_struct):
9275         * alloc.c (pdump_dump_data):
9276         * alloc.c (pdump_reloc_one):
9277         Minor cleanups.
9278
9279         * console-msw.c:
9280         * console-msw.c (GetConsoleHwnd):
9281         * console-msw.c (msw_hide_console):
9282         * console-msw.c (msw_show_console):
9283         * console-msw.c (msw_ensure_console_buffered):
9284         * console-msw.c (msw_output_console_string):
9285         * console-msw.c (console_type_create_mswindows):
9286
9287         a) Added functions to manipulate the console window for use with
9288         shell support.
9289
9290         b) Added support for writing text to the console, which is now
9291         used under Windows when xemacs is not being run non-interactively,
9292         to write text that would otherwise be destined for stdout because
9293         under these circumstances, text written to stdout tends to
9294         disappear and not be seen.
9295
9296         * console-msw.h:
9297         * event-Xt.c:
9298         * event-Xt.c (x_event_to_emacs_event):
9299         * event-Xt.c (describe_event_window):
9300         * events-mod.h (XEMACS_MOD_CONTROL):
9301         * events.c:
9302         * events.c (Fmake_event):
9303         * events.c (character_to_event):
9304         * events.c (event_to_character):
9305         * events.c (format_event_object):
9306         * events.c (Fevent_modifiers):
9307         * events.h:
9308         * events.h (struct key_data):
9309         * events.h (struct button_data):
9310         * events.h (struct misc_user_data):
9311         * frame-x.c (Fcde_start_drag_internal):
9312         * frame-x.c (Foffix_start_drag_internal):
9313         * gpmevent.c (Freceive_gpm_event):
9314         * keymap.c:
9315         * keymap.c (bucky_sym_to_bucky_bit):
9316         * keymap.c (control_meta_superify):
9317         * keymap.c (make_key_description):
9318         * keymap.c (keymap_lookup_directly):
9319         * keymap.c (create_bucky_submap):
9320         * keymap.c (keymap_store):
9321         * keymap.c (define_key_check_and_coerce_keysym):
9322         * keymap.c (define_key_parser):
9323         * keymap.c (define_key_alternate_name):
9324         * keymap.c (Fdefine_key):
9325         * keymap.c (raw_lookup_key_mapper):
9326         * keymap.c (struct map_keymap_unsorted_closure):
9327         * keymap.c (map_keymap_unsorted_mapper):
9328         * keymap.c (map_keymap_sort_predicate):
9329         * keymap.c (map_keymap_sorted):
9330         * keymap.c (accessible_keymaps_mapper_1):
9331         * keymap.c (where_is_recursive_mapper):
9332         * keymap.c (describe_map_mapper):
9333         * keymap.c (describe_map_sort_predicate):
9334         * keymap.c (describe_map):
9335         * keymap.c (complex_vars_of_keymap):
9336         And a number of other files, the key modifier preprocessor
9337         constants that xemacs uses have names that conflict with constants
9338         defined under MS Windows for other purposes, so they were renamed
9339         to begin with the prefix XEMACS_. The variables that hold such
9340         modifiers were changed to consistently be of type int to fix
9341         various compile warnings.
9342
9343         * console.c (complex_vars_of_console):
9344         * device.c:
9345         * device-msw.c:
9346         * device-msw.c (mswindows_finish_init_device):
9347         * device-msw.c (msw_get_workspace_coords):
9348         * device-msw.c (mswindows_device_system_metrics):
9349         and various other files, added support for a new
9350         device property called offset-workspace which returns the position
9351         of the upper left corner of the workspace area and goes along with
9352         the existing size-workspace property.
9353
9354         * dialog-msw.c:
9355         * dialog-msw.c (push_bufbyte_string_as_unicode):
9356         * dialog-msw.c (mswindows_popup_dialog_box):
9357         Added support for XEmacs-style accelerator specifications in
9358         button text.  Note: I didn't add support for this under X Windows,
9359         and somebody needs to do this.
9360
9361         * dialog.c:
9362         * dialog.c (Fpopup_dialog_box):
9363         Documented the support for accelerators that was just mentioned.
9364
9365         editfns.c (get_home_directory): Changed behavior under Windows
9366         when HOME not defined; former behavior was irretrievably broken.
9367
9368         * emacs.c:
9369         * emacs.c (main_1):
9370         * emacs.c (main):
9371         * minibuf.c (clear_echo_area_internal):
9372         * minibuf.c (echo_area_append):
9373         * print.c:
9374         * print.c (std_handle_out_external):
9375         * print.c (std_handle_out_va):
9376         * print.c (fatal):
9377         * print.c (write_string_to_stdio_stream):
9378         * print.c (output_string):
9379         * print.c (debug_print):
9380         * print.c (debug_backtrace):
9381         * print.c (debug_short_backtrace):
9382         Cleaned up the code that prints text to stdout so that this can be
9383         changed to output into a console window instead under MS Windows,
9384         as described above.
9385
9386         * eval.c:
9387         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
9388         * eval.c (internal_catch):
9389         * eval.c (unwind_to_catch):
9390         * eval.c (throw_or_bomb_out):
9391         * eval.c (condition_case_1):
9392         * eval.c (signal_1):
9393         * eval.c (check_error_state_sanity):
9394         * eval.c (call_with_suspended_errors_1):
9395         * eval.c (call_with_suspended_errors):
9396         * eval.c (reinit_vars_of_eval):
9397         Added code to catch throw loops and check for a pesky bug that may
9398         be gone now.
9399
9400         * event-msw.c:
9401         * event-msw.c (key_needs_default_processing_p):
9402         * event-msw.c (mswindows_wnd_proc):
9403         * event-msw.c (mswindows_modifier_state):
9404         * event-msw.c (emacs_mswindows_quit_p):
9405         * event-msw.c (vars_of_event_mswindows):
9406         a) Added support for using the alt key to select menu items as is
9407         standard under MS Windows.  This is controlled using the variable
9408         menu-accelerator-enabled, just like under X Windows.  There is an
9409         option on the options menu to turn this support on.  I really
9410         think that it should be on by default under Windows, but I'm not
9411         going to make this change yet.
9412
9413         b)  Added support for dynamic display size changes under Windows.
9414
9415         * event-stream.c:
9416         * event-stream.c (maybe_echo_keys):
9417         * event-stream.c (Fnext_event):
9418         * event-stream.c (command_builder_find_leaf):
9419         * event-stream.c (lookup_command_event):
9420         * event-stream.c (execute_command_event):
9421         * event-stream.c (pre_command_hook):
9422         * event-stream.c (post_command_hook):
9423         * event-stream.c (syms_of_event_stream):
9424         * event-stream.c (vars_of_event_stream):
9425         * event-stream.c (complex_vars_of_event_stream):
9426         * events.h (struct command_builder):
9427
9428         a) Tried to clean up a little bit the horribly written x-specific
9429         accelerator code that crept into this file.  I moved this code
9430         into menubar-x.c where it belongs. I also needed to move the
9431         command builder structure into the file events.h because it is
9432         accessed directly by this accelerator code.  What I didn't do, but
9433         which should be done at some point, is to properly abstract this
9434         code using device methods instead of the kludgy way that it
9435         currently hooks into the event code.
9436
9437         b) Added the lisp variables this-command-properties and
9438         last-command- properties, which should be used to synchronize two
9439         adjacent commands in preference to playing games with the variable
9440         this-command, which is typically what happens.
9441
9442         c) Added some slightly nasty code to hook into the lisp support
9443         for shifted- motion-key selection.  This is actually necessary for
9444         somewhat complicated reasons, which are described in
9445         simple.el. (NB: I think the proper thing would be to have the code
9446         that calls the pre and post command hooks also call out to generic
9447         lisp functions in simple.el, where all built-in stuff could be
9448         added.  I will think about this more.)
9449
9450         * event-unixoid.c (poll_fds_for_input):
9451         * lread.c (readchar):
9452         * redisplay-tty.c (tty_clear_frame):
9453         * redisplay-x.c (x_get_gc):
9454         * signal.c (interrupt_signal):
9455         And a whole bunch of other files: fixed up places that printed
9456         directly to stderr to instead call the function stderr_out so that
9457         the changes I made under Windows work correctly.
9458
9459         * filemode.c (mode_string):
9460         Warning fixes.
9461
9462         * frame-msw.c:
9463         * frame-msw.c (mswindows_size_frame_internal):
9464         Fixed the computation of frame size and position to keep the frame
9465         within the workspace area, rather than within the physical
9466         dimensions of the screen, so that the frame doesn't overlap window
9467         manager decorations, such as the start menu and toolbar, typically
9468         at the bottom of the screen.
9469
9470         * frame.c (vars_of_frame):
9471         Changed the default frame title format under MS Windows to consist
9472         of buffername-XEmacs, which is standard under MS Windows.  I think
9473         it might be a good idea to change this everywhere because I think
9474         it is superior to the current frame title format, but this is the
9475         kind of change that is likely to cause some people to get annoyed,
9476         so I'm not making it.
9477
9478         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
9479
9480         * gui-msw.c (mswindows_handle_gui_wm_command):
9481         Fixed compile warnings.
9482
9483         * gui-x.c:
9484         * gui-x.c (strdup_and_add_accel):
9485         * gui-x.c (button_item_to_widget_value):
9486         * gui-x.h:
9487         Added code to automatically put an accelerator onto the beginning
9488         of menu items that don't have one as is now the standard, and is
9489         described more later.  Also fixed things so that the menu item
9490         name can be an evaluated expression, again a new standard.
9491
9492         * gui.c:
9493         * gui.c (gui_item_add_keyval_pair):
9494         * gui.c (make_gui_item_from_keywords_internal):
9495         * gui.c (gui_add_item_keywords_to_plist):
9496         * gui.c (gui_item_accelerator):
9497         * gui.c (gui_name_accelerator):
9498         * gui.c (gui_item_included_p):
9499         * gui.c (gui_item_display_flush_left):
9500         * gui.c (gui_item_display_flush_right):
9501         * gui.c (parse_gui_item_tree_item):
9502         * gui.c (parse_gui_item_tree_children):
9503         * gui.c (parse_gui_item_tree_list):
9504         Mule-ized.  Cleanup.  GCPRO addition.
9505
9506         * line-number.c (buffer_line_number):
9507         * lisp.h:
9508         * lisp.h (EMACS_INT_MAX):
9509         Added the manifest constant EMACS_INT_MIN corresponding to the
9510         existing constant EMACS_INT_MAX.  This is partially to fix compile
9511         warnings under Windows, and partly for cleanliness.
9512
9513         * menubar-msw.c:
9514         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
9515         * menubar-msw.c (msw_translate_menu_or_dialog_item):
9516         * menubar-msw.c (displayable_menu_item):
9517         * menubar-msw.c (populate_menu_add_item):
9518         * menubar-msw.c (populate_or_checksum_helper):
9519         * menubar-msw.c (populate_menu):
9520         * menubar-msw.c (update_frame_menubar_maybe):
9521         * menubar-msw.c (prune_menubar):
9522         * menubar-msw.c (msw_char_is_accelerator):
9523         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
9524         * menubar-msw.c (mswindows_handle_wm_command):
9525         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
9526         * menubar-msw.c (mswindows_handle_wm_initmenu):
9527         * menubar-msw.c (mswindows_update_frame_menubars):
9528         * menubar-msw.c (mswindows_free_frame_menubars):
9529         * menubar-msw.c (mswindows_popup_menu):
9530         Fixed a bug in handling accelerators where an extra character
9531         would be displayed in the menu item.  Also generalized the
9532         function displayable_menu_item because it is now used by the
9533         dialog box code as well.  And finally, added code in the functions
9534         that create the menubar to extract a list of accelerators for the
9535         top level menubar, which is used in the event code to determine
9536         whether a particular alt-key combination should be used to invoke
9537         a menu item, or should be passed through to access the standard
9538         XEmacs keymap binding for this key combination.
9539
9540         Much needed GCPROing.
9541
9542         * menubar-x.c:
9543         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9544         * menubar-x.c (menu_item_descriptor_to_widget_value):
9545         * menubar-x.c (restore_in_menu_callback):
9546         * menubar-x.c (x_popup_menu):
9547         * menubar-x.c (menu_move_up):
9548         * menubar-x.c (menu_move_down):
9549         * menubar-x.c (menu_move_left):
9550         * menubar-x.c (menu_move_right):
9551         * menubar-x.c (menu_select_item):
9552         * menubar-x.c (command_builder_operate_menu_accelerator):
9553         * menubar-x.c (menu_accelerator_junk_on_error):
9554         * menubar-x.c (command_builder_find_menu_accelerator):
9555         * menubar-x.c (Faccelerate_menu):
9556         * menubar.h:
9557         Moved a whole bunch of code here that was previously in
9558         event-stream.c as described above.  There is also code connected
9559         to the new standard of adding an accelerator to the beginning of
9560         menu items that don't have one as described above and below.
9561
9562         * menubar.c:
9563         * menubar.c (menu_parse_submenu_keywords):
9564         * menubar.c (Fmenu_find_real_submenu):
9565         * menubar.c (Fnormalize_menu_item_name):
9566         * menubar.c (syms_of_menubar):
9567         * menubar.c (vars_of_menubar):
9568         * menubar.c (complex_vars_of_menubar):
9569
9570         a) Cleaned up a bunch of documentation and improved it.
9571
9572         b) XEmacs now automatically adds an accelerator onto the beginning
9573         of any menu items that don't have one.  I did this because there
9574         will inevitably be some menu items on the main menubar that don't
9575         have accelerators on them because the package that adds that
9576         particular menu item hasn't yet been fixed up to have accelerators
9577         in them and it looked rather strange to have some items with and
9578         some items without accelerators, especially since even in items
9579         without accelerators, you can, at least under windows, still
9580         access the item through an accelerator corresponding to the first
9581         character in the item's name.  If people don't like this behavior,
9582         I can add a variable to turn it off optionally, but I'm not sure
9583         this is a good idea because we really do need to have accelerators
9584         on all of the menu items, and if a package doesn't like the
9585         accelerators being put on the first character, then it should put
9586         the accelerators where they belong.
9587
9588         c) I made a behavior change, which is that the descriptor that
9589         specifies the text of the menu item, which formerly was just a
9590         string, can now also be an evaluated expression.  This makes this
9591         descriptor parallel with all of the others, which could also be
9592         evaluated expressions.  This also obviates the need for the
9593         keyword :label, which was previously listed in the documentation
9594         as unimplemented, and which was for the same purpose.
9595
9596         d) GCPROing.
9597
9598         * ntproc.c:
9599         * ntproc.c (new_child):
9600         * ntproc.c (sys_spawnve):
9601         * ntproc.c (find_child_console):
9602         * ntproc.c (sys_kill):
9603         Fixed compile warnings.  By the way, this file should really go
9604         away entirely, and this will happen as soon as Kirill makes his
9605         final round of process cleanups, which affect the function
9606         call-process.
9607
9608         * process-nt.c:
9609         * process-nt.c (struct nt_process_data):
9610         * process-nt.c (find_process_from_pid):
9611         * process-nt.c (send_signal_the_nt_way):
9612         * process-nt.c (enable_child_signals):
9613         * process-nt.c (find_child_console):
9614         * process-nt.c (send_signal_the_95_way):
9615         * process-nt.c (nt_finalize_process_data):
9616         * process-nt.c (ensure_console_window_exists):
9617         * process-nt.c (nt_create_process):
9618         * process-nt.c (nt_kill_child_process):
9619         * process-nt.c (nt_kill_process_by_pid):
9620         * process-nt.c (nt_open_network_stream):
9621         * process-nt.c (vars_of_process_nt):
9622         Copied over code from Emacs 20.5 to correctly send signals to sub-
9623         processes under Windows 95.  Also added code to automatically
9624         create and hide console window when a sub-process is created under
9625         Windows 95, which obviates the need for the separate runemacs.exe
9626         executable, and finally implemented some variables that were
9627         implemented in Emacs 20.5, but previously not in XEmacs.  These
9628         include mswindows- start-process-share-console and
9629         mswindows-start-process-inherit-error-mode. (Both of these only
9630         apply to Windows 95.)
9631
9632         * regex.c (regex_compile): Fixed a compile warning.
9633
9634         * select-msw.c:
9635         * select-msw.c (mswindows_own_selection):
9636         * select-msw.c (mswindows_get_foreign_selection):
9637         * select-msw.c (mswindows_disown_selection):
9638         * select-msw.c (console_type_create_select_mswindows):
9639         * select-msw.c (syms_of_select_mswindows):
9640         Cleaned up the file and implemented the device method
9641         selection_exists_p, which had accidentally been left out.  Also
9642         removed four lisp functions that were remnants from before the
9643         time when the selection code was properly device abstracted.
9644         These functions are no longer needed because there are generic
9645         equivalents, and because they were added recently and don't exist
9646         in FSF Emacs, I don't think there's any problem with just deleting
9647         them.
9648
9649         * sysdep.c:
9650         * sysdep.c (sys_subshell):
9651         Fixed a compile warning, although in this case there's probably
9652         something wrong with this code, and it ought to be looked into
9653         more thoroughly by somebody who understands it.
9654
9655         * window.c:
9656         * window.c (Fwindow_text_area_height):
9657         * window.c (Fwindow_width):
9658         * window.c (Fwindow_full_width):
9659         * window.c (Fwindow_pixel_width):
9660         * window.c (debug_print_window):
9661         * window.c (syms_of_window):
9662         Added functions window-text-area-height and window-full-width,
9663         which are functions for returning various width and height
9664         characteristics of a window. (One of these functions is necessary
9665         for making the file dialog box work correctly, and the other one
9666         was added for completeness.)  Also added a table to the
9667         documentation for window-height which describes the entire scheme
9668         for accessing width and height characteristics of a window.
9669
9670 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
9671
9672         * nt.c (fstat): Added a comment for another problem with
9673         non-encapsulated [f]stat(), reported by Adrian Aichner
9674         <aichner@ecf.teradyne.com>.
9675
9676 2000-03-11  Andy Piper  <andy@xemacs.org>
9677
9678         * window.c (make_dummy_parent): initialize subwindow instance
9679         cache.
9680         (Fset_window_configuration): zero extent_modiff.
9681
9682 2000-03-10  Andy Piper  <andy@xemacs.org>
9683
9684         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
9685         more changes can be triggered.
9686         (Fredisplay_frame): ditto.
9687         (Fredraw_device): ditto.
9688         (Fredisplay_device): ditto.
9689         (redisplay_frame): make non-static.
9690         (redisplay_frame): call update_frame_gutter_geometry outside of
9691         display proper.
9692
9693         * gutter.h: declare update_frame_gutter_geometry.
9694
9695         * redisplay.h: declare redisplay_frame.
9696
9697         * gutter.c (update_frame_gutter_geometry): move geometry changes
9698         in update_frame_gutters here. Geometry changes can only occur
9699         outside of redisplay.
9700         (update_frame_gutters): remove geometry change code.
9701         (Fredisplay_gutter_area): make sure that we are in display when we
9702         update and that we have flushed any size changes.
9703
9704 2000-03-11  Andy Piper  <andy@xemacs.org>
9705
9706         * alloc.c (pdump_dump_data): remove i & count shadows.
9707
9708 2000-02-27  Mike Alexander  <mta@arbortext.com>
9709
9710         * sysdep.h: Declare pdump_read_file
9711
9712         * sysdep.c (pdump_read_file): New function
9713
9714         * alloc.c (pdump_load): Call pdump_read_file to get the portable
9715         dump data
9716
9717 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
9718
9719         * lrecord.h: add `lrecord_type_pgsetenv'.
9720
9721 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
9722
9723         * symsinit.h: declare (vars|syms)_of* functions.
9724         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
9725
9726 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
9727
9728         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
9729
9730         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
9731         GCCs.
9732
9733         * emacs.c (main_1): Call postgres initialization code.
9734
9735         * postgresql.h: New file.  PostgreSQL RDBMS support.
9736         * postgresql.c: New file.
9737
9738 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
9739
9740         * redisplay-output.c (redisplay_output_display_block): Disable
9741         redundant code.
9742
9743 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
9744
9745         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
9746         (Fcanna_henkan_next): Ditto.
9747         (Fcanna_bunsetu_henkou): Ditto.
9748         (Fcanna_henkan_kakutei): Ditto.
9749         (Fcanna_henkan_end): Ditto.
9750         (Fcanna_henkan_quit): Ditto.
9751         (Fcanna_henkan_next): Set retun value correctly.
9752         (c2mu): Use unsigned char instead of signed char.
9753
9754 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
9755
9756         * emacs.c (main_1): Always call syms_of_gui.
9757         * inline.c: include gui.h
9758
9759 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
9760
9761         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
9762         converted to Lisp_Object.
9763         (Qtop_bottom): New variable.
9764         (syms_of_redisplay): Initialize it.
9765         * redisplay.h (Vvisible_bell): Ditto.
9766         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
9767         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
9768         only flash top and bottom.
9769
9770 2000-03-08  Andy Piper  <andy@xemacs.org>
9771
9772         * buffer.c (Frename_buffer): record new buffer name the right way.
9773
9774 2000-03-08  Andy Piper  <andy@xemacs.org>
9775
9776         * glyphs.c (update_subwindow): increase hash depth so that widget
9777         items get picked up properly.
9778
9779         * redisplay-output.c (compare_runes): increase hash depth so that
9780         widget items get picked up properly.
9781
9782 2000-03-08  Andy Piper  <andy@xemacs.org>
9783
9784         * gutter.c (output_gutter): add some debug.
9785
9786         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
9787         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
9788         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
9789
9790         * redisplay-output.c (compare_runes): use display_hash to
9791         determine if glyphs really are not the same.
9792
9793         * glyphs.c (update_subwindow): check display_hash to see if
9794         anything really needs to be updated. If not then do
9795         nothing. Record the display_hash after updating.
9796         (image_instance_equal): compare the image_instance face also.
9797
9798 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
9799
9800         * redisplay.h: Fix comment style.
9801
9802 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9803
9804         * consle-msw.h (struct mswindows_frame):
9805         Added new member paint_pending to indicate whether a WM_PAINT
9806         magic event has been queued for this frame.
9807
9808         * event-msw.c (mswindows_drain_windows_queue):
9809         Don't queue a WM_PAINT magic event if one is already queued.
9810         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
9811
9812         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
9813
9814 2000-03-07  Didier Verna  <didier@xemacs.org>
9815
9816         * dired.c: #include `regex.h' after `sysfile.h'.
9817
9818 2000-03-06  Martin Buchholz  <martin@xemacs.org>
9819
9820         * sound.c (init_nas_sound): Fix compiler warning.
9821
9822         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
9823         (FREE_STRUCT_P):
9824         (MARK_STRUCT_AS_FREE):
9825         (MARK_STRUCT_AS_NOT_FREE):
9826         Make `gcc -fstrict-aliasing' work properly.
9827
9828 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9829
9830         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
9831         (mswindows_delete_device): Call CoUnnitialize().
9832
9833         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
9834
9835 2000-02-25    <CraigL@DyCon.com>
9836
9837         * process-nt.c: MinGW now has <shellapi.h>, but still needs
9838         <errno.h>.
9839
9840         * sysdep.c: This extern declaration for environ prevents MinGW
9841         from finding the variable in CRTDLL.DLL.
9842
9843         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
9844         windows headers.
9845         (SHGFI_EXETYPE): ..
9846         (WM_MOUSEWHEEL): ..
9847         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
9848         definitions.
9849         (MMRESULT): Removed, now defined in cygwin's windows headers.
9850         (TIMECAPS): ..
9851         (uid_t,gid_t,pid_t,ssize_t): ..
9852         (_timeb): Removed, MinGW defines both _timeb and timeb.
9853         (HAVE_H_ERRNO): Added.
9854         (HAVE_TZNAME): Added, configure is not detecting this.
9855
9856 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
9857
9858         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
9859         * syntax.c (syntax_match): Use it.
9860
9861         * cmds.c: Import auto-fill-chars from FSF Emacs.
9862         (Vauto_fill_chars): New variables.
9863         (internal_self_insert): Check Vauto_fill_chars.
9864         (vars_of_cmds):
9865         Declare auto-fill-chars as a Lisp variable and initialize it.
9866
9867 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9868
9869         * fileio.c (Fmake_symbolic_link):
9870         (Ffile_symlink_p):
9871         Run handlers even if local machine doesn't have symlinks.
9872
9873 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9874
9875         * event-msw.c (mswindows_drain_windows_queue):
9876         Don't generate paint magic events for non-XEmacs frames.
9877
9878 2000-03-05  Andy Piper  <andy@xemacs.org>
9879
9880         * redisplay.c (redisplay_frame): generate_displayable_area and
9881         friends assumes that we are not in GC, we therefore have to make
9882         sure that this doesn't happen.
9883
9884         * gutter.c (calculate_gutter_size): generate_displayable_area
9885         assumes that we are not in GC, we therefore have to make sure that
9886         this doesn't happen.
9887
9888 2000-03-05  Martin Buchholz  <martin@xemacs.org>
9889
9890         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
9891
9892 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
9893
9894         * redisplay.c (regenerate_window): Make sure we set a sane value
9895         for end_pos even if we jump out of the loop.
9896         (regenerate_window): Answer Ben's question :-).
9897         (start_end_of_last_line): Add may_error argument.
9898         (start_of_last_line):
9899         (end_of_last_line): Pass may_error = 0.
9900         (end_of_last_line_may_error): New function.
9901         (pixel_to_glyph_translation): Use it, so we don't crash in
9902         event_to_glyph.
9903
9904 2000-03-04  Andy Piper  <andy@xemacs.org>
9905
9906         * window.h (struct window): add gutter_extent_modiff.
9907
9908         * window.c (allocate_window): zero out gutter_extent_modiff.
9909
9910         * redisplay.h: declare sync_display_line_structs.
9911
9912         * redisplay.c (add_glyph_rune): add a better comment.
9913
9914         * redisplay-output.c (sync_display_line_structs): made non-static.
9915         (compare_runes): remove unneccesary glyph cachel access.
9916
9917         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
9918
9919         * gutter.c (output_gutter): don't output the gutter if extent
9920         changes only involve extents in buffers. use 4 sets of display
9921         lines.
9922         (gutter_extent_signal_changed_region_maybe): new function. Mark
9923         extents in gutters as changed.
9924         (update_frame_gutters): use 4 sets of display lines.
9925         (reset_gutter_display_lines): ditto.
9926         (free_frame_gutters): ditto.
9927         (redraw_exposed_gutter): force output of gutters.
9928
9929         * frame.h (struct frame): add 4 sets of gutter display lines.
9930
9931         * extents.c: (extent_changed_for_redisplay): signal changes to
9932         extents in strings in the gutter as well as extents in buffers.
9933
9934 2000-03-02  Andy Piper  <andy@xemacs.org>
9935
9936         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
9937
9938         * frame.c (Fmake_frame): make sure the gutters get initialized
9939         after the frame is visible.
9940         (set_frame_selected_window): re-arrange compilation macros a
9941         little.
9942         (change_frame_size_1): mark gutters changed.
9943
9944         * device.c (Fset_device_class): mark gutters changed.
9945
9946 2000-03-01  Andy Piper  <andy@xemacs.org>
9947
9948         * window.c (window_top_frame_gutter_height): deleted.
9949         (window_bottom_frame_gutter_height): ditto.
9950         (window_left_frame_gutter_height): ditto.
9951         (window_right_frame_gutter_height): ditto.
9952         (window_top_gutter_height): don't use them.
9953         (window_bottom_gutter_height): ditto.
9954         (window_left_gutter_width): ditto.
9955         (window_right_gutter_width): ditto.
9956         (Fsplit_window): ditto.
9957         (Fwindow_pixel_edges): don't use border dimensions here.
9958
9959         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
9960         (update_scrollbar_instance): ditto.
9961
9962         * redisplay.c (generate_modeline): don't take gutters into account.
9963         (generate_modeline): ditto.
9964         (redisplay_frame): small gutter display optimization.
9965
9966         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
9967
9968         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
9969         gutters into account.
9970
9971         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
9972         for window position and type.
9973
9974         * gutter.c (get_gutter_coords): fix for frame gutters.
9975         (update_frame_gutters): update frame geometry if the gutters have
9976         changed.
9977         (init_frame_gutters): record current gutter geometries.
9978
9979         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
9980         var.
9981         (mswindows_widget_instantiate): ditto.
9982
9983         * frame.h (struct frame): add current_gutter_bounds.
9984
9985         * frame.c (change_frame_size_1): position window and minibuffer
9986         appropriately taking into account the frame gutters.
9987
9988         * frame-x.c: (x_initialize_frame_size): take into account the
9989         frame gutters.
9990
9991 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
9992
9993         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
9994
9995 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
9996
9997         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
9998
9999 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
10000
10001         * file-coding.c (reset_decoding_stream): Clear previous
10002         detection state when autodetect.
10003
10004 2000-02-29  Didier Verna  <didier@xemacs.org>
10005
10006         * extents.c (set_extent_glyph_1): don't require extents to be
10007         attached.
10008
10009 2000-02-27  Andy Piper  <andy@xemacs.org>
10010
10011         * gutter.c (Fset_default_gutter_position): don't default left and
10012         right gutter visibility to t.
10013         (Fset_default_gutter_position): run
10014         default-gutter-position-changed-hook.
10015         (syms_of_gutter): add default-gutter-position-changed-hook.
10016
10017 2000-02-26  Andy Piper  <andy@xemacs.org>
10018
10019         * specifier.c (Fmake_specifier): add gutter references.
10020
10021         * gutter.h (RAW_WINDOW_GUTTER): new macro.
10022
10023         * lisp.h: declare Fvalid_plist_p.
10024
10025         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
10026         as changed.
10027         (default_gutter_visible_p_changed_in_window): invalidate gutter as
10028         well as its visibility so that it gets reconstructed.
10029         (construct_window_gutter_spec): new function. Construct a string
10030         to be displayed in the gutter from a plist of strings. Take care
10031         to only use elements that are declared as visible.
10032         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
10033         WINDOW_GUTTER.
10034         (gutter_validate): allow plists of strings in the specifier.
10035         (gutter_specs_changed): construct the real_gutter from the gutter
10036         specs using construct_window_gutter_spec.
10037         (gutter_visible_validate): gutter-visible is a new specifier type.
10038         (Fgutter_visible_specifier_p): new function for the new specifier.
10039         (syms_of_gutter): declare gutter-visible and
10040         Fgutter_visible_specifier_p.
10041         (specifier_type_create_gutter): intitalize new gutter-visible
10042         specifier.
10043         (reinit_specifier_type_create_gutter): ditto.
10044         (specifier_vars_of_gutter): use new specifier type for gutter
10045         visibility.
10046         (init_frame_gutters): construct real_gutter correctly.
10047         (Fgutter_specifier_p): beef up documentation.
10048         (Fgutter_size_specifier_p): ditto.
10049
10050         * winslots.h: add real_gutter slots.
10051
10052 2000-02-25  Andy Piper  <andy@xemacs.org>
10053
10054         * device-msw.c: Be kind to older cygwin versions. From Raymond
10055         Toy <toy@rtp.ericsson.se>.
10056
10057         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
10058         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
10059
10060 2000-02-25  Martin Buchholz  <martin@xemacs.org>
10061
10062         * elhash.c (MARK_OBJ): Practice macro hygiene.
10063
10064 2000-02-24  Martin Buchholz  <martin@xemacs.org>
10065
10066         * miscplay.c: s/__inline__/inline/g;
10067         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
10068         (get_device_compdc): INLINE ==> static inline
10069         * *.[ch]: Change INLINE to INLINE_HEADER globally.
10070         find -name '*.h' | \
10071         xargs global-replace \
10072         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
10073
10074 2000-02-25  Andy Piper  <andy@xemacs.org>
10075
10076         * window.c (window_top_frame_gutter_height): new function.
10077         (window_top_window_gutter_height): ditto.
10078         (window_top_gutter_height): use them.
10079         (window_bottom_frame_gutter_height): new function.
10080         (window_bottom_window_gutter_height): ditto.
10081         (window_bottom_gutter_height): use them.
10082         (window_left_window_gutter_width): new function.
10083         (window_left_frame_gutter_width): ditto.
10084         (window_left_gutter_width): use them.
10085         (window_right_window_gutter_width): new function.
10086         (window_right_frame_gutter_width): ditto.
10087         (window_right_gutter_width): use them.
10088         (window_pixel_height): new function. calulate window pixel height
10089         with frame gutter involvement.
10090         (Fsplit_window): calculate new sizes taking frame gutters into
10091         account.
10092         (window_char_height_to_pixel_height): don't include frame gutters.
10093         (window_char_height): use window_pixel_height.
10094         (window_pixheight): rename from window_pixel_height.
10095         (change_window_height): use it.
10096         (window_pixel_height_to_char_height): don't include frame gutters.
10097         (window_char_width_to_pixel_width): ditto.
10098
10099 2000-02-25  Andy Piper  <andy@xemacs.org>
10100
10101         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
10102         if it is.
10103
10104 2000-02-24  Martin Buchholz  <martin@xemacs.org>
10105
10106         * alloc.c (staticpro):
10107         (staticpro_nodump):
10108         (dumpstruct):
10109         (dumpopaque):
10110         (pdump_wire):
10111         (pdump_wire_list):
10112         (compact_string_chars):
10113         (pdump_dump_wired):
10114         Convert:  if (foo) abort();  ==>  assert (! foo);
10115
10116         * eldap.c (Fldap_search_basic):
10117         (Fldap_add):
10118         (Fldap_modify):
10119         (Fldap_delete):
10120         Fix compiler warnings, and possible crashes if (random) return
10121         value were to be used.
10122
10123 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10124
10125         * device-msw.c: Workaround ResetDC failure.
10126
10127         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
10128         applying a devmode.
10129
10130         * redisplay-msw.c (get_frame_dc): Added start_page_p.
10131         (mswindows_text_width): Do not start printer page.
10132
10133         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
10134
10135         * glyphs-msw.c: Added image methods to msprinter console and
10136         msprinter-specific image instantiation.
10137
10138 2000-02-20  Mike Alexander  <mta@arbortext.com>
10139
10140         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
10141         to avoid crashes when selection-sets-clipboard is on
10142         (mswindows_own_selection): ditto
10143
10144 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10145
10146         * glyphs-msw.c:
10147         * redisplay-msw.c (get_frame_dc):
10148         (get_frame_compdc):
10149         * console-msw.h:
10150         * device-msw.c (mswindows_init_device):
10151         (mswindows_delete_device):
10152         (msprinter_init_device):
10153         (msprinter_delete_device):
10154         * frame-msw.c (mswindows_init_frame_1):
10155         (mswindows_delete_frame):
10156         (msprinter_init_frame_3):
10157         (msprinter_delete_frame): Move compatible DC to device object from
10158         frame object, for both mswindows and msprinter. Only one at a time
10159         is needed, it is a real waste to have one per frame!
10160
10161 2000-02-23  Andy Piper  <andy@xemacs.org>
10162
10163         * glyphs.c: add dynamic width and height elements.
10164         (image_instance_equal): ditto.
10165
10166         * glyphs-widget.c (widget_query_geometry): calculate width and
10167         height dynamically if required.
10168         (initialize_widget_image_instance): initialize dynamic dimensions.
10169         (widget_instantiate): pick-up dynamic dimensions.
10170
10171         * glyphs.h (struct Lisp_Image_Instance): add width and height for
10172         dynamic determination. Add appropriate macros.
10173
10174         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
10175         dimensions safe.
10176         (WINDOW_GUTTER_SIZE): ditto.
10177         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
10178
10179         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
10180         inline.
10181         (get_frame_dc): ditto.
10182
10183         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
10184         here.
10185
10186 2000-02-23  Martin Buchholz <martin@xemacs.org>
10187
10188         * XEmacs 21.2.31 is released.
10189
10190 2000-02-22  Ben Wing <ben@xemacs.org>
10191
10192         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
10193
10194 2000-02-22  Andy Piper  <andy@xemacs.org>
10195
10196         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
10197
10198 2000-02-21  Mike Sperber <mike@xemacs.org>
10199
10200         * .dbxrc:
10201         * .gdbinit:
10202         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
10203         variables.
10204
10205 2000-02-21  Mike Sperber <mike@xemacs.org>
10206
10207         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
10208
10209 2000-02-21  Martin Buchholz <martin@xemacs.org>
10210
10211         * XEmacs 21.2.30 is released.
10212
10213 2000-02-20  Martin Buchholz  <martin@xemacs.org>
10214
10215         Performance hacking.
10216         * *.c (syms_of_*):
10217         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
10218         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
10219         * emacs.c (main_1):
10220         * lisp.h (DEFUN):
10221         * console.c (DEFVAR_CONSOLE_LOCAL_1):
10222         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
10223         * symeval.h (DEFVAR_SYMVAL_FWD):
10224         * symbols.c (guts_of_unbound_marker):
10225         Make all c_readonly objects also lisp_readonly and marked for life.
10226         * lrecord.h (struct lrecord_implementation):
10227         Document flags better.
10228         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
10229         * lrecord.h (DECLARE_LRECORD):
10230         * lrecord.h (XSETRECORD):
10231         * lrecord.h (RECORDP):
10232         * lrecord.h (RECORD_TYPEP):
10233         * lrecord.h (RECORD_MARKER): New.
10234         * lrecord.h (error_check_*):
10235         * lrecord.h (CONCHECK_NONRECORD):
10236         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
10237         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
10238         * lrecord.h (set_lheader_implementation):
10239         * lrecord.h (enum lrecord_type): New.
10240         * symeval.h (SYMBOL_VALUE_MAGIC_P):
10241         * alloc.c (disksave_object_finalization_1):
10242         * alloc.c (mark_object):
10243         * alloc.c (lrecord_type_index):
10244         * alloc.c (tick_lcrecord_stats):
10245         * alloc.c (Fgarbage_collect):
10246         * alloc.c (init_alloc_once_early):
10247         * alloc.c (pdump_load):
10248         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
10249         * alloc.c (lrecord_type_index): Delete.
10250         Make lisp object type indexes be constant.
10251           Makes (byte-compile) 5% faster.
10252         Put all marker functions into their own array.
10253           Makes (garbage-collect) 5% faster.
10254         Optimize SYMBOL_VALUE_MAGIC_P.
10255           Makes (byte-compile) 2-3% faster.
10256         * config.h.in (gc_checking_assert): New.
10257         * alloc.c: Use gc_checking_assert().
10258         * .dbxrc: Make compatible with new object type implementation.
10259         * .gdbinit: Make compatible with new object type implementation.
10260         * alloc.c: Delete all symbols defined only for debugging, such as
10261         Lisp_Type_Vector and lrecord_charset.
10262
10263 2000-02-21  Andy Piper  <andy@xemacs.org>
10264
10265         * gui-msw.c (Fmswindows_shell_execute): fix file location
10266         problems.
10267
10268         * buffer.c (Fkill_buffer): remove buffer from alist buffer
10269         unshowing so that set_window_buffer doesn't undo
10270         kill_buffer_hook's hard work.
10271
10272         * glyphs-widget.c (tab_control_query_geometry): don't count the
10273         first item when calculating geometry.
10274
10275         * glyphs.c (map_subwindow): remove redundant code.
10276         (update_frame_subwindows): be more circumspect about when to
10277         update subwindows.
10278
10279         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
10280         when items haven't changed. Update faces if faces have changed as
10281         well as just the widget face.
10282         (x_tab_control_update): Update faces if faces have changed as well
10283         as just the widget face.
10284
10285 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10286
10287         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
10288         registration.
10289         (build_syscolor_string): Use mswindows_color_to_string to try to
10290         get a named color.
10291         (mswindows_device_system_metrics): Reverse the foreground and
10292         background colors so that they match the documentation.
10293
10294         * objects-msw.c: (mswindows_X_color_map): tweak some values so
10295         they match the default Windows palette.
10296         (mswindows_color_to_string): New function.
10297
10298 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10299
10300         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
10301
10302 2000-02-18  Olivier Galibert  <galibert@pobox.com>
10303
10304         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
10305         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
10306
10307         * symbols.c (init_symbols_once_early): Removed obsolete
10308         DATA_SEG_BITS related kludge.
10309         (defvar_magic): Ditto.
10310
10311         * malloc.c: Removed obsolete DATA_SEG_BITS
10312         * ralloc.c: Ditto.
10313         * mem-limits.h: Ditto.
10314
10315         * Makefile.in.in: Removed obsolete HAVE_SHM
10316         * emacs.c: Ditto.
10317
10318 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10319
10320         *  device-msw.c (mswindows_delete_device): Free DDE string
10321         handles.
10322
10323 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10324
10325         * keymap.c (get_keyelt):
10326         * unexnt.c (unexec):
10327         * vm-limit.c (memory_warnings):
10328         * ntheap.c (recreate_heap):
10329         * ntheap.h (UNINIT_PTR):
10330         * select-msw.c (Fmswindows_get_clipboard):
10331         (Fmswindows_set_clipboard):
10332         * objects-msw.h (MSWINDOWS_BAD_HFONT):
10333         * objects-msw.c:
10334         * menubar-msw.c (displayable_menu_item):
10335         * glyphs-msw.c:
10336         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
10337         * sysdep.c (sys_subshell):
10338         * process-nt.c (nt_create_process):
10339         * nt.c (normalize_filename):
10340         (dostounix_filename):
10341         (unixtodos_filename):
10342         * ntproc.c (win32_executable_type):
10343         * ntplay.c (play_sound_data_1):
10344         (play_sound_file):
10345         * editfns.c (get_home_directory):
10346         * event-msw.c (struct winsock_stream):
10347         (mswindows_dde_callback):
10348         * device-msw.c (msprinter_init_device):
10349         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
10350
10351         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
10352         mswindows_clear_toolbar were swapped!
10353
10354         * objects-msw.c:(colormap_t):
10355         (fontmap_t):
10356         * emacs.c (struct standard_args): Fixed const jumble.
10357
10358         * glyphs-widget.c (update_widget): Fixed comparison notation.
10359
10360         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
10361
10362         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
10363         __declspec(noreturn) syntax.
10364
10365 2000-02-19  Martin Buchholz  <martin@xemacs.org>
10366
10367         * eldap.c (Fldap_open):
10368         (Fldap_search_basic):
10369         (Fldap_add):
10370         (Fldap_modify):
10371         Use new coding system conversion macros.
10372
10373 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
10374
10375         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
10376
10377 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
10378
10379         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
10380         (Fldap_add, Fldap_modify, Fldap_delete): New functions
10381
10382         * eldap.c (Qadd, Qreplace): New constant symbols
10383         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
10384         interruptions by XEmacs signals
10385         Remove unnecessary calls to slow_down_interrupts and
10386         speed_up_interrupts
10387         (Fldap_search_basic): Renamed from Fldap_search_internal
10388         Added new optional parameter VERBOSE that triggers the
10389         display of progress messages
10390         Remove unnecessary calls to slow_down_interrupts and
10391         speed_up_interrupts
10392         LDAP result code analysis rewritten
10393         (Fldap_add, Fldap_modify, Fldap_delete): New functions
10394         (syms_of_eldap): Define the new symbols and functions
10395
10396
10397 2000-02-17  Martin Buchholz  <martin@xemacs.org>
10398
10399         * realpath.c: Determine PATH_MAX maximally portably.
10400
10401         * insdel.c (bytecount_to_charcount): Optimize.
10402         The function used to be optimized for entirely ASCII sequences.
10403         Now it is optimized for successive characters from the same
10404         charset.  This also wins big for _mostly_ ASCII sequences.
10405
10406         * fileio.c (Ffile_truename): convert return from realpath() using
10407         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
10408         - Rewrite GCPROing slightly.
10409
10410         * sysdep.c (sys_open): Do filename conversion, like all other
10411         sys_* functions.  Fixes bug:
10412         (let ((file-name-coding-system 'iso-8859-2))
10413            (write-region x y latin2-name))
10414         ==> writes filename using internal encoding.
10415
10416 2000-02-18  Martin Buchholz  <martin@xemacs.org>
10417
10418         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
10419         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
10420         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
10421         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
10422         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
10423         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
10424         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
10425         (CONST_IF_NOT_DEBUG): Delete.
10426         * alloc.c (this_one_is_unmarkable): Delete.
10427         (mark_object): Don't check for this_one_is_unmarkable. Use the
10428         c_readonly flag instead.
10429         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
10430
10431 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10432
10433         * event-msw.c (mswindows_drain_windows_queue):
10434         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
10435         away redundant repaint events.
10436
10437 2000-02-17  Andy Piper  <andy@xemacs.org>
10438
10439         * redisplay.h: declare mark_redisplay_structs.
10440
10441         * redisplay.c (redisplay_window):
10442         (redisplay_frame): don't check subwindows_state_changed.
10443         (mark_redisplay): mark gutters here.
10444
10445         * glyphs.c: (instantiate_image_instantiator): always layout if we
10446         haven't done so already.
10447         (allocate_image_instance): don't mark as dirty.
10448         (update_subwindow): bind inhibit_quit.
10449
10450         * gutter.c (mark_gutters): new function.
10451
10452         * glyphs-x.c (x_update_widget): Always resize to get round a
10453         widget bug.
10454
10455         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
10456         breaking absolutely everything.
10457
10458         * gutter.h: declare mark_gutters.
10459
10460 2000-02-16  Martin Buchholz <martin@xemacs.org>
10461
10462         * XEmacs 21.2.29 is released.
10463
10464 2000-02-15  Olivier Galibert  <galibert@pobox.com>
10465
10466         * fns.c (size_bit_vector): Fix computation of the size.
10467
10468 2000-02-15  Martin Buchholz  <martin@xemacs.org>
10469
10470         * *.[ch]: Change CONST to const globally.
10471         find -name '*.[ch]' | \
10472         xargs global-replace \
10473         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
10474         - Remove vestigial references to CONST_IS_LOSING
10475
10476 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10477
10478         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
10479         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
10480         events instead of dispatching them directly.
10481         (mswindows_handle_paint): New function to do repainting.
10482         (mswindows_wnd_proc):
10483         (emacs_mswindows_handle_magic_event): Call above function.
10484
10485 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10486
10487         * objects-msw.c (mswindows_create_font_variant): Return the new
10488         font handle.
10489         (initialize_font_instance): Get font metrics from the underlined
10490         variant of the font to cope with the case where the underlined
10491         font has a bigger descent.
10492
10493 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
10494
10495         * gui.c (gui_item_accelerator): Return the first underlined
10496         character in item name.
10497
10498 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10499
10500         * lisp.h: Added Qprinter.
10501
10502         * general.c (syms_of_general): Initialized it.
10503
10504         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
10505         (get_frame_dc):
10506         (get_frame_compdc): Made inline.
10507
10508         * console.h (struct console_methods): Added eject_page method.
10509
10510         * frame.h: Added FRAME_DISPLAY_P and friends.
10511         Aligned backslahes in many macros in more readable fashion.
10512         Added page_number to struct frame, and an accessor macro
10513         for it.
10514
10515         * defice.h: Added DEVICE_DISPLAY_P and friends.
10516
10517         * device.c (Fdevice_printer_p): Used these.
10518
10519         * frame.c (allocate_frame_core): Initialize page number.
10520         (Fprint_job_page_number):
10521         (Fprint_job_eject_page): Implemented.
10522
10523         * frame-msw.c (msprinter_eject_page): Added method.
10524         (msprinter_start_page): Added.
10525
10526         * window.c (Fwindow_truncated_p): Fixed docstring.
10527         (Fwindow_last_line_visible_height): Implemented.
10528
10529 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10530
10531         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
10532
10533 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
10534
10535         * syntax.c (scan_words): Always advance at least one character.
10536
10537 2000-02-13  Andy Piper  <andy@xemacs.org>
10538
10539         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
10540         to make sure the glyph is in the cachels.
10541
10542         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
10543         global image instance flag.
10544         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
10545         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
10546
10547         * glyphs.c (allocate_image_instance): set dirty bits correctly.
10548         (Fset_image_instance_property): mark layout as changed.
10549         (invalidate_glyph_geometry_maybe): mark layout as changed.
10550         (glyph_width): use new NEEDS_LAYOUT macro.
10551         (glyph_ascent): ditto.
10552         (glyph_descent): ditto.
10553         (glyph_height): ditto.
10554         (image_instance_layout): mark layout as clean after laying out.
10555         (update_subwindow): don't mark layout as clean here.
10556
10557         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
10558         should no longer be needed.
10559
10560         * glyphs-x.c (x_update_widget): sanitize asserts.
10561         (x_finalize_image_instance): sanitize assignment to widgets.
10562
10563         * glyphs-widget.c (widget_instantiate): don't need to clear the
10564         layout flag here.
10565
10566 2000-02-13  Martin Buchholz  <martin@xemacs.org>
10567
10568         * sysdep.c (getcwd): Use standard prototype.
10569         * sysdep.h (getcwd): Use standard prototype.
10570
10571         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
10572         (sequence, start, end).
10573         Remove redundant type checking.
10574         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
10575         view of `caller-protects') to avoid a crash where the real fix was
10576         found elsewhere.
10577
10578 2000-02-12  Martin Buchholz  <martin@xemacs.org>
10579
10580         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
10581
10582         * s/sol2.h: Remove feature macro initialization.
10583
10584         * alloc.c (alloc_lcrecord): Add more type checking assertions.
10585         (vector_hash): New.  Code from internal_hash.
10586         * lrecord.h:
10587         Fix up allocation subsystem comments.
10588
10589         * config.h.in: Add __EXTENSIONS__ for Solaris.
10590
10591         * systime.h (EMACS_GETTIMEOFDAY): New.
10592         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
10593         Remove Solaris-specific code.
10594         Use void* for the (ignored) second arg for gettimeofday().
10595
10596         * elhash.c (hash_table_hash): Implement it, finally.
10597         * elhash.c:  Use hashcode_t.
10598
10599         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
10600         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
10601
10602         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
10603         * fns.c (size_bit_vector):
10604         * alloc.c (size_vector):
10605         (make_vector_internal):
10606         (make_bit_vector_internal):
10607         (sweep_bit_vectors_1):
10608         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
10609
10610 2000-02-10  Martin Buchholz  <martin@xemacs.org>
10611
10612         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
10613         Include strings.h to avoid warnings for bzero and strcasecmp.
10614
10615 2000-02-10  Olivier Galibert  <galibert@pobox.com>
10616
10617         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
10618         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
10619
10620         * fns.c (size_bit_vector): New.  Declare bit vectors as a
10621         sequence.
10622
10623 2000-02-10  Olivier Galibert  <galibert@pobox.com>
10624
10625         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
10626         use a value field instead.
10627         (symbol_value_forward_forward): Use value field.
10628         (DEFVAR_SYMVAL_FWD): Use value field.
10629         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
10630         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
10631         (DEFVAR_CONST_INT): Ditto.
10632         (DEFVAR_BOOL): Ditto.
10633         (DEFVAR_CONST_BOOL): Ditto.
10634         (DEFVAR_INT_MAGIC): Ditto.
10635         (DEFVAR_BOOL_MAGIC): Ditto.
10636
10637         * symbols.c (guts_of_unbound_marker): Use value field.
10638         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
10639         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
10640
10641         * lisp.h: Declare dumpopaque and noninteractive1.
10642
10643         * alloc.c (dumpopaque): Added.
10644         (pdump_dump_opaquevec): Added.
10645         (pdump): Call pdump_dump_opaquevec to dump opaque data.
10646         (pdump_load): Reload opaque data.  Sync noninteractive1 with
10647         noninteractive.
10648
10649 2000-02-10  Andy Piper  <andy@xemacs.org>
10650
10651         * glyphs.c (image_instance_layout): if the size changes, mark it
10652         as such.
10653
10654         * redisplay-output.c (redisplay_output_layout): Update the
10655         subwindow here.
10656         (redisplay_output_subwindow): ditto.
10657
10658         * glyphs.c (update_subwindow): make sure we reset flags for
10659         layouts as well as everything else.
10660
10661         * glyphs-widget.c (layout_layout): don't need to set the instances
10662         dimensions here.
10663
10664 2000-02-09  Martin Buchholz  <martin@xemacs.org>
10665
10666         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
10667         not HAVE_DLOPEN, which is a lower-level thing.
10668
10669         * .cvsignore: Ignore gmon.out
10670
10671 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
10672
10673         * .cvsignore: Ignore portable dumper xemacs.dmp file
10674
10675 2000-02-09  Andy Piper  <andy@xemacs.org>
10676
10677         * redisplay-output.c (redisplay_output_layout): be more clever
10678         about when we output based on the changed flags.
10679
10680         * glyphs.h (struct image_instantiator_methods): add update_method.
10681         (struct Lisp_Image_Instance): add changed flags. Declare new
10682         macros for manipulating them.
10683
10684         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
10685         (image_instance_parent_glyph): find an image_instance's parent
10686         glyph or image_instance.
10687         (image_instance_layout): mark the size as changed.
10688         (set_image_instance_dirty_p): new function. mark an image
10689         instance, plus all of its parents, as dirty.
10690         (Fset_image_instance_property): use it.
10691         (Fglyph_animated_timeout_handler): use it.
10692         (update_subwindow): call update_widget and device methods for
10693         update_subwindow. Mark all changed flags as clean.
10694         (Fresize_subwindow): mark size as changed.
10695
10696         * glyphs-x.c (x_finalize_image_instance): try and detect gc
10697         failures.
10698         (x_update_subwindow): only resize subwindows here.
10699         (x_update_widget): new function. Update all changed properties of
10700         a widget.
10701         (x_resize_subwindow): deleted.
10702         (x_widget_set_property): deleted.
10703         (x_progress_gauge_set_property): deleted.
10704         (x_progress_gauge_update): new function. Implement recorded
10705         changes.
10706         (x_tab_control_update): ditto.
10707         (x_tab_control_set_property): deleted.
10708         (console_type_create_glyphs_x): declare new functions.
10709         (image_instantiator_format_create_glyphs_x): ditto.
10710
10711         * glyphs-widget.c (widget_set_property): mark text changed.
10712         (update_widget): new function. Update properties of a widget.
10713         (widget_instantiate): for layouts make sure we set their
10714         children's parent correctly.
10715         (tab_control_set_property): new function. Record changes that will
10716         take place under redisplay's control.
10717         (progress_gauge_set_property): ditto.
10718         (image_instantiator_progress_guage): declare new functions.
10719         (image_instantiator_tab_control): ditto.
10720
10721         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
10722         now.
10723         (mswindows_update_widget): new function. Update all properties on
10724         a widget that have changed.
10725         (mswindows_button_update): new function. Update a button's set
10726         state.
10727         (mswindows_tab_control_update): new function. Update the items in
10728         a tab.
10729         (mswindows_tab_control_set_property): deleted.
10730         (mswindows_progress_gauge_update): new function. Update the
10731         progress gauge's progress.
10732         (mswindows_widget_set_property): deleted. This is all done
10733         asynchronously now.
10734         (mswindows_progress_gauge_set_property): ditto.
10735         (console_type_create_glyphs_mswindows): declare new methods.
10736         (image_instantiator_format_create_glyphs_mswindows): ditto.
10737
10738         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
10739         (msprinter_set_frame_properties): ditto.
10740
10741         * console.h (struct console_methods): Add update_widget_method.
10742
10743 2000-02-09  Andy Piper  <andy@xemacs.org>
10744
10745         * gui-msw.c (Fmswindows_shell_execute): Make
10746         mswindows-shell-execute industrial strength.
10747
10748 2000-02-08  Martin Buchholz  <martin@xemacs.org>
10749
10750         * lrecord.h: Make macro argument `props' match member function `plist'.
10751         * fns.c (Fget):
10752         * fns.c (Fput):
10753         * fns.c (Fremprop):
10754         * fns.c (Fobject_plist):
10755         * alloc.c:
10756         * symbols.c:
10757         Object property list frobbing cleanup.
10758         - Allow any lisp object (compared with `eq'), not just symbols, as
10759           keys in object plists.
10760         - Move symbol plist frobbing into symbols.c, where it belongs.
10761         - Move string plist frobbing into alloc.c, where it belongs.
10762         - Everything's an lrecord now, so no need to test for symbolp, etc.
10763         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
10764
10765         * extents.c: Reorder code to remove declarations.
10766
10767         * frame.h (store_in_alist): Remove useless declaration.
10768
10769 2000-02-07  Martin Buchholz  <martin@xemacs.org>
10770
10771         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
10772         * config.h.in: Add HAVE_XCONVERTCASE.
10773
10774 2000-02-07  Andy Piper  <andy@xemacs.org>
10775
10776         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
10777         it breaks many things.
10778
10779 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
10780
10781         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
10782         actually can start a common comment type.
10783         * src/syntax.h (SYNTAX_END_P): ditto for end.
10784
10785 2000-02-07  Martin Buchholz <martin@xemacs.org>
10786
10787         * XEmacs 21.2.28 is released.
10788
10789 2000-02-06  Martin Buchholz  <martin@xemacs.org>
10790
10791         * event-Xt.c (x_keysym_to_character): New.
10792         (maybe_define_x_key_as_self_inserting_character): New.
10793         (x_has_keysym): New.
10794         Auto-define all keys on the keyboard as self-insert-key.
10795
10796 2000-02-02  Martin Buchholz  <martin@xemacs.org>
10797
10798         * menubar.c (vars_of_menubar): A small code simplification.
10799
10800         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
10801
10802         * ExternalShell.c:
10803         * ExternalClient.c:
10804         * EmacsShell-sub.c:
10805         * EmacsManager.c:
10806         * EmacsFrame.c:
10807         Use consistent style for specifying X resources.
10808
10809         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
10810         This makes (dontusethis-set-symbol-value-handler) actually usable.
10811
10812         * lrecord.h (lrecord_decription_type):
10813         * alloc.c (pdump_register_sub):
10814         (pdump_dump_data):
10815         (pdump_reloc_one):
10816         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
10817         Comply with XEmacs coding style.
10818         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
10819         args, and XD_LISP_OBJECT_ARRAY with 3 args.
10820
10821         * keymap.c (Faccessible_keymaps):
10822         Make (accessible-keymaps map "\C-h") do the Right Thing.
10823         Make (accessible-keymaps map []) do the Right Thing.
10824         Make (accessible-keymaps map "") do the Right Thing.
10825         (check_keymap_definition_loop): New function.
10826         (keymap_store_internal): Keep luser from shooting self in foot,
10827           via (define-key ctl-x-4-map "p" global-map).
10828         Remove fullness slot from struct Lisp_Keymap, since hash tables
10829         are now reliable.
10830         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
10831
10832 2000-01-30  Martin Buchholz  <martin@xemacs.org>
10833
10834         * redisplay.c (init_redisplay): Fix small memory leak.
10835         * elhash.h:
10836         * elhash.c (pdump_reorganize_hash_table):
10837         Rename from reorganize_hash_table. Change prototype.
10838         Reuse the original memory for hentries.  Save 100k.
10839         * alloc.c (PDUMP_READ): new macro.
10840         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
10841         * alloc.c: No need to #ifndef before #undef.
10842
10843         * print.c: Allow debug_print() to print readably by modifying
10844         debug_print_readably.  Use consistent variable names.
10845
10846         * .dbxrc: Try to get things to work even if stopped in a function
10847         without source available by explicitly specifying source files.
10848 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10849
10850         * unexnt.c (_start): Removed bogus code which caused loading heap
10851         from differrent executable file.
10852         Removed bogus assignment to _fmode, which caused inconsistencies.
10853
10854 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10855
10856         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
10857         Have spawnve encapsulation regard DONT_ENCAPSULATE.
10858         Do not preliminary `#define signal sigset'.
10859
10860         * systime.h: Do not prototype environ on windows nt and cygwin,
10861         this conflicts with system header.
10862
10863         * syssignal.h: Use correct define for WINDOWSNT
10864
10865         * sysdep.h: Do not prototype environ on windows nt, this conflicts
10866         with system header.
10867
10868         * sysdep.c (near start of file): Fixed commentary and rearranged
10869         ifdefs in readable order.
10870         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
10871         (start_of_text):
10872         (end_of_text):
10873         (end_of_data): Do not compile in if using PDUMP.
10874
10875         * symsinit.h: Prototyped vars_of_nt().
10876
10877         * ntproc.c (windows9x_p): Added, instead of os_subtype.
10878         (find_child_console): Use it.
10879         (sys_kill): Use it.
10880
10881         * ntheap.h: Do not extern os_subtype.
10882
10883         * ntheap.c (cache_system_info): Do not cache unneeded:
10884         nt_major_version, nt_minor_version and os_subtype.
10885         (recreate_heap): Do not compile in when PDUMPing.
10886
10887         * nt.c (geteuid and friends): Use the new varibale
10888         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
10889         (init_user_info): Removed the above mentioned hackery.
10890         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
10891         stat has been fixed in the C runtime.
10892         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
10893
10894         * file-coding.c (struct file_coding_dump): Do not define
10895         ucs_to_mule_table in the struct if not MULE.
10896         (struct struct lrecord_description fcd_description_1): Do not dump
10897         the above.
10898
10899         * emacs.c (main_1): Call vars_of_nt().
10900         (right before Fdump_emacs_data): Don't need lastfile if using both
10901         portabe dumper and system malloc.
10902
10903         * alloc.c (Fmemory_limit): Conditionalized out.
10904         (pdump): Use OPEN_BINARY for the portable dump file.
10905         (pdump_load): Ditto.
10906
10907 2000-02-02  Mike Alexander  <mta@arbortext.com>
10908
10909         * nt.c (convert_time): Set tm_isdst before calling mktime and
10910         avoid calling it at all if the compiler supports 64 bit integers.
10911         Also initialize utc_base_ft before using it.
10912
10913 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
10914
10915         * frame.c (change_frame_size_1): Take f->internal_border_width
10916         into consideration when calculating the width of the frame.
10917
10918 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10919
10920         * window.c (frame_min_height):
10921         (frame_size_valid_p):
10922         (frame_pixsize_valid_p): Added.
10923         (check_frame_size): Generalized.
10924
10925         * window.h: Prototyped the above.
10926
10927         * lisp.h:
10928         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
10929         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
10930         Deleted Vwin32_* and Vbinary_process_* unused variables.
10931
10932         * device-msw.c (msprinter_init_device): Do not get printer font
10933         list; Added DEVMODE functions.
10934
10935         * frame-msw.c: Added lots of printer code.
10936
10937         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
10938         general.c.
10939
10940         * console-msw.h: Added more msprinter device private slots.
10941
10942 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10943
10944         * event-msw.c (key_needs_default_processing_p): Added.
10945         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
10946
10947 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10948
10949         * glyphs.c (image_instance_layout): Mark image instance as clean
10950         after layout.
10951         (glyph_dirty_p): Removed redundant function.
10952         (invalidate_glyph_geometry_maybe): Added.
10953         (update_glyph_cachel_data): Call it.
10954
10955         * glyphs.h: Prototyped it.
10956
10957         * redisplay.c (add_glyph_rune): Call it.
10958         (redisplay_window): Reset glyphs cachels when frame faces have
10959         changed, thus forcing recomputation of built-in border glyphs.
10960
10961 2000-01-30  Martin Buchholz  <martin@xemacs.org>
10962
10963         * Makefile.in.in: Make portable dumper and purify play well together.
10964         Add imperfect, but better than nothing, support for pdump.
10965         Remove xemacs.dmp when temacs is re-generated.
10966         Don't ignore errors when dumping xemacs.
10967
10968         * symbols.c (maybe_call_magic_handler): Remove one magic number.
10969
10970 2000-01-28  Andy Piper  <andy@xemacs.org>
10971
10972         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
10973         (setup_normal_frame): ditto.
10974         (setup_frame_without_minibuffer): ditto.
10975         (setup_minibuffer_frame): ditto.
10976         (delete_frame_internal): ditto.
10977         (Fmake_frame_invisible): ditto.
10978         (Ficonify_frame): ditto.
10979
10980         * window.h: change Fset_window_buffer signature.
10981
10982         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
10983         (Fset_window_buffer): allow recording of buffer if the window is
10984         the selected window.
10985         (window_loop): Use new Fset_window signature.
10986
10987 2000-01-23  Daniel Pittman  <daniel@danann.net>
10988
10989         * config.h.in: Added template for `HAVE_ATHENA_3D'
10990
10991 2000-01-29  Andy Piper  <andy@xemacs.org>
10992
10993         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
10994
10995         * gutter.c (output_gutter): Don't output if the window isn't live.
10996
10997 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10998
10999         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
11000         of 01/12/00: Moved SetFocus back here where it belongs.
11001
11002 2000-01-23  Andy Piper  <andy@xemacs.org>
11003
11004         * s/cygwin32.h: declare printer things.
11005
11006 2000-01-26  Andy Piper  <andy@xemacs.org>
11007
11008         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
11009         Alexander.
11010
11011 2000-01-24  Andy Piper  <andy@xemacs.org>
11012
11013         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
11014         (mswindows_button_instantiate): Make sure glyph is a pixmap.
11015
11016         * glyphs-widget.c (widget_instantiate): Avoid shadows.
11017
11018         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
11019
11020         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
11021
11022         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
11023         (mswindows_output_display_block): Avoid local shadows.
11024
11025         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
11026         (mswindows_enqueue_mouse_button_event): ditto.
11027         (mswindows_handle_gui_wm_command): remove declaration.
11028
11029         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
11030         warnings.
11031
11032         * console-msw.h: Avoid shadows.
11033         (mswindows_get_toolbar_button_text):
11034         (emacs_mswindows_create_stream_pair):
11035         (emacs_mswindows_delete_stream_pair):
11036         (mswindows_handle_toolbar_wm_command): declare.
11037
11038         * device-msw.c (build_syscolor_string): Avoid shadows.
11039
11040 2000-01-23  Andy Piper  <andy@xemacs.org>
11041
11042         * glyphs-widget.c (widget_instantiate): reverse the items for
11043         layouts so that children are in the expected order.
11044
11045 2000-01-28  Martin Buchholz  <martin@xemacs.org>
11046
11047         * ralloc.c: safe_bcopy ==> memmove
11048         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
11049         * s/msdos.h: Remove BCOPY macros.
11050         * insdel.c (gap_right): Remove BCOPY conditional code.
11051         * insdel.c (gap_left): Remove BCOPY conditional code.
11052         XEmacs demands a working ANSI C compiler - hence memmove.
11053
11054         * regex.c (regex_compile): Remove accidental use of trigraphs.
11055
11056 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11057
11058         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
11059         event timestamp.
11060
11061 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11062
11063         * event-msw.c (mswindows_drain_windows_queue): Added the
11064         parameter.
11065         (mswindows_need_event): Commented the call to
11066         mswindows_drain_windows_queue().
11067         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
11068         only.
11069
11070         * console-msw.h: Moved a few function prototypes here from
11071         event-msw.c.
11072
11073         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
11074         parameter from unsigned short to unsigned long.
11075         (Fmswindows_shell_execute): Added return value.
11076
11077 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
11078
11079         * sysdep.c (init_system_name):
11080           process-unix.c (unix_canonicalized_host_name):
11081         Don't call freeaddrinfo() if getaddrinfo() fails.
11082
11083         * process-unix.c (unix_open_unix_network_stream):
11084         Moved the code to get a port # into address loop.
11085
11086 2000-01-27  Martin Buchholz  <martin@xemacs.org>
11087
11088         * buffer.c (reinit_vars_of_buffer):
11089         The right place to initialize conversion_in_dynarr and
11090         conversion_out_dynarr.
11091
11092         * alloc.c (pdump): Use the real open() till sys_open() is functional.
11093
11094         * process-unix.c (unix_canonicalize_host_name): Muleize.
11095         (unix_open_network_stream): Muleize.
11096
11097         * buffer.h: Fix up prototypes for ralloc.c functions.
11098
11099 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
11100         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
11101         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
11102                 instead of gethostbyname()
11103         * process-unix.c: In unix_canonicalize_host_name() and
11104                 unix_open_network_stream(), add code to use getaddrinfo()
11105                 instead of gethostbyname().
11106
11107 2000-01-27  Daniel Pittman <daniel@danann.net>
11108
11109         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
11110         libs when built with flat Athena.
11111
11112 2000-01-27  Martin Buchholz  <martin@xemacs.org>
11113
11114         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
11115         Use coding standards for function prototypes.
11116
11117 2000-01-25  Martin Buchholz  <martin@xemacs.org>
11118
11119         * dialog-msw.c (push_lisp_string_as_unicode):
11120         * doc.c (unparesseuxify_doc_string):
11121         * dired.c (Fuser_name_completion_1):
11122         * dired.c (Fuser_name_all_completions):
11123         * dired.c (free_user_cache):
11124         * dired.c (user_name_completion):
11125         * console-x.c (get_display_arg_connection):
11126         * minibuf.c (clear_echo_area_internal):
11127         * minibuf.c (echo_area_append):
11128         * eldap.c (Fldap_open):
11129         * eldap.c (Fldap_search_internal):
11130         * frame-x.c (x_set_frame_text_value):
11131         * frame-x.c (x_set_frame_properties):
11132         * frame-x.c (x_create_widgets):
11133         * redisplay-tty.c (term_get_fkeys_1):
11134         * objects-x.c (x_parse_nearest_color):
11135         * objects-x.c (x_valid_color_name_p):
11136         * objects-x.c (x_initialize_font_instance):
11137         * objects-x.c (x_list_fonts):
11138         * objects-x.c (x_find_charset_font):
11139         * tooltalk.c (Fadd_tooltalk_message_arg):
11140         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
11141         * tooltalk.c (Fadd_tooltalk_pattern_arg):
11142         * process-unix.c (unix_create_process):
11143         * ntproc.c (sys_spawnve):
11144         * sound.c (Fplay_sound_file):
11145         * sound.c (Fplay_sound):
11146         * buffer.c (init_initial_directory):
11147         * buffer.c (init_buffer):
11148         * editfns.c (init_editfns):
11149         * editfns.c (Ftemp_directory):
11150         * editfns.c (Fuser_full_name):
11151         * editfns.c (uncache_home_directory):
11152         * editfns.c (get_home_directory):
11153         * editfns.c (Fuser_home_directory):
11154         * editfns.c (Fformat_time_string):
11155         * editfns.c (Fcurrent_time_string):
11156         * gui-x.c (button_item_to_widget_value):
11157         * database.c (Fopen_database):
11158         * event-Xt.c (x_to_emacs_keysym):
11159         * event-Xt.c (x_event_to_emacs_event):
11160         * event-Xt.c (describe_event_window):
11161         * event-msw.c (mswindows_wnd_proc):
11162         * glyphs-eimage.c (jpeg_instantiate):
11163         * glyphs-eimage.c (gif_instantiate):
11164         * glyphs-eimage.c (png_instantiate):
11165         * glyphs-eimage.c (tiff_instantiate):
11166         * glyphs-x.c (xbm_instantiate_1):
11167         * glyphs-x.c (x_xbm_instantiate):
11168         * glyphs-x.c (x_xface_instantiate):
11169         * glyphs-x.c (autodetect_instantiate):
11170         * glyphs-x.c (cursor_font_instantiate):
11171         * glyphs-x.c (x_widget_instantiate):
11172         * glyphs-x.c (x_widget_set_property):
11173         * glyphs-x.c (x_widget_property):
11174         * glyphs-x.c (BUILD_GLYPH_INST):
11175         * print.c (write_string_to_stdio_stream):
11176         * print.c (output_string):
11177         * print.c (Falternate_debugging_output):
11178         * print.c (Fexternal_debugging_output):
11179         * glyphs-msw.c (extract_xpm_color_names):
11180         * glyphs-msw.c (mswindows_xpm_instantiate):
11181         * glyphs-msw.c (bmp_instantiate):
11182         * glyphs-msw.c (resource_name_to_resource):
11183         * glyphs-msw.c (mswindows_resource_instantiate):
11184         * glyphs-msw.c (xbm_instantiate_1):
11185         * glyphs-msw.c (mswindows_xbm_instantiate):
11186         * glyphs-msw.c (mswindows_xface_instantiate):
11187         * glyphs-msw.c (mswindows_widget_instantiate):
11188         * glyphs-msw.c (add_tree_item):
11189         * glyphs-msw.c (add_tab_item):
11190         * glyphs-msw.c (mswindows_combo_box_instantiate):
11191         * glyphs-msw.c (mswindows_widget_property):
11192         * glyphs-msw.c (mswindows_combo_box_property):
11193         * glyphs-msw.c (mswindows_widget_set_property):
11194         * console.c (stuff_buffered_input):
11195         * objects-msw.c (mswindows_initialize_color_instance):
11196         * objects-msw.c (mswindows_valid_color_name_p):
11197         * objects-msw.c (mswindows_list_fonts):
11198         * objects-msw.c (mswindows_font_instance_truename):
11199         * bytecode.c (optimize_compiled_function):
11200         * select-x.c (symbol_to_x_atom):
11201         * select-x.c (x_atom_to_symbol):
11202         * select-x.c (hack_motif_clipboard_selection):
11203         * select-x.c (selection_data_to_lisp_data):
11204         * select-x.c (lisp_data_to_selection_data):
11205         * select-x.c (Fx_get_cutbuffer_internal):
11206         * select-x.c (Fx_store_cutbuffer_internal):
11207         * buffer.h (TO_EXTERNAL_FORMAT): New function.
11208         * buffer.h (TO_INTERNAL_FORMAT): New function.
11209         * emacs.c (make_arg_list_1):
11210         * emacs.c (make_argc_argv):
11211         * emacs.c (main_1):
11212         * emacs.c (Fdump_emacs):
11213         * emacs.c (split_string_by_emchar_1):
11214         * file-coding.h:
11215         * lisp.h:
11216         * lstream.h:
11217         * symsinit.h:
11218         * device-x.c (x_init_device):
11219         * device-x.c (Fx_valid_keysym_name_p):
11220         * device-x.c (Fx_get_font_path):
11221         * device-x.c (Fx_set_font_path):
11222         * glyphs.c (bitmap_to_lisp_data):
11223         * glyphs.c (pixmap_to_lisp_data):
11224         * alloc.c (make_ext_string): Use coding system arguments.  Update
11225         all callers.
11226         * alloc.c (build_string):
11227         * callproc.c (child_setup):
11228         * callproc.c (init_callproc):
11229         * fileio.c (lisp_strerror):
11230         * fileio.c (directory_file_name):
11231         * fileio.c (Fexpand_file_name):
11232         * fileio.c (Ffile_truename):
11233         * fileio.c (Fsysnetunam):
11234         * fileio.c (Fdo_auto_save):
11235         * sysdep.c (sys_readdir):
11236         * tests.c: New file.  Allow adding C tests.
11237         Replace GET_* macros with a more comprehensible and flexible
11238         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
11239         Modify all calls.
11240         Any coding system can be used to do format conversion.
11241         Eliminate enum external_data_format.
11242         Eliminate convert_to_external_format.
11243         Eliminate convert_to_internal_format.
11244         Make sure file-name, keyboard, terminal, and ctext are always
11245         defined as coding systems or aliases.  Make
11246         file-name-coding-system, terminal-coding-system, and
11247         keyboard-coding-system magical variables that are equivalent to
11248         defining the corresponding coding system aliases.
11249
11250         * file-coding.c (Fcoding_system_canonical_name_p): New function.
11251         * file-coding.c (Fcoding_system_alias_p): New function.
11252         * file-coding.c (Fcoding_system_aliasee): New function.
11253         * file-coding.c (append_suffix_to_symbol): New function.
11254         * file-coding.c (dangling_coding_system_alias_p): New function.
11255         * file-coding.c (Ffind_coding_system):
11256         * file-coding.c (Fcopy_coding_system):
11257         * file-coding.c (encode_coding_no_conversion):
11258         * file-coding.c (syms_of_file_coding):
11259         * file-coding.c (vars_of_file_coding):
11260         Rewrite coding system alias code.
11261         Allow nested aliases, like symbolic links.
11262         Allow redefinition of coding system aliases.
11263         Prevent existence of dangling coding system aliases.
11264
11265         * dired.c (Fuser_name_completion_1):
11266         * dired.c (Fuser_name_all_completions):
11267         A crash would happen if user did QUIT in the middle of building
11268         user_name_cache.  Remove redundant code in mainline and unwind_protect.
11269
11270         * lisp.h:
11271         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
11272
11273         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
11274         an unsigned char *.  Update all callers.
11275
11276 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11277
11278         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
11279
11280 2000-01-25  Martin Buchholz  <martin@xemacs.org>
11281
11282         * elhash.c (hentry_description): Use more portable definition.
11283         (resize_hash_table): Initialize new hentries using
11284         xnew_array_and_zero, thereby simplifying the code.
11285
11286         * mule-charset.c (make_charset): Make sure entire object is
11287         initialized, to avoid Purify warnings.
11288
11289         * alloc.c (resize_string): Fix unlikely crash with big strings.
11290
11291 2000-01-24  Martin Buchholz  <martin@xemacs.org>
11292
11293         * realpath.c (xrealpath):
11294         Don't call getwd().
11295
11296 2000-01-25  Martin Buchholz  <martin@xemacs.org>
11297
11298         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
11299
11300 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
11301
11302         * unexelfsgi.c (unexec): Change the way we decide which segment
11303         should be extended.
11304
11305         Assumption that .bss section should be outside the PT_LOADable
11306         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
11307         it's present) is inside the 'data' segment. This would fail the
11308         test which was used to find a segment to grow and cover new
11309         heap. Instead of this assumption, I created another one - on IRIX
11310         the segment to grow should start below .bss and it's address
11311         should extent above the end of .bss. Once this segment is
11312         identified, it's grown to accommodate the new heap and new
11313         zero-length .bss section is added at the end of .data2.
11314
11315 2000-01-25  Martin Buchholz  <martin@xemacs.org>
11316
11317         * eval.c (Feval): Wrong number of arguments should use original
11318         function, not the indirect_function version of it.
11319
11320 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
11321
11322         * glyphs-x.c (x_button_instantiate): Don't add image if
11323         it is not a pixmap.
11324         (x_locate_pixmap_file): Call Fexpand_file_name when file name
11325         is relative.
11326
11327 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
11328
11329         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
11330         declaration.
11331         (DEFVAR_INT_MAGIC): Ditto.
11332         (DEFVAR_BOOL_MAGIC): Ditto.
11333         * glyphs.h: Reindent backslash.
11334
11335 2000-01-24  Martin Buchholz  <martin@xemacs.org>
11336
11337         * glyphs-widget.c (layout_query_geometry):
11338         (layout_layout): Use correct types for gheight, gwidth.
11339
11340 2000-01-24  Martin Buchholz  <martin@xemacs.org>
11341
11342         * EmacsManager.c (QueryGeometry): Purified.
11343
11344 2000-01-23  Martin Buchholz  <martin@xemacs.org>
11345
11346         * alloc.c (make_float): Make sure entire object is initialized, to
11347         avoid Purify warnings.
11348         (pdump_register_sub): Remove useless assignment.
11349         (pdump): Use xmalloc, not malloc.
11350         (pdump_load): Use xmalloc, not malloc.
11351
11352 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11353
11354         * callproc.c:
11355         * dired-msw.c:
11356         * fileio.c:
11357         * process-nt.c:
11358         * redisplay-msw.c:
11359         * sysdep.c: Removed redundant #include <windows.h>
11360
11361 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11362
11363         * frame.c (delete_frame_internal): Do not delete device when its
11364         implementation so declares.
11365         (delete_frame_internal): Set device selected frame to nil when
11366         last frame goes away.
11367
11368         * device-msw.c (msprinter_device_system_metrics): Implemented.
11369         (mswindows_device_system_metrics): Added 'device-dpi property.
11370
11371         * device.c: (Fdevice_printer_p): Added.
11372         Added 'offset-workspace device metric.
11373
11374         * console.h (device_metrics): Declared DM_offset_workspace.
11375
11376 2000-01-23  Martin Buchholz  <martin@xemacs.org>
11377
11378         * fileio.c (Ffile_truename): Remove pointless and confusing
11379         initialization of elen.
11380
11381         * glyphs-widget.c: Compiler warning fixes.
11382
11383 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
11384
11385         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
11386         instead of a Lisp_Object as argument to make it consistent with
11387         the other LIVE_P macros.
11388         (CHECK_LIVE_PROCESS): New macro.
11389
11390         * process.c: Declare Qprocess_live_p.
11391         (Fprocess_live_p): New function.
11392         (create_process): Use PROCESS_LIVE_P.
11393         (read_process_output): Ditto.
11394         (set_process_filter): Ditto.
11395         (Fdelete_process): Ditto.
11396         (kill_buffer_processes): Ditto
11397         (process_send_signal): Use CHECK_LIVE_PROCESS.
11398         (Fprocess_input_coding_system): Check whether process is still
11399         alive (fix PR#1061).
11400         (Fprocess_output_coding_system): Ditto.
11401         (Fprocess_coding_system): Ditto.
11402         (Fset_process_input_coding_system): Ditto.
11403         (Fset_process_output_coding_system): Ditto.
11404
11405 2000-01-23  Andy Piper  <andy@xemacs.org>
11406
11407         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
11408         layout and widget.
11409
11410         * glyphs.c (mark_image_instance): take into account changed
11411         image_instance format.
11412         (image_instance_equal): ditto.
11413         (image_instance_hash): ditto.
11414
11415         * glyphs-widget.c (widget_instantiate): Incorporate layout
11416         instantiation here. Delay layout of the layout until later.
11417         (layout_instantiate): deleted.
11418         (layout_query_geometry): new function. get the geometry of a
11419         layout.
11420         (layout_layout): layout a layout dynamically.
11421         (image_instantiator_widget): New function - splitting up
11422         image_instantiator_format_create_glyphs_widget for netwinder
11423         compilation.
11424         (image_instantiator_buttons):
11425         (image_instantiator_edit_fields):
11426         (image_instantiator_combo_box):
11427         (image_instantiator_scrollbar):
11428         (image_instantiator_progress_guage):
11429         (image_instantiator_tree_view):
11430         (image_instantiator_tab_control):
11431         (image_instantiator_labels):
11432         (image_instantiator_layout): ditto.
11433         (image_instantiator_format_create_glyphs_widget): Call preceding
11434         functions.
11435
11436 2000-01-22  Martin Buchholz  <martin@xemacs.org>
11437
11438         * process.c (Fset_process_coding_system):
11439         * device-x.c (Fx_keysym_hash_table):
11440         Docstring fixes.
11441
11442         * lstream.c (Lstream_write): Return documented value, not 0.
11443
11444         * fileio.c (directory_file_name):
11445         (Fsubstitute_in_file_name):
11446         (Fsubstitute_insert_file_contents_internal):
11447         (Fwrite_region_internal):
11448         * emacs.c:
11449         * sysdep.c:
11450         * getloadavg.c:
11451         * systty.h:
11452         Remove vestigial APOLLO-conditional code.
11453
11454 2000-01-21  Martin Buchholz  <martin@xemacs.org>
11455
11456         * getpagesize.h: Add guard macros.
11457         * libsst.h: Add guard macros.
11458         * libst.h: Add guard macros.
11459         * line-number.h: Add guard macros.
11460         * ndir.h: Add guard macros.
11461         * sysfloat.h: Add guard macros.
11462         * sysfile.h: Add guard macros.
11463         * sysproc.h: Add guard macros.
11464         * syswait.h: Add guard macros.
11465         * xintrinsic.h: Add guard macros.
11466         * xintrinsicp.h: Add guard macros.
11467         * xmmanager.h: Add guard macros.
11468         * xmmanagerp.h: Add guard macros.
11469         * xmprimitive.h: Add guard macros.
11470         * xmu.h: Add guard macros.
11471         * gpmevent.h: Add copyright statement. Add guard macros.
11472         * miscplay.h: Add guard macros.
11473         * *.h: Use consistent C-standards-approved guard macro names.
11474
11475         * opaque.c (make_opaque): Switch parameter order.
11476         * opaque.h (make_opaque): Switch parameter order.
11477         Update all callers.
11478         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
11479
11480         * config.h.in (type_checking_assert): Added.
11481         (bufpos_checking_assert): Added.
11482
11483 2000-01-21  Martin Buchholz  <martin@xemacs.org>
11484
11485         * alloc.c: Harmless pdump changes.
11486         - Use countof().
11487         - spell alignment correctly.
11488         * sysdep.c: Use countof()
11489
11490 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11491
11492         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
11493         initially_selected_for_input() console method, default to 0.
11494         (semi_canonicalize_console_connection): Try to delegate to
11495         canonicalize_console_connection if no such console method.
11496         (canonicalize_console_connection): Vice versa.
11497         (print_console): Do not print nil connection.
11498
11499         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
11500         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
11501         (XDEVIMPF_FRAMELESS_OK): Added.
11502         (CONSOLE_INHERITS_METHOD): Added.
11503
11504         * console-msw.c (mswindows_canonicalize_console_connection):
11505         Added.
11506         (mswindows_canonicalize_device_connection): Added.
11507
11508         * console-msw.h (struct msprinter_device): Added this struct and
11509         accessor macros.
11510         (mswindows_device): Made fontlist a lisp object.
11511
11512         * device.c (semi_canonicalize_device_connection):  Try to delegate
11513         to canonicalize_device_connection if no such console method.
11514         (canonicalize_device_connection): Vice versa.
11515         (print_device): Do not print nil connection.
11516
11517         * device-msw.c (mswindows_init_device): Call InitCommonControls
11518         when have widgets.
11519         (mswindows_delete_device): Removed fontlist deallocation.
11520         (mswindows_mark_device): Added.
11521
11522         * events.c (event_equal): Added abort() at unreached code.
11523         (event_hash): Ditto.
11524
11525         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
11526         fallback tags of Windows devices.
11527
11528         * general.c (syms_of_general): Initialized Qmsprinter.
11529
11530         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
11531         of fallback tags of Windows devices.
11532
11533         * lisp.h: Declared Qmsprinter.
11534
11535         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
11536         of strings.
11537         (mswindows_list_fonts): Ditto.
11538         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
11539         that it can be used by both mswindows and msprinter devices.
11540         (initialize_font_instance): Added.
11541         (mswindows_initialize_font_instance): Use it.
11542         (msprinter_initialize_font_instance): Added.
11543
11544         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
11545         and implementation flags check.
11546         (redisplay_without_hooks): Changed the call to the above.
11547         (Fredraw_device): Ditto.
11548         (Fredisplay_device): Ditto.
11549
11550         * redisplay-msw.c (get_frame_dc): Implemented.
11551         (get_frame_compdc): Implemented.
11552         (many functions): Use the two functions above to get device
11553         contexts, ether for a window or a printer.
11554
11555 2000-01-21  Olivier Galibert  <galibert@pobox.com>
11556
11557         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
11558         initialization here.
11559         (init_symbols_once_early): Call it.
11560         * emacs.c (main_1): Call it.
11561         * symsinit.h: Declare it.
11562
11563 2000-01-19  Olivier Galibert  <galibert@pobox.com>
11564
11565         * alloc.c: Use a lrecord_header * in the backtrace instead of a
11566         Lisp_Object.
11567         (pdump_backtrace): Ditto.
11568         (pdump_register_object): Ditto.  Cleanup use of the pointers.
11569         (pdump_get_entry): Abort if trying to register a null pointer.
11570         (pdump_dump_data): Cleanup types when relocating.
11571         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
11572         (pdump_dump_rtables): Remove bad casts.
11573         (pdump_load): Cleanup relocation w.r.t union type.  Use a
11574         Lisp_Object instead of a EMACS_INT for the hashtable
11575         reorganization.
11576
11577 2000-01-20  Martin Buchholz  <martin@xemacs.org>
11578
11579         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
11580
11581         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
11582
11583         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
11584
11585         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
11586
11587 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11588
11589         * faces.h (FACE_STRIKETHRU_P): Added.
11590
11591         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
11592         of font variants.
11593
11594         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
11595         (mswindows_set_dc_font): New function, aware of font variants,
11596         separated from mswindows_update_dc.
11597
11598         * objects-msw.h (struct mswindows_font_instance_data): Added
11599         definition.
11600
11601         * objects-msw.c (mswindows_finalize_font_instance): Delete all
11602         cached fonts and the data structure.
11603         (mswindows_initialize_font_instance): Added creation of font data
11604         structure.
11605         (mswindows_print_font_instance): Print at least something.
11606         (mswindows_create_font_variant): Implemented.
11607         (mswindows_get_hfont): Implemented.
11608
11609 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
11610
11611         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
11612         prototyping problem with msvc.
11613
11614         * emacs.c (main_1): added syms_of_gui_mswindows() call
11615
11616         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
11617         syms_of_gui_mswindows() function
11618
11619         * symsinit.h: added the prototype for syms_of_gui_mswindows()
11620
11621 2000-01-18  Martin Buchholz <martin@xemacs.org>
11622
11623         * XEmacs 21.2.27 is released.
11624
11625 2000-01-18  Martin Buchholz  <martin@xemacs.org>
11626
11627         * glyphs-eimage.c (struct tiff_error_struct):
11628         (tiff_error_func):
11629         (tiff_warning_func):
11630         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
11631
11632         * unexmips.c:
11633         * unexhp9k3.c:
11634         * unexfreebsd.c:
11635         * unexec.c: Remove vestigial Lucid C code.
11636         * unexalpha.c:
11637         * unexaix.c:
11638         * termcap.c:
11639         * libsst.c: Ansify.
11640         Remove declarations of errno and strerror().
11641
11642         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
11643
11644         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
11645
11646 2000-01-16  Martin Buchholz  <martin@xemacs.org>
11647
11648         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
11649         Optimize.
11650
11651 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11652
11653         * md5.c:
11654         * file-coding.c:
11655         * file-coding.h:
11656         Change enum eol_type to eol_type_t.
11657
11658 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11659
11660         * gui.c (get_gui_callback): Check cons before accessing car.
11661
11662 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11663
11664         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
11665         (XSETSPECIFIER_TYPE): Ditto.
11666
11667 2000-01-17  Didier Verna  <didier@xemacs.org>
11668
11669         * redisplay.c (generate_fstring_runes): compute string size in
11670         characters, not bytes.
11671
11672 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
11673
11674         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
11675
11676 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
11677
11678         * print.c (print_error_message): Call print_prepare().
11679
11680 2000-01-14  Martin Buchholz  <martin@xemacs.org>
11681
11682         * .dbxrc: Renamed from dbxrc.
11683
11684         * events.c (event_to_character):
11685         Use `assert (foo)' instead of `if (!foo) abort()'
11686
11687         * .gdbinit (xtype): Add documentation.
11688         * .gdbinit (check-temacs): New function.
11689         * .gdbinit (check-xemacs): New function.
11690         * dbxrc (check-xemacs): New function.
11691         * dbxrc (check-xemacs): New function.
11692
11693 2000-01-14  Andy Piper  <andy@xemacs.org>
11694
11695         * glyphs-widget.c (widget_query_geometry): Make sure that we
11696         calculate default dimensions correctly.
11697
11698 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11699
11700         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
11701
11702         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
11703         pdump_wire'd variable.
11704
11705         * emacs.c: (main_1): Conditionalized calls to
11706         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
11707
11708 2000-01-13  Martin Buchholz  <martin@xemacs.org>
11709
11710         * window.c (Fset_window_configuration):
11711         * sysdep.c (_start):
11712         * input-method-motif.c (res):
11713         * event-Xt.c (Xt_process_to_emacs_event):
11714         Simple compiler warning fixes.
11715
11716         * bytecode.c (funcall_compiled_function): Use the original
11717         function symbol on the backtrace list in preference to the
11718         compiled_function object in error messages.
11719
11720 2000-01-13  Andy Piper  <andy@xemacs.org>
11721
11722         * glyphs-x.c (update_widget_face): Make sure we update the widget
11723         background as well as foreground.
11724
11725 2000-01-13  Andy Piper  <andy@xemacs.org>
11726
11727         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
11728         fields to subwindow.
11729         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
11730         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
11731         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
11732         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
11733
11734         * glyphs-widget.c (check_valid_tab_orientation): new function.
11735         (initialize_widget_image_instance): zero orientation and
11736         justification.
11737         (widget_instantiate): pick up orientation.
11738         (tab_control_query_geometry): return appropriate values for
11739         vertical tabs.
11740
11741         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
11742         appropriate creation flags for left, right and bottom tabs.
11743
11744         * s/cygwin32.h: add tab definitions.
11745
11746 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11747
11748         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
11749         frame upon hiding a subwindow.
11750         (mswindows_button_instantiate): Changed the push button style to
11751         BS_PUSHBUTTON.
11752         (mswindows_button_instantiate): Removed button BS_NOTIFY
11753         style.
11754         (mswindows_button_instantiate): Removed redundant check for
11755         a disabled gui item.
11756         (mswindows_button_instantiate): Made use of WS_TABSTOP
11757         consistent: "operable" controls (edit, button, tree, scroll) have
11758         this style, "display-only" ones (static, progress gauge) do
11759         not. This style is currently ignored by XEmacs though. Also,
11760         removed the WS_EX_CONTROLPARENT style - it is not for children,
11761         it is for their parents!
11762         (mswindows_edit_field_instantiate): Ditto.
11763         (mswindows_progress_gauge_instantiate): Ditto.
11764         (mswindows_tree_view_instantiate): Ditto.
11765         (mswindows_tab_control_instantiate): Ditto.
11766         (mswindows_scrollbar_instantiate): Ditto.
11767         (mswindows_combo_box_instantiate): Ditto.
11768         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
11769         style to the "clip" window.
11770         (mswindows_button_instantiate): Removed compilation warning by
11771         equally typing terms of the ?: operator.
11772
11773 2000-01-12  Didier Verna  <didier@xemacs.org>
11774
11775         * redisplay.c (generate_fstring_runes): new parameter holding the
11776         last modeline-format extent.
11777         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
11778         extent, fill the glyph block with it.
11779         (generate_fstring_runes): handle these parameters.
11780         (generate_formatted_string_db): ditto.
11781
11782         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
11783         glyphs'extents in the modeline.
11784
11785 1999-01-11  Mike Woolley  <mike@bulsara.com>
11786
11787         * ntheap.c: Reduced the reserved heap space from 1Gb down to
11788         256Mb, as a workaround for the non-starting problem many people
11789         have experienced.
11790
11791 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11792
11793         * console-tty.c (Fset_console_tty_output_coding_system):
11794         Force redrawing tty frame.
11795
11796 2000-01-10  Didier Verna  <didier@xemacs.org>
11797
11798         * redisplay.c (generate_fstring_runes): fix size computation bug.
11799
11800 2000-01-09  William M. Perry <wmperry@aventail.com>
11801
11802         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
11803
11804 2000-01-09  Andy Piper  <andy@xemacs.org>
11805
11806         * glyphs-msw.c: index -> i to avoid shadows.
11807         (xbm_create_bitmap_from_data): make static.
11808         (check_valid_string_or_int): deleted.
11809         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
11810
11811         * glyphs-x.c (x_update_subwindow): remove unused args.
11812
11813         * glyphs.c (glyph_image_instance): return the thing. Don't set the
11814         back pointer - this is done in allocate_image_instance.
11815         (query_string_font): return Qnil to make the compiler happy.
11816         (unmap_subwindow): set to ~0 to make the compiler happy.
11817         (glyph_query_geometry): comment out until used.
11818         (glyph_layout): ditto.
11819
11820 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
11821
11822         * insdel.c (signal_after_change): Remove extraneous unbind_to().